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