OSDN Git Service

Fixup readline and sim including of override.m4
[pf3gnuchains/sourceware.git] / sim / frv / 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='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 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CPP EGREP MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI CGEN_MAINT cgendir cgen sim_trapdump cgen_breaks LIBOBJS 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_pwd=`pwd`
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779   # Omit some internal or obsolete options to make the list less imposing.
780   # This message is too long to be a string in the A/UX 3.1 sh.
781   cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792   -h, --help              display this help and exit
793       --help=short        display options specific to this package
794       --help=recursive    display the short help of all the included packages
795   -V, --version           display version information and exit
796   -q, --quiet, --silent   do not print \`checking...' messages
797       --cache-file=FILE   cache test results in FILE [disabled]
798   -C, --config-cache      alias for \`--cache-file=config.cache'
799   -n, --no-create         do not create output files
800       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804   cat <<_ACEOF
805 Installation directories:
806   --prefix=PREFIX         install architecture-independent files in PREFIX
807                           [$ac_default_prefix]
808   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809                           [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819   --bindir=DIR           user executables [EPREFIX/bin]
820   --sbindir=DIR          system admin executables [EPREFIX/sbin]
821   --libexecdir=DIR       program executables [EPREFIX/libexec]
822   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826   --libdir=DIR           object code libraries [EPREFIX/lib]
827   --includedir=DIR       C header files [PREFIX/include]
828   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829   --infodir=DIR          info documentation [PREFIX/info]
830   --mandir=DIR           man documentation [PREFIX/man]
831 _ACEOF
832
833   cat <<\_ACEOF
834
835 Program names:
836   --program-prefix=PREFIX            prepend PREFIX to installed program names
837   --program-suffix=SUFFIX            append SUFFIX to installed program names
838   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
839
840 System types:
841   --build=BUILD     configure for building on BUILD [guessed]
842   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
843   --target=TARGET   configure for building compilers for TARGET [HOST]
844 _ACEOF
845 fi
846
847 if test -n "$ac_init_help"; then
848
849   cat <<\_ACEOF
850
851 Optional Features:
852   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
853   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
854   --enable-maintainer-mode              Enable developer functionality.
855   --enable-sim-bswap                    Use Host specific BSWAP instruction.
856   --enable-sim-cflags=opts              Extra CFLAGS for use in building simulator
857   --enable-sim-debug=opts               Enable debugging flags
858   --enable-sim-stdio                    Specify whether to use stdio for console input/output.
859   --enable-sim-trace=opts               Enable tracing flags
860   --enable-sim-profile=opts             Enable profiling flags
861   --enable-sim-endian=endian            Specify target byte endian orientation.
862   --enable-sim-alignment=align          Specify strict,  nonstrict or forced alignment of memory accesses.
863   --enable-sim-hostendian=end           Specify host byte endian orientation.
864   --enable-sim-scache=size              Specify simulator execution cache size.
865   --enable-sim-default-model=model      Specify default model to simulate.
866   --enable-sim-environment=environment  Specify mixed, user, virtual or operating environment.
867   --enable-cgen-maint=DIR    build cgen generated files
868   --enable-sim-trapdump         Make unknown traps dump the registers
869
870 Optional Packages:
871   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
872   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
873   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
874   --with-bugurl=URL       Direct users to URL to report a bug
875
876 Some influential environment variables:
877   CC          C compiler command
878   CFLAGS      C compiler flags
879   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
880               nonstandard directory <lib dir>
881   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
882               headers in a nonstandard directory <include dir>
883   CPP         C preprocessor
884
885 Use these variables to override the choices made by `configure' or to help
886 it to find libraries and programs with nonstandard names/locations.
887
888 _ACEOF
889 fi
890
891 if test "$ac_init_help" = "recursive"; then
892   # If there are subdirs, report their specific --help.
893   ac_popdir=`pwd`
894   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895     test -d $ac_dir || continue
896     ac_builddir=.
897
898 if test "$ac_dir" != .; then
899   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900   # A "../" for each directory in $ac_dir_suffix.
901   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902 else
903   ac_dir_suffix= ac_top_builddir=
904 fi
905
906 case $srcdir in
907   .)  # No --srcdir option.  We are building in place.
908     ac_srcdir=.
909     if test -z "$ac_top_builddir"; then
910        ac_top_srcdir=.
911     else
912        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913     fi ;;
914   [\\/]* | ?:[\\/]* )  # Absolute path.
915     ac_srcdir=$srcdir$ac_dir_suffix;
916     ac_top_srcdir=$srcdir ;;
917   *) # Relative path.
918     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919     ac_top_srcdir=$ac_top_builddir$srcdir ;;
920 esac
921
922 # Do not use `cd foo && pwd` to compute absolute paths, because
923 # the directories may not exist.
924 case `pwd` in
925 .) ac_abs_builddir="$ac_dir";;
926 *)
927   case "$ac_dir" in
928   .) ac_abs_builddir=`pwd`;;
929   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
930   *) ac_abs_builddir=`pwd`/"$ac_dir";;
931   esac;;
932 esac
933 case $ac_abs_builddir in
934 .) ac_abs_top_builddir=${ac_top_builddir}.;;
935 *)
936   case ${ac_top_builddir}. in
937   .) ac_abs_top_builddir=$ac_abs_builddir;;
938   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
939   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
940   esac;;
941 esac
942 case $ac_abs_builddir in
943 .) ac_abs_srcdir=$ac_srcdir;;
944 *)
945   case $ac_srcdir in
946   .) ac_abs_srcdir=$ac_abs_builddir;;
947   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
948   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
949   esac;;
950 esac
951 case $ac_abs_builddir in
952 .) ac_abs_top_srcdir=$ac_top_srcdir;;
953 *)
954   case $ac_top_srcdir in
955   .) ac_abs_top_srcdir=$ac_abs_builddir;;
956   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
957   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
958   esac;;
959 esac
960
961     cd $ac_dir
962     # Check for guested configure; otherwise get Cygnus style configure.
963     if test -f $ac_srcdir/configure.gnu; then
964       echo
965       $SHELL $ac_srcdir/configure.gnu  --help=recursive
966     elif test -f $ac_srcdir/configure; then
967       echo
968       $SHELL $ac_srcdir/configure  --help=recursive
969     elif test -f $ac_srcdir/configure.ac ||
970            test -f $ac_srcdir/configure.in; then
971       echo
972       $ac_configure --help
973     else
974       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
975     fi
976     cd $ac_popdir
977   done
978 fi
979
980 test -n "$ac_init_help" && exit 0
981 if $ac_init_version; then
982   cat <<\_ACEOF
983
984 Copyright (C) 2003 Free Software Foundation, Inc.
985 This configure script is free software; the Free Software Foundation
986 gives unlimited permission to copy, distribute and modify it.
987 _ACEOF
988   exit 0
989 fi
990 exec 5>config.log
991 cat >&5 <<_ACEOF
992 This file contains any messages produced by compilers while
993 running configure, to aid debugging if configure makes a mistake.
994
995 It was created by $as_me, which was
996 generated by GNU Autoconf 2.59.  Invocation command line was
997
998   $ $0 $@
999
1000 _ACEOF
1001 {
1002 cat <<_ASUNAME
1003 ## --------- ##
1004 ## Platform. ##
1005 ## --------- ##
1006
1007 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012
1013 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1015
1016 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1017 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1018 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1020 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1021 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1022 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1023
1024 _ASUNAME
1025
1026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027 for as_dir in $PATH
1028 do
1029   IFS=$as_save_IFS
1030   test -z "$as_dir" && as_dir=.
1031   echo "PATH: $as_dir"
1032 done
1033
1034 } >&5
1035
1036 cat >&5 <<_ACEOF
1037
1038
1039 ## ----------- ##
1040 ## Core tests. ##
1041 ## ----------- ##
1042
1043 _ACEOF
1044
1045
1046 # Keep a trace of the command line.
1047 # Strip out --no-create and --no-recursion so they do not pile up.
1048 # Strip out --silent because we don't want to record it for future runs.
1049 # Also quote any args containing shell meta-characters.
1050 # Make two passes to allow for proper duplicate-argument suppression.
1051 ac_configure_args=
1052 ac_configure_args0=
1053 ac_configure_args1=
1054 ac_sep=
1055 ac_must_keep_next=false
1056 for ac_pass in 1 2
1057 do
1058   for ac_arg
1059   do
1060     case $ac_arg in
1061     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063     | -silent | --silent | --silen | --sile | --sil)
1064       continue ;;
1065     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067     esac
1068     case $ac_pass in
1069     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070     2)
1071       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072       if test $ac_must_keep_next = true; then
1073         ac_must_keep_next=false # Got value, back to normal.
1074       else
1075         case $ac_arg in
1076           *=* | --config-cache | -C | -disable-* | --disable-* \
1077           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079           | -with-* | --with-* | -without-* | --without-* | --x)
1080             case "$ac_configure_args0 " in
1081               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082             esac
1083             ;;
1084           -* ) ac_must_keep_next=true ;;
1085         esac
1086       fi
1087       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088       # Get rid of the leading space.
1089       ac_sep=" "
1090       ;;
1091     esac
1092   done
1093 done
1094 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096
1097 # When interrupted or exit'd, cleanup temporary files, and complete
1098 # config.log.  We remove comments because anyway the quotes in there
1099 # would cause problems or look ugly.
1100 # WARNING: Be sure not to use single quotes in there, as some shells,
1101 # such as our DU 5.0 friend, will then `close' the trap.
1102 trap 'exit_status=$?
1103   # Save into config.log some information that might help in debugging.
1104   {
1105     echo
1106
1107     cat <<\_ASBOX
1108 ## ---------------- ##
1109 ## Cache variables. ##
1110 ## ---------------- ##
1111 _ASBOX
1112     echo
1113     # The following way of writing the cache mishandles newlines in values,
1114 {
1115   (set) 2>&1 |
1116     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117     *ac_space=\ *)
1118       sed -n \
1119         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121       ;;
1122     *)
1123       sed -n \
1124         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125       ;;
1126     esac;
1127 }
1128     echo
1129
1130     cat <<\_ASBOX
1131 ## ----------------- ##
1132 ## Output variables. ##
1133 ## ----------------- ##
1134 _ASBOX
1135     echo
1136     for ac_var in $ac_subst_vars
1137     do
1138       eval ac_val=$`echo $ac_var`
1139       echo "$ac_var='"'"'$ac_val'"'"'"
1140     done | sort
1141     echo
1142
1143     if test -n "$ac_subst_files"; then
1144       cat <<\_ASBOX
1145 ## ------------- ##
1146 ## Output files. ##
1147 ## ------------- ##
1148 _ASBOX
1149       echo
1150       for ac_var in $ac_subst_files
1151       do
1152         eval ac_val=$`echo $ac_var`
1153         echo "$ac_var='"'"'$ac_val'"'"'"
1154       done | sort
1155       echo
1156     fi
1157
1158     if test -s confdefs.h; then
1159       cat <<\_ASBOX
1160 ## ----------- ##
1161 ## confdefs.h. ##
1162 ## ----------- ##
1163 _ASBOX
1164       echo
1165       sed "/^$/d" confdefs.h | sort
1166       echo
1167     fi
1168     test "$ac_signal" != 0 &&
1169       echo "$as_me: caught signal $ac_signal"
1170     echo "$as_me: exit $exit_status"
1171   } >&5
1172   rm -f core *.core &&
1173   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174     exit $exit_status
1175      ' 0
1176 for ac_signal in 1 2 13 15; do
1177   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178 done
1179 ac_signal=0
1180
1181 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1182 rm -rf conftest* confdefs.h
1183 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184 echo >confdefs.h
1185
1186 # Predefined preprocessor variables.
1187
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_NAME "$PACKAGE_NAME"
1190 _ACEOF
1191
1192
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195 _ACEOF
1196
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1200 _ACEOF
1201
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_STRING "$PACKAGE_STRING"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210 _ACEOF
1211
1212
1213 # Let the site file select an alternate cache file if it wants to.
1214 # Prefer explicitly selected file to automatically selected ones.
1215 if test -z "$CONFIG_SITE"; then
1216   if test "x$prefix" != xNONE; then
1217     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218   else
1219     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220   fi
1221 fi
1222 for ac_site_file in $CONFIG_SITE; do
1223   if test -r "$ac_site_file"; then
1224     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225 echo "$as_me: loading site script $ac_site_file" >&6;}
1226     sed 's/^/| /' "$ac_site_file" >&5
1227     . "$ac_site_file"
1228   fi
1229 done
1230
1231 if test -r "$cache_file"; then
1232   # Some versions of bash will fail to source /dev/null (special
1233   # files actually), so we avoid doing that.
1234   if test -f "$cache_file"; then
1235     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236 echo "$as_me: loading cache $cache_file" >&6;}
1237     case $cache_file in
1238       [\\/]* | ?:[\\/]* ) . $cache_file;;
1239       *)                      . ./$cache_file;;
1240     esac
1241   fi
1242 else
1243   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244 echo "$as_me: creating cache $cache_file" >&6;}
1245   >$cache_file
1246 fi
1247
1248 # Check that the precious variables saved in the cache have kept the same
1249 # value.
1250 ac_cache_corrupted=false
1251 for ac_var in `(set) 2>&1 |
1252                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254   eval ac_new_set=\$ac_env_${ac_var}_set
1255   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256   eval ac_new_val="\$ac_env_${ac_var}_value"
1257   case $ac_old_set,$ac_new_set in
1258     set,)
1259       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261       ac_cache_corrupted=: ;;
1262     ,set)
1263       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265       ac_cache_corrupted=: ;;
1266     ,);;
1267     *)
1268       if test "x$ac_old_val" != "x$ac_new_val"; then
1269         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1272 echo "$as_me:   former value:  $ac_old_val" >&2;}
1273         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1274 echo "$as_me:   current value: $ac_new_val" >&2;}
1275         ac_cache_corrupted=:
1276       fi;;
1277   esac
1278   # Pass precious variables to config.status.
1279   if test "$ac_new_set" = set; then
1280     case $ac_new_val in
1281     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283     *) ac_arg=$ac_var=$ac_new_val ;;
1284     esac
1285     case " $ac_configure_args " in
1286       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1287       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288     esac
1289   fi
1290 done
1291 if $ac_cache_corrupted; then
1292   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296    { (exit 1); exit 1; }; }
1297 fi
1298
1299 ac_ext=c
1300 ac_cpp='$CPP $CPPFLAGS'
1301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323           ac_config_headers="$ac_config_headers config.h:config.in"
1324
1325
1326 # This file contains common code used by all simulators.
1327 #
1328 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
1329 # directory.  It is intended to be invoked before any target specific stuff.
1330 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
1331 # It is intended to be invoked last.
1332 #
1333 # The simulator's configure.in should look like:
1334 #
1335 # dnl Process this file with autoconf to produce a configure script.
1336 # sinclude(../common/aclocal.m4)
1337 # AC_PREREQ(2.5)dnl
1338 # AC_INIT(Makefile.in)
1339 #
1340 # SIM_AC_COMMON
1341 #
1342 # ... target specific stuff ...
1343 #
1344 # SIM_AC_OUTPUT
1345
1346 # Include global overrides and fixes for Autoconf.
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377 # _AC_OUTPUT_SUBDIRS
1378 # ------------------
1379 # This is a subroutine of AC_OUTPUT, but it does not go into
1380 # config.status, rather, it is called after running config.status.
1381 # _AC_OUTPUT_SUBDIRS
1382
1383
1384
1385
1386 # _AC_ARG_VAR_VALIDATE
1387 # --------------------
1388 # The code is the same as autoconf 2.59, but with a more lenient check
1389 # on precious variables and an output of pwd that have been added in
1390 # autoconf 2.62.
1391 # _AC_ARG_VAR_VALIDATE
1392
1393
1394
1395
1396 # AC_MSG_FAILURE(ERROR, [EXIT-STATUS = 1])
1397 # ----------------------------------------
1398 # This is the same code as in 2.59 and 2.61, except it also outputs pwd.
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455 sim_inline="-DDEFAULT_INLINE=0"
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492 # intl sister-directory configuration rules.
1493 #
1494
1495 # The idea behind this macro is that there's no need to repeat all the
1496 # autoconf probes done by the intl directory - it's already done them
1497 # for us.  In fact, there's no need even to look at the cache for the
1498 # answers.  All we need to do is nab a few pieces of information.
1499 # The intl directory is set up to make this easy, by generating a
1500 # small file which can be sourced as a shell script; then we produce
1501 # the necessary substitutions and definitions for this directory.
1502
1503
1504
1505 # Autoconf M4 include file defining utility macros for complex Canadian
1506 # cross builds.
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516 ####
1517 # _NCN_TOOL_PREFIXES:  Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
1518 # or AC_INIT.
1519 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
1520
1521 ####
1522 # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
1523 # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
1524
1525
1526 ####
1527 # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
1528 # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
1529
1530
1531
1532 # Backported from Autoconf 2.5x; can go away when and if
1533 # we switch.  Put the OS path separator in $PATH_SEPARATOR.
1534
1535
1536
1537
1538 # ACX_HAVE_GCC_FOR_TARGET
1539 # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
1540
1541
1542 # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
1543 # Searching for installed target binutils.  We need to take extra care,
1544 # else we may find the wrong assembler, linker, etc., and lose.
1545 #
1546 # First try --with-build-time-tools, if specified.
1547 #
1548 # For build != host, we ask the installed GCC for the name of the tool it
1549 # uses, and accept it if it is an absolute path.  This is because the
1550 # only good choice for a compiler is the same GCC version that is being
1551 # installed (or we couldn't make target libraries), and we assume that
1552 # on the host system we'll have not only the same GCC version, but also
1553 # the same binutils version.
1554 #
1555 # For build == host, search the same directories that the installed
1556 # compiler will search.  We used to do this for the assembler, linker,
1557 # and nm only; for simplicity of configuration, however, we extend this
1558 # criterion to tools (such as ar and ranlib) that are never invoked by
1559 # the compiler, to avoid mismatches.
1560 #
1561 # Also note we have to check MD_EXEC_PREFIX before checking the user's path
1562 # if build == target.  This makes the most sense only when bootstrapping,
1563 # but we also do so when build != host.  In this case, we hope that the
1564 # build and host systems will have similar contents of MD_EXEC_PREFIX.
1565 #
1566 # If we do not find a suitable binary, then try the user's path.
1567
1568
1569 ###
1570 # AC_PROG_CPP_WERROR
1571 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
1572 # triggers warnings from the preprocessor.  Will be in autoconf 2.58.
1573 # For now, using this also overrides header checks to use only the
1574 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
1575 # bit harder from here).
1576 # Eventually autoconf will default to checking headers with the compiler
1577 # instead, and we'll have to do this differently.
1578
1579 # AC_PROG_CPP_WERROR
1580
1581 # Test for GNAT.
1582 # We require the gnatbind program, and a compiler driver that
1583 # understands Ada.  We use the user's CC setting, already found,
1584 # and possibly add $1 to the command-line parameters.
1585 #
1586 # Sets the shell variable have_gnat to yes or no as appropriate, and
1587 # substitutes GNATBIND and GNATMAKE.
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613 # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1614 # it by inlining the macro's contents.
1615 # This file contains common code used by all simulators.
1616 #
1617 # common.m4 invokes AC macros used by all simulators and by the common
1618 # directory.  It is intended to be included before any target specific
1619 # stuff.  SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1620 # the Makefile.  It is intended to be invoked last.
1621 #
1622 # The simulator's configure.in should look like:
1623 #
1624 # dnl Process this file with autoconf to produce a configure script.
1625 # AC_PREREQ(2.5)dnl
1626 # AC_INIT(Makefile.in)
1627 # AC_CONFIG_HEADER(config.h:config.in)
1628 #
1629 # sinclude(../common/aclocal.m4)
1630 # sinclude(../common/common.m4)
1631 #
1632 # ... target specific stuff ...
1633
1634 ac_aux_dir=
1635 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1636   if test -f $ac_dir/install-sh; then
1637     ac_aux_dir=$ac_dir
1638     ac_install_sh="$ac_aux_dir/install-sh -c"
1639     break
1640   elif test -f $ac_dir/install.sh; then
1641     ac_aux_dir=$ac_dir
1642     ac_install_sh="$ac_aux_dir/install.sh -c"
1643     break
1644   elif test -f $ac_dir/shtool; then
1645     ac_aux_dir=$ac_dir
1646     ac_install_sh="$ac_aux_dir/shtool install -c"
1647     break
1648   fi
1649 done
1650 if test -z "$ac_aux_dir"; then
1651   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1652 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1653    { (exit 1); exit 1; }; }
1654 fi
1655 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1656 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1657 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1658
1659 # Make sure we can run config.sub.
1660 $ac_config_sub sun4 >/dev/null 2>&1 ||
1661   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1662 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1663    { (exit 1); exit 1; }; }
1664
1665 echo "$as_me:$LINENO: checking build system type" >&5
1666 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1667 if test "${ac_cv_build+set}" = set; then
1668   echo $ECHO_N "(cached) $ECHO_C" >&6
1669 else
1670   ac_cv_build_alias=$build_alias
1671 test -z "$ac_cv_build_alias" &&
1672   ac_cv_build_alias=`$ac_config_guess`
1673 test -z "$ac_cv_build_alias" &&
1674   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1675 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1676    { (exit 1); exit 1; }; }
1677 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1678   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1679 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1680    { (exit 1); exit 1; }; }
1681
1682 fi
1683 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1684 echo "${ECHO_T}$ac_cv_build" >&6
1685 build=$ac_cv_build
1686 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1687 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1688 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1689
1690
1691 echo "$as_me:$LINENO: checking host system type" >&5
1692 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1693 if test "${ac_cv_host+set}" = set; then
1694   echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696   ac_cv_host_alias=$host_alias
1697 test -z "$ac_cv_host_alias" &&
1698   ac_cv_host_alias=$ac_cv_build_alias
1699 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1700   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1701 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1702    { (exit 1); exit 1; }; }
1703
1704 fi
1705 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1706 echo "${ECHO_T}$ac_cv_host" >&6
1707 host=$ac_cv_host
1708 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1709 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1710 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1711
1712
1713 echo "$as_me:$LINENO: checking target system type" >&5
1714 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1715 if test "${ac_cv_target+set}" = set; then
1716   echo $ECHO_N "(cached) $ECHO_C" >&6
1717 else
1718   ac_cv_target_alias=$target_alias
1719 test "x$ac_cv_target_alias" = "x" &&
1720   ac_cv_target_alias=$ac_cv_host_alias
1721 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1722   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1723 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1724    { (exit 1); exit 1; }; }
1725
1726 fi
1727 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1728 echo "${ECHO_T}$ac_cv_target" >&6
1729 target=$ac_cv_target
1730 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1731 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1732 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1733
1734
1735 # The aliases save the names the user supplied, while $host etc.
1736 # will get canonicalized.
1737 test -n "$target_alias" &&
1738   test "$program_prefix$program_suffix$program_transform_name" = \
1739     NONENONEs,x,x, &&
1740   program_prefix=${target_alias}-
1741 test "$program_prefix" != NONE &&
1742   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1743 # Use a double $ so make ignores it.
1744 test "$program_suffix" != NONE &&
1745   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1746 # Double any \ or $.  echo might interpret backslashes.
1747 # By default was `s,x,x', remove it if useless.
1748 cat <<\_ACEOF >conftest.sed
1749 s/[\\$]/&&/g;s/;s,x,x,$//
1750 _ACEOF
1751 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1752 rm conftest.sed
1753
1754 ac_ext=c
1755 ac_cpp='$CPP $CPPFLAGS'
1756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1759 if test -n "$ac_tool_prefix"; then
1760   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1761 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1762 echo "$as_me:$LINENO: checking for $ac_word" >&5
1763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1764 if test "${ac_cv_prog_CC+set}" = set; then
1765   echo $ECHO_N "(cached) $ECHO_C" >&6
1766 else
1767   if test -n "$CC"; then
1768   ac_cv_prog_CC="$CC" # Let the user override the test.
1769 else
1770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1771 for as_dir in $PATH
1772 do
1773   IFS=$as_save_IFS
1774   test -z "$as_dir" && as_dir=.
1775   for ac_exec_ext in '' $ac_executable_extensions; do
1776   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1777     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1779     break 2
1780   fi
1781 done
1782 done
1783
1784 fi
1785 fi
1786 CC=$ac_cv_prog_CC
1787 if test -n "$CC"; then
1788   echo "$as_me:$LINENO: result: $CC" >&5
1789 echo "${ECHO_T}$CC" >&6
1790 else
1791   echo "$as_me:$LINENO: result: no" >&5
1792 echo "${ECHO_T}no" >&6
1793 fi
1794
1795 fi
1796 if test -z "$ac_cv_prog_CC"; then
1797   ac_ct_CC=$CC
1798   # Extract the first word of "gcc", so it can be a program name with args.
1799 set dummy gcc; ac_word=$2
1800 echo "$as_me:$LINENO: checking for $ac_word" >&5
1801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1802 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1803   echo $ECHO_N "(cached) $ECHO_C" >&6
1804 else
1805   if test -n "$ac_ct_CC"; then
1806   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1807 else
1808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809 for as_dir in $PATH
1810 do
1811   IFS=$as_save_IFS
1812   test -z "$as_dir" && as_dir=.
1813   for ac_exec_ext in '' $ac_executable_extensions; do
1814   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1815     ac_cv_prog_ac_ct_CC="gcc"
1816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817     break 2
1818   fi
1819 done
1820 done
1821
1822 fi
1823 fi
1824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1825 if test -n "$ac_ct_CC"; then
1826   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1827 echo "${ECHO_T}$ac_ct_CC" >&6
1828 else
1829   echo "$as_me:$LINENO: result: no" >&5
1830 echo "${ECHO_T}no" >&6
1831 fi
1832
1833   CC=$ac_ct_CC
1834 else
1835   CC="$ac_cv_prog_CC"
1836 fi
1837
1838 if test -z "$CC"; then
1839   if test -n "$ac_tool_prefix"; then
1840   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1841 set dummy ${ac_tool_prefix}cc; ac_word=$2
1842 echo "$as_me:$LINENO: checking for $ac_word" >&5
1843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1844 if test "${ac_cv_prog_CC+set}" = set; then
1845   echo $ECHO_N "(cached) $ECHO_C" >&6
1846 else
1847   if test -n "$CC"; then
1848   ac_cv_prog_CC="$CC" # Let the user override the test.
1849 else
1850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1851 for as_dir in $PATH
1852 do
1853   IFS=$as_save_IFS
1854   test -z "$as_dir" && as_dir=.
1855   for ac_exec_ext in '' $ac_executable_extensions; do
1856   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1857     ac_cv_prog_CC="${ac_tool_prefix}cc"
1858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1859     break 2
1860   fi
1861 done
1862 done
1863
1864 fi
1865 fi
1866 CC=$ac_cv_prog_CC
1867 if test -n "$CC"; then
1868   echo "$as_me:$LINENO: result: $CC" >&5
1869 echo "${ECHO_T}$CC" >&6
1870 else
1871   echo "$as_me:$LINENO: result: no" >&5
1872 echo "${ECHO_T}no" >&6
1873 fi
1874
1875 fi
1876 if test -z "$ac_cv_prog_CC"; then
1877   ac_ct_CC=$CC
1878   # Extract the first word of "cc", so it can be a program name with args.
1879 set dummy cc; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1883   echo $ECHO_N "(cached) $ECHO_C" >&6
1884 else
1885   if test -n "$ac_ct_CC"; then
1886   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1887 else
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 for as_dir in $PATH
1890 do
1891   IFS=$as_save_IFS
1892   test -z "$as_dir" && as_dir=.
1893   for ac_exec_ext in '' $ac_executable_extensions; do
1894   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895     ac_cv_prog_ac_ct_CC="cc"
1896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897     break 2
1898   fi
1899 done
1900 done
1901
1902 fi
1903 fi
1904 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1905 if test -n "$ac_ct_CC"; then
1906   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1907 echo "${ECHO_T}$ac_ct_CC" >&6
1908 else
1909   echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1911 fi
1912
1913   CC=$ac_ct_CC
1914 else
1915   CC="$ac_cv_prog_CC"
1916 fi
1917
1918 fi
1919 if test -z "$CC"; then
1920   # Extract the first word of "cc", so it can be a program name with args.
1921 set dummy cc; ac_word=$2
1922 echo "$as_me:$LINENO: checking for $ac_word" >&5
1923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924 if test "${ac_cv_prog_CC+set}" = set; then
1925   echo $ECHO_N "(cached) $ECHO_C" >&6
1926 else
1927   if test -n "$CC"; then
1928   ac_cv_prog_CC="$CC" # Let the user override the test.
1929 else
1930   ac_prog_rejected=no
1931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932 for as_dir in $PATH
1933 do
1934   IFS=$as_save_IFS
1935   test -z "$as_dir" && as_dir=.
1936   for ac_exec_ext in '' $ac_executable_extensions; do
1937   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1939        ac_prog_rejected=yes
1940        continue
1941      fi
1942     ac_cv_prog_CC="cc"
1943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944     break 2
1945   fi
1946 done
1947 done
1948
1949 if test $ac_prog_rejected = yes; then
1950   # We found a bogon in the path, so make sure we never use it.
1951   set dummy $ac_cv_prog_CC
1952   shift
1953   if test $# != 0; then
1954     # We chose a different compiler from the bogus one.
1955     # However, it has the same basename, so the bogon will be chosen
1956     # first if we set CC to just the basename; use the full file name.
1957     shift
1958     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1959   fi
1960 fi
1961 fi
1962 fi
1963 CC=$ac_cv_prog_CC
1964 if test -n "$CC"; then
1965   echo "$as_me:$LINENO: result: $CC" >&5
1966 echo "${ECHO_T}$CC" >&6
1967 else
1968   echo "$as_me:$LINENO: result: no" >&5
1969 echo "${ECHO_T}no" >&6
1970 fi
1971
1972 fi
1973 if test -z "$CC"; then
1974   if test -n "$ac_tool_prefix"; then
1975   for ac_prog in cl
1976   do
1977     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1978 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1979 echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1981 if test "${ac_cv_prog_CC+set}" = set; then
1982   echo $ECHO_N "(cached) $ECHO_C" >&6
1983 else
1984   if test -n "$CC"; then
1985   ac_cv_prog_CC="$CC" # Let the user override the test.
1986 else
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 for as_dir in $PATH
1989 do
1990   IFS=$as_save_IFS
1991   test -z "$as_dir" && as_dir=.
1992   for ac_exec_ext in '' $ac_executable_extensions; do
1993   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1994     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996     break 2
1997   fi
1998 done
1999 done
2000
2001 fi
2002 fi
2003 CC=$ac_cv_prog_CC
2004 if test -n "$CC"; then
2005   echo "$as_me:$LINENO: result: $CC" >&5
2006 echo "${ECHO_T}$CC" >&6
2007 else
2008   echo "$as_me:$LINENO: result: no" >&5
2009 echo "${ECHO_T}no" >&6
2010 fi
2011
2012     test -n "$CC" && break
2013   done
2014 fi
2015 if test -z "$CC"; then
2016   ac_ct_CC=$CC
2017   for ac_prog in cl
2018 do
2019   # Extract the first word of "$ac_prog", so it can be a program name with args.
2020 set dummy $ac_prog; ac_word=$2
2021 echo "$as_me:$LINENO: checking for $ac_word" >&5
2022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2023 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2024   echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026   if test -n "$ac_ct_CC"; then
2027   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2028 else
2029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 for as_dir in $PATH
2031 do
2032   IFS=$as_save_IFS
2033   test -z "$as_dir" && as_dir=.
2034   for ac_exec_ext in '' $ac_executable_extensions; do
2035   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2036     ac_cv_prog_ac_ct_CC="$ac_prog"
2037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038     break 2
2039   fi
2040 done
2041 done
2042
2043 fi
2044 fi
2045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2046 if test -n "$ac_ct_CC"; then
2047   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2048 echo "${ECHO_T}$ac_ct_CC" >&6
2049 else
2050   echo "$as_me:$LINENO: result: no" >&5
2051 echo "${ECHO_T}no" >&6
2052 fi
2053
2054   test -n "$ac_ct_CC" && break
2055 done
2056
2057   CC=$ac_ct_CC
2058 fi
2059
2060 fi
2061
2062
2063 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2064 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2065 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2066 See \`config.log' for more details." >&5
2067 echo "$as_me: error: no acceptable C compiler found in \$PATH
2068 See \`config.log' for more details." >&2;}
2069    { (exit 1); exit 1; }; }; }
2070
2071 # Provide some information about the compiler.
2072 echo "$as_me:$LINENO:" \
2073      "checking for C compiler version" >&5
2074 ac_compiler=`set X $ac_compile; echo $2`
2075 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2076   (eval $ac_compiler --version </dev/null >&5) 2>&5
2077   ac_status=$?
2078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079   (exit $ac_status); }
2080 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2081   (eval $ac_compiler -v </dev/null >&5) 2>&5
2082   ac_status=$?
2083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084   (exit $ac_status); }
2085 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2086   (eval $ac_compiler -V </dev/null >&5) 2>&5
2087   ac_status=$?
2088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089   (exit $ac_status); }
2090
2091 cat >conftest.$ac_ext <<_ACEOF
2092 /* confdefs.h.  */
2093 _ACEOF
2094 cat confdefs.h >>conftest.$ac_ext
2095 cat >>conftest.$ac_ext <<_ACEOF
2096 /* end confdefs.h.  */
2097
2098 int
2099 main ()
2100 {
2101
2102   ;
2103   return 0;
2104 }
2105 _ACEOF
2106 ac_clean_files_save=$ac_clean_files
2107 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2108 # Try to create an executable without -o first, disregard a.out.
2109 # It will help us diagnose broken compilers, and finding out an intuition
2110 # of exeext.
2111 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2112 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2113 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2114 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2115   (eval $ac_link_default) 2>&5
2116   ac_status=$?
2117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118   (exit $ac_status); }; then
2119   # Find the output, starting from the most likely.  This scheme is
2120 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2121 # resort.
2122
2123 # Be careful to initialize this variable, since it used to be cached.
2124 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2125 ac_cv_exeext=
2126 # b.out is created by i960 compilers.
2127 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2128 do
2129   test -f "$ac_file" || continue
2130   case $ac_file in
2131     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2132         ;;
2133     conftest.$ac_ext )
2134         # This is the source file.
2135         ;;
2136     [ab].out )
2137         # We found the default executable, but exeext='' is most
2138         # certainly right.
2139         break;;
2140     *.* )
2141         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2142         # FIXME: I believe we export ac_cv_exeext for Libtool,
2143         # but it would be cool to find out if it's true.  Does anybody
2144         # maintain Libtool? --akim.
2145         export ac_cv_exeext
2146         break;;
2147     * )
2148         break;;
2149   esac
2150 done
2151 else
2152   echo "$as_me: failed program was:" >&5
2153 sed 's/^/| /' conftest.$ac_ext >&5
2154
2155 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2156 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2157 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2158 See \`config.log' for more details." >&5
2159 echo "$as_me: error: C compiler cannot create executables
2160 See \`config.log' for more details." >&2;}
2161    { (exit 77); exit 77; }; }; }
2162 fi
2163
2164 ac_exeext=$ac_cv_exeext
2165 echo "$as_me:$LINENO: result: $ac_file" >&5
2166 echo "${ECHO_T}$ac_file" >&6
2167
2168 # Check the compiler produces executables we can run.  If not, either
2169 # the compiler is broken, or we cross compile.
2170 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2171 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2172 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2173 # If not cross compiling, check that we can run a simple program.
2174 if test "$cross_compiling" != yes; then
2175   if { ac_try='./$ac_file'
2176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177   (eval $ac_try) 2>&5
2178   ac_status=$?
2179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180   (exit $ac_status); }; }; then
2181     cross_compiling=no
2182   else
2183     if test "$cross_compiling" = maybe; then
2184         cross_compiling=yes
2185     else
2186         { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2187 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2188 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2189 If you meant to cross compile, use \`--host'.
2190 See \`config.log' for more details." >&5
2191 echo "$as_me: error: cannot run C compiled programs.
2192 If you meant to cross compile, use \`--host'.
2193 See \`config.log' for more details." >&2;}
2194    { (exit 1); exit 1; }; }; }
2195     fi
2196   fi
2197 fi
2198 echo "$as_me:$LINENO: result: yes" >&5
2199 echo "${ECHO_T}yes" >&6
2200
2201 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2202 ac_clean_files=$ac_clean_files_save
2203 # Check the compiler produces executables we can run.  If not, either
2204 # the compiler is broken, or we cross compile.
2205 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2206 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2207 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2208 echo "${ECHO_T}$cross_compiling" >&6
2209
2210 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2211 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2213   (eval $ac_link) 2>&5
2214   ac_status=$?
2215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216   (exit $ac_status); }; then
2217   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2218 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2219 # work properly (i.e., refer to `conftest.exe'), while it won't with
2220 # `rm'.
2221 for ac_file in conftest.exe conftest conftest.*; do
2222   test -f "$ac_file" || continue
2223   case $ac_file in
2224     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2225     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2226           export ac_cv_exeext
2227           break;;
2228     * ) break;;
2229   esac
2230 done
2231 else
2232   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2233 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2234 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2235 See \`config.log' for more details." >&5
2236 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2237 See \`config.log' for more details." >&2;}
2238    { (exit 1); exit 1; }; }; }
2239 fi
2240
2241 rm -f conftest$ac_cv_exeext
2242 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2243 echo "${ECHO_T}$ac_cv_exeext" >&6
2244
2245 rm -f conftest.$ac_ext
2246 EXEEXT=$ac_cv_exeext
2247 ac_exeext=$EXEEXT
2248 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2249 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2250 if test "${ac_cv_objext+set}" = set; then
2251   echo $ECHO_N "(cached) $ECHO_C" >&6
2252 else
2253   cat >conftest.$ac_ext <<_ACEOF
2254 /* confdefs.h.  */
2255 _ACEOF
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h.  */
2259
2260 int
2261 main ()
2262 {
2263
2264   ;
2265   return 0;
2266 }
2267 _ACEOF
2268 rm -f conftest.o conftest.obj
2269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2270   (eval $ac_compile) 2>&5
2271   ac_status=$?
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); }; then
2274   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2275   case $ac_file in
2276     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2277     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2278        break;;
2279   esac
2280 done
2281 else
2282   echo "$as_me: failed program was:" >&5
2283 sed 's/^/| /' conftest.$ac_ext >&5
2284
2285 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2286 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2287 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2288 See \`config.log' for more details." >&5
2289 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2290 See \`config.log' for more details." >&2;}
2291    { (exit 1); exit 1; }; }; }
2292 fi
2293
2294 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2295 fi
2296 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2297 echo "${ECHO_T}$ac_cv_objext" >&6
2298 OBJEXT=$ac_cv_objext
2299 ac_objext=$OBJEXT
2300 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2301 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2302 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2303   echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305   cat >conftest.$ac_ext <<_ACEOF
2306 /* confdefs.h.  */
2307 _ACEOF
2308 cat confdefs.h >>conftest.$ac_ext
2309 cat >>conftest.$ac_ext <<_ACEOF
2310 /* end confdefs.h.  */
2311
2312 int
2313 main ()
2314 {
2315 #ifndef __GNUC__
2316        choke me
2317 #endif
2318
2319   ;
2320   return 0;
2321 }
2322 _ACEOF
2323 rm -f conftest.$ac_objext
2324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2325   (eval $ac_compile) 2>conftest.er1
2326   ac_status=$?
2327   grep -v '^ *+' conftest.er1 >conftest.err
2328   rm -f conftest.er1
2329   cat conftest.err >&5
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); } &&
2332          { ac_try='test -z "$ac_c_werror_flag"
2333                          || test ! -s conftest.err'
2334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335   (eval $ac_try) 2>&5
2336   ac_status=$?
2337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338   (exit $ac_status); }; } &&
2339          { ac_try='test -s conftest.$ac_objext'
2340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341   (eval $ac_try) 2>&5
2342   ac_status=$?
2343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344   (exit $ac_status); }; }; then
2345   ac_compiler_gnu=yes
2346 else
2347   echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2349
2350 ac_compiler_gnu=no
2351 fi
2352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2353 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2354
2355 fi
2356 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2357 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2358 GCC=`test $ac_compiler_gnu = yes && echo yes`
2359 ac_test_CFLAGS=${CFLAGS+set}
2360 ac_save_CFLAGS=$CFLAGS
2361 CFLAGS="-g"
2362 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2363 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2364 if test "${ac_cv_prog_cc_g+set}" = set; then
2365   echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367   cat >conftest.$ac_ext <<_ACEOF
2368 /* confdefs.h.  */
2369 _ACEOF
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h.  */
2373
2374 int
2375 main ()
2376 {
2377
2378   ;
2379   return 0;
2380 }
2381 _ACEOF
2382 rm -f conftest.$ac_objext
2383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384   (eval $ac_compile) 2>conftest.er1
2385   ac_status=$?
2386   grep -v '^ *+' conftest.er1 >conftest.err
2387   rm -f conftest.er1
2388   cat conftest.err >&5
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); } &&
2391          { ac_try='test -z "$ac_c_werror_flag"
2392                          || test ! -s conftest.err'
2393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394   (eval $ac_try) 2>&5
2395   ac_status=$?
2396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); }; } &&
2398          { ac_try='test -s conftest.$ac_objext'
2399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400   (eval $ac_try) 2>&5
2401   ac_status=$?
2402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403   (exit $ac_status); }; }; then
2404   ac_cv_prog_cc_g=yes
2405 else
2406   echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2408
2409 ac_cv_prog_cc_g=no
2410 fi
2411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2412 fi
2413 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2414 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2415 if test "$ac_test_CFLAGS" = set; then
2416   CFLAGS=$ac_save_CFLAGS
2417 elif test $ac_cv_prog_cc_g = yes; then
2418   if test "$GCC" = yes; then
2419     CFLAGS="-g -O2"
2420   else
2421     CFLAGS="-g"
2422   fi
2423 else
2424   if test "$GCC" = yes; then
2425     CFLAGS="-O2"
2426   else
2427     CFLAGS=
2428   fi
2429 fi
2430 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2431 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2432 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2433   echo $ECHO_N "(cached) $ECHO_C" >&6
2434 else
2435   ac_cv_prog_cc_stdc=no
2436 ac_save_CC=$CC
2437 cat >conftest.$ac_ext <<_ACEOF
2438 /* confdefs.h.  */
2439 _ACEOF
2440 cat confdefs.h >>conftest.$ac_ext
2441 cat >>conftest.$ac_ext <<_ACEOF
2442 /* end confdefs.h.  */
2443 #include <stdarg.h>
2444 #include <stdio.h>
2445 #include <sys/types.h>
2446 #include <sys/stat.h>
2447 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2448 struct buf { int x; };
2449 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2450 static char *e (p, i)
2451      char **p;
2452      int i;
2453 {
2454   return p[i];
2455 }
2456 static char *f (char * (*g) (char **, int), char **p, ...)
2457 {
2458   char *s;
2459   va_list v;
2460   va_start (v,p);
2461   s = g (p, va_arg (v,int));
2462   va_end (v);
2463   return s;
2464 }
2465
2466 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2467    function prototypes and stuff, but not '\xHH' hex character constants.
2468    These don't provoke an error unfortunately, instead are silently treated
2469    as 'x'.  The following induces an error, until -std1 is added to get
2470    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2471    array size at least.  It's necessary to write '\x00'==0 to get something
2472    that's true only with -std1.  */
2473 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2474
2475 int test (int i, double x);
2476 struct s1 {int (*f) (int a);};
2477 struct s2 {int (*f) (double a);};
2478 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2479 int argc;
2480 char **argv;
2481 int
2482 main ()
2483 {
2484 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2485   ;
2486   return 0;
2487 }
2488 _ACEOF
2489 # Don't try gcc -ansi; that turns off useful extensions and
2490 # breaks some systems' header files.
2491 # AIX                   -qlanglvl=ansi
2492 # Ultrix and OSF/1      -std1
2493 # HP-UX 10.20 and later -Ae
2494 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2495 # SVR4                  -Xc -D__EXTENSIONS__
2496 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2497 do
2498   CC="$ac_save_CC $ac_arg"
2499   rm -f conftest.$ac_objext
2500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501   (eval $ac_compile) 2>conftest.er1
2502   ac_status=$?
2503   grep -v '^ *+' conftest.er1 >conftest.err
2504   rm -f conftest.er1
2505   cat conftest.err >&5
2506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507   (exit $ac_status); } &&
2508          { ac_try='test -z "$ac_c_werror_flag"
2509                          || test ! -s conftest.err'
2510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511   (eval $ac_try) 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }; } &&
2515          { ac_try='test -s conftest.$ac_objext'
2516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517   (eval $ac_try) 2>&5
2518   ac_status=$?
2519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520   (exit $ac_status); }; }; then
2521   ac_cv_prog_cc_stdc=$ac_arg
2522 break
2523 else
2524   echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2526
2527 fi
2528 rm -f conftest.err conftest.$ac_objext
2529 done
2530 rm -f conftest.$ac_ext conftest.$ac_objext
2531 CC=$ac_save_CC
2532
2533 fi
2534
2535 case "x$ac_cv_prog_cc_stdc" in
2536   x|xno)
2537     echo "$as_me:$LINENO: result: none needed" >&5
2538 echo "${ECHO_T}none needed" >&6 ;;
2539   *)
2540     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2541 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2542     CC="$CC $ac_cv_prog_cc_stdc" ;;
2543 esac
2544
2545 # Some people use a C++ compiler to compile C.  Since we use `exit',
2546 # in C++ we need to declare it.  In case someone uses the same compiler
2547 # for both compiling C and C++ we need to have the C++ compiler decide
2548 # the declaration of exit, since it's the most demanding environment.
2549 cat >conftest.$ac_ext <<_ACEOF
2550 #ifndef __cplusplus
2551   choke me
2552 #endif
2553 _ACEOF
2554 rm -f conftest.$ac_objext
2555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2556   (eval $ac_compile) 2>conftest.er1
2557   ac_status=$?
2558   grep -v '^ *+' conftest.er1 >conftest.err
2559   rm -f conftest.er1
2560   cat conftest.err >&5
2561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); } &&
2563          { ac_try='test -z "$ac_c_werror_flag"
2564                          || test ! -s conftest.err'
2565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566   (eval $ac_try) 2>&5
2567   ac_status=$?
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); }; } &&
2570          { ac_try='test -s conftest.$ac_objext'
2571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572   (eval $ac_try) 2>&5
2573   ac_status=$?
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); }; }; then
2576   for ac_declaration in \
2577    '' \
2578    'extern "C" void std::exit (int) throw (); using std::exit;' \
2579    'extern "C" void std::exit (int); using std::exit;' \
2580    'extern "C" void exit (int) throw ();' \
2581    'extern "C" void exit (int);' \
2582    'void exit (int);'
2583 do
2584   cat >conftest.$ac_ext <<_ACEOF
2585 /* confdefs.h.  */
2586 _ACEOF
2587 cat confdefs.h >>conftest.$ac_ext
2588 cat >>conftest.$ac_ext <<_ACEOF
2589 /* end confdefs.h.  */
2590 $ac_declaration
2591 #include <stdlib.h>
2592 int
2593 main ()
2594 {
2595 exit (42);
2596   ;
2597   return 0;
2598 }
2599 _ACEOF
2600 rm -f conftest.$ac_objext
2601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602   (eval $ac_compile) 2>conftest.er1
2603   ac_status=$?
2604   grep -v '^ *+' conftest.er1 >conftest.err
2605   rm -f conftest.er1
2606   cat conftest.err >&5
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); } &&
2609          { ac_try='test -z "$ac_c_werror_flag"
2610                          || test ! -s conftest.err'
2611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612   (eval $ac_try) 2>&5
2613   ac_status=$?
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); }; } &&
2616          { ac_try='test -s conftest.$ac_objext'
2617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618   (eval $ac_try) 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }; }; then
2622   :
2623 else
2624   echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2626
2627 continue
2628 fi
2629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2630   cat >conftest.$ac_ext <<_ACEOF
2631 /* confdefs.h.  */
2632 _ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h.  */
2636 $ac_declaration
2637 int
2638 main ()
2639 {
2640 exit (42);
2641   ;
2642   return 0;
2643 }
2644 _ACEOF
2645 rm -f conftest.$ac_objext
2646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2647   (eval $ac_compile) 2>conftest.er1
2648   ac_status=$?
2649   grep -v '^ *+' conftest.er1 >conftest.err
2650   rm -f conftest.er1
2651   cat conftest.err >&5
2652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653   (exit $ac_status); } &&
2654          { ac_try='test -z "$ac_c_werror_flag"
2655                          || test ! -s conftest.err'
2656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657   (eval $ac_try) 2>&5
2658   ac_status=$?
2659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660   (exit $ac_status); }; } &&
2661          { ac_try='test -s conftest.$ac_objext'
2662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663   (eval $ac_try) 2>&5
2664   ac_status=$?
2665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666   (exit $ac_status); }; }; then
2667   break
2668 else
2669   echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2671
2672 fi
2673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2674 done
2675 rm -f conftest*
2676 if test -n "$ac_declaration"; then
2677   echo '#ifdef __cplusplus' >>confdefs.h
2678   echo $ac_declaration      >>confdefs.h
2679   echo '#endif'             >>confdefs.h
2680 fi
2681
2682 else
2683   echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2685
2686 fi
2687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2688 ac_ext=c
2689 ac_cpp='$CPP $CPPFLAGS'
2690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2693
2694 # Find a good install program.  We prefer a C program (faster),
2695 # so one script is as good as another.  But avoid the broken or
2696 # incompatible versions:
2697 # SysV /etc/install, /usr/sbin/install
2698 # SunOS /usr/etc/install
2699 # IRIX /sbin/install
2700 # AIX /bin/install
2701 # AmigaOS /C/install, which installs bootblocks on floppy discs
2702 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2703 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2704 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2705 # OS/2's system install, which has a completely different semantic
2706 # ./install, which can be erroneously created by make from ./install.sh.
2707 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2708 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2709 if test -z "$INSTALL"; then
2710 if test "${ac_cv_path_install+set}" = set; then
2711   echo $ECHO_N "(cached) $ECHO_C" >&6
2712 else
2713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 for as_dir in $PATH
2715 do
2716   IFS=$as_save_IFS
2717   test -z "$as_dir" && as_dir=.
2718   # Account for people who put trailing slashes in PATH elements.
2719 case $as_dir/ in
2720   ./ | .// | /cC/* | \
2721   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2722   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2723   /usr/ucb/* ) ;;
2724   *)
2725     # OSF1 and SCO ODT 3.0 have their own names for install.
2726     # Don't use installbsd from OSF since it installs stuff as root
2727     # by default.
2728     for ac_prog in ginstall scoinst install; do
2729       for ac_exec_ext in '' $ac_executable_extensions; do
2730         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2731           if test $ac_prog = install &&
2732             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2733             # AIX install.  It has an incompatible calling convention.
2734             :
2735           elif test $ac_prog = install &&
2736             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2737             # program-specific install script used by HP pwplus--don't use.
2738             :
2739           else
2740             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2741             break 3
2742           fi
2743         fi
2744       done
2745     done
2746     ;;
2747 esac
2748 done
2749
2750
2751 fi
2752   if test "${ac_cv_path_install+set}" = set; then
2753     INSTALL=$ac_cv_path_install
2754   else
2755     # As a last resort, use the slow shell script.  We don't cache a
2756     # path for INSTALL within a source directory, because that will
2757     # break other packages using the cache if that directory is
2758     # removed, or if the path is relative.
2759     INSTALL=$ac_install_sh
2760   fi
2761 fi
2762 echo "$as_me:$LINENO: result: $INSTALL" >&5
2763 echo "${ECHO_T}$INSTALL" >&6
2764
2765 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2766 # It thinks the first close brace ends the variable substitution.
2767 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2768
2769 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2770
2771 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2772
2773
2774 # Put a plausible default for CC_FOR_BUILD in Makefile.
2775 if test "x$cross_compiling" = "xno"; then
2776   CC_FOR_BUILD='$(CC)'
2777 else
2778   CC_FOR_BUILD=gcc
2779 fi
2780
2781
2782
2783
2784 AR=${AR-ar}
2785
2786 if test -n "$ac_tool_prefix"; then
2787   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2788 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2789 echo "$as_me:$LINENO: checking for $ac_word" >&5
2790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2791 if test "${ac_cv_prog_RANLIB+set}" = set; then
2792   echo $ECHO_N "(cached) $ECHO_C" >&6
2793 else
2794   if test -n "$RANLIB"; then
2795   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2796 else
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2799 do
2800   IFS=$as_save_IFS
2801   test -z "$as_dir" && as_dir=.
2802   for ac_exec_ext in '' $ac_executable_extensions; do
2803   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2804     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806     break 2
2807   fi
2808 done
2809 done
2810
2811 fi
2812 fi
2813 RANLIB=$ac_cv_prog_RANLIB
2814 if test -n "$RANLIB"; then
2815   echo "$as_me:$LINENO: result: $RANLIB" >&5
2816 echo "${ECHO_T}$RANLIB" >&6
2817 else
2818   echo "$as_me:$LINENO: result: no" >&5
2819 echo "${ECHO_T}no" >&6
2820 fi
2821
2822 fi
2823 if test -z "$ac_cv_prog_RANLIB"; then
2824   ac_ct_RANLIB=$RANLIB
2825   # Extract the first word of "ranlib", so it can be a program name with args.
2826 set dummy ranlib; ac_word=$2
2827 echo "$as_me:$LINENO: checking for $ac_word" >&5
2828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2829 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2830   echo $ECHO_N "(cached) $ECHO_C" >&6
2831 else
2832   if test -n "$ac_ct_RANLIB"; then
2833   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2834 else
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2837 do
2838   IFS=$as_save_IFS
2839   test -z "$as_dir" && as_dir=.
2840   for ac_exec_ext in '' $ac_executable_extensions; do
2841   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2842     ac_cv_prog_ac_ct_RANLIB="ranlib"
2843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2844     break 2
2845   fi
2846 done
2847 done
2848
2849   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2850 fi
2851 fi
2852 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2853 if test -n "$ac_ct_RANLIB"; then
2854   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2855 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2856 else
2857   echo "$as_me:$LINENO: result: no" >&5
2858 echo "${ECHO_T}no" >&6
2859 fi
2860
2861   RANLIB=$ac_ct_RANLIB
2862 else
2863   RANLIB="$ac_cv_prog_RANLIB"
2864 fi
2865
2866
2867 ALL_LINGUAS=
2868 # If we haven't got the data from the intl directory,
2869 # assume NLS is disabled.
2870 USE_NLS=no
2871 LIBINTL=
2872 LIBINTL_DEP=
2873 INCINTL=
2874 XGETTEXT=
2875 GMSGFMT=
2876 POSUB=
2877
2878 if test -f  ../../intl/config.intl; then
2879   .  ../../intl/config.intl
2880 fi
2881 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2882 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2883 if test x"$USE_NLS" != xyes; then
2884   echo "$as_me:$LINENO: result: no" >&5
2885 echo "${ECHO_T}no" >&6
2886 else
2887   echo "$as_me:$LINENO: result: yes" >&5
2888 echo "${ECHO_T}yes" >&6
2889
2890 cat >>confdefs.h <<\_ACEOF
2891 #define ENABLE_NLS 1
2892 _ACEOF
2893
2894
2895   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2896 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2897   # Look for .po and .gmo files in the source directory.
2898   CATALOGS=
2899   XLINGUAS=
2900   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2901     # If there aren't any .gmo files the shell will give us the
2902     # literal string "../path/to/srcdir/po/*.gmo" which has to be
2903     # weeded out.
2904     case "$cat" in *\**)
2905       continue;;
2906     esac
2907     # The quadruple backslash is collapsed to a double backslash
2908     # by the backticks, then collapsed again by the double quotes,
2909     # leaving us with one backslash in the sed expression (right
2910     # before the dot that mustn't act as a wildcard).
2911     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2912     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2913     # The user is allowed to set LINGUAS to a list of languages to
2914     # install catalogs for.  If it's empty that means "all of them."
2915     if test "x$LINGUAS" = x; then
2916       CATALOGS="$CATALOGS $cat"
2917       XLINGUAS="$XLINGUAS $lang"
2918     else
2919       case "$LINGUAS" in *$lang*)
2920         CATALOGS="$CATALOGS $cat"
2921         XLINGUAS="$XLINGUAS $lang"
2922         ;;
2923       esac
2924     fi
2925   done
2926   LINGUAS="$XLINGUAS"
2927   echo "$as_me:$LINENO: result: $LINGUAS" >&5
2928 echo "${ECHO_T}$LINGUAS" >&6
2929
2930
2931     DATADIRNAME=share
2932
2933   INSTOBJEXT=.mo
2934
2935   GENCAT=gencat
2936
2937   CATOBJEXT=.gmo
2938
2939 fi
2940
2941 # Check for common headers.
2942 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2943 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2944
2945 ac_ext=c
2946 ac_cpp='$CPP $CPPFLAGS'
2947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2950 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2951 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2952 # On Suns, sometimes $CPP names a directory.
2953 if test -n "$CPP" && test -d "$CPP"; then
2954   CPP=
2955 fi
2956 if test -z "$CPP"; then
2957   if test "${ac_cv_prog_CPP+set}" = set; then
2958   echo $ECHO_N "(cached) $ECHO_C" >&6
2959 else
2960       # Double quotes because CPP needs to be expanded
2961     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2962     do
2963       ac_preproc_ok=false
2964 for ac_c_preproc_warn_flag in '' yes
2965 do
2966   # Use a header file that comes with gcc, so configuring glibc
2967   # with a fresh cross-compiler works.
2968   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2969   # <limits.h> exists even on freestanding compilers.
2970   # On the NeXT, cc -E runs the code through the compiler's parser,
2971   # not just through cpp. "Syntax error" is here to catch this case.
2972   cat >conftest.$ac_ext <<_ACEOF
2973 /* confdefs.h.  */
2974 _ACEOF
2975 cat confdefs.h >>conftest.$ac_ext
2976 cat >>conftest.$ac_ext <<_ACEOF
2977 /* end confdefs.h.  */
2978 #ifdef __STDC__
2979 # include <limits.h>
2980 #else
2981 # include <assert.h>
2982 #endif
2983                      Syntax error
2984 _ACEOF
2985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2986   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2987   ac_status=$?
2988   grep -v '^ *+' conftest.er1 >conftest.err
2989   rm -f conftest.er1
2990   cat conftest.err >&5
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); } >/dev/null; then
2993   if test -s conftest.err; then
2994     ac_cpp_err=$ac_c_preproc_warn_flag
2995     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2996   else
2997     ac_cpp_err=
2998   fi
2999 else
3000   ac_cpp_err=yes
3001 fi
3002 if test -z "$ac_cpp_err"; then
3003   :
3004 else
3005   echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3007
3008   # Broken: fails on valid input.
3009 continue
3010 fi
3011 rm -f conftest.err conftest.$ac_ext
3012
3013   # OK, works on sane cases.  Now check whether non-existent headers
3014   # can be detected and how.
3015   cat >conftest.$ac_ext <<_ACEOF
3016 /* confdefs.h.  */
3017 _ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h.  */
3021 #include <ac_nonexistent.h>
3022 _ACEOF
3023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3024   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3025   ac_status=$?
3026   grep -v '^ *+' conftest.er1 >conftest.err
3027   rm -f conftest.er1
3028   cat conftest.err >&5
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); } >/dev/null; then
3031   if test -s conftest.err; then
3032     ac_cpp_err=$ac_c_preproc_warn_flag
3033     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3034   else
3035     ac_cpp_err=
3036   fi
3037 else
3038   ac_cpp_err=yes
3039 fi
3040 if test -z "$ac_cpp_err"; then
3041   # Broken: success on invalid input.
3042 continue
3043 else
3044   echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3046
3047   # Passes both tests.
3048 ac_preproc_ok=:
3049 break
3050 fi
3051 rm -f conftest.err conftest.$ac_ext
3052
3053 done
3054 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3055 rm -f conftest.err conftest.$ac_ext
3056 if $ac_preproc_ok; then
3057   break
3058 fi
3059
3060     done
3061     ac_cv_prog_CPP=$CPP
3062
3063 fi
3064   CPP=$ac_cv_prog_CPP
3065 else
3066   ac_cv_prog_CPP=$CPP
3067 fi
3068 echo "$as_me:$LINENO: result: $CPP" >&5
3069 echo "${ECHO_T}$CPP" >&6
3070 ac_preproc_ok=false
3071 for ac_c_preproc_warn_flag in '' yes
3072 do
3073   # Use a header file that comes with gcc, so configuring glibc
3074   # with a fresh cross-compiler works.
3075   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3076   # <limits.h> exists even on freestanding compilers.
3077   # On the NeXT, cc -E runs the code through the compiler's parser,
3078   # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
3086 # include <limits.h>
3087 #else
3088 # include <assert.h>
3089 #endif
3090                      Syntax error
3091 _ACEOF
3092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3093   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3094   ac_status=$?
3095   grep -v '^ *+' conftest.er1 >conftest.err
3096   rm -f conftest.er1
3097   cat conftest.err >&5
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); } >/dev/null; then
3100   if test -s conftest.err; then
3101     ac_cpp_err=$ac_c_preproc_warn_flag
3102     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3103   else
3104     ac_cpp_err=
3105   fi
3106 else
3107   ac_cpp_err=yes
3108 fi
3109 if test -z "$ac_cpp_err"; then
3110   :
3111 else
3112   echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3114
3115   # Broken: fails on valid input.
3116 continue
3117 fi
3118 rm -f conftest.err conftest.$ac_ext
3119
3120   # OK, works on sane cases.  Now check whether non-existent headers
3121   # can be detected and how.
3122   cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h.  */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h.  */
3128 #include <ac_nonexistent.h>
3129 _ACEOF
3130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3131   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3132   ac_status=$?
3133   grep -v '^ *+' conftest.er1 >conftest.err
3134   rm -f conftest.er1
3135   cat conftest.err >&5
3136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137   (exit $ac_status); } >/dev/null; then
3138   if test -s conftest.err; then
3139     ac_cpp_err=$ac_c_preproc_warn_flag
3140     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3141   else
3142     ac_cpp_err=
3143   fi
3144 else
3145   ac_cpp_err=yes
3146 fi
3147 if test -z "$ac_cpp_err"; then
3148   # Broken: success on invalid input.
3149 continue
3150 else
3151   echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3153
3154   # Passes both tests.
3155 ac_preproc_ok=:
3156 break
3157 fi
3158 rm -f conftest.err conftest.$ac_ext
3159
3160 done
3161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3162 rm -f conftest.err conftest.$ac_ext
3163 if $ac_preproc_ok; then
3164   :
3165 else
3166   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3167 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3169 See \`config.log' for more details." >&5
3170 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3171 See \`config.log' for more details." >&2;}
3172    { (exit 1); exit 1; }; }; }
3173 fi
3174
3175 ac_ext=c
3176 ac_cpp='$CPP $CPPFLAGS'
3177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3180
3181
3182 echo "$as_me:$LINENO: checking for egrep" >&5
3183 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3184 if test "${ac_cv_prog_egrep+set}" = set; then
3185   echo $ECHO_N "(cached) $ECHO_C" >&6
3186 else
3187   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3188     then ac_cv_prog_egrep='grep -E'
3189     else ac_cv_prog_egrep='egrep'
3190     fi
3191 fi
3192 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3193 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3194  EGREP=$ac_cv_prog_egrep
3195
3196
3197 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3198 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3199 if test "${ac_cv_header_stdc+set}" = set; then
3200   echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202   cat >conftest.$ac_ext <<_ACEOF
3203 /* confdefs.h.  */
3204 _ACEOF
3205 cat confdefs.h >>conftest.$ac_ext
3206 cat >>conftest.$ac_ext <<_ACEOF
3207 /* end confdefs.h.  */
3208 #include <stdlib.h>
3209 #include <stdarg.h>
3210 #include <string.h>
3211 #include <float.h>
3212
3213 int
3214 main ()
3215 {
3216
3217   ;
3218   return 0;
3219 }
3220 _ACEOF
3221 rm -f conftest.$ac_objext
3222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3223   (eval $ac_compile) 2>conftest.er1
3224   ac_status=$?
3225   grep -v '^ *+' conftest.er1 >conftest.err
3226   rm -f conftest.er1
3227   cat conftest.err >&5
3228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229   (exit $ac_status); } &&
3230          { ac_try='test -z "$ac_c_werror_flag"
3231                          || test ! -s conftest.err'
3232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233   (eval $ac_try) 2>&5
3234   ac_status=$?
3235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236   (exit $ac_status); }; } &&
3237          { ac_try='test -s conftest.$ac_objext'
3238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239   (eval $ac_try) 2>&5
3240   ac_status=$?
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); }; }; then
3243   ac_cv_header_stdc=yes
3244 else
3245   echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3247
3248 ac_cv_header_stdc=no
3249 fi
3250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3251
3252 if test $ac_cv_header_stdc = yes; then
3253   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3254   cat >conftest.$ac_ext <<_ACEOF
3255 /* confdefs.h.  */
3256 _ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h.  */
3260 #include <string.h>
3261
3262 _ACEOF
3263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3264   $EGREP "memchr" >/dev/null 2>&1; then
3265   :
3266 else
3267   ac_cv_header_stdc=no
3268 fi
3269 rm -f conftest*
3270
3271 fi
3272
3273 if test $ac_cv_header_stdc = yes; then
3274   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3275   cat >conftest.$ac_ext <<_ACEOF
3276 /* confdefs.h.  */
3277 _ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h.  */
3281 #include <stdlib.h>
3282
3283 _ACEOF
3284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3285   $EGREP "free" >/dev/null 2>&1; then
3286   :
3287 else
3288   ac_cv_header_stdc=no
3289 fi
3290 rm -f conftest*
3291
3292 fi
3293
3294 if test $ac_cv_header_stdc = yes; then
3295   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3296   if test "$cross_compiling" = yes; then
3297   :
3298 else
3299   cat >conftest.$ac_ext <<_ACEOF
3300 /* confdefs.h.  */
3301 _ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h.  */
3305 #include <ctype.h>
3306 #if ((' ' & 0x0FF) == 0x020)
3307 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3308 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3309 #else
3310 # define ISLOWER(c) \
3311                    (('a' <= (c) && (c) <= 'i') \
3312                      || ('j' <= (c) && (c) <= 'r') \
3313                      || ('s' <= (c) && (c) <= 'z'))
3314 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3315 #endif
3316
3317 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3318 int
3319 main ()
3320 {
3321   int i;
3322   for (i = 0; i < 256; i++)
3323     if (XOR (islower (i), ISLOWER (i))
3324         || toupper (i) != TOUPPER (i))
3325       exit(2);
3326   exit (0);
3327 }
3328 _ACEOF
3329 rm -f conftest$ac_exeext
3330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3331   (eval $ac_link) 2>&5
3332   ac_status=$?
3333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336   (eval $ac_try) 2>&5
3337   ac_status=$?
3338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339   (exit $ac_status); }; }; then
3340   :
3341 else
3342   echo "$as_me: program exited with status $ac_status" >&5
3343 echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3345
3346 ( exit $ac_status )
3347 ac_cv_header_stdc=no
3348 fi
3349 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3350 fi
3351 fi
3352 fi
3353 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3354 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3355 if test $ac_cv_header_stdc = yes; then
3356
3357 cat >>confdefs.h <<\_ACEOF
3358 #define STDC_HEADERS 1
3359 _ACEOF
3360
3361 fi
3362
3363 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3374                   inttypes.h stdint.h unistd.h
3375 do
3376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3377 echo "$as_me:$LINENO: checking for $ac_header" >&5
3378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3380   echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382   cat >conftest.$ac_ext <<_ACEOF
3383 /* confdefs.h.  */
3384 _ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h.  */
3388 $ac_includes_default
3389
3390 #include <$ac_header>
3391 _ACEOF
3392 rm -f conftest.$ac_objext
3393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3394   (eval $ac_compile) 2>conftest.er1
3395   ac_status=$?
3396   grep -v '^ *+' conftest.er1 >conftest.err
3397   rm -f conftest.er1
3398   cat conftest.err >&5
3399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400   (exit $ac_status); } &&
3401          { ac_try='test -z "$ac_c_werror_flag"
3402                          || test ! -s conftest.err'
3403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404   (eval $ac_try) 2>&5
3405   ac_status=$?
3406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407   (exit $ac_status); }; } &&
3408          { ac_try='test -s conftest.$ac_objext'
3409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410   (eval $ac_try) 2>&5
3411   ac_status=$?
3412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413   (exit $ac_status); }; }; then
3414   eval "$as_ac_Header=yes"
3415 else
3416   echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3418
3419 eval "$as_ac_Header=no"
3420 fi
3421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3422 fi
3423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3426   cat >>confdefs.h <<_ACEOF
3427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3428 _ACEOF
3429
3430 fi
3431
3432 done
3433
3434
3435
3436
3437
3438
3439
3440 for ac_header in stdlib.h string.h strings.h unistd.h time.h
3441 do
3442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3444   echo "$as_me:$LINENO: checking for $ac_header" >&5
3445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3447   echo $ECHO_N "(cached) $ECHO_C" >&6
3448 fi
3449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3451 else
3452   # Is the header compilable?
3453 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3455 cat >conftest.$ac_ext <<_ACEOF
3456 /* confdefs.h.  */
3457 _ACEOF
3458 cat confdefs.h >>conftest.$ac_ext
3459 cat >>conftest.$ac_ext <<_ACEOF
3460 /* end confdefs.h.  */
3461 $ac_includes_default
3462 #include <$ac_header>
3463 _ACEOF
3464 rm -f conftest.$ac_objext
3465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3466   (eval $ac_compile) 2>conftest.er1
3467   ac_status=$?
3468   grep -v '^ *+' conftest.er1 >conftest.err
3469   rm -f conftest.er1
3470   cat conftest.err >&5
3471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472   (exit $ac_status); } &&
3473          { ac_try='test -z "$ac_c_werror_flag"
3474                          || test ! -s conftest.err'
3475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476   (eval $ac_try) 2>&5
3477   ac_status=$?
3478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479   (exit $ac_status); }; } &&
3480          { ac_try='test -s conftest.$ac_objext'
3481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482   (eval $ac_try) 2>&5
3483   ac_status=$?
3484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485   (exit $ac_status); }; }; then
3486   ac_header_compiler=yes
3487 else
3488   echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3490
3491 ac_header_compiler=no
3492 fi
3493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3495 echo "${ECHO_T}$ac_header_compiler" >&6
3496
3497 # Is the header present?
3498 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h.  */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h.  */
3506 #include <$ac_header>
3507 _ACEOF
3508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3509   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3510   ac_status=$?
3511   grep -v '^ *+' conftest.er1 >conftest.err
3512   rm -f conftest.er1
3513   cat conftest.err >&5
3514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515   (exit $ac_status); } >/dev/null; then
3516   if test -s conftest.err; then
3517     ac_cpp_err=$ac_c_preproc_warn_flag
3518     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3519   else
3520     ac_cpp_err=
3521   fi
3522 else
3523   ac_cpp_err=yes
3524 fi
3525 if test -z "$ac_cpp_err"; then
3526   ac_header_preproc=yes
3527 else
3528   echo "$as_me: failed program was:" >&5
3529 sed 's/^/| /' conftest.$ac_ext >&5
3530
3531   ac_header_preproc=no
3532 fi
3533 rm -f conftest.err conftest.$ac_ext
3534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3535 echo "${ECHO_T}$ac_header_preproc" >&6
3536
3537 # So?  What about this header?
3538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3539   yes:no: )
3540     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3542     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3543 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3544     ac_header_preproc=yes
3545     ;;
3546   no:yes:* )
3547     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3549     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3550 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3551     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3552 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3553     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3554 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3555     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3557     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3558 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3559     (
3560       cat <<\_ASBOX
3561 ## ------------------------------------------ ##
3562 ## Report this to the AC_PACKAGE_NAME lists.  ##
3563 ## ------------------------------------------ ##
3564 _ASBOX
3565     ) |
3566       sed "s/^/$as_me: WARNING:     /" >&2
3567     ;;
3568 esac
3569 echo "$as_me:$LINENO: checking for $ac_header" >&5
3570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3572   echo $ECHO_N "(cached) $ECHO_C" >&6
3573 else
3574   eval "$as_ac_Header=\$ac_header_preproc"
3575 fi
3576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3578
3579 fi
3580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3581   cat >>confdefs.h <<_ACEOF
3582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3583 _ACEOF
3584
3585 fi
3586
3587 done
3588
3589
3590
3591 for ac_header in sys/time.h sys/resource.h
3592 do
3593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3595   echo "$as_me:$LINENO: checking for $ac_header" >&5
3596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3598   echo $ECHO_N "(cached) $ECHO_C" >&6
3599 fi
3600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3602 else
3603   # Is the header compilable?
3604 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3606 cat >conftest.$ac_ext <<_ACEOF
3607 /* confdefs.h.  */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h.  */
3612 $ac_includes_default
3613 #include <$ac_header>
3614 _ACEOF
3615 rm -f conftest.$ac_objext
3616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3617   (eval $ac_compile) 2>conftest.er1
3618   ac_status=$?
3619   grep -v '^ *+' conftest.er1 >conftest.err
3620   rm -f conftest.er1
3621   cat conftest.err >&5
3622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623   (exit $ac_status); } &&
3624          { ac_try='test -z "$ac_c_werror_flag"
3625                          || test ! -s conftest.err'
3626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627   (eval $ac_try) 2>&5
3628   ac_status=$?
3629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630   (exit $ac_status); }; } &&
3631          { ac_try='test -s conftest.$ac_objext'
3632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633   (eval $ac_try) 2>&5
3634   ac_status=$?
3635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636   (exit $ac_status); }; }; then
3637   ac_header_compiler=yes
3638 else
3639   echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3641
3642 ac_header_compiler=no
3643 fi
3644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3646 echo "${ECHO_T}$ac_header_compiler" >&6
3647
3648 # Is the header present?
3649 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3651 cat >conftest.$ac_ext <<_ACEOF
3652 /* confdefs.h.  */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h.  */
3657 #include <$ac_header>
3658 _ACEOF
3659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3660   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3661   ac_status=$?
3662   grep -v '^ *+' conftest.er1 >conftest.err
3663   rm -f conftest.er1
3664   cat conftest.err >&5
3665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666   (exit $ac_status); } >/dev/null; then
3667   if test -s conftest.err; then
3668     ac_cpp_err=$ac_c_preproc_warn_flag
3669     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3670   else
3671     ac_cpp_err=
3672   fi
3673 else
3674   ac_cpp_err=yes
3675 fi
3676 if test -z "$ac_cpp_err"; then
3677   ac_header_preproc=yes
3678 else
3679   echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3681
3682   ac_header_preproc=no
3683 fi
3684 rm -f conftest.err conftest.$ac_ext
3685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3686 echo "${ECHO_T}$ac_header_preproc" >&6
3687
3688 # So?  What about this header?
3689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3690   yes:no: )
3691     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3693     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3694 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3695     ac_header_preproc=yes
3696     ;;
3697   no:yes:* )
3698     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3699 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3700     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3701 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3702     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3703 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3704     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3705 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3706     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3708     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3709 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3710     (
3711       cat <<\_ASBOX
3712 ## ------------------------------------------ ##
3713 ## Report this to the AC_PACKAGE_NAME lists.  ##
3714 ## ------------------------------------------ ##
3715 _ASBOX
3716     ) |
3717       sed "s/^/$as_me: WARNING:     /" >&2
3718     ;;
3719 esac
3720 echo "$as_me:$LINENO: checking for $ac_header" >&5
3721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3723   echo $ECHO_N "(cached) $ECHO_C" >&6
3724 else
3725   eval "$as_ac_Header=\$ac_header_preproc"
3726 fi
3727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3729
3730 fi
3731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3732   cat >>confdefs.h <<_ACEOF
3733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3734 _ACEOF
3735
3736 fi
3737
3738 done
3739
3740
3741
3742 for ac_header in fcntl.h fpu_control.h
3743 do
3744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3746   echo "$as_me:$LINENO: checking for $ac_header" >&5
3747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3749   echo $ECHO_N "(cached) $ECHO_C" >&6
3750 fi
3751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3753 else
3754   # Is the header compilable?
3755 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3756 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3757 cat >conftest.$ac_ext <<_ACEOF
3758 /* confdefs.h.  */
3759 _ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h.  */
3763 $ac_includes_default
3764 #include <$ac_header>
3765 _ACEOF
3766 rm -f conftest.$ac_objext
3767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3768   (eval $ac_compile) 2>conftest.er1
3769   ac_status=$?
3770   grep -v '^ *+' conftest.er1 >conftest.err
3771   rm -f conftest.er1
3772   cat conftest.err >&5
3773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774   (exit $ac_status); } &&
3775          { ac_try='test -z "$ac_c_werror_flag"
3776                          || test ! -s conftest.err'
3777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778   (eval $ac_try) 2>&5
3779   ac_status=$?
3780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781   (exit $ac_status); }; } &&
3782          { ac_try='test -s conftest.$ac_objext'
3783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784   (eval $ac_try) 2>&5
3785   ac_status=$?
3786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787   (exit $ac_status); }; }; then
3788   ac_header_compiler=yes
3789 else
3790   echo "$as_me: failed program was:" >&5
3791 sed 's/^/| /' conftest.$ac_ext >&5
3792
3793 ac_header_compiler=no
3794 fi
3795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3796 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3797 echo "${ECHO_T}$ac_header_compiler" >&6
3798
3799 # Is the header present?
3800 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3801 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3802 cat >conftest.$ac_ext <<_ACEOF
3803 /* confdefs.h.  */
3804 _ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h.  */
3808 #include <$ac_header>
3809 _ACEOF
3810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3811   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3812   ac_status=$?
3813   grep -v '^ *+' conftest.er1 >conftest.err
3814   rm -f conftest.er1
3815   cat conftest.err >&5
3816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817   (exit $ac_status); } >/dev/null; then
3818   if test -s conftest.err; then
3819     ac_cpp_err=$ac_c_preproc_warn_flag
3820     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3821   else
3822     ac_cpp_err=
3823   fi
3824 else
3825   ac_cpp_err=yes
3826 fi
3827 if test -z "$ac_cpp_err"; then
3828   ac_header_preproc=yes
3829 else
3830   echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3832
3833   ac_header_preproc=no
3834 fi
3835 rm -f conftest.err conftest.$ac_ext
3836 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3837 echo "${ECHO_T}$ac_header_preproc" >&6
3838
3839 # So?  What about this header?
3840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3841   yes:no: )
3842     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3843 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3844     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3845 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3846     ac_header_preproc=yes
3847     ;;
3848   no:yes:* )
3849     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3850 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3851     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3852 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3853     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3854 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3855     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3856 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3857     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3859     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3860 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3861     (
3862       cat <<\_ASBOX
3863 ## ------------------------------------------ ##
3864 ## Report this to the AC_PACKAGE_NAME lists.  ##
3865 ## ------------------------------------------ ##
3866 _ASBOX
3867     ) |
3868       sed "s/^/$as_me: WARNING:     /" >&2
3869     ;;
3870 esac
3871 echo "$as_me:$LINENO: checking for $ac_header" >&5
3872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3874   echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876   eval "$as_ac_Header=\$ac_header_preproc"
3877 fi
3878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3880
3881 fi
3882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3883   cat >>confdefs.h <<_ACEOF
3884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3885 _ACEOF
3886
3887 fi
3888
3889 done
3890
3891
3892
3893
3894 for ac_header in dlfcn.h errno.h sys/stat.h
3895 do
3896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3898   echo "$as_me:$LINENO: checking for $ac_header" >&5
3899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3901   echo $ECHO_N "(cached) $ECHO_C" >&6
3902 fi
3903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3905 else
3906   # Is the header compilable?
3907 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3909 cat >conftest.$ac_ext <<_ACEOF
3910 /* confdefs.h.  */
3911 _ACEOF
3912 cat confdefs.h >>conftest.$ac_ext
3913 cat >>conftest.$ac_ext <<_ACEOF
3914 /* end confdefs.h.  */
3915 $ac_includes_default
3916 #include <$ac_header>
3917 _ACEOF
3918 rm -f conftest.$ac_objext
3919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3920   (eval $ac_compile) 2>conftest.er1
3921   ac_status=$?
3922   grep -v '^ *+' conftest.er1 >conftest.err
3923   rm -f conftest.er1
3924   cat conftest.err >&5
3925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926   (exit $ac_status); } &&
3927          { ac_try='test -z "$ac_c_werror_flag"
3928                          || test ! -s conftest.err'
3929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930   (eval $ac_try) 2>&5
3931   ac_status=$?
3932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933   (exit $ac_status); }; } &&
3934          { ac_try='test -s conftest.$ac_objext'
3935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936   (eval $ac_try) 2>&5
3937   ac_status=$?
3938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939   (exit $ac_status); }; }; then
3940   ac_header_compiler=yes
3941 else
3942   echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3944
3945 ac_header_compiler=no
3946 fi
3947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3948 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3949 echo "${ECHO_T}$ac_header_compiler" >&6
3950
3951 # Is the header present?
3952 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3954 cat >conftest.$ac_ext <<_ACEOF
3955 /* confdefs.h.  */
3956 _ACEOF
3957 cat confdefs.h >>conftest.$ac_ext
3958 cat >>conftest.$ac_ext <<_ACEOF
3959 /* end confdefs.h.  */
3960 #include <$ac_header>
3961 _ACEOF
3962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3963   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3964   ac_status=$?
3965   grep -v '^ *+' conftest.er1 >conftest.err
3966   rm -f conftest.er1
3967   cat conftest.err >&5
3968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969   (exit $ac_status); } >/dev/null; then
3970   if test -s conftest.err; then
3971     ac_cpp_err=$ac_c_preproc_warn_flag
3972     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3973   else
3974     ac_cpp_err=
3975   fi
3976 else
3977   ac_cpp_err=yes
3978 fi
3979 if test -z "$ac_cpp_err"; then
3980   ac_header_preproc=yes
3981 else
3982   echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3984
3985   ac_header_preproc=no
3986 fi
3987 rm -f conftest.err conftest.$ac_ext
3988 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3989 echo "${ECHO_T}$ac_header_preproc" >&6
3990
3991 # So?  What about this header?
3992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3993   yes:no: )
3994     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3996     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3998     ac_header_preproc=yes
3999     ;;
4000   no:yes:* )
4001     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4003     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4004 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4005     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4007     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4008 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4009     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4011     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4013     (
4014       cat <<\_ASBOX
4015 ## ------------------------------------------ ##
4016 ## Report this to the AC_PACKAGE_NAME lists.  ##
4017 ## ------------------------------------------ ##
4018 _ASBOX
4019     ) |
4020       sed "s/^/$as_me: WARNING:     /" >&2
4021     ;;
4022 esac
4023 echo "$as_me:$LINENO: checking for $ac_header" >&5
4024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4026   echo $ECHO_N "(cached) $ECHO_C" >&6
4027 else
4028   eval "$as_ac_Header=\$ac_header_preproc"
4029 fi
4030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4032
4033 fi
4034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4035   cat >>confdefs.h <<_ACEOF
4036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4037 _ACEOF
4038
4039 fi
4040
4041 done
4042
4043
4044
4045
4046
4047 for ac_func in getrusage time sigaction __setfpucw
4048 do
4049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4050 echo "$as_me:$LINENO: checking for $ac_func" >&5
4051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4052 if eval "test \"\${$as_ac_var+set}\" = set"; then
4053   echo $ECHO_N "(cached) $ECHO_C" >&6
4054 else
4055   cat >conftest.$ac_ext <<_ACEOF
4056 /* confdefs.h.  */
4057 _ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h.  */
4061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4062    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4063 #define $ac_func innocuous_$ac_func
4064
4065 /* System header to define __stub macros and hopefully few prototypes,
4066     which can conflict with char $ac_func (); below.
4067     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4068     <limits.h> exists even on freestanding compilers.  */
4069
4070 #ifdef __STDC__
4071 # include <limits.h>
4072 #else
4073 # include <assert.h>
4074 #endif
4075
4076 #undef $ac_func
4077
4078 /* Override any gcc2 internal prototype to avoid an error.  */
4079 #ifdef __cplusplus
4080 extern "C"
4081 {
4082 #endif
4083 /* We use char because int might match the return type of a gcc2
4084    builtin and then its argument prototype would still apply.  */
4085 char $ac_func ();
4086 /* The GNU C library defines this for functions which it implements
4087     to always fail with ENOSYS.  Some functions are actually named
4088     something starting with __ and the normal name is an alias.  */
4089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4090 choke me
4091 #else
4092 char (*f) () = $ac_func;
4093 #endif
4094 #ifdef __cplusplus
4095 }
4096 #endif
4097
4098 int
4099 main ()
4100 {
4101 return f != $ac_func;
4102   ;
4103   return 0;
4104 }
4105 _ACEOF
4106 rm -f conftest.$ac_objext conftest$ac_exeext
4107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4108   (eval $ac_link) 2>conftest.er1
4109   ac_status=$?
4110   grep -v '^ *+' conftest.er1 >conftest.err
4111   rm -f conftest.er1
4112   cat conftest.err >&5
4113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114   (exit $ac_status); } &&
4115          { ac_try='test -z "$ac_c_werror_flag"
4116                          || test ! -s conftest.err'
4117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118   (eval $ac_try) 2>&5
4119   ac_status=$?
4120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121   (exit $ac_status); }; } &&
4122          { ac_try='test -s conftest$ac_exeext'
4123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124   (eval $ac_try) 2>&5
4125   ac_status=$?
4126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127   (exit $ac_status); }; }; then
4128   eval "$as_ac_var=yes"
4129 else
4130   echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4132
4133 eval "$as_ac_var=no"
4134 fi
4135 rm -f conftest.err conftest.$ac_objext \
4136       conftest$ac_exeext conftest.$ac_ext
4137 fi
4138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4140 if test `eval echo '${'$as_ac_var'}'` = yes; then
4141   cat >>confdefs.h <<_ACEOF
4142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4143 _ACEOF
4144
4145 fi
4146 done
4147
4148
4149 # Check for socket libraries
4150
4151 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
4152 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
4153 if test "${ac_cv_lib_socket_bind+set}" = set; then
4154   echo $ECHO_N "(cached) $ECHO_C" >&6
4155 else
4156   ac_check_lib_save_LIBS=$LIBS
4157 LIBS="-lsocket  $LIBS"
4158 cat >conftest.$ac_ext <<_ACEOF
4159 /* confdefs.h.  */
4160 _ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h.  */
4164
4165 /* Override any gcc2 internal prototype to avoid an error.  */
4166 #ifdef __cplusplus
4167 extern "C"
4168 #endif
4169 /* We use char because int might match the return type of a gcc2
4170    builtin and then its argument prototype would still apply.  */
4171 char bind ();
4172 int
4173 main ()
4174 {
4175 bind ();
4176   ;
4177   return 0;
4178 }
4179 _ACEOF
4180 rm -f conftest.$ac_objext conftest$ac_exeext
4181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4182   (eval $ac_link) 2>conftest.er1
4183   ac_status=$?
4184   grep -v '^ *+' conftest.er1 >conftest.err
4185   rm -f conftest.er1
4186   cat conftest.err >&5
4187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188   (exit $ac_status); } &&
4189          { ac_try='test -z "$ac_c_werror_flag"
4190                          || test ! -s conftest.err'
4191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192   (eval $ac_try) 2>&5
4193   ac_status=$?
4194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195   (exit $ac_status); }; } &&
4196          { ac_try='test -s conftest$ac_exeext'
4197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198   (eval $ac_try) 2>&5
4199   ac_status=$?
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); }; }; then
4202   ac_cv_lib_socket_bind=yes
4203 else
4204   echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4206
4207 ac_cv_lib_socket_bind=no
4208 fi
4209 rm -f conftest.err conftest.$ac_objext \
4210       conftest$ac_exeext conftest.$ac_ext
4211 LIBS=$ac_check_lib_save_LIBS
4212 fi
4213 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
4214 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
4215 if test $ac_cv_lib_socket_bind = yes; then
4216   cat >>confdefs.h <<_ACEOF
4217 #define HAVE_LIBSOCKET 1
4218 _ACEOF
4219
4220   LIBS="-lsocket $LIBS"
4221
4222 fi
4223
4224
4225 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4226 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4227 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4228   echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230   ac_check_lib_save_LIBS=$LIBS
4231 LIBS="-lnsl  $LIBS"
4232 cat >conftest.$ac_ext <<_ACEOF
4233 /* confdefs.h.  */
4234 _ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h.  */
4238
4239 /* Override any gcc2 internal prototype to avoid an error.  */
4240 #ifdef __cplusplus
4241 extern "C"
4242 #endif
4243 /* We use char because int might match the return type of a gcc2
4244    builtin and then its argument prototype would still apply.  */
4245 char gethostbyname ();
4246 int
4247 main ()
4248 {
4249 gethostbyname ();
4250   ;
4251   return 0;
4252 }
4253 _ACEOF
4254 rm -f conftest.$ac_objext conftest$ac_exeext
4255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4256   (eval $ac_link) 2>conftest.er1
4257   ac_status=$?
4258   grep -v '^ *+' conftest.er1 >conftest.err
4259   rm -f conftest.er1
4260   cat conftest.err >&5
4261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262   (exit $ac_status); } &&
4263          { ac_try='test -z "$ac_c_werror_flag"
4264                          || test ! -s conftest.err'
4265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266   (eval $ac_try) 2>&5
4267   ac_status=$?
4268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269   (exit $ac_status); }; } &&
4270          { ac_try='test -s conftest$ac_exeext'
4271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272   (eval $ac_try) 2>&5
4273   ac_status=$?
4274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275   (exit $ac_status); }; }; then
4276   ac_cv_lib_nsl_gethostbyname=yes
4277 else
4278   echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4280
4281 ac_cv_lib_nsl_gethostbyname=no
4282 fi
4283 rm -f conftest.err conftest.$ac_objext \
4284       conftest$ac_exeext conftest.$ac_ext
4285 LIBS=$ac_check_lib_save_LIBS
4286 fi
4287 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4288 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4289 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4290   cat >>confdefs.h <<_ACEOF
4291 #define HAVE_LIBNSL 1
4292 _ACEOF
4293
4294   LIBS="-lnsl $LIBS"
4295
4296 fi
4297
4298
4299 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
4300 # using the same condition.
4301 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
4302 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
4303 if test "${ac_cv_search_zlibVersion+set}" = set; then
4304   echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306   ac_func_search_save_LIBS=$LIBS
4307 ac_cv_search_zlibVersion=no
4308 cat >conftest.$ac_ext <<_ACEOF
4309 /* confdefs.h.  */
4310 _ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h.  */
4314
4315 /* Override any gcc2 internal prototype to avoid an error.  */
4316 #ifdef __cplusplus
4317 extern "C"
4318 #endif
4319 /* We use char because int might match the return type of a gcc2
4320    builtin and then its argument prototype would still apply.  */
4321 char zlibVersion ();
4322 int
4323 main ()
4324 {
4325 zlibVersion ();
4326   ;
4327   return 0;
4328 }
4329 _ACEOF
4330 rm -f conftest.$ac_objext conftest$ac_exeext
4331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4332   (eval $ac_link) 2>conftest.er1
4333   ac_status=$?
4334   grep -v '^ *+' conftest.er1 >conftest.err
4335   rm -f conftest.er1
4336   cat conftest.err >&5
4337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338   (exit $ac_status); } &&
4339          { ac_try='test -z "$ac_c_werror_flag"
4340                          || test ! -s conftest.err'
4341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342   (eval $ac_try) 2>&5
4343   ac_status=$?
4344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345   (exit $ac_status); }; } &&
4346          { ac_try='test -s conftest$ac_exeext'
4347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348   (eval $ac_try) 2>&5
4349   ac_status=$?
4350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351   (exit $ac_status); }; }; then
4352   ac_cv_search_zlibVersion="none required"
4353 else
4354   echo "$as_me: failed program was:" >&5
4355 sed 's/^/| /' conftest.$ac_ext >&5
4356
4357 fi
4358 rm -f conftest.err conftest.$ac_objext \
4359       conftest$ac_exeext conftest.$ac_ext
4360 if test "$ac_cv_search_zlibVersion" = no; then
4361   for ac_lib in z; do
4362     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4363     cat >conftest.$ac_ext <<_ACEOF
4364 /* confdefs.h.  */
4365 _ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h.  */
4369
4370 /* Override any gcc2 internal prototype to avoid an error.  */
4371 #ifdef __cplusplus
4372 extern "C"
4373 #endif
4374 /* We use char because int might match the return type of a gcc2
4375    builtin and then its argument prototype would still apply.  */
4376 char zlibVersion ();
4377 int
4378 main ()
4379 {
4380 zlibVersion ();
4381   ;
4382   return 0;
4383 }
4384 _ACEOF
4385 rm -f conftest.$ac_objext conftest$ac_exeext
4386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4387   (eval $ac_link) 2>conftest.er1
4388   ac_status=$?
4389   grep -v '^ *+' conftest.er1 >conftest.err
4390   rm -f conftest.er1
4391   cat conftest.err >&5
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); } &&
4394          { ac_try='test -z "$ac_c_werror_flag"
4395                          || test ! -s conftest.err'
4396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397   (eval $ac_try) 2>&5
4398   ac_status=$?
4399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400   (exit $ac_status); }; } &&
4401          { ac_try='test -s conftest$ac_exeext'
4402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403   (eval $ac_try) 2>&5
4404   ac_status=$?
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); }; }; then
4407   ac_cv_search_zlibVersion="-l$ac_lib"
4408 break
4409 else
4410   echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4412
4413 fi
4414 rm -f conftest.err conftest.$ac_objext \
4415       conftest$ac_exeext conftest.$ac_ext
4416   done
4417 fi
4418 LIBS=$ac_func_search_save_LIBS
4419 fi
4420 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
4421 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
4422 if test "$ac_cv_search_zlibVersion" != no; then
4423   test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
4424
4425 for ac_header in zlib.h
4426 do
4427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4429   echo "$as_me:$LINENO: checking for $ac_header" >&5
4430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4432   echo $ECHO_N "(cached) $ECHO_C" >&6
4433 fi
4434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4436 else
4437   # Is the header compilable?
4438 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4440 cat >conftest.$ac_ext <<_ACEOF
4441 /* confdefs.h.  */
4442 _ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h.  */
4446 $ac_includes_default
4447 #include <$ac_header>
4448 _ACEOF
4449 rm -f conftest.$ac_objext
4450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4451   (eval $ac_compile) 2>conftest.er1
4452   ac_status=$?
4453   grep -v '^ *+' conftest.er1 >conftest.err
4454   rm -f conftest.er1
4455   cat conftest.err >&5
4456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457   (exit $ac_status); } &&
4458          { ac_try='test -z "$ac_c_werror_flag"
4459                          || test ! -s conftest.err'
4460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461   (eval $ac_try) 2>&5
4462   ac_status=$?
4463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464   (exit $ac_status); }; } &&
4465          { ac_try='test -s conftest.$ac_objext'
4466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467   (eval $ac_try) 2>&5
4468   ac_status=$?
4469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470   (exit $ac_status); }; }; then
4471   ac_header_compiler=yes
4472 else
4473   echo "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.$ac_ext >&5
4475
4476 ac_header_compiler=no
4477 fi
4478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4479 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4480 echo "${ECHO_T}$ac_header_compiler" >&6
4481
4482 # Is the header present?
4483 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4485 cat >conftest.$ac_ext <<_ACEOF
4486 /* confdefs.h.  */
4487 _ACEOF
4488 cat confdefs.h >>conftest.$ac_ext
4489 cat >>conftest.$ac_ext <<_ACEOF
4490 /* end confdefs.h.  */
4491 #include <$ac_header>
4492 _ACEOF
4493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4494   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4495   ac_status=$?
4496   grep -v '^ *+' conftest.er1 >conftest.err
4497   rm -f conftest.er1
4498   cat conftest.err >&5
4499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500   (exit $ac_status); } >/dev/null; then
4501   if test -s conftest.err; then
4502     ac_cpp_err=$ac_c_preproc_warn_flag
4503     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4504   else
4505     ac_cpp_err=
4506   fi
4507 else
4508   ac_cpp_err=yes
4509 fi
4510 if test -z "$ac_cpp_err"; then
4511   ac_header_preproc=yes
4512 else
4513   echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4515
4516   ac_header_preproc=no
4517 fi
4518 rm -f conftest.err conftest.$ac_ext
4519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4520 echo "${ECHO_T}$ac_header_preproc" >&6
4521
4522 # So?  What about this header?
4523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4524   yes:no: )
4525     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4529     ac_header_preproc=yes
4530     ;;
4531   no:yes:* )
4532     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4534     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4535 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4536     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4538     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4539 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4542     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4544     (
4545       cat <<\_ASBOX
4546 ## ------------------------------------------ ##
4547 ## Report this to the AC_PACKAGE_NAME lists.  ##
4548 ## ------------------------------------------ ##
4549 _ASBOX
4550     ) |
4551       sed "s/^/$as_me: WARNING:     /" >&2
4552     ;;
4553 esac
4554 echo "$as_me:$LINENO: checking for $ac_header" >&5
4555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4557   echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559   eval "$as_ac_Header=\$ac_header_preproc"
4560 fi
4561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4563
4564 fi
4565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4566   cat >>confdefs.h <<_ACEOF
4567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4568 _ACEOF
4569
4570 fi
4571
4572 done
4573
4574 fi
4575
4576
4577 . ${srcdir}/../../bfd/configure.host
4578
4579
4580
4581 USE_MAINTAINER_MODE=no
4582 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4583 if test "${enable_maintainer_mode+set}" = set; then
4584   enableval="$enable_maintainer_mode"
4585   case "${enableval}" in
4586   yes)  MAINT="" USE_MAINTAINER_MODE=yes ;;
4587   no)   MAINT="#" ;;
4588   *)    { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
4589 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
4590    { (exit 1); exit 1; }; }; MAINT="#" ;;
4591 esac
4592 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
4593   echo "Setting maintainer mode" 6>&1
4594 fi
4595 else
4596   MAINT="#"
4597 fi;
4598
4599
4600 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
4601 if test "${enable_sim_bswap+set}" = set; then
4602   enableval="$enable_sim_bswap"
4603   case "${enableval}" in
4604   yes)  sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4605   no)   sim_bswap="-DWITH_BSWAP=0";;
4606   *)    { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
4607 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
4608    { (exit 1); exit 1; }; }; sim_bswap="";;
4609 esac
4610 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
4611   echo "Setting bswap flags = $sim_bswap" 6>&1
4612 fi
4613 else
4614   sim_bswap=""
4615 fi;
4616
4617
4618 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
4619 if test "${enable_sim_cflags+set}" = set; then
4620   enableval="$enable_sim_cflags"
4621   case "${enableval}" in
4622   yes)   sim_cflags="-O2 -fomit-frame-pointer";;
4623   trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
4624 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
4625    { (exit 1); exit 1; }; }; sim_cflags="";;
4626   no)    sim_cflags="";;
4627   *)     sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4628 esac
4629 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
4630   echo "Setting sim cflags = $sim_cflags" 6>&1
4631 fi
4632 else
4633   sim_cflags=""
4634 fi;
4635
4636
4637 # Check whether --enable-sim-debug or --disable-sim-debug was given.
4638 if test "${enable_sim_debug+set}" = set; then
4639   enableval="$enable_sim_debug"
4640   case "${enableval}" in
4641   yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
4642   no)  sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
4643   *)   sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4644 esac
4645 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
4646   echo "Setting sim debug = $sim_debug" 6>&1
4647 fi
4648 else
4649   sim_debug=""
4650 fi;
4651
4652
4653 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
4654 if test "${enable_sim_stdio+set}" = set; then
4655   enableval="$enable_sim_stdio"
4656   case "${enableval}" in
4657   yes)  sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
4658   no)   sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
4659   *)    { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
4660 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
4661    { (exit 1); exit 1; }; }; sim_stdio="";;
4662 esac
4663 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
4664   echo "Setting stdio flags = $sim_stdio" 6>&1
4665 fi
4666 else
4667   sim_stdio=""
4668 fi;
4669
4670
4671 # Check whether --enable-sim-trace or --disable-sim-trace was given.
4672 if test "${enable_sim_trace+set}" = set; then
4673   enableval="$enable_sim_trace"
4674   case "${enableval}" in
4675   yes)  sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
4676   no)   sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
4677   [-0-9]*)
4678         sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4679   [a-z]*)
4680         sim_trace=""
4681         for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4682           if test x"$sim_trace" = x; then
4683             sim_trace="-DWITH_TRACE='(TRACE_$x"
4684           else
4685             sim_trace="${sim_trace}|TRACE_$x"
4686           fi
4687         done
4688         sim_trace="$sim_trace)'" ;;
4689 esac
4690 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
4691   echo "Setting sim trace = $sim_trace" 6>&1
4692 fi
4693 else
4694   sim_trace=""
4695 fi;
4696
4697
4698 # Check whether --enable-sim-profile or --disable-sim-profile was given.
4699 if test "${enable_sim_profile+set}" = set; then
4700   enableval="$enable_sim_profile"
4701   case "${enableval}" in
4702   yes)  sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
4703   no)   sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
4704   [-0-9]*)
4705         sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4706   [a-z]*)
4707         sim_profile=""
4708         for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4709           if test x"$sim_profile" = x; then
4710             sim_profile="-DWITH_PROFILE='(PROFILE_$x"
4711           else
4712             sim_profile="${sim_profile}|PROFILE_$x"
4713           fi
4714         done
4715         sim_profile="$sim_profile)'" ;;
4716 esac
4717 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
4718   echo "Setting sim profile = $sim_profile" 6>&1
4719 fi
4720 else
4721   sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
4722 fi;
4723
4724
4725
4726 # Check whether --with-pkgversion or --without-pkgversion was given.
4727 if test "${with_pkgversion+set}" = set; then
4728   withval="$with_pkgversion"
4729   case "$withval" in
4730       yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
4731 echo "$as_me: error: package version not specified" >&2;}
4732    { (exit 1); exit 1; }; } ;;
4733       no)  PKGVERSION= ;;
4734       *)   PKGVERSION="($withval) " ;;
4735      esac
4736 else
4737   PKGVERSION="(GDB) "
4738
4739 fi;
4740
4741
4742
4743
4744 # Check whether --with-bugurl or --without-bugurl was given.
4745 if test "${with_bugurl+set}" = set; then
4746   withval="$with_bugurl"
4747   case "$withval" in
4748       yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
4749 echo "$as_me: error: bug URL not specified" >&2;}
4750    { (exit 1); exit 1; }; } ;;
4751       no)  BUGURL=
4752            ;;
4753       *)   BUGURL="$withval"
4754            ;;
4755      esac
4756 else
4757   BUGURL="http://www.gnu.org/software/gdb/bugs/"
4758
4759 fi;
4760   case ${BUGURL} in
4761   "")
4762     REPORT_BUGS_TO=
4763     REPORT_BUGS_TEXI=
4764     ;;
4765   *)
4766     REPORT_BUGS_TO="<$BUGURL>"
4767     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4768     ;;
4769   esac;
4770
4771
4772
4773
4774 cat >>confdefs.h <<_ACEOF
4775 #define PKGVERSION "$PKGVERSION"
4776 _ACEOF
4777
4778
4779 cat >>confdefs.h <<_ACEOF
4780 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4781 _ACEOF
4782
4783
4784 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4785 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4786 if test "${ac_cv_type_signal+set}" = set; then
4787   echo $ECHO_N "(cached) $ECHO_C" >&6
4788 else
4789   cat >conftest.$ac_ext <<_ACEOF
4790 /* confdefs.h.  */
4791 _ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h.  */
4795 #include <sys/types.h>
4796 #include <signal.h>
4797 #ifdef signal
4798 # undef signal
4799 #endif
4800 #ifdef __cplusplus
4801 extern "C" void (*signal (int, void (*)(int)))(int);
4802 #else
4803 void (*signal ()) ();
4804 #endif
4805
4806 int
4807 main ()
4808 {
4809 int i;
4810   ;
4811   return 0;
4812 }
4813 _ACEOF
4814 rm -f conftest.$ac_objext
4815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4816   (eval $ac_compile) 2>conftest.er1
4817   ac_status=$?
4818   grep -v '^ *+' conftest.er1 >conftest.err
4819   rm -f conftest.er1
4820   cat conftest.err >&5
4821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822   (exit $ac_status); } &&
4823          { ac_try='test -z "$ac_c_werror_flag"
4824                          || test ! -s conftest.err'
4825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826   (eval $ac_try) 2>&5
4827   ac_status=$?
4828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829   (exit $ac_status); }; } &&
4830          { ac_try='test -s conftest.$ac_objext'
4831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832   (eval $ac_try) 2>&5
4833   ac_status=$?
4834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835   (exit $ac_status); }; }; then
4836   ac_cv_type_signal=void
4837 else
4838   echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.$ac_ext >&5
4840
4841 ac_cv_type_signal=int
4842 fi
4843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4844 fi
4845 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4846 echo "${ECHO_T}$ac_cv_type_signal" >&6
4847
4848 cat >>confdefs.h <<_ACEOF
4849 #define RETSIGTYPE $ac_cv_type_signal
4850 _ACEOF
4851
4852
4853
4854
4855
4856 sim_link_files=
4857 sim_link_links=
4858
4859 sim_link_links=tconfig.h
4860 if test -f ${srcdir}/tconfig.in
4861 then
4862   sim_link_files=tconfig.in
4863 else
4864   sim_link_files=../common/tconfig.in
4865 fi
4866
4867 # targ-vals.def points to the libc macro description file.
4868 case "${target}" in
4869 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
4870 esac
4871 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
4872 sim_link_links="${sim_link_links} targ-vals.def"
4873
4874
4875
4876 wire_endian="BIG_ENDIAN"
4877 default_endian=""
4878 # Check whether --enable-sim-endian or --disable-sim-endian was given.
4879 if test "${enable_sim_endian+set}" = set; then
4880   enableval="$enable_sim_endian"
4881   case "${enableval}" in
4882   b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
4883   l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
4884   yes)   if test x"$wire_endian" != x; then
4885            sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
4886          else
4887            if test x"$default_endian" != x; then
4888              sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
4889            else
4890              echo "No hard-wired endian for target $target" 1>&6
4891              sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
4892            fi
4893          fi;;
4894   no)    if test x"$default_endian" != x; then
4895            sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
4896          else
4897            if test x"$wire_endian" != x; then
4898              sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
4899            else
4900              echo "No default endian for target $target" 1>&6
4901              sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
4902            fi
4903          fi;;
4904   *)     { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
4905 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
4906    { (exit 1); exit 1; }; }; sim_endian="";;
4907 esac
4908 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
4909   echo "Setting endian flags = $sim_endian" 6>&1
4910 fi
4911 else
4912   if test x"$default_endian" != x; then
4913   sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
4914 else
4915   if test x"$wire_endian" != x; then
4916     sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
4917   else
4918     sim_endian=
4919   fi
4920 fi
4921 fi;
4922 wire_alignment="STRICT_ALIGNMENT"
4923 default_alignment=""
4924
4925 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
4926 if test "${enable_sim_alignment+set}" = set; then
4927   enableval="$enable_sim_alignment"
4928   case "${enableval}" in
4929   strict | STRICT)       sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
4930   nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
4931   forced | FORCED)       sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
4932   yes) if test x"$wire_alignment" != x; then
4933          sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
4934        else
4935          if test x"$default_alignment" != x; then
4936            sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
4937          else
4938            echo "No hard-wired alignment for target $target" 1>&6
4939            sim_alignment="-DWITH_ALIGNMENT=0"
4940          fi
4941        fi;;
4942   no)  if test x"$default_alignment" != x; then
4943          sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4944        else
4945          if test x"$wire_alignment" != x; then
4946            sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
4947          else
4948            echo "No default alignment for target $target" 1>&6
4949            sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
4950          fi
4951        fi;;
4952   *)   { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
4953 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
4954    { (exit 1); exit 1; }; }; sim_alignment="";;
4955 esac
4956 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
4957   echo "Setting alignment flags = $sim_alignment" 6>&1
4958 fi
4959 else
4960   if test x"$default_alignment" != x; then
4961   sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4962 else
4963   if test x"$wire_alignment" != x; then
4964     sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
4965   else
4966     sim_alignment=
4967   fi
4968 fi
4969 fi;
4970
4971 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
4972 if test "${enable_sim_hostendian+set}" = set; then
4973   enableval="$enable_sim_hostendian"
4974   case "${enableval}" in
4975   no)    sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
4976   b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4977   l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
4978   *)     { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
4979 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
4980    { (exit 1); exit 1; }; }; sim_hostendian="";;
4981 esac
4982 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
4983   echo "Setting hostendian flags = $sim_hostendian" 6>&1
4984 fi
4985 else
4986
4987 if test "x$cross_compiling" = "xno"; then
4988   echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4989 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4990 if test "${ac_cv_c_bigendian+set}" = set; then
4991   echo $ECHO_N "(cached) $ECHO_C" >&6
4992 else
4993   # See if sys/param.h defines the BYTE_ORDER macro.
4994 cat >conftest.$ac_ext <<_ACEOF
4995 /* confdefs.h.  */
4996 _ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h.  */
5000 #include <sys/types.h>
5001 #include <sys/param.h>
5002
5003 int
5004 main ()
5005 {
5006 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5007  bogus endian macros
5008 #endif
5009
5010   ;
5011   return 0;
5012 }
5013 _ACEOF
5014 rm -f conftest.$ac_objext
5015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5016   (eval $ac_compile) 2>conftest.er1
5017   ac_status=$?
5018   grep -v '^ *+' conftest.er1 >conftest.err
5019   rm -f conftest.er1
5020   cat conftest.err >&5
5021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022   (exit $ac_status); } &&
5023          { ac_try='test -z "$ac_c_werror_flag"
5024                          || test ! -s conftest.err'
5025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026   (eval $ac_try) 2>&5
5027   ac_status=$?
5028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029   (exit $ac_status); }; } &&
5030          { ac_try='test -s conftest.$ac_objext'
5031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032   (eval $ac_try) 2>&5
5033   ac_status=$?
5034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035   (exit $ac_status); }; }; then
5036   # It does; now see whether it defined to BIG_ENDIAN or not.
5037 cat >conftest.$ac_ext <<_ACEOF
5038 /* confdefs.h.  */
5039 _ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h.  */
5043 #include <sys/types.h>
5044 #include <sys/param.h>
5045
5046 int
5047 main ()
5048 {
5049 #if BYTE_ORDER != BIG_ENDIAN
5050  not big endian
5051 #endif
5052
5053   ;
5054   return 0;
5055 }
5056 _ACEOF
5057 rm -f conftest.$ac_objext
5058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5059   (eval $ac_compile) 2>conftest.er1
5060   ac_status=$?
5061   grep -v '^ *+' conftest.er1 >conftest.err
5062   rm -f conftest.er1
5063   cat conftest.err >&5
5064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065   (exit $ac_status); } &&
5066          { ac_try='test -z "$ac_c_werror_flag"
5067                          || test ! -s conftest.err'
5068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069   (eval $ac_try) 2>&5
5070   ac_status=$?
5071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072   (exit $ac_status); }; } &&
5073          { ac_try='test -s conftest.$ac_objext'
5074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075   (eval $ac_try) 2>&5
5076   ac_status=$?
5077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078   (exit $ac_status); }; }; then
5079   ac_cv_c_bigendian=yes
5080 else
5081   echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.$ac_ext >&5
5083
5084 ac_cv_c_bigendian=no
5085 fi
5086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5087 else
5088   echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5090
5091 # It does not; compile a test program.
5092 if test "$cross_compiling" = yes; then
5093   # try to guess the endianness by grepping values into an object file
5094   ac_cv_c_bigendian=unknown
5095   cat >conftest.$ac_ext <<_ACEOF
5096 /* confdefs.h.  */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h.  */
5101 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5102 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5103 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5104 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5105 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5106 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5107 int
5108 main ()
5109 {
5110  _ascii (); _ebcdic ();
5111   ;
5112   return 0;
5113 }
5114 _ACEOF
5115 rm -f conftest.$ac_objext
5116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5117   (eval $ac_compile) 2>conftest.er1
5118   ac_status=$?
5119   grep -v '^ *+' conftest.er1 >conftest.err
5120   rm -f conftest.er1
5121   cat conftest.err >&5
5122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123   (exit $ac_status); } &&
5124          { ac_try='test -z "$ac_c_werror_flag"
5125                          || test ! -s conftest.err'
5126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127   (eval $ac_try) 2>&5
5128   ac_status=$?
5129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130   (exit $ac_status); }; } &&
5131          { ac_try='test -s conftest.$ac_objext'
5132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133   (eval $ac_try) 2>&5
5134   ac_status=$?
5135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136   (exit $ac_status); }; }; then
5137   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5138   ac_cv_c_bigendian=yes
5139 fi
5140 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5141   if test "$ac_cv_c_bigendian" = unknown; then
5142     ac_cv_c_bigendian=no
5143   else
5144     # finding both strings is unlikely to happen, but who knows?
5145     ac_cv_c_bigendian=unknown
5146   fi
5147 fi
5148 else
5149   echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5151
5152 fi
5153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5154 else
5155   cat >conftest.$ac_ext <<_ACEOF
5156 /* confdefs.h.  */
5157 _ACEOF
5158 cat confdefs.h >>conftest.$ac_ext
5159 cat >>conftest.$ac_ext <<_ACEOF
5160 /* end confdefs.h.  */
5161 int
5162 main ()
5163 {
5164   /* Are we little or big endian?  From Harbison&Steele.  */
5165   union
5166   {
5167     long l;
5168     char c[sizeof (long)];
5169   } u;
5170   u.l = 1;
5171   exit (u.c[sizeof (long) - 1] == 1);
5172 }
5173 _ACEOF
5174 rm -f conftest$ac_exeext
5175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5176   (eval $ac_link) 2>&5
5177   ac_status=$?
5178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181   (eval $ac_try) 2>&5
5182   ac_status=$?
5183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184   (exit $ac_status); }; }; then
5185   ac_cv_c_bigendian=no
5186 else
5187   echo "$as_me: program exited with status $ac_status" >&5
5188 echo "$as_me: failed program was:" >&5
5189 sed 's/^/| /' conftest.$ac_ext >&5
5190
5191 ( exit $ac_status )
5192 ac_cv_c_bigendian=yes
5193 fi
5194 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5195 fi
5196 fi
5197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5198 fi
5199 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5200 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5201 case $ac_cv_c_bigendian in
5202   yes)
5203
5204 cat >>confdefs.h <<\_ACEOF
5205 #define WORDS_BIGENDIAN 1
5206 _ACEOF
5207  ;;
5208   no)
5209      ;;
5210   *)
5211     { { echo "$as_me:$LINENO: error: unknown endianness
5212 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5213 echo "$as_me: error: unknown endianness
5214 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5215    { (exit 1); exit 1; }; } ;;
5216 esac
5217
5218   if test $ac_cv_c_bigendian = yes; then
5219     sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
5220   else
5221     sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
5222   fi
5223 else
5224   sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
5225 fi
5226 fi;
5227
5228 default_sim_scache="16384"
5229 # Check whether --enable-sim-scache or --disable-sim-scache was given.
5230 if test "${enable_sim_scache+set}" = set; then
5231   enableval="$enable_sim_scache"
5232   case "${enableval}" in
5233   yes)  sim_scache="-DWITH_SCACHE=${default_sim_scache}";;
5234   no)   sim_scache="-DWITH_SCACHE=0" ;;
5235   [0-9]*) sim_scache="-DWITH_SCACHE=${enableval}";;
5236   *)    { { echo "$as_me:$LINENO: error: \"Bad value $enableval passed to --enable-sim-scache\"" >&5
5237 echo "$as_me: error: \"Bad value $enableval passed to --enable-sim-scache\"" >&2;}
5238    { (exit 1); exit 1; }; };
5239         sim_scache="";;
5240 esac
5241 if test x"$silent" != x"yes" && test x"$sim_scache" != x""; then
5242   echo "Setting scache size = $sim_scache" 6>&1
5243 fi
5244 else
5245   sim_scache="-DWITH_SCACHE=${default_sim_scache}"
5246 fi;
5247
5248
5249 default_sim_default_model="fr500"
5250 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
5251 if test "${enable_sim_default_model+set}" = set; then
5252   enableval="$enable_sim_default_model"
5253   case "${enableval}" in
5254   yes|no) { { echo "$as_me:$LINENO: error: \"Missing argument to --enable-sim-default-model\"" >&5
5255 echo "$as_me: error: \"Missing argument to --enable-sim-default-model\"" >&2;}
5256    { (exit 1); exit 1; }; };;
5257   *)    sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
5258 esac
5259 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
5260   echo "Setting default model = $sim_default_model" 6>&1
5261 fi
5262 else
5263   sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
5264 fi;
5265
5266
5267 # Check whether --enable-sim-environment or --disable-sim-environment was given.
5268 if test "${enable_sim_environment+set}" = set; then
5269   enableval="$enable_sim_environment"
5270   case "${enableval}" in
5271   all | ALL)             sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
5272   user | USER)           sim_environment="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
5273   virtual | VIRTUAL)     sim_environment="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
5274   operating | OPERATING) sim_environment="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
5275   *)   { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-environment\"" >&5
5276 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-environment\"" >&2;}
5277    { (exit 1); exit 1; }; };
5278        sim_environment="";;
5279 esac
5280 if test x"$silent" != x"yes" && test x"$sim_environment" != x""; then
5281   echo "Setting sim environment = $sim_environment" 6>&1
5282 fi
5283 else
5284   sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
5285 fi;
5286
5287 cgen_maint=no
5288 cgen=guile
5289 cgendir='$(srcdir)/../../cgen'
5290 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
5291 if test "${enable_cgen_maint+set}" = set; then
5292   enableval="$enable_cgen_maint"
5293   case "${enableval}" in
5294   yes)  cgen_maint=yes ;;
5295   no)   cgen_maint=no ;;
5296   *)
5297         # argument is cgen install directory (not implemented yet).
5298         # Having a `share' directory might be more appropriate for the .scm,
5299         # .cpu, etc. files.
5300         cgendir=${cgen_maint}/lib/cgen
5301         cgen=guile
5302         ;;
5303 esac
5304 fi; if test x${cgen_maint} != xno ; then
5305   CGEN_MAINT=''
5306 else
5307   CGEN_MAINT='#'
5308 fi
5309
5310
5311
5312
5313
5314 #
5315 # Enable making unknown traps dump out registers
5316 #
5317 # Check whether --enable-sim-trapdump or --disable-sim-trapdump was given.
5318 if test "${enable_sim_trapdump+set}" = set; then
5319   enableval="$enable_sim_trapdump"
5320   case "${enableval}" in
5321   yes) sim_trapdump="-DTRAPDUMP=1";;
5322   no)  sim_trapdump="-DTRAPDUMP=0";;
5323   *)   { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-trapdump\"" >&5
5324 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-trapdump\"" >&2;}
5325    { (exit 1); exit 1; }; }; sim_trapdump="";;
5326 esac
5327 if test x"$silent" != x"yes" && test x"$sim_trapdump" != x""; then
5328   echo "Setting sim_trapdump = $sim_trapdump" 6>&1
5329 fi
5330 else
5331   sim_trapdump=""
5332 fi;
5333
5334
5335 ac_sources="$sim_link_files"
5336 ac_dests="$sim_link_links"
5337 while test -n "$ac_sources"; do
5338   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5339   set $ac_sources; ac_source=$1; shift; ac_sources=$*
5340   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
5341 done
5342           ac_config_links="$ac_config_links $ac_config_links_1"
5343
5344 cgen_breaks=""
5345 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
5346 cgen_breaks="break cgen_rtx_error";
5347 fi
5348
5349           ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
5350
5351           ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
5352
5353           ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
5354
5355           ac_config_commands="$ac_config_commands Makefile"
5356
5357           ac_config_commands="$ac_config_commands stamp-h"
5358
5359 cat >confcache <<\_ACEOF
5360 # This file is a shell script that caches the results of configure
5361 # tests run on this system so they can be shared between configure
5362 # scripts and configure runs, see configure's option --config-cache.
5363 # It is not useful on other systems.  If it contains results you don't
5364 # want to keep, you may remove or edit it.
5365 #
5366 # config.status only pays attention to the cache file if you give it
5367 # the --recheck option to rerun configure.
5368 #
5369 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5370 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5371 # following values.
5372
5373 _ACEOF
5374
5375 # The following way of writing the cache mishandles newlines in values,
5376 # but we know of no workaround that is simple, portable, and efficient.
5377 # So, don't put newlines in cache variables' values.
5378 # Ultrix sh set writes to stderr and can't be redirected directly,
5379 # and sets the high bit in the cache file unless we assign to the vars.
5380 {
5381   (set) 2>&1 |
5382     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5383     *ac_space=\ *)
5384       # `set' does not quote correctly, so add quotes (double-quote
5385       # substitution turns \\\\ into \\, and sed turns \\ into \).
5386       sed -n \
5387         "s/'/'\\\\''/g;
5388           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5389       ;;
5390     *)
5391       # `set' quotes correctly as required by POSIX, so do not add quotes.
5392       sed -n \
5393         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5394       ;;
5395     esac;
5396 } |
5397   sed '
5398      t clear
5399      : clear
5400      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5401      t end
5402      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5403      : end' >>confcache
5404 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5405   if test -w $cache_file; then
5406     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5407     cat confcache >$cache_file
5408   else
5409     echo "not updating unwritable cache $cache_file"
5410   fi
5411 fi
5412 rm -f confcache
5413
5414 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5415 # Let make expand exec_prefix.
5416 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5417
5418 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5419 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5420 # trailing colons and then remove the whole line if VPATH becomes empty
5421 # (actually we leave an empty line to preserve line numbers).
5422 if test "x$srcdir" = x.; then
5423   ac_vpsub='/^[  ]*VPATH[        ]*=/{
5424 s/:*\$(srcdir):*/:/;
5425 s/:*\${srcdir}:*/:/;
5426 s/:*@srcdir@:*/:/;
5427 s/^\([^=]*=[     ]*\):*/\1/;
5428 s/:*$//;
5429 s/^[^=]*=[       ]*$//;
5430 }'
5431 fi
5432
5433 DEFS=-DHAVE_CONFIG_H
5434
5435 ac_libobjs=
5436 ac_ltlibobjs=
5437 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5438   # 1. Remove the extension, and $U if already installed.
5439   ac_i=`echo "$ac_i" |
5440          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5441   # 2. Add them.
5442   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5443   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5444 done
5445 LIBOBJS=$ac_libobjs
5446
5447 LTLIBOBJS=$ac_ltlibobjs
5448
5449
5450
5451 : ${CONFIG_STATUS=./config.status}
5452 ac_clean_files_save=$ac_clean_files
5453 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5454 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5455 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5456 cat >$CONFIG_STATUS <<_ACEOF
5457 #! $SHELL
5458 # Generated by $as_me.
5459 # Run this file to recreate the current configuration.
5460 # Compiler output produced by configure, useful for debugging
5461 # configure, is in config.log if it exists.
5462
5463 debug=false
5464 ac_cs_recheck=false
5465 ac_cs_silent=false
5466 SHELL=\${CONFIG_SHELL-$SHELL}
5467 _ACEOF
5468
5469 cat >>$CONFIG_STATUS <<\_ACEOF
5470 ## --------------------- ##
5471 ## M4sh Initialization.  ##
5472 ## --------------------- ##
5473
5474 # Be Bourne compatible
5475 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5476   emulate sh
5477   NULLCMD=:
5478   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5479   # is contrary to our usage.  Disable this feature.
5480   alias -g '${1+"$@"}'='"$@"'
5481 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5482   set -o posix
5483 fi
5484 DUALCASE=1; export DUALCASE # for MKS sh
5485
5486 # Support unset when possible.
5487 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5488   as_unset=unset
5489 else
5490   as_unset=false
5491 fi
5492
5493
5494 # Work around bugs in pre-3.0 UWIN ksh.
5495 $as_unset ENV MAIL MAILPATH
5496 PS1='$ '
5497 PS2='> '
5498 PS4='+ '
5499
5500 # NLS nuisances.
5501 for as_var in \
5502   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5503   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5504   LC_TELEPHONE LC_TIME
5505 do
5506   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5507     eval $as_var=C; export $as_var
5508   else
5509     $as_unset $as_var
5510   fi
5511 done
5512
5513 # Required to use basename.
5514 if expr a : '\(a\)' >/dev/null 2>&1; then
5515   as_expr=expr
5516 else
5517   as_expr=false
5518 fi
5519
5520 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5521   as_basename=basename
5522 else
5523   as_basename=false
5524 fi
5525
5526
5527 # Name of the executable.
5528 as_me=`$as_basename "$0" ||
5529 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5530          X"$0" : 'X\(//\)$' \| \
5531          X"$0" : 'X\(/\)$' \| \
5532          .     : '\(.\)' 2>/dev/null ||
5533 echo X/"$0" |
5534     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5535           /^X\/\(\/\/\)$/{ s//\1/; q; }
5536           /^X\/\(\/\).*/{ s//\1/; q; }
5537           s/.*/./; q'`
5538
5539
5540 # PATH needs CR, and LINENO needs CR and PATH.
5541 # Avoid depending upon Character Ranges.
5542 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5543 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5544 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5545 as_cr_digits='0123456789'
5546 as_cr_alnum=$as_cr_Letters$as_cr_digits
5547
5548 # The user is always right.
5549 if test "${PATH_SEPARATOR+set}" != set; then
5550   echo "#! /bin/sh" >conf$$.sh
5551   echo  "exit 0"   >>conf$$.sh
5552   chmod +x conf$$.sh
5553   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5554     PATH_SEPARATOR=';'
5555   else
5556     PATH_SEPARATOR=:
5557   fi
5558   rm -f conf$$.sh
5559 fi
5560
5561
5562   as_lineno_1=$LINENO
5563   as_lineno_2=$LINENO
5564   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5565   test "x$as_lineno_1" != "x$as_lineno_2" &&
5566   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5567   # Find who we are.  Look in the path if we contain no path at all
5568   # relative or not.
5569   case $0 in
5570     *[\\/]* ) as_myself=$0 ;;
5571     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 for as_dir in $PATH
5573 do
5574   IFS=$as_save_IFS
5575   test -z "$as_dir" && as_dir=.
5576   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5577 done
5578
5579        ;;
5580   esac
5581   # We did not find ourselves, most probably we were run as `sh COMMAND'
5582   # in which case we are not to be found in the path.
5583   if test "x$as_myself" = x; then
5584     as_myself=$0
5585   fi
5586   if test ! -f "$as_myself"; then
5587     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5588 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5589    { (exit 1); exit 1; }; }
5590   fi
5591   case $CONFIG_SHELL in
5592   '')
5593     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5595 do
5596   IFS=$as_save_IFS
5597   test -z "$as_dir" && as_dir=.
5598   for as_base in sh bash ksh sh5; do
5599          case $as_dir in
5600          /*)
5601            if ("$as_dir/$as_base" -c '
5602   as_lineno_1=$LINENO
5603   as_lineno_2=$LINENO
5604   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5605   test "x$as_lineno_1" != "x$as_lineno_2" &&
5606   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5607              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5608              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5609              CONFIG_SHELL=$as_dir/$as_base
5610              export CONFIG_SHELL
5611              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5612            fi;;
5613          esac
5614        done
5615 done
5616 ;;
5617   esac
5618
5619   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5620   # uniformly replaced by the line number.  The first 'sed' inserts a
5621   # line-number line before each line; the second 'sed' does the real
5622   # work.  The second script uses 'N' to pair each line-number line
5623   # with the numbered line, and appends trailing '-' during
5624   # substitution so that $LINENO is not a special case at line end.
5625   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5626   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5627   sed '=' <$as_myself |
5628     sed '
5629       N
5630       s,$,-,
5631       : loop
5632       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5633       t loop
5634       s,-$,,
5635       s,^['$as_cr_digits']*\n,,
5636     ' >$as_me.lineno &&
5637   chmod +x $as_me.lineno ||
5638     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5639 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5640    { (exit 1); exit 1; }; }
5641
5642   # Don't try to exec as it changes $[0], causing all sort of problems
5643   # (the dirname of $[0] is not the place where we might find the
5644   # original and so on.  Autoconf is especially sensible to this).
5645   . ./$as_me.lineno
5646   # Exit status is that of the last command.
5647   exit
5648 }
5649
5650
5651 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5652   *c*,-n*) ECHO_N= ECHO_C='
5653 ' ECHO_T='      ' ;;
5654   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5655   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5656 esac
5657
5658 if expr a : '\(a\)' >/dev/null 2>&1; then
5659   as_expr=expr
5660 else
5661   as_expr=false
5662 fi
5663
5664 rm -f conf$$ conf$$.exe conf$$.file
5665 echo >conf$$.file
5666 if ln -s conf$$.file conf$$ 2>/dev/null; then
5667   # We could just check for DJGPP; but this test a) works b) is more generic
5668   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5669   if test -f conf$$.exe; then
5670     # Don't use ln at all; we don't have any links
5671     as_ln_s='cp -p'
5672   else
5673     as_ln_s='ln -s'
5674   fi
5675 elif ln conf$$.file conf$$ 2>/dev/null; then
5676   as_ln_s=ln
5677 else
5678   as_ln_s='cp -p'
5679 fi
5680 rm -f conf$$ conf$$.exe conf$$.file
5681
5682 if mkdir -p . 2>/dev/null; then
5683   as_mkdir_p=:
5684 else
5685   test -d ./-p && rmdir ./-p
5686   as_mkdir_p=false
5687 fi
5688
5689 as_executable_p="test -f"
5690
5691 # Sed expression to map a string onto a valid CPP name.
5692 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5693
5694 # Sed expression to map a string onto a valid variable name.
5695 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5696
5697
5698 # IFS
5699 # We need space, tab and new line, in precisely that order.
5700 as_nl='
5701 '
5702 IFS="   $as_nl"
5703
5704 # CDPATH.
5705 $as_unset CDPATH
5706
5707 exec 6>&1
5708
5709 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5710 # report actual input values of CONFIG_FILES etc. instead of their
5711 # values after options handling.  Logging --version etc. is OK.
5712 exec 5>>config.log
5713 {
5714   echo
5715   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5716 ## Running $as_me. ##
5717 _ASBOX
5718 } >&5
5719 cat >&5 <<_CSEOF
5720
5721 This file was extended by $as_me, which was
5722 generated by GNU Autoconf 2.59.  Invocation command line was
5723
5724   CONFIG_FILES    = $CONFIG_FILES
5725   CONFIG_HEADERS  = $CONFIG_HEADERS
5726   CONFIG_LINKS    = $CONFIG_LINKS
5727   CONFIG_COMMANDS = $CONFIG_COMMANDS
5728   $ $0 $@
5729
5730 _CSEOF
5731 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5732 echo >&5
5733 _ACEOF
5734
5735 # Files that config.status was made for.
5736 if test -n "$ac_config_files"; then
5737   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5738 fi
5739
5740 if test -n "$ac_config_headers"; then
5741   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5742 fi
5743
5744 if test -n "$ac_config_links"; then
5745   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5746 fi
5747
5748 if test -n "$ac_config_commands"; then
5749   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5750 fi
5751
5752 cat >>$CONFIG_STATUS <<\_ACEOF
5753
5754 ac_cs_usage="\
5755 \`$as_me' instantiates files from templates according to the
5756 current configuration.
5757
5758 Usage: $0 [OPTIONS] [FILE]...
5759
5760   -h, --help       print this help, then exit
5761   -V, --version    print version number, then exit
5762   -q, --quiet      do not print progress messages
5763   -d, --debug      don't remove temporary files
5764       --recheck    update $as_me by reconfiguring in the same conditions
5765   --file=FILE[:TEMPLATE]
5766                    instantiate the configuration file FILE
5767   --header=FILE[:TEMPLATE]
5768                    instantiate the configuration header FILE
5769
5770 Configuration files:
5771 $config_files
5772
5773 Configuration headers:
5774 $config_headers
5775
5776 Configuration links:
5777 $config_links
5778
5779 Configuration commands:
5780 $config_commands
5781
5782 Report bugs to <bug-autoconf@gnu.org>."
5783 _ACEOF
5784
5785 cat >>$CONFIG_STATUS <<_ACEOF
5786 ac_cs_version="\\
5787 config.status
5788 configured by $0, generated by GNU Autoconf 2.59,
5789   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5790
5791 Copyright (C) 2003 Free Software Foundation, Inc.
5792 This config.status script is free software; the Free Software Foundation
5793 gives unlimited permission to copy, distribute and modify it."
5794 srcdir=$srcdir
5795 INSTALL="$INSTALL"
5796 _ACEOF
5797
5798 cat >>$CONFIG_STATUS <<\_ACEOF
5799 # If no file are specified by the user, then we need to provide default
5800 # value.  By we need to know if files were specified by the user.
5801 ac_need_defaults=:
5802 while test $# != 0
5803 do
5804   case $1 in
5805   --*=*)
5806     ac_option=`expr "x$1" : 'x\([^=]*\)='`
5807     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5808     ac_shift=:
5809     ;;
5810   -*)
5811     ac_option=$1
5812     ac_optarg=$2
5813     ac_shift=shift
5814     ;;
5815   *) # This is not an option, so the user has probably given explicit
5816      # arguments.
5817      ac_option=$1
5818      ac_need_defaults=false;;
5819   esac
5820
5821   case $ac_option in
5822   # Handling of the options.
5823 _ACEOF
5824 cat >>$CONFIG_STATUS <<\_ACEOF
5825   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5826     ac_cs_recheck=: ;;
5827   --version | --vers* | -V )
5828     echo "$ac_cs_version"; exit 0 ;;
5829   --he | --h)
5830     # Conflict between --help and --header
5831     { { echo "$as_me:$LINENO: error: ambiguous option: $1
5832 Try \`$0 --help' for more information." >&5
5833 echo "$as_me: error: ambiguous option: $1
5834 Try \`$0 --help' for more information." >&2;}
5835    { (exit 1); exit 1; }; };;
5836   --help | --hel | -h )
5837     echo "$ac_cs_usage"; exit 0 ;;
5838   --debug | --d* | -d )
5839     debug=: ;;
5840   --file | --fil | --fi | --f )
5841     $ac_shift
5842     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5843     ac_need_defaults=false;;
5844   --header | --heade | --head | --hea )
5845     $ac_shift
5846     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5847     ac_need_defaults=false;;
5848   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5849   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5850     ac_cs_silent=: ;;
5851
5852   # This is an error.
5853   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5854 Try \`$0 --help' for more information." >&5
5855 echo "$as_me: error: unrecognized option: $1
5856 Try \`$0 --help' for more information." >&2;}
5857    { (exit 1); exit 1; }; } ;;
5858
5859   *) ac_config_targets="$ac_config_targets $1" ;;
5860
5861   esac
5862   shift
5863 done
5864
5865 ac_configure_extra_args=
5866
5867 if $ac_cs_silent; then
5868   exec 6>/dev/null
5869   ac_configure_extra_args="$ac_configure_extra_args --silent"
5870 fi
5871
5872 _ACEOF
5873 cat >>$CONFIG_STATUS <<_ACEOF
5874 if \$ac_cs_recheck; then
5875   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5876   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5877 fi
5878
5879 _ACEOF
5880
5881
5882
5883
5884
5885 cat >>$CONFIG_STATUS <<\_ACEOF
5886 for ac_config_target in $ac_config_targets
5887 do
5888   case "$ac_config_target" in
5889   # Handling of arguments.
5890   "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
5891   "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
5892   ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
5893   "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
5894   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
5895   "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
5896   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
5897   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5898 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5899    { (exit 1); exit 1; }; };;
5900   esac
5901 done
5902
5903 # If the user did not use the arguments to specify the items to instantiate,
5904 # then the envvar interface is used.  Set only those that are not.
5905 # We use the long form for the default assignment because of an extremely
5906 # bizarre bug on SunOS 4.1.3.
5907 if $ac_need_defaults; then
5908   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5909   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5910   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
5911   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5912 fi
5913
5914 # Have a temporary directory for convenience.  Make it in the build tree
5915 # simply because there is no reason to put it here, and in addition,
5916 # creating and moving files from /tmp can sometimes cause problems.
5917 # Create a temporary directory, and hook for its removal unless debugging.
5918 $debug ||
5919 {
5920   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5921   trap '{ (exit 1); exit 1; }' 1 2 13 15
5922 }
5923
5924 # Create a (secure) tmp directory for tmp files.
5925
5926 {
5927   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5928   test -n "$tmp" && test -d "$tmp"
5929 }  ||
5930 {
5931   tmp=./confstat$$-$RANDOM
5932   (umask 077 && mkdir $tmp)
5933 } ||
5934 {
5935    echo "$me: cannot create a temporary directory in ." >&2
5936    { (exit 1); exit 1; }
5937 }
5938
5939 _ACEOF
5940
5941 cat >>$CONFIG_STATUS <<_ACEOF
5942
5943 #
5944 # CONFIG_FILES section.
5945 #
5946
5947 # No need to generate the scripts if there are no CONFIG_FILES.
5948 # This happens for instance when ./config.status config.h
5949 if test -n "\$CONFIG_FILES"; then
5950   # Protect against being on the right side of a sed subst in config.status.
5951   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5952    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5953 s,@SHELL@,$SHELL,;t t
5954 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5955 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5956 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5957 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5958 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5959 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5960 s,@exec_prefix@,$exec_prefix,;t t
5961 s,@prefix@,$prefix,;t t
5962 s,@program_transform_name@,$program_transform_name,;t t
5963 s,@bindir@,$bindir,;t t
5964 s,@sbindir@,$sbindir,;t t
5965 s,@libexecdir@,$libexecdir,;t t
5966 s,@datadir@,$datadir,;t t
5967 s,@sysconfdir@,$sysconfdir,;t t
5968 s,@sharedstatedir@,$sharedstatedir,;t t
5969 s,@localstatedir@,$localstatedir,;t t
5970 s,@libdir@,$libdir,;t t
5971 s,@includedir@,$includedir,;t t
5972 s,@oldincludedir@,$oldincludedir,;t t
5973 s,@infodir@,$infodir,;t t
5974 s,@mandir@,$mandir,;t t
5975 s,@build_alias@,$build_alias,;t t
5976 s,@host_alias@,$host_alias,;t t
5977 s,@target_alias@,$target_alias,;t t
5978 s,@DEFS@,$DEFS,;t t
5979 s,@ECHO_C@,$ECHO_C,;t t
5980 s,@ECHO_N@,$ECHO_N,;t t
5981 s,@ECHO_T@,$ECHO_T,;t t
5982 s,@LIBS@,$LIBS,;t t
5983 s,@sim_environment@,$sim_environment,;t t
5984 s,@sim_alignment@,$sim_alignment,;t t
5985 s,@sim_assert@,$sim_assert,;t t
5986 s,@sim_bitsize@,$sim_bitsize,;t t
5987 s,@sim_endian@,$sim_endian,;t t
5988 s,@sim_hostendian@,$sim_hostendian,;t t
5989 s,@sim_float@,$sim_float,;t t
5990 s,@sim_scache@,$sim_scache,;t t
5991 s,@sim_default_model@,$sim_default_model,;t t
5992 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
5993 s,@sim_hw_objs@,$sim_hw_objs,;t t
5994 s,@sim_hw@,$sim_hw,;t t
5995 s,@sim_inline@,$sim_inline,;t t
5996 s,@sim_packages@,$sim_packages,;t t
5997 s,@sim_regparm@,$sim_regparm,;t t
5998 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
5999 s,@sim_smp@,$sim_smp,;t t
6000 s,@sim_stdcall@,$sim_stdcall,;t t
6001 s,@sim_xor_endian@,$sim_xor_endian,;t t
6002 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
6003 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
6004 s,@build@,$build,;t t
6005 s,@build_cpu@,$build_cpu,;t t
6006 s,@build_vendor@,$build_vendor,;t t
6007 s,@build_os@,$build_os,;t t
6008 s,@host@,$host,;t t
6009 s,@host_cpu@,$host_cpu,;t t
6010 s,@host_vendor@,$host_vendor,;t t
6011 s,@host_os@,$host_os,;t t
6012 s,@target@,$target,;t t
6013 s,@target_cpu@,$target_cpu,;t t
6014 s,@target_vendor@,$target_vendor,;t t
6015 s,@target_os@,$target_os,;t t
6016 s,@CC@,$CC,;t t
6017 s,@CFLAGS@,$CFLAGS,;t t
6018 s,@LDFLAGS@,$LDFLAGS,;t t
6019 s,@CPPFLAGS@,$CPPFLAGS,;t t
6020 s,@ac_ct_CC@,$ac_ct_CC,;t t
6021 s,@EXEEXT@,$EXEEXT,;t t
6022 s,@OBJEXT@,$OBJEXT,;t t
6023 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6024 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6025 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6026 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
6027 s,@HDEFINES@,$HDEFINES,;t t
6028 s,@AR@,$AR,;t t
6029 s,@RANLIB@,$RANLIB,;t t
6030 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6031 s,@USE_NLS@,$USE_NLS,;t t
6032 s,@LIBINTL@,$LIBINTL,;t t
6033 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
6034 s,@INCINTL@,$INCINTL,;t t
6035 s,@XGETTEXT@,$XGETTEXT,;t t
6036 s,@GMSGFMT@,$GMSGFMT,;t t
6037 s,@POSUB@,$POSUB,;t t
6038 s,@CATALOGS@,$CATALOGS,;t t
6039 s,@DATADIRNAME@,$DATADIRNAME,;t t
6040 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
6041 s,@GENCAT@,$GENCAT,;t t
6042 s,@CATOBJEXT@,$CATOBJEXT,;t t
6043 s,@CPP@,$CPP,;t t
6044 s,@EGREP@,$EGREP,;t t
6045 s,@MAINT@,$MAINT,;t t
6046 s,@sim_bswap@,$sim_bswap,;t t
6047 s,@sim_cflags@,$sim_cflags,;t t
6048 s,@sim_debug@,$sim_debug,;t t
6049 s,@sim_stdio@,$sim_stdio,;t t
6050 s,@sim_trace@,$sim_trace,;t t
6051 s,@sim_profile@,$sim_profile,;t t
6052 s,@PKGVERSION@,$PKGVERSION,;t t
6053 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
6054 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
6055 s,@CGEN_MAINT@,$CGEN_MAINT,;t t
6056 s,@cgendir@,$cgendir,;t t
6057 s,@cgen@,$cgen,;t t
6058 s,@sim_trapdump@,$sim_trapdump,;t t
6059 s,@cgen_breaks@,$cgen_breaks,;t t
6060 s,@LIBOBJS@,$LIBOBJS,;t t
6061 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6062 CEOF
6063
6064 _ACEOF
6065
6066   cat >>$CONFIG_STATUS <<\_ACEOF
6067   # Split the substitutions into bite-sized pieces for seds with
6068   # small command number limits, like on Digital OSF/1 and HP-UX.
6069   ac_max_sed_lines=48
6070   ac_sed_frag=1 # Number of current file.
6071   ac_beg=1 # First line for current file.
6072   ac_end=$ac_max_sed_lines # Line after last line for current file.
6073   ac_more_lines=:
6074   ac_sed_cmds=
6075   while $ac_more_lines; do
6076     if test $ac_beg -gt 1; then
6077       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6078     else
6079       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6080     fi
6081     if test ! -s $tmp/subs.frag; then
6082       ac_more_lines=false
6083     else
6084       # The purpose of the label and of the branching condition is to
6085       # speed up the sed processing (if there are no `@' at all, there
6086       # is no need to browse any of the substitutions).
6087       # These are the two extra sed commands mentioned above.
6088       (echo ':t
6089   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6090       if test -z "$ac_sed_cmds"; then
6091         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6092       else
6093         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6094       fi
6095       ac_sed_frag=`expr $ac_sed_frag + 1`
6096       ac_beg=$ac_end
6097       ac_end=`expr $ac_end + $ac_max_sed_lines`
6098     fi
6099   done
6100   if test -z "$ac_sed_cmds"; then
6101     ac_sed_cmds=cat
6102   fi
6103 fi # test -n "$CONFIG_FILES"
6104
6105 _ACEOF
6106 cat >>$CONFIG_STATUS <<\_ACEOF
6107 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6108   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6109   case $ac_file in
6110   - | *:- | *:-:* ) # input from stdin
6111         cat >$tmp/stdin
6112         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6113         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6114   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6115         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6116   * )   ac_file_in=$ac_file.in ;;
6117   esac
6118
6119   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6120   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6121 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6122          X"$ac_file" : 'X\(//\)[^/]' \| \
6123          X"$ac_file" : 'X\(//\)$' \| \
6124          X"$ac_file" : 'X\(/\)' \| \
6125          .     : '\(.\)' 2>/dev/null ||
6126 echo X"$ac_file" |
6127     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6128           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6129           /^X\(\/\/\)$/{ s//\1/; q; }
6130           /^X\(\/\).*/{ s//\1/; q; }
6131           s/.*/./; q'`
6132   { if $as_mkdir_p; then
6133     mkdir -p "$ac_dir"
6134   else
6135     as_dir="$ac_dir"
6136     as_dirs=
6137     while test ! -d "$as_dir"; do
6138       as_dirs="$as_dir $as_dirs"
6139       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6140 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6141          X"$as_dir" : 'X\(//\)[^/]' \| \
6142          X"$as_dir" : 'X\(//\)$' \| \
6143          X"$as_dir" : 'X\(/\)' \| \
6144          .     : '\(.\)' 2>/dev/null ||
6145 echo X"$as_dir" |
6146     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6147           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6148           /^X\(\/\/\)$/{ s//\1/; q; }
6149           /^X\(\/\).*/{ s//\1/; q; }
6150           s/.*/./; q'`
6151     done
6152     test ! -n "$as_dirs" || mkdir $as_dirs
6153   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6154 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6155    { (exit 1); exit 1; }; }; }
6156
6157   ac_builddir=.
6158
6159 if test "$ac_dir" != .; then
6160   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6161   # A "../" for each directory in $ac_dir_suffix.
6162   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6163 else
6164   ac_dir_suffix= ac_top_builddir=
6165 fi
6166
6167 case $srcdir in
6168   .)  # No --srcdir option.  We are building in place.
6169     ac_srcdir=.
6170     if test -z "$ac_top_builddir"; then
6171        ac_top_srcdir=.
6172     else
6173        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6174     fi ;;
6175   [\\/]* | ?:[\\/]* )  # Absolute path.
6176     ac_srcdir=$srcdir$ac_dir_suffix;
6177     ac_top_srcdir=$srcdir ;;
6178   *) # Relative path.
6179     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6180     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6181 esac
6182
6183 # Do not use `cd foo && pwd` to compute absolute paths, because
6184 # the directories may not exist.
6185 case `pwd` in
6186 .) ac_abs_builddir="$ac_dir";;
6187 *)
6188   case "$ac_dir" in
6189   .) ac_abs_builddir=`pwd`;;
6190   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6191   *) ac_abs_builddir=`pwd`/"$ac_dir";;
6192   esac;;
6193 esac
6194 case $ac_abs_builddir in
6195 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6196 *)
6197   case ${ac_top_builddir}. in
6198   .) ac_abs_top_builddir=$ac_abs_builddir;;
6199   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6200   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6201   esac;;
6202 esac
6203 case $ac_abs_builddir in
6204 .) ac_abs_srcdir=$ac_srcdir;;
6205 *)
6206   case $ac_srcdir in
6207   .) ac_abs_srcdir=$ac_abs_builddir;;
6208   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6209   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6210   esac;;
6211 esac
6212 case $ac_abs_builddir in
6213 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6214 *)
6215   case $ac_top_srcdir in
6216   .) ac_abs_top_srcdir=$ac_abs_builddir;;
6217   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6218   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6219   esac;;
6220 esac
6221
6222
6223   case $INSTALL in
6224   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6225   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6226   esac
6227
6228   if test x"$ac_file" != x-; then
6229     { echo "$as_me:$LINENO: creating $ac_file" >&5
6230 echo "$as_me: creating $ac_file" >&6;}
6231     rm -f "$ac_file"
6232   fi
6233   # Let's still pretend it is `configure' which instantiates (i.e., don't
6234   # use $as_me), people would be surprised to read:
6235   #    /* config.h.  Generated by config.status.  */
6236   if test x"$ac_file" = x-; then
6237     configure_input=
6238   else
6239     configure_input="$ac_file.  "
6240   fi
6241   configure_input=$configure_input"Generated from `echo $ac_file_in |
6242                                      sed 's,.*/,,'` by configure."
6243
6244   # First look for the input files in the build tree, otherwise in the
6245   # src tree.
6246   ac_file_inputs=`IFS=:
6247     for f in $ac_file_in; do
6248       case $f in
6249       -) echo $tmp/stdin ;;
6250       [\\/$]*)
6251          # Absolute (can't be DOS-style, as IFS=:)
6252          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6253 echo "$as_me: error: cannot find input file: $f" >&2;}
6254    { (exit 1); exit 1; }; }
6255          echo "$f";;
6256       *) # Relative
6257          if test -f "$f"; then
6258            # Build tree
6259            echo "$f"
6260          elif test -f "$srcdir/$f"; then
6261            # Source tree
6262            echo "$srcdir/$f"
6263          else
6264            # /dev/null tree
6265            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6266 echo "$as_me: error: cannot find input file: $f" >&2;}
6267    { (exit 1); exit 1; }; }
6268          fi;;
6269       esac
6270     done` || { (exit 1); exit 1; }
6271 _ACEOF
6272 cat >>$CONFIG_STATUS <<_ACEOF
6273   sed "$ac_vpsub
6274 $extrasub
6275 _ACEOF
6276 cat >>$CONFIG_STATUS <<\_ACEOF
6277 :t
6278 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6279 s,@configure_input@,$configure_input,;t t
6280 s,@srcdir@,$ac_srcdir,;t t
6281 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6282 s,@top_srcdir@,$ac_top_srcdir,;t t
6283 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6284 s,@builddir@,$ac_builddir,;t t
6285 s,@abs_builddir@,$ac_abs_builddir,;t t
6286 s,@top_builddir@,$ac_top_builddir,;t t
6287 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6288 s,@INSTALL@,$ac_INSTALL,;t t
6289 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6290   rm -f $tmp/stdin
6291   if test x"$ac_file" != x-; then
6292     mv $tmp/out $ac_file
6293   else
6294     cat $tmp/out
6295     rm -f $tmp/out
6296   fi
6297
6298 done
6299 _ACEOF
6300 cat >>$CONFIG_STATUS <<\_ACEOF
6301
6302 #
6303 # CONFIG_HEADER section.
6304 #
6305
6306 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6307 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6308 #
6309 # ac_d sets the value in "#define NAME VALUE" lines.
6310 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
6311 ac_dB='[         ].*$,\1#\2'
6312 ac_dC=' '
6313 ac_dD=',;t'
6314 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6315 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6316 ac_uB='$,\1#\2define\3'
6317 ac_uC=' '
6318 ac_uD=',;t'
6319
6320 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6321   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6322   case $ac_file in
6323   - | *:- | *:-:* ) # input from stdin
6324         cat >$tmp/stdin
6325         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6326         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6327   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6328         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6329   * )   ac_file_in=$ac_file.in ;;
6330   esac
6331
6332   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6333 echo "$as_me: creating $ac_file" >&6;}
6334
6335   # First look for the input files in the build tree, otherwise in the
6336   # src tree.
6337   ac_file_inputs=`IFS=:
6338     for f in $ac_file_in; do
6339       case $f in
6340       -) echo $tmp/stdin ;;
6341       [\\/$]*)
6342          # Absolute (can't be DOS-style, as IFS=:)
6343          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6344 echo "$as_me: error: cannot find input file: $f" >&2;}
6345    { (exit 1); exit 1; }; }
6346          # Do quote $f, to prevent DOS paths from being IFS'd.
6347          echo "$f";;
6348       *) # Relative
6349          if test -f "$f"; then
6350            # Build tree
6351            echo "$f"
6352          elif test -f "$srcdir/$f"; then
6353            # Source tree
6354            echo "$srcdir/$f"
6355          else
6356            # /dev/null tree
6357            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6358 echo "$as_me: error: cannot find input file: $f" >&2;}
6359    { (exit 1); exit 1; }; }
6360          fi;;
6361       esac
6362     done` || { (exit 1); exit 1; }
6363   # Remove the trailing spaces.
6364   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
6365
6366 _ACEOF
6367
6368 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6369 # `conftest.undefs', that substitutes the proper values into
6370 # config.h.in to produce config.h.  The first handles `#define'
6371 # templates, and the second `#undef' templates.
6372 # And first: Protect against being on the right side of a sed subst in
6373 # config.status.  Protect against being in an unquoted here document
6374 # in config.status.
6375 rm -f conftest.defines conftest.undefs
6376 # Using a here document instead of a string reduces the quoting nightmare.
6377 # Putting comments in sed scripts is not portable.
6378 #
6379 # `end' is used to avoid that the second main sed command (meant for
6380 # 0-ary CPP macros) applies to n-ary macro definitions.
6381 # See the Autoconf documentation for `clear'.
6382 cat >confdef2sed.sed <<\_ACEOF
6383 s/[\\&,]/\\&/g
6384 s,[\\$`],\\&,g
6385 t clear
6386 : clear
6387 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6388 t end
6389 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6390 : end
6391 _ACEOF
6392 # If some macros were called several times there might be several times
6393 # the same #defines, which is useless.  Nevertheless, we may not want to
6394 # sort them, since we want the *last* AC-DEFINE to be honored.
6395 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6396 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6397 rm -f confdef2sed.sed
6398
6399 # This sed command replaces #undef with comments.  This is necessary, for
6400 # example, in the case of _POSIX_SOURCE, which is predefined and required
6401 # on some systems where configure will not decide to define it.
6402 cat >>conftest.undefs <<\_ACEOF
6403 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6404 _ACEOF
6405
6406 # Break up conftest.defines because some shells have a limit on the size
6407 # of here documents, and old seds have small limits too (100 cmds).
6408 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6409 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6410 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6411 echo '  :' >>$CONFIG_STATUS
6412 rm -f conftest.tail
6413 while grep . conftest.defines >/dev/null
6414 do
6415   # Write a limited-size here document to $tmp/defines.sed.
6416   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6417   # Speed up: don't consider the non `#define' lines.
6418   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
6419   # Work around the forget-to-reset-the-flag bug.
6420   echo 't clr' >>$CONFIG_STATUS
6421   echo ': clr' >>$CONFIG_STATUS
6422   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6423   echo 'CEOF
6424   sed -f $tmp/defines.sed $tmp/in >$tmp/out
6425   rm -f $tmp/in
6426   mv $tmp/out $tmp/in
6427 ' >>$CONFIG_STATUS
6428   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6429   rm -f conftest.defines
6430   mv conftest.tail conftest.defines
6431 done
6432 rm -f conftest.defines
6433 echo '  fi # grep' >>$CONFIG_STATUS
6434 echo >>$CONFIG_STATUS
6435
6436 # Break up conftest.undefs because some shells have a limit on the size
6437 # of here documents, and old seds have small limits too (100 cmds).
6438 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
6439 rm -f conftest.tail
6440 while grep . conftest.undefs >/dev/null
6441 do
6442   # Write a limited-size here document to $tmp/undefs.sed.
6443   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6444   # Speed up: don't consider the non `#undef'
6445   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
6446   # Work around the forget-to-reset-the-flag bug.
6447   echo 't clr' >>$CONFIG_STATUS
6448   echo ': clr' >>$CONFIG_STATUS
6449   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6450   echo 'CEOF
6451   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6452   rm -f $tmp/in
6453   mv $tmp/out $tmp/in
6454 ' >>$CONFIG_STATUS
6455   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6456   rm -f conftest.undefs
6457   mv conftest.tail conftest.undefs
6458 done
6459 rm -f conftest.undefs
6460
6461 cat >>$CONFIG_STATUS <<\_ACEOF
6462   # Let's still pretend it is `configure' which instantiates (i.e., don't
6463   # use $as_me), people would be surprised to read:
6464   #    /* config.h.  Generated by config.status.  */
6465   if test x"$ac_file" = x-; then
6466     echo "/* Generated by configure.  */" >$tmp/config.h
6467   else
6468     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
6469   fi
6470   cat $tmp/in >>$tmp/config.h
6471   rm -f $tmp/in
6472   if test x"$ac_file" != x-; then
6473     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6474       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6475 echo "$as_me: $ac_file is unchanged" >&6;}
6476     else
6477       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6478 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6479          X"$ac_file" : 'X\(//\)[^/]' \| \
6480          X"$ac_file" : 'X\(//\)$' \| \
6481          X"$ac_file" : 'X\(/\)' \| \
6482          .     : '\(.\)' 2>/dev/null ||
6483 echo X"$ac_file" |
6484     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6485           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6486           /^X\(\/\/\)$/{ s//\1/; q; }
6487           /^X\(\/\).*/{ s//\1/; q; }
6488           s/.*/./; q'`
6489       { if $as_mkdir_p; then
6490     mkdir -p "$ac_dir"
6491   else
6492     as_dir="$ac_dir"
6493     as_dirs=
6494     while test ! -d "$as_dir"; do
6495       as_dirs="$as_dir $as_dirs"
6496       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6497 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6498          X"$as_dir" : 'X\(//\)[^/]' \| \
6499          X"$as_dir" : 'X\(//\)$' \| \
6500          X"$as_dir" : 'X\(/\)' \| \
6501          .     : '\(.\)' 2>/dev/null ||
6502 echo X"$as_dir" |
6503     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6504           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6505           /^X\(\/\/\)$/{ s//\1/; q; }
6506           /^X\(\/\).*/{ s//\1/; q; }
6507           s/.*/./; q'`
6508     done
6509     test ! -n "$as_dirs" || mkdir $as_dirs
6510   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6511 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6512    { (exit 1); exit 1; }; }; }
6513
6514       rm -f $ac_file
6515       mv $tmp/config.h $ac_file
6516     fi
6517   else
6518     cat $tmp/config.h
6519     rm -f $tmp/config.h
6520   fi
6521 done
6522 _ACEOF
6523 cat >>$CONFIG_STATUS <<\_ACEOF
6524
6525 #
6526 # CONFIG_LINKS section.
6527 #
6528
6529 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
6530   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6531   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6532
6533   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
6534 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
6535
6536   if test ! -r $srcdir/$ac_source; then
6537     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
6538 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
6539    { (exit 1); exit 1; }; }
6540   fi
6541   rm -f $ac_dest
6542
6543   # Make relative symlinks.
6544   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
6545 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6546          X"$ac_dest" : 'X\(//\)[^/]' \| \
6547          X"$ac_dest" : 'X\(//\)$' \| \
6548          X"$ac_dest" : 'X\(/\)' \| \
6549          .     : '\(.\)' 2>/dev/null ||
6550 echo X"$ac_dest" |
6551     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6552           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6553           /^X\(\/\/\)$/{ s//\1/; q; }
6554           /^X\(\/\).*/{ s//\1/; q; }
6555           s/.*/./; q'`
6556   { if $as_mkdir_p; then
6557     mkdir -p "$ac_dest_dir"
6558   else
6559     as_dir="$ac_dest_dir"
6560     as_dirs=
6561     while test ! -d "$as_dir"; do
6562       as_dirs="$as_dir $as_dirs"
6563       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6564 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6565          X"$as_dir" : 'X\(//\)[^/]' \| \
6566          X"$as_dir" : 'X\(//\)$' \| \
6567          X"$as_dir" : 'X\(/\)' \| \
6568          .     : '\(.\)' 2>/dev/null ||
6569 echo X"$as_dir" |
6570     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6571           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6572           /^X\(\/\/\)$/{ s//\1/; q; }
6573           /^X\(\/\).*/{ s//\1/; q; }
6574           s/.*/./; q'`
6575     done
6576     test ! -n "$as_dirs" || mkdir $as_dirs
6577   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
6578 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
6579    { (exit 1); exit 1; }; }; }
6580
6581   ac_builddir=.
6582
6583 if test "$ac_dest_dir" != .; then
6584   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
6585   # A "../" for each directory in $ac_dir_suffix.
6586   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6587 else
6588   ac_dir_suffix= ac_top_builddir=
6589 fi
6590
6591 case $srcdir in
6592   .)  # No --srcdir option.  We are building in place.
6593     ac_srcdir=.
6594     if test -z "$ac_top_builddir"; then
6595        ac_top_srcdir=.
6596     else
6597        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6598     fi ;;
6599   [\\/]* | ?:[\\/]* )  # Absolute path.
6600     ac_srcdir=$srcdir$ac_dir_suffix;
6601     ac_top_srcdir=$srcdir ;;
6602   *) # Relative path.
6603     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6604     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6605 esac
6606
6607 # Do not use `cd foo && pwd` to compute absolute paths, because
6608 # the directories may not exist.
6609 case `pwd` in
6610 .) ac_abs_builddir="$ac_dest_dir";;
6611 *)
6612   case "$ac_dest_dir" in
6613   .) ac_abs_builddir=`pwd`;;
6614   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
6615   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
6616   esac;;
6617 esac
6618 case $ac_abs_builddir in
6619 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6620 *)
6621   case ${ac_top_builddir}. in
6622   .) ac_abs_top_builddir=$ac_abs_builddir;;
6623   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6624   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6625   esac;;
6626 esac
6627 case $ac_abs_builddir in
6628 .) ac_abs_srcdir=$ac_srcdir;;
6629 *)
6630   case $ac_srcdir in
6631   .) ac_abs_srcdir=$ac_abs_builddir;;
6632   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6633   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6634   esac;;
6635 esac
6636 case $ac_abs_builddir in
6637 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6638 *)
6639   case $ac_top_srcdir in
6640   .) ac_abs_top_srcdir=$ac_abs_builddir;;
6641   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6642   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6643   esac;;
6644 esac
6645
6646
6647   case $srcdir in
6648   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
6649       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
6650   esac
6651
6652   # Try a symlink, then a hard link, then a copy.
6653   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
6654     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
6655     cp -p $srcdir/$ac_source $ac_dest ||
6656     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
6657 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
6658    { (exit 1); exit 1; }; }
6659 done
6660 _ACEOF
6661 cat >>$CONFIG_STATUS <<\_ACEOF
6662
6663 #
6664 # CONFIG_COMMANDS section.
6665 #
6666 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6667   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6668   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6669   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6670 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6671          X"$ac_dest" : 'X\(//\)[^/]' \| \
6672          X"$ac_dest" : 'X\(//\)$' \| \
6673          X"$ac_dest" : 'X\(/\)' \| \
6674          .     : '\(.\)' 2>/dev/null ||
6675 echo X"$ac_dest" |
6676     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6677           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6678           /^X\(\/\/\)$/{ s//\1/; q; }
6679           /^X\(\/\).*/{ s//\1/; q; }
6680           s/.*/./; q'`
6681   { if $as_mkdir_p; then
6682     mkdir -p "$ac_dir"
6683   else
6684     as_dir="$ac_dir"
6685     as_dirs=
6686     while test ! -d "$as_dir"; do
6687       as_dirs="$as_dir $as_dirs"
6688       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6689 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6690          X"$as_dir" : 'X\(//\)[^/]' \| \
6691          X"$as_dir" : 'X\(//\)$' \| \
6692          X"$as_dir" : 'X\(/\)' \| \
6693          .     : '\(.\)' 2>/dev/null ||
6694 echo X"$as_dir" |
6695     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6696           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6697           /^X\(\/\/\)$/{ s//\1/; q; }
6698           /^X\(\/\).*/{ s//\1/; q; }
6699           s/.*/./; q'`
6700     done
6701     test ! -n "$as_dirs" || mkdir $as_dirs
6702   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6703 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6704    { (exit 1); exit 1; }; }; }
6705
6706   ac_builddir=.
6707
6708 if test "$ac_dir" != .; then
6709   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6710   # A "../" for each directory in $ac_dir_suffix.
6711   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6712 else
6713   ac_dir_suffix= ac_top_builddir=
6714 fi
6715
6716 case $srcdir in
6717   .)  # No --srcdir option.  We are building in place.
6718     ac_srcdir=.
6719     if test -z "$ac_top_builddir"; then
6720        ac_top_srcdir=.
6721     else
6722        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6723     fi ;;
6724   [\\/]* | ?:[\\/]* )  # Absolute path.
6725     ac_srcdir=$srcdir$ac_dir_suffix;
6726     ac_top_srcdir=$srcdir ;;
6727   *) # Relative path.
6728     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6729     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6730 esac
6731
6732 # Do not use `cd foo && pwd` to compute absolute paths, because
6733 # the directories may not exist.
6734 case `pwd` in
6735 .) ac_abs_builddir="$ac_dir";;
6736 *)
6737   case "$ac_dir" in
6738   .) ac_abs_builddir=`pwd`;;
6739   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6740   *) ac_abs_builddir=`pwd`/"$ac_dir";;
6741   esac;;
6742 esac
6743 case $ac_abs_builddir in
6744 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6745 *)
6746   case ${ac_top_builddir}. in
6747   .) ac_abs_top_builddir=$ac_abs_builddir;;
6748   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6749   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6750   esac;;
6751 esac
6752 case $ac_abs_builddir in
6753 .) ac_abs_srcdir=$ac_srcdir;;
6754 *)
6755   case $ac_srcdir in
6756   .) ac_abs_srcdir=$ac_abs_builddir;;
6757   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6758   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6759   esac;;
6760 esac
6761 case $ac_abs_builddir in
6762 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6763 *)
6764   case $ac_top_srcdir in
6765   .) ac_abs_top_srcdir=$ac_abs_builddir;;
6766   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6767   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6768   esac;;
6769 esac
6770
6771
6772   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6773 echo "$as_me: executing $ac_dest commands" >&6;}
6774   case $ac_dest in
6775     Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
6776  rm -f Makesim1.tmp Makesim2.tmp Makefile
6777  sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
6778  sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
6779  sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
6780         -e '/^## COMMON_POST_/ r Makesim2.tmp' \
6781         <Makefile.sim >Makefile
6782  rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
6783  ;;
6784     stamp-h ) echo > stamp-h ;;
6785   esac
6786 done
6787 _ACEOF
6788
6789 cat >>$CONFIG_STATUS <<\_ACEOF
6790
6791 { (exit 0); exit 0; }
6792 _ACEOF
6793 chmod +x $CONFIG_STATUS
6794 ac_clean_files=$ac_clean_files_save
6795
6796
6797 # configure is writing to config.log, and then calls config.status.
6798 # config.status does its own redirection, appending to config.log.
6799 # Unfortunately, on DOS this fails, as config.log is still kept open
6800 # by configure, so config.status won't be able to write to it; its
6801 # output is simply discarded.  So we exec the FD to /dev/null,
6802 # effectively closing config.log, so it can be properly (re)opened and
6803 # appended to by config.status.  When coming back to configure, we
6804 # need to make the FD available again.
6805 if test "$no_create" != yes; then
6806   ac_cs_success=:
6807   ac_config_status_args=
6808   test "$silent" = yes &&
6809     ac_config_status_args="$ac_config_status_args --quiet"
6810   exec 5>/dev/null
6811   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6812   exec 5>>config.log
6813   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6814   # would make configure fail if this is the last instruction.
6815   $ac_cs_success || { (exit 1); exit 1; }
6816 fi
6817
6818