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