sim:
[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 . ${srcdir}/../../bfd/configure.host
4227
4228
4229
4230 USE_MAINTAINER_MODE=no
4231 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4232 if test "${enable_maintainer_mode+set}" = set; then
4233   enableval="$enable_maintainer_mode"
4234   case "${enableval}" in
4235   yes)  MAINT="" USE_MAINTAINER_MODE=yes ;;
4236   no)   MAINT="#" ;;
4237   *)    { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
4238 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
4239    { (exit 1); exit 1; }; }; MAINT="#" ;;
4240 esac
4241 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
4242   echo "Setting maintainer mode" 6>&1
4243 fi
4244 else
4245   MAINT="#"
4246 fi;
4247
4248
4249 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
4250 if test "${enable_sim_bswap+set}" = set; then
4251   enableval="$enable_sim_bswap"
4252   case "${enableval}" in
4253   yes)  sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4254   no)   sim_bswap="-DWITH_BSWAP=0";;
4255   *)    { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
4256 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
4257    { (exit 1); exit 1; }; }; sim_bswap="";;
4258 esac
4259 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
4260   echo "Setting bswap flags = $sim_bswap" 6>&1
4261 fi
4262 else
4263   sim_bswap=""
4264 fi;
4265
4266
4267 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
4268 if test "${enable_sim_cflags+set}" = set; then
4269   enableval="$enable_sim_cflags"
4270   case "${enableval}" in
4271   yes)   sim_cflags="-O2 -fomit-frame-pointer";;
4272   trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
4273 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
4274    { (exit 1); exit 1; }; }; sim_cflags="";;
4275   no)    sim_cflags="";;
4276   *)     sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4277 esac
4278 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
4279   echo "Setting sim cflags = $sim_cflags" 6>&1
4280 fi
4281 else
4282   sim_cflags=""
4283 fi;
4284
4285
4286 # Check whether --enable-sim-debug or --disable-sim-debug was given.
4287 if test "${enable_sim_debug+set}" = set; then
4288   enableval="$enable_sim_debug"
4289   case "${enableval}" in
4290   yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
4291   no)  sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
4292   *)   sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4293 esac
4294 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
4295   echo "Setting sim debug = $sim_debug" 6>&1
4296 fi
4297 else
4298   sim_debug=""
4299 fi;
4300
4301
4302 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
4303 if test "${enable_sim_stdio+set}" = set; then
4304   enableval="$enable_sim_stdio"
4305   case "${enableval}" in
4306   yes)  sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
4307   no)   sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
4308   *)    { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
4309 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
4310    { (exit 1); exit 1; }; }; sim_stdio="";;
4311 esac
4312 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
4313   echo "Setting stdio flags = $sim_stdio" 6>&1
4314 fi
4315 else
4316   sim_stdio=""
4317 fi;
4318
4319
4320 # Check whether --enable-sim-trace or --disable-sim-trace was given.
4321 if test "${enable_sim_trace+set}" = set; then
4322   enableval="$enable_sim_trace"
4323   case "${enableval}" in
4324   yes)  sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
4325   no)   sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
4326   [-0-9]*)
4327         sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4328   [a-z]*)
4329         sim_trace=""
4330         for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4331           if test x"$sim_trace" = x; then
4332             sim_trace="-DWITH_TRACE='(TRACE_$x"
4333           else
4334             sim_trace="${sim_trace}|TRACE_$x"
4335           fi
4336         done
4337         sim_trace="$sim_trace)'" ;;
4338 esac
4339 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
4340   echo "Setting sim trace = $sim_trace" 6>&1
4341 fi
4342 else
4343   sim_trace=""
4344 fi;
4345
4346
4347 # Check whether --enable-sim-profile or --disable-sim-profile was given.
4348 if test "${enable_sim_profile+set}" = set; then
4349   enableval="$enable_sim_profile"
4350   case "${enableval}" in
4351   yes)  sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
4352   no)   sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
4353   [-0-9]*)
4354         sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4355   [a-z]*)
4356         sim_profile=""
4357         for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4358           if test x"$sim_profile" = x; then
4359             sim_profile="-DWITH_PROFILE='(PROFILE_$x"
4360           else
4361             sim_profile="${sim_profile}|PROFILE_$x"
4362           fi
4363         done
4364         sim_profile="$sim_profile)'" ;;
4365 esac
4366 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
4367   echo "Setting sim profile = $sim_profile" 6>&1
4368 fi
4369 else
4370   sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
4371 fi;
4372
4373
4374
4375 # Check whether --with-pkgversion or --without-pkgversion was given.
4376 if test "${with_pkgversion+set}" = set; then
4377   withval="$with_pkgversion"
4378   case "$withval" in
4379       yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
4380 echo "$as_me: error: package version not specified" >&2;}
4381    { (exit 1); exit 1; }; } ;;
4382       no)  PKGVERSION= ;;
4383       *)   PKGVERSION="($withval) " ;;
4384      esac
4385 else
4386   PKGVERSION="(GDB) "
4387
4388 fi;
4389
4390
4391
4392
4393 # Check whether --with-bugurl or --without-bugurl was given.
4394 if test "${with_bugurl+set}" = set; then
4395   withval="$with_bugurl"
4396   case "$withval" in
4397       yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
4398 echo "$as_me: error: bug URL not specified" >&2;}
4399    { (exit 1); exit 1; }; } ;;
4400       no)  BUGURL=
4401            ;;
4402       *)   BUGURL="$withval"
4403            ;;
4404      esac
4405 else
4406   BUGURL="http://www.gnu.org/software/gdb/bugs/"
4407
4408 fi;
4409   case ${BUGURL} in
4410   "")
4411     REPORT_BUGS_TO=
4412     REPORT_BUGS_TEXI=
4413     ;;
4414   *)
4415     REPORT_BUGS_TO="<$BUGURL>"
4416     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4417     ;;
4418   esac;
4419
4420
4421
4422
4423 cat >>confdefs.h <<_ACEOF
4424 #define PKGVERSION "$PKGVERSION"
4425 _ACEOF
4426
4427
4428 cat >>confdefs.h <<_ACEOF
4429 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4430 _ACEOF
4431
4432
4433 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4434 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4435 if test "${ac_cv_type_signal+set}" = set; then
4436   echo $ECHO_N "(cached) $ECHO_C" >&6
4437 else
4438   cat >conftest.$ac_ext <<_ACEOF
4439 /* confdefs.h.  */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h.  */
4444 #include <sys/types.h>
4445 #include <signal.h>
4446 #ifdef signal
4447 # undef signal
4448 #endif
4449 #ifdef __cplusplus
4450 extern "C" void (*signal (int, void (*)(int)))(int);
4451 #else
4452 void (*signal ()) ();
4453 #endif
4454
4455 int
4456 main ()
4457 {
4458 int i;
4459   ;
4460   return 0;
4461 }
4462 _ACEOF
4463 rm -f conftest.$ac_objext
4464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465   (eval $ac_compile) 2>conftest.er1
4466   ac_status=$?
4467   grep -v '^ *+' conftest.er1 >conftest.err
4468   rm -f conftest.er1
4469   cat conftest.err >&5
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); } &&
4472          { ac_try='test -z "$ac_c_werror_flag"
4473                          || test ! -s conftest.err'
4474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475   (eval $ac_try) 2>&5
4476   ac_status=$?
4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478   (exit $ac_status); }; } &&
4479          { ac_try='test -s conftest.$ac_objext'
4480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481   (eval $ac_try) 2>&5
4482   ac_status=$?
4483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484   (exit $ac_status); }; }; then
4485   ac_cv_type_signal=void
4486 else
4487   echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4489
4490 ac_cv_type_signal=int
4491 fi
4492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4493 fi
4494 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4495 echo "${ECHO_T}$ac_cv_type_signal" >&6
4496
4497 cat >>confdefs.h <<_ACEOF
4498 #define RETSIGTYPE $ac_cv_type_signal
4499 _ACEOF
4500
4501
4502
4503
4504
4505 sim_link_files=
4506 sim_link_links=
4507
4508 sim_link_links=tconfig.h
4509 if test -f ${srcdir}/tconfig.in
4510 then
4511   sim_link_files=tconfig.in
4512 else
4513   sim_link_files=../common/tconfig.in
4514 fi
4515
4516 # targ-vals.def points to the libc macro description file.
4517 case "${target}" in
4518 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
4519 esac
4520 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
4521 sim_link_links="${sim_link_links} targ-vals.def"
4522
4523
4524 # For dv-rv and rvdummy.
4525
4526
4527
4528
4529 for ac_header in sys/socket.h sys/select.h limits.h sys/param.h
4530 do
4531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4533   echo "$as_me:$LINENO: checking for $ac_header" >&5
4534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4536   echo $ECHO_N "(cached) $ECHO_C" >&6
4537 fi
4538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4540 else
4541   # Is the header compilable?
4542 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4543 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4544 cat >conftest.$ac_ext <<_ACEOF
4545 /* confdefs.h.  */
4546 _ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h.  */
4550 $ac_includes_default
4551 #include <$ac_header>
4552 _ACEOF
4553 rm -f conftest.$ac_objext
4554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4555   (eval $ac_compile) 2>conftest.er1
4556   ac_status=$?
4557   grep -v '^ *+' conftest.er1 >conftest.err
4558   rm -f conftest.er1
4559   cat conftest.err >&5
4560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561   (exit $ac_status); } &&
4562          { ac_try='test -z "$ac_c_werror_flag"
4563                          || test ! -s conftest.err'
4564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565   (eval $ac_try) 2>&5
4566   ac_status=$?
4567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568   (exit $ac_status); }; } &&
4569          { ac_try='test -s conftest.$ac_objext'
4570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571   (eval $ac_try) 2>&5
4572   ac_status=$?
4573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574   (exit $ac_status); }; }; then
4575   ac_header_compiler=yes
4576 else
4577   echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4579
4580 ac_header_compiler=no
4581 fi
4582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4583 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4584 echo "${ECHO_T}$ac_header_compiler" >&6
4585
4586 # Is the header present?
4587 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4588 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4589 cat >conftest.$ac_ext <<_ACEOF
4590 /* confdefs.h.  */
4591 _ACEOF
4592 cat confdefs.h >>conftest.$ac_ext
4593 cat >>conftest.$ac_ext <<_ACEOF
4594 /* end confdefs.h.  */
4595 #include <$ac_header>
4596 _ACEOF
4597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4598   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4599   ac_status=$?
4600   grep -v '^ *+' conftest.er1 >conftest.err
4601   rm -f conftest.er1
4602   cat conftest.err >&5
4603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604   (exit $ac_status); } >/dev/null; then
4605   if test -s conftest.err; then
4606     ac_cpp_err=$ac_c_preproc_warn_flag
4607     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4608   else
4609     ac_cpp_err=
4610   fi
4611 else
4612   ac_cpp_err=yes
4613 fi
4614 if test -z "$ac_cpp_err"; then
4615   ac_header_preproc=yes
4616 else
4617   echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4619
4620   ac_header_preproc=no
4621 fi
4622 rm -f conftest.err conftest.$ac_ext
4623 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4624 echo "${ECHO_T}$ac_header_preproc" >&6
4625
4626 # So?  What about this header?
4627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4628   yes:no: )
4629     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4630 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4631     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4632 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4633     ac_header_preproc=yes
4634     ;;
4635   no:yes:* )
4636     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4637 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4638     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4639 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4640     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4641 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4642     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4643 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4644     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4646     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4647 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4648     (
4649       cat <<\_ASBOX
4650 ## ------------------------------------------ ##
4651 ## Report this to the AC_PACKAGE_NAME lists.  ##
4652 ## ------------------------------------------ ##
4653 _ASBOX
4654     ) |
4655       sed "s/^/$as_me: WARNING:     /" >&2
4656     ;;
4657 esac
4658 echo "$as_me:$LINENO: checking for $ac_header" >&5
4659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4661   echo $ECHO_N "(cached) $ECHO_C" >&6
4662 else
4663   eval "$as_ac_Header=\$ac_header_preproc"
4664 fi
4665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4667
4668 fi
4669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4670   cat >>confdefs.h <<_ACEOF
4671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4672 _ACEOF
4673
4674 fi
4675
4676 done
4677
4678
4679 wire_alignment="NONSTRICT_ALIGNMENT"
4680 default_alignment=""
4681
4682 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
4683 if test "${enable_sim_alignment+set}" = set; then
4684   enableval="$enable_sim_alignment"
4685   case "${enableval}" in
4686   strict | STRICT)       sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
4687   nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
4688   forced | FORCED)       sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
4689   yes) if test x"$wire_alignment" != x; then
4690          sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
4691        else
4692          if test x"$default_alignment" != x; then
4693            sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
4694          else
4695            echo "No hard-wired alignment for target $target" 1>&6
4696            sim_alignment="-DWITH_ALIGNMENT=0"
4697          fi
4698        fi;;
4699   no)  if test x"$default_alignment" != x; then
4700          sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4701        else
4702          if test x"$wire_alignment" != x; then
4703            sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
4704          else
4705            echo "No default alignment for target $target" 1>&6
4706            sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
4707          fi
4708        fi;;
4709   *)   { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
4710 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
4711    { (exit 1); exit 1; }; }; sim_alignment="";;
4712 esac
4713 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
4714   echo "Setting alignment flags = $sim_alignment" 6>&1
4715 fi
4716 else
4717   if test x"$default_alignment" != x; then
4718   sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4719 else
4720   if test x"$wire_alignment" != x; then
4721     sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
4722   else
4723     sim_alignment=
4724   fi
4725 fi
4726 fi;
4727
4728 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
4729 if test "${enable_sim_hostendian+set}" = set; then
4730   enableval="$enable_sim_hostendian"
4731   case "${enableval}" in
4732   no)    sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
4733   b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4734   l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
4735   *)     { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
4736 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
4737    { (exit 1); exit 1; }; }; sim_hostendian="";;
4738 esac
4739 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
4740   echo "Setting hostendian flags = $sim_hostendian" 6>&1
4741 fi
4742 else
4743
4744 if test "x$cross_compiling" = "xno"; then
4745   echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4746 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4747 if test "${ac_cv_c_bigendian+set}" = set; then
4748   echo $ECHO_N "(cached) $ECHO_C" >&6
4749 else
4750   # See if sys/param.h defines the BYTE_ORDER macro.
4751 cat >conftest.$ac_ext <<_ACEOF
4752 /* confdefs.h.  */
4753 _ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h.  */
4757 #include <sys/types.h>
4758 #include <sys/param.h>
4759
4760 int
4761 main ()
4762 {
4763 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4764  bogus endian macros
4765 #endif
4766
4767   ;
4768   return 0;
4769 }
4770 _ACEOF
4771 rm -f conftest.$ac_objext
4772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4773   (eval $ac_compile) 2>conftest.er1
4774   ac_status=$?
4775   grep -v '^ *+' conftest.er1 >conftest.err
4776   rm -f conftest.er1
4777   cat conftest.err >&5
4778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779   (exit $ac_status); } &&
4780          { ac_try='test -z "$ac_c_werror_flag"
4781                          || test ! -s conftest.err'
4782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783   (eval $ac_try) 2>&5
4784   ac_status=$?
4785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786   (exit $ac_status); }; } &&
4787          { ac_try='test -s conftest.$ac_objext'
4788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789   (eval $ac_try) 2>&5
4790   ac_status=$?
4791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792   (exit $ac_status); }; }; then
4793   # It does; now see whether it defined to BIG_ENDIAN or not.
4794 cat >conftest.$ac_ext <<_ACEOF
4795 /* confdefs.h.  */
4796 _ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h.  */
4800 #include <sys/types.h>
4801 #include <sys/param.h>
4802
4803 int
4804 main ()
4805 {
4806 #if BYTE_ORDER != BIG_ENDIAN
4807  not big endian
4808 #endif
4809
4810   ;
4811   return 0;
4812 }
4813 _ACEOF
4814 rm -f conftest.$ac_objext
4815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4816   (eval $ac_compile) 2>conftest.er1
4817   ac_status=$?
4818   grep -v '^ *+' conftest.er1 >conftest.err
4819   rm -f conftest.er1
4820   cat conftest.err >&5
4821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822   (exit $ac_status); } &&
4823          { ac_try='test -z "$ac_c_werror_flag"
4824                          || test ! -s conftest.err'
4825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826   (eval $ac_try) 2>&5
4827   ac_status=$?
4828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829   (exit $ac_status); }; } &&
4830          { ac_try='test -s conftest.$ac_objext'
4831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832   (eval $ac_try) 2>&5
4833   ac_status=$?
4834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835   (exit $ac_status); }; }; then
4836   ac_cv_c_bigendian=yes
4837 else
4838   echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.$ac_ext >&5
4840
4841 ac_cv_c_bigendian=no
4842 fi
4843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4844 else
4845   echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4847
4848 # It does not; compile a test program.
4849 if test "$cross_compiling" = yes; then
4850   # try to guess the endianness by grepping values into an object file
4851   ac_cv_c_bigendian=unknown
4852   cat >conftest.$ac_ext <<_ACEOF
4853 /* confdefs.h.  */
4854 _ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h.  */
4858 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4859 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4860 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4861 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4862 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4863 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4864 int
4865 main ()
4866 {
4867  _ascii (); _ebcdic ();
4868   ;
4869   return 0;
4870 }
4871 _ACEOF
4872 rm -f conftest.$ac_objext
4873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4874   (eval $ac_compile) 2>conftest.er1
4875   ac_status=$?
4876   grep -v '^ *+' conftest.er1 >conftest.err
4877   rm -f conftest.er1
4878   cat conftest.err >&5
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); } &&
4881          { ac_try='test -z "$ac_c_werror_flag"
4882                          || test ! -s conftest.err'
4883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884   (eval $ac_try) 2>&5
4885   ac_status=$?
4886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887   (exit $ac_status); }; } &&
4888          { ac_try='test -s conftest.$ac_objext'
4889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890   (eval $ac_try) 2>&5
4891   ac_status=$?
4892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893   (exit $ac_status); }; }; then
4894   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4895   ac_cv_c_bigendian=yes
4896 fi
4897 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4898   if test "$ac_cv_c_bigendian" = unknown; then
4899     ac_cv_c_bigendian=no
4900   else
4901     # finding both strings is unlikely to happen, but who knows?
4902     ac_cv_c_bigendian=unknown
4903   fi
4904 fi
4905 else
4906   echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4908
4909 fi
4910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4911 else
4912   cat >conftest.$ac_ext <<_ACEOF
4913 /* confdefs.h.  */
4914 _ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h.  */
4918 int
4919 main ()
4920 {
4921   /* Are we little or big endian?  From Harbison&Steele.  */
4922   union
4923   {
4924     long l;
4925     char c[sizeof (long)];
4926   } u;
4927   u.l = 1;
4928   exit (u.c[sizeof (long) - 1] == 1);
4929 }
4930 _ACEOF
4931 rm -f conftest$ac_exeext
4932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4933   (eval $ac_link) 2>&5
4934   ac_status=$?
4935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938   (eval $ac_try) 2>&5
4939   ac_status=$?
4940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941   (exit $ac_status); }; }; then
4942   ac_cv_c_bigendian=no
4943 else
4944   echo "$as_me: program exited with status $ac_status" >&5
4945 echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.$ac_ext >&5
4947
4948 ( exit $ac_status )
4949 ac_cv_c_bigendian=yes
4950 fi
4951 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4952 fi
4953 fi
4954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4955 fi
4956 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4957 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4958 case $ac_cv_c_bigendian in
4959   yes)
4960
4961 cat >>confdefs.h <<\_ACEOF
4962 #define WORDS_BIGENDIAN 1
4963 _ACEOF
4964  ;;
4965   no)
4966      ;;
4967   *)
4968     { { echo "$as_me:$LINENO: error: unknown endianness
4969 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4970 echo "$as_me: error: unknown endianness
4971 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4972    { (exit 1); exit 1; }; } ;;
4973 esac
4974
4975   if test $ac_cv_c_bigendian = yes; then
4976     sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
4977   else
4978     sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
4979   fi
4980 else
4981   sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
4982 fi
4983 fi;
4984
4985 default_sim_scache="16384"
4986 # Check whether --enable-sim-scache or --disable-sim-scache was given.
4987 if test "${enable_sim_scache+set}" = set; then
4988   enableval="$enable_sim_scache"
4989   case "${enableval}" in
4990   yes)  sim_scache="-DWITH_SCACHE=${default_sim_scache}";;
4991   no)   sim_scache="-DWITH_SCACHE=0" ;;
4992   [0-9]*) sim_scache="-DWITH_SCACHE=${enableval}";;
4993   *)    { { echo "$as_me:$LINENO: error: \"Bad value $enableval passed to --enable-sim-scache\"" >&5
4994 echo "$as_me: error: \"Bad value $enableval passed to --enable-sim-scache\"" >&2;}
4995    { (exit 1); exit 1; }; };
4996         sim_scache="";;
4997 esac
4998 if test x"$silent" != x"yes" && test x"$sim_scache" != x""; then
4999   echo "Setting scache size = $sim_scache" 6>&1
5000 fi
5001 else
5002   sim_scache="-DWITH_SCACHE=${default_sim_scache}"
5003 fi;
5004
5005
5006 # NOTE: Don't add -Wall or -Wunused, they both include
5007 # -Wunused-parameter which reports bogus warnings.
5008 # NOTE: If you add to this list, remember to update
5009 # gdb/doc/gdbint.texinfo.
5010 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
5011 -Wformat -Wparentheses -Wpointer-arith"
5012 # GCC supports -Wuninitialized only with -O or -On, n != 0.
5013 if test x${CFLAGS+set} = xset; then
5014   case "${CFLAGS}" in
5015     *"-O0"* ) ;;
5016     *"-O"* )
5017       build_warnings="${build_warnings} -Wuninitialized"
5018     ;;
5019   esac
5020 else
5021   build_warnings="${build_warnings} -Wuninitialized"
5022 fi
5023 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
5024 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
5025 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
5026 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
5027 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
5028 # -Woverloaded-virtual -Winline -Werror"
5029 # Check whether --enable-build-warnings or --disable-build-warnings was given.
5030 if test "${enable_build_warnings+set}" = set; then
5031   enableval="$enable_build_warnings"
5032   case "${enableval}" in
5033   yes)  ;;
5034   no)   build_warnings="-w";;
5035   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
5036         build_warnings="${build_warnings} ${t}";;
5037   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
5038         build_warnings="${t} ${build_warnings}";;
5039   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5040 esac
5041 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
5042   echo "Setting compiler warning flags = $build_warnings" 6>&1
5043 fi
5044 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
5045 if test "${enable_sim_build_warnings+set}" = set; then
5046   enableval="$enable_sim_build_warnings"
5047   case "${enableval}" in
5048   yes)  ;;
5049   no)   build_warnings="-w";;
5050   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
5051         build_warnings="${build_warnings} ${t}";;
5052   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
5053         build_warnings="${t} ${build_warnings}";;
5054   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5055 esac
5056 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
5057   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
5058 fi
5059 fi; WARN_CFLAGS=""
5060 WERROR_CFLAGS=""
5061 if test "x${build_warnings}" != x -a "x$GCC" = xyes
5062 then
5063     echo "$as_me:$LINENO: checking compiler warning flags" >&5
5064 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
5065     # Separate out the -Werror flag as some files just cannot be
5066     # compiled with it enabled.
5067     for w in ${build_warnings}; do
5068         case $w in
5069         -Werr*) WERROR_CFLAGS=-Werror ;;
5070         *) # Check that GCC accepts it
5071             saved_CFLAGS="$CFLAGS"
5072             CFLAGS="$CFLAGS $w"
5073             cat >conftest.$ac_ext <<_ACEOF
5074 /* confdefs.h.  */
5075 _ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h.  */
5079
5080 int
5081 main ()
5082 {
5083
5084   ;
5085   return 0;
5086 }
5087 _ACEOF
5088 rm -f conftest.$ac_objext
5089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5090   (eval $ac_compile) 2>conftest.er1
5091   ac_status=$?
5092   grep -v '^ *+' conftest.er1 >conftest.err
5093   rm -f conftest.er1
5094   cat conftest.err >&5
5095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096   (exit $ac_status); } &&
5097          { ac_try='test -z "$ac_c_werror_flag"
5098                          || test ! -s conftest.err'
5099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100   (eval $ac_try) 2>&5
5101   ac_status=$?
5102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103   (exit $ac_status); }; } &&
5104          { ac_try='test -s conftest.$ac_objext'
5105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106   (eval $ac_try) 2>&5
5107   ac_status=$?
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); }; }; then
5110   WARN_CFLAGS="${WARN_CFLAGS} $w"
5111 else
5112   echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5114
5115 fi
5116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5117             CFLAGS="$saved_CFLAGS"
5118         esac
5119     done
5120     echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
5121 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
5122 fi
5123
5124
5125 if test x"no" = x"yes"; then
5126   sim_hw_p=yes
5127 else
5128   sim_hw_p=no
5129 fi
5130 if test ""; then
5131   hardware="core pal glue"
5132 else
5133   hardware="core pal glue rv cris"
5134 fi
5135 sim_hw_cflags="-DWITH_HW=1"
5136 sim_hw="$hardware"
5137 sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
5138 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
5139 if test "${enable_sim_hardware+set}" = set; then
5140   enableval="$enable_sim_hardware"
5141
5142 case "${enableval}" in
5143   yes)  sim_hw_p=yes;;
5144   no)   sim_hw_p=no;;
5145   ,*)   sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
5146   *,)   sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
5147   *)    sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
5148 esac
5149 if test "$sim_hw_p" != yes; then
5150   sim_hw_objs=
5151   sim_hw_cflags="-DWITH_HW=0"
5152   sim_hw=
5153 else
5154   sim_hw_cflags="-DWITH_HW=1"
5155   # remove duplicates
5156   sim_hw=""
5157   sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
5158   for i in $hardware ; do
5159     case " $sim_hw " in
5160       *" $i "*) ;;
5161       *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
5162     esac
5163   done
5164 fi
5165 if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
5166   echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
5167 fi
5168 else
5169
5170 if test "$sim_hw_p" != yes; then
5171   sim_hw_objs=
5172   sim_hw_cflags="-DWITH_HW=0"
5173   sim_hw=
5174 fi
5175 if test x"$silent" != x"yes"; then
5176   echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
5177 fi
5178 fi;
5179
5180 # The default model shouldn't matter as long as there's a BFD.
5181
5182 default_sim_default_model="crisv32"
5183 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
5184 if test "${enable_sim_default_model+set}" = set; then
5185   enableval="$enable_sim_default_model"
5186   case "${enableval}" in
5187   yes|no) { { echo "$as_me:$LINENO: error: \"Missing argument to --enable-sim-default-model\"" >&5
5188 echo "$as_me: error: \"Missing argument to --enable-sim-default-model\"" >&2;}
5189    { (exit 1); exit 1; }; };;
5190   *)    sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
5191 esac
5192 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
5193   echo "Setting default model = $sim_default_model" 6>&1
5194 fi
5195 else
5196   sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
5197 fi;
5198
5199
5200 # Check whether --enable-sim-environment or --disable-sim-environment was given.
5201 if test "${enable_sim_environment+set}" = set; then
5202   enableval="$enable_sim_environment"
5203   case "${enableval}" in
5204   all | ALL)             sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
5205   user | USER)           sim_environment="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
5206   virtual | VIRTUAL)     sim_environment="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
5207   operating | OPERATING) sim_environment="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
5208   *)   { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-environment\"" >&5
5209 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-environment\"" >&2;}
5210    { (exit 1); exit 1; }; };
5211        sim_environment="";;
5212 esac
5213 if test x"$silent" != x"yes" && test x"$sim_environment" != x""; then
5214   echo "Setting sim environment = $sim_environment" 6>&1
5215 fi
5216 else
5217   sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
5218 fi;
5219
5220 default_sim_inline=""
5221 # Check whether --enable-sim-inline or --disable-sim-inline was given.
5222 if test "${enable_sim_inline+set}" = set; then
5223   enableval="$enable_sim_inline"
5224   sim_inline=""
5225 case "$enableval" in
5226   no)           sim_inline="-DDEFAULT_INLINE=0";;
5227   0)            sim_inline="-DDEFAULT_INLINE=0";;
5228   yes | 2)      sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
5229   1)            sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
5230   *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
5231        new_flag=""
5232        case "$x" in
5233          *_INLINE=*)    new_flag="-D$x";;
5234          *=*)           new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
5235          *_INLINE)      new_flag="-D$x=ALL_C_INLINE";;
5236          *)             new_flag="-D$x""_INLINE=ALL_C_INLINE";;
5237        esac
5238        if test x"$sim_inline" = x""; then
5239          sim_inline="$new_flag"
5240        else
5241          sim_inline="$sim_inline $new_flag"
5242        fi
5243      done;;
5244 esac
5245 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
5246   echo "Setting inline flags = $sim_inline" 6>&1
5247 fi
5248 else
5249
5250 if test "x$cross_compiling" = "xno"; then
5251   if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
5252     sim_inline="${default_sim_inline}"
5253     if test x"$silent" != x"yes"; then
5254       echo "Setting inline flags = $sim_inline" 6>&1
5255     fi
5256   else
5257     sim_inline=""
5258   fi
5259 else
5260   sim_inline="-DDEFAULT_INLINE=0"
5261 fi
5262 fi;
5263
5264 cgen_maint=no
5265 cgen=guile
5266 cgendir='$(srcdir)/../../cgen'
5267 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
5268 if test "${enable_cgen_maint+set}" = set; then
5269   enableval="$enable_cgen_maint"
5270   case "${enableval}" in
5271   yes)  cgen_maint=yes ;;
5272   no)   cgen_maint=no ;;
5273   *)
5274         # argument is cgen install directory (not implemented yet).
5275         # Having a `share' directory might be more appropriate for the .scm,
5276         # .cpu, etc. files.
5277         cgendir=${cgen_maint}/lib/cgen
5278         cgen=guile
5279         ;;
5280 esac
5281 fi; if test x${cgen_maint} != xno ; then
5282   CGEN_MAINT=''
5283 else
5284   CGEN_MAINT='#'
5285 fi
5286
5287
5288
5289
5290
5291
5292 ac_sources="$sim_link_files"
5293 ac_dests="$sim_link_links"
5294 while test -n "$ac_sources"; do
5295   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5296   set $ac_sources; ac_source=$1; shift; ac_sources=$*
5297   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
5298 done
5299           ac_config_links="$ac_config_links $ac_config_links_1"
5300
5301 cgen_breaks=""
5302 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
5303 cgen_breaks="break cgen_rtx_error";
5304 fi
5305
5306           ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
5307
5308           ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
5309
5310           ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
5311
5312           ac_config_commands="$ac_config_commands Makefile"
5313
5314           ac_config_commands="$ac_config_commands stamp-h"
5315
5316 cat >confcache <<\_ACEOF
5317 # This file is a shell script that caches the results of configure
5318 # tests run on this system so they can be shared between configure
5319 # scripts and configure runs, see configure's option --config-cache.
5320 # It is not useful on other systems.  If it contains results you don't
5321 # want to keep, you may remove or edit it.
5322 #
5323 # config.status only pays attention to the cache file if you give it
5324 # the --recheck option to rerun configure.
5325 #
5326 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5327 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5328 # following values.
5329
5330 _ACEOF
5331
5332 # The following way of writing the cache mishandles newlines in values,
5333 # but we know of no workaround that is simple, portable, and efficient.
5334 # So, don't put newlines in cache variables' values.
5335 # Ultrix sh set writes to stderr and can't be redirected directly,
5336 # and sets the high bit in the cache file unless we assign to the vars.
5337 {
5338   (set) 2>&1 |
5339     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5340     *ac_space=\ *)
5341       # `set' does not quote correctly, so add quotes (double-quote
5342       # substitution turns \\\\ into \\, and sed turns \\ into \).
5343       sed -n \
5344         "s/'/'\\\\''/g;
5345           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5346       ;;
5347     *)
5348       # `set' quotes correctly as required by POSIX, so do not add quotes.
5349       sed -n \
5350         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5351       ;;
5352     esac;
5353 } |
5354   sed '
5355      t clear
5356      : clear
5357      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5358      t end
5359      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5360      : end' >>confcache
5361 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5362   if test -w $cache_file; then
5363     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5364     cat confcache >$cache_file
5365   else
5366     echo "not updating unwritable cache $cache_file"
5367   fi
5368 fi
5369 rm -f confcache
5370
5371 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5372 # Let make expand exec_prefix.
5373 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5374
5375 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5376 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5377 # trailing colons and then remove the whole line if VPATH becomes empty
5378 # (actually we leave an empty line to preserve line numbers).
5379 if test "x$srcdir" = x.; then
5380   ac_vpsub='/^[  ]*VPATH[        ]*=/{
5381 s/:*\$(srcdir):*/:/;
5382 s/:*\${srcdir}:*/:/;
5383 s/:*@srcdir@:*/:/;
5384 s/^\([^=]*=[     ]*\):*/\1/;
5385 s/:*$//;
5386 s/^[^=]*=[       ]*$//;
5387 }'
5388 fi
5389
5390 DEFS=-DHAVE_CONFIG_H
5391
5392 ac_libobjs=
5393 ac_ltlibobjs=
5394 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5395   # 1. Remove the extension, and $U if already installed.
5396   ac_i=`echo "$ac_i" |
5397          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5398   # 2. Add them.
5399   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5400   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5401 done
5402 LIBOBJS=$ac_libobjs
5403
5404 LTLIBOBJS=$ac_ltlibobjs
5405
5406
5407
5408 : ${CONFIG_STATUS=./config.status}
5409 ac_clean_files_save=$ac_clean_files
5410 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5411 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5412 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5413 cat >$CONFIG_STATUS <<_ACEOF
5414 #! $SHELL
5415 # Generated by $as_me.
5416 # Run this file to recreate the current configuration.
5417 # Compiler output produced by configure, useful for debugging
5418 # configure, is in config.log if it exists.
5419
5420 debug=false
5421 ac_cs_recheck=false
5422 ac_cs_silent=false
5423 SHELL=\${CONFIG_SHELL-$SHELL}
5424 _ACEOF
5425
5426 cat >>$CONFIG_STATUS <<\_ACEOF
5427 ## --------------------- ##
5428 ## M4sh Initialization.  ##
5429 ## --------------------- ##
5430
5431 # Be Bourne compatible
5432 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5433   emulate sh
5434   NULLCMD=:
5435   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5436   # is contrary to our usage.  Disable this feature.
5437   alias -g '${1+"$@"}'='"$@"'
5438 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5439   set -o posix
5440 fi
5441 DUALCASE=1; export DUALCASE # for MKS sh
5442
5443 # Support unset when possible.
5444 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5445   as_unset=unset
5446 else
5447   as_unset=false
5448 fi
5449
5450
5451 # Work around bugs in pre-3.0 UWIN ksh.
5452 $as_unset ENV MAIL MAILPATH
5453 PS1='$ '
5454 PS2='> '
5455 PS4='+ '
5456
5457 # NLS nuisances.
5458 for as_var in \
5459   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5460   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5461   LC_TELEPHONE LC_TIME
5462 do
5463   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5464     eval $as_var=C; export $as_var
5465   else
5466     $as_unset $as_var
5467   fi
5468 done
5469
5470 # Required to use basename.
5471 if expr a : '\(a\)' >/dev/null 2>&1; then
5472   as_expr=expr
5473 else
5474   as_expr=false
5475 fi
5476
5477 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5478   as_basename=basename
5479 else
5480   as_basename=false
5481 fi
5482
5483
5484 # Name of the executable.
5485 as_me=`$as_basename "$0" ||
5486 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5487          X"$0" : 'X\(//\)$' \| \
5488          X"$0" : 'X\(/\)$' \| \
5489          .     : '\(.\)' 2>/dev/null ||
5490 echo X/"$0" |
5491     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5492           /^X\/\(\/\/\)$/{ s//\1/; q; }
5493           /^X\/\(\/\).*/{ s//\1/; q; }
5494           s/.*/./; q'`
5495
5496
5497 # PATH needs CR, and LINENO needs CR and PATH.
5498 # Avoid depending upon Character Ranges.
5499 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5500 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5501 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5502 as_cr_digits='0123456789'
5503 as_cr_alnum=$as_cr_Letters$as_cr_digits
5504
5505 # The user is always right.
5506 if test "${PATH_SEPARATOR+set}" != set; then
5507   echo "#! /bin/sh" >conf$$.sh
5508   echo  "exit 0"   >>conf$$.sh
5509   chmod +x conf$$.sh
5510   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5511     PATH_SEPARATOR=';'
5512   else
5513     PATH_SEPARATOR=:
5514   fi
5515   rm -f conf$$.sh
5516 fi
5517
5518
5519   as_lineno_1=$LINENO
5520   as_lineno_2=$LINENO
5521   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5522   test "x$as_lineno_1" != "x$as_lineno_2" &&
5523   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5524   # Find who we are.  Look in the path if we contain no path at all
5525   # relative or not.
5526   case $0 in
5527     *[\\/]* ) as_myself=$0 ;;
5528     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5530 do
5531   IFS=$as_save_IFS
5532   test -z "$as_dir" && as_dir=.
5533   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5534 done
5535
5536        ;;
5537   esac
5538   # We did not find ourselves, most probably we were run as `sh COMMAND'
5539   # in which case we are not to be found in the path.
5540   if test "x$as_myself" = x; then
5541     as_myself=$0
5542   fi
5543   if test ! -f "$as_myself"; then
5544     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5545 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5546    { (exit 1); exit 1; }; }
5547   fi
5548   case $CONFIG_SHELL in
5549   '')
5550     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5552 do
5553   IFS=$as_save_IFS
5554   test -z "$as_dir" && as_dir=.
5555   for as_base in sh bash ksh sh5; do
5556          case $as_dir in
5557          /*)
5558            if ("$as_dir/$as_base" -c '
5559   as_lineno_1=$LINENO
5560   as_lineno_2=$LINENO
5561   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5562   test "x$as_lineno_1" != "x$as_lineno_2" &&
5563   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5564              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5565              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5566              CONFIG_SHELL=$as_dir/$as_base
5567              export CONFIG_SHELL
5568              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5569            fi;;
5570          esac
5571        done
5572 done
5573 ;;
5574   esac
5575
5576   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5577   # uniformly replaced by the line number.  The first 'sed' inserts a
5578   # line-number line before each line; the second 'sed' does the real
5579   # work.  The second script uses 'N' to pair each line-number line
5580   # with the numbered line, and appends trailing '-' during
5581   # substitution so that $LINENO is not a special case at line end.
5582   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5583   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5584   sed '=' <$as_myself |
5585     sed '
5586       N
5587       s,$,-,
5588       : loop
5589       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5590       t loop
5591       s,-$,,
5592       s,^['$as_cr_digits']*\n,,
5593     ' >$as_me.lineno &&
5594   chmod +x $as_me.lineno ||
5595     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5596 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5597    { (exit 1); exit 1; }; }
5598
5599   # Don't try to exec as it changes $[0], causing all sort of problems
5600   # (the dirname of $[0] is not the place where we might find the
5601   # original and so on.  Autoconf is especially sensible to this).
5602   . ./$as_me.lineno
5603   # Exit status is that of the last command.
5604   exit
5605 }
5606
5607
5608 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5609   *c*,-n*) ECHO_N= ECHO_C='
5610 ' ECHO_T='      ' ;;
5611   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5612   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5613 esac
5614
5615 if expr a : '\(a\)' >/dev/null 2>&1; then
5616   as_expr=expr
5617 else
5618   as_expr=false
5619 fi
5620
5621 rm -f conf$$ conf$$.exe conf$$.file
5622 echo >conf$$.file
5623 if ln -s conf$$.file conf$$ 2>/dev/null; then
5624   # We could just check for DJGPP; but this test a) works b) is more generic
5625   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5626   if test -f conf$$.exe; then
5627     # Don't use ln at all; we don't have any links
5628     as_ln_s='cp -p'
5629   else
5630     as_ln_s='ln -s'
5631   fi
5632 elif ln conf$$.file conf$$ 2>/dev/null; then
5633   as_ln_s=ln
5634 else
5635   as_ln_s='cp -p'
5636 fi
5637 rm -f conf$$ conf$$.exe conf$$.file
5638
5639 if mkdir -p . 2>/dev/null; then
5640   as_mkdir_p=:
5641 else
5642   test -d ./-p && rmdir ./-p
5643   as_mkdir_p=false
5644 fi
5645
5646 as_executable_p="test -f"
5647
5648 # Sed expression to map a string onto a valid CPP name.
5649 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5650
5651 # Sed expression to map a string onto a valid variable name.
5652 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5653
5654
5655 # IFS
5656 # We need space, tab and new line, in precisely that order.
5657 as_nl='
5658 '
5659 IFS="   $as_nl"
5660
5661 # CDPATH.
5662 $as_unset CDPATH
5663
5664 exec 6>&1
5665
5666 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5667 # report actual input values of CONFIG_FILES etc. instead of their
5668 # values after options handling.  Logging --version etc. is OK.
5669 exec 5>>config.log
5670 {
5671   echo
5672   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5673 ## Running $as_me. ##
5674 _ASBOX
5675 } >&5
5676 cat >&5 <<_CSEOF
5677
5678 This file was extended by $as_me, which was
5679 generated by GNU Autoconf 2.59.  Invocation command line was
5680
5681   CONFIG_FILES    = $CONFIG_FILES
5682   CONFIG_HEADERS  = $CONFIG_HEADERS
5683   CONFIG_LINKS    = $CONFIG_LINKS
5684   CONFIG_COMMANDS = $CONFIG_COMMANDS
5685   $ $0 $@
5686
5687 _CSEOF
5688 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5689 echo >&5
5690 _ACEOF
5691
5692 # Files that config.status was made for.
5693 if test -n "$ac_config_files"; then
5694   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5695 fi
5696
5697 if test -n "$ac_config_headers"; then
5698   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5699 fi
5700
5701 if test -n "$ac_config_links"; then
5702   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5703 fi
5704
5705 if test -n "$ac_config_commands"; then
5706   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5707 fi
5708
5709 cat >>$CONFIG_STATUS <<\_ACEOF
5710
5711 ac_cs_usage="\
5712 \`$as_me' instantiates files from templates according to the
5713 current configuration.
5714
5715 Usage: $0 [OPTIONS] [FILE]...
5716
5717   -h, --help       print this help, then exit
5718   -V, --version    print version number, then exit
5719   -q, --quiet      do not print progress messages
5720   -d, --debug      don't remove temporary files
5721       --recheck    update $as_me by reconfiguring in the same conditions
5722   --file=FILE[:TEMPLATE]
5723                    instantiate the configuration file FILE
5724   --header=FILE[:TEMPLATE]
5725                    instantiate the configuration header FILE
5726
5727 Configuration files:
5728 $config_files
5729
5730 Configuration headers:
5731 $config_headers
5732
5733 Configuration links:
5734 $config_links
5735
5736 Configuration commands:
5737 $config_commands
5738
5739 Report bugs to <bug-autoconf@gnu.org>."
5740 _ACEOF
5741
5742 cat >>$CONFIG_STATUS <<_ACEOF
5743 ac_cs_version="\\
5744 config.status
5745 configured by $0, generated by GNU Autoconf 2.59,
5746   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5747
5748 Copyright (C) 2003 Free Software Foundation, Inc.
5749 This config.status script is free software; the Free Software Foundation
5750 gives unlimited permission to copy, distribute and modify it."
5751 srcdir=$srcdir
5752 INSTALL="$INSTALL"
5753 _ACEOF
5754
5755 cat >>$CONFIG_STATUS <<\_ACEOF
5756 # If no file are specified by the user, then we need to provide default
5757 # value.  By we need to know if files were specified by the user.
5758 ac_need_defaults=:
5759 while test $# != 0
5760 do
5761   case $1 in
5762   --*=*)
5763     ac_option=`expr "x$1" : 'x\([^=]*\)='`
5764     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5765     ac_shift=:
5766     ;;
5767   -*)
5768     ac_option=$1
5769     ac_optarg=$2
5770     ac_shift=shift
5771     ;;
5772   *) # This is not an option, so the user has probably given explicit
5773      # arguments.
5774      ac_option=$1
5775      ac_need_defaults=false;;
5776   esac
5777
5778   case $ac_option in
5779   # Handling of the options.
5780 _ACEOF
5781 cat >>$CONFIG_STATUS <<\_ACEOF
5782   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5783     ac_cs_recheck=: ;;
5784   --version | --vers* | -V )
5785     echo "$ac_cs_version"; exit 0 ;;
5786   --he | --h)
5787     # Conflict between --help and --header
5788     { { echo "$as_me:$LINENO: error: ambiguous option: $1
5789 Try \`$0 --help' for more information." >&5
5790 echo "$as_me: error: ambiguous option: $1
5791 Try \`$0 --help' for more information." >&2;}
5792    { (exit 1); exit 1; }; };;
5793   --help | --hel | -h )
5794     echo "$ac_cs_usage"; exit 0 ;;
5795   --debug | --d* | -d )
5796     debug=: ;;
5797   --file | --fil | --fi | --f )
5798     $ac_shift
5799     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5800     ac_need_defaults=false;;
5801   --header | --heade | --head | --hea )
5802     $ac_shift
5803     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5804     ac_need_defaults=false;;
5805   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5806   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5807     ac_cs_silent=: ;;
5808
5809   # This is an error.
5810   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5811 Try \`$0 --help' for more information." >&5
5812 echo "$as_me: error: unrecognized option: $1
5813 Try \`$0 --help' for more information." >&2;}
5814    { (exit 1); exit 1; }; } ;;
5815
5816   *) ac_config_targets="$ac_config_targets $1" ;;
5817
5818   esac
5819   shift
5820 done
5821
5822 ac_configure_extra_args=
5823
5824 if $ac_cs_silent; then
5825   exec 6>/dev/null
5826   ac_configure_extra_args="$ac_configure_extra_args --silent"
5827 fi
5828
5829 _ACEOF
5830 cat >>$CONFIG_STATUS <<_ACEOF
5831 if \$ac_cs_recheck; then
5832   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5833   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5834 fi
5835
5836 _ACEOF
5837
5838
5839
5840
5841
5842 cat >>$CONFIG_STATUS <<\_ACEOF
5843 for ac_config_target in $ac_config_targets
5844 do
5845   case "$ac_config_target" in
5846   # Handling of arguments.
5847   "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
5848   "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
5849   ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
5850   "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
5851   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
5852   "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
5853   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
5854   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5855 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5856    { (exit 1); exit 1; }; };;
5857   esac
5858 done
5859
5860 # If the user did not use the arguments to specify the items to instantiate,
5861 # then the envvar interface is used.  Set only those that are not.
5862 # We use the long form for the default assignment because of an extremely
5863 # bizarre bug on SunOS 4.1.3.
5864 if $ac_need_defaults; then
5865   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5866   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5867   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
5868   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5869 fi
5870
5871 # Have a temporary directory for convenience.  Make it in the build tree
5872 # simply because there is no reason to put it here, and in addition,
5873 # creating and moving files from /tmp can sometimes cause problems.
5874 # Create a temporary directory, and hook for its removal unless debugging.
5875 $debug ||
5876 {
5877   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5878   trap '{ (exit 1); exit 1; }' 1 2 13 15
5879 }
5880
5881 # Create a (secure) tmp directory for tmp files.
5882
5883 {
5884   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5885   test -n "$tmp" && test -d "$tmp"
5886 }  ||
5887 {
5888   tmp=./confstat$$-$RANDOM
5889   (umask 077 && mkdir $tmp)
5890 } ||
5891 {
5892    echo "$me: cannot create a temporary directory in ." >&2
5893    { (exit 1); exit 1; }
5894 }
5895
5896 _ACEOF
5897
5898 cat >>$CONFIG_STATUS <<_ACEOF
5899
5900 #
5901 # CONFIG_FILES section.
5902 #
5903
5904 # No need to generate the scripts if there are no CONFIG_FILES.
5905 # This happens for instance when ./config.status config.h
5906 if test -n "\$CONFIG_FILES"; then
5907   # Protect against being on the right side of a sed subst in config.status.
5908   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5909    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5910 s,@SHELL@,$SHELL,;t t
5911 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5912 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5913 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5914 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5915 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5916 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5917 s,@exec_prefix@,$exec_prefix,;t t
5918 s,@prefix@,$prefix,;t t
5919 s,@program_transform_name@,$program_transform_name,;t t
5920 s,@bindir@,$bindir,;t t
5921 s,@sbindir@,$sbindir,;t t
5922 s,@libexecdir@,$libexecdir,;t t
5923 s,@datadir@,$datadir,;t t
5924 s,@sysconfdir@,$sysconfdir,;t t
5925 s,@sharedstatedir@,$sharedstatedir,;t t
5926 s,@localstatedir@,$localstatedir,;t t
5927 s,@libdir@,$libdir,;t t
5928 s,@includedir@,$includedir,;t t
5929 s,@oldincludedir@,$oldincludedir,;t t
5930 s,@infodir@,$infodir,;t t
5931 s,@mandir@,$mandir,;t t
5932 s,@build_alias@,$build_alias,;t t
5933 s,@host_alias@,$host_alias,;t t
5934 s,@target_alias@,$target_alias,;t t
5935 s,@DEFS@,$DEFS,;t t
5936 s,@ECHO_C@,$ECHO_C,;t t
5937 s,@ECHO_N@,$ECHO_N,;t t
5938 s,@ECHO_T@,$ECHO_T,;t t
5939 s,@LIBS@,$LIBS,;t t
5940 s,@sim_environment@,$sim_environment,;t t
5941 s,@sim_alignment@,$sim_alignment,;t t
5942 s,@sim_assert@,$sim_assert,;t t
5943 s,@sim_bitsize@,$sim_bitsize,;t t
5944 s,@sim_endian@,$sim_endian,;t t
5945 s,@sim_hostendian@,$sim_hostendian,;t t
5946 s,@sim_float@,$sim_float,;t t
5947 s,@sim_scache@,$sim_scache,;t t
5948 s,@sim_default_model@,$sim_default_model,;t t
5949 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
5950 s,@sim_hw_objs@,$sim_hw_objs,;t t
5951 s,@sim_hw@,$sim_hw,;t t
5952 s,@sim_inline@,$sim_inline,;t t
5953 s,@sim_packages@,$sim_packages,;t t
5954 s,@sim_regparm@,$sim_regparm,;t t
5955 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
5956 s,@sim_smp@,$sim_smp,;t t
5957 s,@sim_stdcall@,$sim_stdcall,;t t
5958 s,@sim_xor_endian@,$sim_xor_endian,;t t
5959 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
5960 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
5961 s,@build@,$build,;t t
5962 s,@build_cpu@,$build_cpu,;t t
5963 s,@build_vendor@,$build_vendor,;t t
5964 s,@build_os@,$build_os,;t t
5965 s,@host@,$host,;t t
5966 s,@host_cpu@,$host_cpu,;t t
5967 s,@host_vendor@,$host_vendor,;t t
5968 s,@host_os@,$host_os,;t t
5969 s,@target@,$target,;t t
5970 s,@target_cpu@,$target_cpu,;t t
5971 s,@target_vendor@,$target_vendor,;t t
5972 s,@target_os@,$target_os,;t t
5973 s,@CC@,$CC,;t t
5974 s,@CFLAGS@,$CFLAGS,;t t
5975 s,@LDFLAGS@,$LDFLAGS,;t t
5976 s,@CPPFLAGS@,$CPPFLAGS,;t t
5977 s,@ac_ct_CC@,$ac_ct_CC,;t t
5978 s,@EXEEXT@,$EXEEXT,;t t
5979 s,@OBJEXT@,$OBJEXT,;t t
5980 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5981 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5982 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5983 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
5984 s,@HDEFINES@,$HDEFINES,;t t
5985 s,@AR@,$AR,;t t
5986 s,@RANLIB@,$RANLIB,;t t
5987 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5988 s,@USE_NLS@,$USE_NLS,;t t
5989 s,@LIBINTL@,$LIBINTL,;t t
5990 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
5991 s,@INCINTL@,$INCINTL,;t t
5992 s,@XGETTEXT@,$XGETTEXT,;t t
5993 s,@GMSGFMT@,$GMSGFMT,;t t
5994 s,@POSUB@,$POSUB,;t t
5995 s,@CATALOGS@,$CATALOGS,;t t
5996 s,@DATADIRNAME@,$DATADIRNAME,;t t
5997 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
5998 s,@GENCAT@,$GENCAT,;t t
5999 s,@CATOBJEXT@,$CATOBJEXT,;t t
6000 s,@CPP@,$CPP,;t t
6001 s,@EGREP@,$EGREP,;t t
6002 s,@MAINT@,$MAINT,;t t
6003 s,@sim_bswap@,$sim_bswap,;t t
6004 s,@sim_cflags@,$sim_cflags,;t t
6005 s,@sim_debug@,$sim_debug,;t t
6006 s,@sim_stdio@,$sim_stdio,;t t
6007 s,@sim_trace@,$sim_trace,;t t
6008 s,@sim_profile@,$sim_profile,;t t
6009 s,@PKGVERSION@,$PKGVERSION,;t t
6010 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
6011 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
6012 s,@CGEN_MAINT@,$CGEN_MAINT,;t t
6013 s,@cgendir@,$cgendir,;t t
6014 s,@cgen@,$cgen,;t t
6015 s,@cgen_breaks@,$cgen_breaks,;t t
6016 s,@LIBOBJS@,$LIBOBJS,;t t
6017 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6018 CEOF
6019
6020 _ACEOF
6021
6022   cat >>$CONFIG_STATUS <<\_ACEOF
6023   # Split the substitutions into bite-sized pieces for seds with
6024   # small command number limits, like on Digital OSF/1 and HP-UX.
6025   ac_max_sed_lines=48
6026   ac_sed_frag=1 # Number of current file.
6027   ac_beg=1 # First line for current file.
6028   ac_end=$ac_max_sed_lines # Line after last line for current file.
6029   ac_more_lines=:
6030   ac_sed_cmds=
6031   while $ac_more_lines; do
6032     if test $ac_beg -gt 1; then
6033       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6034     else
6035       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6036     fi
6037     if test ! -s $tmp/subs.frag; then
6038       ac_more_lines=false
6039     else
6040       # The purpose of the label and of the branching condition is to
6041       # speed up the sed processing (if there are no `@' at all, there
6042       # is no need to browse any of the substitutions).
6043       # These are the two extra sed commands mentioned above.
6044       (echo ':t
6045   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6046       if test -z "$ac_sed_cmds"; then
6047         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6048       else
6049         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6050       fi
6051       ac_sed_frag=`expr $ac_sed_frag + 1`
6052       ac_beg=$ac_end
6053       ac_end=`expr $ac_end + $ac_max_sed_lines`
6054     fi
6055   done
6056   if test -z "$ac_sed_cmds"; then
6057     ac_sed_cmds=cat
6058   fi
6059 fi # test -n "$CONFIG_FILES"
6060
6061 _ACEOF
6062 cat >>$CONFIG_STATUS <<\_ACEOF
6063 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6064   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6065   case $ac_file in
6066   - | *:- | *:-:* ) # input from stdin
6067         cat >$tmp/stdin
6068         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6069         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6070   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6071         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6072   * )   ac_file_in=$ac_file.in ;;
6073   esac
6074
6075   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6076   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6077 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6078          X"$ac_file" : 'X\(//\)[^/]' \| \
6079          X"$ac_file" : 'X\(//\)$' \| \
6080          X"$ac_file" : 'X\(/\)' \| \
6081          .     : '\(.\)' 2>/dev/null ||
6082 echo X"$ac_file" |
6083     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6084           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6085           /^X\(\/\/\)$/{ s//\1/; q; }
6086           /^X\(\/\).*/{ s//\1/; q; }
6087           s/.*/./; q'`
6088   { if $as_mkdir_p; then
6089     mkdir -p "$ac_dir"
6090   else
6091     as_dir="$ac_dir"
6092     as_dirs=
6093     while test ! -d "$as_dir"; do
6094       as_dirs="$as_dir $as_dirs"
6095       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6096 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6097          X"$as_dir" : 'X\(//\)[^/]' \| \
6098          X"$as_dir" : 'X\(//\)$' \| \
6099          X"$as_dir" : 'X\(/\)' \| \
6100          .     : '\(.\)' 2>/dev/null ||
6101 echo X"$as_dir" |
6102     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6103           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6104           /^X\(\/\/\)$/{ s//\1/; q; }
6105           /^X\(\/\).*/{ s//\1/; q; }
6106           s/.*/./; q'`
6107     done
6108     test ! -n "$as_dirs" || mkdir $as_dirs
6109   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6110 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6111    { (exit 1); exit 1; }; }; }
6112
6113   ac_builddir=.
6114
6115 if test "$ac_dir" != .; then
6116   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6117   # A "../" for each directory in $ac_dir_suffix.
6118   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6119 else
6120   ac_dir_suffix= ac_top_builddir=
6121 fi
6122
6123 case $srcdir in
6124   .)  # No --srcdir option.  We are building in place.
6125     ac_srcdir=.
6126     if test -z "$ac_top_builddir"; then
6127        ac_top_srcdir=.
6128     else
6129        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6130     fi ;;
6131   [\\/]* | ?:[\\/]* )  # Absolute path.
6132     ac_srcdir=$srcdir$ac_dir_suffix;
6133     ac_top_srcdir=$srcdir ;;
6134   *) # Relative path.
6135     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6136     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6137 esac
6138
6139 # Do not use `cd foo && pwd` to compute absolute paths, because
6140 # the directories may not exist.
6141 case `pwd` in
6142 .) ac_abs_builddir="$ac_dir";;
6143 *)
6144   case "$ac_dir" in
6145   .) ac_abs_builddir=`pwd`;;
6146   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6147   *) ac_abs_builddir=`pwd`/"$ac_dir";;
6148   esac;;
6149 esac
6150 case $ac_abs_builddir in
6151 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6152 *)
6153   case ${ac_top_builddir}. in
6154   .) ac_abs_top_builddir=$ac_abs_builddir;;
6155   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6156   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6157   esac;;
6158 esac
6159 case $ac_abs_builddir in
6160 .) ac_abs_srcdir=$ac_srcdir;;
6161 *)
6162   case $ac_srcdir in
6163   .) ac_abs_srcdir=$ac_abs_builddir;;
6164   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6165   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6166   esac;;
6167 esac
6168 case $ac_abs_builddir in
6169 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6170 *)
6171   case $ac_top_srcdir in
6172   .) ac_abs_top_srcdir=$ac_abs_builddir;;
6173   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6174   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6175   esac;;
6176 esac
6177
6178
6179   case $INSTALL in
6180   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6181   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6182   esac
6183
6184   if test x"$ac_file" != x-; then
6185     { echo "$as_me:$LINENO: creating $ac_file" >&5
6186 echo "$as_me: creating $ac_file" >&6;}
6187     rm -f "$ac_file"
6188   fi
6189   # Let's still pretend it is `configure' which instantiates (i.e., don't
6190   # use $as_me), people would be surprised to read:
6191   #    /* config.h.  Generated by config.status.  */
6192   if test x"$ac_file" = x-; then
6193     configure_input=
6194   else
6195     configure_input="$ac_file.  "
6196   fi
6197   configure_input=$configure_input"Generated from `echo $ac_file_in |
6198                                      sed 's,.*/,,'` by configure."
6199
6200   # First look for the input files in the build tree, otherwise in the
6201   # src tree.
6202   ac_file_inputs=`IFS=:
6203     for f in $ac_file_in; do
6204       case $f in
6205       -) echo $tmp/stdin ;;
6206       [\\/$]*)
6207          # Absolute (can't be DOS-style, as IFS=:)
6208          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6209 echo "$as_me: error: cannot find input file: $f" >&2;}
6210    { (exit 1); exit 1; }; }
6211          echo "$f";;
6212       *) # Relative
6213          if test -f "$f"; then
6214            # Build tree
6215            echo "$f"
6216          elif test -f "$srcdir/$f"; then
6217            # Source tree
6218            echo "$srcdir/$f"
6219          else
6220            # /dev/null tree
6221            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6222 echo "$as_me: error: cannot find input file: $f" >&2;}
6223    { (exit 1); exit 1; }; }
6224          fi;;
6225       esac
6226     done` || { (exit 1); exit 1; }
6227 _ACEOF
6228 cat >>$CONFIG_STATUS <<_ACEOF
6229   sed "$ac_vpsub
6230 $extrasub
6231 _ACEOF
6232 cat >>$CONFIG_STATUS <<\_ACEOF
6233 :t
6234 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6235 s,@configure_input@,$configure_input,;t t
6236 s,@srcdir@,$ac_srcdir,;t t
6237 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6238 s,@top_srcdir@,$ac_top_srcdir,;t t
6239 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6240 s,@builddir@,$ac_builddir,;t t
6241 s,@abs_builddir@,$ac_abs_builddir,;t t
6242 s,@top_builddir@,$ac_top_builddir,;t t
6243 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6244 s,@INSTALL@,$ac_INSTALL,;t t
6245 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6246   rm -f $tmp/stdin
6247   if test x"$ac_file" != x-; then
6248     mv $tmp/out $ac_file
6249   else
6250     cat $tmp/out
6251     rm -f $tmp/out
6252   fi
6253
6254 done
6255 _ACEOF
6256 cat >>$CONFIG_STATUS <<\_ACEOF
6257
6258 #
6259 # CONFIG_HEADER section.
6260 #
6261
6262 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6263 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6264 #
6265 # ac_d sets the value in "#define NAME VALUE" lines.
6266 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
6267 ac_dB='[         ].*$,\1#\2'
6268 ac_dC=' '
6269 ac_dD=',;t'
6270 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6271 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6272 ac_uB='$,\1#\2define\3'
6273 ac_uC=' '
6274 ac_uD=',;t'
6275
6276 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6277   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6278   case $ac_file in
6279   - | *:- | *:-:* ) # input from stdin
6280         cat >$tmp/stdin
6281         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6282         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6283   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6284         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6285   * )   ac_file_in=$ac_file.in ;;
6286   esac
6287
6288   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6289 echo "$as_me: creating $ac_file" >&6;}
6290
6291   # First look for the input files in the build tree, otherwise in the
6292   # src tree.
6293   ac_file_inputs=`IFS=:
6294     for f in $ac_file_in; do
6295       case $f in
6296       -) echo $tmp/stdin ;;
6297       [\\/$]*)
6298          # Absolute (can't be DOS-style, as IFS=:)
6299          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6300 echo "$as_me: error: cannot find input file: $f" >&2;}
6301    { (exit 1); exit 1; }; }
6302          # Do quote $f, to prevent DOS paths from being IFS'd.
6303          echo "$f";;
6304       *) # Relative
6305          if test -f "$f"; then
6306            # Build tree
6307            echo "$f"
6308          elif test -f "$srcdir/$f"; then
6309            # Source tree
6310            echo "$srcdir/$f"
6311          else
6312            # /dev/null tree
6313            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6314 echo "$as_me: error: cannot find input file: $f" >&2;}
6315    { (exit 1); exit 1; }; }
6316          fi;;
6317       esac
6318     done` || { (exit 1); exit 1; }
6319   # Remove the trailing spaces.
6320   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
6321
6322 _ACEOF
6323
6324 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6325 # `conftest.undefs', that substitutes the proper values into
6326 # config.h.in to produce config.h.  The first handles `#define'
6327 # templates, and the second `#undef' templates.
6328 # And first: Protect against being on the right side of a sed subst in
6329 # config.status.  Protect against being in an unquoted here document
6330 # in config.status.
6331 rm -f conftest.defines conftest.undefs
6332 # Using a here document instead of a string reduces the quoting nightmare.
6333 # Putting comments in sed scripts is not portable.
6334 #
6335 # `end' is used to avoid that the second main sed command (meant for
6336 # 0-ary CPP macros) applies to n-ary macro definitions.
6337 # See the Autoconf documentation for `clear'.
6338 cat >confdef2sed.sed <<\_ACEOF
6339 s/[\\&,]/\\&/g
6340 s,[\\$`],\\&,g
6341 t clear
6342 : clear
6343 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6344 t end
6345 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6346 : end
6347 _ACEOF
6348 # If some macros were called several times there might be several times
6349 # the same #defines, which is useless.  Nevertheless, we may not want to
6350 # sort them, since we want the *last* AC-DEFINE to be honored.
6351 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6352 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6353 rm -f confdef2sed.sed
6354
6355 # This sed command replaces #undef with comments.  This is necessary, for
6356 # example, in the case of _POSIX_SOURCE, which is predefined and required
6357 # on some systems where configure will not decide to define it.
6358 cat >>conftest.undefs <<\_ACEOF
6359 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6360 _ACEOF
6361
6362 # Break up conftest.defines because some shells have a limit on the size
6363 # of here documents, and old seds have small limits too (100 cmds).
6364 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6365 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6366 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6367 echo '  :' >>$CONFIG_STATUS
6368 rm -f conftest.tail
6369 while grep . conftest.defines >/dev/null
6370 do
6371   # Write a limited-size here document to $tmp/defines.sed.
6372   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6373   # Speed up: don't consider the non `#define' lines.
6374   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
6375   # Work around the forget-to-reset-the-flag bug.
6376   echo 't clr' >>$CONFIG_STATUS
6377   echo ': clr' >>$CONFIG_STATUS
6378   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6379   echo 'CEOF
6380   sed -f $tmp/defines.sed $tmp/in >$tmp/out
6381   rm -f $tmp/in
6382   mv $tmp/out $tmp/in
6383 ' >>$CONFIG_STATUS
6384   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6385   rm -f conftest.defines
6386   mv conftest.tail conftest.defines
6387 done
6388 rm -f conftest.defines
6389 echo '  fi # grep' >>$CONFIG_STATUS
6390 echo >>$CONFIG_STATUS
6391
6392 # Break up conftest.undefs because some shells have a limit on the size
6393 # of here documents, and old seds have small limits too (100 cmds).
6394 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
6395 rm -f conftest.tail
6396 while grep . conftest.undefs >/dev/null
6397 do
6398   # Write a limited-size here document to $tmp/undefs.sed.
6399   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6400   # Speed up: don't consider the non `#undef'
6401   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
6402   # Work around the forget-to-reset-the-flag bug.
6403   echo 't clr' >>$CONFIG_STATUS
6404   echo ': clr' >>$CONFIG_STATUS
6405   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6406   echo 'CEOF
6407   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6408   rm -f $tmp/in
6409   mv $tmp/out $tmp/in
6410 ' >>$CONFIG_STATUS
6411   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6412   rm -f conftest.undefs
6413   mv conftest.tail conftest.undefs
6414 done
6415 rm -f conftest.undefs
6416
6417 cat >>$CONFIG_STATUS <<\_ACEOF
6418   # Let's still pretend it is `configure' which instantiates (i.e., don't
6419   # use $as_me), people would be surprised to read:
6420   #    /* config.h.  Generated by config.status.  */
6421   if test x"$ac_file" = x-; then
6422     echo "/* Generated by configure.  */" >$tmp/config.h
6423   else
6424     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
6425   fi
6426   cat $tmp/in >>$tmp/config.h
6427   rm -f $tmp/in
6428   if test x"$ac_file" != x-; then
6429     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6430       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6431 echo "$as_me: $ac_file is unchanged" >&6;}
6432     else
6433       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6434 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6435          X"$ac_file" : 'X\(//\)[^/]' \| \
6436          X"$ac_file" : 'X\(//\)$' \| \
6437          X"$ac_file" : 'X\(/\)' \| \
6438          .     : '\(.\)' 2>/dev/null ||
6439 echo X"$ac_file" |
6440     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6441           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6442           /^X\(\/\/\)$/{ s//\1/; q; }
6443           /^X\(\/\).*/{ s//\1/; q; }
6444           s/.*/./; q'`
6445       { if $as_mkdir_p; then
6446     mkdir -p "$ac_dir"
6447   else
6448     as_dir="$ac_dir"
6449     as_dirs=
6450     while test ! -d "$as_dir"; do
6451       as_dirs="$as_dir $as_dirs"
6452       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6453 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6454          X"$as_dir" : 'X\(//\)[^/]' \| \
6455          X"$as_dir" : 'X\(//\)$' \| \
6456          X"$as_dir" : 'X\(/\)' \| \
6457          .     : '\(.\)' 2>/dev/null ||
6458 echo X"$as_dir" |
6459     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6460           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6461           /^X\(\/\/\)$/{ s//\1/; q; }
6462           /^X\(\/\).*/{ s//\1/; q; }
6463           s/.*/./; q'`
6464     done
6465     test ! -n "$as_dirs" || mkdir $as_dirs
6466   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6467 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6468    { (exit 1); exit 1; }; }; }
6469
6470       rm -f $ac_file
6471       mv $tmp/config.h $ac_file
6472     fi
6473   else
6474     cat $tmp/config.h
6475     rm -f $tmp/config.h
6476   fi
6477 done
6478 _ACEOF
6479 cat >>$CONFIG_STATUS <<\_ACEOF
6480
6481 #
6482 # CONFIG_LINKS section.
6483 #
6484
6485 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
6486   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6487   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6488
6489   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
6490 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
6491
6492   if test ! -r $srcdir/$ac_source; then
6493     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
6494 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
6495    { (exit 1); exit 1; }; }
6496   fi
6497   rm -f $ac_dest
6498
6499   # Make relative symlinks.
6500   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
6501 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6502          X"$ac_dest" : 'X\(//\)[^/]' \| \
6503          X"$ac_dest" : 'X\(//\)$' \| \
6504          X"$ac_dest" : 'X\(/\)' \| \
6505          .     : '\(.\)' 2>/dev/null ||
6506 echo X"$ac_dest" |
6507     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6508           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6509           /^X\(\/\/\)$/{ s//\1/; q; }
6510           /^X\(\/\).*/{ s//\1/; q; }
6511           s/.*/./; q'`
6512   { if $as_mkdir_p; then
6513     mkdir -p "$ac_dest_dir"
6514   else
6515     as_dir="$ac_dest_dir"
6516     as_dirs=
6517     while test ! -d "$as_dir"; do
6518       as_dirs="$as_dir $as_dirs"
6519       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6520 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6521          X"$as_dir" : 'X\(//\)[^/]' \| \
6522          X"$as_dir" : 'X\(//\)$' \| \
6523          X"$as_dir" : 'X\(/\)' \| \
6524          .     : '\(.\)' 2>/dev/null ||
6525 echo X"$as_dir" |
6526     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6527           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6528           /^X\(\/\/\)$/{ s//\1/; q; }
6529           /^X\(\/\).*/{ s//\1/; q; }
6530           s/.*/./; q'`
6531     done
6532     test ! -n "$as_dirs" || mkdir $as_dirs
6533   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
6534 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
6535    { (exit 1); exit 1; }; }; }
6536
6537   ac_builddir=.
6538
6539 if test "$ac_dest_dir" != .; then
6540   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
6541   # A "../" for each directory in $ac_dir_suffix.
6542   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6543 else
6544   ac_dir_suffix= ac_top_builddir=
6545 fi
6546
6547 case $srcdir in
6548   .)  # No --srcdir option.  We are building in place.
6549     ac_srcdir=.
6550     if test -z "$ac_top_builddir"; then
6551        ac_top_srcdir=.
6552     else
6553        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6554     fi ;;
6555   [\\/]* | ?:[\\/]* )  # Absolute path.
6556     ac_srcdir=$srcdir$ac_dir_suffix;
6557     ac_top_srcdir=$srcdir ;;
6558   *) # Relative path.
6559     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6560     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6561 esac
6562
6563 # Do not use `cd foo && pwd` to compute absolute paths, because
6564 # the directories may not exist.
6565 case `pwd` in
6566 .) ac_abs_builddir="$ac_dest_dir";;
6567 *)
6568   case "$ac_dest_dir" in
6569   .) ac_abs_builddir=`pwd`;;
6570   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
6571   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
6572   esac;;
6573 esac
6574 case $ac_abs_builddir in
6575 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6576 *)
6577   case ${ac_top_builddir}. in
6578   .) ac_abs_top_builddir=$ac_abs_builddir;;
6579   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6580   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6581   esac;;
6582 esac
6583 case $ac_abs_builddir in
6584 .) ac_abs_srcdir=$ac_srcdir;;
6585 *)
6586   case $ac_srcdir in
6587   .) ac_abs_srcdir=$ac_abs_builddir;;
6588   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6589   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6590   esac;;
6591 esac
6592 case $ac_abs_builddir in
6593 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6594 *)
6595   case $ac_top_srcdir in
6596   .) ac_abs_top_srcdir=$ac_abs_builddir;;
6597   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6598   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6599   esac;;
6600 esac
6601
6602
6603   case $srcdir in
6604   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
6605       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
6606   esac
6607
6608   # Try a symlink, then a hard link, then a copy.
6609   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
6610     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
6611     cp -p $srcdir/$ac_source $ac_dest ||
6612     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
6613 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
6614    { (exit 1); exit 1; }; }
6615 done
6616 _ACEOF
6617 cat >>$CONFIG_STATUS <<\_ACEOF
6618
6619 #
6620 # CONFIG_COMMANDS section.
6621 #
6622 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6623   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6624   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6625   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6626 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6627          X"$ac_dest" : 'X\(//\)[^/]' \| \
6628          X"$ac_dest" : 'X\(//\)$' \| \
6629          X"$ac_dest" : 'X\(/\)' \| \
6630          .     : '\(.\)' 2>/dev/null ||
6631 echo X"$ac_dest" |
6632     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6633           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6634           /^X\(\/\/\)$/{ s//\1/; q; }
6635           /^X\(\/\).*/{ s//\1/; q; }
6636           s/.*/./; q'`
6637   { if $as_mkdir_p; then
6638     mkdir -p "$ac_dir"
6639   else
6640     as_dir="$ac_dir"
6641     as_dirs=
6642     while test ! -d "$as_dir"; do
6643       as_dirs="$as_dir $as_dirs"
6644       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6645 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6646          X"$as_dir" : 'X\(//\)[^/]' \| \
6647          X"$as_dir" : 'X\(//\)$' \| \
6648          X"$as_dir" : 'X\(/\)' \| \
6649          .     : '\(.\)' 2>/dev/null ||
6650 echo X"$as_dir" |
6651     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6652           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6653           /^X\(\/\/\)$/{ s//\1/; q; }
6654           /^X\(\/\).*/{ s//\1/; q; }
6655           s/.*/./; q'`
6656     done
6657     test ! -n "$as_dirs" || mkdir $as_dirs
6658   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6659 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6660    { (exit 1); exit 1; }; }; }
6661
6662   ac_builddir=.
6663
6664 if test "$ac_dir" != .; then
6665   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6666   # A "../" for each directory in $ac_dir_suffix.
6667   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6668 else
6669   ac_dir_suffix= ac_top_builddir=
6670 fi
6671
6672 case $srcdir in
6673   .)  # No --srcdir option.  We are building in place.
6674     ac_srcdir=.
6675     if test -z "$ac_top_builddir"; then
6676        ac_top_srcdir=.
6677     else
6678        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6679     fi ;;
6680   [\\/]* | ?:[\\/]* )  # Absolute path.
6681     ac_srcdir=$srcdir$ac_dir_suffix;
6682     ac_top_srcdir=$srcdir ;;
6683   *) # Relative path.
6684     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6685     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6686 esac
6687
6688 # Do not use `cd foo && pwd` to compute absolute paths, because
6689 # the directories may not exist.
6690 case `pwd` in
6691 .) ac_abs_builddir="$ac_dir";;
6692 *)
6693   case "$ac_dir" in
6694   .) ac_abs_builddir=`pwd`;;
6695   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6696   *) ac_abs_builddir=`pwd`/"$ac_dir";;
6697   esac;;
6698 esac
6699 case $ac_abs_builddir in
6700 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6701 *)
6702   case ${ac_top_builddir}. in
6703   .) ac_abs_top_builddir=$ac_abs_builddir;;
6704   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6705   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6706   esac;;
6707 esac
6708 case $ac_abs_builddir in
6709 .) ac_abs_srcdir=$ac_srcdir;;
6710 *)
6711   case $ac_srcdir in
6712   .) ac_abs_srcdir=$ac_abs_builddir;;
6713   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6714   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6715   esac;;
6716 esac
6717 case $ac_abs_builddir in
6718 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6719 *)
6720   case $ac_top_srcdir in
6721   .) ac_abs_top_srcdir=$ac_abs_builddir;;
6722   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6723   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6724   esac;;
6725 esac
6726
6727
6728   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6729 echo "$as_me: executing $ac_dest commands" >&6;}
6730   case $ac_dest in
6731     Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
6732  rm -f Makesim1.tmp Makesim2.tmp Makefile
6733  sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
6734  sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
6735  sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
6736         -e '/^## COMMON_POST_/ r Makesim2.tmp' \
6737         <Makefile.sim >Makefile
6738  rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
6739  ;;
6740     stamp-h ) echo > stamp-h ;;
6741   esac
6742 done
6743 _ACEOF
6744
6745 cat >>$CONFIG_STATUS <<\_ACEOF
6746
6747 { (exit 0); exit 0; }
6748 _ACEOF
6749 chmod +x $CONFIG_STATUS
6750 ac_clean_files=$ac_clean_files_save
6751
6752
6753 # configure is writing to config.log, and then calls config.status.
6754 # config.status does its own redirection, appending to config.log.
6755 # Unfortunately, on DOS this fails, as config.log is still kept open
6756 # by configure, so config.status won't be able to write to it; its
6757 # output is simply discarded.  So we exec the FD to /dev/null,
6758 # effectively closing config.log, so it can be properly (re)opened and
6759 # appended to by config.status.  When coming back to configure, we
6760 # need to make the FD available again.
6761 if test "$no_create" != yes; then
6762   ac_cs_success=:
6763   ac_config_status_args=
6764   test "$silent" = yes &&
6765     ac_config_status_args="$ac_config_status_args --quiet"
6766   exec 5>/dev/null
6767   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6768   exec 5>>config.log
6769   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6770   # would make configure fail if this is the last instruction.
6771   $ac_cs_success || { (exit 1); exit 1; }
6772 fi
6773
6774