1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete.  It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="Makefile.in"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289#  include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294#  include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305#  include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_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'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356  # If the previous option needs an argument, assign it.
357  if test -n "$ac_prev"; then
358    eval "$ac_prev=\$ac_option"
359    ac_prev=
360    continue
361  fi
362
363  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365  # Accept the important Cygnus configure options, so we can diagnose typos.
366
367  case $ac_option in
368
369  -bindir | --bindir | --bindi | --bind | --bin | --bi)
370    ac_prev=bindir ;;
371  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372    bindir=$ac_optarg ;;
373
374  -build | --build | --buil | --bui | --bu)
375    ac_prev=build_alias ;;
376  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377    build_alias=$ac_optarg ;;
378
379  -cache-file | --cache-file | --cache-fil | --cache-fi \
380  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381    ac_prev=cache_file ;;
382  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384    cache_file=$ac_optarg ;;
385
386  --config-cache | -C)
387    cache_file=config.cache ;;
388
389  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390    ac_prev=datadir ;;
391  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392  | --da=*)
393    datadir=$ac_optarg ;;
394
395  -disable-* | --disable-*)
396    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397    # Reject names that are not valid shell variable names.
398    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400   { (exit 1); exit 1; }; }
401    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402    eval "enable_$ac_feature=no" ;;
403
404  -enable-* | --enable-*)
405    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406    # Reject names that are not valid shell variable names.
407    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409   { (exit 1); exit 1; }; }
410    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411    case $ac_option in
412      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413      *) ac_optarg=yes ;;
414    esac
415    eval "enable_$ac_feature='$ac_optarg'" ;;
416
417  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419  | --exec | --exe | --ex)
420    ac_prev=exec_prefix ;;
421  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423  | --exec=* | --exe=* | --ex=*)
424    exec_prefix=$ac_optarg ;;
425
426  -gas | --gas | --ga | --g)
427    # Obsolete; use --with-gas.
428    with_gas=yes ;;
429
430  -help | --help | --hel | --he | -h)
431    ac_init_help=long ;;
432  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433    ac_init_help=recursive ;;
434  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435    ac_init_help=short ;;
436
437  -host | --host | --hos | --ho)
438    ac_prev=host_alias ;;
439  -host=* | --host=* | --hos=* | --ho=*)
440    host_alias=$ac_optarg ;;
441
442  -includedir | --includedir | --includedi | --included | --include \
443  | --includ | --inclu | --incl | --inc)
444    ac_prev=includedir ;;
445  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446  | --includ=* | --inclu=* | --incl=* | --inc=*)
447    includedir=$ac_optarg ;;
448
449  -infodir | --infodir | --infodi | --infod | --info | --inf)
450    ac_prev=infodir ;;
451  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452    infodir=$ac_optarg ;;
453
454  -libdir | --libdir | --libdi | --libd)
455    ac_prev=libdir ;;
456  -libdir=* | --libdir=* | --libdi=* | --libd=*)
457    libdir=$ac_optarg ;;
458
459  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460  | --libexe | --libex | --libe)
461    ac_prev=libexecdir ;;
462  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463  | --libexe=* | --libex=* | --libe=*)
464    libexecdir=$ac_optarg ;;
465
466  -localstatedir | --localstatedir | --localstatedi | --localstated \
467  | --localstate | --localstat | --localsta | --localst \
468  | --locals | --local | --loca | --loc | --lo)
469    ac_prev=localstatedir ;;
470  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473    localstatedir=$ac_optarg ;;
474
475  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476    ac_prev=mandir ;;
477  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478    mandir=$ac_optarg ;;
479
480  -nfp | --nfp | --nf)
481    # Obsolete; use --without-fp.
482    with_fp=no ;;
483
484  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485  | --no-cr | --no-c | -n)
486    no_create=yes ;;
487
488  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490    no_recursion=yes ;;
491
492  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494  | --oldin | --oldi | --old | --ol | --o)
495    ac_prev=oldincludedir ;;
496  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499    oldincludedir=$ac_optarg ;;
500
501  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502    ac_prev=prefix ;;
503  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504    prefix=$ac_optarg ;;
505
506  -program-prefix | --program-prefix | --program-prefi | --program-pref \
507  | --program-pre | --program-pr | --program-p)
508    ac_prev=program_prefix ;;
509  -program-prefix=* | --program-prefix=* | --program-prefi=* \
510  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511    program_prefix=$ac_optarg ;;
512
513  -program-suffix | --program-suffix | --program-suffi | --program-suff \
514  | --program-suf | --program-su | --program-s)
515    ac_prev=program_suffix ;;
516  -program-suffix=* | --program-suffix=* | --program-suffi=* \
517  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518    program_suffix=$ac_optarg ;;
519
520  -program-transform-name | --program-transform-name \
521  | --program-transform-nam | --program-transform-na \
522  | --program-transform-n | --program-transform- \
523  | --program-transform | --program-transfor \
524  | --program-transfo | --program-transf \
525  | --program-trans | --program-tran \
526  | --progr-tra | --program-tr | --program-t)
527    ac_prev=program_transform_name ;;
528  -program-transform-name=* | --program-transform-name=* \
529  | --program-transform-nam=* | --program-transform-na=* \
530  | --program-transform-n=* | --program-transform-=* \
531  | --program-transform=* | --program-transfor=* \
532  | --program-transfo=* | --program-transf=* \
533  | --program-trans=* | --program-tran=* \
534  | --progr-tra=* | --program-tr=* | --program-t=*)
535    program_transform_name=$ac_optarg ;;
536
537  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538  | -silent | --silent | --silen | --sile | --sil)
539    silent=yes ;;
540
541  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542    ac_prev=sbindir ;;
543  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544  | --sbi=* | --sb=*)
545    sbindir=$ac_optarg ;;
546
547  -sharedstatedir | --sharedstatedir | --sharedstatedi \
548  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549  | --sharedst | --shareds | --shared | --share | --shar \
550  | --sha | --sh)
551    ac_prev=sharedstatedir ;;
552  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555  | --sha=* | --sh=*)
556    sharedstatedir=$ac_optarg ;;
557
558  -site | --site | --sit)
559    ac_prev=site ;;
560  -site=* | --site=* | --sit=*)
561    site=$ac_optarg ;;
562
563  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564    ac_prev=srcdir ;;
565  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566    srcdir=$ac_optarg ;;
567
568  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569  | --syscon | --sysco | --sysc | --sys | --sy)
570    ac_prev=sysconfdir ;;
571  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573    sysconfdir=$ac_optarg ;;
574
575  -target | --target | --targe | --targ | --tar | --ta | --t)
576    ac_prev=target_alias ;;
577  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578    target_alias=$ac_optarg ;;
579
580  -v | -verbose | --verbose | --verbos | --verbo | --verb)
581    verbose=yes ;;
582
583  -version | --version | --versio | --versi | --vers | -V)
584    ac_init_version=: ;;
585
586  -with-* | --with-*)
587    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588    # Reject names that are not valid shell variable names.
589    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590      { echo "$as_me: error: invalid package name: $ac_package" >&2
591   { (exit 1); exit 1; }; }
592    ac_package=`echo $ac_package| sed 's/-/_/g'`
593    case $ac_option in
594      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595      *) ac_optarg=yes ;;
596    esac
597    eval "with_$ac_package='$ac_optarg'" ;;
598
599  -without-* | --without-*)
600    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601    # Reject names that are not valid shell variable names.
602    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603      { echo "$as_me: error: invalid package name: $ac_package" >&2
604   { (exit 1); exit 1; }; }
605    ac_package=`echo $ac_package | sed 's/-/_/g'`
606    eval "with_$ac_package=no" ;;
607
608  --x)
609    # Obsolete; use --with-x.
610    with_x=yes ;;
611
612  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613  | --x-incl | --x-inc | --x-in | --x-i)
614    ac_prev=x_includes ;;
615  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617    x_includes=$ac_optarg ;;
618
619  -x-libraries | --x-libraries | --x-librarie | --x-librari \
620  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621    ac_prev=x_libraries ;;
622  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624    x_libraries=$ac_optarg ;;
625
626  -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628   { (exit 1); exit 1; }; }
629    ;;
630
631  *=*)
632    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633    # Reject names that are not valid shell variable names.
634    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636   { (exit 1); exit 1; }; }
637    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638    eval "$ac_envvar='$ac_optarg'"
639    export $ac_envvar ;;
640
641  *)
642    # FIXME: should be removed in autoconf 3.0.
643    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647    ;;
648
649  esac
650done
651
652if 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; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
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
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671	      localstatedir libdir includedir oldincludedir infodir mandir
672do
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
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690  if test "x$build_alias" = x; then
691    cross_compiling=maybe
692    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693    If a cross compiler is detected then cross compile mode will be used." >&2
694  elif test "x$build_alias" != "x$host_alias"; then
695    cross_compiling=yes
696  fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if 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 ||
715echo X"$0" |
716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718  	  /^X\(\/\/\)$/{ s//\1/; q; }
719  	  /^X\(\/\).*/{ s//\1/; q; }
720  	  s/.*/./; q'`
721  srcdir=$ac_confdir
722  if test ! -r $srcdir/$ac_unique_file; then
723    srcdir=..
724  fi
725else
726  ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729  if test "$ac_srcdir_defaulted" = yes; then
730    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731   { (exit 1); exit 1; }; }
732  else
733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734   { (exit 1); exit 1; }; }
735  fi
736fi
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; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if 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.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
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 \`..']
800
801_ACEOF
802
803  cat <<_ACEOF
804Installation 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]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine 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
831
832  cat <<\_ACEOF
833
834Program 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
838
839System 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
844fi
845
846if test -n "$ac_init_help"; then
847
848  cat <<\_ACEOF
849
850Optional 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).
888
889Some 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
897
898Use these variables to override the choices made by `configure' or to help
899it to find libraries and programs with nonstandard names/locations.
900
901_ACEOF
902fi
903
904if 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=.
910
911if 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'`
915else
916  ac_dir_suffix= ac_top_builddir=
917fi
918
919case $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 ;;
933esac
934
935# Do not use `cd foo && pwd` to compute absolute paths, because
936# the directories may not exist.
937case `pwd` in
938.) ac_abs_builddir="$ac_dir";;
939*)
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;;
945esac
946case $ac_abs_builddir in
947.) ac_abs_top_builddir=${ac_top_builddir}.;;
948*)
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;;
954esac
955case $ac_abs_builddir in
956.) ac_abs_srcdir=$ac_srcdir;;
957*)
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;;
963esac
964case $ac_abs_builddir in
965.) ac_abs_top_srcdir=$ac_top_srcdir;;
966*)
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;;
972esac
973
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
988    fi
989    cd $ac_popdir
990  done
991fi
992
993test -n "$ac_init_help" && exit 0
994if $ac_init_version; then
995  cat <<\_ACEOF
996
997Copyright (C) 2003 Free Software Foundation, Inc.
998This configure script is free software; the Free Software Foundation
999gives unlimited permission to copy, distribute and modify it.
1000_ACEOF
1001  exit 0
1002fi
1003exec 5>config.log
1004cat >&5 <<_ACEOF
1005This file contains any messages produced by compilers while
1006running configure, to aid debugging if configure makes a mistake.
1007
1008It was created by $as_me, which was
1009generated by GNU Autoconf 2.59.  Invocation command line was
1010
1011  $ $0 $@
1012
1013_ACEOF
1014{
1015cat <<_ASUNAME
1016## --------- ##
1017## Platform. ##
1018## --------- ##
1019
1020hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1021uname -m = `(uname -m) 2>/dev/null || echo unknown`
1022uname -r = `(uname -r) 2>/dev/null || echo unknown`
1023uname -s = `(uname -s) 2>/dev/null || echo unknown`
1024uname -v = `(uname -v) 2>/dev/null || echo unknown`
1025
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`
1028
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`
1032hostinfo               = `(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`
1036
1037_ASUNAME
1038
1039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040for as_dir in $PATH
1041do
1042  IFS=$as_save_IFS
1043  test -z "$as_dir" && as_dir=.
1044  echo "PATH: $as_dir"
1045done
1046
1047} >&5
1048
1049cat >&5 <<_ACEOF
1050
1051
1052## ----------- ##
1053## Core tests. ##
1054## ----------- ##
1055
1056_ACEOF
1057
1058
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.
1064ac_configure_args=
1065ac_configure_args0=
1066ac_configure_args1=
1067ac_sep=
1068ac_must_keep_next=false
1069for ac_pass in 1 2
1070do
1071  for ac_arg
1072  do
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'" ;;
1083    2)
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
1096	    ;;
1097	  -* ) ac_must_keep_next=true ;;
1098	esac
1099      fi
1100      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101      # Get rid of the leading space.
1102      ac_sep=" "
1103      ;;
1104    esac
1105  done
1106done
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; }
1109
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.
1115trap 'exit_status=$?
1116  # Save into config.log some information that might help in debugging.
1117  {
1118    echo
1119
1120    cat <<\_ASBOX
1121## ---------------- ##
1122## Cache variables. ##
1123## ---------------- ##
1124_ASBOX
1125    echo
1126    # The following way of writing the cache mishandles newlines in values,
1127{
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"
1134      ;;
1135    *)
1136      sed -n \
1137	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1138      ;;
1139    esac;
1140}
1141    echo
1142
1143    cat <<\_ASBOX
1144## ----------------- ##
1145## Output variables. ##
1146## ----------------- ##
1147_ASBOX
1148    echo
1149    for ac_var in $ac_subst_vars
1150    do
1151      eval ac_val=$`echo $ac_var`
1152      echo "$ac_var='"'"'$ac_val'"'"'"
1153    done | sort
1154    echo
1155
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
1164      do
1165	eval ac_val=$`echo $ac_var`
1166	echo "$ac_var='"'"'$ac_val'"'"'"
1167      done | sort
1168      echo
1169    fi
1170
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
1180    fi
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
1188     ' 0
1189for ac_signal in 1 2 13 15; do
1190  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191done
1192ac_signal=0
1193
1194# confdefs.h avoids OS command line length limits that DEFS can exceed.
1195rm -rf conftest* confdefs.h
1196# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197echo >confdefs.h
1198
1199# Predefined preprocessor variables.
1200
1201cat >>confdefs.h <<_ACEOF
1202#define PACKAGE_NAME "$PACKAGE_NAME"
1203_ACEOF
1204
1205
1206cat >>confdefs.h <<_ACEOF
1207#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208_ACEOF
1209
1210
1211cat >>confdefs.h <<_ACEOF
1212#define PACKAGE_VERSION "$PACKAGE_VERSION"
1213_ACEOF
1214
1215
1216cat >>confdefs.h <<_ACEOF
1217#define PACKAGE_STRING "$PACKAGE_STRING"
1218_ACEOF
1219
1220
1221cat >>confdefs.h <<_ACEOF
1222#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223_ACEOF
1224
1225
1226# Let the site file select an alternate cache file if it wants to.
1227# Prefer explicitly selected file to automatically selected ones.
1228if 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"
1233  fi
1234fi
1235for 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
1238echo "$as_me: loading site script $ac_site_file" >&6;}
1239    sed 's/^/| /' "$ac_site_file" >&5
1240    . "$ac_site_file"
1241  fi
1242done
1243
1244if 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
1249echo "$as_me: loading cache $cache_file" >&6;}
1250    case $cache_file in
1251      [\\/]* | ?:[\\/]* ) . $cache_file;;
1252      *)                      . ./$cache_file;;
1253    esac
1254  fi
1255else
1256  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257echo "$as_me: creating cache $cache_file" >&6;}
1258  >$cache_file
1259fi
1260
1261# Check that the precious variables saved in the cache have kept the same
1262# value.
1263ac_cache_corrupted=false
1264for 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
1273echo "$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
1277echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278      ac_cache_corrupted=: ;;
1279    ,);;
1280    *)
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
1283echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1284	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1285echo "$as_me:   former value:  $ac_old_val" >&2;}
1286	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1287echo "$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
1302  fi
1303done
1304if $ac_cache_corrupted; then
1305  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306echo "$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
1308echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309   { (exit 1); exit 1; }; }
1310fi
1311
1312ac_ext=c
1313ac_cpp='$CPP $CPPFLAGS'
1314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1316ac_compiler_gnu=$ac_cv_c_compiler_gnu
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337ac_aux_dir=
1338for 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
1351  fi
1352done
1353if test -z "$ac_aux_dir"; then
1354  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1355echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1356   { (exit 1); exit 1; }; }
1357fi
1358ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1359ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1360ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1361
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.
1375echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1376echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1377if test -z "$INSTALL"; then
1378if test "${ac_cv_path_install+set}" = set; then
1379  echo $ECHO_N "(cached) $ECHO_C" >&6
1380else
1381  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1382for as_dir in $PATH
1383do
1384  IFS=$as_save_IFS
1385  test -z "$as_dir" && as_dir=.
1386  # Account for people who put trailing slashes in PATH elements.
1387case $as_dir/ in
1388  ./ | .// | /cC/* | \
1389  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1390  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1391  /usr/ucb/* ) ;;
1392  *)
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.
1402	    :
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.
1406	    :
1407	  else
1408	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1409	    break 3
1410	  fi
1411	fi
1412      done
1413    done
1414    ;;
1415esac
1416done
1417
1418
1419fi
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
1428  fi
1429fi
1430echo "$as_me:$LINENO: result: $INSTALL" >&5
1431echo "${ECHO_T}$INSTALL" >&6
1432
1433# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1434# It thinks the first close brace ends the variable substitution.
1435test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1436
1437test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1438
1439test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1440
1441ac_ext=c
1442ac_cpp='$CPP $CPPFLAGS'
1443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1445ac_compiler_gnu=$ac_cv_c_compiler_gnu
1446if 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.
1448set dummy ${ac_tool_prefix}gcc; ac_word=$2
1449echo "$as_me:$LINENO: checking for $ac_word" >&5
1450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1451if test "${ac_cv_prog_CC+set}" = set; then
1452  echo $ECHO_N "(cached) $ECHO_C" >&6
1453else
1454  if test -n "$CC"; then
1455  ac_cv_prog_CC="$CC" # Let the user override the test.
1456else
1457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1458for as_dir in $PATH
1459do
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
1467  fi
1468done
1469done
1470
1471fi
1472fi
1473CC=$ac_cv_prog_CC
1474if test -n "$CC"; then
1475  echo "$as_me:$LINENO: result: $CC" >&5
1476echo "${ECHO_T}$CC" >&6
1477else
1478  echo "$as_me:$LINENO: result: no" >&5
1479echo "${ECHO_T}no" >&6
1480fi
1481
1482fi
1483if 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.
1486set dummy gcc; ac_word=$2
1487echo "$as_me:$LINENO: checking for $ac_word" >&5
1488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1489if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1490  echo $ECHO_N "(cached) $ECHO_C" >&6
1491else
1492  if test -n "$ac_ct_CC"; then
1493  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1494else
1495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1496for as_dir in $PATH
1497do
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
1505  fi
1506done
1507done
1508
1509fi
1510fi
1511ac_ct_CC=$ac_cv_prog_ac_ct_CC
1512if test -n "$ac_ct_CC"; then
1513  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1514echo "${ECHO_T}$ac_ct_CC" >&6
1515else
1516  echo "$as_me:$LINENO: result: no" >&5
1517echo "${ECHO_T}no" >&6
1518fi
1519
1520  CC=$ac_ct_CC
1521else
1522  CC="$ac_cv_prog_CC"
1523fi
1524
1525if 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.
1528set dummy ${ac_tool_prefix}cc; ac_word=$2
1529echo "$as_me:$LINENO: checking for $ac_word" >&5
1530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531if test "${ac_cv_prog_CC+set}" = set; then
1532  echo $ECHO_N "(cached) $ECHO_C" >&6
1533else
1534  if test -n "$CC"; then
1535  ac_cv_prog_CC="$CC" # Let the user override the test.
1536else
1537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538for as_dir in $PATH
1539do
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
1547  fi
1548done
1549done
1550
1551fi
1552fi
1553CC=$ac_cv_prog_CC
1554if test -n "$CC"; then
1555  echo "$as_me:$LINENO: result: $CC" >&5
1556echo "${ECHO_T}$CC" >&6
1557else
1558  echo "$as_me:$LINENO: result: no" >&5
1559echo "${ECHO_T}no" >&6
1560fi
1561
1562fi
1563if 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.
1566set dummy cc; ac_word=$2
1567echo "$as_me:$LINENO: checking for $ac_word" >&5
1568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1569if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1570  echo $ECHO_N "(cached) $ECHO_C" >&6
1571else
1572  if test -n "$ac_ct_CC"; then
1573  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1574else
1575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576for as_dir in $PATH
1577do
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
1585  fi
1586done
1587done
1588
1589fi
1590fi
1591ac_ct_CC=$ac_cv_prog_ac_ct_CC
1592if test -n "$ac_ct_CC"; then
1593  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1594echo "${ECHO_T}$ac_ct_CC" >&6
1595else
1596  echo "$as_me:$LINENO: result: no" >&5
1597echo "${ECHO_T}no" >&6
1598fi
1599
1600  CC=$ac_ct_CC
1601else
1602  CC="$ac_cv_prog_CC"
1603fi
1604
1605fi
1606if test -z "$CC"; then
1607  # Extract the first word of "cc", so it can be a program name with args.
1608set dummy cc; ac_word=$2
1609echo "$as_me:$LINENO: checking for $ac_word" >&5
1610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611if test "${ac_cv_prog_CC+set}" = set; then
1612  echo $ECHO_N "(cached) $ECHO_C" >&6
1613else
1614  if test -n "$CC"; then
1615  ac_cv_prog_CC="$CC" # Let the user override the test.
1616else
1617  ac_prog_rejected=no
1618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619for as_dir in $PATH
1620do
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
1628     fi
1629    ac_cv_prog_CC="cc"
1630    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1631    break 2
1632  fi
1633done
1634done
1635
1636if 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+' '}$@"
1646  fi
1647fi
1648fi
1649fi
1650CC=$ac_cv_prog_CC
1651if test -n "$CC"; then
1652  echo "$as_me:$LINENO: result: $CC" >&5
1653echo "${ECHO_T}$CC" >&6
1654else
1655  echo "$as_me:$LINENO: result: no" >&5
1656echo "${ECHO_T}no" >&6
1657fi
1658
1659fi
1660if test -z "$CC"; then
1661  if test -n "$ac_tool_prefix"; then
1662  for ac_prog in cl
1663  do
1664    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1665set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1666echo "$as_me:$LINENO: checking for $ac_word" >&5
1667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668if test "${ac_cv_prog_CC+set}" = set; then
1669  echo $ECHO_N "(cached) $ECHO_C" >&6
1670else
1671  if test -n "$CC"; then
1672  ac_cv_prog_CC="$CC" # Let the user override the test.
1673else
1674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675for as_dir in $PATH
1676do
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
1684  fi
1685done
1686done
1687
1688fi
1689fi
1690CC=$ac_cv_prog_CC
1691if test -n "$CC"; then
1692  echo "$as_me:$LINENO: result: $CC" >&5
1693echo "${ECHO_T}$CC" >&6
1694else
1695  echo "$as_me:$LINENO: result: no" >&5
1696echo "${ECHO_T}no" >&6
1697fi
1698
1699    test -n "$CC" && break
1700  done
1701fi
1702if test -z "$CC"; then
1703  ac_ct_CC=$CC
1704  for ac_prog in cl
1705do
1706  # Extract the first word of "$ac_prog", so it can be a program name with args.
1707set dummy $ac_prog; ac_word=$2
1708echo "$as_me:$LINENO: checking for $ac_word" >&5
1709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1711  echo $ECHO_N "(cached) $ECHO_C" >&6
1712else
1713  if test -n "$ac_ct_CC"; then
1714  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1715else
1716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717for as_dir in $PATH
1718do
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
1726  fi
1727done
1728done
1729
1730fi
1731fi
1732ac_ct_CC=$ac_cv_prog_ac_ct_CC
1733if test -n "$ac_ct_CC"; then
1734  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1735echo "${ECHO_T}$ac_ct_CC" >&6
1736else
1737  echo "$as_me:$LINENO: result: no" >&5
1738echo "${ECHO_T}no" >&6
1739fi
1740
1741  test -n "$ac_ct_CC" && break
1742done
1743
1744  CC=$ac_ct_CC
1745fi
1746
1747fi
1748
1749
1750test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1751See \`config.log' for more details." >&5
1752echo "$as_me: error: no acceptable C compiler found in \$PATH
1753See \`config.log' for more details." >&2;}
1754   { (exit 1); exit 1; }; }
1755
1756# Provide some information about the compiler.
1757echo "$as_me:$LINENO:" \
1758     "checking for C compiler version" >&5
1759ac_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); }
1775
1776cat >conftest.$ac_ext <<_ACEOF
1777/* confdefs.h.  */
1778_ACEOF
1779cat confdefs.h >>conftest.$ac_ext
1780cat >>conftest.$ac_ext <<_ACEOF
1781/* end confdefs.h.  */
1782
1783int
1784main ()
1785{
1786
1787  ;
1788  return 0;
1789}
1790_ACEOF
1791ac_clean_files_save=$ac_clean_files
1792ac_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.
1796echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1797echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1798ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1799if { (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.
1807
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.
1810ac_cv_exeext=
1811# b.out is created by i960 compilers.
1812for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1813do
1814  test -f "$ac_file" || continue
1815  case $ac_file in
1816    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1817	;;
1818    conftest.$ac_ext )
1819	# This is the source file.
1820	;;
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;;
1832    * )
1833	break;;
1834  esac
1835done
1836else
1837  echo "$as_me: failed program was:" >&5
1838sed 's/^/| /' conftest.$ac_ext >&5
1839
1840{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1841See \`config.log' for more details." >&5
1842echo "$as_me: error: C compiler cannot create executables
1843See \`config.log' for more details." >&2;}
1844   { (exit 77); exit 77; }; }
1845fi
1846
1847ac_exeext=$ac_cv_exeext
1848echo "$as_me:$LINENO: result: $ac_file" >&5
1849echo "${ECHO_T}$ac_file" >&6
1850
1851# Check the compiler produces executables we can run.  If not, either
1852# the compiler is broken, or we cross compile.
1853echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1854echo $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.
1857if 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.
1870If you meant to cross compile, use \`--host'.
1871See \`config.log' for more details." >&5
1872echo "$as_me: error: cannot run C compiled programs.
1873If you meant to cross compile, use \`--host'.
1874See \`config.log' for more details." >&2;}
1875   { (exit 1); exit 1; }; }
1876    fi
1877  fi
1878fi
1879echo "$as_me:$LINENO: result: yes" >&5
1880echo "${ECHO_T}yes" >&6
1881
1882rm -f a.out a.exe conftest$ac_cv_exeext b.out
1883ac_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.
1886echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1887echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1888echo "$as_me:$LINENO: result: $cross_compiling" >&5
1889echo "${ECHO_T}$cross_compiling" >&6
1890
1891echo "$as_me:$LINENO: checking for suffix of executables" >&5
1892echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1893if { (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'.
1902for 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
1911done
1912else
1913  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1914See \`config.log' for more details." >&5
1915echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1916See \`config.log' for more details." >&2;}
1917   { (exit 1); exit 1; }; }
1918fi
1919
1920rm -f conftest$ac_cv_exeext
1921echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1922echo "${ECHO_T}$ac_cv_exeext" >&6
1923
1924rm -f conftest.$ac_ext
1925EXEEXT=$ac_cv_exeext
1926ac_exeext=$EXEEXT
1927echo "$as_me:$LINENO: checking for suffix of object files" >&5
1928echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1929if test "${ac_cv_objext+set}" = set; then
1930  echo $ECHO_N "(cached) $ECHO_C" >&6
1931else
1932  cat >conftest.$ac_ext <<_ACEOF
1933/* confdefs.h.  */
1934_ACEOF
1935cat confdefs.h >>conftest.$ac_ext
1936cat >>conftest.$ac_ext <<_ACEOF
1937/* end confdefs.h.  */
1938
1939int
1940main ()
1941{
1942
1943  ;
1944  return 0;
1945}
1946_ACEOF
1947rm -f conftest.o conftest.obj
1948if { (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
1959done
1960else
1961  echo "$as_me: failed program was:" >&5
1962sed 's/^/| /' conftest.$ac_ext >&5
1963
1964{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1965See \`config.log' for more details." >&5
1966echo "$as_me: error: cannot compute suffix of object files: cannot compile
1967See \`config.log' for more details." >&2;}
1968   { (exit 1); exit 1; }; }
1969fi
1970
1971rm -f conftest.$ac_cv_objext conftest.$ac_ext
1972fi
1973echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1974echo "${ECHO_T}$ac_cv_objext" >&6
1975OBJEXT=$ac_cv_objext
1976ac_objext=$OBJEXT
1977echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1978echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1979if test "${ac_cv_c_compiler_gnu+set}" = set; then
1980  echo $ECHO_N "(cached) $ECHO_C" >&6
1981else
1982  cat >conftest.$ac_ext <<_ACEOF
1983/* confdefs.h.  */
1984_ACEOF
1985cat confdefs.h >>conftest.$ac_ext
1986cat >>conftest.$ac_ext <<_ACEOF
1987/* end confdefs.h.  */
1988
1989int
1990main ()
1991{
1992#ifndef __GNUC__
1993       choke me
1994#endif
1995
1996  ;
1997  return 0;
1998}
1999_ACEOF
2000rm -f conftest.$ac_objext
2001if { (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
2023else
2024  echo "$as_me: failed program was:" >&5
2025sed 's/^/| /' conftest.$ac_ext >&5
2026
2027ac_compiler_gnu=no
2028fi
2029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2030ac_cv_c_compiler_gnu=$ac_compiler_gnu
2031
2032fi
2033echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2034echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2035GCC=`test $ac_compiler_gnu = yes && echo yes`
2036ac_test_CFLAGS=${CFLAGS+set}
2037ac_save_CFLAGS=$CFLAGS
2038CFLAGS="-g"
2039echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2040echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2041if test "${ac_cv_prog_cc_g+set}" = set; then
2042  echo $ECHO_N "(cached) $ECHO_C" >&6
2043else
2044  cat >conftest.$ac_ext <<_ACEOF
2045/* confdefs.h.  */
2046_ACEOF
2047cat confdefs.h >>conftest.$ac_ext
2048cat >>conftest.$ac_ext <<_ACEOF
2049/* end confdefs.h.  */
2050
2051int
2052main ()
2053{
2054
2055  ;
2056  return 0;
2057}
2058_ACEOF
2059rm -f conftest.$ac_objext
2060if { (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
2082else
2083  echo "$as_me: failed program was:" >&5
2084sed 's/^/| /' conftest.$ac_ext >&5
2085
2086ac_cv_prog_cc_g=no
2087fi
2088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2089fi
2090echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2091echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2092if test "$ac_test_CFLAGS" = set; then
2093  CFLAGS=$ac_save_CFLAGS
2094elif test $ac_cv_prog_cc_g = yes; then
2095  if test "$GCC" = yes; then
2096    CFLAGS="-g -O2"
2097  else
2098    CFLAGS="-g"
2099  fi
2100else
2101  if test "$GCC" = yes; then
2102    CFLAGS="-O2"
2103  else
2104    CFLAGS=
2105  fi
2106fi
2107echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2108echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2109if test "${ac_cv_prog_cc_stdc+set}" = set; then
2110  echo $ECHO_N "(cached) $ECHO_C" >&6
2111else
2112  ac_cv_prog_cc_stdc=no
2113ac_save_CC=$CC
2114cat >conftest.$ac_ext <<_ACEOF
2115/* confdefs.h.  */
2116_ACEOF
2117cat confdefs.h >>conftest.$ac_ext
2118cat >>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.  */
2125struct buf { int x; };
2126FILE * (*rcsopen) (struct buf *, struct stat *, int);
2127static char *e (p, i)
2128     char **p;
2129     int i;
2130{
2131  return p[i];
2132}
2133static char *f (char * (*g) (char **, int), char **p, ...)
2134{
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;
2141}
2142
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.  */
2150int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2151
2152int test (int i, double x);
2153struct s1 {int (*f) (int a);};
2154struct s2 {int (*f) (double a);};
2155int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2156int argc;
2157char **argv;
2158int
2159main ()
2160{
2161return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2162  ;
2163  return 0;
2164}
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__
2173for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2174do
2175  CC="$ac_save_CC $ac_arg"
2176  rm -f conftest.$ac_objext
2177if { (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
2199break
2200else
2201  echo "$as_me: failed program was:" >&5
2202sed 's/^/| /' conftest.$ac_ext >&5
2203
2204fi
2205rm -f conftest.err conftest.$ac_objext
2206done
2207rm -f conftest.$ac_ext conftest.$ac_objext
2208CC=$ac_save_CC
2209
2210fi
2211
2212case "x$ac_cv_prog_cc_stdc" in
2213  x|xno)
2214    echo "$as_me:$LINENO: result: none needed" >&5
2215echo "${ECHO_T}none needed" >&6 ;;
2216  *)
2217    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2218echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2219    CC="$CC $ac_cv_prog_cc_stdc" ;;
2220esac
2221
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.
2226cat >conftest.$ac_ext <<_ACEOF
2227#ifndef __cplusplus
2228  choke me
2229#endif
2230_ACEOF
2231rm -f conftest.$ac_objext
2232if { (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);'
2260do
2261  cat >conftest.$ac_ext <<_ACEOF
2262/* confdefs.h.  */
2263_ACEOF
2264cat confdefs.h >>conftest.$ac_ext
2265cat >>conftest.$ac_ext <<_ACEOF
2266/* end confdefs.h.  */
2267$ac_declaration
2268#include <stdlib.h>
2269int
2270main ()
2271{
2272exit (42);
2273  ;
2274  return 0;
2275}
2276_ACEOF
2277rm -f conftest.$ac_objext
2278if { (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
2299  :
2300else
2301  echo "$as_me: failed program was:" >&5
2302sed 's/^/| /' conftest.$ac_ext >&5
2303
2304continue
2305fi
2306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2307  cat >conftest.$ac_ext <<_ACEOF
2308/* confdefs.h.  */
2309_ACEOF
2310cat confdefs.h >>conftest.$ac_ext
2311cat >>conftest.$ac_ext <<_ACEOF
2312/* end confdefs.h.  */
2313$ac_declaration
2314int
2315main ()
2316{
2317exit (42);
2318  ;
2319  return 0;
2320}
2321_ACEOF
2322rm -f conftest.$ac_objext
2323if { (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
2345else
2346  echo "$as_me: failed program was:" >&5
2347sed 's/^/| /' conftest.$ac_ext >&5
2348
2349fi
2350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2351done
2352rm -f conftest*
2353if test -n "$ac_declaration"; then
2354  echo '#ifdef __cplusplus' >>confdefs.h
2355  echo $ac_declaration      >>confdefs.h
2356  echo '#endif'             >>confdefs.h
2357fi
2358
2359else
2360  echo "$as_me: failed program was:" >&5
2361sed 's/^/| /' conftest.$ac_ext >&5
2362
2363fi
2364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2365ac_ext=c
2366ac_cpp='$CPP $CPPFLAGS'
2367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2369ac_compiler_gnu=$ac_cv_c_compiler_gnu
2370
2371
2372# Put a plausible default for CC_FOR_BUILD in Makefile.
2373if test "x$cross_compiling" = "xno"; then
2374  CC_FOR_BUILD='$(CC)'
2375else
2376  CC_FOR_BUILD=gcc
2377fi
2378CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
2379
2380ALL_LINGUAS=
2381# If we haven't got the data from the intl directory,
2382# assume NLS is disabled.
2383USE_NLS=no
2384LIBINTL=
2385LIBINTL_DEP=
2386INCINTL=
2387XGETTEXT=
2388GMSGFMT=
2389POSUB=
2390
2391if test -f  ../intl/config.intl; then
2392  .  ../intl/config.intl
2393fi
2394echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2395echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2396if test x"$USE_NLS" != xyes; then
2397  echo "$as_me:$LINENO: result: no" >&5
2398echo "${ECHO_T}no" >&6
2399else
2400  echo "$as_me:$LINENO: result: yes" >&5
2401echo "${ECHO_T}yes" >&6
2402
2403cat >>confdefs.h <<\_ACEOF
2404#define ENABLE_NLS 1
2405_ACEOF
2406
2407
2408  echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2409echo $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"
2435        ;;
2436      esac
2437    fi
2438  done
2439  LINGUAS="$XLINGUAS"
2440  echo "$as_me:$LINENO: result: $LINGUAS" >&5
2441echo "${ECHO_T}$LINGUAS" >&6
2442
2443
2444    DATADIRNAME=share
2445
2446  INSTOBJEXT=.mo
2447
2448  GENCAT=gencat
2449
2450  CATOBJEXT=.gmo
2451
2452fi
2453
2454
2455# Check whether --enable-sim-alignment or --disable-sim-alignment was given.
2456if 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
2463echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
2464   { (exit 1); exit 1; }; }; sim_alignment="";;
2465esac
2466if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
2467  echo "Setting alignment flags = $sim_alignment" 6>&1
2468fi
2469else
2470  sim_alignment=""
2471fi;
2472
2473# Check whether --enable-sim-assert or --disable-sim-assert was given.
2474if 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
2480echo "$as_me: error: \"--enable-sim-assert does not take a value\"" >&2;}
2481   { (exit 1); exit 1; }; }; sim_assert="";;
2482esac
2483if test x"$silent" != x"yes" && test x"$sim_assert" != x""; then
2484  echo "Setting assert flags = $sim_assert" 6>&1
2485fi
2486else
2487  sim_assert=""
2488fi;
2489
2490# Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
2491if 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
2496echo "$as_me: error: \"--enable-sim-bitsize was given $enableval.  Expected 32 or 64\"" >&2;}
2497   { (exit 1); exit 1; }; }; sim_bitsize="";;
2498esac
2499if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
2500  echo "Setting bitsize flags = $sim_bitsize" 6>&1
2501fi
2502else
2503  sim_bitsize=""
2504fi;
2505
2506# Check whether --enable-sim-bswap or --disable-sim-bswap was given.
2507if 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
2513echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
2514   { (exit 1); exit 1; }; }; sim_bswap="";;
2515esac
2516if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
2517  echo "Setting bswap flags = $sim_bswap" 6>&1
2518fi
2519else
2520  sim_bswap=""
2521fi;
2522
2523# Check whether --enable-sim-cflags or --disable-sim-cflags was given.
2524if 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"`;;
2530esac
2531if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
2532  echo "Setting sim cflags = $sim_cflags" 6>&1
2533fi
2534else
2535  sim_cflags=""
2536fi;
2537
2538# Check whether --enable-sim-config or --disable-sim-config was given.
2539if 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
2543echo "$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
2551echo "$as_me: error: \"Config file $enableval was not found\"" >&2;}
2552   { (exit 1); exit 1; }; };
2553		  sim_config=std-config.h
2554		fi;;
2555esac
2556if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
2557  echo "Setting config flags = $sim_config" 6>&1
2558fi
2559else
2560  sim_config="std-config.h"
2561if test x"$silent" != x"yes"; then
2562  echo "Setting config flags = $sim_config" 6>&1
2563fi
2564fi;
2565
2566# Check whether --enable-sim-decode-mechanism or --disable-sim-decode-mechanism was given.
2567if 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
2571echo "$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
2575echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;}
2576   { (exit 1); exit 1; }; };
2577		sim_decode_mechanism="switch";;
2578esac
2579if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
2580  echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
2581fi
2582else
2583  sim_decode_mechanism=""
2584if test x"$silent" != x"yes"; then
2585  echo "Setting decode mechanism flags = $sim_decode_mechanism"
2586fi
2587fi;
2588
2589# Check whether --enable-sim-default-model or --disable-sim-default-model was given.
2590if 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
2594echo "$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}";;
2597esac
2598if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
2599  echo "Setting default-model flags = $sim_default_model" 6>&1
2600fi
2601else
2602  sim_default_model=""
2603fi;
2604
2605# Check whether --enable-sim-duplicate or --disable-sim-duplicate was given.
2606if 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
2612echo "$as_me: error: \"--enable-sim-duplicate does not take a value\"" >&2;}
2613   { (exit 1); exit 1; }; }; sim_dup="";;
2614esac
2615if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
2616  echo "Setting duplicate flags = $sim_dup" 6>&1
2617fi
2618else
2619  sim_dup="-E"
2620if test x"$silent" != x"yes"; then
2621  echo "Setting duplicate flags = $sim_dup" 6>&1
2622fi
2623fi;
2624
2625# Check whether --enable-sim-endian or --disable-sim-endian was given.
2626if 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
2638echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
2639   { (exit 1); exit 1; }; }; sim_endian="";;
2640esac
2641if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
2642  echo "Setting endian flags = $sim_endian" 6>&1
2643fi
2644else
2645  sim_endian=""
2646fi;
2647
2648# Check whether --enable-sim-env or --disable-sim-env was given.
2649if 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
2657echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-env\"" >&2;}
2658   { (exit 1); exit 1; }; }; sim_env="";;
2659esac
2660if test x"$silent" != x"yes" && test x"$sim_env" != x""; then
2661  echo "Setting env flags = $sim_env" 6>&1
2662fi
2663else
2664  sim_env=""
2665fi;
2666
2667# Check whether --enable-sim-filter or --disable-sim-filter was given.
2668if 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
2672echo "$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";;
2676esac
2677if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
2678  echo "Setting filter flags = $sim_filter" 6>&1
2679fi
2680else
2681  sim_filter="-F 32,f,o"
2682if test x"$silent" != x"yes"; then
2683  echo "Setting filter flags = $sim_filter" 6>&1
2684fi
2685fi;
2686
2687# Check whether --enable-sim-float or --disable-sim-float was given.
2688if 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
2696echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&2;}
2697   { (exit 1); exit 1; }; }; sim_float="";;
2698esac
2699if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
2700  echo "Setting float flags = $sim_float" 6>&1
2701fi
2702else
2703
2704case "${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=""
2708esac
2709
2710fi;
2711
2712# Check whether --enable-sim-hardware or --disable-sim-hardware was given.
2713if 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"
2716case "${enableval}" in
2717  yes)	;;
2718  no)	{ { echo "$as_me:$LINENO: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&5
2719echo "$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}"'';;
2724esac
2725sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
2726sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
2727if test x"$silent" != x"yes" && test x"$hardware" != x""; then
2728  echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
2729fi
2730else
2731  hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide"
2732sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
2733sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
2734if test x"$silent" != x"yes"; then
2735  echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
2736fi
2737fi;
2738
2739# Check whether --enable-sim-hostbitsize or --disable-sim-hostbitsize was given.
2740if 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
2745echo "$as_me: error: \"--enable-sim-hostbitsize was given $enableval.  Expected 32 or 64\"" >&2;}
2746   { (exit 1); exit 1; }; }; sim_hostbitsize="";;
2747esac
2748if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
2749  echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
2750fi
2751else
2752  sim_hostbitsize=""
2753fi;
2754
2755
2756# Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
2757if 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
2764echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
2765   { (exit 1); exit 1; }; }; sim_hostendian="";;
2766esac
2767if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
2768  echo "Setting hostendian flags = $sim_hostendian" 6>&1
2769fi
2770else
2771
2772if test "x$cross_compiling" = "xno"; then
2773  echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2774echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2775if test "${ac_cv_c_bigendian+set}" = set; then
2776  echo $ECHO_N "(cached) $ECHO_C" >&6
2777else
2778  # See if sys/param.h defines the BYTE_ORDER macro.
2779cat >conftest.$ac_ext <<_ACEOF
2780/* confdefs.h.  */
2781_ACEOF
2782cat confdefs.h >>conftest.$ac_ext
2783cat >>conftest.$ac_ext <<_ACEOF
2784/* end confdefs.h.  */
2785#include <sys/types.h>
2786#include <sys/param.h>
2787
2788int
2789main ()
2790{
2791#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2792 bogus endian macros
2793#endif
2794
2795  ;
2796  return 0;
2797}
2798_ACEOF
2799rm -f conftest.$ac_objext
2800if { (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.
2822cat >conftest.$ac_ext <<_ACEOF
2823/* confdefs.h.  */
2824_ACEOF
2825cat confdefs.h >>conftest.$ac_ext
2826cat >>conftest.$ac_ext <<_ACEOF
2827/* end confdefs.h.  */
2828#include <sys/types.h>
2829#include <sys/param.h>
2830
2831int
2832main ()
2833{
2834#if BYTE_ORDER != BIG_ENDIAN
2835 not big endian
2836#endif
2837
2838  ;
2839  return 0;
2840}
2841_ACEOF
2842rm -f conftest.$ac_objext
2843if { (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
2865else
2866  echo "$as_me: failed program was:" >&5
2867sed 's/^/| /' conftest.$ac_ext >&5
2868
2869ac_cv_c_bigendian=no
2870fi
2871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2872else
2873  echo "$as_me: failed program was:" >&5
2874sed 's/^/| /' conftest.$ac_ext >&5
2875
2876# It does not; compile a test program.
2877if 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
2883cat confdefs.h >>conftest.$ac_ext
2884cat >>conftest.$ac_ext <<_ACEOF
2885/* end confdefs.h.  */
2886short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2887short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2888void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2889short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2890short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2891void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2892int
2893main ()
2894{
2895 _ascii (); _ebcdic ();
2896  ;
2897  return 0;
2898}
2899_ACEOF
2900rm -f conftest.$ac_objext
2901if { (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
2924fi
2925if 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
2931  fi
2932fi
2933else
2934  echo "$as_me: failed program was:" >&5
2935sed 's/^/| /' conftest.$ac_ext >&5
2936
2937fi
2938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2939else
2940  cat >conftest.$ac_ext <<_ACEOF
2941/* confdefs.h.  */
2942_ACEOF
2943cat confdefs.h >>conftest.$ac_ext
2944cat >>conftest.$ac_ext <<_ACEOF
2945/* end confdefs.h.  */
2946int
2947main ()
2948{
2949  /* Are we little or big endian?  From Harbison&Steele.  */
2950  union
2951  {
2952    long l;
2953    char c[sizeof (long)];
2954  } u;
2955  u.l = 1;
2956  exit (u.c[sizeof (long) - 1] == 1);
2957}
2958_ACEOF
2959rm -f conftest$ac_exeext
2960if { (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
2971else
2972  echo "$as_me: program exited with status $ac_status" >&5
2973echo "$as_me: failed program was:" >&5
2974sed 's/^/| /' conftest.$ac_ext >&5
2975
2976( exit $ac_status )
2977ac_cv_c_bigendian=yes
2978fi
2979rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2980fi
2981fi
2982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2983fi
2984echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2985echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2986case $ac_cv_c_bigendian in
2987  yes)
2988
2989cat >>confdefs.h <<\_ACEOF
2990#define WORDS_BIGENDIAN 1
2991_ACEOF
2992 ;;
2993  no)
2994     ;;
2995  *)
2996    { { echo "$as_me:$LINENO: error: unknown endianness
2997presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2998echo "$as_me: error: unknown endianness
2999presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3000   { (exit 1); exit 1; }; } ;;
3001esac
3002
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"
3007  fi
3008else
3009  sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
3010fi
3011fi;
3012
3013# Check whether --enable-sim-icache or --disable-sim-icache was given.
3014if 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
3029echo "$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";;
3034esac
3035if test x"$silent" != x"yes" && test x"$icache" != x""; then
3036  echo "Setting instruction cache size to $icache ($sim_icache)"
3037fi
3038else
3039  sim_icache="-CSRI 1024"
3040if test x"$silent" != x"yes"; then
3041  echo "Setting instruction cache size to 1024 ($sim_icache)"
3042fi
3043fi;
3044
3045# Check whether --enable-sim-inline or --disable-sim-inline was given.
3046if test "${enable_sim_inline+set}" = set; then
3047  enableval="$enable_sim_inline"
3048  sim_inline=""
3049case "$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"
3066       fi
3067     done;;
3068esac
3069if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
3070  echo "Setting inline flags = $sim_inline" 6>&1
3071fi
3072else
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
3077  fi
3078else
3079  sim_inline=""
3080fi
3081fi;
3082
3083# Check whether --enable-sim-jump or --disable-sim-jump was given.
3084if 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
3090echo "$as_me: error: \"--enable-sim-jump does not take a value\"" >&2;}
3091   { (exit 1); exit 1; }; }; sim_jump="";;
3092esac
3093if test x"$silent" != x"yes" && test x"$sim_jump" != x""; then
3094  echo "Setting jump flag = $sim_jump" 6>&1
3095fi
3096else
3097  sim_jump=""
3098if test x"$silent" != x"yes"; then
3099  echo "Setting jump flag = $sim_jump" 6>&1
3100fi
3101fi;
3102
3103# Check whether --enable-sim-line-nr or --disable-sim-line-nr was given.
3104if 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
3110echo "$as_me: error: \"--enable-sim-line-nr does not take a value\"" >&2;}
3111   { (exit 1); exit 1; }; }; sim_line_nr="";;
3112esac
3113if test x"$silent" != x"yes" && test x"$sim_line_nr" != x""; then
3114  echo "Setting warning flags = $sim_line_nr" 6>&1
3115fi
3116else
3117  sim_line_nr=""
3118fi;
3119
3120# Check whether --enable-sim-model or --disable-sim-model was given.
3121if 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
3125echo "$as_me: error: \"No value supplied for --enable-sim-model=model\"" >&2;}
3126   { (exit 1); exit 1; }; };;
3127  *)		sim_model="-DWITH_MODEL=${enableval}";;
3128esac
3129if test x"$silent" != x"yes" && test x"$sim_model" != x""; then
3130  echo "Setting model flags = $sim_model" 6>&1
3131fi
3132else
3133  sim_model=""
3134fi;
3135
3136# Check whether --enable-sim-model-issue or --disable-sim-model-issue was given.
3137if 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
3143echo "$as_me: error: \"--enable-sim-model-issue does not take a value\"" >&2;}
3144   { (exit 1); exit 1; }; }; sim_model_issue="";;
3145esac
3146if test x"$silent" != x"yes"; then
3147  echo "Setting model-issue flags = $sim_model_issue" 6>&1
3148fi
3149else
3150  sim_model_issue=""
3151fi;
3152
3153# Check whether --enable-sim-monitor or --disable-sim-monitor was given.
3154if 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
3162echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&2;}
3163   { (exit 1); exit 1; }; }; sim_env="";;
3164esac
3165if test x"$silent" != x"yes" && test x"$sim_monitor" != x""; then
3166  echo "Setting monitor flags = $sim_monitor" 6>&1
3167fi
3168else
3169  sim_monitor=""
3170fi;
3171
3172# Check whether --enable-sim-opcode or --disable-sim-opcode was given.
3173if 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
3177echo "$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
3185echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;}
3186   { (exit 1); exit 1; }; };
3187		  sim_opcode="dc-complex"
3188		fi;;
3189esac
3190if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then
3191  echo "Setting opcode flags = $sim_opcode" 6>&1
3192fi
3193else
3194  sim_opcode="dc-complex"
3195if test x"$silent" != x"yes"; then
3196  echo "Setting opcode flags = $sim_opcode"
3197fi
3198fi;
3199
3200# Check whether --enable-sim-packages or --disable-sim-packages was given.
3201if test "${enable_sim_packages+set}" = set; then
3202  enableval="$enable_sim_packages"
3203  packages=disklabel
3204case "${enableval}" in
3205  yes)	;;
3206  no)	{ { echo "$as_me:$LINENO: error: \"List of packages must be specified for --enable-sim-packages\"" >&5
3207echo "$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}"'';;
3212esac
3213sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3214sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
3215if test x"$silent" != x"yes" && test x"$packages" != x""; then
3216  echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3217fi
3218else
3219  packages=disklabel
3220sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3221sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
3222if test x"$silent" != x"yes"; then
3223  echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3224fi
3225fi;
3226
3227# Check whether --enable-sim-regparm or --disable-sim-regparm was given.
3228if 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
3235echo "$as_me: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&2;}
3236   { (exit 1); exit 1; }; }; sim_regparm="";;
3237esac
3238if test x"$silent" != x"yes" && test x"$sim_regparm" != x""; then
3239  echo "Setting regparm flags = $sim_regparm" 6>&1
3240fi
3241else
3242  sim_regparm=""
3243fi;
3244
3245# Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
3246if 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
3252echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
3253   { (exit 1); exit 1; }; }; sim_reserved="";;
3254esac
3255if test x"$silent" != x"yes" && test x"$sim_reserved" != x""; then
3256  echo "Setting reserved flags = $sim_reserved" 6>&1
3257fi
3258else
3259  sim_reserved=""
3260fi;
3261
3262# Check whether --enable-sim-smp or --disable-sim-smp was given.
3263if 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";;
3269esac
3270if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
3271  echo "Setting smp flags = $sim_smp" 6>&1
3272fi
3273else
3274  sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5"
3275if test x"$silent" != x"yes"; then
3276  echo "Setting smp flags = $sim_smp" 6>&1
3277fi
3278fi;
3279
3280# Check whether --enable-sim-stdcall or --disable-sim-stdcall was given.
3281if 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
3288echo "$as_me: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&2;}
3289   { (exit 1); exit 1; }; }; sim_stdcall="";;
3290esac
3291if test x"$silent" != x"yes" && test x"$sim_stdcall" != x""; then
3292  echo "Setting function call flags = $sim_stdcall" 6>&1
3293fi
3294else
3295  sim_stdcall=""
3296fi;
3297
3298# Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3299if 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
3305echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
3306   { (exit 1); exit 1; }; }; sim_stdio="";;
3307esac
3308if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
3309  echo "Setting stdio flags = $sim_stdio" 6>&1
3310fi
3311else
3312  sim_stdio=""
3313fi;
3314
3315# Check whether --enable-sim-switch or --disable-sim-switch was given.
3316if 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
3322echo "$as_me: error: \"--enable-sim-switch does not take a value\"" >&2;}
3323   { (exit 1); exit 1; }; }; sim_switch="";;
3324esac
3325if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then
3326  echo "Setting switch flags = $sim_switch" 6>&1
3327fi
3328else
3329  sim_switch="";
3330if test x"$silent" != x"yes"; then
3331  echo "Setting switch flags = $sim_switch" 6>&1
3332fi
3333fi;
3334
3335# Check whether --enable-sim-timebase or --disable-sim-timebase was given.
3336if 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
3342echo "$as_me: error: \"--enable-sim-timebase does not take a value\"" >&2;}
3343   { (exit 1); exit 1; }; }; sim_timebase="";;
3344esac
3345if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then
3346  echo "Setting timebase flags = $sim_timebase" 6>&1
3347fi
3348else
3349  sim_timebase=""
3350fi;
3351
3352# Check whether --enable-sim-trace or --disable-sim-trace was given.
3353if 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
3359echo "$as_me: error: \"--enable-sim-trace does not take a value\"" >&2;}
3360   { (exit 1); exit 1; }; }; sim_trace="";;
3361esac
3362if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
3363  echo "Setting trace flags = $sim_trace" 6>&1
3364fi
3365else
3366  sim_trace=""
3367fi;
3368
3369# Check whether --enable-sim-warnings or --disable-sim-warnings was given.
3370if 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"`;;
3376esac
3377if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then
3378  echo "Setting warning flags = $sim_warnings" 6>&1
3379fi
3380else
3381  sim_warnings=""
3382fi;
3383
3384# Check whether --enable-sim-xor-endian or --disable-sim-xor-endian was given.
3385if 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";;
3391esac
3392if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then
3393  echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
3394fi
3395else
3396  sim_xor_endian=""
3397fi;
3398
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
3402echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3403   { (exit 1); exit 1; }; }
3404
3405echo "$as_me:$LINENO: checking build system type" >&5
3406echo $ECHO_N "checking build system type... $ECHO_C" >&6
3407if test "${ac_cv_build+set}" = set; then
3408  echo $ECHO_N "(cached) $ECHO_C" >&6
3409else
3410  ac_cv_build_alias=$build_alias
3411test -z "$ac_cv_build_alias" &&
3412  ac_cv_build_alias=`$ac_config_guess`
3413test -z "$ac_cv_build_alias" &&
3414  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3415echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3416   { (exit 1); exit 1; }; }
3417ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3418  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3419echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3420   { (exit 1); exit 1; }; }
3421
3422fi
3423echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3424echo "${ECHO_T}$ac_cv_build" >&6
3425build=$ac_cv_build
3426build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3427build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3428build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3429
3430
3431echo "$as_me:$LINENO: checking host system type" >&5
3432echo $ECHO_N "checking host system type... $ECHO_C" >&6
3433if test "${ac_cv_host+set}" = set; then
3434  echo $ECHO_N "(cached) $ECHO_C" >&6
3435else
3436  ac_cv_host_alias=$host_alias
3437test -z "$ac_cv_host_alias" &&
3438  ac_cv_host_alias=$ac_cv_build_alias
3439ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3440  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3441echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3442   { (exit 1); exit 1; }; }
3443
3444fi
3445echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3446echo "${ECHO_T}$ac_cv_host" >&6
3447host=$ac_cv_host
3448host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3449host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3450host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3451
3452
3453echo "$as_me:$LINENO: checking target system type" >&5
3454echo $ECHO_N "checking target system type... $ECHO_C" >&6
3455if test "${ac_cv_target+set}" = set; then
3456  echo $ECHO_N "(cached) $ECHO_C" >&6
3457else
3458  ac_cv_target_alias=$target_alias
3459test "x$ac_cv_target_alias" = "x" &&
3460  ac_cv_target_alias=$ac_cv_host_alias
3461ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3462  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3463echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3464   { (exit 1); exit 1; }; }
3465
3466fi
3467echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3468echo "${ECHO_T}$ac_cv_target" >&6
3469target=$ac_cv_target
3470target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3471target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3472target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3473
3474
3475# The aliases save the names the user supplied, while $host etc.
3476# will get canonicalized.
3477test -n "$target_alias" &&
3478  test "$program_prefix$program_suffix$program_transform_name" = \
3479    NONENONEs,x,x, &&
3480  program_prefix=${target_alias}-
3481test "$program_prefix" != NONE &&
3482  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3483# Use a double $ so make ignores it.
3484test "$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.
3488cat <<\_ACEOF >conftest.sed
3489s/[\\$]/&&/g;s/;s,x,x,$//
3490_ACEOF
3491program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3492rm conftest.sed
3493
3494
3495. ${srcdir}/../../bfd/configure.host
3496
3497case ${host} in
3498  *mingw32*)
3499
3500cat >>confdefs.h <<\_ACEOF
3501#define USE_WIN32API 1
3502_ACEOF
3503
3504    ;;
3505esac
3506
3507          ac_config_headers="$ac_config_headers config.h:config.in"
3508
3509
3510ac_ext=c
3511ac_cpp='$CPP $CPPFLAGS'
3512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3514ac_compiler_gnu=$ac_cv_c_compiler_gnu
3515echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3516echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3517# On Suns, sometimes $CPP names a directory.
3518if test -n "$CPP" && test -d "$CPP"; then
3519  CPP=
3520fi
3521if test -z "$CPP"; then
3522  if test "${ac_cv_prog_CPP+set}" = set; then
3523  echo $ECHO_N "(cached) $ECHO_C" >&6
3524else
3525      # Double quotes because CPP needs to be expanded
3526    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3527    do
3528      ac_preproc_ok=false
3529for ac_c_preproc_warn_flag in '' yes
3530do
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
3540cat confdefs.h >>conftest.$ac_ext
3541cat >>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
3550if { (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=
3563  fi
3564else
3565  ac_cpp_err=yes
3566fi
3567if test -z "$ac_cpp_err"; then
3568  :
3569else
3570  echo "$as_me: failed program was:" >&5
3571sed 's/^/| /' conftest.$ac_ext >&5
3572
3573  # Broken: fails on valid input.
3574continue
3575fi
3576rm -f conftest.err conftest.$ac_ext
3577
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
3583cat confdefs.h >>conftest.$ac_ext
3584cat >>conftest.$ac_ext <<_ACEOF
3585/* end confdefs.h.  */
3586#include <ac_nonexistent.h>
3587_ACEOF
3588if { (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=
3601  fi
3602else
3603  ac_cpp_err=yes
3604fi
3605if test -z "$ac_cpp_err"; then
3606  # Broken: success on invalid input.
3607continue
3608else
3609  echo "$as_me: failed program was:" >&5
3610sed 's/^/| /' conftest.$ac_ext >&5
3611
3612  # Passes both tests.
3613ac_preproc_ok=:
3614break
3615fi
3616rm -f conftest.err conftest.$ac_ext
3617
3618done
3619# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3620rm -f conftest.err conftest.$ac_ext
3621if $ac_preproc_ok; then
3622  break
3623fi
3624
3625    done
3626    ac_cv_prog_CPP=$CPP
3627
3628fi
3629  CPP=$ac_cv_prog_CPP
3630else
3631  ac_cv_prog_CPP=$CPP
3632fi
3633echo "$as_me:$LINENO: result: $CPP" >&5
3634echo "${ECHO_T}$CPP" >&6
3635ac_preproc_ok=false
3636for ac_c_preproc_warn_flag in '' yes
3637do
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
3647cat confdefs.h >>conftest.$ac_ext
3648cat >>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
3657if { (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=
3670  fi
3671else
3672  ac_cpp_err=yes
3673fi
3674if test -z "$ac_cpp_err"; then
3675  :
3676else
3677  echo "$as_me: failed program was:" >&5
3678sed 's/^/| /' conftest.$ac_ext >&5
3679
3680  # Broken: fails on valid input.
3681continue
3682fi
3683rm -f conftest.err conftest.$ac_ext
3684
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
3690cat confdefs.h >>conftest.$ac_ext
3691cat >>conftest.$ac_ext <<_ACEOF
3692/* end confdefs.h.  */
3693#include <ac_nonexistent.h>
3694_ACEOF
3695if { (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=
3708  fi
3709else
3710  ac_cpp_err=yes
3711fi
3712if test -z "$ac_cpp_err"; then
3713  # Broken: success on invalid input.
3714continue
3715else
3716  echo "$as_me: failed program was:" >&5
3717sed 's/^/| /' conftest.$ac_ext >&5
3718
3719  # Passes both tests.
3720ac_preproc_ok=:
3721break
3722fi
3723rm -f conftest.err conftest.$ac_ext
3724
3725done
3726# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3727rm -f conftest.err conftest.$ac_ext
3728if $ac_preproc_ok; then
3729  :
3730else
3731  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3732See \`config.log' for more details." >&5
3733echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3734See \`config.log' for more details." >&2;}
3735   { (exit 1); exit 1; }; }
3736fi
3737
3738ac_ext=c
3739ac_cpp='$CPP $CPPFLAGS'
3740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743
3744
3745echo "$as_me:$LINENO: checking for egrep" >&5
3746echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3747if test "${ac_cv_prog_egrep+set}" = set; then
3748  echo $ECHO_N "(cached) $ECHO_C" >&6
3749else
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'
3753    fi
3754fi
3755echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3756echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3757 EGREP=$ac_cv_prog_egrep
3758
3759
3760echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3761echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3762if test "${ac_cv_header_stdc+set}" = set; then
3763  echo $ECHO_N "(cached) $ECHO_C" >&6
3764else
3765  cat >conftest.$ac_ext <<_ACEOF
3766/* confdefs.h.  */
3767_ACEOF
3768cat confdefs.h >>conftest.$ac_ext
3769cat >>conftest.$ac_ext <<_ACEOF
3770/* end confdefs.h.  */
3771#include <stdlib.h>
3772#include <stdarg.h>
3773#include <string.h>
3774#include <float.h>
3775
3776int
3777main ()
3778{
3779
3780  ;
3781  return 0;
3782}
3783_ACEOF
3784rm -f conftest.$ac_objext
3785if { (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
3807else
3808  echo "$as_me: failed program was:" >&5
3809sed 's/^/| /' conftest.$ac_ext >&5
3810
3811ac_cv_header_stdc=no
3812fi
3813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3814
3815if 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
3820cat confdefs.h >>conftest.$ac_ext
3821cat >>conftest.$ac_ext <<_ACEOF
3822/* end confdefs.h.  */
3823#include <string.h>
3824
3825_ACEOF
3826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3827  $EGREP "memchr" >/dev/null 2>&1; then
3828  :
3829else
3830  ac_cv_header_stdc=no
3831fi
3832rm -f conftest*
3833
3834fi
3835
3836if 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
3841cat confdefs.h >>conftest.$ac_ext
3842cat >>conftest.$ac_ext <<_ACEOF
3843/* end confdefs.h.  */
3844#include <stdlib.h>
3845
3846_ACEOF
3847if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3848  $EGREP "free" >/dev/null 2>&1; then
3849  :
3850else
3851  ac_cv_header_stdc=no
3852fi
3853rm -f conftest*
3854
3855fi
3856
3857if 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
3860  :
3861else
3862  cat >conftest.$ac_ext <<_ACEOF
3863/* confdefs.h.  */
3864_ACEOF
3865cat confdefs.h >>conftest.$ac_ext
3866cat >>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
3879
3880#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3881int
3882main ()
3883{
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);
3890}
3891_ACEOF
3892rm -f conftest$ac_exeext
3893if { (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
3903  :
3904else
3905  echo "$as_me: program exited with status $ac_status" >&5
3906echo "$as_me: failed program was:" >&5
3907sed 's/^/| /' conftest.$ac_ext >&5
3908
3909( exit $ac_status )
3910ac_cv_header_stdc=no
3911fi
3912rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3913fi
3914fi
3915fi
3916echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3917echo "${ECHO_T}$ac_cv_header_stdc" >&6
3918if test $ac_cv_header_stdc = yes; then
3919
3920cat >>confdefs.h <<\_ACEOF
3921#define STDC_HEADERS 1
3922_ACEOF
3923
3924fi
3925
3926# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3937		  inttypes.h stdint.h unistd.h
3938do
3939as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3940echo "$as_me:$LINENO: checking for $ac_header" >&5
3941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3942if eval "test \"\${$as_ac_Header+set}\" = set"; then
3943  echo $ECHO_N "(cached) $ECHO_C" >&6
3944else
3945  cat >conftest.$ac_ext <<_ACEOF
3946/* confdefs.h.  */
3947_ACEOF
3948cat confdefs.h >>conftest.$ac_ext
3949cat >>conftest.$ac_ext <<_ACEOF
3950/* end confdefs.h.  */
3951$ac_includes_default
3952
3953#include <$ac_header>
3954_ACEOF
3955rm -f conftest.$ac_objext
3956if { (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"
3978else
3979  echo "$as_me: failed program was:" >&5
3980sed 's/^/| /' conftest.$ac_ext >&5
3981
3982eval "$as_ac_Header=no"
3983fi
3984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3985fi
3986echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3987echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3988if 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
3992
3993fi
3994
3995done
3996
3997
3998
3999echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
4000echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4001if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
4002  echo $ECHO_N "(cached) $ECHO_C" >&6
4003else
4004  cat >conftest.$ac_ext <<_ACEOF
4005/* confdefs.h.  */
4006_ACEOF
4007cat confdefs.h >>conftest.$ac_ext
4008cat >>conftest.$ac_ext <<_ACEOF
4009/* end confdefs.h.  */
4010$ac_includes_default
4011int
4012main ()
4013{
4014static struct stat ac_aggr;
4015if (ac_aggr.st_blksize)
4016return 0;
4017  ;
4018  return 0;
4019}
4020_ACEOF
4021rm -f conftest.$ac_objext
4022if { (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
4044else
4045  echo "$as_me: failed program was:" >&5
4046sed 's/^/| /' conftest.$ac_ext >&5
4047
4048cat >conftest.$ac_ext <<_ACEOF
4049/* confdefs.h.  */
4050_ACEOF
4051cat confdefs.h >>conftest.$ac_ext
4052cat >>conftest.$ac_ext <<_ACEOF
4053/* end confdefs.h.  */
4054$ac_includes_default
4055int
4056main ()
4057{
4058static struct stat ac_aggr;
4059if (sizeof ac_aggr.st_blksize)
4060return 0;
4061  ;
4062  return 0;
4063}
4064_ACEOF
4065rm -f conftest.$ac_objext
4066if { (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
4088else
4089  echo "$as_me: failed program was:" >&5
4090sed 's/^/| /' conftest.$ac_ext >&5
4091
4092ac_cv_member_struct_stat_st_blksize=no
4093fi
4094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4095fi
4096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4097fi
4098echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
4099echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4100if test $ac_cv_member_struct_stat_st_blksize = yes; then
4101
4102cat >>confdefs.h <<_ACEOF
4103#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
4104_ACEOF
4105
4106
4107cat >>confdefs.h <<\_ACEOF
4108#define HAVE_ST_BLKSIZE 1
4109_ACEOF
4110
4111fi
4112
4113
4114echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
4115echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4116if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
4117  echo $ECHO_N "(cached) $ECHO_C" >&6
4118else
4119  cat >conftest.$ac_ext <<_ACEOF
4120/* confdefs.h.  */
4121_ACEOF
4122cat confdefs.h >>conftest.$ac_ext
4123cat >>conftest.$ac_ext <<_ACEOF
4124/* end confdefs.h.  */
4125$ac_includes_default
4126int
4127main ()
4128{
4129static struct stat ac_aggr;
4130if (ac_aggr.st_blocks)
4131return 0;
4132  ;
4133  return 0;
4134}
4135_ACEOF
4136rm -f conftest.$ac_objext
4137if { (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
4159else
4160  echo "$as_me: failed program was:" >&5
4161sed 's/^/| /' conftest.$ac_ext >&5
4162
4163cat >conftest.$ac_ext <<_ACEOF
4164/* confdefs.h.  */
4165_ACEOF
4166cat confdefs.h >>conftest.$ac_ext
4167cat >>conftest.$ac_ext <<_ACEOF
4168/* end confdefs.h.  */
4169$ac_includes_default
4170int
4171main ()
4172{
4173static struct stat ac_aggr;
4174if (sizeof ac_aggr.st_blocks)
4175return 0;
4176  ;
4177  return 0;
4178}
4179_ACEOF
4180rm -f conftest.$ac_objext
4181if { (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
4203else
4204  echo "$as_me: failed program was:" >&5
4205sed 's/^/| /' conftest.$ac_ext >&5
4206
4207ac_cv_member_struct_stat_st_blocks=no
4208fi
4209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4210fi
4211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4212fi
4213echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
4214echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4215if test $ac_cv_member_struct_stat_st_blocks = yes; then
4216
4217cat >>confdefs.h <<_ACEOF
4218#define HAVE_STRUCT_STAT_ST_BLOCKS 1
4219_ACEOF
4220
4221
4222cat >>confdefs.h <<\_ACEOF
4223#define HAVE_ST_BLOCKS 1
4224_ACEOF
4225
4226else
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" ;;
4233esac
4234
4235fi
4236
4237
4238
4239echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
4240echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
4241if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
4242  echo $ECHO_N "(cached) $ECHO_C" >&6
4243else
4244  cat >conftest.$ac_ext <<_ACEOF
4245/* confdefs.h.  */
4246_ACEOF
4247cat confdefs.h >>conftest.$ac_ext
4248cat >>conftest.$ac_ext <<_ACEOF
4249/* end confdefs.h.  */
4250$ac_includes_default
4251int
4252main ()
4253{
4254static struct stat ac_aggr;
4255if (ac_aggr.st_rdev)
4256return 0;
4257  ;
4258  return 0;
4259}
4260_ACEOF
4261rm -f conftest.$ac_objext
4262if { (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
4284else
4285  echo "$as_me: failed program was:" >&5
4286sed 's/^/| /' conftest.$ac_ext >&5
4287
4288cat >conftest.$ac_ext <<_ACEOF
4289/* confdefs.h.  */
4290_ACEOF
4291cat confdefs.h >>conftest.$ac_ext
4292cat >>conftest.$ac_ext <<_ACEOF
4293/* end confdefs.h.  */
4294$ac_includes_default
4295int
4296main ()
4297{
4298static struct stat ac_aggr;
4299if (sizeof ac_aggr.st_rdev)
4300return 0;
4301  ;
4302  return 0;
4303}
4304_ACEOF
4305rm -f conftest.$ac_objext
4306if { (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
4328else
4329  echo "$as_me: failed program was:" >&5
4330sed 's/^/| /' conftest.$ac_ext >&5
4331
4332ac_cv_member_struct_stat_st_rdev=no
4333fi
4334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4335fi
4336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4337fi
4338echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
4339echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
4340if test $ac_cv_member_struct_stat_st_rdev = yes; then
4341
4342cat >>confdefs.h <<_ACEOF
4343#define HAVE_STRUCT_STAT_ST_RDEV 1
4344_ACEOF
4345
4346
4347cat >>confdefs.h <<\_ACEOF
4348#define HAVE_ST_RDEV 1
4349_ACEOF
4350
4351fi
4352
4353
4354echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4355echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4356if test "${ac_cv_struct_tm+set}" = set; then
4357  echo $ECHO_N "(cached) $ECHO_C" >&6
4358else
4359  cat >conftest.$ac_ext <<_ACEOF
4360/* confdefs.h.  */
4361_ACEOF
4362cat confdefs.h >>conftest.$ac_ext
4363cat >>conftest.$ac_ext <<_ACEOF
4364/* end confdefs.h.  */
4365#include <sys/types.h>
4366#include <time.h>
4367
4368int
4369main ()
4370{
4371struct tm *tp; tp->tm_sec;
4372  ;
4373  return 0;
4374}
4375_ACEOF
4376rm -f conftest.$ac_objext
4377if { (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
4399else
4400  echo "$as_me: failed program was:" >&5
4401sed 's/^/| /' conftest.$ac_ext >&5
4402
4403ac_cv_struct_tm=sys/time.h
4404fi
4405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4406fi
4407echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4408echo "${ECHO_T}$ac_cv_struct_tm" >&6
4409if test $ac_cv_struct_tm = sys/time.h; then
4410
4411cat >>confdefs.h <<\_ACEOF
4412#define TM_IN_SYS_TIME 1
4413_ACEOF
4414
4415fi
4416
4417echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
4418echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4419if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4420  echo $ECHO_N "(cached) $ECHO_C" >&6
4421else
4422  cat >conftest.$ac_ext <<_ACEOF
4423/* confdefs.h.  */
4424_ACEOF
4425cat confdefs.h >>conftest.$ac_ext
4426cat >>conftest.$ac_ext <<_ACEOF
4427/* end confdefs.h.  */
4428#include <sys/types.h>
4429#include <$ac_cv_struct_tm>
4430
4431
4432int
4433main ()
4434{
4435static struct tm ac_aggr;
4436if (ac_aggr.tm_zone)
4437return 0;
4438  ;
4439  return 0;
4440}
4441_ACEOF
4442rm -f conftest.$ac_objext
4443if { (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
4465else
4466  echo "$as_me: failed program was:" >&5
4467sed 's/^/| /' conftest.$ac_ext >&5
4468
4469cat >conftest.$ac_ext <<_ACEOF
4470/* confdefs.h.  */
4471_ACEOF
4472cat confdefs.h >>conftest.$ac_ext
4473cat >>conftest.$ac_ext <<_ACEOF
4474/* end confdefs.h.  */
4475#include <sys/types.h>
4476#include <$ac_cv_struct_tm>
4477
4478
4479int
4480main ()
4481{
4482static struct tm ac_aggr;
4483if (sizeof ac_aggr.tm_zone)
4484return 0;
4485  ;
4486  return 0;
4487}
4488_ACEOF
4489rm -f conftest.$ac_objext
4490if { (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
4512else
4513  echo "$as_me: failed program was:" >&5
4514sed 's/^/| /' conftest.$ac_ext >&5
4515
4516ac_cv_member_struct_tm_tm_zone=no
4517fi
4518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4519fi
4520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4521fi
4522echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
4523echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4524if test $ac_cv_member_struct_tm_tm_zone = yes; then
4525
4526cat >>confdefs.h <<_ACEOF
4527#define HAVE_STRUCT_TM_TM_ZONE 1
4528_ACEOF
4529
4530
4531fi
4532
4533if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4534
4535cat >>confdefs.h <<\_ACEOF
4536#define HAVE_TM_ZONE 1
4537_ACEOF
4538
4539else
4540  echo "$as_me:$LINENO: checking for tzname" >&5
4541echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4542if test "${ac_cv_var_tzname+set}" = set; then
4543  echo $ECHO_N "(cached) $ECHO_C" >&6
4544else
4545  cat >conftest.$ac_ext <<_ACEOF
4546/* confdefs.h.  */
4547_ACEOF
4548cat confdefs.h >>conftest.$ac_ext
4549cat >>conftest.$ac_ext <<_ACEOF
4550/* end confdefs.h.  */
4551#include <time.h>
4552#ifndef tzname /* For SGI.  */
4553extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
4554#endif
4555
4556int
4557main ()
4558{
4559atoi(*tzname);
4560  ;
4561  return 0;
4562}
4563_ACEOF
4564rm -f conftest.$ac_objext conftest$ac_exeext
4565if { (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
4587else
4588  echo "$as_me: failed program was:" >&5
4589sed 's/^/| /' conftest.$ac_ext >&5
4590
4591ac_cv_var_tzname=no
4592fi
4593rm -f conftest.err conftest.$ac_objext \
4594      conftest$ac_exeext conftest.$ac_ext
4595fi
4596echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
4597echo "${ECHO_T}$ac_cv_var_tzname" >&6
4598  if test $ac_cv_var_tzname = yes; then
4599
4600cat >>confdefs.h <<\_ACEOF
4601#define HAVE_TZNAME 1
4602_ACEOF
4603
4604  fi
4605fi
4606
4607
4608echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4609echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4610if test "${ac_cv_type_uid_t+set}" = set; then
4611  echo $ECHO_N "(cached) $ECHO_C" >&6
4612else
4613  cat >conftest.$ac_ext <<_ACEOF
4614/* confdefs.h.  */
4615_ACEOF
4616cat confdefs.h >>conftest.$ac_ext
4617cat >>conftest.$ac_ext <<_ACEOF
4618/* end confdefs.h.  */
4619#include <sys/types.h>
4620
4621_ACEOF
4622if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4623  $EGREP "uid_t" >/dev/null 2>&1; then
4624  ac_cv_type_uid_t=yes
4625else
4626  ac_cv_type_uid_t=no
4627fi
4628rm -f conftest*
4629
4630fi
4631echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4632echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4633if test $ac_cv_type_uid_t = no; then
4634
4635cat >>confdefs.h <<\_ACEOF
4636#define uid_t int
4637_ACEOF
4638
4639
4640cat >>confdefs.h <<\_ACEOF
4641#define gid_t int
4642_ACEOF
4643
4644fi
4645
4646echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
4647echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
4648if test "${ac_cv_type_getgroups+set}" = set; then
4649  echo $ECHO_N "(cached) $ECHO_C" >&6
4650else
4651  if test "$cross_compiling" = yes; then
4652  ac_cv_type_getgroups=cross
4653else
4654  cat >conftest.$ac_ext <<_ACEOF
4655/* confdefs.h.  */
4656_ACEOF
4657cat confdefs.h >>conftest.$ac_ext
4658cat >>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))
4665
4666int
4667main ()
4668{
4669  gid_t gidset[NGID];
4670  int i, n;
4671  union { gid_t gval; long lval; }  val;
4672
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);
4681}
4682_ACEOF
4683rm -f conftest$ac_exeext
4684if { (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
4695else
4696  echo "$as_me: program exited with status $ac_status" >&5
4697echo "$as_me: failed program was:" >&5
4698sed 's/^/| /' conftest.$ac_ext >&5
4699
4700( exit $ac_status )
4701ac_cv_type_getgroups=int
4702fi
4703rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4704fi
4705if test $ac_cv_type_getgroups = cross; then
4706        cat >conftest.$ac_ext <<_ACEOF
4707/* confdefs.h.  */
4708_ACEOF
4709cat confdefs.h >>conftest.$ac_ext
4710cat >>conftest.$ac_ext <<_ACEOF
4711/* end confdefs.h.  */
4712#include <unistd.h>
4713
4714_ACEOF
4715if (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
4718else
4719  ac_cv_type_getgroups=int
4720fi
4721rm -f conftest*
4722
4723fi
4724fi
4725echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
4726echo "${ECHO_T}$ac_cv_type_getgroups" >&6
4727
4728cat >>confdefs.h <<_ACEOF
4729#define GETGROUPS_T $ac_cv_type_getgroups
4730_ACEOF
4731
4732
4733echo "$as_me:$LINENO: checking for mode_t" >&5
4734echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4735if test "${ac_cv_type_mode_t+set}" = set; then
4736  echo $ECHO_N "(cached) $ECHO_C" >&6
4737else
4738  cat >conftest.$ac_ext <<_ACEOF
4739/* confdefs.h.  */
4740_ACEOF
4741cat confdefs.h >>conftest.$ac_ext
4742cat >>conftest.$ac_ext <<_ACEOF
4743/* end confdefs.h.  */
4744$ac_includes_default
4745int
4746main ()
4747{
4748if ((mode_t *) 0)
4749  return 0;
4750if (sizeof (mode_t))
4751  return 0;
4752  ;
4753  return 0;
4754}
4755_ACEOF
4756rm -f conftest.$ac_objext
4757if { (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
4779else
4780  echo "$as_me: failed program was:" >&5
4781sed 's/^/| /' conftest.$ac_ext >&5
4782
4783ac_cv_type_mode_t=no
4784fi
4785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4786fi
4787echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4788echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4789if test $ac_cv_type_mode_t = yes; then
4790  :
4791else
4792
4793cat >>confdefs.h <<_ACEOF
4794#define mode_t int
4795_ACEOF
4796
4797fi
4798
4799echo "$as_me:$LINENO: checking for off_t" >&5
4800echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4801if test "${ac_cv_type_off_t+set}" = set; then
4802  echo $ECHO_N "(cached) $ECHO_C" >&6
4803else
4804  cat >conftest.$ac_ext <<_ACEOF
4805/* confdefs.h.  */
4806_ACEOF
4807cat confdefs.h >>conftest.$ac_ext
4808cat >>conftest.$ac_ext <<_ACEOF
4809/* end confdefs.h.  */
4810$ac_includes_default
4811int
4812main ()
4813{
4814if ((off_t *) 0)
4815  return 0;
4816if (sizeof (off_t))
4817  return 0;
4818  ;
4819  return 0;
4820}
4821_ACEOF
4822rm -f conftest.$ac_objext
4823if { (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
4845else
4846  echo "$as_me: failed program was:" >&5
4847sed 's/^/| /' conftest.$ac_ext >&5
4848
4849ac_cv_type_off_t=no
4850fi
4851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4852fi
4853echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4854echo "${ECHO_T}$ac_cv_type_off_t" >&6
4855if test $ac_cv_type_off_t = yes; then
4856  :
4857else
4858
4859cat >>confdefs.h <<_ACEOF
4860#define off_t long
4861_ACEOF
4862
4863fi
4864
4865echo "$as_me:$LINENO: checking for pid_t" >&5
4866echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4867if test "${ac_cv_type_pid_t+set}" = set; then
4868  echo $ECHO_N "(cached) $ECHO_C" >&6
4869else
4870  cat >conftest.$ac_ext <<_ACEOF
4871/* confdefs.h.  */
4872_ACEOF
4873cat confdefs.h >>conftest.$ac_ext
4874cat >>conftest.$ac_ext <<_ACEOF
4875/* end confdefs.h.  */
4876$ac_includes_default
4877int
4878main ()
4879{
4880if ((pid_t *) 0)
4881  return 0;
4882if (sizeof (pid_t))
4883  return 0;
4884  ;
4885  return 0;
4886}
4887_ACEOF
4888rm -f conftest.$ac_objext
4889if { (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
4911else
4912  echo "$as_me: failed program was:" >&5
4913sed 's/^/| /' conftest.$ac_ext >&5
4914
4915ac_cv_type_pid_t=no
4916fi
4917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4918fi
4919echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4920echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4921if test $ac_cv_type_pid_t = yes; then
4922  :
4923else
4924
4925cat >>confdefs.h <<_ACEOF
4926#define pid_t int
4927_ACEOF
4928
4929fi
4930
4931echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4932echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4933if test "${ac_cv_type_signal+set}" = set; then
4934  echo $ECHO_N "(cached) $ECHO_C" >&6
4935else
4936  cat >conftest.$ac_ext <<_ACEOF
4937/* confdefs.h.  */
4938_ACEOF
4939cat confdefs.h >>conftest.$ac_ext
4940cat >>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
4948extern "C" void (*signal (int, void (*)(int)))(int);
4949#else
4950void (*signal ()) ();
4951#endif
4952
4953int
4954main ()
4955{
4956int i;
4957  ;
4958  return 0;
4959}
4960_ACEOF
4961rm -f conftest.$ac_objext
4962if { (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
4984else
4985  echo "$as_me: failed program was:" >&5
4986sed 's/^/| /' conftest.$ac_ext >&5
4987
4988ac_cv_type_signal=int
4989fi
4990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4991fi
4992echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4993echo "${ECHO_T}$ac_cv_type_signal" >&6
4994
4995cat >>confdefs.h <<_ACEOF
4996#define RETSIGTYPE $ac_cv_type_signal
4997_ACEOF
4998
4999
5000echo "$as_me:$LINENO: checking for size_t" >&5
5001echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5002if test "${ac_cv_type_size_t+set}" = set; then
5003  echo $ECHO_N "(cached) $ECHO_C" >&6
5004else
5005  cat >conftest.$ac_ext <<_ACEOF
5006/* confdefs.h.  */
5007_ACEOF
5008cat confdefs.h >>conftest.$ac_ext
5009cat >>conftest.$ac_ext <<_ACEOF
5010/* end confdefs.h.  */
5011$ac_includes_default
5012int
5013main ()
5014{
5015if ((size_t *) 0)
5016  return 0;
5017if (sizeof (size_t))
5018  return 0;
5019  ;
5020  return 0;
5021}
5022_ACEOF
5023rm -f conftest.$ac_objext
5024if { (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
5046else
5047  echo "$as_me: failed program was:" >&5
5048sed 's/^/| /' conftest.$ac_ext >&5
5049
5050ac_cv_type_size_t=no
5051fi
5052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5053fi
5054echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5055echo "${ECHO_T}$ac_cv_type_size_t" >&6
5056if test $ac_cv_type_size_t = yes; then
5057  :
5058else
5059
5060cat >>confdefs.h <<_ACEOF
5061#define size_t unsigned
5062_ACEOF
5063
5064fi
5065
5066echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5067echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5068if test "${ac_cv_type_uid_t+set}" = set; then
5069  echo $ECHO_N "(cached) $ECHO_C" >&6
5070else
5071  cat >conftest.$ac_ext <<_ACEOF
5072/* confdefs.h.  */
5073_ACEOF
5074cat confdefs.h >>conftest.$ac_ext
5075cat >>conftest.$ac_ext <<_ACEOF
5076/* end confdefs.h.  */
5077#include <sys/types.h>
5078
5079_ACEOF
5080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5081  $EGREP "uid_t" >/dev/null 2>&1; then
5082  ac_cv_type_uid_t=yes
5083else
5084  ac_cv_type_uid_t=no
5085fi
5086rm -f conftest*
5087
5088fi
5089echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5090echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5091if test $ac_cv_type_uid_t = no; then
5092
5093cat >>confdefs.h <<\_ACEOF
5094#define uid_t int
5095_ACEOF
5096
5097
5098cat >>confdefs.h <<\_ACEOF
5099#define gid_t int
5100_ACEOF
5101
5102fi
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155for 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
5156do
5157as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5158echo "$as_me:$LINENO: checking for $ac_func" >&5
5159echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5160if eval "test \"\${$as_ac_var+set}\" = set"; then
5161  echo $ECHO_N "(cached) $ECHO_C" >&6
5162else
5163  cat >conftest.$ac_ext <<_ACEOF
5164/* confdefs.h.  */
5165_ACEOF
5166cat confdefs.h >>conftest.$ac_ext
5167cat >>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
5172
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.  */
5177
5178#ifdef __STDC__
5179# include <limits.h>
5180#else
5181# include <assert.h>
5182#endif
5183
5184#undef $ac_func
5185
5186/* Override any gcc2 internal prototype to avoid an error.  */
5187#ifdef __cplusplus
5188extern "C"
5189{
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.  */
5193char $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)
5198choke me
5199#else
5200char (*f) () = $ac_func;
5201#endif
5202#ifdef __cplusplus
5203}
5204#endif
5205
5206int
5207main ()
5208{
5209return f != $ac_func;
5210  ;
5211  return 0;
5212}
5213_ACEOF
5214rm -f conftest.$ac_objext conftest$ac_exeext
5215if { (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"
5237else
5238  echo "$as_me: failed program was:" >&5
5239sed 's/^/| /' conftest.$ac_ext >&5
5240
5241eval "$as_ac_var=no"
5242fi
5243rm -f conftest.err conftest.$ac_objext \
5244      conftest$ac_exeext conftest.$ac_ext
5245fi
5246echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5247echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5248if 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
5252
5253fi
5254done
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275for 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
5276do
5277as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5278if eval "test \"\${$as_ac_Header+set}\" = set"; then
5279  echo "$as_me:$LINENO: checking for $ac_header" >&5
5280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5281if eval "test \"\${$as_ac_Header+set}\" = set"; then
5282  echo $ECHO_N "(cached) $ECHO_C" >&6
5283fi
5284echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5285echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5286else
5287  # Is the header compilable?
5288echo "$as_me:$LINENO: checking $ac_header usability" >&5
5289echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5290cat >conftest.$ac_ext <<_ACEOF
5291/* confdefs.h.  */
5292_ACEOF
5293cat confdefs.h >>conftest.$ac_ext
5294cat >>conftest.$ac_ext <<_ACEOF
5295/* end confdefs.h.  */
5296$ac_includes_default
5297#include <$ac_header>
5298_ACEOF
5299rm -f conftest.$ac_objext
5300if { (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
5322else
5323  echo "$as_me: failed program was:" >&5
5324sed 's/^/| /' conftest.$ac_ext >&5
5325
5326ac_header_compiler=no
5327fi
5328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5329echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5330echo "${ECHO_T}$ac_header_compiler" >&6
5331
5332# Is the header present?
5333echo "$as_me:$LINENO: checking $ac_header presence" >&5
5334echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5335cat >conftest.$ac_ext <<_ACEOF
5336/* confdefs.h.  */
5337_ACEOF
5338cat confdefs.h >>conftest.$ac_ext
5339cat >>conftest.$ac_ext <<_ACEOF
5340/* end confdefs.h.  */
5341#include <$ac_header>
5342_ACEOF
5343if { (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=
5356  fi
5357else
5358  ac_cpp_err=yes
5359fi
5360if test -z "$ac_cpp_err"; then
5361  ac_header_preproc=yes
5362else
5363  echo "$as_me: failed program was:" >&5
5364sed 's/^/| /' conftest.$ac_ext >&5
5365
5366  ac_header_preproc=no
5367fi
5368rm -f conftest.err conftest.$ac_ext
5369echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5370echo "${ECHO_T}$ac_header_preproc" >&6
5371
5372# So?  What about this header?
5373case $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
5376echo "$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
5378echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5379    ac_header_preproc=yes
5380    ;;
5381  no:yes:* )
5382    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5383echo "$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
5385echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5386    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5387echo "$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
5389echo "$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
5391echo "$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
5393echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5394    (
5395      cat <<\_ASBOX
5396## ------------------------------------------ ##
5397## Report this to the AC_PACKAGE_NAME lists.  ##
5398## ------------------------------------------ ##
5399_ASBOX
5400    ) |
5401      sed "s/^/$as_me: WARNING:     /" >&2
5402    ;;
5403esac
5404echo "$as_me:$LINENO: checking for $ac_header" >&5
5405echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5406if eval "test \"\${$as_ac_Header+set}\" = set"; then
5407  echo $ECHO_N "(cached) $ECHO_C" >&6
5408else
5409  eval "$as_ac_Header=\$ac_header_preproc"
5410fi
5411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5412echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5413
5414fi
5415if 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
5419
5420fi
5421
5422done
5423
5424
5425
5426
5427
5428
5429ac_header_dirent=no
5430for 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`
5432echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5433echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5434if eval "test \"\${$as_ac_Header+set}\" = set"; then
5435  echo $ECHO_N "(cached) $ECHO_C" >&6
5436else
5437  cat >conftest.$ac_ext <<_ACEOF
5438/* confdefs.h.  */
5439_ACEOF
5440cat confdefs.h >>conftest.$ac_ext
5441cat >>conftest.$ac_ext <<_ACEOF
5442/* end confdefs.h.  */
5443#include <sys/types.h>
5444#include <$ac_hdr>
5445
5446int
5447main ()
5448{
5449if ((DIR *) 0)
5450return 0;
5451  ;
5452  return 0;
5453}
5454_ACEOF
5455rm -f conftest.$ac_objext
5456if { (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"
5478else
5479  echo "$as_me: failed program was:" >&5
5480sed 's/^/| /' conftest.$ac_ext >&5
5481
5482eval "$as_ac_Header=no"
5483fi
5484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5485fi
5486echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5487echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5488if 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
5492
5493ac_header_dirent=$ac_hdr; break
5494fi
5495
5496done
5497# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5498if test $ac_header_dirent = dirent.h; then
5499  echo "$as_me:$LINENO: checking for library containing opendir" >&5
5500echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5501if test "${ac_cv_search_opendir+set}" = set; then
5502  echo $ECHO_N "(cached) $ECHO_C" >&6
5503else
5504  ac_func_search_save_LIBS=$LIBS
5505ac_cv_search_opendir=no
5506cat >conftest.$ac_ext <<_ACEOF
5507/* confdefs.h.  */
5508_ACEOF
5509cat confdefs.h >>conftest.$ac_ext
5510cat >>conftest.$ac_ext <<_ACEOF
5511/* end confdefs.h.  */
5512
5513/* Override any gcc2 internal prototype to avoid an error.  */
5514#ifdef __cplusplus
5515extern "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.  */
5519char opendir ();
5520int
5521main ()
5522{
5523opendir ();
5524  ;
5525  return 0;
5526}
5527_ACEOF
5528rm -f conftest.$ac_objext conftest$ac_exeext
5529if { (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"
5551else
5552  echo "$as_me: failed program was:" >&5
5553sed 's/^/| /' conftest.$ac_ext >&5
5554
5555fi
5556rm -f conftest.err conftest.$ac_objext \
5557      conftest$ac_exeext conftest.$ac_ext
5558if 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
5564cat confdefs.h >>conftest.$ac_ext
5565cat >>conftest.$ac_ext <<_ACEOF
5566/* end confdefs.h.  */
5567
5568/* Override any gcc2 internal prototype to avoid an error.  */
5569#ifdef __cplusplus
5570extern "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.  */
5574char opendir ();
5575int
5576main ()
5577{
5578opendir ();
5579  ;
5580  return 0;
5581}
5582_ACEOF
5583rm -f conftest.$ac_objext conftest$ac_exeext
5584if { (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"
5606break
5607else
5608  echo "$as_me: failed program was:" >&5
5609sed 's/^/| /' conftest.$ac_ext >&5
5610
5611fi
5612rm -f conftest.err conftest.$ac_objext \
5613      conftest$ac_exeext conftest.$ac_ext
5614  done
5615fi
5616LIBS=$ac_func_search_save_LIBS
5617fi
5618echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5619echo "${ECHO_T}$ac_cv_search_opendir" >&6
5620if test "$ac_cv_search_opendir" != no; then
5621  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5622
5623fi
5624
5625else
5626  echo "$as_me:$LINENO: checking for library containing opendir" >&5
5627echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5628if test "${ac_cv_search_opendir+set}" = set; then
5629  echo $ECHO_N "(cached) $ECHO_C" >&6
5630else
5631  ac_func_search_save_LIBS=$LIBS
5632ac_cv_search_opendir=no
5633cat >conftest.$ac_ext <<_ACEOF
5634/* confdefs.h.  */
5635_ACEOF
5636cat confdefs.h >>conftest.$ac_ext
5637cat >>conftest.$ac_ext <<_ACEOF
5638/* end confdefs.h.  */
5639
5640/* Override any gcc2 internal prototype to avoid an error.  */
5641#ifdef __cplusplus
5642extern "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.  */
5646char opendir ();
5647int
5648main ()
5649{
5650opendir ();
5651  ;
5652  return 0;
5653}
5654_ACEOF
5655rm -f conftest.$ac_objext conftest$ac_exeext
5656if { (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"
5678else
5679  echo "$as_me: failed program was:" >&5
5680sed 's/^/| /' conftest.$ac_ext >&5
5681
5682fi
5683rm -f conftest.err conftest.$ac_objext \
5684      conftest$ac_exeext conftest.$ac_ext
5685if 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
5691cat confdefs.h >>conftest.$ac_ext
5692cat >>conftest.$ac_ext <<_ACEOF
5693/* end confdefs.h.  */
5694
5695/* Override any gcc2 internal prototype to avoid an error.  */
5696#ifdef __cplusplus
5697extern "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.  */
5701char opendir ();
5702int
5703main ()
5704{
5705opendir ();
5706  ;
5707  return 0;
5708}
5709_ACEOF
5710rm -f conftest.$ac_objext conftest$ac_exeext
5711if { (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"
5733break
5734else
5735  echo "$as_me: failed program was:" >&5
5736sed 's/^/| /' conftest.$ac_ext >&5
5737
5738fi
5739rm -f conftest.err conftest.$ac_objext \
5740      conftest$ac_exeext conftest.$ac_ext
5741  done
5742fi
5743LIBS=$ac_func_search_save_LIBS
5744fi
5745echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5746echo "${ECHO_T}$ac_cv_search_opendir" >&6
5747if test "$ac_cv_search_opendir" != no; then
5748  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5749
5750fi
5751
5752fi
5753
5754
5755sim_termio=""
5756echo "$as_me:$LINENO: checking for struct termios" >&5
5757echo $ECHO_N "checking for struct termios... $ECHO_C" >&6
5758if test "${ac_cv_termios_struct+set}" = set; then
5759  echo $ECHO_N "(cached) $ECHO_C" >&6
5760else
5761  cat >conftest.$ac_ext <<_ACEOF
5762/* confdefs.h.  */
5763_ACEOF
5764cat confdefs.h >>conftest.$ac_ext
5765cat >>conftest.$ac_ext <<_ACEOF
5766/* end confdefs.h.  */
5767#include <sys/types.h>
5768#include <sys/termios.h>
5769int
5770main ()
5771{
5772static 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;
5778  ;
5779  return 0;
5780}
5781_ACEOF
5782rm -f conftest.$ac_objext
5783if { (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
5805else
5806  echo "$as_me: failed program was:" >&5
5807sed 's/^/| /' conftest.$ac_ext >&5
5808
5809ac_cv_termios_struct=no
5810fi
5811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5812fi
5813
5814echo "$as_me:$LINENO: result: $ac_cv_termios_struct" >&5
5815echo "${ECHO_T}$ac_cv_termios_struct" >&6
5816if test $ac_cv_termios_struct = yes; then
5817  sim_termio="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
5818fi
5819
5820if test "$ac_cv_termios_struct" = "yes"; then
5821  echo "$as_me:$LINENO: checking for c_line field in struct termios" >&5
5822echo $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
5825else
5826  cat >conftest.$ac_ext <<_ACEOF
5827/* confdefs.h.  */
5828_ACEOF
5829cat confdefs.h >>conftest.$ac_ext
5830cat >>conftest.$ac_ext <<_ACEOF
5831/* end confdefs.h.  */
5832#include <sys/types.h>
5833#include <sys/termios.h>
5834int
5835main ()
5836{
5837static struct termios x; x.c_line = 0;
5838  ;
5839  return 0;
5840}
5841_ACEOF
5842rm -f conftest.$ac_objext
5843if { (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
5865else
5866  echo "$as_me: failed program was:" >&5
5867sed 's/^/| /' conftest.$ac_ext >&5
5868
5869ac_cv_termios_cline=no
5870fi
5871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5872fi
5873
5874
5875  echo "$as_me:$LINENO: result: $ac_cv_termios_cline" >&5
5876echo "${ECHO_T}$ac_cv_termios_cline" >&6
5877  if test $ac_cv_termios_cline = yes; then
5878    sim_termio="$sim_termio -DHAVE_TERMIOS_CLINE"
5879  fi
5880else
5881  ac_cv_termios_cline=no
5882fi
5883
5884if test "$ac_cv_termios_struct" != "yes"; then
5885  echo "$as_me:$LINENO: checking for struct termio" >&5
5886echo $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
5889else
5890  cat >conftest.$ac_ext <<_ACEOF
5891/* confdefs.h.  */
5892_ACEOF
5893cat confdefs.h >>conftest.$ac_ext
5894cat >>conftest.$ac_ext <<_ACEOF
5895/* end confdefs.h.  */
5896#include <sys/types.h>
5897#include <sys/termio.h>
5898int
5899main ()
5900{
5901static 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;
5907  ;
5908  return 0;
5909}
5910_ACEOF
5911rm -f conftest.$ac_objext
5912if { (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
5934else
5935  echo "$as_me: failed program was:" >&5
5936sed 's/^/| /' conftest.$ac_ext >&5
5937
5938ac_cv_termio_struct=no
5939fi
5940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5941fi
5942
5943  echo "$as_me:$LINENO: result: $ac_cv_termio_struct" >&5
5944echo "${ECHO_T}$ac_cv_termio_struct" >&6
5945  if test $ac_cv_termio_struct = yes; then
5946    sim_termio="$sim_termio -DHAVE_TERMIO_STRUCTURE"
5947  fi
5948else
5949  ac_cv_termio_struct=no
5950fi
5951
5952if test "$ac_cv_termio_struct" = "yes"; then
5953  echo "$as_me:$LINENO: checking for c_line field in struct termio" >&5
5954echo $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
5957else
5958  cat >conftest.$ac_ext <<_ACEOF
5959/* confdefs.h.  */
5960_ACEOF
5961cat confdefs.h >>conftest.$ac_ext
5962cat >>conftest.$ac_ext <<_ACEOF
5963/* end confdefs.h.  */
5964#include <sys/types.h>
5965#include <sys/termio.h>
5966int
5967main ()
5968{
5969static struct termio x; x.c_line = 0;
5970  ;
5971  return 0;
5972}
5973_ACEOF
5974rm -f conftest.$ac_objext
5975if { (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
5997else
5998  echo "$as_me: failed program was:" >&5
5999sed 's/^/| /' conftest.$ac_ext >&5
6000
6001ac_cv_termio_cline=no
6002fi
6003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6004fi
6005
6006
6007  echo "$as_me:$LINENO: result: $ac_cv_termio_cline" >&5
6008echo "${ECHO_T}$ac_cv_termio_cline" >&6
6009  if test $ac_cv_termio_cline = yes; then
6010    sim_termio="$sim_termio -DHAVE_TERMIO_CLINE"
6011  fi
6012else
6013  ac_cv_termio_cline=no
6014fi
6015
6016echo "$as_me:$LINENO: checking for struct statfs" >&5
6017echo $ECHO_N "checking for struct statfs... $ECHO_C" >&6
6018if test "${ac_cv_struct_statfs+set}" = set; then
6019  echo $ECHO_N "(cached) $ECHO_C" >&6
6020else
6021  cat >conftest.$ac_ext <<_ACEOF
6022/* confdefs.h.  */
6023_ACEOF
6024cat confdefs.h >>conftest.$ac_ext
6025cat >>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
6040int
6041main ()
6042{
6043static struct statfs s;
6044  ;
6045  return 0;
6046}
6047_ACEOF
6048rm -f conftest.$ac_objext
6049if { (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
6071else
6072  echo "$as_me: failed program was:" >&5
6073sed 's/^/| /' conftest.$ac_ext >&5
6074
6075ac_cv_struct_statfs=no
6076fi
6077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6078fi
6079
6080echo "$as_me:$LINENO: result: $ac_cv_struct_statfs" >&5
6081echo "${ECHO_T}$ac_cv_struct_statfs" >&6
6082if test $ac_cv_struct_statfs = yes; then
6083
6084cat >>confdefs.h <<\_ACEOF
6085#define HAVE_STRUCT_STATFS 1
6086_ACEOF
6087
6088fi
6089
6090echo "$as_me:$LINENO: checking for long long" >&5
6091echo $ECHO_N "checking for long long... $ECHO_C" >&6
6092if test "${ac_cv_type_long_long+set}" = set; then
6093  echo $ECHO_N "(cached) $ECHO_C" >&6
6094else
6095  cat >conftest.$ac_ext <<_ACEOF
6096/* confdefs.h.  */
6097_ACEOF
6098cat confdefs.h >>conftest.$ac_ext
6099cat >>conftest.$ac_ext <<_ACEOF
6100/* end confdefs.h.  */
6101$ac_includes_default
6102int
6103main ()
6104{
6105if ((long long *) 0)
6106  return 0;
6107if (sizeof (long long))
6108  return 0;
6109  ;
6110  return 0;
6111}
6112_ACEOF
6113rm -f conftest.$ac_objext
6114if { (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
6136else
6137  echo "$as_me: failed program was:" >&5
6138sed 's/^/| /' conftest.$ac_ext >&5
6139
6140ac_cv_type_long_long=no
6141fi
6142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6143fi
6144echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6145echo "${ECHO_T}$ac_cv_type_long_long" >&6
6146if test $ac_cv_type_long_long = yes; then
6147
6148cat >>confdefs.h <<_ACEOF
6149#define HAVE_LONG_LONG 1
6150_ACEOF
6151
6152
6153fi
6154
6155
6156sim_devzero=""
6157echo "$as_me:$LINENO: checking for /dev/zero" >&5
6158echo $ECHO_N "checking for /dev/zero... $ECHO_C" >&6
6159if test "${ac_cv_devzero+set}" = set; then
6160  echo $ECHO_N "(cached) $ECHO_C" >&6
6161else
6162  if test "$cross_compiling" = yes; then
6163  ac_cv_devzero=no
6164else
6165  cat >conftest.$ac_ext <<_ACEOF
6166/* confdefs.h.  */
6167_ACEOF
6168cat confdefs.h >>conftest.$ac_ext
6169cat >>conftest.$ac_ext <<_ACEOF
6170/* end confdefs.h.  */
6171#include <fcntl.h>
6172main () {
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;
6186}
6187_ACEOF
6188rm -f conftest$ac_exeext
6189if { (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
6200else
6201  echo "$as_me: program exited with status $ac_status" >&5
6202echo "$as_me: failed program was:" >&5
6203sed 's/^/| /' conftest.$ac_ext >&5
6204
6205( exit $ac_status )
6206ac_cv_devzero=no
6207fi
6208rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6209fi
6210fi
6211
6212echo "$as_me:$LINENO: result: $ac_cv_devzero" >&5
6213echo "${ECHO_T}$ac_cv_devzero" >&6
6214if test $ac_cv_devzero = yes; then
6215  sim_devzero="-DHAVE_DEVZERO"
6216else
6217  sim_devzero=""
6218fi
6219
6220echo "$as_me:$LINENO: checking for common simulator directory" >&5
6221echo $ECHO_N "checking for common simulator directory... $ECHO_C" >&6
6222if test -f "${srcdir}/../common/callback.c"; then
6223  echo "$as_me:$LINENO: result: yes" >&5
6224echo "${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"
6227else
6228  echo "$as_me:$LINENO: result: no" >&5
6229echo "${ECHO_T}no" >&6
6230  sim_callback=""
6231  sim_targ_vals=""
6232fi
6233
6234echo "$as_me:$LINENO: checking for common simulator directory fpu implementation" >&5
6235echo $ECHO_N "checking for common simulator directory fpu implementation... $ECHO_C" >&6
6236if test -f "${srcdir}/../common/sim-fpu.c"; then
6237  echo "$as_me:$LINENO: result: yes" >&5
6238echo "${ECHO_T}yes" >&6
6239  sim_fpu_cflags="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
6240  sim_fpu="sim-fpu.o"
6241else
6242  echo "$as_me:$LINENO: result: no" >&5
6243echo "${ECHO_T}no" >&6
6244  sim_fpu_cflags=
6245  sim_fpu=
6246fi
6247
6248
6249
6250
6251
6252
6253
6254AR=${AR-ar}
6255
6256if 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.
6258set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6259echo "$as_me:$LINENO: checking for $ac_word" >&5
6260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6261if test "${ac_cv_prog_RANLIB+set}" = set; then
6262  echo $ECHO_N "(cached) $ECHO_C" >&6
6263else
6264  if test -n "$RANLIB"; then
6265  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6266else
6267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268for as_dir in $PATH
6269do
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
6277  fi
6278done
6279done
6280
6281fi
6282fi
6283RANLIB=$ac_cv_prog_RANLIB
6284if test -n "$RANLIB"; then
6285  echo "$as_me:$LINENO: result: $RANLIB" >&5
6286echo "${ECHO_T}$RANLIB" >&6
6287else
6288  echo "$as_me:$LINENO: result: no" >&5
6289echo "${ECHO_T}no" >&6
6290fi
6291
6292fi
6293if 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.
6296set dummy ranlib; ac_word=$2
6297echo "$as_me:$LINENO: checking for $ac_word" >&5
6298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6299if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6300  echo $ECHO_N "(cached) $ECHO_C" >&6
6301else
6302  if test -n "$ac_ct_RANLIB"; then
6303  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6304else
6305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306for as_dir in $PATH
6307do
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
6315  fi
6316done
6317done
6318
6319  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6320fi
6321fi
6322ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6323if test -n "$ac_ct_RANLIB"; then
6324  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6325echo "${ECHO_T}$ac_ct_RANLIB" >&6
6326else
6327  echo "$as_me:$LINENO: result: no" >&5
6328echo "${ECHO_T}no" >&6
6329fi
6330
6331  RANLIB=$ac_ct_RANLIB
6332else
6333  RANLIB="$ac_cv_prog_RANLIB"
6334fi
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381          ac_config_files="$ac_config_files Makefile"
6382          ac_config_commands="$ac_config_commands default"
6383cat >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.
6389#
6390# config.status only pays attention to the cache file if you give it
6391# the --recheck option to rerun configure.
6392#
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.
6396
6397_ACEOF
6398
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.
6404{
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"
6413      ;;
6414    *)
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"
6418      ;;
6419    esac;
6420} |
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
6428if 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"
6434  fi
6435fi
6436rm -f confcache
6437
6438test "x$prefix" = xNONE && prefix=$ac_default_prefix
6439# Let make expand exec_prefix.
6440test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6441
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).
6446if test "x$srcdir" = x.; then
6447  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
6448s/:*\$(srcdir):*/:/;
6449s/:*\${srcdir}:*/:/;
6450s/:*@srcdir@:*/:/;
6451s/^\([^=]*=[	 ]*\):*/\1/;
6452s/:*$//;
6453s/^[^=]*=[	 ]*$//;
6454}'
6455fi
6456
6457DEFS=-DHAVE_CONFIG_H
6458
6459ac_libobjs=
6460ac_ltlibobjs=
6461for 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'
6468done
6469LIBOBJS=$ac_libobjs
6470
6471LTLIBOBJS=$ac_ltlibobjs
6472
6473
6474
6475: ${CONFIG_STATUS=./config.status}
6476ac_clean_files_save=$ac_clean_files
6477ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6478{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6479echo "$as_me: creating $CONFIG_STATUS" >&6;}
6480cat >$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.
6486
6487debug=false
6488ac_cs_recheck=false
6489ac_cs_silent=false
6490SHELL=\${CONFIG_SHELL-$SHELL}
6491_ACEOF
6492
6493cat >>$CONFIG_STATUS <<\_ACEOF
6494## --------------------- ##
6495## M4sh Initialization.  ##
6496## --------------------- ##
6497
6498# Be Bourne compatible
6499if 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+"$@"}'='"$@"'
6505elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6506  set -o posix
6507fi
6508DUALCASE=1; export DUALCASE # for MKS sh
6509
6510# Support unset when possible.
6511if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6512  as_unset=unset
6513else
6514  as_unset=false
6515fi
6516
6517
6518# Work around bugs in pre-3.0 UWIN ksh.
6519$as_unset ENV MAIL MAILPATH
6520PS1='$ '
6521PS2='> '
6522PS4='+ '
6523
6524# NLS nuisances.
6525for 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
6529do
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
6534  fi
6535done
6536
6537# Required to use basename.
6538if expr a : '\(a\)' >/dev/null 2>&1; then
6539  as_expr=expr
6540else
6541  as_expr=false
6542fi
6543
6544if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6545  as_basename=basename
6546else
6547  as_basename=false
6548fi
6549
6550
6551# Name of the executable.
6552as_me=`$as_basename "$0" ||
6553$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6554	 X"$0" : 'X\(//\)$' \| \
6555	 X"$0" : 'X\(/\)$' \| \
6556	 .     : '\(.\)' 2>/dev/null ||
6557echo X/"$0" |
6558    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6559  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
6560  	  /^X\/\(\/\).*/{ s//\1/; q; }
6561  	  s/.*/./; q'`
6562
6563
6564# PATH needs CR, and LINENO needs CR and PATH.
6565# Avoid depending upon Character Ranges.
6566as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6567as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6568as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6569as_cr_digits='0123456789'
6570as_cr_alnum=$as_cr_Letters$as_cr_digits
6571
6572# The user is always right.
6573if 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=:
6581  fi
6582  rm -f conf$$.sh
6583fi
6584
6585
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
6596for as_dir in $PATH
6597do
6598  IFS=$as_save_IFS
6599  test -z "$as_dir" && as_dir=.
6600  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6601done
6602
6603       ;;
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
6609  fi
6610  if test ! -f "$as_myself"; then
6611    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6612echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6613   { (exit 1); exit 1; }; }
6614  fi
6615  case $CONFIG_SHELL in
6616  '')
6617    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6619do
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
6624	 /*)
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
6639done
6640;;
6641  esac
6642
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 '
6653      N
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
6663echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6664   { (exit 1); exit 1; }; }
6665
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
6672}
6673
6674
6675case `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= ;;
6680esac
6681
6682if expr a : '\(a\)' >/dev/null 2>&1; then
6683  as_expr=expr
6684else
6685  as_expr=false
6686fi
6687
6688rm -f conf$$ conf$$.exe conf$$.file
6689echo >conf$$.file
6690if 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'
6698  fi
6699elif ln conf$$.file conf$$ 2>/dev/null; then
6700  as_ln_s=ln
6701else
6702  as_ln_s='cp -p'
6703fi
6704rm -f conf$$ conf$$.exe conf$$.file
6705
6706if mkdir -p . 2>/dev/null; then
6707  as_mkdir_p=:
6708else
6709  test -d ./-p && rmdir ./-p
6710  as_mkdir_p=false
6711fi
6712
6713as_executable_p="test -f"
6714
6715# Sed expression to map a string onto a valid CPP name.
6716as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6717
6718# Sed expression to map a string onto a valid variable name.
6719as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6720
6721
6722# IFS
6723# We need space, tab and new line, in precisely that order.
6724as_nl='
6725'
6726IFS=" 	$as_nl"
6727
6728# CDPATH.
6729$as_unset CDPATH
6730
6731exec 6>&1
6732
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.
6736exec 5>>config.log
6737{
6738  echo
6739  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6740## Running $as_me. ##
6741_ASBOX
6742} >&5
6743cat >&5 <<_CSEOF
6744
6745This file was extended by $as_me, which was
6746generated by GNU Autoconf 2.59.  Invocation command line was
6747
6748  CONFIG_FILES    = $CONFIG_FILES
6749  CONFIG_HEADERS  = $CONFIG_HEADERS
6750  CONFIG_LINKS    = $CONFIG_LINKS
6751  CONFIG_COMMANDS = $CONFIG_COMMANDS
6752  $ $0 $@
6753
6754_CSEOF
6755echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6756echo >&5
6757_ACEOF
6758
6759# Files that config.status was made for.
6760if test -n "$ac_config_files"; then
6761  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6762fi
6763
6764if test -n "$ac_config_headers"; then
6765  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6766fi
6767
6768if test -n "$ac_config_links"; then
6769  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6770fi
6771
6772if test -n "$ac_config_commands"; then
6773  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6774fi
6775
6776cat >>$CONFIG_STATUS <<\_ACEOF
6777
6778ac_cs_usage="\
6779\`$as_me' instantiates files from templates according to the
6780current configuration.
6781
6782Usage: $0 [OPTIONS] [FILE]...
6783
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
6793
6794Configuration files:
6795$config_files
6796
6797Configuration headers:
6798$config_headers
6799
6800Configuration commands:
6801$config_commands
6802
6803Report bugs to <bug-autoconf@gnu.org>."
6804_ACEOF
6805
6806cat >>$CONFIG_STATUS <<_ACEOF
6807ac_cs_version="\\
6808config.status
6809configured by $0, generated by GNU Autoconf 2.59,
6810  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6811
6812Copyright (C) 2003 Free Software Foundation, Inc.
6813This config.status script is free software; the Free Software Foundation
6814gives unlimited permission to copy, distribute and modify it."
6815srcdir=$srcdir
6816INSTALL="$INSTALL"
6817_ACEOF
6818
6819cat >>$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.
6822ac_need_defaults=:
6823while test $# != 0
6824do
6825  case $1 in
6826  --*=*)
6827    ac_option=`expr "x$1" : 'x\([^=]*\)='`
6828    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6829    ac_shift=:
6830    ;;
6831  -*)
6832    ac_option=$1
6833    ac_optarg=$2
6834    ac_shift=shift
6835    ;;
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
6841
6842  case $ac_option in
6843  # Handling of the options.
6844_ACEOF
6845cat >>$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
6853Try \`$0 --help' for more information." >&5
6854echo "$as_me: error: ambiguous option: $1
6855Try \`$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=: ;;
6872
6873  # This is an error.
6874  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6875Try \`$0 --help' for more information." >&5
6876echo "$as_me: error: unrecognized option: $1
6877Try \`$0 --help' for more information." >&2;}
6878   { (exit 1); exit 1; }; } ;;
6879
6880  *) ac_config_targets="$ac_config_targets $1" ;;
6881
6882  esac
6883  shift
6884done
6885
6886ac_configure_extra_args=
6887
6888if $ac_cs_silent; then
6889  exec 6>/dev/null
6890  ac_configure_extra_args="$ac_configure_extra_args --silent"
6891fi
6892
6893_ACEOF
6894cat >>$CONFIG_STATUS <<_ACEOF
6895if \$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
6898fi
6899
6900_ACEOF
6901
6902
6903
6904
6905
6906cat >>$CONFIG_STATUS <<\_ACEOF
6907for ac_config_target in $ac_config_targets
6908do
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
6915echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6916   { (exit 1); exit 1; }; };;
6917  esac
6918done
6919
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.
6924if $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
6928fi
6929
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 ||
6935{
6936  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6937  trap '{ (exit 1); exit 1; }' 1 2 13 15
6938}
6939
6940# Create a (secure) tmp directory for tmp files.
6941
6942{
6943  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6944  test -n "$tmp" && test -d "$tmp"
6945}  ||
6946{
6947  tmp=./confstat$$-$RANDOM
6948  (umask 077 && mkdir $tmp)
6949} ||
6950{
6951   echo "$me: cannot create a temporary directory in ." >&2
6952   { (exit 1); exit 1; }
6953}
6954
6955_ACEOF
6956
6957cat >>$CONFIG_STATUS <<_ACEOF
6958
6959#
6960# CONFIG_FILES section.
6961#
6962
6963# No need to generate the scripts if there are no CONFIG_FILES.
6964# This happens for instance when ./config.status config.h
6965if 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
6969s,@sim_environment@,$sim_environment,;t t
6970s,@sim_alignment@,$sim_alignment,;t t
6971s,@sim_assert@,$sim_assert,;t t
6972s,@sim_bitsize@,$sim_bitsize,;t t
6973s,@sim_endian@,$sim_endian,;t t
6974s,@sim_hostendian@,$sim_hostendian,;t t
6975s,@sim_float@,$sim_float,;t t
6976s,@sim_scache@,$sim_scache,;t t
6977s,@sim_default_model@,$sim_default_model,;t t
6978s,@sim_hw_cflags@,$sim_hw_cflags,;t t
6979s,@sim_hw_objs@,$sim_hw_objs,;t t
6980s,@sim_hw@,$sim_hw,;t t
6981s,@sim_inline@,$sim_inline,;t t
6982s,@sim_packages@,$sim_packages,;t t
6983s,@sim_regparm@,$sim_regparm,;t t
6984s,@sim_reserved_bits@,$sim_reserved_bits,;t t
6985s,@sim_smp@,$sim_smp,;t t
6986s,@sim_stdcall@,$sim_stdcall,;t t
6987s,@sim_xor_endian@,$sim_xor_endian,;t t
6988s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
6989s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
6990s,@SHELL@,$SHELL,;t t
6991s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6992s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6993s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6994s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6995s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6996s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6997s,@exec_prefix@,$exec_prefix,;t t
6998s,@prefix@,$prefix,;t t
6999s,@program_transform_name@,$program_transform_name,;t t
7000s,@bindir@,$bindir,;t t
7001s,@sbindir@,$sbindir,;t t
7002s,@libexecdir@,$libexecdir,;t t
7003s,@datadir@,$datadir,;t t
7004s,@sysconfdir@,$sysconfdir,;t t
7005s,@sharedstatedir@,$sharedstatedir,;t t
7006s,@localstatedir@,$localstatedir,;t t
7007s,@libdir@,$libdir,;t t
7008s,@includedir@,$includedir,;t t
7009s,@oldincludedir@,$oldincludedir,;t t
7010s,@infodir@,$infodir,;t t
7011s,@mandir@,$mandir,;t t
7012s,@build_alias@,$build_alias,;t t
7013s,@host_alias@,$host_alias,;t t
7014s,@target_alias@,$target_alias,;t t
7015s,@DEFS@,$DEFS,;t t
7016s,@ECHO_C@,$ECHO_C,;t t
7017s,@ECHO_N@,$ECHO_N,;t t
7018s,@ECHO_T@,$ECHO_T,;t t
7019s,@LIBS@,$LIBS,;t t
7020s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7021s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7022s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7023s,@CC@,$CC,;t t
7024s,@CFLAGS@,$CFLAGS,;t t
7025s,@LDFLAGS@,$LDFLAGS,;t t
7026s,@CPPFLAGS@,$CPPFLAGS,;t t
7027s,@ac_ct_CC@,$ac_ct_CC,;t t
7028s,@EXEEXT@,$EXEEXT,;t t
7029s,@OBJEXT@,$OBJEXT,;t t
7030s,@USE_NLS@,$USE_NLS,;t t
7031s,@LIBINTL@,$LIBINTL,;t t
7032s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
7033s,@INCINTL@,$INCINTL,;t t
7034s,@XGETTEXT@,$XGETTEXT,;t t
7035s,@GMSGFMT@,$GMSGFMT,;t t
7036s,@POSUB@,$POSUB,;t t
7037s,@CATALOGS@,$CATALOGS,;t t
7038s,@DATADIRNAME@,$DATADIRNAME,;t t
7039s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7040s,@GENCAT@,$GENCAT,;t t
7041s,@CATOBJEXT@,$CATOBJEXT,;t t
7042s,@build@,$build,;t t
7043s,@build_cpu@,$build_cpu,;t t
7044s,@build_vendor@,$build_vendor,;t t
7045s,@build_os@,$build_os,;t t
7046s,@host@,$host,;t t
7047s,@host_cpu@,$host_cpu,;t t
7048s,@host_vendor@,$host_vendor,;t t
7049s,@host_os@,$host_os,;t t
7050s,@target@,$target,;t t
7051s,@target_cpu@,$target_cpu,;t t
7052s,@target_vendor@,$target_vendor,;t t
7053s,@target_os@,$target_os,;t t
7054s,@CPP@,$CPP,;t t
7055s,@EGREP@,$EGREP,;t t
7056s,@LIBOBJS@,$LIBOBJS,;t t
7057s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
7058s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
7059s,@HDEFINES@,$HDEFINES,;t t
7060s,@AR@,$AR,;t t
7061s,@RANLIB@,$RANLIB,;t t
7062s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7063s,@sim_cflags@,$sim_cflags,;t t
7064s,@sim_warnings@,$sim_warnings,;t t
7065s,@sim_line_nr@,$sim_line_nr,;t t
7066s,@sim_config@,$sim_config,;t t
7067s,@sim_opcode@,$sim_opcode,;t t
7068s,@sim_switch@,$sim_switch,;t t
7069s,@sim_dup@,$sim_dup,;t t
7070s,@sim_decode_mechanism@,$sim_decode_mechanism,;t t
7071s,@sim_jump@,$sim_jump,;t t
7072s,@sim_filter@,$sim_filter,;t t
7073s,@sim_icache@,$sim_icache,;t t
7074s,@sim_hw_src@,$sim_hw_src,;t t
7075s,@sim_hw_obj@,$sim_hw_obj,;t t
7076s,@sim_pk_src@,$sim_pk_src,;t t
7077s,@sim_pk_obj@,$sim_pk_obj,;t t
7078s,@sim_bswap@,$sim_bswap,;t t
7079s,@sim_igen_smp@,$sim_igen_smp,;t t
7080s,@sim_hostbitsize@,$sim_hostbitsize,;t t
7081s,@sim_env@,$sim_env,;t t
7082s,@sim_timebase@,$sim_timebase,;t t
7083s,@sim_trace@,$sim_trace,;t t
7084s,@sim_reserved@,$sim_reserved,;t t
7085s,@sim_monitor@,$sim_monitor,;t t
7086s,@sim_model@,$sim_model,;t t
7087s,@sim_model_issue@,$sim_model_issue,;t t
7088s,@sim_stdio@,$sim_stdio,;t t
7089s,@sim_termio@,$sim_termio,;t t
7090s,@sim_devzero@,$sim_devzero,;t t
7091s,@sim_callback@,$sim_callback,;t t
7092s,@sim_targ_vals@,$sim_targ_vals,;t t
7093s,@sim_fpu_cflags@,$sim_fpu_cflags,;t t
7094s,@sim_fpu@,$sim_fpu,;t t
7095s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7096CEOF
7097
7098_ACEOF
7099
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
7114    fi
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"
7128      fi
7129      ac_sed_frag=`expr $ac_sed_frag + 1`
7130      ac_beg=$ac_end
7131      ac_end=`expr $ac_end + $ac_max_sed_lines`
7132    fi
7133  done
7134  if test -z "$ac_sed_cmds"; then
7135    ac_sed_cmds=cat
7136  fi
7137fi # test -n "$CONFIG_FILES"
7138
7139_ACEOF
7140cat >>$CONFIG_STATUS <<\_ACEOF
7141for 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
7152
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 ||
7160echo 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 ||
7179echo 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
7188echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7189   { (exit 1); exit 1; }; }; }
7190
7191  ac_builddir=.
7192
7193if 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'`
7197else
7198  ac_dir_suffix= ac_top_builddir=
7199fi
7200
7201case $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 ;;
7215esac
7216
7217# Do not use `cd foo && pwd` to compute absolute paths, because
7218# the directories may not exist.
7219case `pwd` in
7220.) ac_abs_builddir="$ac_dir";;
7221*)
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;;
7227esac
7228case $ac_abs_builddir in
7229.) ac_abs_top_builddir=${ac_top_builddir}.;;
7230*)
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;;
7236esac
7237case $ac_abs_builddir in
7238.) ac_abs_srcdir=$ac_srcdir;;
7239*)
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;;
7245esac
7246case $ac_abs_builddir in
7247.) ac_abs_top_srcdir=$ac_top_srcdir;;
7248*)
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;;
7254esac
7255
7256
7257  case $INSTALL in
7258  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7259  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7260  esac
7261
7262  if test x"$ac_file" != x-; then
7263    { echo "$as_me:$LINENO: creating $ac_file" >&5
7264echo "$as_me: creating $ac_file" >&6;}
7265    rm -f "$ac_file"
7266  fi
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.  "
7274  fi
7275  configure_input=$configure_input"Generated from `echo $ac_file_in |
7276				     sed 's,.*/,,'` by configure."
7277
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
7287echo "$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
7300echo "$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
7306cat >>$CONFIG_STATUS <<_ACEOF
7307  sed "$ac_vpsub
7308$extrasub
7309_ACEOF
7310cat >>$CONFIG_STATUS <<\_ACEOF
7311:t
7312/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7313s,@configure_input@,$configure_input,;t t
7314s,@srcdir@,$ac_srcdir,;t t
7315s,@abs_srcdir@,$ac_abs_srcdir,;t t
7316s,@top_srcdir@,$ac_top_srcdir,;t t
7317s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7318s,@builddir@,$ac_builddir,;t t
7319s,@abs_builddir@,$ac_abs_builddir,;t t
7320s,@top_builddir@,$ac_top_builddir,;t t
7321s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7322s,@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
7330  fi
7331
7332done
7333_ACEOF
7334cat >>$CONFIG_STATUS <<\_ACEOF
7335
7336#
7337# CONFIG_HEADER section.
7338#
7339
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.
7342#
7343# ac_d sets the value in "#define NAME VALUE" lines.
7344ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
7345ac_dB='[	 ].*$,\1#\2'
7346ac_dC=' '
7347ac_dD=',;t'
7348# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7349ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
7350ac_uB='$,\1#\2define\3'
7351ac_uC=' '
7352ac_uD=',;t'
7353
7354for 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
7365
7366  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7367echo "$as_me: creating $ac_file" >&6;}
7368
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
7378echo "$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
7392echo "$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
7399
7400_ACEOF
7401
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.
7409rm -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.
7412#
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'.
7416cat >confdef2sed.sed <<\_ACEOF
7417s/[\\&,]/\\&/g
7418s,[\\$`],\\&,g
7419t clear
7420: clear
7421s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7422t end
7423s,^[	 ]*#[	 ]*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.
7429uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7430sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7431rm -f confdef2sed.sed
7432
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.
7436cat >>conftest.undefs <<\_ACEOF
7437s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7438_ACEOF
7439
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).
7442echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7443echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7444echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7445echo '  :' >>$CONFIG_STATUS
7446rm -f conftest.tail
7447while grep . conftest.defines >/dev/null
7448do
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
7465done
7466rm -f conftest.defines
7467echo '  fi # grep' >>$CONFIG_STATUS
7468echo >>$CONFIG_STATUS
7469
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).
7472echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7473rm -f conftest.tail
7474while grep . conftest.undefs >/dev/null
7475do
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
7492done
7493rm -f conftest.undefs
7494
7495cat >>$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
7503  fi
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
7509echo "$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 ||
7517echo 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 ||
7536echo 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
7545echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7546   { (exit 1); exit 1; }; }; }
7547
7548      rm -f $ac_file
7549      mv $tmp/config.h $ac_file
7550    fi
7551  else
7552    cat $tmp/config.h
7553    rm -f $tmp/config.h
7554  fi
7555done
7556_ACEOF
7557cat >>$CONFIG_STATUS <<\_ACEOF
7558
7559#
7560# CONFIG_COMMANDS section.
7561#
7562for 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 ||
7571echo 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 ||
7590echo 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
7599echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7600   { (exit 1); exit 1; }; }; }
7601
7602  ac_builddir=.
7603
7604if 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'`
7608else
7609  ac_dir_suffix= ac_top_builddir=
7610fi
7611
7612case $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 ;;
7626esac
7627
7628# Do not use `cd foo && pwd` to compute absolute paths, because
7629# the directories may not exist.
7630case `pwd` in
7631.) ac_abs_builddir="$ac_dir";;
7632*)
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;;
7638esac
7639case $ac_abs_builddir in
7640.) ac_abs_top_builddir=${ac_top_builddir}.;;
7641*)
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;;
7647esac
7648case $ac_abs_builddir in
7649.) ac_abs_srcdir=$ac_srcdir;;
7650*)
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;;
7656esac
7657case $ac_abs_builddir in
7658.) ac_abs_top_srcdir=$ac_top_srcdir;;
7659*)
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;;
7665esac
7666
7667
7668  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7669echo "$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
7673done
7674_ACEOF
7675
7676cat >>$CONFIG_STATUS <<\_ACEOF
7677
7678{ (exit 0); exit 0; }
7679_ACEOF
7680chmod +x $CONFIG_STATUS
7681ac_clean_files=$ac_clean_files_save
7682
7683
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.
7692if 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; }
7703fi
7704
7705