Update
[gdb.git] / sim / ppc / configure
blobe385ecea5d267ec35baa35ed9500ef32f5db063d
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 USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CPP EGREP LIBOBJS CC_FOR_BUILD CFLAGS_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB 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 --enable-sim-alignment=align Specify strict or nonstrict alignment.
854 --enable-sim-assert Specify whether to perform random assertions.
855 --enable-sim-bitsize=n Specify target bitsize (32 or 64).
856 --enable-sim-bswap Use the BSWAP instruction on Intel 486s and Pentiums.
857 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
858 --enable-sim-config=file Override default config file
859 --enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
860 --enable-sim-default-model=which Specify default PowerPC to model.
861 --enable-sim-duplicate Expand (duplicate) semantic functions.
862 --enable-sim-endian=endian Specify target byte endian orientation.
863 --enable-sim-env=env Specify target environment (operating, virtual, user).
864 --enable-sim-filter=rule Specify filter rules.
865 --enable-sim-float Specify whether the target has hard, soft, altivec or e500 floating point.
866 --enable-sim-hardware=list Specify the hardware to be included in the build.
867 --enable-sim-hostbitsize=32|64 Specify host bitsize (32 or 64).
868 --enable-sim-hostendian=end Specify host byte endian orientation.
869 --enable-sim-icache=size Specify instruction-decode cache size and type.
870 --enable-sim-inline=inlines Specify which functions should be inlined.
871 --enable-sim-jump Jump between semantic code (instead of call/return).
872 --enable-sim-line-nr=opts Generate extra CPP code that references source rather than generated code
873 --enable-sim-model=which Specify PowerPC to model.
874 --enable-sim-model-issue Specify whether to simulate model specific actions
875 --enable-sim-monitor=mon Specify whether to enable monitoring events.
876 --enable-sim-opcode=which Override default opcode lookup.
877 --enable-sim-packages=list Specify the packages to be included in the build.
878 --enable-sim-regparm=nr-parm Pass parameters in registers instead of on the stack - x86/GCC specific.
879 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction.
880 --enable-sim-smp=n Specify number of processors to configure for.
881 --enable-sim-stdcall=type Use an alternative function call/return mechanism - x86/GCC specific.
882 --enable-sim-stdio Specify whether to use stdio for console input/output.
883 --enable-sim-switch Use a switch instead of a table for instruction call.
884 --enable-sim-timebase Specify whether the PPC timebase is supported.
885 --enable-sim-trace Specify whether tracing is supported.
886 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings except for idecode.o, semantics.o and psim.o
887 --enable-sim-xor-endian=n Specify number bytes involved in PowerPC XOR bi-endian mode (default 8).
889 Some influential environment variables:
890 CC C compiler command
891 CFLAGS C compiler flags
892 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
893 nonstandard directory <lib dir>
894 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
895 headers in a nonstandard directory <include dir>
896 CPP C preprocessor
898 Use these variables to override the choices made by `configure' or to help
899 it to find libraries and programs with nonstandard names/locations.
901 _ACEOF
904 if test "$ac_init_help" = "recursive"; then
905 # If there are subdirs, report their specific --help.
906 ac_popdir=`pwd`
907 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
908 test -d $ac_dir || continue
909 ac_builddir=.
911 if test "$ac_dir" != .; then
912 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
913 # A "../" for each directory in $ac_dir_suffix.
914 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
915 else
916 ac_dir_suffix= ac_top_builddir=
919 case $srcdir in
920 .) # No --srcdir option. We are building in place.
921 ac_srcdir=.
922 if test -z "$ac_top_builddir"; then
923 ac_top_srcdir=.
924 else
925 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
926 fi ;;
927 [\\/]* | ?:[\\/]* ) # Absolute path.
928 ac_srcdir=$srcdir$ac_dir_suffix;
929 ac_top_srcdir=$srcdir ;;
930 *) # Relative path.
931 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
932 ac_top_srcdir=$ac_top_builddir$srcdir ;;
933 esac
935 # Do not use `cd foo && pwd` to compute absolute paths, because
936 # the directories may not exist.
937 case `pwd` in
938 .) ac_abs_builddir="$ac_dir";;
940 case "$ac_dir" in
941 .) ac_abs_builddir=`pwd`;;
942 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
943 *) ac_abs_builddir=`pwd`/"$ac_dir";;
944 esac;;
945 esac
946 case $ac_abs_builddir in
947 .) ac_abs_top_builddir=${ac_top_builddir}.;;
949 case ${ac_top_builddir}. in
950 .) ac_abs_top_builddir=$ac_abs_builddir;;
951 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
952 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
953 esac;;
954 esac
955 case $ac_abs_builddir in
956 .) ac_abs_srcdir=$ac_srcdir;;
958 case $ac_srcdir in
959 .) ac_abs_srcdir=$ac_abs_builddir;;
960 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
961 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
962 esac;;
963 esac
964 case $ac_abs_builddir in
965 .) ac_abs_top_srcdir=$ac_top_srcdir;;
967 case $ac_top_srcdir in
968 .) ac_abs_top_srcdir=$ac_abs_builddir;;
969 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
970 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
971 esac;;
972 esac
974 cd $ac_dir
975 # Check for guested configure; otherwise get Cygnus style configure.
976 if test -f $ac_srcdir/configure.gnu; then
977 echo
978 $SHELL $ac_srcdir/configure.gnu --help=recursive
979 elif test -f $ac_srcdir/configure; then
980 echo
981 $SHELL $ac_srcdir/configure --help=recursive
982 elif test -f $ac_srcdir/configure.ac ||
983 test -f $ac_srcdir/configure.in; then
984 echo
985 $ac_configure --help
986 else
987 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
989 cd $ac_popdir
990 done
993 test -n "$ac_init_help" && exit 0
994 if $ac_init_version; then
995 cat <<\_ACEOF
997 Copyright (C) 2003 Free Software Foundation, Inc.
998 This configure script is free software; the Free Software Foundation
999 gives unlimited permission to copy, distribute and modify it.
1000 _ACEOF
1001 exit 0
1003 exec 5>config.log
1004 cat >&5 <<_ACEOF
1005 This file contains any messages produced by compilers while
1006 running configure, to aid debugging if configure makes a mistake.
1008 It was created by $as_me, which was
1009 generated by GNU Autoconf 2.59. Invocation command line was
1011 $ $0 $@
1013 _ACEOF
1015 cat <<_ASUNAME
1016 ## --------- ##
1017 ## Platform. ##
1018 ## --------- ##
1020 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1021 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1022 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1023 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1024 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1026 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1027 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1029 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1030 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1031 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1032 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1033 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1034 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1035 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1037 _ASUNAME
1039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040 for as_dir in $PATH
1042 IFS=$as_save_IFS
1043 test -z "$as_dir" && as_dir=.
1044 echo "PATH: $as_dir"
1045 done
1047 } >&5
1049 cat >&5 <<_ACEOF
1052 ## ----------- ##
1053 ## Core tests. ##
1054 ## ----------- ##
1056 _ACEOF
1059 # Keep a trace of the command line.
1060 # Strip out --no-create and --no-recursion so they do not pile up.
1061 # Strip out --silent because we don't want to record it for future runs.
1062 # Also quote any args containing shell meta-characters.
1063 # Make two passes to allow for proper duplicate-argument suppression.
1064 ac_configure_args=
1065 ac_configure_args0=
1066 ac_configure_args1=
1067 ac_sep=
1068 ac_must_keep_next=false
1069 for ac_pass in 1 2
1071 for ac_arg
1073 case $ac_arg in
1074 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1077 continue ;;
1078 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1080 esac
1081 case $ac_pass in
1082 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085 if test $ac_must_keep_next = true; then
1086 ac_must_keep_next=false # Got value, back to normal.
1087 else
1088 case $ac_arg in
1089 *=* | --config-cache | -C | -disable-* | --disable-* \
1090 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092 | -with-* | --with-* | -without-* | --without-* | --x)
1093 case "$ac_configure_args0 " in
1094 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095 esac
1097 -* ) ac_must_keep_next=true ;;
1098 esac
1100 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101 # Get rid of the leading space.
1102 ac_sep=" "
1104 esac
1105 done
1106 done
1107 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110 # When interrupted or exit'd, cleanup temporary files, and complete
1111 # config.log. We remove comments because anyway the quotes in there
1112 # would cause problems or look ugly.
1113 # WARNING: Be sure not to use single quotes in there, as some shells,
1114 # such as our DU 5.0 friend, will then `close' the trap.
1115 trap 'exit_status=$?
1116 # Save into config.log some information that might help in debugging.
1118 echo
1120 cat <<\_ASBOX
1121 ## ---------------- ##
1122 ## Cache variables. ##
1123 ## ---------------- ##
1124 _ASBOX
1125 echo
1126 # The following way of writing the cache mishandles newlines in values,
1128 (set) 2>&1 |
1129 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130 *ac_space=\ *)
1131 sed -n \
1132 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136 sed -n \
1137 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 esac;
1141 echo
1143 cat <<\_ASBOX
1144 ## ----------------- ##
1145 ## Output variables. ##
1146 ## ----------------- ##
1147 _ASBOX
1148 echo
1149 for ac_var in $ac_subst_vars
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1153 done | sort
1154 echo
1156 if test -n "$ac_subst_files"; then
1157 cat <<\_ASBOX
1158 ## ------------- ##
1159 ## Output files. ##
1160 ## ------------- ##
1161 _ASBOX
1162 echo
1163 for ac_var in $ac_subst_files
1165 eval ac_val=$`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1167 done | sort
1168 echo
1171 if test -s confdefs.h; then
1172 cat <<\_ASBOX
1173 ## ----------- ##
1174 ## confdefs.h. ##
1175 ## ----------- ##
1176 _ASBOX
1177 echo
1178 sed "/^$/d" confdefs.h | sort
1179 echo
1181 test "$ac_signal" != 0 &&
1182 echo "$as_me: caught signal $ac_signal"
1183 echo "$as_me: exit $exit_status"
1184 } >&5
1185 rm -f core *.core &&
1186 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1187 exit $exit_status
1189 for ac_signal in 1 2 13 15; do
1190 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191 done
1192 ac_signal=0
1194 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1195 rm -rf conftest* confdefs.h
1196 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197 echo >confdefs.h
1199 # Predefined preprocessor variables.
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_NAME "$PACKAGE_NAME"
1203 _ACEOF
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208 _ACEOF
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1213 _ACEOF
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_STRING "$PACKAGE_STRING"
1218 _ACEOF
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223 _ACEOF
1226 # Let the site file select an alternate cache file if it wants to.
1227 # Prefer explicitly selected file to automatically selected ones.
1228 if test -z "$CONFIG_SITE"; then
1229 if test "x$prefix" != xNONE; then
1230 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1231 else
1232 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 for ac_site_file in $CONFIG_SITE; do
1236 if test -r "$ac_site_file"; then
1237 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238 echo "$as_me: loading site script $ac_site_file" >&6;}
1239 sed 's/^/| /' "$ac_site_file" >&5
1240 . "$ac_site_file"
1242 done
1244 if test -r "$cache_file"; then
1245 # Some versions of bash will fail to source /dev/null (special
1246 # files actually), so we avoid doing that.
1247 if test -f "$cache_file"; then
1248 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249 echo "$as_me: loading cache $cache_file" >&6;}
1250 case $cache_file in
1251 [\\/]* | ?:[\\/]* ) . $cache_file;;
1252 *) . ./$cache_file;;
1253 esac
1255 else
1256 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257 echo "$as_me: creating cache $cache_file" >&6;}
1258 >$cache_file
1261 # Check that the precious variables saved in the cache have kept the same
1262 # value.
1263 ac_cache_corrupted=false
1264 for ac_var in `(set) 2>&1 |
1265 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1266 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267 eval ac_new_set=\$ac_env_${ac_var}_set
1268 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269 eval ac_new_val="\$ac_env_${ac_var}_value"
1270 case $ac_old_set,$ac_new_set in
1271 set,)
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1274 ac_cache_corrupted=: ;;
1275 ,set)
1276 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278 ac_cache_corrupted=: ;;
1279 ,);;
1281 if test "x$ac_old_val" != "x$ac_new_val"; then
1282 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1283 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1284 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1285 echo "$as_me: former value: $ac_old_val" >&2;}
1286 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1287 echo "$as_me: current value: $ac_new_val" >&2;}
1288 ac_cache_corrupted=:
1289 fi;;
1290 esac
1291 # Pass precious variables to config.status.
1292 if test "$ac_new_set" = set; then
1293 case $ac_new_val in
1294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1296 *) ac_arg=$ac_var=$ac_new_val ;;
1297 esac
1298 case " $ac_configure_args " in
1299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1300 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301 esac
1303 done
1304 if $ac_cache_corrupted; then
1305 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1308 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309 { (exit 1); exit 1; }; }
1312 ac_ext=c
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1337 ac_aux_dir=
1338 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1339 if test -f $ac_dir/install-sh; then
1340 ac_aux_dir=$ac_dir
1341 ac_install_sh="$ac_aux_dir/install-sh -c"
1342 break
1343 elif test -f $ac_dir/install.sh; then
1344 ac_aux_dir=$ac_dir
1345 ac_install_sh="$ac_aux_dir/install.sh -c"
1346 break
1347 elif test -f $ac_dir/shtool; then
1348 ac_aux_dir=$ac_dir
1349 ac_install_sh="$ac_aux_dir/shtool install -c"
1350 break
1352 done
1353 if test -z "$ac_aux_dir"; then
1354 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1355 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1356 { (exit 1); exit 1; }; }
1358 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1359 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1360 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1362 # Find a good install program. We prefer a C program (faster),
1363 # so one script is as good as another. But avoid the broken or
1364 # incompatible versions:
1365 # SysV /etc/install, /usr/sbin/install
1366 # SunOS /usr/etc/install
1367 # IRIX /sbin/install
1368 # AIX /bin/install
1369 # AmigaOS /C/install, which installs bootblocks on floppy discs
1370 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1371 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1372 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1373 # OS/2's system install, which has a completely different semantic
1374 # ./install, which can be erroneously created by make from ./install.sh.
1375 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1376 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1377 if test -z "$INSTALL"; then
1378 if test "${ac_cv_path_install+set}" = set; then
1379 echo $ECHO_N "(cached) $ECHO_C" >&6
1380 else
1381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1382 for as_dir in $PATH
1384 IFS=$as_save_IFS
1385 test -z "$as_dir" && as_dir=.
1386 # Account for people who put trailing slashes in PATH elements.
1387 case $as_dir/ in
1388 ./ | .// | /cC/* | \
1389 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1390 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1391 /usr/ucb/* ) ;;
1393 # OSF1 and SCO ODT 3.0 have their own names for install.
1394 # Don't use installbsd from OSF since it installs stuff as root
1395 # by default.
1396 for ac_prog in ginstall scoinst install; do
1397 for ac_exec_ext in '' $ac_executable_extensions; do
1398 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1399 if test $ac_prog = install &&
1400 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1401 # AIX install. It has an incompatible calling convention.
1403 elif test $ac_prog = install &&
1404 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1405 # program-specific install script used by HP pwplus--don't use.
1407 else
1408 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1409 break 3
1412 done
1413 done
1415 esac
1416 done
1420 if test "${ac_cv_path_install+set}" = set; then
1421 INSTALL=$ac_cv_path_install
1422 else
1423 # As a last resort, use the slow shell script. We don't cache a
1424 # path for INSTALL within a source directory, because that will
1425 # break other packages using the cache if that directory is
1426 # removed, or if the path is relative.
1427 INSTALL=$ac_install_sh
1430 echo "$as_me:$LINENO: result: $INSTALL" >&5
1431 echo "${ECHO_T}$INSTALL" >&6
1433 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1434 # It thinks the first close brace ends the variable substitution.
1435 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1437 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1439 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1441 ac_ext=c
1442 ac_cpp='$CPP $CPPFLAGS'
1443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1446 if test -n "$ac_tool_prefix"; then
1447 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1448 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1449 echo "$as_me:$LINENO: checking for $ac_word" >&5
1450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1451 if test "${ac_cv_prog_CC+set}" = set; then
1452 echo $ECHO_N "(cached) $ECHO_C" >&6
1453 else
1454 if test -n "$CC"; then
1455 ac_cv_prog_CC="$CC" # Let the user override the test.
1456 else
1457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1458 for as_dir in $PATH
1460 IFS=$as_save_IFS
1461 test -z "$as_dir" && as_dir=.
1462 for ac_exec_ext in '' $ac_executable_extensions; do
1463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1464 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1466 break 2
1468 done
1469 done
1473 CC=$ac_cv_prog_CC
1474 if test -n "$CC"; then
1475 echo "$as_me:$LINENO: result: $CC" >&5
1476 echo "${ECHO_T}$CC" >&6
1477 else
1478 echo "$as_me:$LINENO: result: no" >&5
1479 echo "${ECHO_T}no" >&6
1483 if test -z "$ac_cv_prog_CC"; then
1484 ac_ct_CC=$CC
1485 # Extract the first word of "gcc", so it can be a program name with args.
1486 set dummy gcc; ac_word=$2
1487 echo "$as_me:$LINENO: checking for $ac_word" >&5
1488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1489 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1490 echo $ECHO_N "(cached) $ECHO_C" >&6
1491 else
1492 if test -n "$ac_ct_CC"; then
1493 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1494 else
1495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1496 for as_dir in $PATH
1498 IFS=$as_save_IFS
1499 test -z "$as_dir" && as_dir=.
1500 for ac_exec_ext in '' $ac_executable_extensions; do
1501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1502 ac_cv_prog_ac_ct_CC="gcc"
1503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1504 break 2
1506 done
1507 done
1511 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1512 if test -n "$ac_ct_CC"; then
1513 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1514 echo "${ECHO_T}$ac_ct_CC" >&6
1515 else
1516 echo "$as_me:$LINENO: result: no" >&5
1517 echo "${ECHO_T}no" >&6
1520 CC=$ac_ct_CC
1521 else
1522 CC="$ac_cv_prog_CC"
1525 if test -z "$CC"; then
1526 if test -n "$ac_tool_prefix"; then
1527 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1528 set dummy ${ac_tool_prefix}cc; ac_word=$2
1529 echo "$as_me:$LINENO: checking for $ac_word" >&5
1530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531 if test "${ac_cv_prog_CC+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 else
1534 if test -n "$CC"; then
1535 ac_cv_prog_CC="$CC" # Let the user override the test.
1536 else
1537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538 for as_dir in $PATH
1540 IFS=$as_save_IFS
1541 test -z "$as_dir" && as_dir=.
1542 for ac_exec_ext in '' $ac_executable_extensions; do
1543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1544 ac_cv_prog_CC="${ac_tool_prefix}cc"
1545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1546 break 2
1548 done
1549 done
1553 CC=$ac_cv_prog_CC
1554 if test -n "$CC"; then
1555 echo "$as_me:$LINENO: result: $CC" >&5
1556 echo "${ECHO_T}$CC" >&6
1557 else
1558 echo "$as_me:$LINENO: result: no" >&5
1559 echo "${ECHO_T}no" >&6
1563 if test -z "$ac_cv_prog_CC"; then
1564 ac_ct_CC=$CC
1565 # Extract the first word of "cc", so it can be a program name with args.
1566 set dummy cc; ac_word=$2
1567 echo "$as_me:$LINENO: checking for $ac_word" >&5
1568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1569 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1571 else
1572 if test -n "$ac_ct_CC"; then
1573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1574 else
1575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 for as_dir in $PATH
1578 IFS=$as_save_IFS
1579 test -z "$as_dir" && as_dir=.
1580 for ac_exec_ext in '' $ac_executable_extensions; do
1581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1582 ac_cv_prog_ac_ct_CC="cc"
1583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1584 break 2
1586 done
1587 done
1591 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1592 if test -n "$ac_ct_CC"; then
1593 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1594 echo "${ECHO_T}$ac_ct_CC" >&6
1595 else
1596 echo "$as_me:$LINENO: result: no" >&5
1597 echo "${ECHO_T}no" >&6
1600 CC=$ac_ct_CC
1601 else
1602 CC="$ac_cv_prog_CC"
1606 if test -z "$CC"; then
1607 # Extract the first word of "cc", so it can be a program name with args.
1608 set dummy cc; ac_word=$2
1609 echo "$as_me:$LINENO: checking for $ac_word" >&5
1610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611 if test "${ac_cv_prog_CC+set}" = set; then
1612 echo $ECHO_N "(cached) $ECHO_C" >&6
1613 else
1614 if test -n "$CC"; then
1615 ac_cv_prog_CC="$CC" # Let the user override the test.
1616 else
1617 ac_prog_rejected=no
1618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 for as_dir in $PATH
1621 IFS=$as_save_IFS
1622 test -z "$as_dir" && as_dir=.
1623 for ac_exec_ext in '' $ac_executable_extensions; do
1624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1625 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1626 ac_prog_rejected=yes
1627 continue
1629 ac_cv_prog_CC="cc"
1630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1631 break 2
1633 done
1634 done
1636 if test $ac_prog_rejected = yes; then
1637 # We found a bogon in the path, so make sure we never use it.
1638 set dummy $ac_cv_prog_CC
1639 shift
1640 if test $# != 0; then
1641 # We chose a different compiler from the bogus one.
1642 # However, it has the same basename, so the bogon will be chosen
1643 # first if we set CC to just the basename; use the full file name.
1644 shift
1645 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1650 CC=$ac_cv_prog_CC
1651 if test -n "$CC"; then
1652 echo "$as_me:$LINENO: result: $CC" >&5
1653 echo "${ECHO_T}$CC" >&6
1654 else
1655 echo "$as_me:$LINENO: result: no" >&5
1656 echo "${ECHO_T}no" >&6
1660 if test -z "$CC"; then
1661 if test -n "$ac_tool_prefix"; then
1662 for ac_prog in cl
1664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1665 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1666 echo "$as_me:$LINENO: checking for $ac_word" >&5
1667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668 if test "${ac_cv_prog_CC+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1670 else
1671 if test -n "$CC"; then
1672 ac_cv_prog_CC="$CC" # Let the user override the test.
1673 else
1674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675 for as_dir in $PATH
1677 IFS=$as_save_IFS
1678 test -z "$as_dir" && as_dir=.
1679 for ac_exec_ext in '' $ac_executable_extensions; do
1680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1681 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683 break 2
1685 done
1686 done
1690 CC=$ac_cv_prog_CC
1691 if test -n "$CC"; then
1692 echo "$as_me:$LINENO: result: $CC" >&5
1693 echo "${ECHO_T}$CC" >&6
1694 else
1695 echo "$as_me:$LINENO: result: no" >&5
1696 echo "${ECHO_T}no" >&6
1699 test -n "$CC" && break
1700 done
1702 if test -z "$CC"; then
1703 ac_ct_CC=$CC
1704 for ac_prog in cl
1706 # Extract the first word of "$ac_prog", so it can be a program name with args.
1707 set dummy $ac_prog; ac_word=$2
1708 echo "$as_me:$LINENO: checking for $ac_word" >&5
1709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1712 else
1713 if test -n "$ac_ct_CC"; then
1714 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1715 else
1716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 for as_dir in $PATH
1719 IFS=$as_save_IFS
1720 test -z "$as_dir" && as_dir=.
1721 for ac_exec_ext in '' $ac_executable_extensions; do
1722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723 ac_cv_prog_ac_ct_CC="$ac_prog"
1724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725 break 2
1727 done
1728 done
1732 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1733 if test -n "$ac_ct_CC"; then
1734 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1735 echo "${ECHO_T}$ac_ct_CC" >&6
1736 else
1737 echo "$as_me:$LINENO: result: no" >&5
1738 echo "${ECHO_T}no" >&6
1741 test -n "$ac_ct_CC" && break
1742 done
1744 CC=$ac_ct_CC
1750 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1751 See \`config.log' for more details." >&5
1752 echo "$as_me: error: no acceptable C compiler found in \$PATH
1753 See \`config.log' for more details." >&2;}
1754 { (exit 1); exit 1; }; }
1756 # Provide some information about the compiler.
1757 echo "$as_me:$LINENO:" \
1758 "checking for C compiler version" >&5
1759 ac_compiler=`set X $ac_compile; echo $2`
1760 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1761 (eval $ac_compiler --version </dev/null >&5) 2>&5
1762 ac_status=$?
1763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764 (exit $ac_status); }
1765 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1766 (eval $ac_compiler -v </dev/null >&5) 2>&5
1767 ac_status=$?
1768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1769 (exit $ac_status); }
1770 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1771 (eval $ac_compiler -V </dev/null >&5) 2>&5
1772 ac_status=$?
1773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1774 (exit $ac_status); }
1776 cat >conftest.$ac_ext <<_ACEOF
1777 /* confdefs.h. */
1778 _ACEOF
1779 cat confdefs.h >>conftest.$ac_ext
1780 cat >>conftest.$ac_ext <<_ACEOF
1781 /* end confdefs.h. */
1784 main ()
1788 return 0;
1790 _ACEOF
1791 ac_clean_files_save=$ac_clean_files
1792 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1793 # Try to create an executable without -o first, disregard a.out.
1794 # It will help us diagnose broken compilers, and finding out an intuition
1795 # of exeext.
1796 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1797 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1798 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1799 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1800 (eval $ac_link_default) 2>&5
1801 ac_status=$?
1802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1803 (exit $ac_status); }; then
1804 # Find the output, starting from the most likely. This scheme is
1805 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1806 # resort.
1808 # Be careful to initialize this variable, since it used to be cached.
1809 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1810 ac_cv_exeext=
1811 # b.out is created by i960 compilers.
1812 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1814 test -f "$ac_file" || continue
1815 case $ac_file in
1816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1818 conftest.$ac_ext )
1819 # This is the source file.
1821 [ab].out )
1822 # We found the default executable, but exeext='' is most
1823 # certainly right.
1824 break;;
1825 *.* )
1826 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1827 # FIXME: I believe we export ac_cv_exeext for Libtool,
1828 # but it would be cool to find out if it's true. Does anybody
1829 # maintain Libtool? --akim.
1830 export ac_cv_exeext
1831 break;;
1833 break;;
1834 esac
1835 done
1836 else
1837 echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1840 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1841 See \`config.log' for more details." >&5
1842 echo "$as_me: error: C compiler cannot create executables
1843 See \`config.log' for more details." >&2;}
1844 { (exit 77); exit 77; }; }
1847 ac_exeext=$ac_cv_exeext
1848 echo "$as_me:$LINENO: result: $ac_file" >&5
1849 echo "${ECHO_T}$ac_file" >&6
1851 # Check the compiler produces executables we can run. If not, either
1852 # the compiler is broken, or we cross compile.
1853 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1854 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1855 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1856 # If not cross compiling, check that we can run a simple program.
1857 if test "$cross_compiling" != yes; then
1858 if { ac_try='./$ac_file'
1859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1860 (eval $ac_try) 2>&5
1861 ac_status=$?
1862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863 (exit $ac_status); }; }; then
1864 cross_compiling=no
1865 else
1866 if test "$cross_compiling" = maybe; then
1867 cross_compiling=yes
1868 else
1869 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1870 If you meant to cross compile, use \`--host'.
1871 See \`config.log' for more details." >&5
1872 echo "$as_me: error: cannot run C compiled programs.
1873 If you meant to cross compile, use \`--host'.
1874 See \`config.log' for more details." >&2;}
1875 { (exit 1); exit 1; }; }
1879 echo "$as_me:$LINENO: result: yes" >&5
1880 echo "${ECHO_T}yes" >&6
1882 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1883 ac_clean_files=$ac_clean_files_save
1884 # Check the compiler produces executables we can run. If not, either
1885 # the compiler is broken, or we cross compile.
1886 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1887 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1888 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1889 echo "${ECHO_T}$cross_compiling" >&6
1891 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1892 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1894 (eval $ac_link) 2>&5
1895 ac_status=$?
1896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897 (exit $ac_status); }; then
1898 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1899 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1900 # work properly (i.e., refer to `conftest.exe'), while it won't with
1901 # `rm'.
1902 for ac_file in conftest.exe conftest conftest.*; do
1903 test -f "$ac_file" || continue
1904 case $ac_file in
1905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1906 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1907 export ac_cv_exeext
1908 break;;
1909 * ) break;;
1910 esac
1911 done
1912 else
1913 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1914 See \`config.log' for more details." >&5
1915 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1916 See \`config.log' for more details." >&2;}
1917 { (exit 1); exit 1; }; }
1920 rm -f conftest$ac_cv_exeext
1921 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1922 echo "${ECHO_T}$ac_cv_exeext" >&6
1924 rm -f conftest.$ac_ext
1925 EXEEXT=$ac_cv_exeext
1926 ac_exeext=$EXEEXT
1927 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1928 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1929 if test "${ac_cv_objext+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932 cat >conftest.$ac_ext <<_ACEOF
1933 /* confdefs.h. */
1934 _ACEOF
1935 cat confdefs.h >>conftest.$ac_ext
1936 cat >>conftest.$ac_ext <<_ACEOF
1937 /* end confdefs.h. */
1940 main ()
1944 return 0;
1946 _ACEOF
1947 rm -f conftest.o conftest.obj
1948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1949 (eval $ac_compile) 2>&5
1950 ac_status=$?
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }; then
1953 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1954 case $ac_file in
1955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1956 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1957 break;;
1958 esac
1959 done
1960 else
1961 echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1964 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1965 See \`config.log' for more details." >&5
1966 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1967 See \`config.log' for more details." >&2;}
1968 { (exit 1); exit 1; }; }
1971 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1973 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1974 echo "${ECHO_T}$ac_cv_objext" >&6
1975 OBJEXT=$ac_cv_objext
1976 ac_objext=$OBJEXT
1977 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1978 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1979 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1981 else
1982 cat >conftest.$ac_ext <<_ACEOF
1983 /* confdefs.h. */
1984 _ACEOF
1985 cat confdefs.h >>conftest.$ac_ext
1986 cat >>conftest.$ac_ext <<_ACEOF
1987 /* end confdefs.h. */
1990 main ()
1992 #ifndef __GNUC__
1993 choke me
1994 #endif
1997 return 0;
1999 _ACEOF
2000 rm -f conftest.$ac_objext
2001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2002 (eval $ac_compile) 2>conftest.er1
2003 ac_status=$?
2004 grep -v '^ *+' conftest.er1 >conftest.err
2005 rm -f conftest.er1
2006 cat conftest.err >&5
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); } &&
2009 { ac_try='test -z "$ac_c_werror_flag"
2010 || test ! -s conftest.err'
2011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2012 (eval $ac_try) 2>&5
2013 ac_status=$?
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }; } &&
2016 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2022 ac_compiler_gnu=yes
2023 else
2024 echo "$as_me: failed program was:" >&5
2025 sed 's/^/| /' conftest.$ac_ext >&5
2027 ac_compiler_gnu=no
2029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2030 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2033 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2034 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2035 GCC=`test $ac_compiler_gnu = yes && echo yes`
2036 ac_test_CFLAGS=${CFLAGS+set}
2037 ac_save_CFLAGS=$CFLAGS
2038 CFLAGS="-g"
2039 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2040 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2041 if test "${ac_cv_prog_cc_g+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 else
2044 cat >conftest.$ac_ext <<_ACEOF
2045 /* confdefs.h. */
2046 _ACEOF
2047 cat confdefs.h >>conftest.$ac_ext
2048 cat >>conftest.$ac_ext <<_ACEOF
2049 /* end confdefs.h. */
2052 main ()
2056 return 0;
2058 _ACEOF
2059 rm -f conftest.$ac_objext
2060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2061 (eval $ac_compile) 2>conftest.er1
2062 ac_status=$?
2063 grep -v '^ *+' conftest.er1 >conftest.err
2064 rm -f conftest.er1
2065 cat conftest.err >&5
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); } &&
2068 { ac_try='test -z "$ac_c_werror_flag"
2069 || test ! -s conftest.err'
2070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2071 (eval $ac_try) 2>&5
2072 ac_status=$?
2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074 (exit $ac_status); }; } &&
2075 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2081 ac_cv_prog_cc_g=yes
2082 else
2083 echo "$as_me: failed program was:" >&5
2084 sed 's/^/| /' conftest.$ac_ext >&5
2086 ac_cv_prog_cc_g=no
2088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2090 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2091 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2092 if test "$ac_test_CFLAGS" = set; then
2093 CFLAGS=$ac_save_CFLAGS
2094 elif test $ac_cv_prog_cc_g = yes; then
2095 if test "$GCC" = yes; then
2096 CFLAGS="-g -O2"
2097 else
2098 CFLAGS="-g"
2100 else
2101 if test "$GCC" = yes; then
2102 CFLAGS="-O2"
2103 else
2104 CFLAGS=
2107 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2108 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2109 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2111 else
2112 ac_cv_prog_cc_stdc=no
2113 ac_save_CC=$CC
2114 cat >conftest.$ac_ext <<_ACEOF
2115 /* confdefs.h. */
2116 _ACEOF
2117 cat confdefs.h >>conftest.$ac_ext
2118 cat >>conftest.$ac_ext <<_ACEOF
2119 /* end confdefs.h. */
2120 #include <stdarg.h>
2121 #include <stdio.h>
2122 #include <sys/types.h>
2123 #include <sys/stat.h>
2124 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2125 struct buf { int x; };
2126 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2127 static char *e (p, i)
2128 char **p;
2129 int i;
2131 return p[i];
2133 static char *f (char * (*g) (char **, int), char **p, ...)
2135 char *s;
2136 va_list v;
2137 va_start (v,p);
2138 s = g (p, va_arg (v,int));
2139 va_end (v);
2140 return s;
2143 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2144 function prototypes and stuff, but not '\xHH' hex character constants.
2145 These don't provoke an error unfortunately, instead are silently treated
2146 as 'x'. The following induces an error, until -std1 is added to get
2147 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2148 array size at least. It's necessary to write '\x00'==0 to get something
2149 that's true only with -std1. */
2150 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2152 int test (int i, double x);
2153 struct s1 {int (*f) (int a);};
2154 struct s2 {int (*f) (double a);};
2155 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2156 int argc;
2157 char **argv;
2159 main ()
2161 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2163 return 0;
2165 _ACEOF
2166 # Don't try gcc -ansi; that turns off useful extensions and
2167 # breaks some systems' header files.
2168 # AIX -qlanglvl=ansi
2169 # Ultrix and OSF/1 -std1
2170 # HP-UX 10.20 and later -Ae
2171 # HP-UX older versions -Aa -D_HPUX_SOURCE
2172 # SVR4 -Xc -D__EXTENSIONS__
2173 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2175 CC="$ac_save_CC $ac_arg"
2176 rm -f conftest.$ac_objext
2177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2178 (eval $ac_compile) 2>conftest.er1
2179 ac_status=$?
2180 grep -v '^ *+' conftest.er1 >conftest.err
2181 rm -f conftest.er1
2182 cat conftest.err >&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); } &&
2185 { ac_try='test -z "$ac_c_werror_flag"
2186 || test ! -s conftest.err'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 (eval $ac_try) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; } &&
2192 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2198 ac_cv_prog_cc_stdc=$ac_arg
2199 break
2200 else
2201 echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2205 rm -f conftest.err conftest.$ac_objext
2206 done
2207 rm -f conftest.$ac_ext conftest.$ac_objext
2208 CC=$ac_save_CC
2212 case "x$ac_cv_prog_cc_stdc" in
2213 x|xno)
2214 echo "$as_me:$LINENO: result: none needed" >&5
2215 echo "${ECHO_T}none needed" >&6 ;;
2217 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2218 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2219 CC="$CC $ac_cv_prog_cc_stdc" ;;
2220 esac
2222 # Some people use a C++ compiler to compile C. Since we use `exit',
2223 # in C++ we need to declare it. In case someone uses the same compiler
2224 # for both compiling C and C++ we need to have the C++ compiler decide
2225 # the declaration of exit, since it's the most demanding environment.
2226 cat >conftest.$ac_ext <<_ACEOF
2227 #ifndef __cplusplus
2228 choke me
2229 #endif
2230 _ACEOF
2231 rm -f conftest.$ac_objext
2232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2233 (eval $ac_compile) 2>conftest.er1
2234 ac_status=$?
2235 grep -v '^ *+' conftest.er1 >conftest.err
2236 rm -f conftest.er1
2237 cat conftest.err >&5
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); } &&
2240 { ac_try='test -z "$ac_c_werror_flag"
2241 || test ! -s conftest.err'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 (eval $ac_try) 2>&5
2244 ac_status=$?
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; } &&
2247 { ac_try='test -s conftest.$ac_objext'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 (eval $ac_try) 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; }; then
2253 for ac_declaration in \
2254 '' \
2255 'extern "C" void std::exit (int) throw (); using std::exit;' \
2256 'extern "C" void std::exit (int); using std::exit;' \
2257 'extern "C" void exit (int) throw ();' \
2258 'extern "C" void exit (int);' \
2259 'void exit (int);'
2261 cat >conftest.$ac_ext <<_ACEOF
2262 /* confdefs.h. */
2263 _ACEOF
2264 cat confdefs.h >>conftest.$ac_ext
2265 cat >>conftest.$ac_ext <<_ACEOF
2266 /* end confdefs.h. */
2267 $ac_declaration
2268 #include <stdlib.h>
2270 main ()
2272 exit (42);
2274 return 0;
2276 _ACEOF
2277 rm -f conftest.$ac_objext
2278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2279 (eval $ac_compile) 2>conftest.er1
2280 ac_status=$?
2281 grep -v '^ *+' conftest.er1 >conftest.err
2282 rm -f conftest.er1
2283 cat conftest.err >&5
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); } &&
2286 { ac_try='test -z "$ac_c_werror_flag"
2287 || test ! -s conftest.err'
2288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289 (eval $ac_try) 2>&5
2290 ac_status=$?
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; } &&
2293 { ac_try='test -s conftest.$ac_objext'
2294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295 (eval $ac_try) 2>&5
2296 ac_status=$?
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; }; then
2300 else
2301 echo "$as_me: failed program was:" >&5
2302 sed 's/^/| /' conftest.$ac_ext >&5
2304 continue
2306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2307 cat >conftest.$ac_ext <<_ACEOF
2308 /* confdefs.h. */
2309 _ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h. */
2313 $ac_declaration
2315 main ()
2317 exit (42);
2319 return 0;
2321 _ACEOF
2322 rm -f conftest.$ac_objext
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324 (eval $ac_compile) 2>conftest.er1
2325 ac_status=$?
2326 grep -v '^ *+' conftest.er1 >conftest.err
2327 rm -f conftest.er1
2328 cat conftest.err >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); } &&
2331 { ac_try='test -z "$ac_c_werror_flag"
2332 || test ! -s conftest.err'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 (eval $ac_try) 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; } &&
2338 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2344 break
2345 else
2346 echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2351 done
2352 rm -f conftest*
2353 if test -n "$ac_declaration"; then
2354 echo '#ifdef __cplusplus' >>confdefs.h
2355 echo $ac_declaration >>confdefs.h
2356 echo '#endif' >>confdefs.h
2359 else
2360 echo "$as_me: failed program was:" >&5
2361 sed 's/^/| /' conftest.$ac_ext >&5
2364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2365 ac_ext=c
2366 ac_cpp='$CPP $CPPFLAGS'
2367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2372 # Put a plausible default for CC_FOR_BUILD in Makefile.
2373 if test "x$cross_compiling" = "xno"; then
2374 CC_FOR_BUILD='$(CC)'
2375 else
2376 CC_FOR_BUILD=gcc
2378 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
2380 ALL_LINGUAS=
2381 # If we haven't got the data from the intl directory,
2382 # assume NLS is disabled.
2383 USE_NLS=no
2384 LIBINTL=
2385 LIBINTL_DEP=
2386 INCINTL=
2387 XGETTEXT=
2388 GMSGFMT=
2389 POSUB=
2391 if test -f ../intl/config.intl; then
2392 . ../intl/config.intl
2394 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2395 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2396 if test x"$USE_NLS" != xyes; then
2397 echo "$as_me:$LINENO: result: no" >&5
2398 echo "${ECHO_T}no" >&6
2399 else
2400 echo "$as_me:$LINENO: result: yes" >&5
2401 echo "${ECHO_T}yes" >&6
2403 cat >>confdefs.h <<\_ACEOF
2404 #define ENABLE_NLS 1
2405 _ACEOF
2408 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2409 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2410 # Look for .po and .gmo files in the source directory.
2411 CATALOGS=
2412 XLINGUAS=
2413 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2414 # If there aren't any .gmo files the shell will give us the
2415 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2416 # weeded out.
2417 case "$cat" in *\**)
2418 continue;;
2419 esac
2420 # The quadruple backslash is collapsed to a double backslash
2421 # by the backticks, then collapsed again by the double quotes,
2422 # leaving us with one backslash in the sed expression (right
2423 # before the dot that mustn't act as a wildcard).
2424 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2425 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2426 # The user is allowed to set LINGUAS to a list of languages to
2427 # install catalogs for. If it's empty that means "all of them."
2428 if test "x$LINGUAS" = x; then
2429 CATALOGS="$CATALOGS $cat"
2430 XLINGUAS="$XLINGUAS $lang"
2431 else
2432 case "$LINGUAS" in *$lang*)
2433 CATALOGS="$CATALOGS $cat"
2434 XLINGUAS="$XLINGUAS $lang"
2436 esac
2438 done
2439 LINGUAS="$XLINGUAS"
2440 echo "$as_me:$LINENO: result: $LINGUAS" >&5
2441 echo "${ECHO_T}$LINGUAS" >&6
2444 DATADIRNAME=share
2446 INSTOBJEXT=.mo
2448 GENCAT=gencat
2450 CATOBJEXT=.gmo
2455 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
2456 if test "${enable_sim_alignment+set}" = set; then
2457 enableval="$enable_sim_alignment"
2458 case "${enableval}" in
2459 yes | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
2460 no | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
2461 0 | default | DEFAULT) sim_alignment="-DWITH_ALIGNMENT=0";;
2462 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
2463 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
2464 { (exit 1); exit 1; }; }; sim_alignment="";;
2465 esac
2466 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
2467 echo "Setting alignment flags = $sim_alignment" 6>&1
2469 else
2470 sim_alignment=""
2473 # Check whether --enable-sim-assert or --disable-sim-assert was given.
2474 if test "${enable_sim_assert+set}" = set; then
2475 enableval="$enable_sim_assert"
2476 case "${enableval}" in
2477 yes) sim_assert="-DWITH_ASSERT=1";;
2478 no) sim_assert="-DWITH_ASSERT=0";;
2479 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-assert does not take a value\"" >&5
2480 echo "$as_me: error: \"--enable-sim-assert does not take a value\"" >&2;}
2481 { (exit 1); exit 1; }; }; sim_assert="";;
2482 esac
2483 if test x"$silent" != x"yes" && test x"$sim_assert" != x""; then
2484 echo "Setting assert flags = $sim_assert" 6>&1
2486 else
2487 sim_assert=""
2490 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
2491 if test "${enable_sim_bitsize+set}" = set; then
2492 enableval="$enable_sim_bitsize"
2493 case "${enableval}" in
2494 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
2495 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5
2496 echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;}
2497 { (exit 1); exit 1; }; }; sim_bitsize="";;
2498 esac
2499 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
2500 echo "Setting bitsize flags = $sim_bitsize" 6>&1
2502 else
2503 sim_bitsize=""
2506 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
2507 if test "${enable_sim_bswap+set}" = set; then
2508 enableval="$enable_sim_bswap"
2509 case "${enableval}" in
2510 yes) sim_bswap="-DWITH_BSWAP=1";;
2511 no) sim_bswap="-DWITH_BSWAP=0";;
2512 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
2513 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
2514 { (exit 1); exit 1; }; }; sim_bswap="";;
2515 esac
2516 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
2517 echo "Setting bswap flags = $sim_bswap" 6>&1
2519 else
2520 sim_bswap=""
2523 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
2524 if test "${enable_sim_cflags+set}" = set; then
2525 enableval="$enable_sim_cflags"
2526 case "${enableval}" in
2527 yes) sim_cflags="-O2 -fomit-frame-pointer";;
2528 no) sim_cflags="";;
2529 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2530 esac
2531 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
2532 echo "Setting sim cflags = $sim_cflags" 6>&1
2534 else
2535 sim_cflags=""
2538 # Check whether --enable-sim-config or --disable-sim-config was given.
2539 if test "${enable_sim_config+set}" = set; then
2540 enableval="$enable_sim_config"
2541 case "${enableval}" in
2542 yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-config=file\"" >&5
2543 echo "$as_me: error: \"No value supplied for --enable-sim-config=file\"" >&2;}
2544 { (exit 1); exit 1; }; };;
2545 *) if test -f "${srcdir}/${enableval}"; then
2546 sim_config="${enableval}";
2547 elif test -f "${srcdir}/${enableval}-config.h"; then
2548 sim_config="${enableval}-config.h"
2549 else
2550 { { echo "$as_me:$LINENO: error: \"Config file $enableval was not found\"" >&5
2551 echo "$as_me: error: \"Config file $enableval was not found\"" >&2;}
2552 { (exit 1); exit 1; }; };
2553 sim_config=std-config.h
2554 fi;;
2555 esac
2556 if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
2557 echo "Setting config flags = $sim_config" 6>&1
2559 else
2560 sim_config="std-config.h"
2561 if test x"$silent" != x"yes"; then
2562 echo "Setting config flags = $sim_config" 6>&1
2566 # Check whether --enable-sim-decode-mechanism or --disable-sim-decode-mechanism was given.
2567 if test "${enable_sim_decode_mechanism+set}" = set; then
2568 enableval="$enable_sim_decode_mechanism"
2569 case "${enableval}" in
2570 yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-decode-mechanism=file\"" >&5
2571 echo "$as_me: error: \"No value supplied for --enable-sim-decode-mechanism=file\"" >&2;}
2572 { (exit 1); exit 1; }; };;
2573 array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";;
2574 *) { { echo "$as_me:$LINENO: error: \"File $enableval is not an opcode rules file\"" >&5
2575 echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;}
2576 { (exit 1); exit 1; }; };
2577 sim_decode_mechanism="switch";;
2578 esac
2579 if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
2580 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
2582 else
2583 sim_decode_mechanism=""
2584 if test x"$silent" != x"yes"; then
2585 echo "Setting decode mechanism flags = $sim_decode_mechanism"
2589 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
2590 if test "${enable_sim_default_model+set}" = set; then
2591 enableval="$enable_sim_default_model"
2592 case "${enableval}" in
2593 yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-default-model=model\"" >&5
2594 echo "$as_me: error: \"No value supplied for --enable-sim-default-model=model\"" >&2;}
2595 { (exit 1); exit 1; }; };;
2596 *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
2597 esac
2598 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
2599 echo "Setting default-model flags = $sim_default_model" 6>&1
2601 else
2602 sim_default_model=""
2605 # Check whether --enable-sim-duplicate or --disable-sim-duplicate was given.
2606 if test "${enable_sim_duplicate+set}" = set; then
2607 enableval="$enable_sim_duplicate"
2608 case "${enableval}" in
2609 yes) sim_dup="-E";;
2610 no) sim_dup="";;
2611 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-duplicate does not take a value\"" >&5
2612 echo "$as_me: error: \"--enable-sim-duplicate does not take a value\"" >&2;}
2613 { (exit 1); exit 1; }; }; sim_dup="";;
2614 esac
2615 if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
2616 echo "Setting duplicate flags = $sim_dup" 6>&1
2618 else
2619 sim_dup="-E"
2620 if test x"$silent" != x"yes"; then
2621 echo "Setting duplicate flags = $sim_dup" 6>&1
2625 # Check whether --enable-sim-endian or --disable-sim-endian was given.
2626 if test "${enable_sim_endian+set}" = set; then
2627 enableval="$enable_sim_endian"
2628 case "${enableval}" in
2629 yes) case "$target" in
2630 *powerpc-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
2631 *powerpcle-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
2632 *) echo "Unknown target $target" 1>&6; sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
2633 esac;;
2634 no) sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
2635 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
2636 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
2637 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
2638 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
2639 { (exit 1); exit 1; }; }; sim_endian="";;
2640 esac
2641 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
2642 echo "Setting endian flags = $sim_endian" 6>&1
2644 else
2645 sim_endian=""
2648 # Check whether --enable-sim-env or --disable-sim-env was given.
2649 if test "${enable_sim_env+set}" = set; then
2650 enableval="$enable_sim_env"
2651 case "${enableval}" in
2652 operating | os | oea) sim_env="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
2653 virtual | vea) sim_env="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
2654 user | uea) sim_env="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
2655 no) sim_env="-DWITH_ENVIRONMENT=0";;
2656 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-env\"" >&5
2657 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-env\"" >&2;}
2658 { (exit 1); exit 1; }; }; sim_env="";;
2659 esac
2660 if test x"$silent" != x"yes" && test x"$sim_env" != x""; then
2661 echo "Setting env flags = $sim_env" 6>&1
2663 else
2664 sim_env=""
2667 # Check whether --enable-sim-filter or --disable-sim-filter was given.
2668 if test "${enable_sim_filter+set}" = set; then
2669 enableval="$enable_sim_filter"
2670 case "${enableval}" in
2671 yes) { { echo "$as_me:$LINENO: error: \"--enable-sim-filter must be specified with a rule to filter or no\"" >&5
2672 echo "$as_me: error: \"--enable-sim-filter must be specified with a rule to filter or no\"" >&2;}
2673 { (exit 1); exit 1; }; }; sim_filter="";;
2674 no) sim_filter="";;
2675 *) sim_filter="-F $enableval";;
2676 esac
2677 if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
2678 echo "Setting filter flags = $sim_filter" 6>&1
2680 else
2681 sim_filter="-F 32,f,o"
2682 if test x"$silent" != x"yes"; then
2683 echo "Setting filter flags = $sim_filter" 6>&1
2687 # Check whether --enable-sim-float or --disable-sim-float was given.
2688 if test "${enable_sim_float+set}" = set; then
2689 enableval="$enable_sim_float"
2690 case "${enableval}" in
2691 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
2692 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
2693 altivec) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
2694 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
2695 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&5
2696 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&2;}
2697 { (exit 1); exit 1; }; }; sim_float="";;
2698 esac
2699 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
2700 echo "Setting float flags = $sim_float" 6>&1
2702 else
2704 case "${target}" in
2705 *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
2706 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
2707 *) sim_float=""
2708 esac
2712 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
2713 if test "${enable_sim_hardware+set}" = set; then
2714 enableval="$enable_sim_hardware"
2715 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide"
2716 case "${enableval}" in
2717 yes) ;;
2718 no) { { echo "$as_me:$LINENO: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&5
2719 echo "$as_me: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&2;}
2720 { (exit 1); exit 1; }; }; hardware="";;
2721 ,*) hardware="${hardware}${enableval}";;
2722 *,) hardware="${enableval}${hardware}";;
2723 *) hardware="${enableval}"'';;
2724 esac
2725 sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
2726 sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
2727 if test x"$silent" != x"yes" && test x"$hardware" != x""; then
2728 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
2730 else
2731 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide"
2732 sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
2733 sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
2734 if test x"$silent" != x"yes"; then
2735 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
2739 # Check whether --enable-sim-hostbitsize or --disable-sim-hostbitsize was given.
2740 if test "${enable_sim_hostbitsize+set}" = set; then
2741 enableval="$enable_sim_hostbitsize"
2742 case "${enableval}" in
2743 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
2744 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" >&5
2745 echo "$as_me: error: \"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" >&2;}
2746 { (exit 1); exit 1; }; }; sim_hostbitsize="";;
2747 esac
2748 if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
2749 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
2751 else
2752 sim_hostbitsize=""
2756 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
2757 if test "${enable_sim_hostendian+set}" = set; then
2758 enableval="$enable_sim_hostendian"
2759 case "${enableval}" in
2760 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
2761 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
2762 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
2763 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
2764 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
2765 { (exit 1); exit 1; }; }; sim_hostendian="";;
2766 esac
2767 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
2768 echo "Setting hostendian flags = $sim_hostendian" 6>&1
2770 else
2772 if test "x$cross_compiling" = "xno"; then
2773 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2774 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2775 if test "${ac_cv_c_bigendian+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778 # See if sys/param.h defines the BYTE_ORDER macro.
2779 cat >conftest.$ac_ext <<_ACEOF
2780 /* confdefs.h. */
2781 _ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2785 #include <sys/types.h>
2786 #include <sys/param.h>
2789 main ()
2791 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2792 bogus endian macros
2793 #endif
2796 return 0;
2798 _ACEOF
2799 rm -f conftest.$ac_objext
2800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801 (eval $ac_compile) 2>conftest.er1
2802 ac_status=$?
2803 grep -v '^ *+' conftest.er1 >conftest.err
2804 rm -f conftest.er1
2805 cat conftest.err >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); } &&
2808 { ac_try='test -z "$ac_c_werror_flag"
2809 || test ! -s conftest.err'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 (eval $ac_try) 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; } &&
2815 { ac_try='test -s conftest.$ac_objext'
2816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 (eval $ac_try) 2>&5
2818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; }; then
2821 # It does; now see whether it defined to BIG_ENDIAN or not.
2822 cat >conftest.$ac_ext <<_ACEOF
2823 /* confdefs.h. */
2824 _ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h. */
2828 #include <sys/types.h>
2829 #include <sys/param.h>
2832 main ()
2834 #if BYTE_ORDER != BIG_ENDIAN
2835 not big endian
2836 #endif
2839 return 0;
2841 _ACEOF
2842 rm -f conftest.$ac_objext
2843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2844 (eval $ac_compile) 2>conftest.er1
2845 ac_status=$?
2846 grep -v '^ *+' conftest.er1 >conftest.err
2847 rm -f conftest.er1
2848 cat conftest.err >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } &&
2851 { ac_try='test -z "$ac_c_werror_flag"
2852 || test ! -s conftest.err'
2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854 (eval $ac_try) 2>&5
2855 ac_status=$?
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; } &&
2858 { ac_try='test -s conftest.$ac_objext'
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860 (eval $ac_try) 2>&5
2861 ac_status=$?
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; }; then
2864 ac_cv_c_bigendian=yes
2865 else
2866 echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2869 ac_cv_c_bigendian=no
2871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2872 else
2873 echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2876 # It does not; compile a test program.
2877 if test "$cross_compiling" = yes; then
2878 # try to guess the endianness by grepping values into an object file
2879 ac_cv_c_bigendian=unknown
2880 cat >conftest.$ac_ext <<_ACEOF
2881 /* confdefs.h. */
2882 _ACEOF
2883 cat confdefs.h >>conftest.$ac_ext
2884 cat >>conftest.$ac_ext <<_ACEOF
2885 /* end confdefs.h. */
2886 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2887 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2888 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2889 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2890 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2891 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2893 main ()
2895 _ascii (); _ebcdic ();
2897 return 0;
2899 _ACEOF
2900 rm -f conftest.$ac_objext
2901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2902 (eval $ac_compile) 2>conftest.er1
2903 ac_status=$?
2904 grep -v '^ *+' conftest.er1 >conftest.err
2905 rm -f conftest.er1
2906 cat conftest.err >&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); } &&
2909 { ac_try='test -z "$ac_c_werror_flag"
2910 || test ! -s conftest.err'
2911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912 (eval $ac_try) 2>&5
2913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; } &&
2916 { ac_try='test -s conftest.$ac_objext'
2917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918 (eval $ac_try) 2>&5
2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; }; then
2922 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2923 ac_cv_c_bigendian=yes
2925 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2926 if test "$ac_cv_c_bigendian" = unknown; then
2927 ac_cv_c_bigendian=no
2928 else
2929 # finding both strings is unlikely to happen, but who knows?
2930 ac_cv_c_bigendian=unknown
2933 else
2934 echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2939 else
2940 cat >conftest.$ac_ext <<_ACEOF
2941 /* confdefs.h. */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2947 main ()
2949 /* Are we little or big endian? From Harbison&Steele. */
2950 union
2952 long l;
2953 char c[sizeof (long)];
2954 } u;
2955 u.l = 1;
2956 exit (u.c[sizeof (long) - 1] == 1);
2958 _ACEOF
2959 rm -f conftest$ac_exeext
2960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2961 (eval $ac_link) 2>&5
2962 ac_status=$?
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966 (eval $ac_try) 2>&5
2967 ac_status=$?
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; }; then
2970 ac_cv_c_bigendian=no
2971 else
2972 echo "$as_me: program exited with status $ac_status" >&5
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2976 ( exit $ac_status )
2977 ac_cv_c_bigendian=yes
2979 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2984 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2985 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2986 case $ac_cv_c_bigendian in
2987 yes)
2989 cat >>confdefs.h <<\_ACEOF
2990 #define WORDS_BIGENDIAN 1
2991 _ACEOF
2996 { { echo "$as_me:$LINENO: error: unknown endianness
2997 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2998 echo "$as_me: error: unknown endianness
2999 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3000 { (exit 1); exit 1; }; } ;;
3001 esac
3003 if test $ac_cv_c_bigendian = yes; then
3004 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3005 else
3006 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3008 else
3009 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
3013 # Check whether --enable-sim-icache or --disable-sim-icache was given.
3014 if test "${enable_sim_icache+set}" = set; then
3015 enableval="$enable_sim_icache"
3016 icache="-R"
3017 case "${enableval}" in
3018 yes) icache="1024"; sim_icache="-I $icache";;
3019 no) sim_icache="-R";;
3020 *) icache=1024
3021 sim_icache="-"
3022 for x in `echo "${enableval}" | sed -e "s/,/ /g"`; do
3023 case "$x" in
3024 define) sim_icache="${sim_icache}R";;
3025 semantic) sim_icache="${sim_icache}C";;
3026 insn) sim_icache="${sim_icache}S";;
3027 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) icache=$x;;
3028 *) { { echo "$as_me:$LINENO: error: \"Unknown value $x for --enable-sim-icache\"" >&5
3029 echo "$as_me: error: \"Unknown value $x for --enable-sim-icache\"" >&2;}
3030 { (exit 1); exit 1; }; }; sim_icache="";;
3031 esac
3032 done
3033 sim_icache="${sim_icache}I $icache";;
3034 esac
3035 if test x"$silent" != x"yes" && test x"$icache" != x""; then
3036 echo "Setting instruction cache size to $icache ($sim_icache)"
3038 else
3039 sim_icache="-CSRI 1024"
3040 if test x"$silent" != x"yes"; then
3041 echo "Setting instruction cache size to 1024 ($sim_icache)"
3045 # Check whether --enable-sim-inline or --disable-sim-inline was given.
3046 if test "${enable_sim_inline+set}" = set; then
3047 enableval="$enable_sim_inline"
3048 sim_inline=""
3049 case "$enableval" in
3050 no) sim_inline="-DDEFAULT_INLINE=0";;
3051 0) sim_inline="-DDEFAULT_INLINE=0";;
3052 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_INLINE";;
3053 1) sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
3054 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3055 new_flag=""
3056 case "$x" in
3057 *_INLINE=*) new_flag="-D$x";;
3058 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3059 *_INLINE) new_flag="-D$x=ALL_INLINE";;
3060 *) new_flag="-D$x""_INLINE=ALL_INLINE";;
3061 esac
3062 if test x"$sim_inline" = x""; then
3063 sim_inline="$new_flag"
3064 else
3065 sim_inline="$sim_inline $new_flag"
3067 done;;
3068 esac
3069 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
3070 echo "Setting inline flags = $sim_inline" 6>&1
3072 else
3073 if test x"$GCC" != ""; then
3074 sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
3075 if test x"$silent" != x"yes"; then
3076 echo "Setting inline flags = $sim_inline" 6>&1
3078 else
3079 sim_inline=""
3083 # Check whether --enable-sim-jump or --disable-sim-jump was given.
3084 if test "${enable_sim_jump+set}" = set; then
3085 enableval="$enable_sim_jump"
3086 case "${enableval}" in
3087 yes) sim_jump="-J";;
3088 no) sim_jump="";;
3089 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-jump does not take a value\"" >&5
3090 echo "$as_me: error: \"--enable-sim-jump does not take a value\"" >&2;}
3091 { (exit 1); exit 1; }; }; sim_jump="";;
3092 esac
3093 if test x"$silent" != x"yes" && test x"$sim_jump" != x""; then
3094 echo "Setting jump flag = $sim_jump" 6>&1
3096 else
3097 sim_jump=""
3098 if test x"$silent" != x"yes"; then
3099 echo "Setting jump flag = $sim_jump" 6>&1
3103 # Check whether --enable-sim-line-nr or --disable-sim-line-nr was given.
3104 if test "${enable_sim_line_nr+set}" = set; then
3105 enableval="$enable_sim_line_nr"
3106 case "${enableval}" in
3107 yes) sim_line_nr="";;
3108 no) sim_line_nr="-L";;
3109 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-line-nr does not take a value\"" >&5
3110 echo "$as_me: error: \"--enable-sim-line-nr does not take a value\"" >&2;}
3111 { (exit 1); exit 1; }; }; sim_line_nr="";;
3112 esac
3113 if test x"$silent" != x"yes" && test x"$sim_line_nr" != x""; then
3114 echo "Setting warning flags = $sim_line_nr" 6>&1
3116 else
3117 sim_line_nr=""
3120 # Check whether --enable-sim-model or --disable-sim-model was given.
3121 if test "${enable_sim_model+set}" = set; then
3122 enableval="$enable_sim_model"
3123 case "${enableval}" in
3124 yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-model=model\"" >&5
3125 echo "$as_me: error: \"No value supplied for --enable-sim-model=model\"" >&2;}
3126 { (exit 1); exit 1; }; };;
3127 *) sim_model="-DWITH_MODEL=${enableval}";;
3128 esac
3129 if test x"$silent" != x"yes" && test x"$sim_model" != x""; then
3130 echo "Setting model flags = $sim_model" 6>&1
3132 else
3133 sim_model=""
3136 # Check whether --enable-sim-model-issue or --disable-sim-model-issue was given.
3137 if test "${enable_sim_model_issue+set}" = set; then
3138 enableval="$enable_sim_model_issue"
3139 case "${enableval}" in
3140 yes) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
3141 no) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
3142 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-model-issue does not take a value\"" >&5
3143 echo "$as_me: error: \"--enable-sim-model-issue does not take a value\"" >&2;}
3144 { (exit 1); exit 1; }; }; sim_model_issue="";;
3145 esac
3146 if test x"$silent" != x"yes"; then
3147 echo "Setting model-issue flags = $sim_model_issue" 6>&1
3149 else
3150 sim_model_issue=""
3153 # Check whether --enable-sim-monitor or --disable-sim-monitor was given.
3154 if test "${enable_sim_monitor+set}" = set; then
3155 enableval="$enable_sim_monitor"
3156 case "${enableval}" in
3157 yes) sim_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
3158 no) sim_monitor="-DWITH_MON=0";;
3159 instruction) sim_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
3160 memory) sim_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
3161 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&5
3162 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&2;}
3163 { (exit 1); exit 1; }; }; sim_env="";;
3164 esac
3165 if test x"$silent" != x"yes" && test x"$sim_monitor" != x""; then
3166 echo "Setting monitor flags = $sim_monitor" 6>&1
3168 else
3169 sim_monitor=""
3172 # Check whether --enable-sim-opcode or --disable-sim-opcode was given.
3173 if test "${enable_sim_opcode+set}" = set; then
3174 enableval="$enable_sim_opcode"
3175 case "${enableval}" in
3176 yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-opcode=file\"" >&5
3177 echo "$as_me: error: \"No value supplied for --enable-sim-opcode=file\"" >&2;}
3178 { (exit 1); exit 1; }; };;
3179 *) if test -f "${srcdir}/${enableval}"; then
3180 sim_opcode="${enableval}"
3181 elif test -f "${srcdir}/dc-${enableval}"; then
3182 sim_opcode="dc-${enableval}"
3183 else
3184 { { echo "$as_me:$LINENO: error: \"File $enableval is not an opcode rules file\"" >&5
3185 echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;}
3186 { (exit 1); exit 1; }; };
3187 sim_opcode="dc-complex"
3188 fi;;
3189 esac
3190 if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then
3191 echo "Setting opcode flags = $sim_opcode" 6>&1
3193 else
3194 sim_opcode="dc-complex"
3195 if test x"$silent" != x"yes"; then
3196 echo "Setting opcode flags = $sim_opcode"
3200 # Check whether --enable-sim-packages or --disable-sim-packages was given.
3201 if test "${enable_sim_packages+set}" = set; then
3202 enableval="$enable_sim_packages"
3203 packages=disklabel
3204 case "${enableval}" in
3205 yes) ;;
3206 no) { { echo "$as_me:$LINENO: error: \"List of packages must be specified for --enable-sim-packages\"" >&5
3207 echo "$as_me: error: \"List of packages must be specified for --enable-sim-packages\"" >&2;}
3208 { (exit 1); exit 1; }; }; packages="";;
3209 ,*) packages="${packages}${enableval}";;
3210 *,) packages="${enableval}${packages}";;
3211 *) packages="${enableval}"'';;
3212 esac
3213 sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3214 sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
3215 if test x"$silent" != x"yes" && test x"$packages" != x""; then
3216 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3218 else
3219 packages=disklabel
3220 sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3221 sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
3222 if test x"$silent" != x"yes"; then
3223 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3227 # Check whether --enable-sim-regparm or --disable-sim-regparm was given.
3228 if test "${enable_sim_regparm+set}" = set; then
3229 enableval="$enable_sim_regparm"
3230 case "${enableval}" in
3231 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) sim_regparm="-DWITH_REGPARM=${enableval}";;
3232 no) sim_regparm="" ;;
3233 yes) sim_regparm="-DWITH_REGPARM=3";;
3234 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&5
3235 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&2;}
3236 { (exit 1); exit 1; }; }; sim_regparm="";;
3237 esac
3238 if test x"$silent" != x"yes" && test x"$sim_regparm" != x""; then
3239 echo "Setting regparm flags = $sim_regparm" 6>&1
3241 else
3242 sim_regparm=""
3245 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
3246 if test "${enable_sim_reserved_bits+set}" = set; then
3247 enableval="$enable_sim_reserved_bits"
3248 case "${enableval}" in
3249 yes) sim_reserved="-DWITH_RESERVED_BITS=1";;
3250 no) sim_reserved="-DWITH_RESERVED_BITS=0";;
3251 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
3252 echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
3253 { (exit 1); exit 1; }; }; sim_reserved="";;
3254 esac
3255 if test x"$silent" != x"yes" && test x"$sim_reserved" != x""; then
3256 echo "Setting reserved flags = $sim_reserved" 6>&1
3258 else
3259 sim_reserved=""
3262 # Check whether --enable-sim-smp or --disable-sim-smp was given.
3263 if test "${enable_sim_smp+set}" = set; then
3264 enableval="$enable_sim_smp"
3265 case "${enableval}" in
3266 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
3267 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
3268 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
3269 esac
3270 if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
3271 echo "Setting smp flags = $sim_smp" 6>&1
3273 else
3274 sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5"
3275 if test x"$silent" != x"yes"; then
3276 echo "Setting smp flags = $sim_smp" 6>&1
3280 # Check whether --enable-sim-stdcall or --disable-sim-stdcall was given.
3281 if test "${enable_sim_stdcall+set}" = set; then
3282 enableval="$enable_sim_stdcall"
3283 case "${enableval}" in
3284 no) sim_stdcall="" ;;
3285 std*) sim_stdcall="-DWITH_STDCALL=1";;
3286 yes) sim_stdcall="-DWITH_STDCALL=1";;
3287 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&5
3288 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&2;}
3289 { (exit 1); exit 1; }; }; sim_stdcall="";;
3290 esac
3291 if test x"$silent" != x"yes" && test x"$sim_stdcall" != x""; then
3292 echo "Setting function call flags = $sim_stdcall" 6>&1
3294 else
3295 sim_stdcall=""
3298 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3299 if test "${enable_sim_stdio+set}" = set; then
3300 enableval="$enable_sim_stdio"
3301 case "${enableval}" in
3302 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
3303 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
3304 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
3305 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
3306 { (exit 1); exit 1; }; }; sim_stdio="";;
3307 esac
3308 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
3309 echo "Setting stdio flags = $sim_stdio" 6>&1
3311 else
3312 sim_stdio=""
3315 # Check whether --enable-sim-switch or --disable-sim-switch was given.
3316 if test "${enable_sim_switch+set}" = set; then
3317 enableval="$enable_sim_switch"
3318 case "${enableval}" in
3319 yes) sim_switch="-s";;
3320 no) sim_switch="";;
3321 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-switch does not take a value\"" >&5
3322 echo "$as_me: error: \"--enable-sim-switch does not take a value\"" >&2;}
3323 { (exit 1); exit 1; }; }; sim_switch="";;
3324 esac
3325 if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then
3326 echo "Setting switch flags = $sim_switch" 6>&1
3328 else
3329 sim_switch="";
3330 if test x"$silent" != x"yes"; then
3331 echo "Setting switch flags = $sim_switch" 6>&1
3335 # Check whether --enable-sim-timebase or --disable-sim-timebase was given.
3336 if test "${enable_sim_timebase+set}" = set; then
3337 enableval="$enable_sim_timebase"
3338 case "${enableval}" in
3339 yes) sim_timebase="-DWITH_TIME_BASE=1";;
3340 no) sim_timebase="-DWITH_TIME_BASE=0";;
3341 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-timebase does not take a value\"" >&5
3342 echo "$as_me: error: \"--enable-sim-timebase does not take a value\"" >&2;}
3343 { (exit 1); exit 1; }; }; sim_timebase="";;
3344 esac
3345 if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then
3346 echo "Setting timebase flags = $sim_timebase" 6>&1
3348 else
3349 sim_timebase=""
3352 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3353 if test "${enable_sim_trace+set}" = set; then
3354 enableval="$enable_sim_trace"
3355 case "${enableval}" in
3356 yes) sim_trace="-DWITH_TRACE=1";;
3357 no) sim_trace="-DWITH_TRACE=0";;
3358 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-trace does not take a value\"" >&5
3359 echo "$as_me: error: \"--enable-sim-trace does not take a value\"" >&2;}
3360 { (exit 1); exit 1; }; }; sim_trace="";;
3361 esac
3362 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
3363 echo "Setting trace flags = $sim_trace" 6>&1
3365 else
3366 sim_trace=""
3369 # Check whether --enable-sim-warnings or --disable-sim-warnings was given.
3370 if test "${enable_sim_warnings+set}" = set; then
3371 enableval="$enable_sim_warnings"
3372 case "${enableval}" in
3373 yes) sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
3374 no) sim_warnings="-w";;
3375 *) sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3376 esac
3377 if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then
3378 echo "Setting warning flags = $sim_warnings" 6>&1
3380 else
3381 sim_warnings=""
3384 # Check whether --enable-sim-xor-endian or --disable-sim-xor-endian was given.
3385 if test "${enable_sim_xor_endian+set}" = set; then
3386 enableval="$enable_sim_xor_endian"
3387 case "${enableval}" in
3388 yes) sim_xor_endian="-DWITH_XOR_ENDIAN=8";;
3389 no) sim_xor_endian="-DWITH_XOR_ENDIAN=0";;
3390 *) sim_xor_endian="-DWITH_XOR_ENDIAN=$enableval";;
3391 esac
3392 if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then
3393 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
3395 else
3396 sim_xor_endian=""
3399 # Make sure we can run config.sub.
3400 $ac_config_sub sun4 >/dev/null 2>&1 ||
3401 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3402 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3403 { (exit 1); exit 1; }; }
3405 echo "$as_me:$LINENO: checking build system type" >&5
3406 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3407 if test "${ac_cv_build+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 else
3410 ac_cv_build_alias=$build_alias
3411 test -z "$ac_cv_build_alias" &&
3412 ac_cv_build_alias=`$ac_config_guess`
3413 test -z "$ac_cv_build_alias" &&
3414 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3415 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3416 { (exit 1); exit 1; }; }
3417 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3418 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3419 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3420 { (exit 1); exit 1; }; }
3423 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3424 echo "${ECHO_T}$ac_cv_build" >&6
3425 build=$ac_cv_build
3426 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3427 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3428 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3431 echo "$as_me:$LINENO: checking host system type" >&5
3432 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3433 if test "${ac_cv_host+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 else
3436 ac_cv_host_alias=$host_alias
3437 test -z "$ac_cv_host_alias" &&
3438 ac_cv_host_alias=$ac_cv_build_alias
3439 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3440 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3441 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3442 { (exit 1); exit 1; }; }
3445 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3446 echo "${ECHO_T}$ac_cv_host" >&6
3447 host=$ac_cv_host
3448 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3449 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3450 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3453 echo "$as_me:$LINENO: checking target system type" >&5
3454 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3455 if test "${ac_cv_target+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 else
3458 ac_cv_target_alias=$target_alias
3459 test "x$ac_cv_target_alias" = "x" &&
3460 ac_cv_target_alias=$ac_cv_host_alias
3461 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3462 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3463 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3464 { (exit 1); exit 1; }; }
3467 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3468 echo "${ECHO_T}$ac_cv_target" >&6
3469 target=$ac_cv_target
3470 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3471 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3472 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3475 # The aliases save the names the user supplied, while $host etc.
3476 # will get canonicalized.
3477 test -n "$target_alias" &&
3478 test "$program_prefix$program_suffix$program_transform_name" = \
3479 NONENONEs,x,x, &&
3480 program_prefix=${target_alias}-
3481 test "$program_prefix" != NONE &&
3482 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3483 # Use a double $ so make ignores it.
3484 test "$program_suffix" != NONE &&
3485 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3486 # Double any \ or $. echo might interpret backslashes.
3487 # By default was `s,x,x', remove it if useless.
3488 cat <<\_ACEOF >conftest.sed
3489 s/[\\$]/&&/g;s/;s,x,x,$//
3490 _ACEOF
3491 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3492 rm conftest.sed
3495 . ${srcdir}/../../bfd/configure.host
3497 case ${host} in
3498 *mingw32*)
3500 cat >>confdefs.h <<\_ACEOF
3501 #define USE_WIN32API 1
3502 _ACEOF
3505 esac
3507 ac_config_headers="$ac_config_headers config.h:config.in"
3510 ac_ext=c
3511 ac_cpp='$CPP $CPPFLAGS'
3512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3515 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3516 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3517 # On Suns, sometimes $CPP names a directory.
3518 if test -n "$CPP" && test -d "$CPP"; then
3519 CPP=
3521 if test -z "$CPP"; then
3522 if test "${ac_cv_prog_CPP+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 else
3525 # Double quotes because CPP needs to be expanded
3526 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3528 ac_preproc_ok=false
3529 for ac_c_preproc_warn_flag in '' yes
3531 # Use a header file that comes with gcc, so configuring glibc
3532 # with a fresh cross-compiler works.
3533 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3534 # <limits.h> exists even on freestanding compilers.
3535 # On the NeXT, cc -E runs the code through the compiler's parser,
3536 # not just through cpp. "Syntax error" is here to catch this case.
3537 cat >conftest.$ac_ext <<_ACEOF
3538 /* confdefs.h. */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3543 #ifdef __STDC__
3544 # include <limits.h>
3545 #else
3546 # include <assert.h>
3547 #endif
3548 Syntax error
3549 _ACEOF
3550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3552 ac_status=$?
3553 grep -v '^ *+' conftest.er1 >conftest.err
3554 rm -f conftest.er1
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } >/dev/null; then
3558 if test -s conftest.err; then
3559 ac_cpp_err=$ac_c_preproc_warn_flag
3560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3561 else
3562 ac_cpp_err=
3564 else
3565 ac_cpp_err=yes
3567 if test -z "$ac_cpp_err"; then
3569 else
3570 echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3573 # Broken: fails on valid input.
3574 continue
3576 rm -f conftest.err conftest.$ac_ext
3578 # OK, works on sane cases. Now check whether non-existent headers
3579 # can be detected and how.
3580 cat >conftest.$ac_ext <<_ACEOF
3581 /* confdefs.h. */
3582 _ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h. */
3586 #include <ac_nonexistent.h>
3587 _ACEOF
3588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3590 ac_status=$?
3591 grep -v '^ *+' conftest.er1 >conftest.err
3592 rm -f conftest.er1
3593 cat conftest.err >&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); } >/dev/null; then
3596 if test -s conftest.err; then
3597 ac_cpp_err=$ac_c_preproc_warn_flag
3598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3599 else
3600 ac_cpp_err=
3602 else
3603 ac_cpp_err=yes
3605 if test -z "$ac_cpp_err"; then
3606 # Broken: success on invalid input.
3607 continue
3608 else
3609 echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.$ac_ext >&5
3612 # Passes both tests.
3613 ac_preproc_ok=:
3614 break
3616 rm -f conftest.err conftest.$ac_ext
3618 done
3619 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3620 rm -f conftest.err conftest.$ac_ext
3621 if $ac_preproc_ok; then
3622 break
3625 done
3626 ac_cv_prog_CPP=$CPP
3629 CPP=$ac_cv_prog_CPP
3630 else
3631 ac_cv_prog_CPP=$CPP
3633 echo "$as_me:$LINENO: result: $CPP" >&5
3634 echo "${ECHO_T}$CPP" >&6
3635 ac_preproc_ok=false
3636 for ac_c_preproc_warn_flag in '' yes
3638 # Use a header file that comes with gcc, so configuring glibc
3639 # with a fresh cross-compiler works.
3640 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3641 # <limits.h> exists even on freestanding compilers.
3642 # On the NeXT, cc -E runs the code through the compiler's parser,
3643 # not just through cpp. "Syntax error" is here to catch this case.
3644 cat >conftest.$ac_ext <<_ACEOF
3645 /* confdefs.h. */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3650 #ifdef __STDC__
3651 # include <limits.h>
3652 #else
3653 # include <assert.h>
3654 #endif
3655 Syntax error
3656 _ACEOF
3657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3659 ac_status=$?
3660 grep -v '^ *+' conftest.er1 >conftest.err
3661 rm -f conftest.er1
3662 cat conftest.err >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } >/dev/null; then
3665 if test -s conftest.err; then
3666 ac_cpp_err=$ac_c_preproc_warn_flag
3667 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3668 else
3669 ac_cpp_err=
3671 else
3672 ac_cpp_err=yes
3674 if test -z "$ac_cpp_err"; then
3676 else
3677 echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3680 # Broken: fails on valid input.
3681 continue
3683 rm -f conftest.err conftest.$ac_ext
3685 # OK, works on sane cases. Now check whether non-existent headers
3686 # can be detected and how.
3687 cat >conftest.$ac_ext <<_ACEOF
3688 /* confdefs.h. */
3689 _ACEOF
3690 cat confdefs.h >>conftest.$ac_ext
3691 cat >>conftest.$ac_ext <<_ACEOF
3692 /* end confdefs.h. */
3693 #include <ac_nonexistent.h>
3694 _ACEOF
3695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3697 ac_status=$?
3698 grep -v '^ *+' conftest.er1 >conftest.err
3699 rm -f conftest.er1
3700 cat conftest.err >&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); } >/dev/null; then
3703 if test -s conftest.err; then
3704 ac_cpp_err=$ac_c_preproc_warn_flag
3705 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3706 else
3707 ac_cpp_err=
3709 else
3710 ac_cpp_err=yes
3712 if test -z "$ac_cpp_err"; then
3713 # Broken: success on invalid input.
3714 continue
3715 else
3716 echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3719 # Passes both tests.
3720 ac_preproc_ok=:
3721 break
3723 rm -f conftest.err conftest.$ac_ext
3725 done
3726 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3727 rm -f conftest.err conftest.$ac_ext
3728 if $ac_preproc_ok; then
3730 else
3731 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3732 See \`config.log' for more details." >&5
3733 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3734 See \`config.log' for more details." >&2;}
3735 { (exit 1); exit 1; }; }
3738 ac_ext=c
3739 ac_cpp='$CPP $CPPFLAGS'
3740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745 echo "$as_me:$LINENO: checking for egrep" >&5
3746 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3747 if test "${ac_cv_prog_egrep+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3751 then ac_cv_prog_egrep='grep -E'
3752 else ac_cv_prog_egrep='egrep'
3755 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3756 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3757 EGREP=$ac_cv_prog_egrep
3760 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3761 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3762 if test "${ac_cv_header_stdc+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765 cat >conftest.$ac_ext <<_ACEOF
3766 /* confdefs.h. */
3767 _ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3771 #include <stdlib.h>
3772 #include <stdarg.h>
3773 #include <string.h>
3774 #include <float.h>
3777 main ()
3781 return 0;
3783 _ACEOF
3784 rm -f conftest.$ac_objext
3785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786 (eval $ac_compile) 2>conftest.er1
3787 ac_status=$?
3788 grep -v '^ *+' conftest.er1 >conftest.err
3789 rm -f conftest.er1
3790 cat conftest.err >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } &&
3793 { ac_try='test -z "$ac_c_werror_flag"
3794 || test ! -s conftest.err'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 (eval $ac_try) 2>&5
3797 ac_status=$?
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; } &&
3800 { ac_try='test -s conftest.$ac_objext'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 (eval $ac_try) 2>&5
3803 ac_status=$?
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; }; then
3806 ac_cv_header_stdc=yes
3807 else
3808 echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3811 ac_cv_header_stdc=no
3813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3815 if test $ac_cv_header_stdc = yes; then
3816 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3817 cat >conftest.$ac_ext <<_ACEOF
3818 /* confdefs.h. */
3819 _ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3823 #include <string.h>
3825 _ACEOF
3826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3827 $EGREP "memchr" >/dev/null 2>&1; then
3829 else
3830 ac_cv_header_stdc=no
3832 rm -f conftest*
3836 if test $ac_cv_header_stdc = yes; then
3837 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3838 cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h. */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3844 #include <stdlib.h>
3846 _ACEOF
3847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3848 $EGREP "free" >/dev/null 2>&1; then
3850 else
3851 ac_cv_header_stdc=no
3853 rm -f conftest*
3857 if test $ac_cv_header_stdc = yes; then
3858 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3859 if test "$cross_compiling" = yes; then
3861 else
3862 cat >conftest.$ac_ext <<_ACEOF
3863 /* confdefs.h. */
3864 _ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3868 #include <ctype.h>
3869 #if ((' ' & 0x0FF) == 0x020)
3870 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3871 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3872 #else
3873 # define ISLOWER(c) \
3874 (('a' <= (c) && (c) <= 'i') \
3875 || ('j' <= (c) && (c) <= 'r') \
3876 || ('s' <= (c) && (c) <= 'z'))
3877 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3878 #endif
3880 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3882 main ()
3884 int i;
3885 for (i = 0; i < 256; i++)
3886 if (XOR (islower (i), ISLOWER (i))
3887 || toupper (i) != TOUPPER (i))
3888 exit(2);
3889 exit (0);
3891 _ACEOF
3892 rm -f conftest$ac_exeext
3893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3894 (eval $ac_link) 2>&5
3895 ac_status=$?
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899 (eval $ac_try) 2>&5
3900 ac_status=$?
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; }; then
3904 else
3905 echo "$as_me: program exited with status $ac_status" >&5
3906 echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3909 ( exit $ac_status )
3910 ac_cv_header_stdc=no
3912 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3916 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3917 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3918 if test $ac_cv_header_stdc = yes; then
3920 cat >>confdefs.h <<\_ACEOF
3921 #define STDC_HEADERS 1
3922 _ACEOF
3926 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3936 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3937 inttypes.h stdint.h unistd.h
3939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3940 echo "$as_me:$LINENO: checking for $ac_header" >&5
3941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945 cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h. */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3951 $ac_includes_default
3953 #include <$ac_header>
3954 _ACEOF
3955 rm -f conftest.$ac_objext
3956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3957 (eval $ac_compile) 2>conftest.er1
3958 ac_status=$?
3959 grep -v '^ *+' conftest.er1 >conftest.err
3960 rm -f conftest.er1
3961 cat conftest.err >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } &&
3964 { ac_try='test -z "$ac_c_werror_flag"
3965 || test ! -s conftest.err'
3966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967 (eval $ac_try) 2>&5
3968 ac_status=$?
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; } &&
3971 { ac_try='test -s conftest.$ac_objext'
3972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973 (eval $ac_try) 2>&5
3974 ac_status=$?
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; }; then
3977 eval "$as_ac_Header=yes"
3978 else
3979 echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3982 eval "$as_ac_Header=no"
3984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3989 cat >>confdefs.h <<_ACEOF
3990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3991 _ACEOF
3995 done
3999 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
4000 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4001 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4003 else
4004 cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h. */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 $ac_includes_default
4012 main ()
4014 static struct stat ac_aggr;
4015 if (ac_aggr.st_blksize)
4016 return 0;
4018 return 0;
4020 _ACEOF
4021 rm -f conftest.$ac_objext
4022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4023 (eval $ac_compile) 2>conftest.er1
4024 ac_status=$?
4025 grep -v '^ *+' conftest.er1 >conftest.err
4026 rm -f conftest.er1
4027 cat conftest.err >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } &&
4030 { ac_try='test -z "$ac_c_werror_flag"
4031 || test ! -s conftest.err'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 (eval $ac_try) 2>&5
4034 ac_status=$?
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; } &&
4037 { ac_try='test -s conftest.$ac_objext'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 (eval $ac_try) 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; }; then
4043 ac_cv_member_struct_stat_st_blksize=yes
4044 else
4045 echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.$ac_ext >&5
4048 cat >conftest.$ac_ext <<_ACEOF
4049 /* confdefs.h. */
4050 _ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4054 $ac_includes_default
4056 main ()
4058 static struct stat ac_aggr;
4059 if (sizeof ac_aggr.st_blksize)
4060 return 0;
4062 return 0;
4064 _ACEOF
4065 rm -f conftest.$ac_objext
4066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4067 (eval $ac_compile) 2>conftest.er1
4068 ac_status=$?
4069 grep -v '^ *+' conftest.er1 >conftest.err
4070 rm -f conftest.er1
4071 cat conftest.err >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } &&
4074 { ac_try='test -z "$ac_c_werror_flag"
4075 || test ! -s conftest.err'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 (eval $ac_try) 2>&5
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; } &&
4081 { ac_try='test -s conftest.$ac_objext'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 (eval $ac_try) 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
4087 ac_cv_member_struct_stat_st_blksize=yes
4088 else
4089 echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4092 ac_cv_member_struct_stat_st_blksize=no
4094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4098 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
4099 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4100 if test $ac_cv_member_struct_stat_st_blksize = yes; then
4102 cat >>confdefs.h <<_ACEOF
4103 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
4104 _ACEOF
4107 cat >>confdefs.h <<\_ACEOF
4108 #define HAVE_ST_BLKSIZE 1
4109 _ACEOF
4114 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
4115 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4116 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 else
4119 cat >conftest.$ac_ext <<_ACEOF
4120 /* confdefs.h. */
4121 _ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h. */
4125 $ac_includes_default
4127 main ()
4129 static struct stat ac_aggr;
4130 if (ac_aggr.st_blocks)
4131 return 0;
4133 return 0;
4135 _ACEOF
4136 rm -f conftest.$ac_objext
4137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4138 (eval $ac_compile) 2>conftest.er1
4139 ac_status=$?
4140 grep -v '^ *+' conftest.er1 >conftest.err
4141 rm -f conftest.er1
4142 cat conftest.err >&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); } &&
4145 { ac_try='test -z "$ac_c_werror_flag"
4146 || test ! -s conftest.err'
4147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148 (eval $ac_try) 2>&5
4149 ac_status=$?
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; } &&
4152 { ac_try='test -s conftest.$ac_objext'
4153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154 (eval $ac_try) 2>&5
4155 ac_status=$?
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; }; then
4158 ac_cv_member_struct_stat_st_blocks=yes
4159 else
4160 echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4163 cat >conftest.$ac_ext <<_ACEOF
4164 /* confdefs.h. */
4165 _ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4169 $ac_includes_default
4171 main ()
4173 static struct stat ac_aggr;
4174 if (sizeof ac_aggr.st_blocks)
4175 return 0;
4177 return 0;
4179 _ACEOF
4180 rm -f conftest.$ac_objext
4181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4182 (eval $ac_compile) 2>conftest.er1
4183 ac_status=$?
4184 grep -v '^ *+' conftest.er1 >conftest.err
4185 rm -f conftest.er1
4186 cat conftest.err >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } &&
4189 { ac_try='test -z "$ac_c_werror_flag"
4190 || test ! -s conftest.err'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 (eval $ac_try) 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; } &&
4196 { ac_try='test -s conftest.$ac_objext'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198 (eval $ac_try) 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; }; then
4202 ac_cv_member_struct_stat_st_blocks=yes
4203 else
4204 echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4207 ac_cv_member_struct_stat_st_blocks=no
4209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4213 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
4214 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4215 if test $ac_cv_member_struct_stat_st_blocks = yes; then
4217 cat >>confdefs.h <<_ACEOF
4218 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
4219 _ACEOF
4222 cat >>confdefs.h <<\_ACEOF
4223 #define HAVE_ST_BLOCKS 1
4224 _ACEOF
4226 else
4227 case $LIBOBJS in
4228 "fileblocks.$ac_objext" | \
4229 *" fileblocks.$ac_objext" | \
4230 "fileblocks.$ac_objext "* | \
4231 *" fileblocks.$ac_objext "* ) ;;
4232 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
4233 esac
4239 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
4240 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
4241 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244 cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h. */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 $ac_includes_default
4252 main ()
4254 static struct stat ac_aggr;
4255 if (ac_aggr.st_rdev)
4256 return 0;
4258 return 0;
4260 _ACEOF
4261 rm -f conftest.$ac_objext
4262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4263 (eval $ac_compile) 2>conftest.er1
4264 ac_status=$?
4265 grep -v '^ *+' conftest.er1 >conftest.err
4266 rm -f conftest.er1
4267 cat conftest.err >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } &&
4270 { ac_try='test -z "$ac_c_werror_flag"
4271 || test ! -s conftest.err'
4272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 (eval $ac_try) 2>&5
4274 ac_status=$?
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); }; } &&
4277 { ac_try='test -s conftest.$ac_objext'
4278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 (eval $ac_try) 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4283 ac_cv_member_struct_stat_st_rdev=yes
4284 else
4285 echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4288 cat >conftest.$ac_ext <<_ACEOF
4289 /* confdefs.h. */
4290 _ACEOF
4291 cat confdefs.h >>conftest.$ac_ext
4292 cat >>conftest.$ac_ext <<_ACEOF
4293 /* end confdefs.h. */
4294 $ac_includes_default
4296 main ()
4298 static struct stat ac_aggr;
4299 if (sizeof ac_aggr.st_rdev)
4300 return 0;
4302 return 0;
4304 _ACEOF
4305 rm -f conftest.$ac_objext
4306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4307 (eval $ac_compile) 2>conftest.er1
4308 ac_status=$?
4309 grep -v '^ *+' conftest.er1 >conftest.err
4310 rm -f conftest.er1
4311 cat conftest.err >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } &&
4314 { ac_try='test -z "$ac_c_werror_flag"
4315 || test ! -s conftest.err'
4316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317 (eval $ac_try) 2>&5
4318 ac_status=$?
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); }; } &&
4321 { ac_try='test -s conftest.$ac_objext'
4322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323 (eval $ac_try) 2>&5
4324 ac_status=$?
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; }; then
4327 ac_cv_member_struct_stat_st_rdev=yes
4328 else
4329 echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4332 ac_cv_member_struct_stat_st_rdev=no
4334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4338 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
4339 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
4340 if test $ac_cv_member_struct_stat_st_rdev = yes; then
4342 cat >>confdefs.h <<_ACEOF
4343 #define HAVE_STRUCT_STAT_ST_RDEV 1
4344 _ACEOF
4347 cat >>confdefs.h <<\_ACEOF
4348 #define HAVE_ST_RDEV 1
4349 _ACEOF
4354 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4355 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4356 if test "${ac_cv_struct_tm+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 else
4359 cat >conftest.$ac_ext <<_ACEOF
4360 /* confdefs.h. */
4361 _ACEOF
4362 cat confdefs.h >>conftest.$ac_ext
4363 cat >>conftest.$ac_ext <<_ACEOF
4364 /* end confdefs.h. */
4365 #include <sys/types.h>
4366 #include <time.h>
4369 main ()
4371 struct tm *tp; tp->tm_sec;
4373 return 0;
4375 _ACEOF
4376 rm -f conftest.$ac_objext
4377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4378 (eval $ac_compile) 2>conftest.er1
4379 ac_status=$?
4380 grep -v '^ *+' conftest.er1 >conftest.err
4381 rm -f conftest.er1
4382 cat conftest.err >&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } &&
4385 { ac_try='test -z "$ac_c_werror_flag"
4386 || test ! -s conftest.err'
4387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388 (eval $ac_try) 2>&5
4389 ac_status=$?
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); }; } &&
4392 { ac_try='test -s conftest.$ac_objext'
4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394 (eval $ac_try) 2>&5
4395 ac_status=$?
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; }; then
4398 ac_cv_struct_tm=time.h
4399 else
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4403 ac_cv_struct_tm=sys/time.h
4405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4407 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4408 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4409 if test $ac_cv_struct_tm = sys/time.h; then
4411 cat >>confdefs.h <<\_ACEOF
4412 #define TM_IN_SYS_TIME 1
4413 _ACEOF
4417 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
4418 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4419 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 else
4422 cat >conftest.$ac_ext <<_ACEOF
4423 /* confdefs.h. */
4424 _ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h. */
4428 #include <sys/types.h>
4429 #include <$ac_cv_struct_tm>
4433 main ()
4435 static struct tm ac_aggr;
4436 if (ac_aggr.tm_zone)
4437 return 0;
4439 return 0;
4441 _ACEOF
4442 rm -f conftest.$ac_objext
4443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444 (eval $ac_compile) 2>conftest.er1
4445 ac_status=$?
4446 grep -v '^ *+' conftest.er1 >conftest.err
4447 rm -f conftest.er1
4448 cat conftest.err >&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } &&
4451 { ac_try='test -z "$ac_c_werror_flag"
4452 || test ! -s conftest.err'
4453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454 (eval $ac_try) 2>&5
4455 ac_status=$?
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }; } &&
4458 { ac_try='test -s conftest.$ac_objext'
4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 (eval $ac_try) 2>&5
4461 ac_status=$?
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; }; then
4464 ac_cv_member_struct_tm_tm_zone=yes
4465 else
4466 echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4469 cat >conftest.$ac_ext <<_ACEOF
4470 /* confdefs.h. */
4471 _ACEOF
4472 cat confdefs.h >>conftest.$ac_ext
4473 cat >>conftest.$ac_ext <<_ACEOF
4474 /* end confdefs.h. */
4475 #include <sys/types.h>
4476 #include <$ac_cv_struct_tm>
4480 main ()
4482 static struct tm ac_aggr;
4483 if (sizeof ac_aggr.tm_zone)
4484 return 0;
4486 return 0;
4488 _ACEOF
4489 rm -f conftest.$ac_objext
4490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4491 (eval $ac_compile) 2>conftest.er1
4492 ac_status=$?
4493 grep -v '^ *+' conftest.er1 >conftest.err
4494 rm -f conftest.er1
4495 cat conftest.err >&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } &&
4498 { ac_try='test -z "$ac_c_werror_flag"
4499 || test ! -s conftest.err'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501 (eval $ac_try) 2>&5
4502 ac_status=$?
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; } &&
4505 { ac_try='test -s conftest.$ac_objext'
4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507 (eval $ac_try) 2>&5
4508 ac_status=$?
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; }; then
4511 ac_cv_member_struct_tm_tm_zone=yes
4512 else
4513 echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4516 ac_cv_member_struct_tm_tm_zone=no
4518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4522 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
4523 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4524 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4526 cat >>confdefs.h <<_ACEOF
4527 #define HAVE_STRUCT_TM_TM_ZONE 1
4528 _ACEOF
4533 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4535 cat >>confdefs.h <<\_ACEOF
4536 #define HAVE_TM_ZONE 1
4537 _ACEOF
4539 else
4540 echo "$as_me:$LINENO: checking for tzname" >&5
4541 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4542 if test "${ac_cv_var_tzname+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545 cat >conftest.$ac_ext <<_ACEOF
4546 /* confdefs.h. */
4547 _ACEOF
4548 cat confdefs.h >>conftest.$ac_ext
4549 cat >>conftest.$ac_ext <<_ACEOF
4550 /* end confdefs.h. */
4551 #include <time.h>
4552 #ifndef tzname /* For SGI. */
4553 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4554 #endif
4557 main ()
4559 atoi(*tzname);
4561 return 0;
4563 _ACEOF
4564 rm -f conftest.$ac_objext conftest$ac_exeext
4565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4566 (eval $ac_link) 2>conftest.er1
4567 ac_status=$?
4568 grep -v '^ *+' conftest.er1 >conftest.err
4569 rm -f conftest.er1
4570 cat conftest.err >&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } &&
4573 { ac_try='test -z "$ac_c_werror_flag"
4574 || test ! -s conftest.err'
4575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576 (eval $ac_try) 2>&5
4577 ac_status=$?
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; } &&
4580 { ac_try='test -s conftest$ac_exeext'
4581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 (eval $ac_try) 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; }; then
4586 ac_cv_var_tzname=yes
4587 else
4588 echo "$as_me: failed program was:" >&5
4589 sed 's/^/| /' conftest.$ac_ext >&5
4591 ac_cv_var_tzname=no
4593 rm -f conftest.err conftest.$ac_objext \
4594 conftest$ac_exeext conftest.$ac_ext
4596 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
4597 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4598 if test $ac_cv_var_tzname = yes; then
4600 cat >>confdefs.h <<\_ACEOF
4601 #define HAVE_TZNAME 1
4602 _ACEOF
4608 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4609 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4610 if test "${ac_cv_type_uid_t+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 else
4613 cat >conftest.$ac_ext <<_ACEOF
4614 /* confdefs.h. */
4615 _ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h. */
4619 #include <sys/types.h>
4621 _ACEOF
4622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4623 $EGREP "uid_t" >/dev/null 2>&1; then
4624 ac_cv_type_uid_t=yes
4625 else
4626 ac_cv_type_uid_t=no
4628 rm -f conftest*
4631 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4632 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4633 if test $ac_cv_type_uid_t = no; then
4635 cat >>confdefs.h <<\_ACEOF
4636 #define uid_t int
4637 _ACEOF
4640 cat >>confdefs.h <<\_ACEOF
4641 #define gid_t int
4642 _ACEOF
4646 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
4647 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
4648 if test "${ac_cv_type_getgroups+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4650 else
4651 if test "$cross_compiling" = yes; then
4652 ac_cv_type_getgroups=cross
4653 else
4654 cat >conftest.$ac_ext <<_ACEOF
4655 /* confdefs.h. */
4656 _ACEOF
4657 cat confdefs.h >>conftest.$ac_ext
4658 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h. */
4660 /* Thanks to Mike Rendell for this test. */
4661 #include <sys/types.h>
4662 #define NGID 256
4663 #undef MAX
4664 #define MAX(x, y) ((x) > (y) ? (x) : (y))
4667 main ()
4669 gid_t gidset[NGID];
4670 int i, n;
4671 union { gid_t gval; long lval; } val;
4673 val.lval = -1;
4674 for (i = 0; i < NGID; i++)
4675 gidset[i] = val.gval;
4676 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
4677 gidset);
4678 /* Exit non-zero if getgroups seems to require an array of ints. This
4679 happens when gid_t is short but getgroups modifies an array of ints. */
4680 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
4682 _ACEOF
4683 rm -f conftest$ac_exeext
4684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4685 (eval $ac_link) 2>&5
4686 ac_status=$?
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690 (eval $ac_try) 2>&5
4691 ac_status=$?
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }; }; then
4694 ac_cv_type_getgroups=gid_t
4695 else
4696 echo "$as_me: program exited with status $ac_status" >&5
4697 echo "$as_me: failed program was:" >&5
4698 sed 's/^/| /' conftest.$ac_ext >&5
4700 ( exit $ac_status )
4701 ac_cv_type_getgroups=int
4703 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4705 if test $ac_cv_type_getgroups = cross; then
4706 cat >conftest.$ac_ext <<_ACEOF
4707 /* confdefs.h. */
4708 _ACEOF
4709 cat confdefs.h >>conftest.$ac_ext
4710 cat >>conftest.$ac_ext <<_ACEOF
4711 /* end confdefs.h. */
4712 #include <unistd.h>
4714 _ACEOF
4715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4716 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
4717 ac_cv_type_getgroups=gid_t
4718 else
4719 ac_cv_type_getgroups=int
4721 rm -f conftest*
4725 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
4726 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
4728 cat >>confdefs.h <<_ACEOF
4729 #define GETGROUPS_T $ac_cv_type_getgroups
4730 _ACEOF
4733 echo "$as_me:$LINENO: checking for mode_t" >&5
4734 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4735 if test "${ac_cv_type_mode_t+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 else
4738 cat >conftest.$ac_ext <<_ACEOF
4739 /* confdefs.h. */
4740 _ACEOF
4741 cat confdefs.h >>conftest.$ac_ext
4742 cat >>conftest.$ac_ext <<_ACEOF
4743 /* end confdefs.h. */
4744 $ac_includes_default
4746 main ()
4748 if ((mode_t *) 0)
4749 return 0;
4750 if (sizeof (mode_t))
4751 return 0;
4753 return 0;
4755 _ACEOF
4756 rm -f conftest.$ac_objext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4758 (eval $ac_compile) 2>conftest.er1
4759 ac_status=$?
4760 grep -v '^ *+' conftest.er1 >conftest.err
4761 rm -f conftest.er1
4762 cat conftest.err >&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } &&
4765 { ac_try='test -z "$ac_c_werror_flag"
4766 || test ! -s conftest.err'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 (eval $ac_try) 2>&5
4769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; } &&
4772 { ac_try='test -s conftest.$ac_objext'
4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 (eval $ac_try) 2>&5
4775 ac_status=$?
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); }; }; then
4778 ac_cv_type_mode_t=yes
4779 else
4780 echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.$ac_ext >&5
4783 ac_cv_type_mode_t=no
4785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4787 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4788 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4789 if test $ac_cv_type_mode_t = yes; then
4791 else
4793 cat >>confdefs.h <<_ACEOF
4794 #define mode_t int
4795 _ACEOF
4799 echo "$as_me:$LINENO: checking for off_t" >&5
4800 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4801 if test "${ac_cv_type_off_t+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 else
4804 cat >conftest.$ac_ext <<_ACEOF
4805 /* confdefs.h. */
4806 _ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4810 $ac_includes_default
4812 main ()
4814 if ((off_t *) 0)
4815 return 0;
4816 if (sizeof (off_t))
4817 return 0;
4819 return 0;
4821 _ACEOF
4822 rm -f conftest.$ac_objext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824 (eval $ac_compile) 2>conftest.er1
4825 ac_status=$?
4826 grep -v '^ *+' conftest.er1 >conftest.err
4827 rm -f conftest.er1
4828 cat conftest.err >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try='test -z "$ac_c_werror_flag"
4832 || test ! -s conftest.err'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 (eval $ac_try) 2>&5
4835 ac_status=$?
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; } &&
4838 { ac_try='test -s conftest.$ac_objext'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 (eval $ac_try) 2>&5
4841 ac_status=$?
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4844 ac_cv_type_off_t=yes
4845 else
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4849 ac_cv_type_off_t=no
4851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4853 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4854 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4855 if test $ac_cv_type_off_t = yes; then
4857 else
4859 cat >>confdefs.h <<_ACEOF
4860 #define off_t long
4861 _ACEOF
4865 echo "$as_me:$LINENO: checking for pid_t" >&5
4866 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4867 if test "${ac_cv_type_pid_t+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 else
4870 cat >conftest.$ac_ext <<_ACEOF
4871 /* confdefs.h. */
4872 _ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4876 $ac_includes_default
4878 main ()
4880 if ((pid_t *) 0)
4881 return 0;
4882 if (sizeof (pid_t))
4883 return 0;
4885 return 0;
4887 _ACEOF
4888 rm -f conftest.$ac_objext
4889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4890 (eval $ac_compile) 2>conftest.er1
4891 ac_status=$?
4892 grep -v '^ *+' conftest.er1 >conftest.err
4893 rm -f conftest.er1
4894 cat conftest.err >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } &&
4897 { ac_try='test -z "$ac_c_werror_flag"
4898 || test ! -s conftest.err'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; } &&
4904 { ac_try='test -s conftest.$ac_objext'
4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906 (eval $ac_try) 2>&5
4907 ac_status=$?
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; }; then
4910 ac_cv_type_pid_t=yes
4911 else
4912 echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4915 ac_cv_type_pid_t=no
4917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4919 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4920 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4921 if test $ac_cv_type_pid_t = yes; then
4923 else
4925 cat >>confdefs.h <<_ACEOF
4926 #define pid_t int
4927 _ACEOF
4931 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4932 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4933 if test "${ac_cv_type_signal+set}" = set; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 else
4936 cat >conftest.$ac_ext <<_ACEOF
4937 /* confdefs.h. */
4938 _ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4942 #include <sys/types.h>
4943 #include <signal.h>
4944 #ifdef signal
4945 # undef signal
4946 #endif
4947 #ifdef __cplusplus
4948 extern "C" void (*signal (int, void (*)(int)))(int);
4949 #else
4950 void (*signal ()) ();
4951 #endif
4954 main ()
4956 int i;
4958 return 0;
4960 _ACEOF
4961 rm -f conftest.$ac_objext
4962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4963 (eval $ac_compile) 2>conftest.er1
4964 ac_status=$?
4965 grep -v '^ *+' conftest.er1 >conftest.err
4966 rm -f conftest.er1
4967 cat conftest.err >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } &&
4970 { ac_try='test -z "$ac_c_werror_flag"
4971 || test ! -s conftest.err'
4972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973 (eval $ac_try) 2>&5
4974 ac_status=$?
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); }; } &&
4977 { ac_try='test -s conftest.$ac_objext'
4978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 (eval $ac_try) 2>&5
4980 ac_status=$?
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); }; }; then
4983 ac_cv_type_signal=void
4984 else
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4988 ac_cv_type_signal=int
4990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4992 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4993 echo "${ECHO_T}$ac_cv_type_signal" >&6
4995 cat >>confdefs.h <<_ACEOF
4996 #define RETSIGTYPE $ac_cv_type_signal
4997 _ACEOF
5000 echo "$as_me:$LINENO: checking for size_t" >&5
5001 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5002 if test "${ac_cv_type_size_t+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 else
5005 cat >conftest.$ac_ext <<_ACEOF
5006 /* confdefs.h. */
5007 _ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5011 $ac_includes_default
5013 main ()
5015 if ((size_t *) 0)
5016 return 0;
5017 if (sizeof (size_t))
5018 return 0;
5020 return 0;
5022 _ACEOF
5023 rm -f conftest.$ac_objext
5024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5025 (eval $ac_compile) 2>conftest.er1
5026 ac_status=$?
5027 grep -v '^ *+' conftest.er1 >conftest.err
5028 rm -f conftest.er1
5029 cat conftest.err >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } &&
5032 { ac_try='test -z "$ac_c_werror_flag"
5033 || test ! -s conftest.err'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035 (eval $ac_try) 2>&5
5036 ac_status=$?
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; } &&
5039 { ac_try='test -s conftest.$ac_objext'
5040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 (eval $ac_try) 2>&5
5042 ac_status=$?
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; }; then
5045 ac_cv_type_size_t=yes
5046 else
5047 echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5050 ac_cv_type_size_t=no
5052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5054 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5055 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5056 if test $ac_cv_type_size_t = yes; then
5058 else
5060 cat >>confdefs.h <<_ACEOF
5061 #define size_t unsigned
5062 _ACEOF
5066 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5067 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5068 if test "${ac_cv_type_uid_t+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 else
5071 cat >conftest.$ac_ext <<_ACEOF
5072 /* confdefs.h. */
5073 _ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5077 #include <sys/types.h>
5079 _ACEOF
5080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5081 $EGREP "uid_t" >/dev/null 2>&1; then
5082 ac_cv_type_uid_t=yes
5083 else
5084 ac_cv_type_uid_t=no
5086 rm -f conftest*
5089 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5090 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5091 if test $ac_cv_type_uid_t = no; then
5093 cat >>confdefs.h <<\_ACEOF
5094 #define uid_t int
5095 _ACEOF
5098 cat >>confdefs.h <<\_ACEOF
5099 #define gid_t int
5100 _ACEOF
5155 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
5157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5158 echo "$as_me:$LINENO: checking for $ac_func" >&5
5159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5160 if eval "test \"\${$as_ac_var+set}\" = set"; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5162 else
5163 cat >conftest.$ac_ext <<_ACEOF
5164 /* confdefs.h. */
5165 _ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h. */
5169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5171 #define $ac_func innocuous_$ac_func
5173 /* System header to define __stub macros and hopefully few prototypes,
5174 which can conflict with char $ac_func (); below.
5175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5176 <limits.h> exists even on freestanding compilers. */
5178 #ifdef __STDC__
5179 # include <limits.h>
5180 #else
5181 # include <assert.h>
5182 #endif
5184 #undef $ac_func
5186 /* Override any gcc2 internal prototype to avoid an error. */
5187 #ifdef __cplusplus
5188 extern "C"
5190 #endif
5191 /* We use char because int might match the return type of a gcc2
5192 builtin and then its argument prototype would still apply. */
5193 char $ac_func ();
5194 /* The GNU C library defines this for functions which it implements
5195 to always fail with ENOSYS. Some functions are actually named
5196 something starting with __ and the normal name is an alias. */
5197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5198 choke me
5199 #else
5200 char (*f) () = $ac_func;
5201 #endif
5202 #ifdef __cplusplus
5204 #endif
5207 main ()
5209 return f != $ac_func;
5211 return 0;
5213 _ACEOF
5214 rm -f conftest.$ac_objext conftest$ac_exeext
5215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5216 (eval $ac_link) 2>conftest.er1
5217 ac_status=$?
5218 grep -v '^ *+' conftest.er1 >conftest.err
5219 rm -f conftest.er1
5220 cat conftest.err >&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } &&
5223 { ac_try='test -z "$ac_c_werror_flag"
5224 || test ! -s conftest.err'
5225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226 (eval $ac_try) 2>&5
5227 ac_status=$?
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); }; } &&
5230 { ac_try='test -s conftest$ac_exeext'
5231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232 (eval $ac_try) 2>&5
5233 ac_status=$?
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }; }; then
5236 eval "$as_ac_var=yes"
5237 else
5238 echo "$as_me: failed program was:" >&5
5239 sed 's/^/| /' conftest.$ac_ext >&5
5241 eval "$as_ac_var=no"
5243 rm -f conftest.err conftest.$ac_objext \
5244 conftest$ac_exeext conftest.$ac_ext
5246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5247 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5248 if test `eval echo '${'$as_ac_var'}'` = yes; then
5249 cat >>confdefs.h <<_ACEOF
5250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5251 _ACEOF
5254 done
5275 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
5277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5279 echo "$as_me:$LINENO: checking for $ac_header" >&5
5280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5286 else
5287 # Is the header compilable?
5288 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5289 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5290 cat >conftest.$ac_ext <<_ACEOF
5291 /* confdefs.h. */
5292 _ACEOF
5293 cat confdefs.h >>conftest.$ac_ext
5294 cat >>conftest.$ac_ext <<_ACEOF
5295 /* end confdefs.h. */
5296 $ac_includes_default
5297 #include <$ac_header>
5298 _ACEOF
5299 rm -f conftest.$ac_objext
5300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5301 (eval $ac_compile) 2>conftest.er1
5302 ac_status=$?
5303 grep -v '^ *+' conftest.er1 >conftest.err
5304 rm -f conftest.er1
5305 cat conftest.err >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } &&
5308 { ac_try='test -z "$ac_c_werror_flag"
5309 || test ! -s conftest.err'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311 (eval $ac_try) 2>&5
5312 ac_status=$?
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; } &&
5315 { ac_try='test -s conftest.$ac_objext'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 (eval $ac_try) 2>&5
5318 ac_status=$?
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5321 ac_header_compiler=yes
5322 else
5323 echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5326 ac_header_compiler=no
5328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5329 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5330 echo "${ECHO_T}$ac_header_compiler" >&6
5332 # Is the header present?
5333 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5335 cat >conftest.$ac_ext <<_ACEOF
5336 /* confdefs.h. */
5337 _ACEOF
5338 cat confdefs.h >>conftest.$ac_ext
5339 cat >>conftest.$ac_ext <<_ACEOF
5340 /* end confdefs.h. */
5341 #include <$ac_header>
5342 _ACEOF
5343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5345 ac_status=$?
5346 grep -v '^ *+' conftest.er1 >conftest.err
5347 rm -f conftest.er1
5348 cat conftest.err >&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); } >/dev/null; then
5351 if test -s conftest.err; then
5352 ac_cpp_err=$ac_c_preproc_warn_flag
5353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5354 else
5355 ac_cpp_err=
5357 else
5358 ac_cpp_err=yes
5360 if test -z "$ac_cpp_err"; then
5361 ac_header_preproc=yes
5362 else
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5366 ac_header_preproc=no
5368 rm -f conftest.err conftest.$ac_ext
5369 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5370 echo "${ECHO_T}$ac_header_preproc" >&6
5372 # So? What about this header?
5373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5374 yes:no: )
5375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5379 ac_header_preproc=yes
5381 no:yes:* )
5382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5385 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5386 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5388 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5389 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5392 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5395 cat <<\_ASBOX
5396 ## ------------------------------------------ ##
5397 ## Report this to the AC_PACKAGE_NAME lists. ##
5398 ## ------------------------------------------ ##
5399 _ASBOX
5401 sed "s/^/$as_me: WARNING: /" >&2
5403 esac
5404 echo "$as_me:$LINENO: checking for $ac_header" >&5
5405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 else
5409 eval "$as_ac_Header=\$ac_header_preproc"
5411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5416 cat >>confdefs.h <<_ACEOF
5417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5418 _ACEOF
5422 done
5429 ac_header_dirent=no
5430 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5431 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5432 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5433 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 else
5437 cat >conftest.$ac_ext <<_ACEOF
5438 /* confdefs.h. */
5439 _ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5443 #include <sys/types.h>
5444 #include <$ac_hdr>
5447 main ()
5449 if ((DIR *) 0)
5450 return 0;
5452 return 0;
5454 _ACEOF
5455 rm -f conftest.$ac_objext
5456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5457 (eval $ac_compile) 2>conftest.er1
5458 ac_status=$?
5459 grep -v '^ *+' conftest.er1 >conftest.err
5460 rm -f conftest.er1
5461 cat conftest.err >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); } &&
5464 { ac_try='test -z "$ac_c_werror_flag"
5465 || test ! -s conftest.err'
5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467 (eval $ac_try) 2>&5
5468 ac_status=$?
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; } &&
5471 { ac_try='test -s conftest.$ac_objext'
5472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473 (eval $ac_try) 2>&5
5474 ac_status=$?
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); }; }; then
5477 eval "$as_ac_Header=yes"
5478 else
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5482 eval "$as_ac_Header=no"
5484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5489 cat >>confdefs.h <<_ACEOF
5490 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5491 _ACEOF
5493 ac_header_dirent=$ac_hdr; break
5496 done
5497 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5498 if test $ac_header_dirent = dirent.h; then
5499 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5500 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5501 if test "${ac_cv_search_opendir+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504 ac_func_search_save_LIBS=$LIBS
5505 ac_cv_search_opendir=no
5506 cat >conftest.$ac_ext <<_ACEOF
5507 /* confdefs.h. */
5508 _ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h. */
5513 /* Override any gcc2 internal prototype to avoid an error. */
5514 #ifdef __cplusplus
5515 extern "C"
5516 #endif
5517 /* We use char because int might match the return type of a gcc2
5518 builtin and then its argument prototype would still apply. */
5519 char opendir ();
5521 main ()
5523 opendir ();
5525 return 0;
5527 _ACEOF
5528 rm -f conftest.$ac_objext conftest$ac_exeext
5529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5530 (eval $ac_link) 2>conftest.er1
5531 ac_status=$?
5532 grep -v '^ *+' conftest.er1 >conftest.err
5533 rm -f conftest.er1
5534 cat conftest.err >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } &&
5537 { ac_try='test -z "$ac_c_werror_flag"
5538 || test ! -s conftest.err'
5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540 (eval $ac_try) 2>&5
5541 ac_status=$?
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; } &&
5544 { ac_try='test -s conftest$ac_exeext'
5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546 (eval $ac_try) 2>&5
5547 ac_status=$?
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; }; then
5550 ac_cv_search_opendir="none required"
5551 else
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5556 rm -f conftest.err conftest.$ac_objext \
5557 conftest$ac_exeext conftest.$ac_ext
5558 if test "$ac_cv_search_opendir" = no; then
5559 for ac_lib in dir; do
5560 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5561 cat >conftest.$ac_ext <<_ACEOF
5562 /* confdefs.h. */
5563 _ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5568 /* Override any gcc2 internal prototype to avoid an error. */
5569 #ifdef __cplusplus
5570 extern "C"
5571 #endif
5572 /* We use char because int might match the return type of a gcc2
5573 builtin and then its argument prototype would still apply. */
5574 char opendir ();
5576 main ()
5578 opendir ();
5580 return 0;
5582 _ACEOF
5583 rm -f conftest.$ac_objext conftest$ac_exeext
5584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5585 (eval $ac_link) 2>conftest.er1
5586 ac_status=$?
5587 grep -v '^ *+' conftest.er1 >conftest.err
5588 rm -f conftest.er1
5589 cat conftest.err >&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } &&
5592 { ac_try='test -z "$ac_c_werror_flag"
5593 || test ! -s conftest.err'
5594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5595 (eval $ac_try) 2>&5
5596 ac_status=$?
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); }; } &&
5599 { ac_try='test -s conftest$ac_exeext'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 (eval $ac_try) 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; }; then
5605 ac_cv_search_opendir="-l$ac_lib"
5606 break
5607 else
5608 echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.$ac_ext >&5
5612 rm -f conftest.err conftest.$ac_objext \
5613 conftest$ac_exeext conftest.$ac_ext
5614 done
5616 LIBS=$ac_func_search_save_LIBS
5618 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5619 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5620 if test "$ac_cv_search_opendir" != no; then
5621 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5625 else
5626 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5627 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5628 if test "${ac_cv_search_opendir+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5630 else
5631 ac_func_search_save_LIBS=$LIBS
5632 ac_cv_search_opendir=no
5633 cat >conftest.$ac_ext <<_ACEOF
5634 /* confdefs.h. */
5635 _ACEOF
5636 cat confdefs.h >>conftest.$ac_ext
5637 cat >>conftest.$ac_ext <<_ACEOF
5638 /* end confdefs.h. */
5640 /* Override any gcc2 internal prototype to avoid an error. */
5641 #ifdef __cplusplus
5642 extern "C"
5643 #endif
5644 /* We use char because int might match the return type of a gcc2
5645 builtin and then its argument prototype would still apply. */
5646 char opendir ();
5648 main ()
5650 opendir ();
5652 return 0;
5654 _ACEOF
5655 rm -f conftest.$ac_objext conftest$ac_exeext
5656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5657 (eval $ac_link) 2>conftest.er1
5658 ac_status=$?
5659 grep -v '^ *+' conftest.er1 >conftest.err
5660 rm -f conftest.er1
5661 cat conftest.err >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } &&
5664 { ac_try='test -z "$ac_c_werror_flag"
5665 || test ! -s conftest.err'
5666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667 (eval $ac_try) 2>&5
5668 ac_status=$?
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; } &&
5671 { ac_try='test -s conftest$ac_exeext'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 (eval $ac_try) 2>&5
5674 ac_status=$?
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; }; then
5677 ac_cv_search_opendir="none required"
5678 else
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5683 rm -f conftest.err conftest.$ac_objext \
5684 conftest$ac_exeext conftest.$ac_ext
5685 if test "$ac_cv_search_opendir" = no; then
5686 for ac_lib in x; do
5687 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5688 cat >conftest.$ac_ext <<_ACEOF
5689 /* confdefs.h. */
5690 _ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h. */
5695 /* Override any gcc2 internal prototype to avoid an error. */
5696 #ifdef __cplusplus
5697 extern "C"
5698 #endif
5699 /* We use char because int might match the return type of a gcc2
5700 builtin and then its argument prototype would still apply. */
5701 char opendir ();
5703 main ()
5705 opendir ();
5707 return 0;
5709 _ACEOF
5710 rm -f conftest.$ac_objext conftest$ac_exeext
5711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5712 (eval $ac_link) 2>conftest.er1
5713 ac_status=$?
5714 grep -v '^ *+' conftest.er1 >conftest.err
5715 rm -f conftest.er1
5716 cat conftest.err >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } &&
5719 { ac_try='test -z "$ac_c_werror_flag"
5720 || test ! -s conftest.err'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 (eval $ac_try) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; } &&
5726 { ac_try='test -s conftest$ac_exeext'
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 (eval $ac_try) 2>&5
5729 ac_status=$?
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; }; then
5732 ac_cv_search_opendir="-l$ac_lib"
5733 break
5734 else
5735 echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5739 rm -f conftest.err conftest.$ac_objext \
5740 conftest$ac_exeext conftest.$ac_ext
5741 done
5743 LIBS=$ac_func_search_save_LIBS
5745 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5746 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5747 if test "$ac_cv_search_opendir" != no; then
5748 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5755 sim_termio=""
5756 echo "$as_me:$LINENO: checking for struct termios" >&5
5757 echo $ECHO_N "checking for struct termios... $ECHO_C" >&6
5758 if test "${ac_cv_termios_struct+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761 cat >conftest.$ac_ext <<_ACEOF
5762 /* confdefs.h. */
5763 _ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5767 #include <sys/types.h>
5768 #include <sys/termios.h>
5770 main ()
5772 static struct termios x;
5773 x.c_iflag = 0;
5774 x.c_oflag = 0;
5775 x.c_cflag = 0;
5776 x.c_lflag = 0;
5777 x.c_cc[NCCS] = 0;
5779 return 0;
5781 _ACEOF
5782 rm -f conftest.$ac_objext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5784 (eval $ac_compile) 2>conftest.er1
5785 ac_status=$?
5786 grep -v '^ *+' conftest.er1 >conftest.err
5787 rm -f conftest.er1
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } &&
5791 { ac_try='test -z "$ac_c_werror_flag"
5792 || test ! -s conftest.err'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 (eval $ac_try) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; } &&
5798 { ac_try='test -s conftest.$ac_objext'
5799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 (eval $ac_try) 2>&5
5801 ac_status=$?
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); }; }; then
5804 ac_cv_termios_struct=yes
5805 else
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5809 ac_cv_termios_struct=no
5811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5814 echo "$as_me:$LINENO: result: $ac_cv_termios_struct" >&5
5815 echo "${ECHO_T}$ac_cv_termios_struct" >&6
5816 if test $ac_cv_termios_struct = yes; then
5817 sim_termio="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
5820 if test "$ac_cv_termios_struct" = "yes"; then
5821 echo "$as_me:$LINENO: checking for c_line field in struct termios" >&5
5822 echo $ECHO_N "checking for c_line field in struct termios... $ECHO_C" >&6
5823 if test "${ac_cv_termios_cline+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5825 else
5826 cat >conftest.$ac_ext <<_ACEOF
5827 /* confdefs.h. */
5828 _ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h. */
5832 #include <sys/types.h>
5833 #include <sys/termios.h>
5835 main ()
5837 static struct termios x; x.c_line = 0;
5839 return 0;
5841 _ACEOF
5842 rm -f conftest.$ac_objext
5843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5844 (eval $ac_compile) 2>conftest.er1
5845 ac_status=$?
5846 grep -v '^ *+' conftest.er1 >conftest.err
5847 rm -f conftest.er1
5848 cat conftest.err >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); } &&
5851 { ac_try='test -z "$ac_c_werror_flag"
5852 || test ! -s conftest.err'
5853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854 (eval $ac_try) 2>&5
5855 ac_status=$?
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); }; } &&
5858 { ac_try='test -s conftest.$ac_objext'
5859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860 (eval $ac_try) 2>&5
5861 ac_status=$?
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; }; then
5864 ac_cv_termios_cline=yes
5865 else
5866 echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5869 ac_cv_termios_cline=no
5871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5875 echo "$as_me:$LINENO: result: $ac_cv_termios_cline" >&5
5876 echo "${ECHO_T}$ac_cv_termios_cline" >&6
5877 if test $ac_cv_termios_cline = yes; then
5878 sim_termio="$sim_termio -DHAVE_TERMIOS_CLINE"
5880 else
5881 ac_cv_termios_cline=no
5884 if test "$ac_cv_termios_struct" != "yes"; then
5885 echo "$as_me:$LINENO: checking for struct termio" >&5
5886 echo $ECHO_N "checking for struct termio... $ECHO_C" >&6
5887 if test "${ac_cv_termio_struct+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890 cat >conftest.$ac_ext <<_ACEOF
5891 /* confdefs.h. */
5892 _ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5896 #include <sys/types.h>
5897 #include <sys/termio.h>
5899 main ()
5901 static struct termio x;
5902 x.c_iflag = 0;
5903 x.c_oflag = 0;
5904 x.c_cflag = 0;
5905 x.c_lflag = 0;
5906 x.c_cc[NCC] = 0;
5908 return 0;
5910 _ACEOF
5911 rm -f conftest.$ac_objext
5912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5913 (eval $ac_compile) 2>conftest.er1
5914 ac_status=$?
5915 grep -v '^ *+' conftest.er1 >conftest.err
5916 rm -f conftest.er1
5917 cat conftest.err >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } &&
5920 { ac_try='test -z "$ac_c_werror_flag"
5921 || test ! -s conftest.err'
5922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923 (eval $ac_try) 2>&5
5924 ac_status=$?
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; } &&
5927 { ac_try='test -s conftest.$ac_objext'
5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929 (eval $ac_try) 2>&5
5930 ac_status=$?
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; }; then
5933 ac_cv_termio_struct=yes
5934 else
5935 echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5938 ac_cv_termio_struct=no
5940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5943 echo "$as_me:$LINENO: result: $ac_cv_termio_struct" >&5
5944 echo "${ECHO_T}$ac_cv_termio_struct" >&6
5945 if test $ac_cv_termio_struct = yes; then
5946 sim_termio="$sim_termio -DHAVE_TERMIO_STRUCTURE"
5948 else
5949 ac_cv_termio_struct=no
5952 if test "$ac_cv_termio_struct" = "yes"; then
5953 echo "$as_me:$LINENO: checking for c_line field in struct termio" >&5
5954 echo $ECHO_N "checking for c_line field in struct termio... $ECHO_C" >&6
5955 if test "${ac_cv_termio_cline+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958 cat >conftest.$ac_ext <<_ACEOF
5959 /* confdefs.h. */
5960 _ACEOF
5961 cat confdefs.h >>conftest.$ac_ext
5962 cat >>conftest.$ac_ext <<_ACEOF
5963 /* end confdefs.h. */
5964 #include <sys/types.h>
5965 #include <sys/termio.h>
5967 main ()
5969 static struct termio x; x.c_line = 0;
5971 return 0;
5973 _ACEOF
5974 rm -f conftest.$ac_objext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976 (eval $ac_compile) 2>conftest.er1
5977 ac_status=$?
5978 grep -v '^ *+' conftest.er1 >conftest.err
5979 rm -f conftest.er1
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } &&
5983 { ac_try='test -z "$ac_c_werror_flag"
5984 || test ! -s conftest.err'
5985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986 (eval $ac_try) 2>&5
5987 ac_status=$?
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; } &&
5990 { ac_try='test -s conftest.$ac_objext'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 (eval $ac_try) 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; }; then
5996 ac_cv_termio_cline=yes
5997 else
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6001 ac_cv_termio_cline=no
6003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6007 echo "$as_me:$LINENO: result: $ac_cv_termio_cline" >&5
6008 echo "${ECHO_T}$ac_cv_termio_cline" >&6
6009 if test $ac_cv_termio_cline = yes; then
6010 sim_termio="$sim_termio -DHAVE_TERMIO_CLINE"
6012 else
6013 ac_cv_termio_cline=no
6016 echo "$as_me:$LINENO: checking for struct statfs" >&5
6017 echo $ECHO_N "checking for struct statfs... $ECHO_C" >&6
6018 if test "${ac_cv_struct_statfs+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 else
6021 cat >conftest.$ac_ext <<_ACEOF
6022 /* confdefs.h. */
6023 _ACEOF
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6027 #include <sys/types.h>
6028 #ifdef HAVE_SYS_PARAM_H
6029 #include <sys/param.h>
6030 #endif
6031 #ifdef HAVE_SYS_MOUNT_H
6032 #include <sys/mount.h>
6033 #endif
6034 #ifdef HAVE_SYS_VFS_H
6035 #include <sys/vfs.h>
6036 #endif
6037 #ifdef HAVE_SYS_STATFS_H
6038 #include <sys/statfs.h>
6039 #endif
6041 main ()
6043 static struct statfs s;
6045 return 0;
6047 _ACEOF
6048 rm -f conftest.$ac_objext
6049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6050 (eval $ac_compile) 2>conftest.er1
6051 ac_status=$?
6052 grep -v '^ *+' conftest.er1 >conftest.err
6053 rm -f conftest.er1
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } &&
6057 { ac_try='test -z "$ac_c_werror_flag"
6058 || test ! -s conftest.err'
6059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060 (eval $ac_try) 2>&5
6061 ac_status=$?
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; } &&
6064 { ac_try='test -s conftest.$ac_objext'
6065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066 (eval $ac_try) 2>&5
6067 ac_status=$?
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); }; }; then
6070 ac_cv_struct_statfs=yes
6071 else
6072 echo "$as_me: failed program was:" >&5
6073 sed 's/^/| /' conftest.$ac_ext >&5
6075 ac_cv_struct_statfs=no
6077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6080 echo "$as_me:$LINENO: result: $ac_cv_struct_statfs" >&5
6081 echo "${ECHO_T}$ac_cv_struct_statfs" >&6
6082 if test $ac_cv_struct_statfs = yes; then
6084 cat >>confdefs.h <<\_ACEOF
6085 #define HAVE_STRUCT_STATFS 1
6086 _ACEOF
6090 echo "$as_me:$LINENO: checking for long long" >&5
6091 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6092 if test "${ac_cv_type_long_long+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6094 else
6095 cat >conftest.$ac_ext <<_ACEOF
6096 /* confdefs.h. */
6097 _ACEOF
6098 cat confdefs.h >>conftest.$ac_ext
6099 cat >>conftest.$ac_ext <<_ACEOF
6100 /* end confdefs.h. */
6101 $ac_includes_default
6103 main ()
6105 if ((long long *) 0)
6106 return 0;
6107 if (sizeof (long long))
6108 return 0;
6110 return 0;
6112 _ACEOF
6113 rm -f conftest.$ac_objext
6114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6115 (eval $ac_compile) 2>conftest.er1
6116 ac_status=$?
6117 grep -v '^ *+' conftest.er1 >conftest.err
6118 rm -f conftest.er1
6119 cat conftest.err >&5
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); } &&
6122 { ac_try='test -z "$ac_c_werror_flag"
6123 || test ! -s conftest.err'
6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125 (eval $ac_try) 2>&5
6126 ac_status=$?
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; } &&
6129 { ac_try='test -s conftest.$ac_objext'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 (eval $ac_try) 2>&5
6132 ac_status=$?
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; }; then
6135 ac_cv_type_long_long=yes
6136 else
6137 echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.$ac_ext >&5
6140 ac_cv_type_long_long=no
6142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6144 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6145 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6146 if test $ac_cv_type_long_long = yes; then
6148 cat >>confdefs.h <<_ACEOF
6149 #define HAVE_LONG_LONG 1
6150 _ACEOF
6156 sim_devzero=""
6157 echo "$as_me:$LINENO: checking for /dev/zero" >&5
6158 echo $ECHO_N "checking for /dev/zero... $ECHO_C" >&6
6159 if test "${ac_cv_devzero+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 else
6162 if test "$cross_compiling" = yes; then
6163 ac_cv_devzero=no
6164 else
6165 cat >conftest.$ac_ext <<_ACEOF
6166 /* confdefs.h. */
6167 _ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6171 #include <fcntl.h>
6172 main () {
6173 char buf[2048];
6174 int i;
6175 int fd = open ("/dev/zero", O_RDONLY);
6176 if (fd < 0)
6177 return 1;
6178 for (i = 0; i < sizeof (buf); i++)
6179 buf[i] = 1;
6180 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
6181 return 1;
6182 for (i = 0; i < sizeof (buf); i++)
6183 if (buf[i])
6184 return 1;
6185 return 0;
6187 _ACEOF
6188 rm -f conftest$ac_exeext
6189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6190 (eval $ac_link) 2>&5
6191 ac_status=$?
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 (eval $ac_try) 2>&5
6196 ac_status=$?
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; }; then
6199 ac_cv_devzero=yes
6200 else
6201 echo "$as_me: program exited with status $ac_status" >&5
6202 echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.$ac_ext >&5
6205 ( exit $ac_status )
6206 ac_cv_devzero=no
6208 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6212 echo "$as_me:$LINENO: result: $ac_cv_devzero" >&5
6213 echo "${ECHO_T}$ac_cv_devzero" >&6
6214 if test $ac_cv_devzero = yes; then
6215 sim_devzero="-DHAVE_DEVZERO"
6216 else
6217 sim_devzero=""
6220 echo "$as_me:$LINENO: checking for common simulator directory" >&5
6221 echo $ECHO_N "checking for common simulator directory... $ECHO_C" >&6
6222 if test -f "${srcdir}/../common/callback.c"; then
6223 echo "$as_me:$LINENO: result: yes" >&5
6224 echo "${ECHO_T}yes" >&6
6225 sim_callback="callback.o targ-map.o"
6226 sim_targ_vals="targ-vals.h targ-map.c targ-vals.def"
6227 else
6228 echo "$as_me:$LINENO: result: no" >&5
6229 echo "${ECHO_T}no" >&6
6230 sim_callback=""
6231 sim_targ_vals=""
6234 echo "$as_me:$LINENO: checking for common simulator directory fpu implementation" >&5
6235 echo $ECHO_N "checking for common simulator directory fpu implementation... $ECHO_C" >&6
6236 if test -f "${srcdir}/../common/sim-fpu.c"; then
6237 echo "$as_me:$LINENO: result: yes" >&5
6238 echo "${ECHO_T}yes" >&6
6239 sim_fpu_cflags="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
6240 sim_fpu="sim-fpu.o"
6241 else
6242 echo "$as_me:$LINENO: result: no" >&5
6243 echo "${ECHO_T}no" >&6
6244 sim_fpu_cflags=
6245 sim_fpu=
6254 AR=${AR-ar}
6256 if test -n "$ac_tool_prefix"; then
6257 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6258 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6259 echo "$as_me:$LINENO: checking for $ac_word" >&5
6260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6261 if test "${ac_cv_prog_RANLIB+set}" = set; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
6263 else
6264 if test -n "$RANLIB"; then
6265 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6266 else
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 for as_dir in $PATH
6270 IFS=$as_save_IFS
6271 test -z "$as_dir" && as_dir=.
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6274 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6276 break 2
6278 done
6279 done
6283 RANLIB=$ac_cv_prog_RANLIB
6284 if test -n "$RANLIB"; then
6285 echo "$as_me:$LINENO: result: $RANLIB" >&5
6286 echo "${ECHO_T}$RANLIB" >&6
6287 else
6288 echo "$as_me:$LINENO: result: no" >&5
6289 echo "${ECHO_T}no" >&6
6293 if test -z "$ac_cv_prog_RANLIB"; then
6294 ac_ct_RANLIB=$RANLIB
6295 # Extract the first word of "ranlib", so it can be a program name with args.
6296 set dummy ranlib; ac_word=$2
6297 echo "$as_me:$LINENO: checking for $ac_word" >&5
6298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6299 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302 if test -n "$ac_ct_RANLIB"; then
6303 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6304 else
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 for as_dir in $PATH
6308 IFS=$as_save_IFS
6309 test -z "$as_dir" && as_dir=.
6310 for ac_exec_ext in '' $ac_executable_extensions; do
6311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6312 ac_cv_prog_ac_ct_RANLIB="ranlib"
6313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6314 break 2
6316 done
6317 done
6319 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6322 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6323 if test -n "$ac_ct_RANLIB"; then
6324 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6325 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6326 else
6327 echo "$as_me:$LINENO: result: no" >&5
6328 echo "${ECHO_T}no" >&6
6331 RANLIB=$ac_ct_RANLIB
6332 else
6333 RANLIB="$ac_cv_prog_RANLIB"
6381 ac_config_files="$ac_config_files Makefile"
6382 ac_config_commands="$ac_config_commands default"
6383 cat >confcache <<\_ACEOF
6384 # This file is a shell script that caches the results of configure
6385 # tests run on this system so they can be shared between configure
6386 # scripts and configure runs, see configure's option --config-cache.
6387 # It is not useful on other systems. If it contains results you don't
6388 # want to keep, you may remove or edit it.
6390 # config.status only pays attention to the cache file if you give it
6391 # the --recheck option to rerun configure.
6393 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6394 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6395 # following values.
6397 _ACEOF
6399 # The following way of writing the cache mishandles newlines in values,
6400 # but we know of no workaround that is simple, portable, and efficient.
6401 # So, don't put newlines in cache variables' values.
6402 # Ultrix sh set writes to stderr and can't be redirected directly,
6403 # and sets the high bit in the cache file unless we assign to the vars.
6405 (set) 2>&1 |
6406 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6407 *ac_space=\ *)
6408 # `set' does not quote correctly, so add quotes (double-quote
6409 # substitution turns \\\\ into \\, and sed turns \\ into \).
6410 sed -n \
6411 "s/'/'\\\\''/g;
6412 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6415 # `set' quotes correctly as required by POSIX, so do not add quotes.
6416 sed -n \
6417 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6419 esac;
6421 sed '
6422 t clear
6423 : clear
6424 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6425 t end
6426 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6427 : end' >>confcache
6428 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6429 if test -w $cache_file; then
6430 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6431 cat confcache >$cache_file
6432 else
6433 echo "not updating unwritable cache $cache_file"
6436 rm -f confcache
6438 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6439 # Let make expand exec_prefix.
6440 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6442 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6443 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6444 # trailing colons and then remove the whole line if VPATH becomes empty
6445 # (actually we leave an empty line to preserve line numbers).
6446 if test "x$srcdir" = x.; then
6447 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6448 s/:*\$(srcdir):*/:/;
6449 s/:*\${srcdir}:*/:/;
6450 s/:*@srcdir@:*/:/;
6451 s/^\([^=]*=[ ]*\):*/\1/;
6452 s/:*$//;
6453 s/^[^=]*=[ ]*$//;
6457 DEFS=-DHAVE_CONFIG_H
6459 ac_libobjs=
6460 ac_ltlibobjs=
6461 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6462 # 1. Remove the extension, and $U if already installed.
6463 ac_i=`echo "$ac_i" |
6464 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6465 # 2. Add them.
6466 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6467 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6468 done
6469 LIBOBJS=$ac_libobjs
6471 LTLIBOBJS=$ac_ltlibobjs
6475 : ${CONFIG_STATUS=./config.status}
6476 ac_clean_files_save=$ac_clean_files
6477 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6478 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6479 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6480 cat >$CONFIG_STATUS <<_ACEOF
6481 #! $SHELL
6482 # Generated by $as_me.
6483 # Run this file to recreate the current configuration.
6484 # Compiler output produced by configure, useful for debugging
6485 # configure, is in config.log if it exists.
6487 debug=false
6488 ac_cs_recheck=false
6489 ac_cs_silent=false
6490 SHELL=\${CONFIG_SHELL-$SHELL}
6491 _ACEOF
6493 cat >>$CONFIG_STATUS <<\_ACEOF
6494 ## --------------------- ##
6495 ## M4sh Initialization. ##
6496 ## --------------------- ##
6498 # Be Bourne compatible
6499 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6500 emulate sh
6501 NULLCMD=:
6502 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6503 # is contrary to our usage. Disable this feature.
6504 alias -g '${1+"$@"}'='"$@"'
6505 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6506 set -o posix
6508 DUALCASE=1; export DUALCASE # for MKS sh
6510 # Support unset when possible.
6511 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6512 as_unset=unset
6513 else
6514 as_unset=false
6518 # Work around bugs in pre-3.0 UWIN ksh.
6519 $as_unset ENV MAIL MAILPATH
6520 PS1='$ '
6521 PS2='> '
6522 PS4='+ '
6524 # NLS nuisances.
6525 for as_var in \
6526 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6527 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6528 LC_TELEPHONE LC_TIME
6530 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6531 eval $as_var=C; export $as_var
6532 else
6533 $as_unset $as_var
6535 done
6537 # Required to use basename.
6538 if expr a : '\(a\)' >/dev/null 2>&1; then
6539 as_expr=expr
6540 else
6541 as_expr=false
6544 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6545 as_basename=basename
6546 else
6547 as_basename=false
6551 # Name of the executable.
6552 as_me=`$as_basename "$0" ||
6553 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6554 X"$0" : 'X\(//\)$' \| \
6555 X"$0" : 'X\(/\)$' \| \
6556 . : '\(.\)' 2>/dev/null ||
6557 echo X/"$0" |
6558 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6559 /^X\/\(\/\/\)$/{ s//\1/; q; }
6560 /^X\/\(\/\).*/{ s//\1/; q; }
6561 s/.*/./; q'`
6564 # PATH needs CR, and LINENO needs CR and PATH.
6565 # Avoid depending upon Character Ranges.
6566 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6567 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6568 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6569 as_cr_digits='0123456789'
6570 as_cr_alnum=$as_cr_Letters$as_cr_digits
6572 # The user is always right.
6573 if test "${PATH_SEPARATOR+set}" != set; then
6574 echo "#! /bin/sh" >conf$$.sh
6575 echo "exit 0" >>conf$$.sh
6576 chmod +x conf$$.sh
6577 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6578 PATH_SEPARATOR=';'
6579 else
6580 PATH_SEPARATOR=:
6582 rm -f conf$$.sh
6586 as_lineno_1=$LINENO
6587 as_lineno_2=$LINENO
6588 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6589 test "x$as_lineno_1" != "x$as_lineno_2" &&
6590 test "x$as_lineno_3" = "x$as_lineno_2" || {
6591 # Find who we are. Look in the path if we contain no path at all
6592 # relative or not.
6593 case $0 in
6594 *[\\/]* ) as_myself=$0 ;;
6595 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 for as_dir in $PATH
6598 IFS=$as_save_IFS
6599 test -z "$as_dir" && as_dir=.
6600 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6601 done
6604 esac
6605 # We did not find ourselves, most probably we were run as `sh COMMAND'
6606 # in which case we are not to be found in the path.
6607 if test "x$as_myself" = x; then
6608 as_myself=$0
6610 if test ! -f "$as_myself"; then
6611 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6612 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6613 { (exit 1); exit 1; }; }
6615 case $CONFIG_SHELL in
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6620 IFS=$as_save_IFS
6621 test -z "$as_dir" && as_dir=.
6622 for as_base in sh bash ksh sh5; do
6623 case $as_dir in
6625 if ("$as_dir/$as_base" -c '
6626 as_lineno_1=$LINENO
6627 as_lineno_2=$LINENO
6628 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6629 test "x$as_lineno_1" != "x$as_lineno_2" &&
6630 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6631 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6632 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6633 CONFIG_SHELL=$as_dir/$as_base
6634 export CONFIG_SHELL
6635 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6636 fi;;
6637 esac
6638 done
6639 done
6641 esac
6643 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6644 # uniformly replaced by the line number. The first 'sed' inserts a
6645 # line-number line before each line; the second 'sed' does the real
6646 # work. The second script uses 'N' to pair each line-number line
6647 # with the numbered line, and appends trailing '-' during
6648 # substitution so that $LINENO is not a special case at line end.
6649 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6650 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6651 sed '=' <$as_myself |
6652 sed '
6654 s,$,-,
6655 : loop
6656 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6657 t loop
6658 s,-$,,
6659 s,^['$as_cr_digits']*\n,,
6660 ' >$as_me.lineno &&
6661 chmod +x $as_me.lineno ||
6662 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6663 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6664 { (exit 1); exit 1; }; }
6666 # Don't try to exec as it changes $[0], causing all sort of problems
6667 # (the dirname of $[0] is not the place where we might find the
6668 # original and so on. Autoconf is especially sensible to this).
6669 . ./$as_me.lineno
6670 # Exit status is that of the last command.
6671 exit
6675 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6676 *c*,-n*) ECHO_N= ECHO_C='
6677 ' ECHO_T=' ' ;;
6678 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6679 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6680 esac
6682 if expr a : '\(a\)' >/dev/null 2>&1; then
6683 as_expr=expr
6684 else
6685 as_expr=false
6688 rm -f conf$$ conf$$.exe conf$$.file
6689 echo >conf$$.file
6690 if ln -s conf$$.file conf$$ 2>/dev/null; then
6691 # We could just check for DJGPP; but this test a) works b) is more generic
6692 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6693 if test -f conf$$.exe; then
6694 # Don't use ln at all; we don't have any links
6695 as_ln_s='cp -p'
6696 else
6697 as_ln_s='ln -s'
6699 elif ln conf$$.file conf$$ 2>/dev/null; then
6700 as_ln_s=ln
6701 else
6702 as_ln_s='cp -p'
6704 rm -f conf$$ conf$$.exe conf$$.file
6706 if mkdir -p . 2>/dev/null; then
6707 as_mkdir_p=:
6708 else
6709 test -d ./-p && rmdir ./-p
6710 as_mkdir_p=false
6713 as_executable_p="test -f"
6715 # Sed expression to map a string onto a valid CPP name.
6716 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6718 # Sed expression to map a string onto a valid variable name.
6719 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6722 # IFS
6723 # We need space, tab and new line, in precisely that order.
6724 as_nl='
6726 IFS=" $as_nl"
6728 # CDPATH.
6729 $as_unset CDPATH
6731 exec 6>&1
6733 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6734 # report actual input values of CONFIG_FILES etc. instead of their
6735 # values after options handling. Logging --version etc. is OK.
6736 exec 5>>config.log
6738 echo
6739 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6740 ## Running $as_me. ##
6741 _ASBOX
6742 } >&5
6743 cat >&5 <<_CSEOF
6745 This file was extended by $as_me, which was
6746 generated by GNU Autoconf 2.59. Invocation command line was
6748 CONFIG_FILES = $CONFIG_FILES
6749 CONFIG_HEADERS = $CONFIG_HEADERS
6750 CONFIG_LINKS = $CONFIG_LINKS
6751 CONFIG_COMMANDS = $CONFIG_COMMANDS
6752 $ $0 $@
6754 _CSEOF
6755 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6756 echo >&5
6757 _ACEOF
6759 # Files that config.status was made for.
6760 if test -n "$ac_config_files"; then
6761 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6764 if test -n "$ac_config_headers"; then
6765 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6768 if test -n "$ac_config_links"; then
6769 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6772 if test -n "$ac_config_commands"; then
6773 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6776 cat >>$CONFIG_STATUS <<\_ACEOF
6778 ac_cs_usage="\
6779 \`$as_me' instantiates files from templates according to the
6780 current configuration.
6782 Usage: $0 [OPTIONS] [FILE]...
6784 -h, --help print this help, then exit
6785 -V, --version print version number, then exit
6786 -q, --quiet do not print progress messages
6787 -d, --debug don't remove temporary files
6788 --recheck update $as_me by reconfiguring in the same conditions
6789 --file=FILE[:TEMPLATE]
6790 instantiate the configuration file FILE
6791 --header=FILE[:TEMPLATE]
6792 instantiate the configuration header FILE
6794 Configuration files:
6795 $config_files
6797 Configuration headers:
6798 $config_headers
6800 Configuration commands:
6801 $config_commands
6803 Report bugs to <bug-autoconf@gnu.org>."
6804 _ACEOF
6806 cat >>$CONFIG_STATUS <<_ACEOF
6807 ac_cs_version="\\
6808 config.status
6809 configured by $0, generated by GNU Autoconf 2.59,
6810 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6812 Copyright (C) 2003 Free Software Foundation, Inc.
6813 This config.status script is free software; the Free Software Foundation
6814 gives unlimited permission to copy, distribute and modify it."
6815 srcdir=$srcdir
6816 INSTALL="$INSTALL"
6817 _ACEOF
6819 cat >>$CONFIG_STATUS <<\_ACEOF
6820 # If no file are specified by the user, then we need to provide default
6821 # value. By we need to know if files were specified by the user.
6822 ac_need_defaults=:
6823 while test $# != 0
6825 case $1 in
6826 --*=*)
6827 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6828 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6829 ac_shift=:
6832 ac_option=$1
6833 ac_optarg=$2
6834 ac_shift=shift
6836 *) # This is not an option, so the user has probably given explicit
6837 # arguments.
6838 ac_option=$1
6839 ac_need_defaults=false;;
6840 esac
6842 case $ac_option in
6843 # Handling of the options.
6844 _ACEOF
6845 cat >>$CONFIG_STATUS <<\_ACEOF
6846 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6847 ac_cs_recheck=: ;;
6848 --version | --vers* | -V )
6849 echo "$ac_cs_version"; exit 0 ;;
6850 --he | --h)
6851 # Conflict between --help and --header
6852 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6853 Try \`$0 --help' for more information." >&5
6854 echo "$as_me: error: ambiguous option: $1
6855 Try \`$0 --help' for more information." >&2;}
6856 { (exit 1); exit 1; }; };;
6857 --help | --hel | -h )
6858 echo "$ac_cs_usage"; exit 0 ;;
6859 --debug | --d* | -d )
6860 debug=: ;;
6861 --file | --fil | --fi | --f )
6862 $ac_shift
6863 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6864 ac_need_defaults=false;;
6865 --header | --heade | --head | --hea )
6866 $ac_shift
6867 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6868 ac_need_defaults=false;;
6869 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6870 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6871 ac_cs_silent=: ;;
6873 # This is an error.
6874 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6875 Try \`$0 --help' for more information." >&5
6876 echo "$as_me: error: unrecognized option: $1
6877 Try \`$0 --help' for more information." >&2;}
6878 { (exit 1); exit 1; }; } ;;
6880 *) ac_config_targets="$ac_config_targets $1" ;;
6882 esac
6883 shift
6884 done
6886 ac_configure_extra_args=
6888 if $ac_cs_silent; then
6889 exec 6>/dev/null
6890 ac_configure_extra_args="$ac_configure_extra_args --silent"
6893 _ACEOF
6894 cat >>$CONFIG_STATUS <<_ACEOF
6895 if \$ac_cs_recheck; then
6896 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6897 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6900 _ACEOF
6906 cat >>$CONFIG_STATUS <<\_ACEOF
6907 for ac_config_target in $ac_config_targets
6909 case "$ac_config_target" in
6910 # Handling of arguments.
6911 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6912 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6913 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
6914 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6915 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6916 { (exit 1); exit 1; }; };;
6917 esac
6918 done
6920 # If the user did not use the arguments to specify the items to instantiate,
6921 # then the envvar interface is used. Set only those that are not.
6922 # We use the long form for the default assignment because of an extremely
6923 # bizarre bug on SunOS 4.1.3.
6924 if $ac_need_defaults; then
6925 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6926 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6927 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6930 # Have a temporary directory for convenience. Make it in the build tree
6931 # simply because there is no reason to put it here, and in addition,
6932 # creating and moving files from /tmp can sometimes cause problems.
6933 # Create a temporary directory, and hook for its removal unless debugging.
6934 $debug ||
6936 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6937 trap '{ (exit 1); exit 1; }' 1 2 13 15
6940 # Create a (secure) tmp directory for tmp files.
6943 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6944 test -n "$tmp" && test -d "$tmp"
6945 } ||
6947 tmp=./confstat$$-$RANDOM
6948 (umask 077 && mkdir $tmp)
6949 } ||
6951 echo "$me: cannot create a temporary directory in ." >&2
6952 { (exit 1); exit 1; }
6955 _ACEOF
6957 cat >>$CONFIG_STATUS <<_ACEOF
6960 # CONFIG_FILES section.
6963 # No need to generate the scripts if there are no CONFIG_FILES.
6964 # This happens for instance when ./config.status config.h
6965 if test -n "\$CONFIG_FILES"; then
6966 # Protect against being on the right side of a sed subst in config.status.
6967 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6968 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6969 s,@sim_environment@,$sim_environment,;t t
6970 s,@sim_alignment@,$sim_alignment,;t t
6971 s,@sim_assert@,$sim_assert,;t t
6972 s,@sim_bitsize@,$sim_bitsize,;t t
6973 s,@sim_endian@,$sim_endian,;t t
6974 s,@sim_hostendian@,$sim_hostendian,;t t
6975 s,@sim_float@,$sim_float,;t t
6976 s,@sim_scache@,$sim_scache,;t t
6977 s,@sim_default_model@,$sim_default_model,;t t
6978 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
6979 s,@sim_hw_objs@,$sim_hw_objs,;t t
6980 s,@sim_hw@,$sim_hw,;t t
6981 s,@sim_inline@,$sim_inline,;t t
6982 s,@sim_packages@,$sim_packages,;t t
6983 s,@sim_regparm@,$sim_regparm,;t t
6984 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
6985 s,@sim_smp@,$sim_smp,;t t
6986 s,@sim_stdcall@,$sim_stdcall,;t t
6987 s,@sim_xor_endian@,$sim_xor_endian,;t t
6988 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
6989 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
6990 s,@SHELL@,$SHELL,;t t
6991 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6992 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6993 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6994 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6995 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6996 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6997 s,@exec_prefix@,$exec_prefix,;t t
6998 s,@prefix@,$prefix,;t t
6999 s,@program_transform_name@,$program_transform_name,;t t
7000 s,@bindir@,$bindir,;t t
7001 s,@sbindir@,$sbindir,;t t
7002 s,@libexecdir@,$libexecdir,;t t
7003 s,@datadir@,$datadir,;t t
7004 s,@sysconfdir@,$sysconfdir,;t t
7005 s,@sharedstatedir@,$sharedstatedir,;t t
7006 s,@localstatedir@,$localstatedir,;t t
7007 s,@libdir@,$libdir,;t t
7008 s,@includedir@,$includedir,;t t
7009 s,@oldincludedir@,$oldincludedir,;t t
7010 s,@infodir@,$infodir,;t t
7011 s,@mandir@,$mandir,;t t
7012 s,@build_alias@,$build_alias,;t t
7013 s,@host_alias@,$host_alias,;t t
7014 s,@target_alias@,$target_alias,;t t
7015 s,@DEFS@,$DEFS,;t t
7016 s,@ECHO_C@,$ECHO_C,;t t
7017 s,@ECHO_N@,$ECHO_N,;t t
7018 s,@ECHO_T@,$ECHO_T,;t t
7019 s,@LIBS@,$LIBS,;t t
7020 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7021 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7022 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7023 s,@CC@,$CC,;t t
7024 s,@CFLAGS@,$CFLAGS,;t t
7025 s,@LDFLAGS@,$LDFLAGS,;t t
7026 s,@CPPFLAGS@,$CPPFLAGS,;t t
7027 s,@ac_ct_CC@,$ac_ct_CC,;t t
7028 s,@EXEEXT@,$EXEEXT,;t t
7029 s,@OBJEXT@,$OBJEXT,;t t
7030 s,@USE_NLS@,$USE_NLS,;t t
7031 s,@LIBINTL@,$LIBINTL,;t t
7032 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
7033 s,@INCINTL@,$INCINTL,;t t
7034 s,@XGETTEXT@,$XGETTEXT,;t t
7035 s,@GMSGFMT@,$GMSGFMT,;t t
7036 s,@POSUB@,$POSUB,;t t
7037 s,@CATALOGS@,$CATALOGS,;t t
7038 s,@DATADIRNAME@,$DATADIRNAME,;t t
7039 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7040 s,@GENCAT@,$GENCAT,;t t
7041 s,@CATOBJEXT@,$CATOBJEXT,;t t
7042 s,@build@,$build,;t t
7043 s,@build_cpu@,$build_cpu,;t t
7044 s,@build_vendor@,$build_vendor,;t t
7045 s,@build_os@,$build_os,;t t
7046 s,@host@,$host,;t t
7047 s,@host_cpu@,$host_cpu,;t t
7048 s,@host_vendor@,$host_vendor,;t t
7049 s,@host_os@,$host_os,;t t
7050 s,@target@,$target,;t t
7051 s,@target_cpu@,$target_cpu,;t t
7052 s,@target_vendor@,$target_vendor,;t t
7053 s,@target_os@,$target_os,;t t
7054 s,@CPP@,$CPP,;t t
7055 s,@EGREP@,$EGREP,;t t
7056 s,@LIBOBJS@,$LIBOBJS,;t t
7057 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
7058 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
7059 s,@HDEFINES@,$HDEFINES,;t t
7060 s,@AR@,$AR,;t t
7061 s,@RANLIB@,$RANLIB,;t t
7062 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7063 s,@sim_cflags@,$sim_cflags,;t t
7064 s,@sim_warnings@,$sim_warnings,;t t
7065 s,@sim_line_nr@,$sim_line_nr,;t t
7066 s,@sim_config@,$sim_config,;t t
7067 s,@sim_opcode@,$sim_opcode,;t t
7068 s,@sim_switch@,$sim_switch,;t t
7069 s,@sim_dup@,$sim_dup,;t t
7070 s,@sim_decode_mechanism@,$sim_decode_mechanism,;t t
7071 s,@sim_jump@,$sim_jump,;t t
7072 s,@sim_filter@,$sim_filter,;t t
7073 s,@sim_icache@,$sim_icache,;t t
7074 s,@sim_hw_src@,$sim_hw_src,;t t
7075 s,@sim_hw_obj@,$sim_hw_obj,;t t
7076 s,@sim_pk_src@,$sim_pk_src,;t t
7077 s,@sim_pk_obj@,$sim_pk_obj,;t t
7078 s,@sim_bswap@,$sim_bswap,;t t
7079 s,@sim_igen_smp@,$sim_igen_smp,;t t
7080 s,@sim_hostbitsize@,$sim_hostbitsize,;t t
7081 s,@sim_env@,$sim_env,;t t
7082 s,@sim_timebase@,$sim_timebase,;t t
7083 s,@sim_trace@,$sim_trace,;t t
7084 s,@sim_reserved@,$sim_reserved,;t t
7085 s,@sim_monitor@,$sim_monitor,;t t
7086 s,@sim_model@,$sim_model,;t t
7087 s,@sim_model_issue@,$sim_model_issue,;t t
7088 s,@sim_stdio@,$sim_stdio,;t t
7089 s,@sim_termio@,$sim_termio,;t t
7090 s,@sim_devzero@,$sim_devzero,;t t
7091 s,@sim_callback@,$sim_callback,;t t
7092 s,@sim_targ_vals@,$sim_targ_vals,;t t
7093 s,@sim_fpu_cflags@,$sim_fpu_cflags,;t t
7094 s,@sim_fpu@,$sim_fpu,;t t
7095 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7096 CEOF
7098 _ACEOF
7100 cat >>$CONFIG_STATUS <<\_ACEOF
7101 # Split the substitutions into bite-sized pieces for seds with
7102 # small command number limits, like on Digital OSF/1 and HP-UX.
7103 ac_max_sed_lines=48
7104 ac_sed_frag=1 # Number of current file.
7105 ac_beg=1 # First line for current file.
7106 ac_end=$ac_max_sed_lines # Line after last line for current file.
7107 ac_more_lines=:
7108 ac_sed_cmds=
7109 while $ac_more_lines; do
7110 if test $ac_beg -gt 1; then
7111 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7112 else
7113 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7115 if test ! -s $tmp/subs.frag; then
7116 ac_more_lines=false
7117 else
7118 # The purpose of the label and of the branching condition is to
7119 # speed up the sed processing (if there are no `@' at all, there
7120 # is no need to browse any of the substitutions).
7121 # These are the two extra sed commands mentioned above.
7122 (echo ':t
7123 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7124 if test -z "$ac_sed_cmds"; then
7125 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7126 else
7127 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7129 ac_sed_frag=`expr $ac_sed_frag + 1`
7130 ac_beg=$ac_end
7131 ac_end=`expr $ac_end + $ac_max_sed_lines`
7133 done
7134 if test -z "$ac_sed_cmds"; then
7135 ac_sed_cmds=cat
7137 fi # test -n "$CONFIG_FILES"
7139 _ACEOF
7140 cat >>$CONFIG_STATUS <<\_ACEOF
7141 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7142 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7143 case $ac_file in
7144 - | *:- | *:-:* ) # input from stdin
7145 cat >$tmp/stdin
7146 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7147 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7148 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7149 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7150 * ) ac_file_in=$ac_file.in ;;
7151 esac
7153 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7154 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7155 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7156 X"$ac_file" : 'X\(//\)[^/]' \| \
7157 X"$ac_file" : 'X\(//\)$' \| \
7158 X"$ac_file" : 'X\(/\)' \| \
7159 . : '\(.\)' 2>/dev/null ||
7160 echo X"$ac_file" |
7161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7162 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7163 /^X\(\/\/\)$/{ s//\1/; q; }
7164 /^X\(\/\).*/{ s//\1/; q; }
7165 s/.*/./; q'`
7166 { if $as_mkdir_p; then
7167 mkdir -p "$ac_dir"
7168 else
7169 as_dir="$ac_dir"
7170 as_dirs=
7171 while test ! -d "$as_dir"; do
7172 as_dirs="$as_dir $as_dirs"
7173 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7174 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7175 X"$as_dir" : 'X\(//\)[^/]' \| \
7176 X"$as_dir" : 'X\(//\)$' \| \
7177 X"$as_dir" : 'X\(/\)' \| \
7178 . : '\(.\)' 2>/dev/null ||
7179 echo X"$as_dir" |
7180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7181 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7182 /^X\(\/\/\)$/{ s//\1/; q; }
7183 /^X\(\/\).*/{ s//\1/; q; }
7184 s/.*/./; q'`
7185 done
7186 test ! -n "$as_dirs" || mkdir $as_dirs
7187 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7188 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7189 { (exit 1); exit 1; }; }; }
7191 ac_builddir=.
7193 if test "$ac_dir" != .; then
7194 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7195 # A "../" for each directory in $ac_dir_suffix.
7196 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7197 else
7198 ac_dir_suffix= ac_top_builddir=
7201 case $srcdir in
7202 .) # No --srcdir option. We are building in place.
7203 ac_srcdir=.
7204 if test -z "$ac_top_builddir"; then
7205 ac_top_srcdir=.
7206 else
7207 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7208 fi ;;
7209 [\\/]* | ?:[\\/]* ) # Absolute path.
7210 ac_srcdir=$srcdir$ac_dir_suffix;
7211 ac_top_srcdir=$srcdir ;;
7212 *) # Relative path.
7213 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7214 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7215 esac
7217 # Do not use `cd foo && pwd` to compute absolute paths, because
7218 # the directories may not exist.
7219 case `pwd` in
7220 .) ac_abs_builddir="$ac_dir";;
7222 case "$ac_dir" in
7223 .) ac_abs_builddir=`pwd`;;
7224 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7225 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7226 esac;;
7227 esac
7228 case $ac_abs_builddir in
7229 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7231 case ${ac_top_builddir}. in
7232 .) ac_abs_top_builddir=$ac_abs_builddir;;
7233 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7234 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7235 esac;;
7236 esac
7237 case $ac_abs_builddir in
7238 .) ac_abs_srcdir=$ac_srcdir;;
7240 case $ac_srcdir in
7241 .) ac_abs_srcdir=$ac_abs_builddir;;
7242 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7243 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7244 esac;;
7245 esac
7246 case $ac_abs_builddir in
7247 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7249 case $ac_top_srcdir in
7250 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7251 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7252 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7253 esac;;
7254 esac
7257 case $INSTALL in
7258 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7259 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7260 esac
7262 if test x"$ac_file" != x-; then
7263 { echo "$as_me:$LINENO: creating $ac_file" >&5
7264 echo "$as_me: creating $ac_file" >&6;}
7265 rm -f "$ac_file"
7267 # Let's still pretend it is `configure' which instantiates (i.e., don't
7268 # use $as_me), people would be surprised to read:
7269 # /* config.h. Generated by config.status. */
7270 if test x"$ac_file" = x-; then
7271 configure_input=
7272 else
7273 configure_input="$ac_file. "
7275 configure_input=$configure_input"Generated from `echo $ac_file_in |
7276 sed 's,.*/,,'` by configure."
7278 # First look for the input files in the build tree, otherwise in the
7279 # src tree.
7280 ac_file_inputs=`IFS=:
7281 for f in $ac_file_in; do
7282 case $f in
7283 -) echo $tmp/stdin ;;
7284 [\\/$]*)
7285 # Absolute (can't be DOS-style, as IFS=:)
7286 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7287 echo "$as_me: error: cannot find input file: $f" >&2;}
7288 { (exit 1); exit 1; }; }
7289 echo "$f";;
7290 *) # Relative
7291 if test -f "$f"; then
7292 # Build tree
7293 echo "$f"
7294 elif test -f "$srcdir/$f"; then
7295 # Source tree
7296 echo "$srcdir/$f"
7297 else
7298 # /dev/null tree
7299 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7300 echo "$as_me: error: cannot find input file: $f" >&2;}
7301 { (exit 1); exit 1; }; }
7302 fi;;
7303 esac
7304 done` || { (exit 1); exit 1; }
7305 _ACEOF
7306 cat >>$CONFIG_STATUS <<_ACEOF
7307 sed "$ac_vpsub
7308 $extrasub
7309 _ACEOF
7310 cat >>$CONFIG_STATUS <<\_ACEOF
7312 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7313 s,@configure_input@,$configure_input,;t t
7314 s,@srcdir@,$ac_srcdir,;t t
7315 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7316 s,@top_srcdir@,$ac_top_srcdir,;t t
7317 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7318 s,@builddir@,$ac_builddir,;t t
7319 s,@abs_builddir@,$ac_abs_builddir,;t t
7320 s,@top_builddir@,$ac_top_builddir,;t t
7321 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7322 s,@INSTALL@,$ac_INSTALL,;t t
7323 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7324 rm -f $tmp/stdin
7325 if test x"$ac_file" != x-; then
7326 mv $tmp/out $ac_file
7327 else
7328 cat $tmp/out
7329 rm -f $tmp/out
7332 done
7333 _ACEOF
7334 cat >>$CONFIG_STATUS <<\_ACEOF
7337 # CONFIG_HEADER section.
7340 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7341 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7343 # ac_d sets the value in "#define NAME VALUE" lines.
7344 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7345 ac_dB='[ ].*$,\1#\2'
7346 ac_dC=' '
7347 ac_dD=',;t'
7348 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7349 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7350 ac_uB='$,\1#\2define\3'
7351 ac_uC=' '
7352 ac_uD=',;t'
7354 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7355 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7356 case $ac_file in
7357 - | *:- | *:-:* ) # input from stdin
7358 cat >$tmp/stdin
7359 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7360 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7361 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7362 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7363 * ) ac_file_in=$ac_file.in ;;
7364 esac
7366 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7367 echo "$as_me: creating $ac_file" >&6;}
7369 # First look for the input files in the build tree, otherwise in the
7370 # src tree.
7371 ac_file_inputs=`IFS=:
7372 for f in $ac_file_in; do
7373 case $f in
7374 -) echo $tmp/stdin ;;
7375 [\\/$]*)
7376 # Absolute (can't be DOS-style, as IFS=:)
7377 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7378 echo "$as_me: error: cannot find input file: $f" >&2;}
7379 { (exit 1); exit 1; }; }
7380 # Do quote $f, to prevent DOS paths from being IFS'd.
7381 echo "$f";;
7382 *) # Relative
7383 if test -f "$f"; then
7384 # Build tree
7385 echo "$f"
7386 elif test -f "$srcdir/$f"; then
7387 # Source tree
7388 echo "$srcdir/$f"
7389 else
7390 # /dev/null tree
7391 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7392 echo "$as_me: error: cannot find input file: $f" >&2;}
7393 { (exit 1); exit 1; }; }
7394 fi;;
7395 esac
7396 done` || { (exit 1); exit 1; }
7397 # Remove the trailing spaces.
7398 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7400 _ACEOF
7402 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7403 # `conftest.undefs', that substitutes the proper values into
7404 # config.h.in to produce config.h. The first handles `#define'
7405 # templates, and the second `#undef' templates.
7406 # And first: Protect against being on the right side of a sed subst in
7407 # config.status. Protect against being in an unquoted here document
7408 # in config.status.
7409 rm -f conftest.defines conftest.undefs
7410 # Using a here document instead of a string reduces the quoting nightmare.
7411 # Putting comments in sed scripts is not portable.
7413 # `end' is used to avoid that the second main sed command (meant for
7414 # 0-ary CPP macros) applies to n-ary macro definitions.
7415 # See the Autoconf documentation for `clear'.
7416 cat >confdef2sed.sed <<\_ACEOF
7417 s/[\\&,]/\\&/g
7418 s,[\\$`],\\&,g
7419 t clear
7420 : clear
7421 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7422 t end
7423 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7424 : end
7425 _ACEOF
7426 # If some macros were called several times there might be several times
7427 # the same #defines, which is useless. Nevertheless, we may not want to
7428 # sort them, since we want the *last* AC-DEFINE to be honored.
7429 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7430 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7431 rm -f confdef2sed.sed
7433 # This sed command replaces #undef with comments. This is necessary, for
7434 # example, in the case of _POSIX_SOURCE, which is predefined and required
7435 # on some systems where configure will not decide to define it.
7436 cat >>conftest.undefs <<\_ACEOF
7437 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7438 _ACEOF
7440 # Break up conftest.defines because some shells have a limit on the size
7441 # of here documents, and old seds have small limits too (100 cmds).
7442 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7443 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7444 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7445 echo ' :' >>$CONFIG_STATUS
7446 rm -f conftest.tail
7447 while grep . conftest.defines >/dev/null
7449 # Write a limited-size here document to $tmp/defines.sed.
7450 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7451 # Speed up: don't consider the non `#define' lines.
7452 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7453 # Work around the forget-to-reset-the-flag bug.
7454 echo 't clr' >>$CONFIG_STATUS
7455 echo ': clr' >>$CONFIG_STATUS
7456 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7457 echo 'CEOF
7458 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7459 rm -f $tmp/in
7460 mv $tmp/out $tmp/in
7461 ' >>$CONFIG_STATUS
7462 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7463 rm -f conftest.defines
7464 mv conftest.tail conftest.defines
7465 done
7466 rm -f conftest.defines
7467 echo ' fi # grep' >>$CONFIG_STATUS
7468 echo >>$CONFIG_STATUS
7470 # Break up conftest.undefs because some shells have a limit on the size
7471 # of here documents, and old seds have small limits too (100 cmds).
7472 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7473 rm -f conftest.tail
7474 while grep . conftest.undefs >/dev/null
7476 # Write a limited-size here document to $tmp/undefs.sed.
7477 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7478 # Speed up: don't consider the non `#undef'
7479 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7480 # Work around the forget-to-reset-the-flag bug.
7481 echo 't clr' >>$CONFIG_STATUS
7482 echo ': clr' >>$CONFIG_STATUS
7483 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7484 echo 'CEOF
7485 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7486 rm -f $tmp/in
7487 mv $tmp/out $tmp/in
7488 ' >>$CONFIG_STATUS
7489 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7490 rm -f conftest.undefs
7491 mv conftest.tail conftest.undefs
7492 done
7493 rm -f conftest.undefs
7495 cat >>$CONFIG_STATUS <<\_ACEOF
7496 # Let's still pretend it is `configure' which instantiates (i.e., don't
7497 # use $as_me), people would be surprised to read:
7498 # /* config.h. Generated by config.status. */
7499 if test x"$ac_file" = x-; then
7500 echo "/* Generated by configure. */" >$tmp/config.h
7501 else
7502 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7504 cat $tmp/in >>$tmp/config.h
7505 rm -f $tmp/in
7506 if test x"$ac_file" != x-; then
7507 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7508 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7509 echo "$as_me: $ac_file is unchanged" >&6;}
7510 else
7511 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7512 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7513 X"$ac_file" : 'X\(//\)[^/]' \| \
7514 X"$ac_file" : 'X\(//\)$' \| \
7515 X"$ac_file" : 'X\(/\)' \| \
7516 . : '\(.\)' 2>/dev/null ||
7517 echo X"$ac_file" |
7518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7519 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7520 /^X\(\/\/\)$/{ s//\1/; q; }
7521 /^X\(\/\).*/{ s//\1/; q; }
7522 s/.*/./; q'`
7523 { if $as_mkdir_p; then
7524 mkdir -p "$ac_dir"
7525 else
7526 as_dir="$ac_dir"
7527 as_dirs=
7528 while test ! -d "$as_dir"; do
7529 as_dirs="$as_dir $as_dirs"
7530 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7531 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7532 X"$as_dir" : 'X\(//\)[^/]' \| \
7533 X"$as_dir" : 'X\(//\)$' \| \
7534 X"$as_dir" : 'X\(/\)' \| \
7535 . : '\(.\)' 2>/dev/null ||
7536 echo X"$as_dir" |
7537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7538 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7539 /^X\(\/\/\)$/{ s//\1/; q; }
7540 /^X\(\/\).*/{ s//\1/; q; }
7541 s/.*/./; q'`
7542 done
7543 test ! -n "$as_dirs" || mkdir $as_dirs
7544 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7545 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7546 { (exit 1); exit 1; }; }; }
7548 rm -f $ac_file
7549 mv $tmp/config.h $ac_file
7551 else
7552 cat $tmp/config.h
7553 rm -f $tmp/config.h
7555 done
7556 _ACEOF
7557 cat >>$CONFIG_STATUS <<\_ACEOF
7560 # CONFIG_COMMANDS section.
7562 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7563 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7564 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7565 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7566 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7567 X"$ac_dest" : 'X\(//\)[^/]' \| \
7568 X"$ac_dest" : 'X\(//\)$' \| \
7569 X"$ac_dest" : 'X\(/\)' \| \
7570 . : '\(.\)' 2>/dev/null ||
7571 echo X"$ac_dest" |
7572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7573 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7574 /^X\(\/\/\)$/{ s//\1/; q; }
7575 /^X\(\/\).*/{ s//\1/; q; }
7576 s/.*/./; q'`
7577 { if $as_mkdir_p; then
7578 mkdir -p "$ac_dir"
7579 else
7580 as_dir="$ac_dir"
7581 as_dirs=
7582 while test ! -d "$as_dir"; do
7583 as_dirs="$as_dir $as_dirs"
7584 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7585 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7586 X"$as_dir" : 'X\(//\)[^/]' \| \
7587 X"$as_dir" : 'X\(//\)$' \| \
7588 X"$as_dir" : 'X\(/\)' \| \
7589 . : '\(.\)' 2>/dev/null ||
7590 echo X"$as_dir" |
7591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7592 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7593 /^X\(\/\/\)$/{ s//\1/; q; }
7594 /^X\(\/\).*/{ s//\1/; q; }
7595 s/.*/./; q'`
7596 done
7597 test ! -n "$as_dirs" || mkdir $as_dirs
7598 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7599 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7600 { (exit 1); exit 1; }; }; }
7602 ac_builddir=.
7604 if test "$ac_dir" != .; then
7605 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7606 # A "../" for each directory in $ac_dir_suffix.
7607 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7608 else
7609 ac_dir_suffix= ac_top_builddir=
7612 case $srcdir in
7613 .) # No --srcdir option. We are building in place.
7614 ac_srcdir=.
7615 if test -z "$ac_top_builddir"; then
7616 ac_top_srcdir=.
7617 else
7618 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7619 fi ;;
7620 [\\/]* | ?:[\\/]* ) # Absolute path.
7621 ac_srcdir=$srcdir$ac_dir_suffix;
7622 ac_top_srcdir=$srcdir ;;
7623 *) # Relative path.
7624 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7625 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7626 esac
7628 # Do not use `cd foo && pwd` to compute absolute paths, because
7629 # the directories may not exist.
7630 case `pwd` in
7631 .) ac_abs_builddir="$ac_dir";;
7633 case "$ac_dir" in
7634 .) ac_abs_builddir=`pwd`;;
7635 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7636 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7637 esac;;
7638 esac
7639 case $ac_abs_builddir in
7640 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7642 case ${ac_top_builddir}. in
7643 .) ac_abs_top_builddir=$ac_abs_builddir;;
7644 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7645 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7646 esac;;
7647 esac
7648 case $ac_abs_builddir in
7649 .) ac_abs_srcdir=$ac_srcdir;;
7651 case $ac_srcdir in
7652 .) ac_abs_srcdir=$ac_abs_builddir;;
7653 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7654 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7655 esac;;
7656 esac
7657 case $ac_abs_builddir in
7658 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7660 case $ac_top_srcdir in
7661 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7662 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7663 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7664 esac;;
7665 esac
7668 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7669 echo "$as_me: executing $ac_dest commands" >&6;}
7670 case $ac_dest in
7671 default ) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
7672 esac
7673 done
7674 _ACEOF
7676 cat >>$CONFIG_STATUS <<\_ACEOF
7678 { (exit 0); exit 0; }
7679 _ACEOF
7680 chmod +x $CONFIG_STATUS
7681 ac_clean_files=$ac_clean_files_save
7684 # configure is writing to config.log, and then calls config.status.
7685 # config.status does its own redirection, appending to config.log.
7686 # Unfortunately, on DOS this fails, as config.log is still kept open
7687 # by configure, so config.status won't be able to write to it; its
7688 # output is simply discarded. So we exec the FD to /dev/null,
7689 # effectively closing config.log, so it can be properly (re)opened and
7690 # appended to by config.status. When coming back to configure, we
7691 # need to make the FD available again.
7692 if test "$no_create" != yes; then
7693 ac_cs_success=:
7694 ac_config_status_args=
7695 test "$silent" = yes &&
7696 ac_config_status_args="$ac_config_status_args --quiet"
7697 exec 5>/dev/null
7698 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7699 exec 5>>config.log
7700 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7701 # would make configure fail if this is the last instruction.
7702 $ac_cs_success || { (exit 1); exit 1; }