Update the copyright notice of some of the files I missed
[external/binutils.git] / sim / ppc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="Makefile.in"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CPP EGREP LIBOBJS CC_FOR_BUILD CFLAGS_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB sim_cflags sim_warnings sim_line_nr sim_config sim_opcode sim_switch sim_dup sim_decode_mechanism sim_jump sim_filter sim_icache sim_hw_src sim_hw_obj sim_pk_src sim_pk_obj sim_bswap sim_igen_smp sim_hostbitsize sim_env sim_timebase sim_trace sim_reserved sim_monitor sim_model sim_model_issue sim_stdio sim_termio sim_devzero sim_callback sim_targ_vals sim_fpu_cflags sim_fpu LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778   # Omit some internal or obsolete options to make the list less imposing.
779   # This message is too long to be a string in the A/UX 3.1 sh.
780   cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791   -h, --help              display this help and exit
792       --help=short        display options specific to this package
793       --help=recursive    display the short help of all the included packages
794   -V, --version           display version information and exit
795   -q, --quiet, --silent   do not print \`checking...' messages
796       --cache-file=FILE   cache test results in FILE [disabled]
797   -C, --config-cache      alias for \`--cache-file=config.cache'
798   -n, --no-create         do not create output files
799       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803   cat <<_ACEOF
804 Installation directories:
805   --prefix=PREFIX         install architecture-independent files in PREFIX
806                           [$ac_default_prefix]
807   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                           [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818   --bindir=DIR           user executables [EPREFIX/bin]
819   --sbindir=DIR          system admin executables [EPREFIX/sbin]
820   --libexecdir=DIR       program executables [EPREFIX/libexec]
821   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825   --libdir=DIR           object code libraries [EPREFIX/lib]
826   --includedir=DIR       C header files [PREFIX/include]
827   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828   --infodir=DIR          info documentation [PREFIX/info]
829   --mandir=DIR           man documentation [PREFIX/man]
830 _ACEOF
831
832   cat <<\_ACEOF
833
834 Program names:
835   --program-prefix=PREFIX            prepend PREFIX to installed program names
836   --program-suffix=SUFFIX            append SUFFIX to installed program names
837   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
838
839 System types:
840   --build=BUILD     configure for building on BUILD [guessed]
841   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
842   --target=TARGET   configure for building compilers for TARGET [HOST]
843 _ACEOF
844 fi
845
846 if test -n "$ac_init_help"; then
847
848   cat <<\_ACEOF
849
850 Optional Features:
851   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
852   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
853   --enable-sim-alignment=align          Specify strict or nonstrict alignment.
854   --enable-sim-assert                   Specify whether to perform random assertions.
855   --enable-sim-bitsize=n                Specify target bitsize (32 or 64).
856   --enable-sim-bswap                    Use the BSWAP instruction on Intel 486s and Pentiums.
857   --enable-sim-cflags=opts              Extra CFLAGS for use in building simulator
858   --enable-sim-config=file              Override default config file
859   --enable-sim-decode-mechanism=which           Specify the instruction decode mechanism.
860   --enable-sim-default-model=which      Specify default PowerPC to model.
861   --enable-sim-duplicate                Expand (duplicate) semantic functions.
862   --enable-sim-endian=endian            Specify target byte endian orientation.
863   --enable-sim-env=env                  Specify target environment (operating, virtual, user).
864   --enable-sim-filter=rule              Specify filter rules.
865   --enable-sim-float                    Specify whether the target has hard, soft, altivec or e500 floating point.
866   --enable-sim-hardware=list            Specify the hardware to be included in the build.
867   --enable-sim-hostbitsize=32|64        Specify host bitsize (32 or 64).
868   --enable-sim-hostendian=end           Specify host byte endian orientation.
869   --enable-sim-icache=size              Specify instruction-decode cache size and type.
870   --enable-sim-inline=inlines           Specify which functions should be inlined.
871   --enable-sim-jump             Jump between semantic code (instead of call/return).
872   --enable-sim-line-nr=opts             Generate extra CPP code that references source rather than generated code
873   --enable-sim-model=which              Specify PowerPC to model.
874   --enable-sim-model-issue              Specify whether to simulate model specific actions
875   --enable-sim-monitor=mon              Specify whether to enable monitoring events.
876   --enable-sim-opcode=which             Override default opcode lookup.
877   --enable-sim-packages=list            Specify the packages to be included in the build.
878   --enable-sim-regparm=nr-parm          Pass parameters in registers instead of on the stack - x86/GCC specific.
879   --enable-sim-reserved-bits            Specify whether to check reserved bits in instruction.
880   --enable-sim-smp=n                    Specify number of processors to configure for.
881   --enable-sim-stdcall=type             Use an alternative function call/return mechanism - x86/GCC specific.
882   --enable-sim-stdio                    Specify whether to use stdio for console input/output.
883   --enable-sim-switch                   Use a switch instead of a table for instruction call.
884   --enable-sim-timebase                 Specify whether the PPC timebase is supported.
885   --enable-sim-trace                    Specify whether tracing is supported.
886   --enable-sim-warnings=opts            Extra CFLAGS for turning on compiler warnings except for idecode.o, semantics.o and psim.o
887   --enable-sim-xor-endian=n             Specify number bytes involved in PowerPC XOR bi-endian mode (default 8).
888
889 Optional Packages:
890   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
891   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
892   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
893   --with-bugurl=URL       Direct users to URL to report a bug
894
895 Some influential environment variables:
896   CC          C compiler command
897   CFLAGS      C compiler flags
898   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
899               nonstandard directory <lib dir>
900   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
901               headers in a nonstandard directory <include dir>
902   CPP         C preprocessor
903
904 Use these variables to override the choices made by `configure' or to help
905 it to find libraries and programs with nonstandard names/locations.
906
907 _ACEOF
908 fi
909
910 if test "$ac_init_help" = "recursive"; then
911   # If there are subdirs, report their specific --help.
912   ac_popdir=`pwd`
913   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
914     test -d $ac_dir || continue
915     ac_builddir=.
916
917 if test "$ac_dir" != .; then
918   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
919   # A "../" for each directory in $ac_dir_suffix.
920   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
921 else
922   ac_dir_suffix= ac_top_builddir=
923 fi
924
925 case $srcdir in
926   .)  # No --srcdir option.  We are building in place.
927     ac_srcdir=.
928     if test -z "$ac_top_builddir"; then
929        ac_top_srcdir=.
930     else
931        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
932     fi ;;
933   [\\/]* | ?:[\\/]* )  # Absolute path.
934     ac_srcdir=$srcdir$ac_dir_suffix;
935     ac_top_srcdir=$srcdir ;;
936   *) # Relative path.
937     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
938     ac_top_srcdir=$ac_top_builddir$srcdir ;;
939 esac
940
941 # Do not use `cd foo && pwd` to compute absolute paths, because
942 # the directories may not exist.
943 case `pwd` in
944 .) ac_abs_builddir="$ac_dir";;
945 *)
946   case "$ac_dir" in
947   .) ac_abs_builddir=`pwd`;;
948   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
949   *) ac_abs_builddir=`pwd`/"$ac_dir";;
950   esac;;
951 esac
952 case $ac_abs_builddir in
953 .) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *)
955   case ${ac_top_builddir}. in
956   .) ac_abs_top_builddir=$ac_abs_builddir;;
957   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
958   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
959   esac;;
960 esac
961 case $ac_abs_builddir in
962 .) ac_abs_srcdir=$ac_srcdir;;
963 *)
964   case $ac_srcdir in
965   .) ac_abs_srcdir=$ac_abs_builddir;;
966   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
967   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
968   esac;;
969 esac
970 case $ac_abs_builddir in
971 .) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *)
973   case $ac_top_srcdir in
974   .) ac_abs_top_srcdir=$ac_abs_builddir;;
975   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
976   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
977   esac;;
978 esac
979
980     cd $ac_dir
981     # Check for guested configure; otherwise get Cygnus style configure.
982     if test -f $ac_srcdir/configure.gnu; then
983       echo
984       $SHELL $ac_srcdir/configure.gnu  --help=recursive
985     elif test -f $ac_srcdir/configure; then
986       echo
987       $SHELL $ac_srcdir/configure  --help=recursive
988     elif test -f $ac_srcdir/configure.ac ||
989            test -f $ac_srcdir/configure.in; then
990       echo
991       $ac_configure --help
992     else
993       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
994     fi
995     cd $ac_popdir
996   done
997 fi
998
999 test -n "$ac_init_help" && exit 0
1000 if $ac_init_version; then
1001   cat <<\_ACEOF
1002
1003 Copyright (C) 2003 Free Software Foundation, Inc.
1004 This configure script is free software; the Free Software Foundation
1005 gives unlimited permission to copy, distribute and modify it.
1006 _ACEOF
1007   exit 0
1008 fi
1009 exec 5>config.log
1010 cat >&5 <<_ACEOF
1011 This file contains any messages produced by compilers while
1012 running configure, to aid debugging if configure makes a mistake.
1013
1014 It was created by $as_me, which was
1015 generated by GNU Autoconf 2.59.  Invocation command line was
1016
1017   $ $0 $@
1018
1019 _ACEOF
1020 {
1021 cat <<_ASUNAME
1022 ## --------- ##
1023 ## Platform. ##
1024 ## --------- ##
1025
1026 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1027 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1028 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1029 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1030 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1031
1032 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1033 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1034
1035 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1036 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1037 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1038 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1039 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1040 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1041 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1042
1043 _ASUNAME
1044
1045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1046 for as_dir in $PATH
1047 do
1048   IFS=$as_save_IFS
1049   test -z "$as_dir" && as_dir=.
1050   echo "PATH: $as_dir"
1051 done
1052
1053 } >&5
1054
1055 cat >&5 <<_ACEOF
1056
1057
1058 ## ----------- ##
1059 ## Core tests. ##
1060 ## ----------- ##
1061
1062 _ACEOF
1063
1064
1065 # Keep a trace of the command line.
1066 # Strip out --no-create and --no-recursion so they do not pile up.
1067 # Strip out --silent because we don't want to record it for future runs.
1068 # Also quote any args containing shell meta-characters.
1069 # Make two passes to allow for proper duplicate-argument suppression.
1070 ac_configure_args=
1071 ac_configure_args0=
1072 ac_configure_args1=
1073 ac_sep=
1074 ac_must_keep_next=false
1075 for ac_pass in 1 2
1076 do
1077   for ac_arg
1078   do
1079     case $ac_arg in
1080     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1081     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082     | -silent | --silent | --silen | --sile | --sil)
1083       continue ;;
1084     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1085       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1086     esac
1087     case $ac_pass in
1088     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1089     2)
1090       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1091       if test $ac_must_keep_next = true; then
1092         ac_must_keep_next=false # Got value, back to normal.
1093       else
1094         case $ac_arg in
1095           *=* | --config-cache | -C | -disable-* | --disable-* \
1096           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1097           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1098           | -with-* | --with-* | -without-* | --without-* | --x)
1099             case "$ac_configure_args0 " in
1100               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1101             esac
1102             ;;
1103           -* ) ac_must_keep_next=true ;;
1104         esac
1105       fi
1106       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1107       # Get rid of the leading space.
1108       ac_sep=" "
1109       ;;
1110     esac
1111   done
1112 done
1113 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1114 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1115
1116 # When interrupted or exit'd, cleanup temporary files, and complete
1117 # config.log.  We remove comments because anyway the quotes in there
1118 # would cause problems or look ugly.
1119 # WARNING: Be sure not to use single quotes in there, as some shells,
1120 # such as our DU 5.0 friend, will then `close' the trap.
1121 trap 'exit_status=$?
1122   # Save into config.log some information that might help in debugging.
1123   {
1124     echo
1125
1126     cat <<\_ASBOX
1127 ## ---------------- ##
1128 ## Cache variables. ##
1129 ## ---------------- ##
1130 _ASBOX
1131     echo
1132     # The following way of writing the cache mishandles newlines in values,
1133 {
1134   (set) 2>&1 |
1135     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1136     *ac_space=\ *)
1137       sed -n \
1138         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1139           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1140       ;;
1141     *)
1142       sed -n \
1143         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1144       ;;
1145     esac;
1146 }
1147     echo
1148
1149     cat <<\_ASBOX
1150 ## ----------------- ##
1151 ## Output variables. ##
1152 ## ----------------- ##
1153 _ASBOX
1154     echo
1155     for ac_var in $ac_subst_vars
1156     do
1157       eval ac_val=$`echo $ac_var`
1158       echo "$ac_var='"'"'$ac_val'"'"'"
1159     done | sort
1160     echo
1161
1162     if test -n "$ac_subst_files"; then
1163       cat <<\_ASBOX
1164 ## ------------- ##
1165 ## Output files. ##
1166 ## ------------- ##
1167 _ASBOX
1168       echo
1169       for ac_var in $ac_subst_files
1170       do
1171         eval ac_val=$`echo $ac_var`
1172         echo "$ac_var='"'"'$ac_val'"'"'"
1173       done | sort
1174       echo
1175     fi
1176
1177     if test -s confdefs.h; then
1178       cat <<\_ASBOX
1179 ## ----------- ##
1180 ## confdefs.h. ##
1181 ## ----------- ##
1182 _ASBOX
1183       echo
1184       sed "/^$/d" confdefs.h | sort
1185       echo
1186     fi
1187     test "$ac_signal" != 0 &&
1188       echo "$as_me: caught signal $ac_signal"
1189     echo "$as_me: exit $exit_status"
1190   } >&5
1191   rm -f core *.core &&
1192   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1193     exit $exit_status
1194      ' 0
1195 for ac_signal in 1 2 13 15; do
1196   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1197 done
1198 ac_signal=0
1199
1200 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1201 rm -rf conftest* confdefs.h
1202 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1203 echo >confdefs.h
1204
1205 # Predefined preprocessor variables.
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_NAME "$PACKAGE_NAME"
1209 _ACEOF
1210
1211
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1214 _ACEOF
1215
1216
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1219 _ACEOF
1220
1221
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_STRING "$PACKAGE_STRING"
1224 _ACEOF
1225
1226
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1229 _ACEOF
1230
1231
1232 # Let the site file select an alternate cache file if it wants to.
1233 # Prefer explicitly selected file to automatically selected ones.
1234 if test -z "$CONFIG_SITE"; then
1235   if test "x$prefix" != xNONE; then
1236     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1237   else
1238     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1239   fi
1240 fi
1241 for ac_site_file in $CONFIG_SITE; do
1242   if test -r "$ac_site_file"; then
1243     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1244 echo "$as_me: loading site script $ac_site_file" >&6;}
1245     sed 's/^/| /' "$ac_site_file" >&5
1246     . "$ac_site_file"
1247   fi
1248 done
1249
1250 if test -r "$cache_file"; then
1251   # Some versions of bash will fail to source /dev/null (special
1252   # files actually), so we avoid doing that.
1253   if test -f "$cache_file"; then
1254     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1255 echo "$as_me: loading cache $cache_file" >&6;}
1256     case $cache_file in
1257       [\\/]* | ?:[\\/]* ) . $cache_file;;
1258       *)                      . ./$cache_file;;
1259     esac
1260   fi
1261 else
1262   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1263 echo "$as_me: creating cache $cache_file" >&6;}
1264   >$cache_file
1265 fi
1266
1267 # Check that the precious variables saved in the cache have kept the same
1268 # value.
1269 ac_cache_corrupted=false
1270 for ac_var in `(set) 2>&1 |
1271                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1272   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1273   eval ac_new_set=\$ac_env_${ac_var}_set
1274   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1275   eval ac_new_val="\$ac_env_${ac_var}_value"
1276   case $ac_old_set,$ac_new_set in
1277     set,)
1278       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1280       ac_cache_corrupted=: ;;
1281     ,set)
1282       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1283 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1284       ac_cache_corrupted=: ;;
1285     ,);;
1286     *)
1287       if test "x$ac_old_val" != "x$ac_new_val"; then
1288         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1289 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1290         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1291 echo "$as_me:   former value:  $ac_old_val" >&2;}
1292         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1293 echo "$as_me:   current value: $ac_new_val" >&2;}
1294         ac_cache_corrupted=:
1295       fi;;
1296   esac
1297   # Pass precious variables to config.status.
1298   if test "$ac_new_set" = set; then
1299     case $ac_new_val in
1300     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1301       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1302     *) ac_arg=$ac_var=$ac_new_val ;;
1303     esac
1304     case " $ac_configure_args " in
1305       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1306       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1307     esac
1308   fi
1309 done
1310 if $ac_cache_corrupted; then
1311   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1312 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1313   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1314 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1315    { (exit 1); exit 1; }; }
1316 fi
1317
1318 ac_ext=c
1319 ac_cpp='$CPP $CPPFLAGS'
1320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343 ac_aux_dir=
1344 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1345   if test -f $ac_dir/install-sh; then
1346     ac_aux_dir=$ac_dir
1347     ac_install_sh="$ac_aux_dir/install-sh -c"
1348     break
1349   elif test -f $ac_dir/install.sh; then
1350     ac_aux_dir=$ac_dir
1351     ac_install_sh="$ac_aux_dir/install.sh -c"
1352     break
1353   elif test -f $ac_dir/shtool; then
1354     ac_aux_dir=$ac_dir
1355     ac_install_sh="$ac_aux_dir/shtool install -c"
1356     break
1357   fi
1358 done
1359 if test -z "$ac_aux_dir"; then
1360   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1361 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1362    { (exit 1); exit 1; }; }
1363 fi
1364 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1365 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1366 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1367
1368 # Find a good install program.  We prefer a C program (faster),
1369 # so one script is as good as another.  But avoid the broken or
1370 # incompatible versions:
1371 # SysV /etc/install, /usr/sbin/install
1372 # SunOS /usr/etc/install
1373 # IRIX /sbin/install
1374 # AIX /bin/install
1375 # AmigaOS /C/install, which installs bootblocks on floppy discs
1376 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1377 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1378 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1379 # OS/2's system install, which has a completely different semantic
1380 # ./install, which can be erroneously created by make from ./install.sh.
1381 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1382 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1383 if test -z "$INSTALL"; then
1384 if test "${ac_cv_path_install+set}" = set; then
1385   echo $ECHO_N "(cached) $ECHO_C" >&6
1386 else
1387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1388 for as_dir in $PATH
1389 do
1390   IFS=$as_save_IFS
1391   test -z "$as_dir" && as_dir=.
1392   # Account for people who put trailing slashes in PATH elements.
1393 case $as_dir/ in
1394   ./ | .// | /cC/* | \
1395   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1396   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1397   /usr/ucb/* ) ;;
1398   *)
1399     # OSF1 and SCO ODT 3.0 have their own names for install.
1400     # Don't use installbsd from OSF since it installs stuff as root
1401     # by default.
1402     for ac_prog in ginstall scoinst install; do
1403       for ac_exec_ext in '' $ac_executable_extensions; do
1404         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1405           if test $ac_prog = install &&
1406             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1407             # AIX install.  It has an incompatible calling convention.
1408             :
1409           elif test $ac_prog = install &&
1410             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1411             # program-specific install script used by HP pwplus--don't use.
1412             :
1413           else
1414             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1415             break 3
1416           fi
1417         fi
1418       done
1419     done
1420     ;;
1421 esac
1422 done
1423
1424
1425 fi
1426   if test "${ac_cv_path_install+set}" = set; then
1427     INSTALL=$ac_cv_path_install
1428   else
1429     # As a last resort, use the slow shell script.  We don't cache a
1430     # path for INSTALL within a source directory, because that will
1431     # break other packages using the cache if that directory is
1432     # removed, or if the path is relative.
1433     INSTALL=$ac_install_sh
1434   fi
1435 fi
1436 echo "$as_me:$LINENO: result: $INSTALL" >&5
1437 echo "${ECHO_T}$INSTALL" >&6
1438
1439 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1440 # It thinks the first close brace ends the variable substitution.
1441 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1442
1443 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1444
1445 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1446
1447 ac_ext=c
1448 ac_cpp='$CPP $CPPFLAGS'
1449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1452 if test -n "$ac_tool_prefix"; then
1453   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1454 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1455 echo "$as_me:$LINENO: checking for $ac_word" >&5
1456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1457 if test "${ac_cv_prog_CC+set}" = set; then
1458   echo $ECHO_N "(cached) $ECHO_C" >&6
1459 else
1460   if test -n "$CC"; then
1461   ac_cv_prog_CC="$CC" # Let the user override the test.
1462 else
1463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1464 for as_dir in $PATH
1465 do
1466   IFS=$as_save_IFS
1467   test -z "$as_dir" && as_dir=.
1468   for ac_exec_ext in '' $ac_executable_extensions; do
1469   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1470     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1472     break 2
1473   fi
1474 done
1475 done
1476
1477 fi
1478 fi
1479 CC=$ac_cv_prog_CC
1480 if test -n "$CC"; then
1481   echo "$as_me:$LINENO: result: $CC" >&5
1482 echo "${ECHO_T}$CC" >&6
1483 else
1484   echo "$as_me:$LINENO: result: no" >&5
1485 echo "${ECHO_T}no" >&6
1486 fi
1487
1488 fi
1489 if test -z "$ac_cv_prog_CC"; then
1490   ac_ct_CC=$CC
1491   # Extract the first word of "gcc", so it can be a program name with args.
1492 set dummy gcc; ac_word=$2
1493 echo "$as_me:$LINENO: checking for $ac_word" >&5
1494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1495 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1496   echo $ECHO_N "(cached) $ECHO_C" >&6
1497 else
1498   if test -n "$ac_ct_CC"; then
1499   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1500 else
1501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502 for as_dir in $PATH
1503 do
1504   IFS=$as_save_IFS
1505   test -z "$as_dir" && as_dir=.
1506   for ac_exec_ext in '' $ac_executable_extensions; do
1507   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1508     ac_cv_prog_ac_ct_CC="gcc"
1509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1510     break 2
1511   fi
1512 done
1513 done
1514
1515 fi
1516 fi
1517 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1518 if test -n "$ac_ct_CC"; then
1519   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1520 echo "${ECHO_T}$ac_ct_CC" >&6
1521 else
1522   echo "$as_me:$LINENO: result: no" >&5
1523 echo "${ECHO_T}no" >&6
1524 fi
1525
1526   CC=$ac_ct_CC
1527 else
1528   CC="$ac_cv_prog_CC"
1529 fi
1530
1531 if test -z "$CC"; then
1532   if test -n "$ac_tool_prefix"; then
1533   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1534 set dummy ${ac_tool_prefix}cc; ac_word=$2
1535 echo "$as_me:$LINENO: checking for $ac_word" >&5
1536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1537 if test "${ac_cv_prog_CC+set}" = set; then
1538   echo $ECHO_N "(cached) $ECHO_C" >&6
1539 else
1540   if test -n "$CC"; then
1541   ac_cv_prog_CC="$CC" # Let the user override the test.
1542 else
1543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544 for as_dir in $PATH
1545 do
1546   IFS=$as_save_IFS
1547   test -z "$as_dir" && as_dir=.
1548   for ac_exec_ext in '' $ac_executable_extensions; do
1549   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1550     ac_cv_prog_CC="${ac_tool_prefix}cc"
1551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1552     break 2
1553   fi
1554 done
1555 done
1556
1557 fi
1558 fi
1559 CC=$ac_cv_prog_CC
1560 if test -n "$CC"; then
1561   echo "$as_me:$LINENO: result: $CC" >&5
1562 echo "${ECHO_T}$CC" >&6
1563 else
1564   echo "$as_me:$LINENO: result: no" >&5
1565 echo "${ECHO_T}no" >&6
1566 fi
1567
1568 fi
1569 if test -z "$ac_cv_prog_CC"; then
1570   ac_ct_CC=$CC
1571   # Extract the first word of "cc", so it can be a program name with args.
1572 set dummy cc; ac_word=$2
1573 echo "$as_me:$LINENO: checking for $ac_word" >&5
1574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1575 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1576   echo $ECHO_N "(cached) $ECHO_C" >&6
1577 else
1578   if test -n "$ac_ct_CC"; then
1579   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1580 else
1581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582 for as_dir in $PATH
1583 do
1584   IFS=$as_save_IFS
1585   test -z "$as_dir" && as_dir=.
1586   for ac_exec_ext in '' $ac_executable_extensions; do
1587   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1588     ac_cv_prog_ac_ct_CC="cc"
1589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1590     break 2
1591   fi
1592 done
1593 done
1594
1595 fi
1596 fi
1597 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1598 if test -n "$ac_ct_CC"; then
1599   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1600 echo "${ECHO_T}$ac_ct_CC" >&6
1601 else
1602   echo "$as_me:$LINENO: result: no" >&5
1603 echo "${ECHO_T}no" >&6
1604 fi
1605
1606   CC=$ac_ct_CC
1607 else
1608   CC="$ac_cv_prog_CC"
1609 fi
1610
1611 fi
1612 if test -z "$CC"; then
1613   # Extract the first word of "cc", so it can be a program name with args.
1614 set dummy cc; ac_word=$2
1615 echo "$as_me:$LINENO: checking for $ac_word" >&5
1616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1617 if test "${ac_cv_prog_CC+set}" = set; then
1618   echo $ECHO_N "(cached) $ECHO_C" >&6
1619 else
1620   if test -n "$CC"; then
1621   ac_cv_prog_CC="$CC" # Let the user override the test.
1622 else
1623   ac_prog_rejected=no
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 for as_dir in $PATH
1626 do
1627   IFS=$as_save_IFS
1628   test -z "$as_dir" && as_dir=.
1629   for ac_exec_ext in '' $ac_executable_extensions; do
1630   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1632        ac_prog_rejected=yes
1633        continue
1634      fi
1635     ac_cv_prog_CC="cc"
1636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1637     break 2
1638   fi
1639 done
1640 done
1641
1642 if test $ac_prog_rejected = yes; then
1643   # We found a bogon in the path, so make sure we never use it.
1644   set dummy $ac_cv_prog_CC
1645   shift
1646   if test $# != 0; then
1647     # We chose a different compiler from the bogus one.
1648     # However, it has the same basename, so the bogon will be chosen
1649     # first if we set CC to just the basename; use the full file name.
1650     shift
1651     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1652   fi
1653 fi
1654 fi
1655 fi
1656 CC=$ac_cv_prog_CC
1657 if test -n "$CC"; then
1658   echo "$as_me:$LINENO: result: $CC" >&5
1659 echo "${ECHO_T}$CC" >&6
1660 else
1661   echo "$as_me:$LINENO: result: no" >&5
1662 echo "${ECHO_T}no" >&6
1663 fi
1664
1665 fi
1666 if test -z "$CC"; then
1667   if test -n "$ac_tool_prefix"; then
1668   for ac_prog in cl
1669   do
1670     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1671 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1672 echo "$as_me:$LINENO: checking for $ac_word" >&5
1673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1674 if test "${ac_cv_prog_CC+set}" = set; then
1675   echo $ECHO_N "(cached) $ECHO_C" >&6
1676 else
1677   if test -n "$CC"; then
1678   ac_cv_prog_CC="$CC" # Let the user override the test.
1679 else
1680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681 for as_dir in $PATH
1682 do
1683   IFS=$as_save_IFS
1684   test -z "$as_dir" && as_dir=.
1685   for ac_exec_ext in '' $ac_executable_extensions; do
1686   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1687     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1689     break 2
1690   fi
1691 done
1692 done
1693
1694 fi
1695 fi
1696 CC=$ac_cv_prog_CC
1697 if test -n "$CC"; then
1698   echo "$as_me:$LINENO: result: $CC" >&5
1699 echo "${ECHO_T}$CC" >&6
1700 else
1701   echo "$as_me:$LINENO: result: no" >&5
1702 echo "${ECHO_T}no" >&6
1703 fi
1704
1705     test -n "$CC" && break
1706   done
1707 fi
1708 if test -z "$CC"; then
1709   ac_ct_CC=$CC
1710   for ac_prog in cl
1711 do
1712   # Extract the first word of "$ac_prog", so it can be a program name with args.
1713 set dummy $ac_prog; ac_word=$2
1714 echo "$as_me:$LINENO: checking for $ac_word" >&5
1715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1716 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1717   echo $ECHO_N "(cached) $ECHO_C" >&6
1718 else
1719   if test -n "$ac_ct_CC"; then
1720   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1721 else
1722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723 for as_dir in $PATH
1724 do
1725   IFS=$as_save_IFS
1726   test -z "$as_dir" && as_dir=.
1727   for ac_exec_ext in '' $ac_executable_extensions; do
1728   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1729     ac_cv_prog_ac_ct_CC="$ac_prog"
1730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1731     break 2
1732   fi
1733 done
1734 done
1735
1736 fi
1737 fi
1738 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1739 if test -n "$ac_ct_CC"; then
1740   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1741 echo "${ECHO_T}$ac_ct_CC" >&6
1742 else
1743   echo "$as_me:$LINENO: result: no" >&5
1744 echo "${ECHO_T}no" >&6
1745 fi
1746
1747   test -n "$ac_ct_CC" && break
1748 done
1749
1750   CC=$ac_ct_CC
1751 fi
1752
1753 fi
1754
1755
1756 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1757 See \`config.log' for more details." >&5
1758 echo "$as_me: error: no acceptable C compiler found in \$PATH
1759 See \`config.log' for more details." >&2;}
1760    { (exit 1); exit 1; }; }
1761
1762 # Provide some information about the compiler.
1763 echo "$as_me:$LINENO:" \
1764      "checking for C compiler version" >&5
1765 ac_compiler=`set X $ac_compile; echo $2`
1766 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1767   (eval $ac_compiler --version </dev/null >&5) 2>&5
1768   ac_status=$?
1769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1770   (exit $ac_status); }
1771 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1772   (eval $ac_compiler -v </dev/null >&5) 2>&5
1773   ac_status=$?
1774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1775   (exit $ac_status); }
1776 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1777   (eval $ac_compiler -V </dev/null >&5) 2>&5
1778   ac_status=$?
1779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1780   (exit $ac_status); }
1781
1782 cat >conftest.$ac_ext <<_ACEOF
1783 /* confdefs.h.  */
1784 _ACEOF
1785 cat confdefs.h >>conftest.$ac_ext
1786 cat >>conftest.$ac_ext <<_ACEOF
1787 /* end confdefs.h.  */
1788
1789 int
1790 main ()
1791 {
1792
1793   ;
1794   return 0;
1795 }
1796 _ACEOF
1797 ac_clean_files_save=$ac_clean_files
1798 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1799 # Try to create an executable without -o first, disregard a.out.
1800 # It will help us diagnose broken compilers, and finding out an intuition
1801 # of exeext.
1802 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1803 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1804 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1805 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1806   (eval $ac_link_default) 2>&5
1807   ac_status=$?
1808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1809   (exit $ac_status); }; then
1810   # Find the output, starting from the most likely.  This scheme is
1811 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1812 # resort.
1813
1814 # Be careful to initialize this variable, since it used to be cached.
1815 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1816 ac_cv_exeext=
1817 # b.out is created by i960 compilers.
1818 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1819 do
1820   test -f "$ac_file" || continue
1821   case $ac_file in
1822     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1823         ;;
1824     conftest.$ac_ext )
1825         # This is the source file.
1826         ;;
1827     [ab].out )
1828         # We found the default executable, but exeext='' is most
1829         # certainly right.
1830         break;;
1831     *.* )
1832         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1833         # FIXME: I believe we export ac_cv_exeext for Libtool,
1834         # but it would be cool to find out if it's true.  Does anybody
1835         # maintain Libtool? --akim.
1836         export ac_cv_exeext
1837         break;;
1838     * )
1839         break;;
1840   esac
1841 done
1842 else
1843   echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1845
1846 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1847 See \`config.log' for more details." >&5
1848 echo "$as_me: error: C compiler cannot create executables
1849 See \`config.log' for more details." >&2;}
1850    { (exit 77); exit 77; }; }
1851 fi
1852
1853 ac_exeext=$ac_cv_exeext
1854 echo "$as_me:$LINENO: result: $ac_file" >&5
1855 echo "${ECHO_T}$ac_file" >&6
1856
1857 # Check the compiler produces executables we can run.  If not, either
1858 # the compiler is broken, or we cross compile.
1859 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1860 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1861 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1862 # If not cross compiling, check that we can run a simple program.
1863 if test "$cross_compiling" != yes; then
1864   if { ac_try='./$ac_file'
1865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1866   (eval $ac_try) 2>&5
1867   ac_status=$?
1868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869   (exit $ac_status); }; }; then
1870     cross_compiling=no
1871   else
1872     if test "$cross_compiling" = maybe; then
1873         cross_compiling=yes
1874     else
1875         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1876 If you meant to cross compile, use \`--host'.
1877 See \`config.log' for more details." >&5
1878 echo "$as_me: error: cannot run C compiled programs.
1879 If you meant to cross compile, use \`--host'.
1880 See \`config.log' for more details." >&2;}
1881    { (exit 1); exit 1; }; }
1882     fi
1883   fi
1884 fi
1885 echo "$as_me:$LINENO: result: yes" >&5
1886 echo "${ECHO_T}yes" >&6
1887
1888 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1889 ac_clean_files=$ac_clean_files_save
1890 # Check the compiler produces executables we can run.  If not, either
1891 # the compiler is broken, or we cross compile.
1892 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1893 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1894 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1895 echo "${ECHO_T}$cross_compiling" >&6
1896
1897 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1898 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1900   (eval $ac_link) 2>&5
1901   ac_status=$?
1902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903   (exit $ac_status); }; then
1904   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1905 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1906 # work properly (i.e., refer to `conftest.exe'), while it won't with
1907 # `rm'.
1908 for ac_file in conftest.exe conftest conftest.*; do
1909   test -f "$ac_file" || continue
1910   case $ac_file in
1911     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1912     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1913           export ac_cv_exeext
1914           break;;
1915     * ) break;;
1916   esac
1917 done
1918 else
1919   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1920 See \`config.log' for more details." >&5
1921 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1922 See \`config.log' for more details." >&2;}
1923    { (exit 1); exit 1; }; }
1924 fi
1925
1926 rm -f conftest$ac_cv_exeext
1927 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1928 echo "${ECHO_T}$ac_cv_exeext" >&6
1929
1930 rm -f conftest.$ac_ext
1931 EXEEXT=$ac_cv_exeext
1932 ac_exeext=$EXEEXT
1933 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1934 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1935 if test "${ac_cv_objext+set}" = set; then
1936   echo $ECHO_N "(cached) $ECHO_C" >&6
1937 else
1938   cat >conftest.$ac_ext <<_ACEOF
1939 /* confdefs.h.  */
1940 _ACEOF
1941 cat confdefs.h >>conftest.$ac_ext
1942 cat >>conftest.$ac_ext <<_ACEOF
1943 /* end confdefs.h.  */
1944
1945 int
1946 main ()
1947 {
1948
1949   ;
1950   return 0;
1951 }
1952 _ACEOF
1953 rm -f conftest.o conftest.obj
1954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1955   (eval $ac_compile) 2>&5
1956   ac_status=$?
1957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958   (exit $ac_status); }; then
1959   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1960   case $ac_file in
1961     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1962     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1963        break;;
1964   esac
1965 done
1966 else
1967   echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1969
1970 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1971 See \`config.log' for more details." >&5
1972 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1973 See \`config.log' for more details." >&2;}
1974    { (exit 1); exit 1; }; }
1975 fi
1976
1977 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1978 fi
1979 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1980 echo "${ECHO_T}$ac_cv_objext" >&6
1981 OBJEXT=$ac_cv_objext
1982 ac_objext=$OBJEXT
1983 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1984 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1985 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1986   echo $ECHO_N "(cached) $ECHO_C" >&6
1987 else
1988   cat >conftest.$ac_ext <<_ACEOF
1989 /* confdefs.h.  */
1990 _ACEOF
1991 cat confdefs.h >>conftest.$ac_ext
1992 cat >>conftest.$ac_ext <<_ACEOF
1993 /* end confdefs.h.  */
1994
1995 int
1996 main ()
1997 {
1998 #ifndef __GNUC__
1999        choke me
2000 #endif
2001
2002   ;
2003   return 0;
2004 }
2005 _ACEOF
2006 rm -f conftest.$ac_objext
2007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2008   (eval $ac_compile) 2>conftest.er1
2009   ac_status=$?
2010   grep -v '^ *+' conftest.er1 >conftest.err
2011   rm -f conftest.er1
2012   cat conftest.err >&5
2013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014   (exit $ac_status); } &&
2015          { ac_try='test -z "$ac_c_werror_flag"
2016                          || test ! -s conftest.err'
2017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2018   (eval $ac_try) 2>&5
2019   ac_status=$?
2020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021   (exit $ac_status); }; } &&
2022          { ac_try='test -s conftest.$ac_objext'
2023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2024   (eval $ac_try) 2>&5
2025   ac_status=$?
2026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027   (exit $ac_status); }; }; then
2028   ac_compiler_gnu=yes
2029 else
2030   echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2032
2033 ac_compiler_gnu=no
2034 fi
2035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2036 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2037
2038 fi
2039 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2040 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2041 GCC=`test $ac_compiler_gnu = yes && echo yes`
2042 ac_test_CFLAGS=${CFLAGS+set}
2043 ac_save_CFLAGS=$CFLAGS
2044 CFLAGS="-g"
2045 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2046 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2047 if test "${ac_cv_prog_cc_g+set}" = set; then
2048   echo $ECHO_N "(cached) $ECHO_C" >&6
2049 else
2050   cat >conftest.$ac_ext <<_ACEOF
2051 /* confdefs.h.  */
2052 _ACEOF
2053 cat confdefs.h >>conftest.$ac_ext
2054 cat >>conftest.$ac_ext <<_ACEOF
2055 /* end confdefs.h.  */
2056
2057 int
2058 main ()
2059 {
2060
2061   ;
2062   return 0;
2063 }
2064 _ACEOF
2065 rm -f conftest.$ac_objext
2066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2067   (eval $ac_compile) 2>conftest.er1
2068   ac_status=$?
2069   grep -v '^ *+' conftest.er1 >conftest.err
2070   rm -f conftest.er1
2071   cat conftest.err >&5
2072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073   (exit $ac_status); } &&
2074          { ac_try='test -z "$ac_c_werror_flag"
2075                          || test ! -s conftest.err'
2076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2077   (eval $ac_try) 2>&5
2078   ac_status=$?
2079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080   (exit $ac_status); }; } &&
2081          { ac_try='test -s conftest.$ac_objext'
2082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2083   (eval $ac_try) 2>&5
2084   ac_status=$?
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); }; }; then
2087   ac_cv_prog_cc_g=yes
2088 else
2089   echo "$as_me: failed program was:" >&5
2090 sed 's/^/| /' conftest.$ac_ext >&5
2091
2092 ac_cv_prog_cc_g=no
2093 fi
2094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2095 fi
2096 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2097 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2098 if test "$ac_test_CFLAGS" = set; then
2099   CFLAGS=$ac_save_CFLAGS
2100 elif test $ac_cv_prog_cc_g = yes; then
2101   if test "$GCC" = yes; then
2102     CFLAGS="-g -O2"
2103   else
2104     CFLAGS="-g"
2105   fi
2106 else
2107   if test "$GCC" = yes; then
2108     CFLAGS="-O2"
2109   else
2110     CFLAGS=
2111   fi
2112 fi
2113 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2114 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2115 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2116   echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118   ac_cv_prog_cc_stdc=no
2119 ac_save_CC=$CC
2120 cat >conftest.$ac_ext <<_ACEOF
2121 /* confdefs.h.  */
2122 _ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h.  */
2126 #include <stdarg.h>
2127 #include <stdio.h>
2128 #include <sys/types.h>
2129 #include <sys/stat.h>
2130 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2131 struct buf { int x; };
2132 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2133 static char *e (p, i)
2134      char **p;
2135      int i;
2136 {
2137   return p[i];
2138 }
2139 static char *f (char * (*g) (char **, int), char **p, ...)
2140 {
2141   char *s;
2142   va_list v;
2143   va_start (v,p);
2144   s = g (p, va_arg (v,int));
2145   va_end (v);
2146   return s;
2147 }
2148
2149 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2150    function prototypes and stuff, but not '\xHH' hex character constants.
2151    These don't provoke an error unfortunately, instead are silently treated
2152    as 'x'.  The following induces an error, until -std1 is added to get
2153    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2154    array size at least.  It's necessary to write '\x00'==0 to get something
2155    that's true only with -std1.  */
2156 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2157
2158 int test (int i, double x);
2159 struct s1 {int (*f) (int a);};
2160 struct s2 {int (*f) (double a);};
2161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2162 int argc;
2163 char **argv;
2164 int
2165 main ()
2166 {
2167 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2168   ;
2169   return 0;
2170 }
2171 _ACEOF
2172 # Don't try gcc -ansi; that turns off useful extensions and
2173 # breaks some systems' header files.
2174 # AIX                   -qlanglvl=ansi
2175 # Ultrix and OSF/1      -std1
2176 # HP-UX 10.20 and later -Ae
2177 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2178 # SVR4                  -Xc -D__EXTENSIONS__
2179 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2180 do
2181   CC="$ac_save_CC $ac_arg"
2182   rm -f conftest.$ac_objext
2183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2184   (eval $ac_compile) 2>conftest.er1
2185   ac_status=$?
2186   grep -v '^ *+' conftest.er1 >conftest.err
2187   rm -f conftest.er1
2188   cat conftest.err >&5
2189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190   (exit $ac_status); } &&
2191          { ac_try='test -z "$ac_c_werror_flag"
2192                          || test ! -s conftest.err'
2193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194   (eval $ac_try) 2>&5
2195   ac_status=$?
2196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197   (exit $ac_status); }; } &&
2198          { ac_try='test -s conftest.$ac_objext'
2199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200   (eval $ac_try) 2>&5
2201   ac_status=$?
2202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203   (exit $ac_status); }; }; then
2204   ac_cv_prog_cc_stdc=$ac_arg
2205 break
2206 else
2207   echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.$ac_ext >&5
2209
2210 fi
2211 rm -f conftest.err conftest.$ac_objext
2212 done
2213 rm -f conftest.$ac_ext conftest.$ac_objext
2214 CC=$ac_save_CC
2215
2216 fi
2217
2218 case "x$ac_cv_prog_cc_stdc" in
2219   x|xno)
2220     echo "$as_me:$LINENO: result: none needed" >&5
2221 echo "${ECHO_T}none needed" >&6 ;;
2222   *)
2223     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2224 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2225     CC="$CC $ac_cv_prog_cc_stdc" ;;
2226 esac
2227
2228 # Some people use a C++ compiler to compile C.  Since we use `exit',
2229 # in C++ we need to declare it.  In case someone uses the same compiler
2230 # for both compiling C and C++ we need to have the C++ compiler decide
2231 # the declaration of exit, since it's the most demanding environment.
2232 cat >conftest.$ac_ext <<_ACEOF
2233 #ifndef __cplusplus
2234   choke me
2235 #endif
2236 _ACEOF
2237 rm -f conftest.$ac_objext
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239   (eval $ac_compile) 2>conftest.er1
2240   ac_status=$?
2241   grep -v '^ *+' conftest.er1 >conftest.err
2242   rm -f conftest.er1
2243   cat conftest.err >&5
2244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245   (exit $ac_status); } &&
2246          { ac_try='test -z "$ac_c_werror_flag"
2247                          || test ! -s conftest.err'
2248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249   (eval $ac_try) 2>&5
2250   ac_status=$?
2251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252   (exit $ac_status); }; } &&
2253          { ac_try='test -s conftest.$ac_objext'
2254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255   (eval $ac_try) 2>&5
2256   ac_status=$?
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); }; }; then
2259   for ac_declaration in \
2260    '' \
2261    'extern "C" void std::exit (int) throw (); using std::exit;' \
2262    'extern "C" void std::exit (int); using std::exit;' \
2263    'extern "C" void exit (int) throw ();' \
2264    'extern "C" void exit (int);' \
2265    'void exit (int);'
2266 do
2267   cat >conftest.$ac_ext <<_ACEOF
2268 /* confdefs.h.  */
2269 _ACEOF
2270 cat confdefs.h >>conftest.$ac_ext
2271 cat >>conftest.$ac_ext <<_ACEOF
2272 /* end confdefs.h.  */
2273 $ac_declaration
2274 #include <stdlib.h>
2275 int
2276 main ()
2277 {
2278 exit (42);
2279   ;
2280   return 0;
2281 }
2282 _ACEOF
2283 rm -f conftest.$ac_objext
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285   (eval $ac_compile) 2>conftest.er1
2286   ac_status=$?
2287   grep -v '^ *+' conftest.er1 >conftest.err
2288   rm -f conftest.er1
2289   cat conftest.err >&5
2290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291   (exit $ac_status); } &&
2292          { ac_try='test -z "$ac_c_werror_flag"
2293                          || test ! -s conftest.err'
2294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295   (eval $ac_try) 2>&5
2296   ac_status=$?
2297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298   (exit $ac_status); }; } &&
2299          { ac_try='test -s conftest.$ac_objext'
2300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301   (eval $ac_try) 2>&5
2302   ac_status=$?
2303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304   (exit $ac_status); }; }; then
2305   :
2306 else
2307   echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.$ac_ext >&5
2309
2310 continue
2311 fi
2312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2313   cat >conftest.$ac_ext <<_ACEOF
2314 /* confdefs.h.  */
2315 _ACEOF
2316 cat confdefs.h >>conftest.$ac_ext
2317 cat >>conftest.$ac_ext <<_ACEOF
2318 /* end confdefs.h.  */
2319 $ac_declaration
2320 int
2321 main ()
2322 {
2323 exit (42);
2324   ;
2325   return 0;
2326 }
2327 _ACEOF
2328 rm -f conftest.$ac_objext
2329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330   (eval $ac_compile) 2>conftest.er1
2331   ac_status=$?
2332   grep -v '^ *+' conftest.er1 >conftest.err
2333   rm -f conftest.er1
2334   cat conftest.err >&5
2335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336   (exit $ac_status); } &&
2337          { ac_try='test -z "$ac_c_werror_flag"
2338                          || test ! -s conftest.err'
2339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340   (eval $ac_try) 2>&5
2341   ac_status=$?
2342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343   (exit $ac_status); }; } &&
2344          { ac_try='test -s conftest.$ac_objext'
2345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2346   (eval $ac_try) 2>&5
2347   ac_status=$?
2348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349   (exit $ac_status); }; }; then
2350   break
2351 else
2352   echo "$as_me: failed program was:" >&5
2353 sed 's/^/| /' conftest.$ac_ext >&5
2354
2355 fi
2356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2357 done
2358 rm -f conftest*
2359 if test -n "$ac_declaration"; then
2360   echo '#ifdef __cplusplus' >>confdefs.h
2361   echo $ac_declaration      >>confdefs.h
2362   echo '#endif'             >>confdefs.h
2363 fi
2364
2365 else
2366   echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2368
2369 fi
2370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371 ac_ext=c
2372 ac_cpp='$CPP $CPPFLAGS'
2373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2376
2377
2378 # Put a plausible default for CC_FOR_BUILD in Makefile.
2379 if test "x$cross_compiling" = "xno"; then
2380   CC_FOR_BUILD='$(CC)'
2381 else
2382   CC_FOR_BUILD=gcc
2383 fi
2384 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
2385
2386 ALL_LINGUAS=
2387 # If we haven't got the data from the intl directory,
2388 # assume NLS is disabled.
2389 USE_NLS=no
2390 LIBINTL=
2391 LIBINTL_DEP=
2392 INCINTL=
2393 XGETTEXT=
2394 GMSGFMT=
2395 POSUB=
2396
2397 if test -f  ../../intl/config.intl; then
2398   .  ../../intl/config.intl
2399 fi
2400 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2401 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2402 if test x"$USE_NLS" != xyes; then
2403   echo "$as_me:$LINENO: result: no" >&5
2404 echo "${ECHO_T}no" >&6
2405 else
2406   echo "$as_me:$LINENO: result: yes" >&5
2407 echo "${ECHO_T}yes" >&6
2408
2409 cat >>confdefs.h <<\_ACEOF
2410 #define ENABLE_NLS 1
2411 _ACEOF
2412
2413
2414   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2415 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2416   # Look for .po and .gmo files in the source directory.
2417   CATALOGS=
2418   XLINGUAS=
2419   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2420     # If there aren't any .gmo files the shell will give us the
2421     # literal string "../path/to/srcdir/po/*.gmo" which has to be
2422     # weeded out.
2423     case "$cat" in *\**)
2424       continue;;
2425     esac
2426     # The quadruple backslash is collapsed to a double backslash
2427     # by the backticks, then collapsed again by the double quotes,
2428     # leaving us with one backslash in the sed expression (right
2429     # before the dot that mustn't act as a wildcard).
2430     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2431     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2432     # The user is allowed to set LINGUAS to a list of languages to
2433     # install catalogs for.  If it's empty that means "all of them."
2434     if test "x$LINGUAS" = x; then
2435       CATALOGS="$CATALOGS $cat"
2436       XLINGUAS="$XLINGUAS $lang"
2437     else
2438       case "$LINGUAS" in *$lang*)
2439         CATALOGS="$CATALOGS $cat"
2440         XLINGUAS="$XLINGUAS $lang"
2441         ;;
2442       esac
2443     fi
2444   done
2445   LINGUAS="$XLINGUAS"
2446   echo "$as_me:$LINENO: result: $LINGUAS" >&5
2447 echo "${ECHO_T}$LINGUAS" >&6
2448
2449
2450     DATADIRNAME=share
2451
2452   INSTOBJEXT=.mo
2453
2454   GENCAT=gencat
2455
2456   CATOBJEXT=.gmo
2457
2458 fi
2459
2460
2461 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
2462 if test "${enable_sim_alignment+set}" = set; then
2463   enableval="$enable_sim_alignment"
2464   case "${enableval}" in
2465   yes | strict | STRICT)        sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
2466   no | nonstrict | NONSTRICT)   sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
2467   0 | default | DEFAULT)        sim_alignment="-DWITH_ALIGNMENT=0";;
2468   *)                            { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
2469 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
2470    { (exit 1); exit 1; }; }; sim_alignment="";;
2471 esac
2472 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
2473   echo "Setting alignment flags = $sim_alignment" 6>&1
2474 fi
2475 else
2476   sim_alignment=""
2477 fi;
2478
2479 # Check whether --enable-sim-assert or --disable-sim-assert was given.
2480 if test "${enable_sim_assert+set}" = set; then
2481   enableval="$enable_sim_assert"
2482   case "${enableval}" in
2483   yes)  sim_assert="-DWITH_ASSERT=1";;
2484   no)   sim_assert="-DWITH_ASSERT=0";;
2485   *)    { { echo "$as_me:$LINENO: error: \"--enable-sim-assert does not take a value\"" >&5
2486 echo "$as_me: error: \"--enable-sim-assert does not take a value\"" >&2;}
2487    { (exit 1); exit 1; }; }; sim_assert="";;
2488 esac
2489 if test x"$silent" != x"yes" && test x"$sim_assert" != x""; then
2490   echo "Setting assert flags = $sim_assert" 6>&1
2491 fi
2492 else
2493   sim_assert=""
2494 fi;
2495
2496 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
2497 if test "${enable_sim_bitsize+set}" = set; then
2498   enableval="$enable_sim_bitsize"
2499   case "${enableval}" in
2500   32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
2501   *)     { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval.  Expected 32 or 64\"" >&5
2502 echo "$as_me: error: \"--enable-sim-bitsize was given $enableval.  Expected 32 or 64\"" >&2;}
2503    { (exit 1); exit 1; }; }; sim_bitsize="";;
2504 esac
2505 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
2506   echo "Setting bitsize flags = $sim_bitsize" 6>&1
2507 fi
2508 else
2509   sim_bitsize=""
2510 fi;
2511
2512 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
2513 if test "${enable_sim_bswap+set}" = set; then
2514   enableval="$enable_sim_bswap"
2515   case "${enableval}" in
2516   yes)  sim_bswap="-DWITH_BSWAP=1";;
2517   no)   sim_bswap="-DWITH_BSWAP=0";;
2518   *)    { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
2519 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
2520    { (exit 1); exit 1; }; }; sim_bswap="";;
2521 esac
2522 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
2523   echo "Setting bswap flags = $sim_bswap" 6>&1
2524 fi
2525 else
2526   sim_bswap=""
2527 fi;
2528
2529 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
2530 if test "${enable_sim_cflags+set}" = set; then
2531   enableval="$enable_sim_cflags"
2532   case "${enableval}" in
2533   yes)  sim_cflags="-O2 -fomit-frame-pointer";;
2534   no)   sim_cflags="";;
2535   *)    sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2536 esac
2537 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
2538   echo "Setting sim cflags = $sim_cflags" 6>&1
2539 fi
2540 else
2541   sim_cflags=""
2542 fi;
2543
2544 # Check whether --enable-sim-config or --disable-sim-config was given.
2545 if test "${enable_sim_config+set}" = set; then
2546   enableval="$enable_sim_config"
2547   case "${enableval}" in
2548   yes|no)       { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-config=file\"" >&5
2549 echo "$as_me: error: \"No value supplied for --enable-sim-config=file\"" >&2;}
2550    { (exit 1); exit 1; }; };;
2551   *)            if test -f "${srcdir}/${enableval}"; then
2552                   sim_config="${enableval}";
2553                 elif test -f "${srcdir}/${enableval}-config.h"; then
2554                   sim_config="${enableval}-config.h"
2555                 else
2556                   { { echo "$as_me:$LINENO: error: \"Config file $enableval was not found\"" >&5
2557 echo "$as_me: error: \"Config file $enableval was not found\"" >&2;}
2558    { (exit 1); exit 1; }; };
2559                   sim_config=std-config.h
2560                 fi;;
2561 esac
2562 if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
2563   echo "Setting config flags = $sim_config" 6>&1
2564 fi
2565 else
2566   sim_config="std-config.h"
2567 if test x"$silent" != x"yes"; then
2568   echo "Setting config flags = $sim_config" 6>&1
2569 fi
2570 fi;
2571
2572 # Check whether --enable-sim-decode-mechanism or --disable-sim-decode-mechanism was given.
2573 if test "${enable_sim_decode_mechanism+set}" = set; then
2574   enableval="$enable_sim_decode_mechanism"
2575   case "${enableval}" in
2576   yes|no)       { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-decode-mechanism=file\"" >&5
2577 echo "$as_me: error: \"No value supplied for --enable-sim-decode-mechanism=file\"" >&2;}
2578    { (exit 1); exit 1; }; };;
2579   array|switch|padded-switch|goto-switch)       sim_decode_mechanism="-T ${enableval}";;
2580   *)            { { echo "$as_me:$LINENO: error: \"File $enableval is not an opcode rules file\"" >&5
2581 echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;}
2582    { (exit 1); exit 1; }; };
2583                 sim_decode_mechanism="switch";;
2584 esac
2585 if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
2586   echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
2587 fi
2588 else
2589   sim_decode_mechanism=""
2590 if test x"$silent" != x"yes"; then
2591   echo "Setting decode mechanism flags = $sim_decode_mechanism"
2592 fi
2593 fi;
2594
2595 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
2596 if test "${enable_sim_default_model+set}" = set; then
2597   enableval="$enable_sim_default_model"
2598   case "${enableval}" in
2599   yes|no)       { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-default-model=model\"" >&5
2600 echo "$as_me: error: \"No value supplied for --enable-sim-default-model=model\"" >&2;}
2601    { (exit 1); exit 1; }; };;
2602   *)            sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
2603 esac
2604 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
2605   echo "Setting default-model flags = $sim_default_model" 6>&1
2606 fi
2607 else
2608   sim_default_model=""
2609 fi;
2610
2611 # Check whether --enable-sim-duplicate or --disable-sim-duplicate was given.
2612 if test "${enable_sim_duplicate+set}" = set; then
2613   enableval="$enable_sim_duplicate"
2614   case "${enableval}" in
2615   yes)  sim_dup="-E";;
2616   no)   sim_dup="";;
2617   *)    { { echo "$as_me:$LINENO: error: \"--enable-sim-duplicate does not take a value\"" >&5
2618 echo "$as_me: error: \"--enable-sim-duplicate does not take a value\"" >&2;}
2619    { (exit 1); exit 1; }; }; sim_dup="";;
2620 esac
2621 if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
2622   echo "Setting duplicate flags = $sim_dup" 6>&1
2623 fi
2624 else
2625   sim_dup="-E"
2626 if test x"$silent" != x"yes"; then
2627   echo "Setting duplicate flags = $sim_dup" 6>&1
2628 fi
2629 fi;
2630
2631 # Check whether --enable-sim-endian or --disable-sim-endian was given.
2632 if test "${enable_sim_endian+set}" = set; then
2633   enableval="$enable_sim_endian"
2634   case "${enableval}" in
2635   yes)  case "$target" in
2636           *powerpc-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
2637           *powerpcle-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
2638           *) echo "Unknown target $target" 1>&6; sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
2639         esac;;
2640   no)    sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
2641   b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
2642   l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
2643   *)     { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
2644 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
2645    { (exit 1); exit 1; }; }; sim_endian="";;
2646 esac
2647 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
2648   echo "Setting endian flags = $sim_endian" 6>&1
2649 fi
2650 else
2651   sim_endian=""
2652 fi;
2653
2654 # Check whether --enable-sim-env or --disable-sim-env was given.
2655 if test "${enable_sim_env+set}" = set; then
2656   enableval="$enable_sim_env"
2657   case "${enableval}" in
2658   operating | os | oea) sim_env="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
2659   virtual | vea)        sim_env="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
2660   user | uea)           sim_env="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
2661   no)                   sim_env="-DWITH_ENVIRONMENT=0";;
2662   *)                    { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-env\"" >&5
2663 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-env\"" >&2;}
2664    { (exit 1); exit 1; }; }; sim_env="";;
2665 esac
2666 if test x"$silent" != x"yes" && test x"$sim_env" != x""; then
2667   echo "Setting env flags = $sim_env" 6>&1
2668 fi
2669 else
2670   sim_env=""
2671 fi;
2672
2673 # Check whether --enable-sim-filter or --disable-sim-filter was given.
2674 if test "${enable_sim_filter+set}" = set; then
2675   enableval="$enable_sim_filter"
2676   case "${enableval}" in
2677   yes)  { { echo "$as_me:$LINENO: error: \"--enable-sim-filter must be specified with a rule to filter or no\"" >&5
2678 echo "$as_me: error: \"--enable-sim-filter must be specified with a rule to filter or no\"" >&2;}
2679    { (exit 1); exit 1; }; }; sim_filter="";;
2680   no)   sim_filter="";;
2681   *)    sim_filter="-F $enableval";;
2682 esac
2683 if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
2684   echo "Setting filter flags = $sim_filter" 6>&1
2685 fi
2686 else
2687   sim_filter="-F 32,f,o"
2688 if test x"$silent" != x"yes"; then
2689   echo "Setting filter flags = $sim_filter" 6>&1
2690 fi
2691 fi;
2692
2693 # Check whether --enable-sim-float or --disable-sim-float was given.
2694 if test "${enable_sim_float+set}" = set; then
2695   enableval="$enable_sim_float"
2696   case "${enableval}" in
2697   yes | hard)   sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
2698   no | soft)    sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
2699   altivec)      sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
2700   *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
2701   *)            { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&5
2702 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&2;}
2703    { (exit 1); exit 1; }; }; sim_float="";;
2704 esac
2705 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
2706   echo "Setting float flags = $sim_float" 6>&1
2707 fi
2708 else
2709
2710 case "${target}" in
2711   *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
2712   *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
2713   *) sim_float=""
2714 esac
2715
2716 fi;
2717
2718 echo "$as_me:$LINENO: checking if union semun defined" >&5
2719 echo $ECHO_N "checking if union semun defined... $ECHO_C" >&6
2720 if test "${ac_cv_HAS_UNION_SEMUN+set}" = set; then
2721   echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723   cat >conftest.$ac_ext <<_ACEOF
2724 /* confdefs.h.  */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h.  */
2729
2730 #include <sys/types.h>
2731 #include <sys/ipc.h>
2732 #include <sys/sem.h>
2733 int
2734 main ()
2735 {
2736 union semun arg ;
2737   ;
2738   return 0;
2739 }
2740 _ACEOF
2741 rm -f conftest.$ac_objext
2742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2743   (eval $ac_compile) 2>conftest.er1
2744   ac_status=$?
2745   grep -v '^ *+' conftest.er1 >conftest.err
2746   rm -f conftest.er1
2747   cat conftest.err >&5
2748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749   (exit $ac_status); } &&
2750          { ac_try='test -z "$ac_c_werror_flag"
2751                          || test ! -s conftest.err'
2752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753   (eval $ac_try) 2>&5
2754   ac_status=$?
2755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756   (exit $ac_status); }; } &&
2757          { ac_try='test -s conftest.$ac_objext'
2758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759   (eval $ac_try) 2>&5
2760   ac_status=$?
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); }; }; then
2763   ac_cv_has_union_semun="yes"
2764 else
2765   echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2767
2768 ac_cv_has_union_semun="no"
2769 fi
2770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2771 echo "$as_me:$LINENO: result: $ac_cv_has_union_semun" >&5
2772 echo "${ECHO_T}$ac_cv_has_union_semun" >&6
2773
2774 fi
2775 echo "$as_me:$LINENO: result: $ac_cv_HAS_UNION_SEMUN" >&5
2776 echo "${ECHO_T}$ac_cv_HAS_UNION_SEMUN" >&6
2777
2778
2779 if test "$ac_cv_has_union_semun" = "yes"; then
2780   echo "$as_me:$LINENO: checking whether System V semaphores are supported" >&5
2781 echo $ECHO_N "checking whether System V semaphores are supported... $ECHO_C" >&6
2782 if test "${ac_cv_sysv_sem+set}" = set; then
2783   echo $ECHO_N "(cached) $ECHO_C" >&6
2784 else
2785
2786   if test "$cross_compiling" = yes; then
2787   :
2788 else
2789   cat >conftest.$ac_ext <<_ACEOF
2790 /* confdefs.h.  */
2791 _ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h.  */
2795
2796   #include <sys/types.h>
2797   #include <sys/ipc.h>
2798   #include <sys/sem.h>
2799   int main () {
2800     union semun arg ;
2801
2802     int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
2803     if (id == -1)
2804       exit(1);
2805     arg.val = 0; /* avoid implicit type cast to union */
2806     if (semctl(id, 0, IPC_RMID, arg) == -1)
2807       exit(1);
2808     exit(0);
2809   }
2810
2811 _ACEOF
2812 rm -f conftest$ac_exeext
2813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2814   (eval $ac_link) 2>&5
2815   ac_status=$?
2816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819   (eval $ac_try) 2>&5
2820   ac_status=$?
2821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822   (exit $ac_status); }; }; then
2823   ac_cv_sysv_sem="yes"
2824 else
2825   echo "$as_me: program exited with status $ac_status" >&5
2826 echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2828
2829 ( exit $ac_status )
2830 ac_cv_sysv_sem="no"
2831 fi
2832 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2833 fi
2834
2835 fi
2836 echo "$as_me:$LINENO: result: $ac_cv_sysv_sem" >&5
2837 echo "${ECHO_T}$ac_cv_sysv_sem" >&6
2838 else  # semun is not defined
2839   echo "$as_me:$LINENO: checking whether System V semaphores are supported" >&5
2840 echo $ECHO_N "checking whether System V semaphores are supported... $ECHO_C" >&6
2841 if test "${ac_cv_sysv_sem+set}" = set; then
2842   echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844
2845   if test "$cross_compiling" = yes; then
2846   :
2847 else
2848   cat >conftest.$ac_ext <<_ACEOF
2849 /* confdefs.h.  */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h.  */
2854
2855   #include <sys/types.h>
2856   #include <sys/ipc.h>
2857   #include <sys/sem.h>
2858   union semun {
2859     int val;
2860     struct semid_ds *buf;
2861     ushort *array;
2862   };
2863   int main () {
2864     union semun arg ;
2865
2866     int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
2867     if (id == -1)
2868       exit(1);
2869     arg.val = 0; /* avoid implicit type cast to union */
2870     if (semctl(id, 0, IPC_RMID, arg) == -1)
2871       exit(1);
2872     exit(0);
2873   }
2874
2875 _ACEOF
2876 rm -f conftest$ac_exeext
2877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2878   (eval $ac_link) 2>&5
2879   ac_status=$?
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883   (eval $ac_try) 2>&5
2884   ac_status=$?
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); }; }; then
2887   ac_cv_sysv_sem="yes"
2888 else
2889   echo "$as_me: program exited with status $ac_status" >&5
2890 echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2892
2893 ( exit $ac_status )
2894 ac_cv_sysv_sem="no"
2895 fi
2896 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2897 fi
2898
2899 fi
2900 echo "$as_me:$LINENO: result: $ac_cv_sysv_sem" >&5
2901 echo "${ECHO_T}$ac_cv_sysv_sem" >&6
2902 fi
2903
2904 echo "$as_me:$LINENO: checking whether System V shared memory is supported" >&5
2905 echo $ECHO_N "checking whether System V shared memory is supported... $ECHO_C" >&6
2906 if test "${ac_cv_sysv_shm+set}" = set; then
2907   echo $ECHO_N "(cached) $ECHO_C" >&6
2908 else
2909
2910 if test "$cross_compiling" = yes; then
2911   :
2912 else
2913   cat >conftest.$ac_ext <<_ACEOF
2914 /* confdefs.h.  */
2915 _ACEOF
2916 cat confdefs.h >>conftest.$ac_ext
2917 cat >>conftest.$ac_ext <<_ACEOF
2918 /* end confdefs.h.  */
2919
2920 #include <sys/types.h>
2921 #include <sys/ipc.h>
2922 #include <sys/shm.h>
2923 int main () {
2924   int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
2925   if (id == -1)
2926     exit(1);
2927   if (shmctl(id, IPC_RMID, 0) == -1)
2928     exit(1);
2929   exit(0);
2930 }
2931
2932 _ACEOF
2933 rm -f conftest$ac_exeext
2934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2935   (eval $ac_link) 2>&5
2936   ac_status=$?
2937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940   (eval $ac_try) 2>&5
2941   ac_status=$?
2942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943   (exit $ac_status); }; }; then
2944   ac_cv_sysv_shm="yes"
2945 else
2946   echo "$as_me: program exited with status $ac_status" >&5
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2949
2950 ( exit $ac_status )
2951 ac_cv_sysv_shm="no"
2952 fi
2953 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2954 fi
2955
2956 fi
2957 echo "$as_me:$LINENO: result: $ac_cv_sysv_shm" >&5
2958 echo "${ECHO_T}$ac_cv_sysv_shm" >&6
2959
2960 if test x"$ac_cv_sysv_shm" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
2961   sim_sysv_ipc_hw=",sem,shm";
2962 else
2963   sim_sysv_ipc_hw="";
2964 fi
2965
2966 if test x"$ac_cv_has_union_semun" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
2967   sim_hwflags="-DHAS_UNION_SEMUN";
2968 fi
2969
2970
2971 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
2972 if test "${enable_sim_hardware+set}" = set; then
2973   enableval="$enable_sim_hardware"
2974   hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
2975 case "${enableval}" in
2976   yes)  ;;
2977   no)   { { echo "$as_me:$LINENO: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&5
2978 echo "$as_me: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&2;}
2979    { (exit 1); exit 1; }; }; hardware="";;
2980   ,*)   hardware="${hardware}${enableval}";;
2981   *,)   hardware="${enableval}${hardware}";;
2982   *)    hardware="${enableval}"'';;
2983 esac
2984 sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
2985 sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
2986 if test x"$silent" != x"yes" && test x"$hardware" != x""; then
2987   echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
2988 fi
2989 else
2990   hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
2991 sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
2992 sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
2993 if test x"$silent" != x"yes"; then
2994   echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
2995 fi
2996 fi;
2997 # Check whether --enable-sim-hostbitsize or --disable-sim-hostbitsize was given.
2998 if test "${enable_sim_hostbitsize+set}" = set; then
2999   enableval="$enable_sim_hostbitsize"
3000   case "${enableval}" in
3001   32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
3002   *)     { { echo "$as_me:$LINENO: error: \"--enable-sim-hostbitsize was given $enableval.  Expected 32 or 64\"" >&5
3003 echo "$as_me: error: \"--enable-sim-hostbitsize was given $enableval.  Expected 32 or 64\"" >&2;}
3004    { (exit 1); exit 1; }; }; sim_hostbitsize="";;
3005 esac
3006 if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
3007   echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
3008 fi
3009 else
3010   sim_hostbitsize=""
3011 fi;
3012
3013 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
3014 if test "${enable_sim_hostendian+set}" = set; then
3015   enableval="$enable_sim_hostendian"
3016   case "${enableval}" in
3017   no)    sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
3018   b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
3019   l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
3020   *)     { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
3021 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
3022    { (exit 1); exit 1; }; }; sim_hostendian="";;
3023 esac
3024 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
3025   echo "Setting hostendian flags = $sim_hostendian" 6>&1
3026 fi
3027 else
3028
3029 if test "x$cross_compiling" = "xno"; then
3030   echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3031 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3032 if test "${ac_cv_c_bigendian+set}" = set; then
3033   echo $ECHO_N "(cached) $ECHO_C" >&6
3034 else
3035   # See if sys/param.h defines the BYTE_ORDER macro.
3036 cat >conftest.$ac_ext <<_ACEOF
3037 /* confdefs.h.  */
3038 _ACEOF
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h.  */
3042 #include <sys/types.h>
3043 #include <sys/param.h>
3044
3045 int
3046 main ()
3047 {
3048 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3049  bogus endian macros
3050 #endif
3051
3052   ;
3053   return 0;
3054 }
3055 _ACEOF
3056 rm -f conftest.$ac_objext
3057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3058   (eval $ac_compile) 2>conftest.er1
3059   ac_status=$?
3060   grep -v '^ *+' conftest.er1 >conftest.err
3061   rm -f conftest.er1
3062   cat conftest.err >&5
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); } &&
3065          { ac_try='test -z "$ac_c_werror_flag"
3066                          || test ! -s conftest.err'
3067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068   (eval $ac_try) 2>&5
3069   ac_status=$?
3070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071   (exit $ac_status); }; } &&
3072          { ac_try='test -s conftest.$ac_objext'
3073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074   (eval $ac_try) 2>&5
3075   ac_status=$?
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); }; }; then
3078   # It does; now see whether it defined to BIG_ENDIAN or not.
3079 cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h.  */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h.  */
3085 #include <sys/types.h>
3086 #include <sys/param.h>
3087
3088 int
3089 main ()
3090 {
3091 #if BYTE_ORDER != BIG_ENDIAN
3092  not big endian
3093 #endif
3094
3095   ;
3096   return 0;
3097 }
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3101   (eval $ac_compile) 2>conftest.er1
3102   ac_status=$?
3103   grep -v '^ *+' conftest.er1 >conftest.err
3104   rm -f conftest.er1
3105   cat conftest.err >&5
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); } &&
3108          { ac_try='test -z "$ac_c_werror_flag"
3109                          || test ! -s conftest.err'
3110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3111   (eval $ac_try) 2>&5
3112   ac_status=$?
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); }; } &&
3115          { ac_try='test -s conftest.$ac_objext'
3116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3117   (eval $ac_try) 2>&5
3118   ac_status=$?
3119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); }; }; then
3121   ac_cv_c_bigendian=yes
3122 else
3123   echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3125
3126 ac_cv_c_bigendian=no
3127 fi
3128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3129 else
3130   echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3132
3133 # It does not; compile a test program.
3134 if test "$cross_compiling" = yes; then
3135   # try to guess the endianness by grepping values into an object file
3136   ac_cv_c_bigendian=unknown
3137   cat >conftest.$ac_ext <<_ACEOF
3138 /* confdefs.h.  */
3139 _ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h.  */
3143 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3144 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3145 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3146 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3147 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3148 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3149 int
3150 main ()
3151 {
3152  _ascii (); _ebcdic ();
3153   ;
3154   return 0;
3155 }
3156 _ACEOF
3157 rm -f conftest.$ac_objext
3158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3159   (eval $ac_compile) 2>conftest.er1
3160   ac_status=$?
3161   grep -v '^ *+' conftest.er1 >conftest.err
3162   rm -f conftest.er1
3163   cat conftest.err >&5
3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); } &&
3166          { ac_try='test -z "$ac_c_werror_flag"
3167                          || test ! -s conftest.err'
3168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3169   (eval $ac_try) 2>&5
3170   ac_status=$?
3171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172   (exit $ac_status); }; } &&
3173          { ac_try='test -s conftest.$ac_objext'
3174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175   (eval $ac_try) 2>&5
3176   ac_status=$?
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); }; }; then
3179   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3180   ac_cv_c_bigendian=yes
3181 fi
3182 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3183   if test "$ac_cv_c_bigendian" = unknown; then
3184     ac_cv_c_bigendian=no
3185   else
3186     # finding both strings is unlikely to happen, but who knows?
3187     ac_cv_c_bigendian=unknown
3188   fi
3189 fi
3190 else
3191   echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3193
3194 fi
3195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3196 else
3197   cat >conftest.$ac_ext <<_ACEOF
3198 /* confdefs.h.  */
3199 _ACEOF
3200 cat confdefs.h >>conftest.$ac_ext
3201 cat >>conftest.$ac_ext <<_ACEOF
3202 /* end confdefs.h.  */
3203 int
3204 main ()
3205 {
3206   /* Are we little or big endian?  From Harbison&Steele.  */
3207   union
3208   {
3209     long l;
3210     char c[sizeof (long)];
3211   } u;
3212   u.l = 1;
3213   exit (u.c[sizeof (long) - 1] == 1);
3214 }
3215 _ACEOF
3216 rm -f conftest$ac_exeext
3217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3218   (eval $ac_link) 2>&5
3219   ac_status=$?
3220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3223   (eval $ac_try) 2>&5
3224   ac_status=$?
3225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226   (exit $ac_status); }; }; then
3227   ac_cv_c_bigendian=no
3228 else
3229   echo "$as_me: program exited with status $ac_status" >&5
3230 echo "$as_me: failed program was:" >&5
3231 sed 's/^/| /' conftest.$ac_ext >&5
3232
3233 ( exit $ac_status )
3234 ac_cv_c_bigendian=yes
3235 fi
3236 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3237 fi
3238 fi
3239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3240 fi
3241 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3242 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3243 case $ac_cv_c_bigendian in
3244   yes)
3245
3246 cat >>confdefs.h <<\_ACEOF
3247 #define WORDS_BIGENDIAN 1
3248 _ACEOF
3249  ;;
3250   no)
3251      ;;
3252   *)
3253     { { echo "$as_me:$LINENO: error: unknown endianness
3254 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3255 echo "$as_me: error: unknown endianness
3256 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3257    { (exit 1); exit 1; }; } ;;
3258 esac
3259
3260   if test $ac_cv_c_bigendian = yes; then
3261     sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3262   else
3263     sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3264   fi
3265 else
3266   sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
3267 fi
3268 fi;
3269
3270 # Check whether --enable-sim-icache or --disable-sim-icache was given.
3271 if test "${enable_sim_icache+set}" = set; then
3272   enableval="$enable_sim_icache"
3273   icache="-R"
3274  case "${enableval}" in
3275   yes)          icache="1024"; sim_icache="-I $icache";;
3276   no)           sim_icache="-R";;
3277   *) icache=1024
3278      sim_icache="-"
3279      for x in `echo "${enableval}" | sed -e "s/,/ /g"`; do
3280        case "$x" in
3281          define)        sim_icache="${sim_icache}R";;
3282          semantic)      sim_icache="${sim_icache}C";;
3283          insn)          sim_icache="${sim_icache}S";;
3284          0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) icache=$x;;
3285          *)             { { echo "$as_me:$LINENO: error: \"Unknown value $x for --enable-sim-icache\"" >&5
3286 echo "$as_me: error: \"Unknown value $x for --enable-sim-icache\"" >&2;}
3287    { (exit 1); exit 1; }; }; sim_icache="";;
3288        esac
3289      done
3290      sim_icache="${sim_icache}I $icache";;
3291 esac
3292 if test x"$silent" != x"yes" && test x"$icache" != x""; then
3293   echo "Setting instruction cache size to $icache ($sim_icache)"
3294 fi
3295 else
3296   sim_icache="-CSRI 1024"
3297 if test x"$silent" != x"yes"; then
3298   echo "Setting instruction cache size to 1024 ($sim_icache)"
3299 fi
3300 fi;
3301
3302 # Check whether --enable-sim-inline or --disable-sim-inline was given.
3303 if test "${enable_sim_inline+set}" = set; then
3304   enableval="$enable_sim_inline"
3305   sim_inline=""
3306 case "$enableval" in
3307   no)           sim_inline="-DDEFAULT_INLINE=0";;
3308   0)            sim_inline="-DDEFAULT_INLINE=0";;
3309   yes | 2)      sim_inline="-DDEFAULT_INLINE=ALL_INLINE";;
3310   1)            sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
3311   *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3312        new_flag=""
3313        case "$x" in
3314          *_INLINE=*)    new_flag="-D$x";;
3315          *=*)           new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3316          *_INLINE)      new_flag="-D$x=ALL_INLINE";;
3317          *)             new_flag="-D$x""_INLINE=ALL_INLINE";;
3318        esac
3319        if test x"$sim_inline" = x""; then
3320          sim_inline="$new_flag"
3321        else
3322          sim_inline="$sim_inline $new_flag"
3323        fi
3324      done;;
3325 esac
3326 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
3327   echo "Setting inline flags = $sim_inline" 6>&1
3328 fi
3329 else
3330   if test x"$GCC" != ""; then
3331   sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
3332   if test x"$silent" != x"yes"; then
3333     echo "Setting inline flags = $sim_inline" 6>&1
3334   fi
3335 else
3336   sim_inline=""
3337 fi
3338 fi;
3339
3340 # Check whether --enable-sim-jump or --disable-sim-jump was given.
3341 if test "${enable_sim_jump+set}" = set; then
3342   enableval="$enable_sim_jump"
3343   case "${enableval}" in
3344   yes)  sim_jump="-J";;
3345   no)   sim_jump="";;
3346   *)    { { echo "$as_me:$LINENO: error: \"--enable-sim-jump does not take a value\"" >&5
3347 echo "$as_me: error: \"--enable-sim-jump does not take a value\"" >&2;}
3348    { (exit 1); exit 1; }; }; sim_jump="";;
3349 esac
3350 if test x"$silent" != x"yes" && test x"$sim_jump" != x""; then
3351   echo "Setting jump flag = $sim_jump" 6>&1
3352 fi
3353 else
3354   sim_jump=""
3355 if test x"$silent" != x"yes"; then
3356   echo "Setting jump flag = $sim_jump" 6>&1
3357 fi
3358 fi;
3359
3360 # Check whether --enable-sim-line-nr or --disable-sim-line-nr was given.
3361 if test "${enable_sim_line_nr+set}" = set; then
3362   enableval="$enable_sim_line_nr"
3363   case "${enableval}" in
3364   yes)  sim_line_nr="";;
3365   no)   sim_line_nr="-L";;
3366   *)    { { echo "$as_me:$LINENO: error: \"--enable-sim-line-nr does not take a value\"" >&5
3367 echo "$as_me: error: \"--enable-sim-line-nr does not take a value\"" >&2;}
3368    { (exit 1); exit 1; }; }; sim_line_nr="";;
3369 esac
3370 if test x"$silent" != x"yes" && test x"$sim_line_nr" != x""; then
3371   echo "Setting warning flags = $sim_line_nr" 6>&1
3372 fi
3373 else
3374   sim_line_nr=""
3375 fi;
3376
3377 # Check whether --enable-sim-model or --disable-sim-model was given.
3378 if test "${enable_sim_model+set}" = set; then
3379   enableval="$enable_sim_model"
3380   case "${enableval}" in
3381   yes|no)       { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-model=model\"" >&5
3382 echo "$as_me: error: \"No value supplied for --enable-sim-model=model\"" >&2;}
3383    { (exit 1); exit 1; }; };;
3384   *)            sim_model="-DWITH_MODEL=${enableval}";;
3385 esac
3386 if test x"$silent" != x"yes" && test x"$sim_model" != x""; then
3387   echo "Setting model flags = $sim_model" 6>&1
3388 fi
3389 else
3390   sim_model=""
3391 fi;
3392
3393 # Check whether --enable-sim-model-issue or --disable-sim-model-issue was given.
3394 if test "${enable_sim_model_issue+set}" = set; then
3395   enableval="$enable_sim_model_issue"
3396   case "${enableval}" in
3397   yes)  sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
3398   no)   sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
3399   *)    { { echo "$as_me:$LINENO: error: \"--enable-sim-model-issue does not take a value\"" >&5
3400 echo "$as_me: error: \"--enable-sim-model-issue does not take a value\"" >&2;}
3401    { (exit 1); exit 1; }; }; sim_model_issue="";;
3402 esac
3403 if test x"$silent" != x"yes"; then
3404   echo "Setting model-issue flags = $sim_model_issue" 6>&1
3405 fi
3406 else
3407   sim_model_issue=""
3408 fi;
3409
3410 # Check whether --enable-sim-monitor or --disable-sim-monitor was given.
3411 if test "${enable_sim_monitor+set}" = set; then
3412   enableval="$enable_sim_monitor"
3413   case "${enableval}" in
3414   yes)          sim_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
3415   no)           sim_monitor="-DWITH_MON=0";;
3416   instruction)  sim_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
3417   memory)       sim_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
3418   *)            { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&5
3419 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&2;}
3420    { (exit 1); exit 1; }; }; sim_env="";;
3421 esac
3422 if test x"$silent" != x"yes" && test x"$sim_monitor" != x""; then
3423   echo "Setting monitor flags = $sim_monitor" 6>&1
3424 fi
3425 else
3426   sim_monitor=""
3427 fi;
3428
3429 # Check whether --enable-sim-opcode or --disable-sim-opcode was given.
3430 if test "${enable_sim_opcode+set}" = set; then
3431   enableval="$enable_sim_opcode"
3432   case "${enableval}" in
3433   yes|no)       { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-opcode=file\"" >&5
3434 echo "$as_me: error: \"No value supplied for --enable-sim-opcode=file\"" >&2;}
3435    { (exit 1); exit 1; }; };;
3436   *)            if test -f "${srcdir}/${enableval}"; then
3437                   sim_opcode="${enableval}"
3438                 elif test -f "${srcdir}/dc-${enableval}"; then
3439                   sim_opcode="dc-${enableval}"
3440                 else
3441                   { { echo "$as_me:$LINENO: error: \"File $enableval is not an opcode rules file\"" >&5
3442 echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;}
3443    { (exit 1); exit 1; }; };
3444                   sim_opcode="dc-complex"
3445                 fi;;
3446 esac
3447 if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then
3448   echo "Setting opcode flags = $sim_opcode" 6>&1
3449 fi
3450 else
3451   sim_opcode="dc-complex"
3452 if test x"$silent" != x"yes"; then
3453   echo "Setting opcode flags = $sim_opcode"
3454 fi
3455 fi;
3456
3457 # Check whether --enable-sim-packages or --disable-sim-packages was given.
3458 if test "${enable_sim_packages+set}" = set; then
3459   enableval="$enable_sim_packages"
3460   packages=disklabel
3461 case "${enableval}" in
3462   yes)  ;;
3463   no)   { { echo "$as_me:$LINENO: error: \"List of packages must be specified for --enable-sim-packages\"" >&5
3464 echo "$as_me: error: \"List of packages must be specified for --enable-sim-packages\"" >&2;}
3465    { (exit 1); exit 1; }; }; packages="";;
3466   ,*)   packages="${packages}${enableval}";;
3467   *,)   packages="${enableval}${packages}";;
3468   *)    packages="${enableval}"'';;
3469 esac
3470 sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3471 sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
3472 if test x"$silent" != x"yes" && test x"$packages" != x""; then
3473   echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3474 fi
3475 else
3476   packages=disklabel
3477 sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3478 sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
3479 if test x"$silent" != x"yes"; then
3480   echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3481 fi
3482 fi;
3483
3484 # Check whether --enable-sim-regparm or --disable-sim-regparm was given.
3485 if test "${enable_sim_regparm+set}" = set; then
3486   enableval="$enable_sim_regparm"
3487   case "${enableval}" in
3488   0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) sim_regparm="-DWITH_REGPARM=${enableval}";;
3489   no)                            sim_regparm="" ;;
3490   yes)                           sim_regparm="-DWITH_REGPARM=3";;
3491   *)   { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&5
3492 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&2;}
3493    { (exit 1); exit 1; }; }; sim_regparm="";;
3494 esac
3495 if test x"$silent" != x"yes" && test x"$sim_regparm" != x""; then
3496   echo "Setting regparm flags = $sim_regparm" 6>&1
3497 fi
3498 else
3499   sim_regparm=""
3500 fi;
3501
3502 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
3503 if test "${enable_sim_reserved_bits+set}" = set; then
3504   enableval="$enable_sim_reserved_bits"
3505   case "${enableval}" in
3506   yes)  sim_reserved="-DWITH_RESERVED_BITS=1";;
3507   no)   sim_reserved="-DWITH_RESERVED_BITS=0";;
3508   *)    { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
3509 echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
3510    { (exit 1); exit 1; }; }; sim_reserved="";;
3511 esac
3512 if test x"$silent" != x"yes" && test x"$sim_reserved" != x""; then
3513   echo "Setting reserved flags = $sim_reserved" 6>&1
3514 fi
3515 else
3516   sim_reserved=""
3517 fi;
3518
3519 # Check whether --enable-sim-smp or --disable-sim-smp was given.
3520 if test "${enable_sim_smp+set}" = set; then
3521   enableval="$enable_sim_smp"
3522   case "${enableval}" in
3523   yes)  sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
3524   no)   sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
3525   *)    sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
3526 esac
3527 if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
3528   echo "Setting smp flags = $sim_smp" 6>&1
3529 fi
3530 else
3531   sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5"
3532 if test x"$silent" != x"yes"; then
3533   echo "Setting smp flags = $sim_smp" 6>&1
3534 fi
3535 fi;
3536
3537 # Check whether --enable-sim-stdcall or --disable-sim-stdcall was given.
3538 if test "${enable_sim_stdcall+set}" = set; then
3539   enableval="$enable_sim_stdcall"
3540   case "${enableval}" in
3541   no)           sim_stdcall="" ;;
3542   std*)         sim_stdcall="-DWITH_STDCALL=1";;
3543   yes)          sim_stdcall="-DWITH_STDCALL=1";;
3544   *)   { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&5
3545 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&2;}
3546    { (exit 1); exit 1; }; }; sim_stdcall="";;
3547 esac
3548 if test x"$silent" != x"yes" && test x"$sim_stdcall" != x""; then
3549   echo "Setting function call flags = $sim_stdcall" 6>&1
3550 fi
3551 else
3552   sim_stdcall=""
3553 fi;
3554
3555 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3556 if test "${enable_sim_stdio+set}" = set; then
3557   enableval="$enable_sim_stdio"
3558   case "${enableval}" in
3559   yes)  sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
3560   no)   sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
3561   *)    { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
3562 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
3563    { (exit 1); exit 1; }; }; sim_stdio="";;
3564 esac
3565 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
3566   echo "Setting stdio flags = $sim_stdio" 6>&1
3567 fi
3568 else
3569   sim_stdio=""
3570 fi;
3571
3572 # Check whether --enable-sim-switch or --disable-sim-switch was given.
3573 if test "${enable_sim_switch+set}" = set; then
3574   enableval="$enable_sim_switch"
3575   case "${enableval}" in
3576   yes)  sim_switch="-s";;
3577   no)   sim_switch="";;
3578   *)    { { echo "$as_me:$LINENO: error: \"--enable-sim-switch does not take a value\"" >&5
3579 echo "$as_me: error: \"--enable-sim-switch does not take a value\"" >&2;}
3580    { (exit 1); exit 1; }; }; sim_switch="";;
3581 esac
3582 if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then
3583   echo "Setting switch flags = $sim_switch" 6>&1
3584 fi
3585 else
3586   sim_switch="";
3587 if test x"$silent" != x"yes"; then
3588   echo "Setting switch flags = $sim_switch" 6>&1
3589 fi
3590 fi;
3591
3592 # Check whether --enable-sim-timebase or --disable-sim-timebase was given.
3593 if test "${enable_sim_timebase+set}" = set; then
3594   enableval="$enable_sim_timebase"
3595   case "${enableval}" in
3596   yes)  sim_timebase="-DWITH_TIME_BASE=1";;
3597   no)   sim_timebase="-DWITH_TIME_BASE=0";;
3598   *)    { { echo "$as_me:$LINENO: error: \"--enable-sim-timebase does not take a value\"" >&5
3599 echo "$as_me: error: \"--enable-sim-timebase does not take a value\"" >&2;}
3600    { (exit 1); exit 1; }; }; sim_timebase="";;
3601 esac
3602 if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then
3603   echo "Setting timebase flags = $sim_timebase" 6>&1
3604 fi
3605 else
3606   sim_timebase=""
3607 fi;
3608
3609 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3610 if test "${enable_sim_trace+set}" = set; then
3611   enableval="$enable_sim_trace"
3612   case "${enableval}" in
3613   yes)  sim_trace="-DWITH_TRACE=1";;
3614   no)   sim_trace="-DWITH_TRACE=0";;
3615   *)    { { echo "$as_me:$LINENO: error: \"--enable-sim-trace does not take a value\"" >&5
3616 echo "$as_me: error: \"--enable-sim-trace does not take a value\"" >&2;}
3617    { (exit 1); exit 1; }; }; sim_trace="";;
3618 esac
3619 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
3620   echo "Setting trace flags = $sim_trace" 6>&1
3621 fi
3622 else
3623   sim_trace=""
3624 fi;
3625
3626 # Check whether --enable-sim-warnings or --disable-sim-warnings was given.
3627 if test "${enable_sim_warnings+set}" = set; then
3628   enableval="$enable_sim_warnings"
3629   case "${enableval}" in
3630   yes)  sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
3631   no)   sim_warnings="-w";;
3632   *)    sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3633 esac
3634 if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then
3635   echo "Setting warning flags = $sim_warnings" 6>&1
3636 fi
3637 else
3638   sim_warnings=""
3639 fi;
3640
3641 # Check whether --enable-sim-xor-endian or --disable-sim-xor-endian was given.
3642 if test "${enable_sim_xor_endian+set}" = set; then
3643   enableval="$enable_sim_xor_endian"
3644   case "${enableval}" in
3645   yes)  sim_xor_endian="-DWITH_XOR_ENDIAN=8";;
3646   no)   sim_xor_endian="-DWITH_XOR_ENDIAN=0";;
3647   *)    sim_xor_endian="-DWITH_XOR_ENDIAN=$enableval";;
3648 esac
3649 if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then
3650   echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
3651 fi
3652 else
3653   sim_xor_endian=""
3654 fi;
3655
3656
3657
3658 # Check whether --with-pkgversion or --without-pkgversion was given.
3659 if test "${with_pkgversion+set}" = set; then
3660   withval="$with_pkgversion"
3661   case "$withval" in
3662       yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
3663 echo "$as_me: error: package version not specified" >&2;}
3664    { (exit 1); exit 1; }; } ;;
3665       no)  PKGVERSION= ;;
3666       *)   PKGVERSION="($withval) " ;;
3667      esac
3668 else
3669   PKGVERSION="(GDB) "
3670
3671 fi;
3672
3673
3674
3675
3676 # Check whether --with-bugurl or --without-bugurl was given.
3677 if test "${with_bugurl+set}" = set; then
3678   withval="$with_bugurl"
3679   case "$withval" in
3680       yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
3681 echo "$as_me: error: bug URL not specified" >&2;}
3682    { (exit 1); exit 1; }; } ;;
3683       no)  BUGURL=
3684            ;;
3685       *)   BUGURL="$withval"
3686            ;;
3687      esac
3688 else
3689   BUGURL="http://www.gnu.org/software/gdb/bugs/"
3690
3691 fi;
3692   case ${BUGURL} in
3693   "")
3694     REPORT_BUGS_TO=
3695     REPORT_BUGS_TEXI=
3696     ;;
3697   *)
3698     REPORT_BUGS_TO="<$BUGURL>"
3699     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
3700     ;;
3701   esac;
3702
3703
3704
3705
3706 cat >>confdefs.h <<_ACEOF
3707 #define PKGVERSION "$PKGVERSION"
3708 _ACEOF
3709
3710
3711 cat >>confdefs.h <<_ACEOF
3712 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3713 _ACEOF
3714
3715
3716 # Make sure we can run config.sub.
3717 $ac_config_sub sun4 >/dev/null 2>&1 ||
3718   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3719 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3720    { (exit 1); exit 1; }; }
3721
3722 echo "$as_me:$LINENO: checking build system type" >&5
3723 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3724 if test "${ac_cv_build+set}" = set; then
3725   echo $ECHO_N "(cached) $ECHO_C" >&6
3726 else
3727   ac_cv_build_alias=$build_alias
3728 test -z "$ac_cv_build_alias" &&
3729   ac_cv_build_alias=`$ac_config_guess`
3730 test -z "$ac_cv_build_alias" &&
3731   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3732 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3733    { (exit 1); exit 1; }; }
3734 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3735   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3736 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3737    { (exit 1); exit 1; }; }
3738
3739 fi
3740 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3741 echo "${ECHO_T}$ac_cv_build" >&6
3742 build=$ac_cv_build
3743 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3744 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3745 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3746
3747
3748 echo "$as_me:$LINENO: checking host system type" >&5
3749 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3750 if test "${ac_cv_host+set}" = set; then
3751   echo $ECHO_N "(cached) $ECHO_C" >&6
3752 else
3753   ac_cv_host_alias=$host_alias
3754 test -z "$ac_cv_host_alias" &&
3755   ac_cv_host_alias=$ac_cv_build_alias
3756 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3757   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3758 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3759    { (exit 1); exit 1; }; }
3760
3761 fi
3762 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3763 echo "${ECHO_T}$ac_cv_host" >&6
3764 host=$ac_cv_host
3765 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3766 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3767 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3768
3769
3770 echo "$as_me:$LINENO: checking target system type" >&5
3771 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3772 if test "${ac_cv_target+set}" = set; then
3773   echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775   ac_cv_target_alias=$target_alias
3776 test "x$ac_cv_target_alias" = "x" &&
3777   ac_cv_target_alias=$ac_cv_host_alias
3778 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3779   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3780 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3781    { (exit 1); exit 1; }; }
3782
3783 fi
3784 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3785 echo "${ECHO_T}$ac_cv_target" >&6
3786 target=$ac_cv_target
3787 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3788 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3789 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3790
3791
3792 # The aliases save the names the user supplied, while $host etc.
3793 # will get canonicalized.
3794 test -n "$target_alias" &&
3795   test "$program_prefix$program_suffix$program_transform_name" = \
3796     NONENONEs,x,x, &&
3797   program_prefix=${target_alias}-
3798 test "$program_prefix" != NONE &&
3799   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3800 # Use a double $ so make ignores it.
3801 test "$program_suffix" != NONE &&
3802   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3803 # Double any \ or $.  echo might interpret backslashes.
3804 # By default was `s,x,x', remove it if useless.
3805 cat <<\_ACEOF >conftest.sed
3806 s/[\\$]/&&/g;s/;s,x,x,$//
3807 _ACEOF
3808 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3809 rm conftest.sed
3810
3811
3812 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
3813 # using the same condition.
3814 ac_ext=c
3815 ac_cpp='$CPP $CPPFLAGS'
3816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3819 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3820 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3821 # On Suns, sometimes $CPP names a directory.
3822 if test -n "$CPP" && test -d "$CPP"; then
3823   CPP=
3824 fi
3825 if test -z "$CPP"; then
3826   if test "${ac_cv_prog_CPP+set}" = set; then
3827   echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829       # Double quotes because CPP needs to be expanded
3830     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3831     do
3832       ac_preproc_ok=false
3833 for ac_c_preproc_warn_flag in '' yes
3834 do
3835   # Use a header file that comes with gcc, so configuring glibc
3836   # with a fresh cross-compiler works.
3837   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3838   # <limits.h> exists even on freestanding compilers.
3839   # On the NeXT, cc -E runs the code through the compiler's parser,
3840   # not just through cpp. "Syntax error" is here to catch this case.
3841   cat >conftest.$ac_ext <<_ACEOF
3842 /* confdefs.h.  */
3843 _ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h.  */
3847 #ifdef __STDC__
3848 # include <limits.h>
3849 #else
3850 # include <assert.h>
3851 #endif
3852                      Syntax error
3853 _ACEOF
3854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3855   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3856   ac_status=$?
3857   grep -v '^ *+' conftest.er1 >conftest.err
3858   rm -f conftest.er1
3859   cat conftest.err >&5
3860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861   (exit $ac_status); } >/dev/null; then
3862   if test -s conftest.err; then
3863     ac_cpp_err=$ac_c_preproc_warn_flag
3864     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3865   else
3866     ac_cpp_err=
3867   fi
3868 else
3869   ac_cpp_err=yes
3870 fi
3871 if test -z "$ac_cpp_err"; then
3872   :
3873 else
3874   echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3876
3877   # Broken: fails on valid input.
3878 continue
3879 fi
3880 rm -f conftest.err conftest.$ac_ext
3881
3882   # OK, works on sane cases.  Now check whether non-existent headers
3883   # can be detected and how.
3884   cat >conftest.$ac_ext <<_ACEOF
3885 /* confdefs.h.  */
3886 _ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h.  */
3890 #include <ac_nonexistent.h>
3891 _ACEOF
3892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3893   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3894   ac_status=$?
3895   grep -v '^ *+' conftest.er1 >conftest.err
3896   rm -f conftest.er1
3897   cat conftest.err >&5
3898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899   (exit $ac_status); } >/dev/null; then
3900   if test -s conftest.err; then
3901     ac_cpp_err=$ac_c_preproc_warn_flag
3902     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3903   else
3904     ac_cpp_err=
3905   fi
3906 else
3907   ac_cpp_err=yes
3908 fi
3909 if test -z "$ac_cpp_err"; then
3910   # Broken: success on invalid input.
3911 continue
3912 else
3913   echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3915
3916   # Passes both tests.
3917 ac_preproc_ok=:
3918 break
3919 fi
3920 rm -f conftest.err conftest.$ac_ext
3921
3922 done
3923 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3924 rm -f conftest.err conftest.$ac_ext
3925 if $ac_preproc_ok; then
3926   break
3927 fi
3928
3929     done
3930     ac_cv_prog_CPP=$CPP
3931
3932 fi
3933   CPP=$ac_cv_prog_CPP
3934 else
3935   ac_cv_prog_CPP=$CPP
3936 fi
3937 echo "$as_me:$LINENO: result: $CPP" >&5
3938 echo "${ECHO_T}$CPP" >&6
3939 ac_preproc_ok=false
3940 for ac_c_preproc_warn_flag in '' yes
3941 do
3942   # Use a header file that comes with gcc, so configuring glibc
3943   # with a fresh cross-compiler works.
3944   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3945   # <limits.h> exists even on freestanding compilers.
3946   # On the NeXT, cc -E runs the code through the compiler's parser,
3947   # not just through cpp. "Syntax error" is here to catch this case.
3948   cat >conftest.$ac_ext <<_ACEOF
3949 /* confdefs.h.  */
3950 _ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h.  */
3954 #ifdef __STDC__
3955 # include <limits.h>
3956 #else
3957 # include <assert.h>
3958 #endif
3959                      Syntax error
3960 _ACEOF
3961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3962   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3963   ac_status=$?
3964   grep -v '^ *+' conftest.er1 >conftest.err
3965   rm -f conftest.er1
3966   cat conftest.err >&5
3967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968   (exit $ac_status); } >/dev/null; then
3969   if test -s conftest.err; then
3970     ac_cpp_err=$ac_c_preproc_warn_flag
3971     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3972   else
3973     ac_cpp_err=
3974   fi
3975 else
3976   ac_cpp_err=yes
3977 fi
3978 if test -z "$ac_cpp_err"; then
3979   :
3980 else
3981   echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3983
3984   # Broken: fails on valid input.
3985 continue
3986 fi
3987 rm -f conftest.err conftest.$ac_ext
3988
3989   # OK, works on sane cases.  Now check whether non-existent headers
3990   # can be detected and how.
3991   cat >conftest.$ac_ext <<_ACEOF
3992 /* confdefs.h.  */
3993 _ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h.  */
3997 #include <ac_nonexistent.h>
3998 _ACEOF
3999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4000   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4001   ac_status=$?
4002   grep -v '^ *+' conftest.er1 >conftest.err
4003   rm -f conftest.er1
4004   cat conftest.err >&5
4005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006   (exit $ac_status); } >/dev/null; then
4007   if test -s conftest.err; then
4008     ac_cpp_err=$ac_c_preproc_warn_flag
4009     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4010   else
4011     ac_cpp_err=
4012   fi
4013 else
4014   ac_cpp_err=yes
4015 fi
4016 if test -z "$ac_cpp_err"; then
4017   # Broken: success on invalid input.
4018 continue
4019 else
4020   echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4022
4023   # Passes both tests.
4024 ac_preproc_ok=:
4025 break
4026 fi
4027 rm -f conftest.err conftest.$ac_ext
4028
4029 done
4030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4031 rm -f conftest.err conftest.$ac_ext
4032 if $ac_preproc_ok; then
4033   :
4034 else
4035   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4036 See \`config.log' for more details." >&5
4037 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4038 See \`config.log' for more details." >&2;}
4039    { (exit 1); exit 1; }; }
4040 fi
4041
4042 ac_ext=c
4043 ac_cpp='$CPP $CPPFLAGS'
4044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4047
4048
4049 echo "$as_me:$LINENO: checking for egrep" >&5
4050 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4051 if test "${ac_cv_prog_egrep+set}" = set; then
4052   echo $ECHO_N "(cached) $ECHO_C" >&6
4053 else
4054   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4055     then ac_cv_prog_egrep='grep -E'
4056     else ac_cv_prog_egrep='egrep'
4057     fi
4058 fi
4059 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4060 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4061  EGREP=$ac_cv_prog_egrep
4062
4063
4064 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4065 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4066 if test "${ac_cv_header_stdc+set}" = set; then
4067   echo $ECHO_N "(cached) $ECHO_C" >&6
4068 else
4069   cat >conftest.$ac_ext <<_ACEOF
4070 /* confdefs.h.  */
4071 _ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h.  */
4075 #include <stdlib.h>
4076 #include <stdarg.h>
4077 #include <string.h>
4078 #include <float.h>
4079
4080 int
4081 main ()
4082 {
4083
4084   ;
4085   return 0;
4086 }
4087 _ACEOF
4088 rm -f conftest.$ac_objext
4089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4090   (eval $ac_compile) 2>conftest.er1
4091   ac_status=$?
4092   grep -v '^ *+' conftest.er1 >conftest.err
4093   rm -f conftest.er1
4094   cat conftest.err >&5
4095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096   (exit $ac_status); } &&
4097          { ac_try='test -z "$ac_c_werror_flag"
4098                          || test ! -s conftest.err'
4099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100   (eval $ac_try) 2>&5
4101   ac_status=$?
4102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103   (exit $ac_status); }; } &&
4104          { ac_try='test -s conftest.$ac_objext'
4105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106   (eval $ac_try) 2>&5
4107   ac_status=$?
4108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109   (exit $ac_status); }; }; then
4110   ac_cv_header_stdc=yes
4111 else
4112   echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4114
4115 ac_cv_header_stdc=no
4116 fi
4117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4118
4119 if test $ac_cv_header_stdc = yes; then
4120   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4121   cat >conftest.$ac_ext <<_ACEOF
4122 /* confdefs.h.  */
4123 _ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h.  */
4127 #include <string.h>
4128
4129 _ACEOF
4130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4131   $EGREP "memchr" >/dev/null 2>&1; then
4132   :
4133 else
4134   ac_cv_header_stdc=no
4135 fi
4136 rm -f conftest*
4137
4138 fi
4139
4140 if test $ac_cv_header_stdc = yes; then
4141   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4142   cat >conftest.$ac_ext <<_ACEOF
4143 /* confdefs.h.  */
4144 _ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h.  */
4148 #include <stdlib.h>
4149
4150 _ACEOF
4151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4152   $EGREP "free" >/dev/null 2>&1; then
4153   :
4154 else
4155   ac_cv_header_stdc=no
4156 fi
4157 rm -f conftest*
4158
4159 fi
4160
4161 if test $ac_cv_header_stdc = yes; then
4162   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4163   if test "$cross_compiling" = yes; then
4164   :
4165 else
4166   cat >conftest.$ac_ext <<_ACEOF
4167 /* confdefs.h.  */
4168 _ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h.  */
4172 #include <ctype.h>
4173 #if ((' ' & 0x0FF) == 0x020)
4174 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4175 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4176 #else
4177 # define ISLOWER(c) \
4178                    (('a' <= (c) && (c) <= 'i') \
4179                      || ('j' <= (c) && (c) <= 'r') \
4180                      || ('s' <= (c) && (c) <= 'z'))
4181 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4182 #endif
4183
4184 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4185 int
4186 main ()
4187 {
4188   int i;
4189   for (i = 0; i < 256; i++)
4190     if (XOR (islower (i), ISLOWER (i))
4191         || toupper (i) != TOUPPER (i))
4192       exit(2);
4193   exit (0);
4194 }
4195 _ACEOF
4196 rm -f conftest$ac_exeext
4197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4198   (eval $ac_link) 2>&5
4199   ac_status=$?
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203   (eval $ac_try) 2>&5
4204   ac_status=$?
4205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206   (exit $ac_status); }; }; then
4207   :
4208 else
4209   echo "$as_me: program exited with status $ac_status" >&5
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4212
4213 ( exit $ac_status )
4214 ac_cv_header_stdc=no
4215 fi
4216 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4217 fi
4218 fi
4219 fi
4220 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4221 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4222 if test $ac_cv_header_stdc = yes; then
4223
4224 cat >>confdefs.h <<\_ACEOF
4225 #define STDC_HEADERS 1
4226 _ACEOF
4227
4228 fi
4229
4230 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4241                   inttypes.h stdint.h unistd.h
4242 do
4243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4244 echo "$as_me:$LINENO: checking for $ac_header" >&5
4245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249   cat >conftest.$ac_ext <<_ACEOF
4250 /* confdefs.h.  */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h.  */
4255 $ac_includes_default
4256
4257 #include <$ac_header>
4258 _ACEOF
4259 rm -f conftest.$ac_objext
4260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4261   (eval $ac_compile) 2>conftest.er1
4262   ac_status=$?
4263   grep -v '^ *+' conftest.er1 >conftest.err
4264   rm -f conftest.er1
4265   cat conftest.err >&5
4266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267   (exit $ac_status); } &&
4268          { ac_try='test -z "$ac_c_werror_flag"
4269                          || test ! -s conftest.err'
4270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271   (eval $ac_try) 2>&5
4272   ac_status=$?
4273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274   (exit $ac_status); }; } &&
4275          { ac_try='test -s conftest.$ac_objext'
4276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277   (eval $ac_try) 2>&5
4278   ac_status=$?
4279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280   (exit $ac_status); }; }; then
4281   eval "$as_ac_Header=yes"
4282 else
4283   echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4285
4286 eval "$as_ac_Header=no"
4287 fi
4288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4289 fi
4290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4293   cat >>confdefs.h <<_ACEOF
4294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4295 _ACEOF
4296
4297 fi
4298
4299 done
4300
4301
4302 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
4303 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
4304 if test "${ac_cv_search_zlibVersion+set}" = set; then
4305   echo $ECHO_N "(cached) $ECHO_C" >&6
4306 else
4307   ac_func_search_save_LIBS=$LIBS
4308 ac_cv_search_zlibVersion=no
4309 cat >conftest.$ac_ext <<_ACEOF
4310 /* confdefs.h.  */
4311 _ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h.  */
4315
4316 /* Override any gcc2 internal prototype to avoid an error.  */
4317 #ifdef __cplusplus
4318 extern "C"
4319 #endif
4320 /* We use char because int might match the return type of a gcc2
4321    builtin and then its argument prototype would still apply.  */
4322 char zlibVersion ();
4323 int
4324 main ()
4325 {
4326 zlibVersion ();
4327   ;
4328   return 0;
4329 }
4330 _ACEOF
4331 rm -f conftest.$ac_objext conftest$ac_exeext
4332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4333   (eval $ac_link) 2>conftest.er1
4334   ac_status=$?
4335   grep -v '^ *+' conftest.er1 >conftest.err
4336   rm -f conftest.er1
4337   cat conftest.err >&5
4338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); } &&
4340          { ac_try='test -z "$ac_c_werror_flag"
4341                          || test ! -s conftest.err'
4342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343   (eval $ac_try) 2>&5
4344   ac_status=$?
4345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346   (exit $ac_status); }; } &&
4347          { ac_try='test -s conftest$ac_exeext'
4348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349   (eval $ac_try) 2>&5
4350   ac_status=$?
4351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352   (exit $ac_status); }; }; then
4353   ac_cv_search_zlibVersion="none required"
4354 else
4355   echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4357
4358 fi
4359 rm -f conftest.err conftest.$ac_objext \
4360       conftest$ac_exeext conftest.$ac_ext
4361 if test "$ac_cv_search_zlibVersion" = no; then
4362   for ac_lib in z; do
4363     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4364     cat >conftest.$ac_ext <<_ACEOF
4365 /* confdefs.h.  */
4366 _ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h.  */
4370
4371 /* Override any gcc2 internal prototype to avoid an error.  */
4372 #ifdef __cplusplus
4373 extern "C"
4374 #endif
4375 /* We use char because int might match the return type of a gcc2
4376    builtin and then its argument prototype would still apply.  */
4377 char zlibVersion ();
4378 int
4379 main ()
4380 {
4381 zlibVersion ();
4382   ;
4383   return 0;
4384 }
4385 _ACEOF
4386 rm -f conftest.$ac_objext conftest$ac_exeext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4388   (eval $ac_link) 2>conftest.er1
4389   ac_status=$?
4390   grep -v '^ *+' conftest.er1 >conftest.err
4391   rm -f conftest.er1
4392   cat conftest.err >&5
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); } &&
4395          { ac_try='test -z "$ac_c_werror_flag"
4396                          || test ! -s conftest.err'
4397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398   (eval $ac_try) 2>&5
4399   ac_status=$?
4400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); }; } &&
4402          { ac_try='test -s conftest$ac_exeext'
4403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404   (eval $ac_try) 2>&5
4405   ac_status=$?
4406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407   (exit $ac_status); }; }; then
4408   ac_cv_search_zlibVersion="-l$ac_lib"
4409 break
4410 else
4411   echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4413
4414 fi
4415 rm -f conftest.err conftest.$ac_objext \
4416       conftest$ac_exeext conftest.$ac_ext
4417   done
4418 fi
4419 LIBS=$ac_func_search_save_LIBS
4420 fi
4421 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
4422 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
4423 if test "$ac_cv_search_zlibVersion" != no; then
4424   test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
4425
4426 for ac_header in zlib.h
4427 do
4428 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4430   echo "$as_me:$LINENO: checking for $ac_header" >&5
4431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4433   echo $ECHO_N "(cached) $ECHO_C" >&6
4434 fi
4435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4437 else
4438   # Is the header compilable?
4439 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4441 cat >conftest.$ac_ext <<_ACEOF
4442 /* confdefs.h.  */
4443 _ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h.  */
4447 $ac_includes_default
4448 #include <$ac_header>
4449 _ACEOF
4450 rm -f conftest.$ac_objext
4451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452   (eval $ac_compile) 2>conftest.er1
4453   ac_status=$?
4454   grep -v '^ *+' conftest.er1 >conftest.err
4455   rm -f conftest.er1
4456   cat conftest.err >&5
4457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458   (exit $ac_status); } &&
4459          { ac_try='test -z "$ac_c_werror_flag"
4460                          || test ! -s conftest.err'
4461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462   (eval $ac_try) 2>&5
4463   ac_status=$?
4464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465   (exit $ac_status); }; } &&
4466          { ac_try='test -s conftest.$ac_objext'
4467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468   (eval $ac_try) 2>&5
4469   ac_status=$?
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); }; }; then
4472   ac_header_compiler=yes
4473 else
4474   echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4476
4477 ac_header_compiler=no
4478 fi
4479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4480 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4481 echo "${ECHO_T}$ac_header_compiler" >&6
4482
4483 # Is the header present?
4484 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4486 cat >conftest.$ac_ext <<_ACEOF
4487 /* confdefs.h.  */
4488 _ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h.  */
4492 #include <$ac_header>
4493 _ACEOF
4494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4495   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4496   ac_status=$?
4497   grep -v '^ *+' conftest.er1 >conftest.err
4498   rm -f conftest.er1
4499   cat conftest.err >&5
4500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501   (exit $ac_status); } >/dev/null; then
4502   if test -s conftest.err; then
4503     ac_cpp_err=$ac_c_preproc_warn_flag
4504     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4505   else
4506     ac_cpp_err=
4507   fi
4508 else
4509   ac_cpp_err=yes
4510 fi
4511 if test -z "$ac_cpp_err"; then
4512   ac_header_preproc=yes
4513 else
4514   echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4516
4517   ac_header_preproc=no
4518 fi
4519 rm -f conftest.err conftest.$ac_ext
4520 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4521 echo "${ECHO_T}$ac_header_preproc" >&6
4522
4523 # So?  What about this header?
4524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4525   yes:no: )
4526     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4527 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4528     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4529 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4530     ac_header_preproc=yes
4531     ;;
4532   no:yes:* )
4533     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4535     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4536 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4537     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4538 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4539     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4540 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4541     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4543     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4544 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4545     (
4546       cat <<\_ASBOX
4547 ## ------------------------------------------ ##
4548 ## Report this to the AC_PACKAGE_NAME lists.  ##
4549 ## ------------------------------------------ ##
4550 _ASBOX
4551     ) |
4552       sed "s/^/$as_me: WARNING:     /" >&2
4553     ;;
4554 esac
4555 echo "$as_me:$LINENO: checking for $ac_header" >&5
4556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4558   echo $ECHO_N "(cached) $ECHO_C" >&6
4559 else
4560   eval "$as_ac_Header=\$ac_header_preproc"
4561 fi
4562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4564
4565 fi
4566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4567   cat >>confdefs.h <<_ACEOF
4568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4569 _ACEOF
4570
4571 fi
4572
4573 done
4574
4575 fi
4576
4577
4578 . ${srcdir}/../../bfd/configure.host
4579
4580 case ${host} in
4581   *mingw32*)
4582
4583 cat >>confdefs.h <<\_ACEOF
4584 #define USE_WIN32API 1
4585 _ACEOF
4586
4587     ;;
4588 esac
4589
4590           ac_config_headers="$ac_config_headers config.h:config.in"
4591
4592
4593
4594 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
4595 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4596 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
4597   echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599   cat >conftest.$ac_ext <<_ACEOF
4600 /* confdefs.h.  */
4601 _ACEOF
4602 cat confdefs.h >>conftest.$ac_ext
4603 cat >>conftest.$ac_ext <<_ACEOF
4604 /* end confdefs.h.  */
4605 $ac_includes_default
4606 int
4607 main ()
4608 {
4609 static struct stat ac_aggr;
4610 if (ac_aggr.st_blksize)
4611 return 0;
4612   ;
4613   return 0;
4614 }
4615 _ACEOF
4616 rm -f conftest.$ac_objext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4618   (eval $ac_compile) 2>conftest.er1
4619   ac_status=$?
4620   grep -v '^ *+' conftest.er1 >conftest.err
4621   rm -f conftest.er1
4622   cat conftest.err >&5
4623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624   (exit $ac_status); } &&
4625          { ac_try='test -z "$ac_c_werror_flag"
4626                          || test ! -s conftest.err'
4627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628   (eval $ac_try) 2>&5
4629   ac_status=$?
4630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631   (exit $ac_status); }; } &&
4632          { ac_try='test -s conftest.$ac_objext'
4633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634   (eval $ac_try) 2>&5
4635   ac_status=$?
4636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637   (exit $ac_status); }; }; then
4638   ac_cv_member_struct_stat_st_blksize=yes
4639 else
4640   echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4642
4643 cat >conftest.$ac_ext <<_ACEOF
4644 /* confdefs.h.  */
4645 _ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h.  */
4649 $ac_includes_default
4650 int
4651 main ()
4652 {
4653 static struct stat ac_aggr;
4654 if (sizeof ac_aggr.st_blksize)
4655 return 0;
4656   ;
4657   return 0;
4658 }
4659 _ACEOF
4660 rm -f conftest.$ac_objext
4661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4662   (eval $ac_compile) 2>conftest.er1
4663   ac_status=$?
4664   grep -v '^ *+' conftest.er1 >conftest.err
4665   rm -f conftest.er1
4666   cat conftest.err >&5
4667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668   (exit $ac_status); } &&
4669          { ac_try='test -z "$ac_c_werror_flag"
4670                          || test ! -s conftest.err'
4671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672   (eval $ac_try) 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); }; } &&
4676          { ac_try='test -s conftest.$ac_objext'
4677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678   (eval $ac_try) 2>&5
4679   ac_status=$?
4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); }; }; then
4682   ac_cv_member_struct_stat_st_blksize=yes
4683 else
4684   echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4686
4687 ac_cv_member_struct_stat_st_blksize=no
4688 fi
4689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4690 fi
4691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4692 fi
4693 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
4694 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4695 if test $ac_cv_member_struct_stat_st_blksize = yes; then
4696
4697 cat >>confdefs.h <<_ACEOF
4698 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
4699 _ACEOF
4700
4701
4702 cat >>confdefs.h <<\_ACEOF
4703 #define HAVE_ST_BLKSIZE 1
4704 _ACEOF
4705
4706 fi
4707
4708
4709 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
4710 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4711 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
4712   echo $ECHO_N "(cached) $ECHO_C" >&6
4713 else
4714   cat >conftest.$ac_ext <<_ACEOF
4715 /* confdefs.h.  */
4716 _ACEOF
4717 cat confdefs.h >>conftest.$ac_ext
4718 cat >>conftest.$ac_ext <<_ACEOF
4719 /* end confdefs.h.  */
4720 $ac_includes_default
4721 int
4722 main ()
4723 {
4724 static struct stat ac_aggr;
4725 if (ac_aggr.st_blocks)
4726 return 0;
4727   ;
4728   return 0;
4729 }
4730 _ACEOF
4731 rm -f conftest.$ac_objext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733   (eval $ac_compile) 2>conftest.er1
4734   ac_status=$?
4735   grep -v '^ *+' conftest.er1 >conftest.err
4736   rm -f conftest.er1
4737   cat conftest.err >&5
4738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739   (exit $ac_status); } &&
4740          { ac_try='test -z "$ac_c_werror_flag"
4741                          || test ! -s conftest.err'
4742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743   (eval $ac_try) 2>&5
4744   ac_status=$?
4745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746   (exit $ac_status); }; } &&
4747          { ac_try='test -s conftest.$ac_objext'
4748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749   (eval $ac_try) 2>&5
4750   ac_status=$?
4751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752   (exit $ac_status); }; }; then
4753   ac_cv_member_struct_stat_st_blocks=yes
4754 else
4755   echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4757
4758 cat >conftest.$ac_ext <<_ACEOF
4759 /* confdefs.h.  */
4760 _ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h.  */
4764 $ac_includes_default
4765 int
4766 main ()
4767 {
4768 static struct stat ac_aggr;
4769 if (sizeof ac_aggr.st_blocks)
4770 return 0;
4771   ;
4772   return 0;
4773 }
4774 _ACEOF
4775 rm -f conftest.$ac_objext
4776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4777   (eval $ac_compile) 2>conftest.er1
4778   ac_status=$?
4779   grep -v '^ *+' conftest.er1 >conftest.err
4780   rm -f conftest.er1
4781   cat conftest.err >&5
4782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783   (exit $ac_status); } &&
4784          { ac_try='test -z "$ac_c_werror_flag"
4785                          || test ! -s conftest.err'
4786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787   (eval $ac_try) 2>&5
4788   ac_status=$?
4789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790   (exit $ac_status); }; } &&
4791          { ac_try='test -s conftest.$ac_objext'
4792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793   (eval $ac_try) 2>&5
4794   ac_status=$?
4795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796   (exit $ac_status); }; }; then
4797   ac_cv_member_struct_stat_st_blocks=yes
4798 else
4799   echo "$as_me: failed program was:" >&5
4800 sed 's/^/| /' conftest.$ac_ext >&5
4801
4802 ac_cv_member_struct_stat_st_blocks=no
4803 fi
4804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4805 fi
4806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4807 fi
4808 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
4809 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4810 if test $ac_cv_member_struct_stat_st_blocks = yes; then
4811
4812 cat >>confdefs.h <<_ACEOF
4813 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
4814 _ACEOF
4815
4816
4817 cat >>confdefs.h <<\_ACEOF
4818 #define HAVE_ST_BLOCKS 1
4819 _ACEOF
4820
4821 else
4822   case $LIBOBJS in
4823     "fileblocks.$ac_objext"   | \
4824   *" fileblocks.$ac_objext"   | \
4825     "fileblocks.$ac_objext "* | \
4826   *" fileblocks.$ac_objext "* ) ;;
4827   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
4828 esac
4829
4830 fi
4831
4832
4833
4834 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
4835 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
4836 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
4837   echo $ECHO_N "(cached) $ECHO_C" >&6
4838 else
4839   cat >conftest.$ac_ext <<_ACEOF
4840 /* confdefs.h.  */
4841 _ACEOF
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h.  */
4845 $ac_includes_default
4846 int
4847 main ()
4848 {
4849 static struct stat ac_aggr;
4850 if (ac_aggr.st_rdev)
4851 return 0;
4852   ;
4853   return 0;
4854 }
4855 _ACEOF
4856 rm -f conftest.$ac_objext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858   (eval $ac_compile) 2>conftest.er1
4859   ac_status=$?
4860   grep -v '^ *+' conftest.er1 >conftest.err
4861   rm -f conftest.er1
4862   cat conftest.err >&5
4863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864   (exit $ac_status); } &&
4865          { ac_try='test -z "$ac_c_werror_flag"
4866                          || test ! -s conftest.err'
4867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868   (eval $ac_try) 2>&5
4869   ac_status=$?
4870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871   (exit $ac_status); }; } &&
4872          { ac_try='test -s conftest.$ac_objext'
4873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874   (eval $ac_try) 2>&5
4875   ac_status=$?
4876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877   (exit $ac_status); }; }; then
4878   ac_cv_member_struct_stat_st_rdev=yes
4879 else
4880   echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4882
4883 cat >conftest.$ac_ext <<_ACEOF
4884 /* confdefs.h.  */
4885 _ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h.  */
4889 $ac_includes_default
4890 int
4891 main ()
4892 {
4893 static struct stat ac_aggr;
4894 if (sizeof ac_aggr.st_rdev)
4895 return 0;
4896   ;
4897   return 0;
4898 }
4899 _ACEOF
4900 rm -f conftest.$ac_objext
4901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4902   (eval $ac_compile) 2>conftest.er1
4903   ac_status=$?
4904   grep -v '^ *+' conftest.er1 >conftest.err
4905   rm -f conftest.er1
4906   cat conftest.err >&5
4907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908   (exit $ac_status); } &&
4909          { ac_try='test -z "$ac_c_werror_flag"
4910                          || test ! -s conftest.err'
4911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912   (eval $ac_try) 2>&5
4913   ac_status=$?
4914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915   (exit $ac_status); }; } &&
4916          { ac_try='test -s conftest.$ac_objext'
4917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918   (eval $ac_try) 2>&5
4919   ac_status=$?
4920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); }; }; then
4922   ac_cv_member_struct_stat_st_rdev=yes
4923 else
4924   echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4926
4927 ac_cv_member_struct_stat_st_rdev=no
4928 fi
4929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4930 fi
4931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4932 fi
4933 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
4934 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
4935 if test $ac_cv_member_struct_stat_st_rdev = yes; then
4936
4937 cat >>confdefs.h <<_ACEOF
4938 #define HAVE_STRUCT_STAT_ST_RDEV 1
4939 _ACEOF
4940
4941
4942 cat >>confdefs.h <<\_ACEOF
4943 #define HAVE_ST_RDEV 1
4944 _ACEOF
4945
4946 fi
4947
4948
4949 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4950 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4951 if test "${ac_cv_struct_tm+set}" = set; then
4952   echo $ECHO_N "(cached) $ECHO_C" >&6
4953 else
4954   cat >conftest.$ac_ext <<_ACEOF
4955 /* confdefs.h.  */
4956 _ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h.  */
4960 #include <sys/types.h>
4961 #include <time.h>
4962
4963 int
4964 main ()
4965 {
4966 struct tm *tp; tp->tm_sec;
4967   ;
4968   return 0;
4969 }
4970 _ACEOF
4971 rm -f conftest.$ac_objext
4972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4973   (eval $ac_compile) 2>conftest.er1
4974   ac_status=$?
4975   grep -v '^ *+' conftest.er1 >conftest.err
4976   rm -f conftest.er1
4977   cat conftest.err >&5
4978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979   (exit $ac_status); } &&
4980          { ac_try='test -z "$ac_c_werror_flag"
4981                          || test ! -s conftest.err'
4982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983   (eval $ac_try) 2>&5
4984   ac_status=$?
4985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986   (exit $ac_status); }; } &&
4987          { ac_try='test -s conftest.$ac_objext'
4988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989   (eval $ac_try) 2>&5
4990   ac_status=$?
4991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992   (exit $ac_status); }; }; then
4993   ac_cv_struct_tm=time.h
4994 else
4995   echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
4997
4998 ac_cv_struct_tm=sys/time.h
4999 fi
5000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5001 fi
5002 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5003 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5004 if test $ac_cv_struct_tm = sys/time.h; then
5005
5006 cat >>confdefs.h <<\_ACEOF
5007 #define TM_IN_SYS_TIME 1
5008 _ACEOF
5009
5010 fi
5011
5012 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5013 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5014 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5015   echo $ECHO_N "(cached) $ECHO_C" >&6
5016 else
5017   cat >conftest.$ac_ext <<_ACEOF
5018 /* confdefs.h.  */
5019 _ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h.  */
5023 #include <sys/types.h>
5024 #include <$ac_cv_struct_tm>
5025
5026
5027 int
5028 main ()
5029 {
5030 static struct tm ac_aggr;
5031 if (ac_aggr.tm_zone)
5032 return 0;
5033   ;
5034   return 0;
5035 }
5036 _ACEOF
5037 rm -f conftest.$ac_objext
5038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5039   (eval $ac_compile) 2>conftest.er1
5040   ac_status=$?
5041   grep -v '^ *+' conftest.er1 >conftest.err
5042   rm -f conftest.er1
5043   cat conftest.err >&5
5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045   (exit $ac_status); } &&
5046          { ac_try='test -z "$ac_c_werror_flag"
5047                          || test ! -s conftest.err'
5048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5049   (eval $ac_try) 2>&5
5050   ac_status=$?
5051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052   (exit $ac_status); }; } &&
5053          { ac_try='test -s conftest.$ac_objext'
5054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055   (eval $ac_try) 2>&5
5056   ac_status=$?
5057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058   (exit $ac_status); }; }; then
5059   ac_cv_member_struct_tm_tm_zone=yes
5060 else
5061   echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5063
5064 cat >conftest.$ac_ext <<_ACEOF
5065 /* confdefs.h.  */
5066 _ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h.  */
5070 #include <sys/types.h>
5071 #include <$ac_cv_struct_tm>
5072
5073
5074 int
5075 main ()
5076 {
5077 static struct tm ac_aggr;
5078 if (sizeof ac_aggr.tm_zone)
5079 return 0;
5080   ;
5081   return 0;
5082 }
5083 _ACEOF
5084 rm -f conftest.$ac_objext
5085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5086   (eval $ac_compile) 2>conftest.er1
5087   ac_status=$?
5088   grep -v '^ *+' conftest.er1 >conftest.err
5089   rm -f conftest.er1
5090   cat conftest.err >&5
5091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092   (exit $ac_status); } &&
5093          { ac_try='test -z "$ac_c_werror_flag"
5094                          || test ! -s conftest.err'
5095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096   (eval $ac_try) 2>&5
5097   ac_status=$?
5098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099   (exit $ac_status); }; } &&
5100          { ac_try='test -s conftest.$ac_objext'
5101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102   (eval $ac_try) 2>&5
5103   ac_status=$?
5104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105   (exit $ac_status); }; }; then
5106   ac_cv_member_struct_tm_tm_zone=yes
5107 else
5108   echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5110
5111 ac_cv_member_struct_tm_tm_zone=no
5112 fi
5113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5114 fi
5115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5116 fi
5117 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5118 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5119 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5120
5121 cat >>confdefs.h <<_ACEOF
5122 #define HAVE_STRUCT_TM_TM_ZONE 1
5123 _ACEOF
5124
5125
5126 fi
5127
5128 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5129
5130 cat >>confdefs.h <<\_ACEOF
5131 #define HAVE_TM_ZONE 1
5132 _ACEOF
5133
5134 else
5135   echo "$as_me:$LINENO: checking for tzname" >&5
5136 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5137 if test "${ac_cv_var_tzname+set}" = set; then
5138   echo $ECHO_N "(cached) $ECHO_C" >&6
5139 else
5140   cat >conftest.$ac_ext <<_ACEOF
5141 /* confdefs.h.  */
5142 _ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h.  */
5146 #include <time.h>
5147 #ifndef tzname /* For SGI.  */
5148 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
5149 #endif
5150
5151 int
5152 main ()
5153 {
5154 atoi(*tzname);
5155   ;
5156   return 0;
5157 }
5158 _ACEOF
5159 rm -f conftest.$ac_objext conftest$ac_exeext
5160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5161   (eval $ac_link) 2>conftest.er1
5162   ac_status=$?
5163   grep -v '^ *+' conftest.er1 >conftest.err
5164   rm -f conftest.er1
5165   cat conftest.err >&5
5166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167   (exit $ac_status); } &&
5168          { ac_try='test -z "$ac_c_werror_flag"
5169                          || test ! -s conftest.err'
5170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171   (eval $ac_try) 2>&5
5172   ac_status=$?
5173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174   (exit $ac_status); }; } &&
5175          { ac_try='test -s conftest$ac_exeext'
5176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177   (eval $ac_try) 2>&5
5178   ac_status=$?
5179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180   (exit $ac_status); }; }; then
5181   ac_cv_var_tzname=yes
5182 else
5183   echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5185
5186 ac_cv_var_tzname=no
5187 fi
5188 rm -f conftest.err conftest.$ac_objext \
5189       conftest$ac_exeext conftest.$ac_ext
5190 fi
5191 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5192 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5193   if test $ac_cv_var_tzname = yes; then
5194
5195 cat >>confdefs.h <<\_ACEOF
5196 #define HAVE_TZNAME 1
5197 _ACEOF
5198
5199   fi
5200 fi
5201
5202
5203 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5204 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5205 if test "${ac_cv_type_uid_t+set}" = set; then
5206   echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208   cat >conftest.$ac_ext <<_ACEOF
5209 /* confdefs.h.  */
5210 _ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h.  */
5214 #include <sys/types.h>
5215
5216 _ACEOF
5217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5218   $EGREP "uid_t" >/dev/null 2>&1; then
5219   ac_cv_type_uid_t=yes
5220 else
5221   ac_cv_type_uid_t=no
5222 fi
5223 rm -f conftest*
5224
5225 fi
5226 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5227 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5228 if test $ac_cv_type_uid_t = no; then
5229
5230 cat >>confdefs.h <<\_ACEOF
5231 #define uid_t int
5232 _ACEOF
5233
5234
5235 cat >>confdefs.h <<\_ACEOF
5236 #define gid_t int
5237 _ACEOF
5238
5239 fi
5240
5241 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
5242 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
5243 if test "${ac_cv_type_getgroups+set}" = set; then
5244   echo $ECHO_N "(cached) $ECHO_C" >&6
5245 else
5246   if test "$cross_compiling" = yes; then
5247   ac_cv_type_getgroups=cross
5248 else
5249   cat >conftest.$ac_ext <<_ACEOF
5250 /* confdefs.h.  */
5251 _ACEOF
5252 cat confdefs.h >>conftest.$ac_ext
5253 cat >>conftest.$ac_ext <<_ACEOF
5254 /* end confdefs.h.  */
5255 /* Thanks to Mike Rendell for this test.  */
5256 #include <sys/types.h>
5257 #define NGID 256
5258 #undef MAX
5259 #define MAX(x, y) ((x) > (y) ? (x) : (y))
5260
5261 int
5262 main ()
5263 {
5264   gid_t gidset[NGID];
5265   int i, n;
5266   union { gid_t gval; long lval; }  val;
5267
5268   val.lval = -1;
5269   for (i = 0; i < NGID; i++)
5270     gidset[i] = val.gval;
5271   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
5272                  gidset);
5273   /* Exit non-zero if getgroups seems to require an array of ints.  This
5274      happens when gid_t is short but getgroups modifies an array of ints.  */
5275   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
5276 }
5277 _ACEOF
5278 rm -f conftest$ac_exeext
5279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5280   (eval $ac_link) 2>&5
5281   ac_status=$?
5282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285   (eval $ac_try) 2>&5
5286   ac_status=$?
5287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288   (exit $ac_status); }; }; then
5289   ac_cv_type_getgroups=gid_t
5290 else
5291   echo "$as_me: program exited with status $ac_status" >&5
5292 echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.$ac_ext >&5
5294
5295 ( exit $ac_status )
5296 ac_cv_type_getgroups=int
5297 fi
5298 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5299 fi
5300 if test $ac_cv_type_getgroups = cross; then
5301         cat >conftest.$ac_ext <<_ACEOF
5302 /* confdefs.h.  */
5303 _ACEOF
5304 cat confdefs.h >>conftest.$ac_ext
5305 cat >>conftest.$ac_ext <<_ACEOF
5306 /* end confdefs.h.  */
5307 #include <unistd.h>
5308
5309 _ACEOF
5310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5311   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
5312   ac_cv_type_getgroups=gid_t
5313 else
5314   ac_cv_type_getgroups=int
5315 fi
5316 rm -f conftest*
5317
5318 fi
5319 fi
5320 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
5321 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
5322
5323 cat >>confdefs.h <<_ACEOF
5324 #define GETGROUPS_T $ac_cv_type_getgroups
5325 _ACEOF
5326
5327
5328 echo "$as_me:$LINENO: checking for mode_t" >&5
5329 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5330 if test "${ac_cv_type_mode_t+set}" = set; then
5331   echo $ECHO_N "(cached) $ECHO_C" >&6
5332 else
5333   cat >conftest.$ac_ext <<_ACEOF
5334 /* confdefs.h.  */
5335 _ACEOF
5336 cat confdefs.h >>conftest.$ac_ext
5337 cat >>conftest.$ac_ext <<_ACEOF
5338 /* end confdefs.h.  */
5339 $ac_includes_default
5340 int
5341 main ()
5342 {
5343 if ((mode_t *) 0)
5344   return 0;
5345 if (sizeof (mode_t))
5346   return 0;
5347   ;
5348   return 0;
5349 }
5350 _ACEOF
5351 rm -f conftest.$ac_objext
5352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5353   (eval $ac_compile) 2>conftest.er1
5354   ac_status=$?
5355   grep -v '^ *+' conftest.er1 >conftest.err
5356   rm -f conftest.er1
5357   cat conftest.err >&5
5358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359   (exit $ac_status); } &&
5360          { ac_try='test -z "$ac_c_werror_flag"
5361                          || test ! -s conftest.err'
5362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363   (eval $ac_try) 2>&5
5364   ac_status=$?
5365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366   (exit $ac_status); }; } &&
5367          { ac_try='test -s conftest.$ac_objext'
5368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369   (eval $ac_try) 2>&5
5370   ac_status=$?
5371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372   (exit $ac_status); }; }; then
5373   ac_cv_type_mode_t=yes
5374 else
5375   echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5377
5378 ac_cv_type_mode_t=no
5379 fi
5380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5381 fi
5382 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5383 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5384 if test $ac_cv_type_mode_t = yes; then
5385   :
5386 else
5387
5388 cat >>confdefs.h <<_ACEOF
5389 #define mode_t int
5390 _ACEOF
5391
5392 fi
5393
5394 echo "$as_me:$LINENO: checking for off_t" >&5
5395 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5396 if test "${ac_cv_type_off_t+set}" = set; then
5397   echo $ECHO_N "(cached) $ECHO_C" >&6
5398 else
5399   cat >conftest.$ac_ext <<_ACEOF
5400 /* confdefs.h.  */
5401 _ACEOF
5402 cat confdefs.h >>conftest.$ac_ext
5403 cat >>conftest.$ac_ext <<_ACEOF
5404 /* end confdefs.h.  */
5405 $ac_includes_default
5406 int
5407 main ()
5408 {
5409 if ((off_t *) 0)
5410   return 0;
5411 if (sizeof (off_t))
5412   return 0;
5413   ;
5414   return 0;
5415 }
5416 _ACEOF
5417 rm -f conftest.$ac_objext
5418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5419   (eval $ac_compile) 2>conftest.er1
5420   ac_status=$?
5421   grep -v '^ *+' conftest.er1 >conftest.err
5422   rm -f conftest.er1
5423   cat conftest.err >&5
5424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425   (exit $ac_status); } &&
5426          { ac_try='test -z "$ac_c_werror_flag"
5427                          || test ! -s conftest.err'
5428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429   (eval $ac_try) 2>&5
5430   ac_status=$?
5431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432   (exit $ac_status); }; } &&
5433          { ac_try='test -s conftest.$ac_objext'
5434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435   (eval $ac_try) 2>&5
5436   ac_status=$?
5437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438   (exit $ac_status); }; }; then
5439   ac_cv_type_off_t=yes
5440 else
5441   echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5443
5444 ac_cv_type_off_t=no
5445 fi
5446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5447 fi
5448 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5449 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5450 if test $ac_cv_type_off_t = yes; then
5451   :
5452 else
5453
5454 cat >>confdefs.h <<_ACEOF
5455 #define off_t long
5456 _ACEOF
5457
5458 fi
5459
5460 echo "$as_me:$LINENO: checking for pid_t" >&5
5461 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5462 if test "${ac_cv_type_pid_t+set}" = set; then
5463   echo $ECHO_N "(cached) $ECHO_C" >&6
5464 else
5465   cat >conftest.$ac_ext <<_ACEOF
5466 /* confdefs.h.  */
5467 _ACEOF
5468 cat confdefs.h >>conftest.$ac_ext
5469 cat >>conftest.$ac_ext <<_ACEOF
5470 /* end confdefs.h.  */
5471 $ac_includes_default
5472 int
5473 main ()
5474 {
5475 if ((pid_t *) 0)
5476   return 0;
5477 if (sizeof (pid_t))
5478   return 0;
5479   ;
5480   return 0;
5481 }
5482 _ACEOF
5483 rm -f conftest.$ac_objext
5484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5485   (eval $ac_compile) 2>conftest.er1
5486   ac_status=$?
5487   grep -v '^ *+' conftest.er1 >conftest.err
5488   rm -f conftest.er1
5489   cat conftest.err >&5
5490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491   (exit $ac_status); } &&
5492          { ac_try='test -z "$ac_c_werror_flag"
5493                          || test ! -s conftest.err'
5494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495   (eval $ac_try) 2>&5
5496   ac_status=$?
5497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498   (exit $ac_status); }; } &&
5499          { ac_try='test -s conftest.$ac_objext'
5500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501   (eval $ac_try) 2>&5
5502   ac_status=$?
5503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504   (exit $ac_status); }; }; then
5505   ac_cv_type_pid_t=yes
5506 else
5507   echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5509
5510 ac_cv_type_pid_t=no
5511 fi
5512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5513 fi
5514 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5515 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5516 if test $ac_cv_type_pid_t = yes; then
5517   :
5518 else
5519
5520 cat >>confdefs.h <<_ACEOF
5521 #define pid_t int
5522 _ACEOF
5523
5524 fi
5525
5526 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5527 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5528 if test "${ac_cv_type_signal+set}" = set; then
5529   echo $ECHO_N "(cached) $ECHO_C" >&6
5530 else
5531   cat >conftest.$ac_ext <<_ACEOF
5532 /* confdefs.h.  */
5533 _ACEOF
5534 cat confdefs.h >>conftest.$ac_ext
5535 cat >>conftest.$ac_ext <<_ACEOF
5536 /* end confdefs.h.  */
5537 #include <sys/types.h>
5538 #include <signal.h>
5539 #ifdef signal
5540 # undef signal
5541 #endif
5542 #ifdef __cplusplus
5543 extern "C" void (*signal (int, void (*)(int)))(int);
5544 #else
5545 void (*signal ()) ();
5546 #endif
5547
5548 int
5549 main ()
5550 {
5551 int i;
5552   ;
5553   return 0;
5554 }
5555 _ACEOF
5556 rm -f conftest.$ac_objext
5557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558   (eval $ac_compile) 2>conftest.er1
5559   ac_status=$?
5560   grep -v '^ *+' conftest.er1 >conftest.err
5561   rm -f conftest.er1
5562   cat conftest.err >&5
5563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564   (exit $ac_status); } &&
5565          { ac_try='test -z "$ac_c_werror_flag"
5566                          || test ! -s conftest.err'
5567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568   (eval $ac_try) 2>&5
5569   ac_status=$?
5570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571   (exit $ac_status); }; } &&
5572          { ac_try='test -s conftest.$ac_objext'
5573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574   (eval $ac_try) 2>&5
5575   ac_status=$?
5576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577   (exit $ac_status); }; }; then
5578   ac_cv_type_signal=void
5579 else
5580   echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5582
5583 ac_cv_type_signal=int
5584 fi
5585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5586 fi
5587 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5588 echo "${ECHO_T}$ac_cv_type_signal" >&6
5589
5590 cat >>confdefs.h <<_ACEOF
5591 #define RETSIGTYPE $ac_cv_type_signal
5592 _ACEOF
5593
5594
5595 echo "$as_me:$LINENO: checking for size_t" >&5
5596 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5597 if test "${ac_cv_type_size_t+set}" = set; then
5598   echo $ECHO_N "(cached) $ECHO_C" >&6
5599 else
5600   cat >conftest.$ac_ext <<_ACEOF
5601 /* confdefs.h.  */
5602 _ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h.  */
5606 $ac_includes_default
5607 int
5608 main ()
5609 {
5610 if ((size_t *) 0)
5611   return 0;
5612 if (sizeof (size_t))
5613   return 0;
5614   ;
5615   return 0;
5616 }
5617 _ACEOF
5618 rm -f conftest.$ac_objext
5619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5620   (eval $ac_compile) 2>conftest.er1
5621   ac_status=$?
5622   grep -v '^ *+' conftest.er1 >conftest.err
5623   rm -f conftest.er1
5624   cat conftest.err >&5
5625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626   (exit $ac_status); } &&
5627          { ac_try='test -z "$ac_c_werror_flag"
5628                          || test ! -s conftest.err'
5629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630   (eval $ac_try) 2>&5
5631   ac_status=$?
5632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633   (exit $ac_status); }; } &&
5634          { ac_try='test -s conftest.$ac_objext'
5635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636   (eval $ac_try) 2>&5
5637   ac_status=$?
5638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639   (exit $ac_status); }; }; then
5640   ac_cv_type_size_t=yes
5641 else
5642   echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5644
5645 ac_cv_type_size_t=no
5646 fi
5647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5648 fi
5649 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5650 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5651 if test $ac_cv_type_size_t = yes; then
5652   :
5653 else
5654
5655 cat >>confdefs.h <<_ACEOF
5656 #define size_t unsigned
5657 _ACEOF
5658
5659 fi
5660
5661 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5662 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5663 if test "${ac_cv_type_uid_t+set}" = set; then
5664   echo $ECHO_N "(cached) $ECHO_C" >&6
5665 else
5666   cat >conftest.$ac_ext <<_ACEOF
5667 /* confdefs.h.  */
5668 _ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h.  */
5672 #include <sys/types.h>
5673
5674 _ACEOF
5675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5676   $EGREP "uid_t" >/dev/null 2>&1; then
5677   ac_cv_type_uid_t=yes
5678 else
5679   ac_cv_type_uid_t=no
5680 fi
5681 rm -f conftest*
5682
5683 fi
5684 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5685 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5686 if test $ac_cv_type_uid_t = no; then
5687
5688 cat >>confdefs.h <<\_ACEOF
5689 #define uid_t int
5690 _ACEOF
5691
5692
5693 cat >>confdefs.h <<\_ACEOF
5694 #define gid_t int
5695 _ACEOF
5696
5697 fi
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750 for ac_func in access cfgetispeed cfgetospeed cfsetispeed cfsetospeed chdir chmod chown dup dup2 fchmod fchown fcntl fstat fstatfs getdirentries getegid geteuid getgid getpid getppid getrusage gettimeofday getuid ioctl kill link lseek lstat mkdir pipe readlink rmdir setreuid setregid stat sigprocmask stat symlink tcgetattr tcsetattr tcsendbreak tcdrain tcflush tcflow tcgetpgrp tcsetpgrp time umask unlink
5751 do
5752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5753 echo "$as_me:$LINENO: checking for $ac_func" >&5
5754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5755 if eval "test \"\${$as_ac_var+set}\" = set"; then
5756   echo $ECHO_N "(cached) $ECHO_C" >&6
5757 else
5758   cat >conftest.$ac_ext <<_ACEOF
5759 /* confdefs.h.  */
5760 _ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h.  */
5764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5766 #define $ac_func innocuous_$ac_func
5767
5768 /* System header to define __stub macros and hopefully few prototypes,
5769     which can conflict with char $ac_func (); below.
5770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5771     <limits.h> exists even on freestanding compilers.  */
5772
5773 #ifdef __STDC__
5774 # include <limits.h>
5775 #else
5776 # include <assert.h>
5777 #endif
5778
5779 #undef $ac_func
5780
5781 /* Override any gcc2 internal prototype to avoid an error.  */
5782 #ifdef __cplusplus
5783 extern "C"
5784 {
5785 #endif
5786 /* We use char because int might match the return type of a gcc2
5787    builtin and then its argument prototype would still apply.  */
5788 char $ac_func ();
5789 /* The GNU C library defines this for functions which it implements
5790     to always fail with ENOSYS.  Some functions are actually named
5791     something starting with __ and the normal name is an alias.  */
5792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5793 choke me
5794 #else
5795 char (*f) () = $ac_func;
5796 #endif
5797 #ifdef __cplusplus
5798 }
5799 #endif
5800
5801 int
5802 main ()
5803 {
5804 return f != $ac_func;
5805   ;
5806   return 0;
5807 }
5808 _ACEOF
5809 rm -f conftest.$ac_objext conftest$ac_exeext
5810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5811   (eval $ac_link) 2>conftest.er1
5812   ac_status=$?
5813   grep -v '^ *+' conftest.er1 >conftest.err
5814   rm -f conftest.er1
5815   cat conftest.err >&5
5816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817   (exit $ac_status); } &&
5818          { ac_try='test -z "$ac_c_werror_flag"
5819                          || test ! -s conftest.err'
5820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821   (eval $ac_try) 2>&5
5822   ac_status=$?
5823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824   (exit $ac_status); }; } &&
5825          { ac_try='test -s conftest$ac_exeext'
5826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827   (eval $ac_try) 2>&5
5828   ac_status=$?
5829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830   (exit $ac_status); }; }; then
5831   eval "$as_ac_var=yes"
5832 else
5833   echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.$ac_ext >&5
5835
5836 eval "$as_ac_var=no"
5837 fi
5838 rm -f conftest.err conftest.$ac_objext \
5839       conftest$ac_exeext conftest.$ac_ext
5840 fi
5841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5842 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5843 if test `eval echo '${'$as_ac_var'}'` = yes; then
5844   cat >>confdefs.h <<_ACEOF
5845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5846 _ACEOF
5847
5848 fi
5849 done
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870 for ac_header in fcntl.h stdlib.h string.h strings.h sys/ioctl.h sys/mount.h sys/param.h sys/resource.h sys/stat.h sys/termio.h sys/termios.h sys/time.h sys/times.h sys/types.h time.h unistd.h sys/vfs.h sys/statfs.h
5871 do
5872 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5874   echo "$as_me:$LINENO: checking for $ac_header" >&5
5875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5877   echo $ECHO_N "(cached) $ECHO_C" >&6
5878 fi
5879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5881 else
5882   # Is the header compilable?
5883 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5885 cat >conftest.$ac_ext <<_ACEOF
5886 /* confdefs.h.  */
5887 _ACEOF
5888 cat confdefs.h >>conftest.$ac_ext
5889 cat >>conftest.$ac_ext <<_ACEOF
5890 /* end confdefs.h.  */
5891 $ac_includes_default
5892 #include <$ac_header>
5893 _ACEOF
5894 rm -f conftest.$ac_objext
5895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5896   (eval $ac_compile) 2>conftest.er1
5897   ac_status=$?
5898   grep -v '^ *+' conftest.er1 >conftest.err
5899   rm -f conftest.er1
5900   cat conftest.err >&5
5901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902   (exit $ac_status); } &&
5903          { ac_try='test -z "$ac_c_werror_flag"
5904                          || test ! -s conftest.err'
5905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5906   (eval $ac_try) 2>&5
5907   ac_status=$?
5908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909   (exit $ac_status); }; } &&
5910          { ac_try='test -s conftest.$ac_objext'
5911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5912   (eval $ac_try) 2>&5
5913   ac_status=$?
5914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915   (exit $ac_status); }; }; then
5916   ac_header_compiler=yes
5917 else
5918   echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5920
5921 ac_header_compiler=no
5922 fi
5923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5925 echo "${ECHO_T}$ac_header_compiler" >&6
5926
5927 # Is the header present?
5928 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5930 cat >conftest.$ac_ext <<_ACEOF
5931 /* confdefs.h.  */
5932 _ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h.  */
5936 #include <$ac_header>
5937 _ACEOF
5938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5939   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5940   ac_status=$?
5941   grep -v '^ *+' conftest.er1 >conftest.err
5942   rm -f conftest.er1
5943   cat conftest.err >&5
5944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945   (exit $ac_status); } >/dev/null; then
5946   if test -s conftest.err; then
5947     ac_cpp_err=$ac_c_preproc_warn_flag
5948     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5949   else
5950     ac_cpp_err=
5951   fi
5952 else
5953   ac_cpp_err=yes
5954 fi
5955 if test -z "$ac_cpp_err"; then
5956   ac_header_preproc=yes
5957 else
5958   echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5960
5961   ac_header_preproc=no
5962 fi
5963 rm -f conftest.err conftest.$ac_ext
5964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5965 echo "${ECHO_T}$ac_header_preproc" >&6
5966
5967 # So?  What about this header?
5968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5969   yes:no: )
5970     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5972     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5974     ac_header_preproc=yes
5975     ;;
5976   no:yes:* )
5977     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5979     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5980 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5981     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5983     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5984 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5985     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5987     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5989     (
5990       cat <<\_ASBOX
5991 ## ------------------------------------------ ##
5992 ## Report this to the AC_PACKAGE_NAME lists.  ##
5993 ## ------------------------------------------ ##
5994 _ASBOX
5995     ) |
5996       sed "s/^/$as_me: WARNING:     /" >&2
5997     ;;
5998 esac
5999 echo "$as_me:$LINENO: checking for $ac_header" >&5
6000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6002   echo $ECHO_N "(cached) $ECHO_C" >&6
6003 else
6004   eval "$as_ac_Header=\$ac_header_preproc"
6005 fi
6006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6008
6009 fi
6010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6011   cat >>confdefs.h <<_ACEOF
6012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6013 _ACEOF
6014
6015 fi
6016
6017 done
6018
6019
6020
6021
6022
6023
6024 ac_header_dirent=no
6025 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6026   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6027 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6028 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6030   echo $ECHO_N "(cached) $ECHO_C" >&6
6031 else
6032   cat >conftest.$ac_ext <<_ACEOF
6033 /* confdefs.h.  */
6034 _ACEOF
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h.  */
6038 #include <sys/types.h>
6039 #include <$ac_hdr>
6040
6041 int
6042 main ()
6043 {
6044 if ((DIR *) 0)
6045 return 0;
6046   ;
6047   return 0;
6048 }
6049 _ACEOF
6050 rm -f conftest.$ac_objext
6051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6052   (eval $ac_compile) 2>conftest.er1
6053   ac_status=$?
6054   grep -v '^ *+' conftest.er1 >conftest.err
6055   rm -f conftest.er1
6056   cat conftest.err >&5
6057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058   (exit $ac_status); } &&
6059          { ac_try='test -z "$ac_c_werror_flag"
6060                          || test ! -s conftest.err'
6061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062   (eval $ac_try) 2>&5
6063   ac_status=$?
6064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065   (exit $ac_status); }; } &&
6066          { ac_try='test -s conftest.$ac_objext'
6067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068   (eval $ac_try) 2>&5
6069   ac_status=$?
6070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071   (exit $ac_status); }; }; then
6072   eval "$as_ac_Header=yes"
6073 else
6074   echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6076
6077 eval "$as_ac_Header=no"
6078 fi
6079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6080 fi
6081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6084   cat >>confdefs.h <<_ACEOF
6085 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6086 _ACEOF
6087
6088 ac_header_dirent=$ac_hdr; break
6089 fi
6090
6091 done
6092 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6093 if test $ac_header_dirent = dirent.h; then
6094   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6095 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6096 if test "${ac_cv_search_opendir+set}" = set; then
6097   echo $ECHO_N "(cached) $ECHO_C" >&6
6098 else
6099   ac_func_search_save_LIBS=$LIBS
6100 ac_cv_search_opendir=no
6101 cat >conftest.$ac_ext <<_ACEOF
6102 /* confdefs.h.  */
6103 _ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h.  */
6107
6108 /* Override any gcc2 internal prototype to avoid an error.  */
6109 #ifdef __cplusplus
6110 extern "C"
6111 #endif
6112 /* We use char because int might match the return type of a gcc2
6113    builtin and then its argument prototype would still apply.  */
6114 char opendir ();
6115 int
6116 main ()
6117 {
6118 opendir ();
6119   ;
6120   return 0;
6121 }
6122 _ACEOF
6123 rm -f conftest.$ac_objext conftest$ac_exeext
6124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6125   (eval $ac_link) 2>conftest.er1
6126   ac_status=$?
6127   grep -v '^ *+' conftest.er1 >conftest.err
6128   rm -f conftest.er1
6129   cat conftest.err >&5
6130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131   (exit $ac_status); } &&
6132          { ac_try='test -z "$ac_c_werror_flag"
6133                          || test ! -s conftest.err'
6134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135   (eval $ac_try) 2>&5
6136   ac_status=$?
6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138   (exit $ac_status); }; } &&
6139          { ac_try='test -s conftest$ac_exeext'
6140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141   (eval $ac_try) 2>&5
6142   ac_status=$?
6143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144   (exit $ac_status); }; }; then
6145   ac_cv_search_opendir="none required"
6146 else
6147   echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.$ac_ext >&5
6149
6150 fi
6151 rm -f conftest.err conftest.$ac_objext \
6152       conftest$ac_exeext conftest.$ac_ext
6153 if test "$ac_cv_search_opendir" = no; then
6154   for ac_lib in dir; do
6155     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6156     cat >conftest.$ac_ext <<_ACEOF
6157 /* confdefs.h.  */
6158 _ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h.  */
6162
6163 /* Override any gcc2 internal prototype to avoid an error.  */
6164 #ifdef __cplusplus
6165 extern "C"
6166 #endif
6167 /* We use char because int might match the return type of a gcc2
6168    builtin and then its argument prototype would still apply.  */
6169 char opendir ();
6170 int
6171 main ()
6172 {
6173 opendir ();
6174   ;
6175   return 0;
6176 }
6177 _ACEOF
6178 rm -f conftest.$ac_objext conftest$ac_exeext
6179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6180   (eval $ac_link) 2>conftest.er1
6181   ac_status=$?
6182   grep -v '^ *+' conftest.er1 >conftest.err
6183   rm -f conftest.er1
6184   cat conftest.err >&5
6185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186   (exit $ac_status); } &&
6187          { ac_try='test -z "$ac_c_werror_flag"
6188                          || test ! -s conftest.err'
6189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190   (eval $ac_try) 2>&5
6191   ac_status=$?
6192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193   (exit $ac_status); }; } &&
6194          { ac_try='test -s conftest$ac_exeext'
6195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196   (eval $ac_try) 2>&5
6197   ac_status=$?
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); }; }; then
6200   ac_cv_search_opendir="-l$ac_lib"
6201 break
6202 else
6203   echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6205
6206 fi
6207 rm -f conftest.err conftest.$ac_objext \
6208       conftest$ac_exeext conftest.$ac_ext
6209   done
6210 fi
6211 LIBS=$ac_func_search_save_LIBS
6212 fi
6213 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6214 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6215 if test "$ac_cv_search_opendir" != no; then
6216   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6217
6218 fi
6219
6220 else
6221   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6222 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6223 if test "${ac_cv_search_opendir+set}" = set; then
6224   echo $ECHO_N "(cached) $ECHO_C" >&6
6225 else
6226   ac_func_search_save_LIBS=$LIBS
6227 ac_cv_search_opendir=no
6228 cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h.  */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h.  */
6234
6235 /* Override any gcc2 internal prototype to avoid an error.  */
6236 #ifdef __cplusplus
6237 extern "C"
6238 #endif
6239 /* We use char because int might match the return type of a gcc2
6240    builtin and then its argument prototype would still apply.  */
6241 char opendir ();
6242 int
6243 main ()
6244 {
6245 opendir ();
6246   ;
6247   return 0;
6248 }
6249 _ACEOF
6250 rm -f conftest.$ac_objext conftest$ac_exeext
6251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6252   (eval $ac_link) 2>conftest.er1
6253   ac_status=$?
6254   grep -v '^ *+' conftest.er1 >conftest.err
6255   rm -f conftest.er1
6256   cat conftest.err >&5
6257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258   (exit $ac_status); } &&
6259          { ac_try='test -z "$ac_c_werror_flag"
6260                          || test ! -s conftest.err'
6261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262   (eval $ac_try) 2>&5
6263   ac_status=$?
6264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265   (exit $ac_status); }; } &&
6266          { ac_try='test -s conftest$ac_exeext'
6267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268   (eval $ac_try) 2>&5
6269   ac_status=$?
6270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271   (exit $ac_status); }; }; then
6272   ac_cv_search_opendir="none required"
6273 else
6274   echo "$as_me: failed program was:" >&5
6275 sed 's/^/| /' conftest.$ac_ext >&5
6276
6277 fi
6278 rm -f conftest.err conftest.$ac_objext \
6279       conftest$ac_exeext conftest.$ac_ext
6280 if test "$ac_cv_search_opendir" = no; then
6281   for ac_lib in x; do
6282     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6283     cat >conftest.$ac_ext <<_ACEOF
6284 /* confdefs.h.  */
6285 _ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h.  */
6289
6290 /* Override any gcc2 internal prototype to avoid an error.  */
6291 #ifdef __cplusplus
6292 extern "C"
6293 #endif
6294 /* We use char because int might match the return type of a gcc2
6295    builtin and then its argument prototype would still apply.  */
6296 char opendir ();
6297 int
6298 main ()
6299 {
6300 opendir ();
6301   ;
6302   return 0;
6303 }
6304 _ACEOF
6305 rm -f conftest.$ac_objext conftest$ac_exeext
6306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6307   (eval $ac_link) 2>conftest.er1
6308   ac_status=$?
6309   grep -v '^ *+' conftest.er1 >conftest.err
6310   rm -f conftest.er1
6311   cat conftest.err >&5
6312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313   (exit $ac_status); } &&
6314          { ac_try='test -z "$ac_c_werror_flag"
6315                          || test ! -s conftest.err'
6316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317   (eval $ac_try) 2>&5
6318   ac_status=$?
6319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320   (exit $ac_status); }; } &&
6321          { ac_try='test -s conftest$ac_exeext'
6322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6323   (eval $ac_try) 2>&5
6324   ac_status=$?
6325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326   (exit $ac_status); }; }; then
6327   ac_cv_search_opendir="-l$ac_lib"
6328 break
6329 else
6330   echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6332
6333 fi
6334 rm -f conftest.err conftest.$ac_objext \
6335       conftest$ac_exeext conftest.$ac_ext
6336   done
6337 fi
6338 LIBS=$ac_func_search_save_LIBS
6339 fi
6340 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6341 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6342 if test "$ac_cv_search_opendir" != no; then
6343   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6344
6345 fi
6346
6347 fi
6348
6349
6350 sim_termio=""
6351 echo "$as_me:$LINENO: checking for struct termios" >&5
6352 echo $ECHO_N "checking for struct termios... $ECHO_C" >&6
6353 if test "${ac_cv_termios_struct+set}" = set; then
6354   echo $ECHO_N "(cached) $ECHO_C" >&6
6355 else
6356   cat >conftest.$ac_ext <<_ACEOF
6357 /* confdefs.h.  */
6358 _ACEOF
6359 cat confdefs.h >>conftest.$ac_ext
6360 cat >>conftest.$ac_ext <<_ACEOF
6361 /* end confdefs.h.  */
6362 #include <sys/types.h>
6363 #include <sys/termios.h>
6364 int
6365 main ()
6366 {
6367 static struct termios x;
6368  x.c_iflag = 0;
6369  x.c_oflag = 0;
6370  x.c_cflag = 0;
6371  x.c_lflag = 0;
6372  x.c_cc[NCCS] = 0;
6373   ;
6374   return 0;
6375 }
6376 _ACEOF
6377 rm -f conftest.$ac_objext
6378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6379   (eval $ac_compile) 2>conftest.er1
6380   ac_status=$?
6381   grep -v '^ *+' conftest.er1 >conftest.err
6382   rm -f conftest.er1
6383   cat conftest.err >&5
6384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385   (exit $ac_status); } &&
6386          { ac_try='test -z "$ac_c_werror_flag"
6387                          || test ! -s conftest.err'
6388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389   (eval $ac_try) 2>&5
6390   ac_status=$?
6391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392   (exit $ac_status); }; } &&
6393          { ac_try='test -s conftest.$ac_objext'
6394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395   (eval $ac_try) 2>&5
6396   ac_status=$?
6397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398   (exit $ac_status); }; }; then
6399   ac_cv_termios_struct=yes
6400 else
6401   echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6403
6404 ac_cv_termios_struct=no
6405 fi
6406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6407 fi
6408
6409 echo "$as_me:$LINENO: result: $ac_cv_termios_struct" >&5
6410 echo "${ECHO_T}$ac_cv_termios_struct" >&6
6411 if test $ac_cv_termios_struct = yes; then
6412   sim_termio="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
6413 fi
6414
6415 if test "$ac_cv_termios_struct" = "yes"; then
6416   echo "$as_me:$LINENO: checking for c_line field in struct termios" >&5
6417 echo $ECHO_N "checking for c_line field in struct termios... $ECHO_C" >&6
6418   if test "${ac_cv_termios_cline+set}" = set; then
6419   echo $ECHO_N "(cached) $ECHO_C" >&6
6420 else
6421   cat >conftest.$ac_ext <<_ACEOF
6422 /* confdefs.h.  */
6423 _ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h.  */
6427 #include <sys/types.h>
6428 #include <sys/termios.h>
6429 int
6430 main ()
6431 {
6432 static struct termios x; x.c_line = 0;
6433   ;
6434   return 0;
6435 }
6436 _ACEOF
6437 rm -f conftest.$ac_objext
6438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6439   (eval $ac_compile) 2>conftest.er1
6440   ac_status=$?
6441   grep -v '^ *+' conftest.er1 >conftest.err
6442   rm -f conftest.er1
6443   cat conftest.err >&5
6444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445   (exit $ac_status); } &&
6446          { ac_try='test -z "$ac_c_werror_flag"
6447                          || test ! -s conftest.err'
6448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449   (eval $ac_try) 2>&5
6450   ac_status=$?
6451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452   (exit $ac_status); }; } &&
6453          { ac_try='test -s conftest.$ac_objext'
6454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6455   (eval $ac_try) 2>&5
6456   ac_status=$?
6457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458   (exit $ac_status); }; }; then
6459   ac_cv_termios_cline=yes
6460 else
6461   echo "$as_me: failed program was:" >&5
6462 sed 's/^/| /' conftest.$ac_ext >&5
6463
6464 ac_cv_termios_cline=no
6465 fi
6466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6467 fi
6468
6469
6470   echo "$as_me:$LINENO: result: $ac_cv_termios_cline" >&5
6471 echo "${ECHO_T}$ac_cv_termios_cline" >&6
6472   if test $ac_cv_termios_cline = yes; then
6473     sim_termio="$sim_termio -DHAVE_TERMIOS_CLINE"
6474   fi
6475 else
6476   ac_cv_termios_cline=no
6477 fi
6478
6479 if test "$ac_cv_termios_struct" != "yes"; then
6480   echo "$as_me:$LINENO: checking for struct termio" >&5
6481 echo $ECHO_N "checking for struct termio... $ECHO_C" >&6
6482   if test "${ac_cv_termio_struct+set}" = set; then
6483   echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485   cat >conftest.$ac_ext <<_ACEOF
6486 /* confdefs.h.  */
6487 _ACEOF
6488 cat confdefs.h >>conftest.$ac_ext
6489 cat >>conftest.$ac_ext <<_ACEOF
6490 /* end confdefs.h.  */
6491 #include <sys/types.h>
6492 #include <sys/termio.h>
6493 int
6494 main ()
6495 {
6496 static struct termio x;
6497  x.c_iflag = 0;
6498  x.c_oflag = 0;
6499  x.c_cflag = 0;
6500  x.c_lflag = 0;
6501  x.c_cc[NCC] = 0;
6502   ;
6503   return 0;
6504 }
6505 _ACEOF
6506 rm -f conftest.$ac_objext
6507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6508   (eval $ac_compile) 2>conftest.er1
6509   ac_status=$?
6510   grep -v '^ *+' conftest.er1 >conftest.err
6511   rm -f conftest.er1
6512   cat conftest.err >&5
6513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514   (exit $ac_status); } &&
6515          { ac_try='test -z "$ac_c_werror_flag"
6516                          || test ! -s conftest.err'
6517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518   (eval $ac_try) 2>&5
6519   ac_status=$?
6520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521   (exit $ac_status); }; } &&
6522          { ac_try='test -s conftest.$ac_objext'
6523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524   (eval $ac_try) 2>&5
6525   ac_status=$?
6526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527   (exit $ac_status); }; }; then
6528   ac_cv_termio_struct=yes
6529 else
6530   echo "$as_me: failed program was:" >&5
6531 sed 's/^/| /' conftest.$ac_ext >&5
6532
6533 ac_cv_termio_struct=no
6534 fi
6535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6536 fi
6537
6538   echo "$as_me:$LINENO: result: $ac_cv_termio_struct" >&5
6539 echo "${ECHO_T}$ac_cv_termio_struct" >&6
6540   if test $ac_cv_termio_struct = yes; then
6541     sim_termio="$sim_termio -DHAVE_TERMIO_STRUCTURE"
6542   fi
6543 else
6544   ac_cv_termio_struct=no
6545 fi
6546
6547 if test "$ac_cv_termio_struct" = "yes"; then
6548   echo "$as_me:$LINENO: checking for c_line field in struct termio" >&5
6549 echo $ECHO_N "checking for c_line field in struct termio... $ECHO_C" >&6
6550   if test "${ac_cv_termio_cline+set}" = set; then
6551   echo $ECHO_N "(cached) $ECHO_C" >&6
6552 else
6553   cat >conftest.$ac_ext <<_ACEOF
6554 /* confdefs.h.  */
6555 _ACEOF
6556 cat confdefs.h >>conftest.$ac_ext
6557 cat >>conftest.$ac_ext <<_ACEOF
6558 /* end confdefs.h.  */
6559 #include <sys/types.h>
6560 #include <sys/termio.h>
6561 int
6562 main ()
6563 {
6564 static struct termio x; x.c_line = 0;
6565   ;
6566   return 0;
6567 }
6568 _ACEOF
6569 rm -f conftest.$ac_objext
6570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6571   (eval $ac_compile) 2>conftest.er1
6572   ac_status=$?
6573   grep -v '^ *+' conftest.er1 >conftest.err
6574   rm -f conftest.er1
6575   cat conftest.err >&5
6576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577   (exit $ac_status); } &&
6578          { ac_try='test -z "$ac_c_werror_flag"
6579                          || test ! -s conftest.err'
6580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581   (eval $ac_try) 2>&5
6582   ac_status=$?
6583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584   (exit $ac_status); }; } &&
6585          { ac_try='test -s conftest.$ac_objext'
6586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587   (eval $ac_try) 2>&5
6588   ac_status=$?
6589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590   (exit $ac_status); }; }; then
6591   ac_cv_termio_cline=yes
6592 else
6593   echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.$ac_ext >&5
6595
6596 ac_cv_termio_cline=no
6597 fi
6598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6599 fi
6600
6601
6602   echo "$as_me:$LINENO: result: $ac_cv_termio_cline" >&5
6603 echo "${ECHO_T}$ac_cv_termio_cline" >&6
6604   if test $ac_cv_termio_cline = yes; then
6605     sim_termio="$sim_termio -DHAVE_TERMIO_CLINE"
6606   fi
6607 else
6608   ac_cv_termio_cline=no
6609 fi
6610
6611 echo "$as_me:$LINENO: checking for struct statfs" >&5
6612 echo $ECHO_N "checking for struct statfs... $ECHO_C" >&6
6613 if test "${ac_cv_struct_statfs+set}" = set; then
6614   echo $ECHO_N "(cached) $ECHO_C" >&6
6615 else
6616   cat >conftest.$ac_ext <<_ACEOF
6617 /* confdefs.h.  */
6618 _ACEOF
6619 cat confdefs.h >>conftest.$ac_ext
6620 cat >>conftest.$ac_ext <<_ACEOF
6621 /* end confdefs.h.  */
6622 #include <sys/types.h>
6623 #ifdef HAVE_SYS_PARAM_H
6624 #include <sys/param.h>
6625 #endif
6626 #ifdef HAVE_SYS_MOUNT_H
6627 #include <sys/mount.h>
6628 #endif
6629 #ifdef HAVE_SYS_VFS_H
6630 #include <sys/vfs.h>
6631 #endif
6632 #ifdef HAVE_SYS_STATFS_H
6633 #include <sys/statfs.h>
6634 #endif
6635 int
6636 main ()
6637 {
6638 static struct statfs s;
6639   ;
6640   return 0;
6641 }
6642 _ACEOF
6643 rm -f conftest.$ac_objext
6644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6645   (eval $ac_compile) 2>conftest.er1
6646   ac_status=$?
6647   grep -v '^ *+' conftest.er1 >conftest.err
6648   rm -f conftest.er1
6649   cat conftest.err >&5
6650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651   (exit $ac_status); } &&
6652          { ac_try='test -z "$ac_c_werror_flag"
6653                          || test ! -s conftest.err'
6654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655   (eval $ac_try) 2>&5
6656   ac_status=$?
6657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658   (exit $ac_status); }; } &&
6659          { ac_try='test -s conftest.$ac_objext'
6660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661   (eval $ac_try) 2>&5
6662   ac_status=$?
6663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664   (exit $ac_status); }; }; then
6665   ac_cv_struct_statfs=yes
6666 else
6667   echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.$ac_ext >&5
6669
6670 ac_cv_struct_statfs=no
6671 fi
6672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6673 fi
6674
6675 echo "$as_me:$LINENO: result: $ac_cv_struct_statfs" >&5
6676 echo "${ECHO_T}$ac_cv_struct_statfs" >&6
6677 if test $ac_cv_struct_statfs = yes; then
6678
6679 cat >>confdefs.h <<\_ACEOF
6680 #define HAVE_STRUCT_STATFS 1
6681 _ACEOF
6682
6683 fi
6684
6685 echo "$as_me:$LINENO: checking for long long" >&5
6686 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6687 if test "${ac_cv_type_long_long+set}" = set; then
6688   echo $ECHO_N "(cached) $ECHO_C" >&6
6689 else
6690   cat >conftest.$ac_ext <<_ACEOF
6691 /* confdefs.h.  */
6692 _ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h.  */
6696 $ac_includes_default
6697 int
6698 main ()
6699 {
6700 if ((long long *) 0)
6701   return 0;
6702 if (sizeof (long long))
6703   return 0;
6704   ;
6705   return 0;
6706 }
6707 _ACEOF
6708 rm -f conftest.$ac_objext
6709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6710   (eval $ac_compile) 2>conftest.er1
6711   ac_status=$?
6712   grep -v '^ *+' conftest.er1 >conftest.err
6713   rm -f conftest.er1
6714   cat conftest.err >&5
6715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716   (exit $ac_status); } &&
6717          { ac_try='test -z "$ac_c_werror_flag"
6718                          || test ! -s conftest.err'
6719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720   (eval $ac_try) 2>&5
6721   ac_status=$?
6722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723   (exit $ac_status); }; } &&
6724          { ac_try='test -s conftest.$ac_objext'
6725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726   (eval $ac_try) 2>&5
6727   ac_status=$?
6728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729   (exit $ac_status); }; }; then
6730   ac_cv_type_long_long=yes
6731 else
6732   echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6734
6735 ac_cv_type_long_long=no
6736 fi
6737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6738 fi
6739 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6740 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6741 if test $ac_cv_type_long_long = yes; then
6742
6743 cat >>confdefs.h <<_ACEOF
6744 #define HAVE_LONG_LONG 1
6745 _ACEOF
6746
6747
6748 fi
6749
6750
6751 sim_devzero=""
6752 echo "$as_me:$LINENO: checking for /dev/zero" >&5
6753 echo $ECHO_N "checking for /dev/zero... $ECHO_C" >&6
6754 if test "${ac_cv_devzero+set}" = set; then
6755   echo $ECHO_N "(cached) $ECHO_C" >&6
6756 else
6757   if test "$cross_compiling" = yes; then
6758   ac_cv_devzero=no
6759 else
6760   cat >conftest.$ac_ext <<_ACEOF
6761 /* confdefs.h.  */
6762 _ACEOF
6763 cat confdefs.h >>conftest.$ac_ext
6764 cat >>conftest.$ac_ext <<_ACEOF
6765 /* end confdefs.h.  */
6766 #include <fcntl.h>
6767 main () {
6768   char buf[2048];
6769   int i;
6770   int fd = open ("/dev/zero", O_RDONLY);
6771   if (fd < 0)
6772     return 1;
6773   for (i = 0; i < sizeof (buf); i++)
6774     buf[i] = 1;
6775   if (read (fd, buf, sizeof (buf)) != sizeof (buf))
6776     return 1;
6777   for (i = 0; i < sizeof (buf); i++)
6778     if (buf[i])
6779       return 1;
6780   return 0;
6781 }
6782 _ACEOF
6783 rm -f conftest$ac_exeext
6784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6785   (eval $ac_link) 2>&5
6786   ac_status=$?
6787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6790   (eval $ac_try) 2>&5
6791   ac_status=$?
6792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793   (exit $ac_status); }; }; then
6794   ac_cv_devzero=yes
6795 else
6796   echo "$as_me: program exited with status $ac_status" >&5
6797 echo "$as_me: failed program was:" >&5
6798 sed 's/^/| /' conftest.$ac_ext >&5
6799
6800 ( exit $ac_status )
6801 ac_cv_devzero=no
6802 fi
6803 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6804 fi
6805 fi
6806
6807 echo "$as_me:$LINENO: result: $ac_cv_devzero" >&5
6808 echo "${ECHO_T}$ac_cv_devzero" >&6
6809 if test $ac_cv_devzero = yes; then
6810   sim_devzero="-DHAVE_DEVZERO"
6811 else
6812   sim_devzero=""
6813 fi
6814
6815 echo "$as_me:$LINENO: checking for common simulator directory" >&5
6816 echo $ECHO_N "checking for common simulator directory... $ECHO_C" >&6
6817 if test -f "${srcdir}/../common/callback.c"; then
6818   echo "$as_me:$LINENO: result: yes" >&5
6819 echo "${ECHO_T}yes" >&6
6820   sim_callback="callback.o targ-map.o"
6821   sim_targ_vals="targ-vals.h targ-map.c targ-vals.def"
6822 else
6823   echo "$as_me:$LINENO: result: no" >&5
6824 echo "${ECHO_T}no" >&6
6825   sim_callback=""
6826   sim_targ_vals=""
6827 fi
6828
6829 echo "$as_me:$LINENO: checking for common simulator directory fpu implementation" >&5
6830 echo $ECHO_N "checking for common simulator directory fpu implementation... $ECHO_C" >&6
6831 if test -f "${srcdir}/../common/sim-fpu.c"; then
6832   echo "$as_me:$LINENO: result: yes" >&5
6833 echo "${ECHO_T}yes" >&6
6834   sim_fpu_cflags="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
6835   sim_fpu="sim-fpu.o"
6836 else
6837   echo "$as_me:$LINENO: result: no" >&5
6838 echo "${ECHO_T}no" >&6
6839   sim_fpu_cflags=
6840   sim_fpu=
6841 fi
6842
6843
6844
6845
6846
6847
6848
6849 AR=${AR-ar}
6850
6851 if test -n "$ac_tool_prefix"; then
6852   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6853 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6854 echo "$as_me:$LINENO: checking for $ac_word" >&5
6855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6856 if test "${ac_cv_prog_RANLIB+set}" = set; then
6857   echo $ECHO_N "(cached) $ECHO_C" >&6
6858 else
6859   if test -n "$RANLIB"; then
6860   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6861 else
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6864 do
6865   IFS=$as_save_IFS
6866   test -z "$as_dir" && as_dir=.
6867   for ac_exec_ext in '' $ac_executable_extensions; do
6868   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6869     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871     break 2
6872   fi
6873 done
6874 done
6875
6876 fi
6877 fi
6878 RANLIB=$ac_cv_prog_RANLIB
6879 if test -n "$RANLIB"; then
6880   echo "$as_me:$LINENO: result: $RANLIB" >&5
6881 echo "${ECHO_T}$RANLIB" >&6
6882 else
6883   echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6
6885 fi
6886
6887 fi
6888 if test -z "$ac_cv_prog_RANLIB"; then
6889   ac_ct_RANLIB=$RANLIB
6890   # Extract the first word of "ranlib", so it can be a program name with args.
6891 set dummy ranlib; ac_word=$2
6892 echo "$as_me:$LINENO: checking for $ac_word" >&5
6893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6894 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6895   echo $ECHO_N "(cached) $ECHO_C" >&6
6896 else
6897   if test -n "$ac_ct_RANLIB"; then
6898   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6899 else
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 for as_dir in $PATH
6902 do
6903   IFS=$as_save_IFS
6904   test -z "$as_dir" && as_dir=.
6905   for ac_exec_ext in '' $ac_executable_extensions; do
6906   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6907     ac_cv_prog_ac_ct_RANLIB="ranlib"
6908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6909     break 2
6910   fi
6911 done
6912 done
6913
6914   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6915 fi
6916 fi
6917 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6918 if test -n "$ac_ct_RANLIB"; then
6919   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6920 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6921 else
6922   echo "$as_me:$LINENO: result: no" >&5
6923 echo "${ECHO_T}no" >&6
6924 fi
6925
6926   RANLIB=$ac_ct_RANLIB
6927 else
6928   RANLIB="$ac_cv_prog_RANLIB"
6929 fi
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976           ac_config_files="$ac_config_files Makefile"
6977           ac_config_commands="$ac_config_commands default"
6978 cat >confcache <<\_ACEOF
6979 # This file is a shell script that caches the results of configure
6980 # tests run on this system so they can be shared between configure
6981 # scripts and configure runs, see configure's option --config-cache.
6982 # It is not useful on other systems.  If it contains results you don't
6983 # want to keep, you may remove or edit it.
6984 #
6985 # config.status only pays attention to the cache file if you give it
6986 # the --recheck option to rerun configure.
6987 #
6988 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6989 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6990 # following values.
6991
6992 _ACEOF
6993
6994 # The following way of writing the cache mishandles newlines in values,
6995 # but we know of no workaround that is simple, portable, and efficient.
6996 # So, don't put newlines in cache variables' values.
6997 # Ultrix sh set writes to stderr and can't be redirected directly,
6998 # and sets the high bit in the cache file unless we assign to the vars.
6999 {
7000   (set) 2>&1 |
7001     case `(ac_space=' '; set | grep ac_space) 2>&1` in
7002     *ac_space=\ *)
7003       # `set' does not quote correctly, so add quotes (double-quote
7004       # substitution turns \\\\ into \\, and sed turns \\ into \).
7005       sed -n \
7006         "s/'/'\\\\''/g;
7007           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7008       ;;
7009     *)
7010       # `set' quotes correctly as required by POSIX, so do not add quotes.
7011       sed -n \
7012         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7013       ;;
7014     esac;
7015 } |
7016   sed '
7017      t clear
7018      : clear
7019      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7020      t end
7021      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7022      : end' >>confcache
7023 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7024   if test -w $cache_file; then
7025     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7026     cat confcache >$cache_file
7027   else
7028     echo "not updating unwritable cache $cache_file"
7029   fi
7030 fi
7031 rm -f confcache
7032
7033 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7034 # Let make expand exec_prefix.
7035 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7036
7037 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7038 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7039 # trailing colons and then remove the whole line if VPATH becomes empty
7040 # (actually we leave an empty line to preserve line numbers).
7041 if test "x$srcdir" = x.; then
7042   ac_vpsub='/^[  ]*VPATH[        ]*=/{
7043 s/:*\$(srcdir):*/:/;
7044 s/:*\${srcdir}:*/:/;
7045 s/:*@srcdir@:*/:/;
7046 s/^\([^=]*=[     ]*\):*/\1/;
7047 s/:*$//;
7048 s/^[^=]*=[       ]*$//;
7049 }'
7050 fi
7051
7052 DEFS=-DHAVE_CONFIG_H
7053
7054 ac_libobjs=
7055 ac_ltlibobjs=
7056 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7057   # 1. Remove the extension, and $U if already installed.
7058   ac_i=`echo "$ac_i" |
7059          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7060   # 2. Add them.
7061   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7062   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7063 done
7064 LIBOBJS=$ac_libobjs
7065
7066 LTLIBOBJS=$ac_ltlibobjs
7067
7068
7069
7070 : ${CONFIG_STATUS=./config.status}
7071 ac_clean_files_save=$ac_clean_files
7072 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7073 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7074 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7075 cat >$CONFIG_STATUS <<_ACEOF
7076 #! $SHELL
7077 # Generated by $as_me.
7078 # Run this file to recreate the current configuration.
7079 # Compiler output produced by configure, useful for debugging
7080 # configure, is in config.log if it exists.
7081
7082 debug=false
7083 ac_cs_recheck=false
7084 ac_cs_silent=false
7085 SHELL=\${CONFIG_SHELL-$SHELL}
7086 _ACEOF
7087
7088 cat >>$CONFIG_STATUS <<\_ACEOF
7089 ## --------------------- ##
7090 ## M4sh Initialization.  ##
7091 ## --------------------- ##
7092
7093 # Be Bourne compatible
7094 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7095   emulate sh
7096   NULLCMD=:
7097   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7098   # is contrary to our usage.  Disable this feature.
7099   alias -g '${1+"$@"}'='"$@"'
7100 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7101   set -o posix
7102 fi
7103 DUALCASE=1; export DUALCASE # for MKS sh
7104
7105 # Support unset when possible.
7106 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7107   as_unset=unset
7108 else
7109   as_unset=false
7110 fi
7111
7112
7113 # Work around bugs in pre-3.0 UWIN ksh.
7114 $as_unset ENV MAIL MAILPATH
7115 PS1='$ '
7116 PS2='> '
7117 PS4='+ '
7118
7119 # NLS nuisances.
7120 for as_var in \
7121   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7122   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7123   LC_TELEPHONE LC_TIME
7124 do
7125   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7126     eval $as_var=C; export $as_var
7127   else
7128     $as_unset $as_var
7129   fi
7130 done
7131
7132 # Required to use basename.
7133 if expr a : '\(a\)' >/dev/null 2>&1; then
7134   as_expr=expr
7135 else
7136   as_expr=false
7137 fi
7138
7139 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7140   as_basename=basename
7141 else
7142   as_basename=false
7143 fi
7144
7145
7146 # Name of the executable.
7147 as_me=`$as_basename "$0" ||
7148 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7149          X"$0" : 'X\(//\)$' \| \
7150          X"$0" : 'X\(/\)$' \| \
7151          .     : '\(.\)' 2>/dev/null ||
7152 echo X/"$0" |
7153     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7154           /^X\/\(\/\/\)$/{ s//\1/; q; }
7155           /^X\/\(\/\).*/{ s//\1/; q; }
7156           s/.*/./; q'`
7157
7158
7159 # PATH needs CR, and LINENO needs CR and PATH.
7160 # Avoid depending upon Character Ranges.
7161 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7162 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7163 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7164 as_cr_digits='0123456789'
7165 as_cr_alnum=$as_cr_Letters$as_cr_digits
7166
7167 # The user is always right.
7168 if test "${PATH_SEPARATOR+set}" != set; then
7169   echo "#! /bin/sh" >conf$$.sh
7170   echo  "exit 0"   >>conf$$.sh
7171   chmod +x conf$$.sh
7172   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7173     PATH_SEPARATOR=';'
7174   else
7175     PATH_SEPARATOR=:
7176   fi
7177   rm -f conf$$.sh
7178 fi
7179
7180
7181   as_lineno_1=$LINENO
7182   as_lineno_2=$LINENO
7183   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7184   test "x$as_lineno_1" != "x$as_lineno_2" &&
7185   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7186   # Find who we are.  Look in the path if we contain no path at all
7187   # relative or not.
7188   case $0 in
7189     *[\\/]* ) as_myself=$0 ;;
7190     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 for as_dir in $PATH
7192 do
7193   IFS=$as_save_IFS
7194   test -z "$as_dir" && as_dir=.
7195   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7196 done
7197
7198        ;;
7199   esac
7200   # We did not find ourselves, most probably we were run as `sh COMMAND'
7201   # in which case we are not to be found in the path.
7202   if test "x$as_myself" = x; then
7203     as_myself=$0
7204   fi
7205   if test ! -f "$as_myself"; then
7206     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7207 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7208    { (exit 1); exit 1; }; }
7209   fi
7210   case $CONFIG_SHELL in
7211   '')
7212     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7214 do
7215   IFS=$as_save_IFS
7216   test -z "$as_dir" && as_dir=.
7217   for as_base in sh bash ksh sh5; do
7218          case $as_dir in
7219          /*)
7220            if ("$as_dir/$as_base" -c '
7221   as_lineno_1=$LINENO
7222   as_lineno_2=$LINENO
7223   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7224   test "x$as_lineno_1" != "x$as_lineno_2" &&
7225   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7226              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7227              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7228              CONFIG_SHELL=$as_dir/$as_base
7229              export CONFIG_SHELL
7230              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7231            fi;;
7232          esac
7233        done
7234 done
7235 ;;
7236   esac
7237
7238   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7239   # uniformly replaced by the line number.  The first 'sed' inserts a
7240   # line-number line before each line; the second 'sed' does the real
7241   # work.  The second script uses 'N' to pair each line-number line
7242   # with the numbered line, and appends trailing '-' during
7243   # substitution so that $LINENO is not a special case at line end.
7244   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7245   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7246   sed '=' <$as_myself |
7247     sed '
7248       N
7249       s,$,-,
7250       : loop
7251       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7252       t loop
7253       s,-$,,
7254       s,^['$as_cr_digits']*\n,,
7255     ' >$as_me.lineno &&
7256   chmod +x $as_me.lineno ||
7257     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7258 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7259    { (exit 1); exit 1; }; }
7260
7261   # Don't try to exec as it changes $[0], causing all sort of problems
7262   # (the dirname of $[0] is not the place where we might find the
7263   # original and so on.  Autoconf is especially sensible to this).
7264   . ./$as_me.lineno
7265   # Exit status is that of the last command.
7266   exit
7267 }
7268
7269
7270 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7271   *c*,-n*) ECHO_N= ECHO_C='
7272 ' ECHO_T='      ' ;;
7273   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7274   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7275 esac
7276
7277 if expr a : '\(a\)' >/dev/null 2>&1; then
7278   as_expr=expr
7279 else
7280   as_expr=false
7281 fi
7282
7283 rm -f conf$$ conf$$.exe conf$$.file
7284 echo >conf$$.file
7285 if ln -s conf$$.file conf$$ 2>/dev/null; then
7286   # We could just check for DJGPP; but this test a) works b) is more generic
7287   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7288   if test -f conf$$.exe; then
7289     # Don't use ln at all; we don't have any links
7290     as_ln_s='cp -p'
7291   else
7292     as_ln_s='ln -s'
7293   fi
7294 elif ln conf$$.file conf$$ 2>/dev/null; then
7295   as_ln_s=ln
7296 else
7297   as_ln_s='cp -p'
7298 fi
7299 rm -f conf$$ conf$$.exe conf$$.file
7300
7301 if mkdir -p . 2>/dev/null; then
7302   as_mkdir_p=:
7303 else
7304   test -d ./-p && rmdir ./-p
7305   as_mkdir_p=false
7306 fi
7307
7308 as_executable_p="test -f"
7309
7310 # Sed expression to map a string onto a valid CPP name.
7311 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7312
7313 # Sed expression to map a string onto a valid variable name.
7314 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7315
7316
7317 # IFS
7318 # We need space, tab and new line, in precisely that order.
7319 as_nl='
7320 '
7321 IFS="   $as_nl"
7322
7323 # CDPATH.
7324 $as_unset CDPATH
7325
7326 exec 6>&1
7327
7328 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7329 # report actual input values of CONFIG_FILES etc. instead of their
7330 # values after options handling.  Logging --version etc. is OK.
7331 exec 5>>config.log
7332 {
7333   echo
7334   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7335 ## Running $as_me. ##
7336 _ASBOX
7337 } >&5
7338 cat >&5 <<_CSEOF
7339
7340 This file was extended by $as_me, which was
7341 generated by GNU Autoconf 2.59.  Invocation command line was
7342
7343   CONFIG_FILES    = $CONFIG_FILES
7344   CONFIG_HEADERS  = $CONFIG_HEADERS
7345   CONFIG_LINKS    = $CONFIG_LINKS
7346   CONFIG_COMMANDS = $CONFIG_COMMANDS
7347   $ $0 $@
7348
7349 _CSEOF
7350 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7351 echo >&5
7352 _ACEOF
7353
7354 # Files that config.status was made for.
7355 if test -n "$ac_config_files"; then
7356   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7357 fi
7358
7359 if test -n "$ac_config_headers"; then
7360   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7361 fi
7362
7363 if test -n "$ac_config_links"; then
7364   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7365 fi
7366
7367 if test -n "$ac_config_commands"; then
7368   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7369 fi
7370
7371 cat >>$CONFIG_STATUS <<\_ACEOF
7372
7373 ac_cs_usage="\
7374 \`$as_me' instantiates files from templates according to the
7375 current configuration.
7376
7377 Usage: $0 [OPTIONS] [FILE]...
7378
7379   -h, --help       print this help, then exit
7380   -V, --version    print version number, then exit
7381   -q, --quiet      do not print progress messages
7382   -d, --debug      don't remove temporary files
7383       --recheck    update $as_me by reconfiguring in the same conditions
7384   --file=FILE[:TEMPLATE]
7385                    instantiate the configuration file FILE
7386   --header=FILE[:TEMPLATE]
7387                    instantiate the configuration header FILE
7388
7389 Configuration files:
7390 $config_files
7391
7392 Configuration headers:
7393 $config_headers
7394
7395 Configuration commands:
7396 $config_commands
7397
7398 Report bugs to <bug-autoconf@gnu.org>."
7399 _ACEOF
7400
7401 cat >>$CONFIG_STATUS <<_ACEOF
7402 ac_cs_version="\\
7403 config.status
7404 configured by $0, generated by GNU Autoconf 2.59,
7405   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7406
7407 Copyright (C) 2003 Free Software Foundation, Inc.
7408 This config.status script is free software; the Free Software Foundation
7409 gives unlimited permission to copy, distribute and modify it."
7410 srcdir=$srcdir
7411 INSTALL="$INSTALL"
7412 _ACEOF
7413
7414 cat >>$CONFIG_STATUS <<\_ACEOF
7415 # If no file are specified by the user, then we need to provide default
7416 # value.  By we need to know if files were specified by the user.
7417 ac_need_defaults=:
7418 while test $# != 0
7419 do
7420   case $1 in
7421   --*=*)
7422     ac_option=`expr "x$1" : 'x\([^=]*\)='`
7423     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7424     ac_shift=:
7425     ;;
7426   -*)
7427     ac_option=$1
7428     ac_optarg=$2
7429     ac_shift=shift
7430     ;;
7431   *) # This is not an option, so the user has probably given explicit
7432      # arguments.
7433      ac_option=$1
7434      ac_need_defaults=false;;
7435   esac
7436
7437   case $ac_option in
7438   # Handling of the options.
7439 _ACEOF
7440 cat >>$CONFIG_STATUS <<\_ACEOF
7441   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7442     ac_cs_recheck=: ;;
7443   --version | --vers* | -V )
7444     echo "$ac_cs_version"; exit 0 ;;
7445   --he | --h)
7446     # Conflict between --help and --header
7447     { { echo "$as_me:$LINENO: error: ambiguous option: $1
7448 Try \`$0 --help' for more information." >&5
7449 echo "$as_me: error: ambiguous option: $1
7450 Try \`$0 --help' for more information." >&2;}
7451    { (exit 1); exit 1; }; };;
7452   --help | --hel | -h )
7453     echo "$ac_cs_usage"; exit 0 ;;
7454   --debug | --d* | -d )
7455     debug=: ;;
7456   --file | --fil | --fi | --f )
7457     $ac_shift
7458     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7459     ac_need_defaults=false;;
7460   --header | --heade | --head | --hea )
7461     $ac_shift
7462     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7463     ac_need_defaults=false;;
7464   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7465   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7466     ac_cs_silent=: ;;
7467
7468   # This is an error.
7469   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7470 Try \`$0 --help' for more information." >&5
7471 echo "$as_me: error: unrecognized option: $1
7472 Try \`$0 --help' for more information." >&2;}
7473    { (exit 1); exit 1; }; } ;;
7474
7475   *) ac_config_targets="$ac_config_targets $1" ;;
7476
7477   esac
7478   shift
7479 done
7480
7481 ac_configure_extra_args=
7482
7483 if $ac_cs_silent; then
7484   exec 6>/dev/null
7485   ac_configure_extra_args="$ac_configure_extra_args --silent"
7486 fi
7487
7488 _ACEOF
7489 cat >>$CONFIG_STATUS <<_ACEOF
7490 if \$ac_cs_recheck; then
7491   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7492   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7493 fi
7494
7495 _ACEOF
7496
7497
7498
7499
7500
7501 cat >>$CONFIG_STATUS <<\_ACEOF
7502 for ac_config_target in $ac_config_targets
7503 do
7504   case "$ac_config_target" in
7505   # Handling of arguments.
7506   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7507   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7508   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7509   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7510 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7511    { (exit 1); exit 1; }; };;
7512   esac
7513 done
7514
7515 # If the user did not use the arguments to specify the items to instantiate,
7516 # then the envvar interface is used.  Set only those that are not.
7517 # We use the long form for the default assignment because of an extremely
7518 # bizarre bug on SunOS 4.1.3.
7519 if $ac_need_defaults; then
7520   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7521   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7522   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7523 fi
7524
7525 # Have a temporary directory for convenience.  Make it in the build tree
7526 # simply because there is no reason to put it here, and in addition,
7527 # creating and moving files from /tmp can sometimes cause problems.
7528 # Create a temporary directory, and hook for its removal unless debugging.
7529 $debug ||
7530 {
7531   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7532   trap '{ (exit 1); exit 1; }' 1 2 13 15
7533 }
7534
7535 # Create a (secure) tmp directory for tmp files.
7536
7537 {
7538   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7539   test -n "$tmp" && test -d "$tmp"
7540 }  ||
7541 {
7542   tmp=./confstat$$-$RANDOM
7543   (umask 077 && mkdir $tmp)
7544 } ||
7545 {
7546    echo "$me: cannot create a temporary directory in ." >&2
7547    { (exit 1); exit 1; }
7548 }
7549
7550 _ACEOF
7551
7552 cat >>$CONFIG_STATUS <<_ACEOF
7553
7554 #
7555 # CONFIG_FILES section.
7556 #
7557
7558 # No need to generate the scripts if there are no CONFIG_FILES.
7559 # This happens for instance when ./config.status config.h
7560 if test -n "\$CONFIG_FILES"; then
7561   # Protect against being on the right side of a sed subst in config.status.
7562   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7563    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7564 s,@sim_environment@,$sim_environment,;t t
7565 s,@sim_alignment@,$sim_alignment,;t t
7566 s,@sim_assert@,$sim_assert,;t t
7567 s,@sim_bitsize@,$sim_bitsize,;t t
7568 s,@sim_endian@,$sim_endian,;t t
7569 s,@sim_hostendian@,$sim_hostendian,;t t
7570 s,@sim_float@,$sim_float,;t t
7571 s,@sim_scache@,$sim_scache,;t t
7572 s,@sim_default_model@,$sim_default_model,;t t
7573 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
7574 s,@sim_hw_objs@,$sim_hw_objs,;t t
7575 s,@sim_hw@,$sim_hw,;t t
7576 s,@sim_inline@,$sim_inline,;t t
7577 s,@sim_packages@,$sim_packages,;t t
7578 s,@sim_regparm@,$sim_regparm,;t t
7579 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
7580 s,@sim_smp@,$sim_smp,;t t
7581 s,@sim_stdcall@,$sim_stdcall,;t t
7582 s,@sim_xor_endian@,$sim_xor_endian,;t t
7583 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
7584 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
7585 s,@SHELL@,$SHELL,;t t
7586 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7587 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7588 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7589 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7590 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7591 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7592 s,@exec_prefix@,$exec_prefix,;t t
7593 s,@prefix@,$prefix,;t t
7594 s,@program_transform_name@,$program_transform_name,;t t
7595 s,@bindir@,$bindir,;t t
7596 s,@sbindir@,$sbindir,;t t
7597 s,@libexecdir@,$libexecdir,;t t
7598 s,@datadir@,$datadir,;t t
7599 s,@sysconfdir@,$sysconfdir,;t t
7600 s,@sharedstatedir@,$sharedstatedir,;t t
7601 s,@localstatedir@,$localstatedir,;t t
7602 s,@libdir@,$libdir,;t t
7603 s,@includedir@,$includedir,;t t
7604 s,@oldincludedir@,$oldincludedir,;t t
7605 s,@infodir@,$infodir,;t t
7606 s,@mandir@,$mandir,;t t
7607 s,@build_alias@,$build_alias,;t t
7608 s,@host_alias@,$host_alias,;t t
7609 s,@target_alias@,$target_alias,;t t
7610 s,@DEFS@,$DEFS,;t t
7611 s,@ECHO_C@,$ECHO_C,;t t
7612 s,@ECHO_N@,$ECHO_N,;t t
7613 s,@ECHO_T@,$ECHO_T,;t t
7614 s,@LIBS@,$LIBS,;t t
7615 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7616 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7617 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7618 s,@CC@,$CC,;t t
7619 s,@CFLAGS@,$CFLAGS,;t t
7620 s,@LDFLAGS@,$LDFLAGS,;t t
7621 s,@CPPFLAGS@,$CPPFLAGS,;t t
7622 s,@ac_ct_CC@,$ac_ct_CC,;t t
7623 s,@EXEEXT@,$EXEEXT,;t t
7624 s,@OBJEXT@,$OBJEXT,;t t
7625 s,@USE_NLS@,$USE_NLS,;t t
7626 s,@LIBINTL@,$LIBINTL,;t t
7627 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
7628 s,@INCINTL@,$INCINTL,;t t
7629 s,@XGETTEXT@,$XGETTEXT,;t t
7630 s,@GMSGFMT@,$GMSGFMT,;t t
7631 s,@POSUB@,$POSUB,;t t
7632 s,@CATALOGS@,$CATALOGS,;t t
7633 s,@DATADIRNAME@,$DATADIRNAME,;t t
7634 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7635 s,@GENCAT@,$GENCAT,;t t
7636 s,@CATOBJEXT@,$CATOBJEXT,;t t
7637 s,@PKGVERSION@,$PKGVERSION,;t t
7638 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
7639 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
7640 s,@build@,$build,;t t
7641 s,@build_cpu@,$build_cpu,;t t
7642 s,@build_vendor@,$build_vendor,;t t
7643 s,@build_os@,$build_os,;t t
7644 s,@host@,$host,;t t
7645 s,@host_cpu@,$host_cpu,;t t
7646 s,@host_vendor@,$host_vendor,;t t
7647 s,@host_os@,$host_os,;t t
7648 s,@target@,$target,;t t
7649 s,@target_cpu@,$target_cpu,;t t
7650 s,@target_vendor@,$target_vendor,;t t
7651 s,@target_os@,$target_os,;t t
7652 s,@CPP@,$CPP,;t t
7653 s,@EGREP@,$EGREP,;t t
7654 s,@LIBOBJS@,$LIBOBJS,;t t
7655 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
7656 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
7657 s,@HDEFINES@,$HDEFINES,;t t
7658 s,@AR@,$AR,;t t
7659 s,@RANLIB@,$RANLIB,;t t
7660 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7661 s,@sim_cflags@,$sim_cflags,;t t
7662 s,@sim_warnings@,$sim_warnings,;t t
7663 s,@sim_line_nr@,$sim_line_nr,;t t
7664 s,@sim_config@,$sim_config,;t t
7665 s,@sim_opcode@,$sim_opcode,;t t
7666 s,@sim_switch@,$sim_switch,;t t
7667 s,@sim_dup@,$sim_dup,;t t
7668 s,@sim_decode_mechanism@,$sim_decode_mechanism,;t t
7669 s,@sim_jump@,$sim_jump,;t t
7670 s,@sim_filter@,$sim_filter,;t t
7671 s,@sim_icache@,$sim_icache,;t t
7672 s,@sim_hw_src@,$sim_hw_src,;t t
7673 s,@sim_hw_obj@,$sim_hw_obj,;t t
7674 s,@sim_pk_src@,$sim_pk_src,;t t
7675 s,@sim_pk_obj@,$sim_pk_obj,;t t
7676 s,@sim_bswap@,$sim_bswap,;t t
7677 s,@sim_igen_smp@,$sim_igen_smp,;t t
7678 s,@sim_hostbitsize@,$sim_hostbitsize,;t t
7679 s,@sim_env@,$sim_env,;t t
7680 s,@sim_timebase@,$sim_timebase,;t t
7681 s,@sim_trace@,$sim_trace,;t t
7682 s,@sim_reserved@,$sim_reserved,;t t
7683 s,@sim_monitor@,$sim_monitor,;t t
7684 s,@sim_model@,$sim_model,;t t
7685 s,@sim_model_issue@,$sim_model_issue,;t t
7686 s,@sim_stdio@,$sim_stdio,;t t
7687 s,@sim_termio@,$sim_termio,;t t
7688 s,@sim_devzero@,$sim_devzero,;t t
7689 s,@sim_callback@,$sim_callback,;t t
7690 s,@sim_targ_vals@,$sim_targ_vals,;t t
7691 s,@sim_fpu_cflags@,$sim_fpu_cflags,;t t
7692 s,@sim_fpu@,$sim_fpu,;t t
7693 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7694 CEOF
7695
7696 _ACEOF
7697
7698   cat >>$CONFIG_STATUS <<\_ACEOF
7699   # Split the substitutions into bite-sized pieces for seds with
7700   # small command number limits, like on Digital OSF/1 and HP-UX.
7701   ac_max_sed_lines=48
7702   ac_sed_frag=1 # Number of current file.
7703   ac_beg=1 # First line for current file.
7704   ac_end=$ac_max_sed_lines # Line after last line for current file.
7705   ac_more_lines=:
7706   ac_sed_cmds=
7707   while $ac_more_lines; do
7708     if test $ac_beg -gt 1; then
7709       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7710     else
7711       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7712     fi
7713     if test ! -s $tmp/subs.frag; then
7714       ac_more_lines=false
7715     else
7716       # The purpose of the label and of the branching condition is to
7717       # speed up the sed processing (if there are no `@' at all, there
7718       # is no need to browse any of the substitutions).
7719       # These are the two extra sed commands mentioned above.
7720       (echo ':t
7721   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7722       if test -z "$ac_sed_cmds"; then
7723         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7724       else
7725         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7726       fi
7727       ac_sed_frag=`expr $ac_sed_frag + 1`
7728       ac_beg=$ac_end
7729       ac_end=`expr $ac_end + $ac_max_sed_lines`
7730     fi
7731   done
7732   if test -z "$ac_sed_cmds"; then
7733     ac_sed_cmds=cat
7734   fi
7735 fi # test -n "$CONFIG_FILES"
7736
7737 _ACEOF
7738 cat >>$CONFIG_STATUS <<\_ACEOF
7739 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7740   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7741   case $ac_file in
7742   - | *:- | *:-:* ) # input from stdin
7743         cat >$tmp/stdin
7744         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7745         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7746   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7747         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7748   * )   ac_file_in=$ac_file.in ;;
7749   esac
7750
7751   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7752   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7753 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7754          X"$ac_file" : 'X\(//\)[^/]' \| \
7755          X"$ac_file" : 'X\(//\)$' \| \
7756          X"$ac_file" : 'X\(/\)' \| \
7757          .     : '\(.\)' 2>/dev/null ||
7758 echo X"$ac_file" |
7759     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7760           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7761           /^X\(\/\/\)$/{ s//\1/; q; }
7762           /^X\(\/\).*/{ s//\1/; q; }
7763           s/.*/./; q'`
7764   { if $as_mkdir_p; then
7765     mkdir -p "$ac_dir"
7766   else
7767     as_dir="$ac_dir"
7768     as_dirs=
7769     while test ! -d "$as_dir"; do
7770       as_dirs="$as_dir $as_dirs"
7771       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7772 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7773          X"$as_dir" : 'X\(//\)[^/]' \| \
7774          X"$as_dir" : 'X\(//\)$' \| \
7775          X"$as_dir" : 'X\(/\)' \| \
7776          .     : '\(.\)' 2>/dev/null ||
7777 echo X"$as_dir" |
7778     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7779           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7780           /^X\(\/\/\)$/{ s//\1/; q; }
7781           /^X\(\/\).*/{ s//\1/; q; }
7782           s/.*/./; q'`
7783     done
7784     test ! -n "$as_dirs" || mkdir $as_dirs
7785   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7786 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7787    { (exit 1); exit 1; }; }; }
7788
7789   ac_builddir=.
7790
7791 if test "$ac_dir" != .; then
7792   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7793   # A "../" for each directory in $ac_dir_suffix.
7794   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7795 else
7796   ac_dir_suffix= ac_top_builddir=
7797 fi
7798
7799 case $srcdir in
7800   .)  # No --srcdir option.  We are building in place.
7801     ac_srcdir=.
7802     if test -z "$ac_top_builddir"; then
7803        ac_top_srcdir=.
7804     else
7805        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7806     fi ;;
7807   [\\/]* | ?:[\\/]* )  # Absolute path.
7808     ac_srcdir=$srcdir$ac_dir_suffix;
7809     ac_top_srcdir=$srcdir ;;
7810   *) # Relative path.
7811     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7812     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7813 esac
7814
7815 # Do not use `cd foo && pwd` to compute absolute paths, because
7816 # the directories may not exist.
7817 case `pwd` in
7818 .) ac_abs_builddir="$ac_dir";;
7819 *)
7820   case "$ac_dir" in
7821   .) ac_abs_builddir=`pwd`;;
7822   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7823   *) ac_abs_builddir=`pwd`/"$ac_dir";;
7824   esac;;
7825 esac
7826 case $ac_abs_builddir in
7827 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7828 *)
7829   case ${ac_top_builddir}. in
7830   .) ac_abs_top_builddir=$ac_abs_builddir;;
7831   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7832   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7833   esac;;
7834 esac
7835 case $ac_abs_builddir in
7836 .) ac_abs_srcdir=$ac_srcdir;;
7837 *)
7838   case $ac_srcdir in
7839   .) ac_abs_srcdir=$ac_abs_builddir;;
7840   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7841   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7842   esac;;
7843 esac
7844 case $ac_abs_builddir in
7845 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7846 *)
7847   case $ac_top_srcdir in
7848   .) ac_abs_top_srcdir=$ac_abs_builddir;;
7849   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7850   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7851   esac;;
7852 esac
7853
7854
7855   case $INSTALL in
7856   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7857   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7858   esac
7859
7860   if test x"$ac_file" != x-; then
7861     { echo "$as_me:$LINENO: creating $ac_file" >&5
7862 echo "$as_me: creating $ac_file" >&6;}
7863     rm -f "$ac_file"
7864   fi
7865   # Let's still pretend it is `configure' which instantiates (i.e., don't
7866   # use $as_me), people would be surprised to read:
7867   #    /* config.h.  Generated by config.status.  */
7868   if test x"$ac_file" = x-; then
7869     configure_input=
7870   else
7871     configure_input="$ac_file.  "
7872   fi
7873   configure_input=$configure_input"Generated from `echo $ac_file_in |
7874                                      sed 's,.*/,,'` by configure."
7875
7876   # First look for the input files in the build tree, otherwise in the
7877   # src tree.
7878   ac_file_inputs=`IFS=:
7879     for f in $ac_file_in; do
7880       case $f in
7881       -) echo $tmp/stdin ;;
7882       [\\/$]*)
7883          # Absolute (can't be DOS-style, as IFS=:)
7884          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7885 echo "$as_me: error: cannot find input file: $f" >&2;}
7886    { (exit 1); exit 1; }; }
7887          echo "$f";;
7888       *) # Relative
7889          if test -f "$f"; then
7890            # Build tree
7891            echo "$f"
7892          elif test -f "$srcdir/$f"; then
7893            # Source tree
7894            echo "$srcdir/$f"
7895          else
7896            # /dev/null tree
7897            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7898 echo "$as_me: error: cannot find input file: $f" >&2;}
7899    { (exit 1); exit 1; }; }
7900          fi;;
7901       esac
7902     done` || { (exit 1); exit 1; }
7903 _ACEOF
7904 cat >>$CONFIG_STATUS <<_ACEOF
7905   sed "$ac_vpsub
7906 $extrasub
7907 _ACEOF
7908 cat >>$CONFIG_STATUS <<\_ACEOF
7909 :t
7910 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7911 s,@configure_input@,$configure_input,;t t
7912 s,@srcdir@,$ac_srcdir,;t t
7913 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7914 s,@top_srcdir@,$ac_top_srcdir,;t t
7915 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7916 s,@builddir@,$ac_builddir,;t t
7917 s,@abs_builddir@,$ac_abs_builddir,;t t
7918 s,@top_builddir@,$ac_top_builddir,;t t
7919 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7920 s,@INSTALL@,$ac_INSTALL,;t t
7921 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7922   rm -f $tmp/stdin
7923   if test x"$ac_file" != x-; then
7924     mv $tmp/out $ac_file
7925   else
7926     cat $tmp/out
7927     rm -f $tmp/out
7928   fi
7929
7930 done
7931 _ACEOF
7932 cat >>$CONFIG_STATUS <<\_ACEOF
7933
7934 #
7935 # CONFIG_HEADER section.
7936 #
7937
7938 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7939 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7940 #
7941 # ac_d sets the value in "#define NAME VALUE" lines.
7942 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
7943 ac_dB='[         ].*$,\1#\2'
7944 ac_dC=' '
7945 ac_dD=',;t'
7946 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7947 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7948 ac_uB='$,\1#\2define\3'
7949 ac_uC=' '
7950 ac_uD=',;t'
7951
7952 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7953   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7954   case $ac_file in
7955   - | *:- | *:-:* ) # input from stdin
7956         cat >$tmp/stdin
7957         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7958         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7959   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7960         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7961   * )   ac_file_in=$ac_file.in ;;
7962   esac
7963
7964   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7965 echo "$as_me: creating $ac_file" >&6;}
7966
7967   # First look for the input files in the build tree, otherwise in the
7968   # src tree.
7969   ac_file_inputs=`IFS=:
7970     for f in $ac_file_in; do
7971       case $f in
7972       -) echo $tmp/stdin ;;
7973       [\\/$]*)
7974          # Absolute (can't be DOS-style, as IFS=:)
7975          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7976 echo "$as_me: error: cannot find input file: $f" >&2;}
7977    { (exit 1); exit 1; }; }
7978          # Do quote $f, to prevent DOS paths from being IFS'd.
7979          echo "$f";;
7980       *) # Relative
7981          if test -f "$f"; then
7982            # Build tree
7983            echo "$f"
7984          elif test -f "$srcdir/$f"; then
7985            # Source tree
7986            echo "$srcdir/$f"
7987          else
7988            # /dev/null tree
7989            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7990 echo "$as_me: error: cannot find input file: $f" >&2;}
7991    { (exit 1); exit 1; }; }
7992          fi;;
7993       esac
7994     done` || { (exit 1); exit 1; }
7995   # Remove the trailing spaces.
7996   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
7997
7998 _ACEOF
7999
8000 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8001 # `conftest.undefs', that substitutes the proper values into
8002 # config.h.in to produce config.h.  The first handles `#define'
8003 # templates, and the second `#undef' templates.
8004 # And first: Protect against being on the right side of a sed subst in
8005 # config.status.  Protect against being in an unquoted here document
8006 # in config.status.
8007 rm -f conftest.defines conftest.undefs
8008 # Using a here document instead of a string reduces the quoting nightmare.
8009 # Putting comments in sed scripts is not portable.
8010 #
8011 # `end' is used to avoid that the second main sed command (meant for
8012 # 0-ary CPP macros) applies to n-ary macro definitions.
8013 # See the Autoconf documentation for `clear'.
8014 cat >confdef2sed.sed <<\_ACEOF
8015 s/[\\&,]/\\&/g
8016 s,[\\$`],\\&,g
8017 t clear
8018 : clear
8019 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8020 t end
8021 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8022 : end
8023 _ACEOF
8024 # If some macros were called several times there might be several times
8025 # the same #defines, which is useless.  Nevertheless, we may not want to
8026 # sort them, since we want the *last* AC-DEFINE to be honored.
8027 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8028 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8029 rm -f confdef2sed.sed
8030
8031 # This sed command replaces #undef with comments.  This is necessary, for
8032 # example, in the case of _POSIX_SOURCE, which is predefined and required
8033 # on some systems where configure will not decide to define it.
8034 cat >>conftest.undefs <<\_ACEOF
8035 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8036 _ACEOF
8037
8038 # Break up conftest.defines because some shells have a limit on the size
8039 # of here documents, and old seds have small limits too (100 cmds).
8040 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8041 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8042 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8043 echo '  :' >>$CONFIG_STATUS
8044 rm -f conftest.tail
8045 while grep . conftest.defines >/dev/null
8046 do
8047   # Write a limited-size here document to $tmp/defines.sed.
8048   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8049   # Speed up: don't consider the non `#define' lines.
8050   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
8051   # Work around the forget-to-reset-the-flag bug.
8052   echo 't clr' >>$CONFIG_STATUS
8053   echo ': clr' >>$CONFIG_STATUS
8054   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8055   echo 'CEOF
8056   sed -f $tmp/defines.sed $tmp/in >$tmp/out
8057   rm -f $tmp/in
8058   mv $tmp/out $tmp/in
8059 ' >>$CONFIG_STATUS
8060   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8061   rm -f conftest.defines
8062   mv conftest.tail conftest.defines
8063 done
8064 rm -f conftest.defines
8065 echo '  fi # grep' >>$CONFIG_STATUS
8066 echo >>$CONFIG_STATUS
8067
8068 # Break up conftest.undefs because some shells have a limit on the size
8069 # of here documents, and old seds have small limits too (100 cmds).
8070 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
8071 rm -f conftest.tail
8072 while grep . conftest.undefs >/dev/null
8073 do
8074   # Write a limited-size here document to $tmp/undefs.sed.
8075   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8076   # Speed up: don't consider the non `#undef'
8077   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8078   # Work around the forget-to-reset-the-flag bug.
8079   echo 't clr' >>$CONFIG_STATUS
8080   echo ': clr' >>$CONFIG_STATUS
8081   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8082   echo 'CEOF
8083   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8084   rm -f $tmp/in
8085   mv $tmp/out $tmp/in
8086 ' >>$CONFIG_STATUS
8087   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8088   rm -f conftest.undefs
8089   mv conftest.tail conftest.undefs
8090 done
8091 rm -f conftest.undefs
8092
8093 cat >>$CONFIG_STATUS <<\_ACEOF
8094   # Let's still pretend it is `configure' which instantiates (i.e., don't
8095   # use $as_me), people would be surprised to read:
8096   #    /* config.h.  Generated by config.status.  */
8097   if test x"$ac_file" = x-; then
8098     echo "/* Generated by configure.  */" >$tmp/config.h
8099   else
8100     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8101   fi
8102   cat $tmp/in >>$tmp/config.h
8103   rm -f $tmp/in
8104   if test x"$ac_file" != x-; then
8105     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8106       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8107 echo "$as_me: $ac_file is unchanged" >&6;}
8108     else
8109       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8110 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8111          X"$ac_file" : 'X\(//\)[^/]' \| \
8112          X"$ac_file" : 'X\(//\)$' \| \
8113          X"$ac_file" : 'X\(/\)' \| \
8114          .     : '\(.\)' 2>/dev/null ||
8115 echo X"$ac_file" |
8116     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8117           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8118           /^X\(\/\/\)$/{ s//\1/; q; }
8119           /^X\(\/\).*/{ s//\1/; q; }
8120           s/.*/./; q'`
8121       { if $as_mkdir_p; then
8122     mkdir -p "$ac_dir"
8123   else
8124     as_dir="$ac_dir"
8125     as_dirs=
8126     while test ! -d "$as_dir"; do
8127       as_dirs="$as_dir $as_dirs"
8128       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8129 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8130          X"$as_dir" : 'X\(//\)[^/]' \| \
8131          X"$as_dir" : 'X\(//\)$' \| \
8132          X"$as_dir" : 'X\(/\)' \| \
8133          .     : '\(.\)' 2>/dev/null ||
8134 echo X"$as_dir" |
8135     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8136           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8137           /^X\(\/\/\)$/{ s//\1/; q; }
8138           /^X\(\/\).*/{ s//\1/; q; }
8139           s/.*/./; q'`
8140     done
8141     test ! -n "$as_dirs" || mkdir $as_dirs
8142   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8143 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8144    { (exit 1); exit 1; }; }; }
8145
8146       rm -f $ac_file
8147       mv $tmp/config.h $ac_file
8148     fi
8149   else
8150     cat $tmp/config.h
8151     rm -f $tmp/config.h
8152   fi
8153 done
8154 _ACEOF
8155 cat >>$CONFIG_STATUS <<\_ACEOF
8156
8157 #
8158 # CONFIG_COMMANDS section.
8159 #
8160 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8161   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8162   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8163   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8164 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8165          X"$ac_dest" : 'X\(//\)[^/]' \| \
8166          X"$ac_dest" : 'X\(//\)$' \| \
8167          X"$ac_dest" : 'X\(/\)' \| \
8168          .     : '\(.\)' 2>/dev/null ||
8169 echo X"$ac_dest" |
8170     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8171           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8172           /^X\(\/\/\)$/{ s//\1/; q; }
8173           /^X\(\/\).*/{ s//\1/; q; }
8174           s/.*/./; q'`
8175   { if $as_mkdir_p; then
8176     mkdir -p "$ac_dir"
8177   else
8178     as_dir="$ac_dir"
8179     as_dirs=
8180     while test ! -d "$as_dir"; do
8181       as_dirs="$as_dir $as_dirs"
8182       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8183 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8184          X"$as_dir" : 'X\(//\)[^/]' \| \
8185          X"$as_dir" : 'X\(//\)$' \| \
8186          X"$as_dir" : 'X\(/\)' \| \
8187          .     : '\(.\)' 2>/dev/null ||
8188 echo X"$as_dir" |
8189     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8190           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8191           /^X\(\/\/\)$/{ s//\1/; q; }
8192           /^X\(\/\).*/{ s//\1/; q; }
8193           s/.*/./; q'`
8194     done
8195     test ! -n "$as_dirs" || mkdir $as_dirs
8196   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8197 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8198    { (exit 1); exit 1; }; }; }
8199
8200   ac_builddir=.
8201
8202 if test "$ac_dir" != .; then
8203   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8204   # A "../" for each directory in $ac_dir_suffix.
8205   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8206 else
8207   ac_dir_suffix= ac_top_builddir=
8208 fi
8209
8210 case $srcdir in
8211   .)  # No --srcdir option.  We are building in place.
8212     ac_srcdir=.
8213     if test -z "$ac_top_builddir"; then
8214        ac_top_srcdir=.
8215     else
8216        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8217     fi ;;
8218   [\\/]* | ?:[\\/]* )  # Absolute path.
8219     ac_srcdir=$srcdir$ac_dir_suffix;
8220     ac_top_srcdir=$srcdir ;;
8221   *) # Relative path.
8222     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8223     ac_top_srcdir=$ac_top_builddir$srcdir ;;
8224 esac
8225
8226 # Do not use `cd foo && pwd` to compute absolute paths, because
8227 # the directories may not exist.
8228 case `pwd` in
8229 .) ac_abs_builddir="$ac_dir";;
8230 *)
8231   case "$ac_dir" in
8232   .) ac_abs_builddir=`pwd`;;
8233   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8234   *) ac_abs_builddir=`pwd`/"$ac_dir";;
8235   esac;;
8236 esac
8237 case $ac_abs_builddir in
8238 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8239 *)
8240   case ${ac_top_builddir}. in
8241   .) ac_abs_top_builddir=$ac_abs_builddir;;
8242   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8243   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8244   esac;;
8245 esac
8246 case $ac_abs_builddir in
8247 .) ac_abs_srcdir=$ac_srcdir;;
8248 *)
8249   case $ac_srcdir in
8250   .) ac_abs_srcdir=$ac_abs_builddir;;
8251   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8252   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8253   esac;;
8254 esac
8255 case $ac_abs_builddir in
8256 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8257 *)
8258   case $ac_top_srcdir in
8259   .) ac_abs_top_srcdir=$ac_abs_builddir;;
8260   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8261   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8262   esac;;
8263 esac
8264
8265
8266   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8267 echo "$as_me: executing $ac_dest commands" >&6;}
8268   case $ac_dest in
8269     default ) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
8270   esac
8271 done
8272 _ACEOF
8273
8274 cat >>$CONFIG_STATUS <<\_ACEOF
8275
8276 { (exit 0); exit 0; }
8277 _ACEOF
8278 chmod +x $CONFIG_STATUS
8279 ac_clean_files=$ac_clean_files_save
8280
8281
8282 # configure is writing to config.log, and then calls config.status.
8283 # config.status does its own redirection, appending to config.log.
8284 # Unfortunately, on DOS this fails, as config.log is still kept open
8285 # by configure, so config.status won't be able to write to it; its
8286 # output is simply discarded.  So we exec the FD to /dev/null,
8287 # effectively closing config.log, so it can be properly (re)opened and
8288 # appended to by config.status.  When coming back to configure, we
8289 # need to make the FD available again.
8290 if test "$no_create" != yes; then
8291   ac_cs_success=:
8292   ac_config_status_args=
8293   test "$silent" = yes &&
8294     ac_config_status_args="$ac_config_status_args --quiet"
8295   exec 5>/dev/null
8296   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8297   exec 5>>config.log
8298   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8299   # would make configure fail if this is the last instruction.
8300   $ac_cs_success || { (exit 1); exit 1; }
8301 fi
8302