Index: arm/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 sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB SET_MAKE CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile 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   --disable-nls           do not use Native Language Support
854   --enable-maintainer-mode              Enable developer functionality.
855   --enable-sim-bswap                    Use Host specific BSWAP instruction.
856   --enable-sim-cflags=opts              Extra CFLAGS for use in building simulator
857   --enable-sim-debug=opts               Enable debugging flags
858   --enable-sim-stdio                    Specify whether to use stdio for console input/output.
859   --enable-sim-trace=opts               Enable tracing flags
860   --enable-sim-profile=opts             Enable profiling flags
861   --enable-build-warnings Enable build-time compiler warnings if gcc is used
862   --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used
863
864 Optional Packages:
865   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
866   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
867   --with-included-gettext use the GNU gettext library included here
868
869 Some influential environment variables:
870   CC          C compiler command
871   CFLAGS      C compiler flags
872   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
873               nonstandard directory <lib dir>
874   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
875               headers in a nonstandard directory <include dir>
876   CPP         C preprocessor
877
878 Use these variables to override the choices made by `configure' or to help
879 it to find libraries and programs with nonstandard names/locations.
880
881 _ACEOF
882 fi
883
884 if test "$ac_init_help" = "recursive"; then
885   # If there are subdirs, report their specific --help.
886   ac_popdir=`pwd`
887   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
888     test -d $ac_dir || continue
889     ac_builddir=.
890
891 if test "$ac_dir" != .; then
892   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
893   # A "../" for each directory in $ac_dir_suffix.
894   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
895 else
896   ac_dir_suffix= ac_top_builddir=
897 fi
898
899 case $srcdir in
900   .)  # No --srcdir option.  We are building in place.
901     ac_srcdir=.
902     if test -z "$ac_top_builddir"; then
903        ac_top_srcdir=.
904     else
905        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
906     fi ;;
907   [\\/]* | ?:[\\/]* )  # Absolute path.
908     ac_srcdir=$srcdir$ac_dir_suffix;
909     ac_top_srcdir=$srcdir ;;
910   *) # Relative path.
911     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
912     ac_top_srcdir=$ac_top_builddir$srcdir ;;
913 esac
914
915 # Do not use `cd foo && pwd` to compute absolute paths, because
916 # the directories may not exist.
917 case `pwd` in
918 .) ac_abs_builddir="$ac_dir";;
919 *)
920   case "$ac_dir" in
921   .) ac_abs_builddir=`pwd`;;
922   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
923   *) ac_abs_builddir=`pwd`/"$ac_dir";;
924   esac;;
925 esac
926 case $ac_abs_builddir in
927 .) ac_abs_top_builddir=${ac_top_builddir}.;;
928 *)
929   case ${ac_top_builddir}. in
930   .) ac_abs_top_builddir=$ac_abs_builddir;;
931   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
932   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
933   esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_srcdir=$ac_srcdir;;
937 *)
938   case $ac_srcdir in
939   .) ac_abs_srcdir=$ac_abs_builddir;;
940   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
941   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
942   esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_top_srcdir=$ac_top_srcdir;;
946 *)
947   case $ac_top_srcdir in
948   .) ac_abs_top_srcdir=$ac_abs_builddir;;
949   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
950   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
951   esac;;
952 esac
953
954     cd $ac_dir
955     # Check for guested configure; otherwise get Cygnus style configure.
956     if test -f $ac_srcdir/configure.gnu; then
957       echo
958       $SHELL $ac_srcdir/configure.gnu  --help=recursive
959     elif test -f $ac_srcdir/configure; then
960       echo
961       $SHELL $ac_srcdir/configure  --help=recursive
962     elif test -f $ac_srcdir/configure.ac ||
963            test -f $ac_srcdir/configure.in; then
964       echo
965       $ac_configure --help
966     else
967       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
968     fi
969     cd $ac_popdir
970   done
971 fi
972
973 test -n "$ac_init_help" && exit 0
974 if $ac_init_version; then
975   cat <<\_ACEOF
976
977 Copyright (C) 2003 Free Software Foundation, Inc.
978 This configure script is free software; the Free Software Foundation
979 gives unlimited permission to copy, distribute and modify it.
980 _ACEOF
981   exit 0
982 fi
983 exec 5>config.log
984 cat >&5 <<_ACEOF
985 This file contains any messages produced by compilers while
986 running configure, to aid debugging if configure makes a mistake.
987
988 It was created by $as_me, which was
989 generated by GNU Autoconf 2.59.  Invocation command line was
990
991   $ $0 $@
992
993 _ACEOF
994 {
995 cat <<_ASUNAME
996 ## --------- ##
997 ## Platform. ##
998 ## --------- ##
999
1000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1005
1006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1007 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1008
1009 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1010 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1012 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1013 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1014 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1015 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1016
1017 _ASUNAME
1018
1019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1020 for as_dir in $PATH
1021 do
1022   IFS=$as_save_IFS
1023   test -z "$as_dir" && as_dir=.
1024   echo "PATH: $as_dir"
1025 done
1026
1027 } >&5
1028
1029 cat >&5 <<_ACEOF
1030
1031
1032 ## ----------- ##
1033 ## Core tests. ##
1034 ## ----------- ##
1035
1036 _ACEOF
1037
1038
1039 # Keep a trace of the command line.
1040 # Strip out --no-create and --no-recursion so they do not pile up.
1041 # Strip out --silent because we don't want to record it for future runs.
1042 # Also quote any args containing shell meta-characters.
1043 # Make two passes to allow for proper duplicate-argument suppression.
1044 ac_configure_args=
1045 ac_configure_args0=
1046 ac_configure_args1=
1047 ac_sep=
1048 ac_must_keep_next=false
1049 for ac_pass in 1 2
1050 do
1051   for ac_arg
1052   do
1053     case $ac_arg in
1054     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1055     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056     | -silent | --silent | --silen | --sile | --sil)
1057       continue ;;
1058     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1059       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1060     esac
1061     case $ac_pass in
1062     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1063     2)
1064       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1065       if test $ac_must_keep_next = true; then
1066         ac_must_keep_next=false # Got value, back to normal.
1067       else
1068         case $ac_arg in
1069           *=* | --config-cache | -C | -disable-* | --disable-* \
1070           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1071           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1072           | -with-* | --with-* | -without-* | --without-* | --x)
1073             case "$ac_configure_args0 " in
1074               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1075             esac
1076             ;;
1077           -* ) ac_must_keep_next=true ;;
1078         esac
1079       fi
1080       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1081       # Get rid of the leading space.
1082       ac_sep=" "
1083       ;;
1084     esac
1085   done
1086 done
1087 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1088 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1089
1090 # When interrupted or exit'd, cleanup temporary files, and complete
1091 # config.log.  We remove comments because anyway the quotes in there
1092 # would cause problems or look ugly.
1093 # WARNING: Be sure not to use single quotes in there, as some shells,
1094 # such as our DU 5.0 friend, will then `close' the trap.
1095 trap 'exit_status=$?
1096   # Save into config.log some information that might help in debugging.
1097   {
1098     echo
1099
1100     cat <<\_ASBOX
1101 ## ---------------- ##
1102 ## Cache variables. ##
1103 ## ---------------- ##
1104 _ASBOX
1105     echo
1106     # The following way of writing the cache mishandles newlines in values,
1107 {
1108   (set) 2>&1 |
1109     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1110     *ac_space=\ *)
1111       sed -n \
1112         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1113           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1114       ;;
1115     *)
1116       sed -n \
1117         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1118       ;;
1119     esac;
1120 }
1121     echo
1122
1123     cat <<\_ASBOX
1124 ## ----------------- ##
1125 ## Output variables. ##
1126 ## ----------------- ##
1127 _ASBOX
1128     echo
1129     for ac_var in $ac_subst_vars
1130     do
1131       eval ac_val=$`echo $ac_var`
1132       echo "$ac_var='"'"'$ac_val'"'"'"
1133     done | sort
1134     echo
1135
1136     if test -n "$ac_subst_files"; then
1137       cat <<\_ASBOX
1138 ## ------------- ##
1139 ## Output files. ##
1140 ## ------------- ##
1141 _ASBOX
1142       echo
1143       for ac_var in $ac_subst_files
1144       do
1145         eval ac_val=$`echo $ac_var`
1146         echo "$ac_var='"'"'$ac_val'"'"'"
1147       done | sort
1148       echo
1149     fi
1150
1151     if test -s confdefs.h; then
1152       cat <<\_ASBOX
1153 ## ----------- ##
1154 ## confdefs.h. ##
1155 ## ----------- ##
1156 _ASBOX
1157       echo
1158       sed "/^$/d" confdefs.h | sort
1159       echo
1160     fi
1161     test "$ac_signal" != 0 &&
1162       echo "$as_me: caught signal $ac_signal"
1163     echo "$as_me: exit $exit_status"
1164   } >&5
1165   rm -f core *.core &&
1166   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1167     exit $exit_status
1168      ' 0
1169 for ac_signal in 1 2 13 15; do
1170   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1171 done
1172 ac_signal=0
1173
1174 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1175 rm -rf conftest* confdefs.h
1176 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1177 echo >confdefs.h
1178
1179 # Predefined preprocessor variables.
1180
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_NAME "$PACKAGE_NAME"
1183 _ACEOF
1184
1185
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1188 _ACEOF
1189
1190
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1193 _ACEOF
1194
1195
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_STRING "$PACKAGE_STRING"
1198 _ACEOF
1199
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1203 _ACEOF
1204
1205
1206 # Let the site file select an alternate cache file if it wants to.
1207 # Prefer explicitly selected file to automatically selected ones.
1208 if test -z "$CONFIG_SITE"; then
1209   if test "x$prefix" != xNONE; then
1210     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1211   else
1212     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1213   fi
1214 fi
1215 for ac_site_file in $CONFIG_SITE; do
1216   if test -r "$ac_site_file"; then
1217     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1218 echo "$as_me: loading site script $ac_site_file" >&6;}
1219     sed 's/^/| /' "$ac_site_file" >&5
1220     . "$ac_site_file"
1221   fi
1222 done
1223
1224 if test -r "$cache_file"; then
1225   # Some versions of bash will fail to source /dev/null (special
1226   # files actually), so we avoid doing that.
1227   if test -f "$cache_file"; then
1228     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1229 echo "$as_me: loading cache $cache_file" >&6;}
1230     case $cache_file in
1231       [\\/]* | ?:[\\/]* ) . $cache_file;;
1232       *)                      . ./$cache_file;;
1233     esac
1234   fi
1235 else
1236   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1237 echo "$as_me: creating cache $cache_file" >&6;}
1238   >$cache_file
1239 fi
1240
1241 # Check that the precious variables saved in the cache have kept the same
1242 # value.
1243 ac_cache_corrupted=false
1244 for ac_var in `(set) 2>&1 |
1245                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1246   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1247   eval ac_new_set=\$ac_env_${ac_var}_set
1248   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1249   eval ac_new_val="\$ac_env_${ac_var}_value"
1250   case $ac_old_set,$ac_new_set in
1251     set,)
1252       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1253 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1254       ac_cache_corrupted=: ;;
1255     ,set)
1256       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1257 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1258       ac_cache_corrupted=: ;;
1259     ,);;
1260     *)
1261       if test "x$ac_old_val" != "x$ac_new_val"; then
1262         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1263 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1264         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1265 echo "$as_me:   former value:  $ac_old_val" >&2;}
1266         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1267 echo "$as_me:   current value: $ac_new_val" >&2;}
1268         ac_cache_corrupted=:
1269       fi;;
1270   esac
1271   # Pass precious variables to config.status.
1272   if test "$ac_new_set" = set; then
1273     case $ac_new_val in
1274     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1275       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1276     *) ac_arg=$ac_var=$ac_new_val ;;
1277     esac
1278     case " $ac_configure_args " in
1279       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1280       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1281     esac
1282   fi
1283 done
1284 if $ac_cache_corrupted; then
1285   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1286 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1287   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1288 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1289    { (exit 1); exit 1; }; }
1290 fi
1291
1292 ac_ext=c
1293 ac_cpp='$CPP $CPPFLAGS'
1294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316           ac_config_headers="$ac_config_headers config.h:config.in"
1317
1318
1319 # This file contains common code used by all simulators.
1320 #
1321 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
1322 # directory.  It is intended to be invoked before any target specific stuff.
1323 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
1324 # It is intended to be invoked last.
1325 #
1326 # The simulator's configure.in should look like:
1327 #
1328 # dnl Process this file with autoconf to produce a configure script.
1329 # sinclude(../common/aclocal.m4)
1330 # AC_PREREQ(2.5)dnl
1331 # AC_INIT(Makefile.in)
1332 #
1333 # SIM_AC_COMMON
1334 #
1335 # ... target specific stuff ...
1336 #
1337 # SIM_AC_OUTPUT
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386 sim_inline="-DDEFAULT_INLINE=0"
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423 # This file is derived from `gettext.m4'.  The difference is that the
1424 # included macros assume Cygnus-style source and build trees.
1425
1426 # Macro to add for using GNU gettext.
1427 # Ulrich Drepper <drepper@cygnus.com>, 1995.
1428 #
1429 # This file file be copied and used freely without restrictions.  It can
1430 # be used in projects which are not available under the GNU Public License
1431 # but which still want to provide support for the GNU gettext functionality.
1432 # Please note that the actual code is *not* freely available.
1433
1434 # serial 3
1435
1436
1437
1438
1439
1440 # Search path for a program which passes the given test.
1441 # Ulrich Drepper <drepper@cygnus.com>, 1996.
1442 #
1443 # This file file be copied and used freely without restrictions.  It can
1444 # be used in projects which are not available under the GNU Public License
1445 # but which still want to provide support for the GNU gettext functionality.
1446 # Please note that the actual code is *not* freely available.
1447
1448 # serial 1
1449
1450
1451
1452 # Check whether LC_MESSAGES is available in <locale.h>.
1453 # Ulrich Drepper <drepper@cygnus.com>, 1995.
1454 #
1455 # This file file be copied and used freely without restrictions.  It can
1456 # be used in projects which are not available under the GNU Public License
1457 # but which still want to provide support for the GNU gettext functionality.
1458 # Please note that the actual code is *not* freely available.
1459
1460 # serial 1
1461
1462
1463
1464
1465
1466
1467
1468 # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1469 # it by inlining the macro's contents.
1470 # This file contains common code used by all simulators.
1471 #
1472 # common.m4 invokes AC macros used by all simulators and by the common
1473 # directory.  It is intended to be included before any target specific
1474 # stuff.  SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1475 # the Makefile.  It is intended to be invoked last.
1476 #
1477 # The simulator's configure.in should look like:
1478 #
1479 # dnl Process this file with autoconf to produce a configure script.
1480 # AC_PREREQ(2.5)dnl
1481 # AC_INIT(Makefile.in)
1482 # AC_CONFIG_HEADER(config.h:config.in)
1483 #
1484 # sinclude(../common/aclocal.m4)
1485 # sinclude(../common/common.m4)
1486 #
1487 # ... target specific stuff ...
1488
1489 ac_aux_dir=
1490 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1491   if test -f $ac_dir/install-sh; then
1492     ac_aux_dir=$ac_dir
1493     ac_install_sh="$ac_aux_dir/install-sh -c"
1494     break
1495   elif test -f $ac_dir/install.sh; then
1496     ac_aux_dir=$ac_dir
1497     ac_install_sh="$ac_aux_dir/install.sh -c"
1498     break
1499   elif test -f $ac_dir/shtool; then
1500     ac_aux_dir=$ac_dir
1501     ac_install_sh="$ac_aux_dir/shtool install -c"
1502     break
1503   fi
1504 done
1505 if test -z "$ac_aux_dir"; then
1506   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1507 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1508    { (exit 1); exit 1; }; }
1509 fi
1510 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1511 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1512 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1513
1514 # Make sure we can run config.sub.
1515 $ac_config_sub sun4 >/dev/null 2>&1 ||
1516   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1517 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1518    { (exit 1); exit 1; }; }
1519
1520 echo "$as_me:$LINENO: checking build system type" >&5
1521 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1522 if test "${ac_cv_build+set}" = set; then
1523   echo $ECHO_N "(cached) $ECHO_C" >&6
1524 else
1525   ac_cv_build_alias=$build_alias
1526 test -z "$ac_cv_build_alias" &&
1527   ac_cv_build_alias=`$ac_config_guess`
1528 test -z "$ac_cv_build_alias" &&
1529   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1530 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1531    { (exit 1); exit 1; }; }
1532 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1533   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1534 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1535    { (exit 1); exit 1; }; }
1536
1537 fi
1538 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1539 echo "${ECHO_T}$ac_cv_build" >&6
1540 build=$ac_cv_build
1541 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1542 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1543 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1544
1545
1546 echo "$as_me:$LINENO: checking host system type" >&5
1547 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1548 if test "${ac_cv_host+set}" = set; then
1549   echo $ECHO_N "(cached) $ECHO_C" >&6
1550 else
1551   ac_cv_host_alias=$host_alias
1552 test -z "$ac_cv_host_alias" &&
1553   ac_cv_host_alias=$ac_cv_build_alias
1554 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1555   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1556 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1557    { (exit 1); exit 1; }; }
1558
1559 fi
1560 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1561 echo "${ECHO_T}$ac_cv_host" >&6
1562 host=$ac_cv_host
1563 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1564 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1565 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1566
1567
1568 echo "$as_me:$LINENO: checking target system type" >&5
1569 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1570 if test "${ac_cv_target+set}" = set; then
1571   echo $ECHO_N "(cached) $ECHO_C" >&6
1572 else
1573   ac_cv_target_alias=$target_alias
1574 test "x$ac_cv_target_alias" = "x" &&
1575   ac_cv_target_alias=$ac_cv_host_alias
1576 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1577   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1578 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1579    { (exit 1); exit 1; }; }
1580
1581 fi
1582 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1583 echo "${ECHO_T}$ac_cv_target" >&6
1584 target=$ac_cv_target
1585 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1586 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1587 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1588
1589
1590 # The aliases save the names the user supplied, while $host etc.
1591 # will get canonicalized.
1592 test -n "$target_alias" &&
1593   test "$program_prefix$program_suffix$program_transform_name" = \
1594     NONENONEs,x,x, &&
1595   program_prefix=${target_alias}-
1596 test "$program_prefix" != NONE &&
1597   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1598 # Use a double $ so make ignores it.
1599 test "$program_suffix" != NONE &&
1600   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1601 # Double any \ or $.  echo might interpret backslashes.
1602 # By default was `s,x,x', remove it if useless.
1603 cat <<\_ACEOF >conftest.sed
1604 s/[\\$]/&&/g;s/;s,x,x,$//
1605 _ACEOF
1606 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1607 rm conftest.sed
1608
1609 ac_ext=c
1610 ac_cpp='$CPP $CPPFLAGS'
1611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1614 if test -n "$ac_tool_prefix"; then
1615   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1616 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1617 echo "$as_me:$LINENO: checking for $ac_word" >&5
1618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619 if test "${ac_cv_prog_CC+set}" = set; then
1620   echo $ECHO_N "(cached) $ECHO_C" >&6
1621 else
1622   if test -n "$CC"; then
1623   ac_cv_prog_CC="$CC" # Let the user override the test.
1624 else
1625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626 for as_dir in $PATH
1627 do
1628   IFS=$as_save_IFS
1629   test -z "$as_dir" && as_dir=.
1630   for ac_exec_ext in '' $ac_executable_extensions; do
1631   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1632     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1634     break 2
1635   fi
1636 done
1637 done
1638
1639 fi
1640 fi
1641 CC=$ac_cv_prog_CC
1642 if test -n "$CC"; then
1643   echo "$as_me:$LINENO: result: $CC" >&5
1644 echo "${ECHO_T}$CC" >&6
1645 else
1646   echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1648 fi
1649
1650 fi
1651 if test -z "$ac_cv_prog_CC"; then
1652   ac_ct_CC=$CC
1653   # Extract the first word of "gcc", so it can be a program name with args.
1654 set dummy gcc; ac_word=$2
1655 echo "$as_me:$LINENO: checking for $ac_word" >&5
1656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1658   echo $ECHO_N "(cached) $ECHO_C" >&6
1659 else
1660   if test -n "$ac_ct_CC"; then
1661   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1662 else
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 for as_dir in $PATH
1665 do
1666   IFS=$as_save_IFS
1667   test -z "$as_dir" && as_dir=.
1668   for ac_exec_ext in '' $ac_executable_extensions; do
1669   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670     ac_cv_prog_ac_ct_CC="gcc"
1671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672     break 2
1673   fi
1674 done
1675 done
1676
1677 fi
1678 fi
1679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1680 if test -n "$ac_ct_CC"; then
1681   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1682 echo "${ECHO_T}$ac_ct_CC" >&6
1683 else
1684   echo "$as_me:$LINENO: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1686 fi
1687
1688   CC=$ac_ct_CC
1689 else
1690   CC="$ac_cv_prog_CC"
1691 fi
1692
1693 if test -z "$CC"; then
1694   if test -n "$ac_tool_prefix"; then
1695   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1696 set dummy ${ac_tool_prefix}cc; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_CC+set}" = set; then
1700   echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702   if test -n "$CC"; then
1703   ac_cv_prog_CC="$CC" # Let the user override the test.
1704 else
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1707 do
1708   IFS=$as_save_IFS
1709   test -z "$as_dir" && as_dir=.
1710   for ac_exec_ext in '' $ac_executable_extensions; do
1711   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712     ac_cv_prog_CC="${ac_tool_prefix}cc"
1713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714     break 2
1715   fi
1716 done
1717 done
1718
1719 fi
1720 fi
1721 CC=$ac_cv_prog_CC
1722 if test -n "$CC"; then
1723   echo "$as_me:$LINENO: result: $CC" >&5
1724 echo "${ECHO_T}$CC" >&6
1725 else
1726   echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1728 fi
1729
1730 fi
1731 if test -z "$ac_cv_prog_CC"; then
1732   ac_ct_CC=$CC
1733   # Extract the first word of "cc", so it can be a program name with args.
1734 set dummy cc; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738   echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740   if test -n "$ac_ct_CC"; then
1741   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742 else
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1745 do
1746   IFS=$as_save_IFS
1747   test -z "$as_dir" && as_dir=.
1748   for ac_exec_ext in '' $ac_executable_extensions; do
1749   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750     ac_cv_prog_ac_ct_CC="cc"
1751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752     break 2
1753   fi
1754 done
1755 done
1756
1757 fi
1758 fi
1759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760 if test -n "$ac_ct_CC"; then
1761   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762 echo "${ECHO_T}$ac_ct_CC" >&6
1763 else
1764   echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1766 fi
1767
1768   CC=$ac_ct_CC
1769 else
1770   CC="$ac_cv_prog_CC"
1771 fi
1772
1773 fi
1774 if test -z "$CC"; then
1775   # Extract the first word of "cc", so it can be a program name with args.
1776 set dummy cc; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_CC+set}" = set; then
1780   echo $ECHO_N "(cached) $ECHO_C" >&6
1781 else
1782   if test -n "$CC"; then
1783   ac_cv_prog_CC="$CC" # Let the user override the test.
1784 else
1785   ac_prog_rejected=no
1786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787 for as_dir in $PATH
1788 do
1789   IFS=$as_save_IFS
1790   test -z "$as_dir" && as_dir=.
1791   for ac_exec_ext in '' $ac_executable_extensions; do
1792   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1794        ac_prog_rejected=yes
1795        continue
1796      fi
1797     ac_cv_prog_CC="cc"
1798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799     break 2
1800   fi
1801 done
1802 done
1803
1804 if test $ac_prog_rejected = yes; then
1805   # We found a bogon in the path, so make sure we never use it.
1806   set dummy $ac_cv_prog_CC
1807   shift
1808   if test $# != 0; then
1809     # We chose a different compiler from the bogus one.
1810     # However, it has the same basename, so the bogon will be chosen
1811     # first if we set CC to just the basename; use the full file name.
1812     shift
1813     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1814   fi
1815 fi
1816 fi
1817 fi
1818 CC=$ac_cv_prog_CC
1819 if test -n "$CC"; then
1820   echo "$as_me:$LINENO: result: $CC" >&5
1821 echo "${ECHO_T}$CC" >&6
1822 else
1823   echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1825 fi
1826
1827 fi
1828 if test -z "$CC"; then
1829   if test -n "$ac_tool_prefix"; then
1830   for ac_prog in cl
1831   do
1832     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1833 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1834 echo "$as_me:$LINENO: checking for $ac_word" >&5
1835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1836 if test "${ac_cv_prog_CC+set}" = set; then
1837   echo $ECHO_N "(cached) $ECHO_C" >&6
1838 else
1839   if test -n "$CC"; then
1840   ac_cv_prog_CC="$CC" # Let the user override the test.
1841 else
1842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843 for as_dir in $PATH
1844 do
1845   IFS=$as_save_IFS
1846   test -z "$as_dir" && as_dir=.
1847   for ac_exec_ext in '' $ac_executable_extensions; do
1848   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1849     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1851     break 2
1852   fi
1853 done
1854 done
1855
1856 fi
1857 fi
1858 CC=$ac_cv_prog_CC
1859 if test -n "$CC"; then
1860   echo "$as_me:$LINENO: result: $CC" >&5
1861 echo "${ECHO_T}$CC" >&6
1862 else
1863   echo "$as_me:$LINENO: result: no" >&5
1864 echo "${ECHO_T}no" >&6
1865 fi
1866
1867     test -n "$CC" && break
1868   done
1869 fi
1870 if test -z "$CC"; then
1871   ac_ct_CC=$CC
1872   for ac_prog in cl
1873 do
1874   # Extract the first word of "$ac_prog", so it can be a program name with args.
1875 set dummy $ac_prog; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1879   echo $ECHO_N "(cached) $ECHO_C" >&6
1880 else
1881   if test -n "$ac_ct_CC"; then
1882   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1883 else
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1886 do
1887   IFS=$as_save_IFS
1888   test -z "$as_dir" && as_dir=.
1889   for ac_exec_ext in '' $ac_executable_extensions; do
1890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891     ac_cv_prog_ac_ct_CC="$ac_prog"
1892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893     break 2
1894   fi
1895 done
1896 done
1897
1898 fi
1899 fi
1900 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1901 if test -n "$ac_ct_CC"; then
1902   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1903 echo "${ECHO_T}$ac_ct_CC" >&6
1904 else
1905   echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1907 fi
1908
1909   test -n "$ac_ct_CC" && break
1910 done
1911
1912   CC=$ac_ct_CC
1913 fi
1914
1915 fi
1916
1917
1918 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1919 See \`config.log' for more details." >&5
1920 echo "$as_me: error: no acceptable C compiler found in \$PATH
1921 See \`config.log' for more details." >&2;}
1922    { (exit 1); exit 1; }; }
1923
1924 # Provide some information about the compiler.
1925 echo "$as_me:$LINENO:" \
1926      "checking for C compiler version" >&5
1927 ac_compiler=`set X $ac_compile; echo $2`
1928 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1929   (eval $ac_compiler --version </dev/null >&5) 2>&5
1930   ac_status=$?
1931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932   (exit $ac_status); }
1933 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1934   (eval $ac_compiler -v </dev/null >&5) 2>&5
1935   ac_status=$?
1936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937   (exit $ac_status); }
1938 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1939   (eval $ac_compiler -V </dev/null >&5) 2>&5
1940   ac_status=$?
1941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942   (exit $ac_status); }
1943
1944 cat >conftest.$ac_ext <<_ACEOF
1945 /* confdefs.h.  */
1946 _ACEOF
1947 cat confdefs.h >>conftest.$ac_ext
1948 cat >>conftest.$ac_ext <<_ACEOF
1949 /* end confdefs.h.  */
1950
1951 int
1952 main ()
1953 {
1954
1955   ;
1956   return 0;
1957 }
1958 _ACEOF
1959 ac_clean_files_save=$ac_clean_files
1960 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1961 # Try to create an executable without -o first, disregard a.out.
1962 # It will help us diagnose broken compilers, and finding out an intuition
1963 # of exeext.
1964 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1965 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1966 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1967 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1968   (eval $ac_link_default) 2>&5
1969   ac_status=$?
1970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971   (exit $ac_status); }; then
1972   # Find the output, starting from the most likely.  This scheme is
1973 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1974 # resort.
1975
1976 # Be careful to initialize this variable, since it used to be cached.
1977 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1978 ac_cv_exeext=
1979 # b.out is created by i960 compilers.
1980 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1981 do
1982   test -f "$ac_file" || continue
1983   case $ac_file in
1984     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1985         ;;
1986     conftest.$ac_ext )
1987         # This is the source file.
1988         ;;
1989     [ab].out )
1990         # We found the default executable, but exeext='' is most
1991         # certainly right.
1992         break;;
1993     *.* )
1994         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1995         # FIXME: I believe we export ac_cv_exeext for Libtool,
1996         # but it would be cool to find out if it's true.  Does anybody
1997         # maintain Libtool? --akim.
1998         export ac_cv_exeext
1999         break;;
2000     * )
2001         break;;
2002   esac
2003 done
2004 else
2005   echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2007
2008 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2009 See \`config.log' for more details." >&5
2010 echo "$as_me: error: C compiler cannot create executables
2011 See \`config.log' for more details." >&2;}
2012    { (exit 77); exit 77; }; }
2013 fi
2014
2015 ac_exeext=$ac_cv_exeext
2016 echo "$as_me:$LINENO: result: $ac_file" >&5
2017 echo "${ECHO_T}$ac_file" >&6
2018
2019 # Check the compiler produces executables we can run.  If not, either
2020 # the compiler is broken, or we cross compile.
2021 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2022 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2023 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2024 # If not cross compiling, check that we can run a simple program.
2025 if test "$cross_compiling" != yes; then
2026   if { ac_try='./$ac_file'
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     cross_compiling=no
2033   else
2034     if test "$cross_compiling" = maybe; then
2035         cross_compiling=yes
2036     else
2037         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2038 If you meant to cross compile, use \`--host'.
2039 See \`config.log' for more details." >&5
2040 echo "$as_me: error: cannot run C compiled programs.
2041 If you meant to cross compile, use \`--host'.
2042 See \`config.log' for more details." >&2;}
2043    { (exit 1); exit 1; }; }
2044     fi
2045   fi
2046 fi
2047 echo "$as_me:$LINENO: result: yes" >&5
2048 echo "${ECHO_T}yes" >&6
2049
2050 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2051 ac_clean_files=$ac_clean_files_save
2052 # Check the compiler produces executables we can run.  If not, either
2053 # the compiler is broken, or we cross compile.
2054 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2055 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2056 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2057 echo "${ECHO_T}$cross_compiling" >&6
2058
2059 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2060 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2062   (eval $ac_link) 2>&5
2063   ac_status=$?
2064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065   (exit $ac_status); }; then
2066   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2067 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2068 # work properly (i.e., refer to `conftest.exe'), while it won't with
2069 # `rm'.
2070 for ac_file in conftest.exe conftest conftest.*; do
2071   test -f "$ac_file" || continue
2072   case $ac_file in
2073     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2074     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2075           export ac_cv_exeext
2076           break;;
2077     * ) break;;
2078   esac
2079 done
2080 else
2081   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2082 See \`config.log' for more details." >&5
2083 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2084 See \`config.log' for more details." >&2;}
2085    { (exit 1); exit 1; }; }
2086 fi
2087
2088 rm -f conftest$ac_cv_exeext
2089 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2090 echo "${ECHO_T}$ac_cv_exeext" >&6
2091
2092 rm -f conftest.$ac_ext
2093 EXEEXT=$ac_cv_exeext
2094 ac_exeext=$EXEEXT
2095 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2096 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2097 if test "${ac_cv_objext+set}" = set; then
2098   echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100   cat >conftest.$ac_ext <<_ACEOF
2101 /* confdefs.h.  */
2102 _ACEOF
2103 cat confdefs.h >>conftest.$ac_ext
2104 cat >>conftest.$ac_ext <<_ACEOF
2105 /* end confdefs.h.  */
2106
2107 int
2108 main ()
2109 {
2110
2111   ;
2112   return 0;
2113 }
2114 _ACEOF
2115 rm -f conftest.o conftest.obj
2116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2117   (eval $ac_compile) 2>&5
2118   ac_status=$?
2119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120   (exit $ac_status); }; then
2121   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2122   case $ac_file in
2123     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2124     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2125        break;;
2126   esac
2127 done
2128 else
2129   echo "$as_me: failed program was:" >&5
2130 sed 's/^/| /' conftest.$ac_ext >&5
2131
2132 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2133 See \`config.log' for more details." >&5
2134 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2135 See \`config.log' for more details." >&2;}
2136    { (exit 1); exit 1; }; }
2137 fi
2138
2139 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2140 fi
2141 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2142 echo "${ECHO_T}$ac_cv_objext" >&6
2143 OBJEXT=$ac_cv_objext
2144 ac_objext=$OBJEXT
2145 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2146 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2147 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2148   echo $ECHO_N "(cached) $ECHO_C" >&6
2149 else
2150   cat >conftest.$ac_ext <<_ACEOF
2151 /* confdefs.h.  */
2152 _ACEOF
2153 cat confdefs.h >>conftest.$ac_ext
2154 cat >>conftest.$ac_ext <<_ACEOF
2155 /* end confdefs.h.  */
2156
2157 int
2158 main ()
2159 {
2160 #ifndef __GNUC__
2161        choke me
2162 #endif
2163
2164   ;
2165   return 0;
2166 }
2167 _ACEOF
2168 rm -f conftest.$ac_objext
2169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170   (eval $ac_compile) 2>conftest.er1
2171   ac_status=$?
2172   grep -v '^ *+' conftest.er1 >conftest.err
2173   rm -f conftest.er1
2174   cat conftest.err >&5
2175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176   (exit $ac_status); } &&
2177          { ac_try='test -z "$ac_c_werror_flag"
2178                          || test ! -s conftest.err'
2179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180   (eval $ac_try) 2>&5
2181   ac_status=$?
2182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183   (exit $ac_status); }; } &&
2184          { ac_try='test -s conftest.$ac_objext'
2185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186   (eval $ac_try) 2>&5
2187   ac_status=$?
2188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189   (exit $ac_status); }; }; then
2190   ac_compiler_gnu=yes
2191 else
2192   echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2194
2195 ac_compiler_gnu=no
2196 fi
2197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2198 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2199
2200 fi
2201 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2202 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2203 GCC=`test $ac_compiler_gnu = yes && echo yes`
2204 ac_test_CFLAGS=${CFLAGS+set}
2205 ac_save_CFLAGS=$CFLAGS
2206 CFLAGS="-g"
2207 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2208 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2209 if test "${ac_cv_prog_cc_g+set}" = set; then
2210   echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212   cat >conftest.$ac_ext <<_ACEOF
2213 /* confdefs.h.  */
2214 _ACEOF
2215 cat confdefs.h >>conftest.$ac_ext
2216 cat >>conftest.$ac_ext <<_ACEOF
2217 /* end confdefs.h.  */
2218
2219 int
2220 main ()
2221 {
2222
2223   ;
2224   return 0;
2225 }
2226 _ACEOF
2227 rm -f conftest.$ac_objext
2228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229   (eval $ac_compile) 2>conftest.er1
2230   ac_status=$?
2231   grep -v '^ *+' conftest.er1 >conftest.err
2232   rm -f conftest.er1
2233   cat conftest.err >&5
2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235   (exit $ac_status); } &&
2236          { ac_try='test -z "$ac_c_werror_flag"
2237                          || test ! -s conftest.err'
2238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239   (eval $ac_try) 2>&5
2240   ac_status=$?
2241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242   (exit $ac_status); }; } &&
2243          { ac_try='test -s conftest.$ac_objext'
2244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245   (eval $ac_try) 2>&5
2246   ac_status=$?
2247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248   (exit $ac_status); }; }; then
2249   ac_cv_prog_cc_g=yes
2250 else
2251   echo "$as_me: failed program was:" >&5
2252 sed 's/^/| /' conftest.$ac_ext >&5
2253
2254 ac_cv_prog_cc_g=no
2255 fi
2256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2257 fi
2258 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2259 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2260 if test "$ac_test_CFLAGS" = set; then
2261   CFLAGS=$ac_save_CFLAGS
2262 elif test $ac_cv_prog_cc_g = yes; then
2263   if test "$GCC" = yes; then
2264     CFLAGS="-g -O2"
2265   else
2266     CFLAGS="-g"
2267   fi
2268 else
2269   if test "$GCC" = yes; then
2270     CFLAGS="-O2"
2271   else
2272     CFLAGS=
2273   fi
2274 fi
2275 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2276 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2277 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2278   echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280   ac_cv_prog_cc_stdc=no
2281 ac_save_CC=$CC
2282 cat >conftest.$ac_ext <<_ACEOF
2283 /* confdefs.h.  */
2284 _ACEOF
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h.  */
2288 #include <stdarg.h>
2289 #include <stdio.h>
2290 #include <sys/types.h>
2291 #include <sys/stat.h>
2292 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2293 struct buf { int x; };
2294 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2295 static char *e (p, i)
2296      char **p;
2297      int i;
2298 {
2299   return p[i];
2300 }
2301 static char *f (char * (*g) (char **, int), char **p, ...)
2302 {
2303   char *s;
2304   va_list v;
2305   va_start (v,p);
2306   s = g (p, va_arg (v,int));
2307   va_end (v);
2308   return s;
2309 }
2310
2311 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2312    function prototypes and stuff, but not '\xHH' hex character constants.
2313    These don't provoke an error unfortunately, instead are silently treated
2314    as 'x'.  The following induces an error, until -std1 is added to get
2315    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2316    array size at least.  It's necessary to write '\x00'==0 to get something
2317    that's true only with -std1.  */
2318 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2319
2320 int test (int i, double x);
2321 struct s1 {int (*f) (int a);};
2322 struct s2 {int (*f) (double a);};
2323 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2324 int argc;
2325 char **argv;
2326 int
2327 main ()
2328 {
2329 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2330   ;
2331   return 0;
2332 }
2333 _ACEOF
2334 # Don't try gcc -ansi; that turns off useful extensions and
2335 # breaks some systems' header files.
2336 # AIX                   -qlanglvl=ansi
2337 # Ultrix and OSF/1      -std1
2338 # HP-UX 10.20 and later -Ae
2339 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2340 # SVR4                  -Xc -D__EXTENSIONS__
2341 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2342 do
2343   CC="$ac_save_CC $ac_arg"
2344   rm -f conftest.$ac_objext
2345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2346   (eval $ac_compile) 2>conftest.er1
2347   ac_status=$?
2348   grep -v '^ *+' conftest.er1 >conftest.err
2349   rm -f conftest.er1
2350   cat conftest.err >&5
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); } &&
2353          { ac_try='test -z "$ac_c_werror_flag"
2354                          || test ! -s conftest.err'
2355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356   (eval $ac_try) 2>&5
2357   ac_status=$?
2358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359   (exit $ac_status); }; } &&
2360          { ac_try='test -s conftest.$ac_objext'
2361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362   (eval $ac_try) 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); }; }; then
2366   ac_cv_prog_cc_stdc=$ac_arg
2367 break
2368 else
2369   echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2371
2372 fi
2373 rm -f conftest.err conftest.$ac_objext
2374 done
2375 rm -f conftest.$ac_ext conftest.$ac_objext
2376 CC=$ac_save_CC
2377
2378 fi
2379
2380 case "x$ac_cv_prog_cc_stdc" in
2381   x|xno)
2382     echo "$as_me:$LINENO: result: none needed" >&5
2383 echo "${ECHO_T}none needed" >&6 ;;
2384   *)
2385     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2386 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2387     CC="$CC $ac_cv_prog_cc_stdc" ;;
2388 esac
2389
2390 # Some people use a C++ compiler to compile C.  Since we use `exit',
2391 # in C++ we need to declare it.  In case someone uses the same compiler
2392 # for both compiling C and C++ we need to have the C++ compiler decide
2393 # the declaration of exit, since it's the most demanding environment.
2394 cat >conftest.$ac_ext <<_ACEOF
2395 #ifndef __cplusplus
2396   choke me
2397 #endif
2398 _ACEOF
2399 rm -f conftest.$ac_objext
2400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401   (eval $ac_compile) 2>conftest.er1
2402   ac_status=$?
2403   grep -v '^ *+' conftest.er1 >conftest.err
2404   rm -f conftest.er1
2405   cat conftest.err >&5
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); } &&
2408          { ac_try='test -z "$ac_c_werror_flag"
2409                          || test ! -s conftest.err'
2410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411   (eval $ac_try) 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; } &&
2415          { ac_try='test -s conftest.$ac_objext'
2416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417   (eval $ac_try) 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }; }; then
2421   for ac_declaration in \
2422    '' \
2423    'extern "C" void std::exit (int) throw (); using std::exit;' \
2424    'extern "C" void std::exit (int); using std::exit;' \
2425    'extern "C" void exit (int) throw ();' \
2426    'extern "C" void exit (int);' \
2427    'void exit (int);'
2428 do
2429   cat >conftest.$ac_ext <<_ACEOF
2430 /* confdefs.h.  */
2431 _ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h.  */
2435 $ac_declaration
2436 #include <stdlib.h>
2437 int
2438 main ()
2439 {
2440 exit (42);
2441   ;
2442   return 0;
2443 }
2444 _ACEOF
2445 rm -f conftest.$ac_objext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447   (eval $ac_compile) 2>conftest.er1
2448   ac_status=$?
2449   grep -v '^ *+' conftest.er1 >conftest.err
2450   rm -f conftest.er1
2451   cat conftest.err >&5
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); } &&
2454          { ac_try='test -z "$ac_c_werror_flag"
2455                          || test ! -s conftest.err'
2456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457   (eval $ac_try) 2>&5
2458   ac_status=$?
2459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460   (exit $ac_status); }; } &&
2461          { ac_try='test -s conftest.$ac_objext'
2462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463   (eval $ac_try) 2>&5
2464   ac_status=$?
2465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466   (exit $ac_status); }; }; then
2467   :
2468 else
2469   echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2471
2472 continue
2473 fi
2474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2475   cat >conftest.$ac_ext <<_ACEOF
2476 /* confdefs.h.  */
2477 _ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h.  */
2481 $ac_declaration
2482 int
2483 main ()
2484 {
2485 exit (42);
2486   ;
2487   return 0;
2488 }
2489 _ACEOF
2490 rm -f conftest.$ac_objext
2491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2492   (eval $ac_compile) 2>conftest.er1
2493   ac_status=$?
2494   grep -v '^ *+' conftest.er1 >conftest.err
2495   rm -f conftest.er1
2496   cat conftest.err >&5
2497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498   (exit $ac_status); } &&
2499          { ac_try='test -z "$ac_c_werror_flag"
2500                          || test ! -s conftest.err'
2501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502   (eval $ac_try) 2>&5
2503   ac_status=$?
2504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505   (exit $ac_status); }; } &&
2506          { ac_try='test -s conftest.$ac_objext'
2507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508   (eval $ac_try) 2>&5
2509   ac_status=$?
2510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511   (exit $ac_status); }; }; then
2512   break
2513 else
2514   echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2516
2517 fi
2518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2519 done
2520 rm -f conftest*
2521 if test -n "$ac_declaration"; then
2522   echo '#ifdef __cplusplus' >>confdefs.h
2523   echo $ac_declaration      >>confdefs.h
2524   echo '#endif'             >>confdefs.h
2525 fi
2526
2527 else
2528   echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2530
2531 fi
2532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2533 ac_ext=c
2534 ac_cpp='$CPP $CPPFLAGS'
2535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538
2539 # Find a good install program.  We prefer a C program (faster),
2540 # so one script is as good as another.  But avoid the broken or
2541 # incompatible versions:
2542 # SysV /etc/install, /usr/sbin/install
2543 # SunOS /usr/etc/install
2544 # IRIX /sbin/install
2545 # AIX /bin/install
2546 # AmigaOS /C/install, which installs bootblocks on floppy discs
2547 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2548 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2549 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2550 # OS/2's system install, which has a completely different semantic
2551 # ./install, which can be erroneously created by make from ./install.sh.
2552 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2553 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2554 if test -z "$INSTALL"; then
2555 if test "${ac_cv_path_install+set}" = set; then
2556   echo $ECHO_N "(cached) $ECHO_C" >&6
2557 else
2558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 for as_dir in $PATH
2560 do
2561   IFS=$as_save_IFS
2562   test -z "$as_dir" && as_dir=.
2563   # Account for people who put trailing slashes in PATH elements.
2564 case $as_dir/ in
2565   ./ | .// | /cC/* | \
2566   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2567   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2568   /usr/ucb/* ) ;;
2569   *)
2570     # OSF1 and SCO ODT 3.0 have their own names for install.
2571     # Don't use installbsd from OSF since it installs stuff as root
2572     # by default.
2573     for ac_prog in ginstall scoinst install; do
2574       for ac_exec_ext in '' $ac_executable_extensions; do
2575         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2576           if test $ac_prog = install &&
2577             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2578             # AIX install.  It has an incompatible calling convention.
2579             :
2580           elif test $ac_prog = install &&
2581             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2582             # program-specific install script used by HP pwplus--don't use.
2583             :
2584           else
2585             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2586             break 3
2587           fi
2588         fi
2589       done
2590     done
2591     ;;
2592 esac
2593 done
2594
2595
2596 fi
2597   if test "${ac_cv_path_install+set}" = set; then
2598     INSTALL=$ac_cv_path_install
2599   else
2600     # As a last resort, use the slow shell script.  We don't cache a
2601     # path for INSTALL within a source directory, because that will
2602     # break other packages using the cache if that directory is
2603     # removed, or if the path is relative.
2604     INSTALL=$ac_install_sh
2605   fi
2606 fi
2607 echo "$as_me:$LINENO: result: $INSTALL" >&5
2608 echo "${ECHO_T}$INSTALL" >&6
2609
2610 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2611 # It thinks the first close brace ends the variable substitution.
2612 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2613
2614 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2615
2616 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2617
2618
2619 # Put a plausible default for CC_FOR_BUILD in Makefile.
2620 if test "x$cross_compiling" = "xno"; then
2621   CC_FOR_BUILD='$(CC)'
2622 else
2623   CC_FOR_BUILD=gcc
2624 fi
2625
2626
2627
2628
2629 AR=${AR-ar}
2630
2631 if test -n "$ac_tool_prefix"; then
2632   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2633 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2634 echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2636 if test "${ac_cv_prog_RANLIB+set}" = set; then
2637   echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639   if test -n "$RANLIB"; then
2640   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2644 do
2645   IFS=$as_save_IFS
2646   test -z "$as_dir" && as_dir=.
2647   for ac_exec_ext in '' $ac_executable_extensions; do
2648   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651     break 2
2652   fi
2653 done
2654 done
2655
2656 fi
2657 fi
2658 RANLIB=$ac_cv_prog_RANLIB
2659 if test -n "$RANLIB"; then
2660   echo "$as_me:$LINENO: result: $RANLIB" >&5
2661 echo "${ECHO_T}$RANLIB" >&6
2662 else
2663   echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6
2665 fi
2666
2667 fi
2668 if test -z "$ac_cv_prog_RANLIB"; then
2669   ac_ct_RANLIB=$RANLIB
2670   # Extract the first word of "ranlib", so it can be a program name with args.
2671 set dummy ranlib; ac_word=$2
2672 echo "$as_me:$LINENO: checking for $ac_word" >&5
2673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2674 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2675   echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677   if test -n "$ac_ct_RANLIB"; then
2678   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2679 else
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 for as_dir in $PATH
2682 do
2683   IFS=$as_save_IFS
2684   test -z "$as_dir" && as_dir=.
2685   for ac_exec_ext in '' $ac_executable_extensions; do
2686   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2687     ac_cv_prog_ac_ct_RANLIB="ranlib"
2688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2689     break 2
2690   fi
2691 done
2692 done
2693
2694   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2695 fi
2696 fi
2697 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2698 if test -n "$ac_ct_RANLIB"; then
2699   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2700 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2701 else
2702   echo "$as_me:$LINENO: result: no" >&5
2703 echo "${ECHO_T}no" >&6
2704 fi
2705
2706   RANLIB=$ac_ct_RANLIB
2707 else
2708   RANLIB="$ac_cv_prog_RANLIB"
2709 fi
2710
2711
2712 ALL_LINGUAS=
2713 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2714 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2715 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2716 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2717   echo $ECHO_N "(cached) $ECHO_C" >&6
2718 else
2719   cat >conftest.make <<\_ACEOF
2720 all:
2721         @echo 'ac_maketemp="$(MAKE)"'
2722 _ACEOF
2723 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2724 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2725 if test -n "$ac_maketemp"; then
2726   eval ac_cv_prog_make_${ac_make}_set=yes
2727 else
2728   eval ac_cv_prog_make_${ac_make}_set=no
2729 fi
2730 rm -f conftest.make
2731 fi
2732 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2733   echo "$as_me:$LINENO: result: yes" >&5
2734 echo "${ECHO_T}yes" >&6
2735   SET_MAKE=
2736 else
2737   echo "$as_me:$LINENO: result: no" >&5
2738 echo "${ECHO_T}no" >&6
2739   SET_MAKE="MAKE=${MAKE-make}"
2740 fi
2741
2742
2743 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2744 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2745 if test "${ac_cv_search_strerror+set}" = set; then
2746   echo $ECHO_N "(cached) $ECHO_C" >&6
2747 else
2748   ac_func_search_save_LIBS=$LIBS
2749 ac_cv_search_strerror=no
2750 cat >conftest.$ac_ext <<_ACEOF
2751 /* confdefs.h.  */
2752 _ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h.  */
2756
2757 /* Override any gcc2 internal prototype to avoid an error.  */
2758 #ifdef __cplusplus
2759 extern "C"
2760 #endif
2761 /* We use char because int might match the return type of a gcc2
2762    builtin and then its argument prototype would still apply.  */
2763 char strerror ();
2764 int
2765 main ()
2766 {
2767 strerror ();
2768   ;
2769   return 0;
2770 }
2771 _ACEOF
2772 rm -f conftest.$ac_objext conftest$ac_exeext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2774   (eval $ac_link) 2>conftest.er1
2775   ac_status=$?
2776   grep -v '^ *+' conftest.er1 >conftest.err
2777   rm -f conftest.er1
2778   cat conftest.err >&5
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); } &&
2781          { ac_try='test -z "$ac_c_werror_flag"
2782                          || test ! -s conftest.err'
2783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784   (eval $ac_try) 2>&5
2785   ac_status=$?
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); }; } &&
2788          { ac_try='test -s conftest$ac_exeext'
2789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790   (eval $ac_try) 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); }; }; then
2794   ac_cv_search_strerror="none required"
2795 else
2796   echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2798
2799 fi
2800 rm -f conftest.err conftest.$ac_objext \
2801       conftest$ac_exeext conftest.$ac_ext
2802 if test "$ac_cv_search_strerror" = no; then
2803   for ac_lib in cposix; do
2804     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2805     cat >conftest.$ac_ext <<_ACEOF
2806 /* confdefs.h.  */
2807 _ACEOF
2808 cat confdefs.h >>conftest.$ac_ext
2809 cat >>conftest.$ac_ext <<_ACEOF
2810 /* end confdefs.h.  */
2811
2812 /* Override any gcc2 internal prototype to avoid an error.  */
2813 #ifdef __cplusplus
2814 extern "C"
2815 #endif
2816 /* We use char because int might match the return type of a gcc2
2817    builtin and then its argument prototype would still apply.  */
2818 char strerror ();
2819 int
2820 main ()
2821 {
2822 strerror ();
2823   ;
2824   return 0;
2825 }
2826 _ACEOF
2827 rm -f conftest.$ac_objext conftest$ac_exeext
2828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2829   (eval $ac_link) 2>conftest.er1
2830   ac_status=$?
2831   grep -v '^ *+' conftest.er1 >conftest.err
2832   rm -f conftest.er1
2833   cat conftest.err >&5
2834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835   (exit $ac_status); } &&
2836          { ac_try='test -z "$ac_c_werror_flag"
2837                          || test ! -s conftest.err'
2838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839   (eval $ac_try) 2>&5
2840   ac_status=$?
2841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842   (exit $ac_status); }; } &&
2843          { ac_try='test -s conftest$ac_exeext'
2844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845   (eval $ac_try) 2>&5
2846   ac_status=$?
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); }; }; then
2849   ac_cv_search_strerror="-l$ac_lib"
2850 break
2851 else
2852   echo "$as_me: failed program was:" >&5
2853 sed 's/^/| /' conftest.$ac_ext >&5
2854
2855 fi
2856 rm -f conftest.err conftest.$ac_objext \
2857       conftest$ac_exeext conftest.$ac_ext
2858   done
2859 fi
2860 LIBS=$ac_func_search_save_LIBS
2861 fi
2862 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2863 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2864 if test "$ac_cv_search_strerror" != no; then
2865   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2866
2867 fi
2868
2869 ac_ext=c
2870 ac_cpp='$CPP $CPPFLAGS'
2871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2874 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2875 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2876 # On Suns, sometimes $CPP names a directory.
2877 if test -n "$CPP" && test -d "$CPP"; then
2878   CPP=
2879 fi
2880 if test -z "$CPP"; then
2881   if test "${ac_cv_prog_CPP+set}" = set; then
2882   echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884       # Double quotes because CPP needs to be expanded
2885     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2886     do
2887       ac_preproc_ok=false
2888 for ac_c_preproc_warn_flag in '' yes
2889 do
2890   # Use a header file that comes with gcc, so configuring glibc
2891   # with a fresh cross-compiler works.
2892   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2893   # <limits.h> exists even on freestanding compilers.
2894   # On the NeXT, cc -E runs the code through the compiler's parser,
2895   # not just through cpp. "Syntax error" is here to catch this case.
2896   cat >conftest.$ac_ext <<_ACEOF
2897 /* confdefs.h.  */
2898 _ACEOF
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h.  */
2902 #ifdef __STDC__
2903 # include <limits.h>
2904 #else
2905 # include <assert.h>
2906 #endif
2907                      Syntax error
2908 _ACEOF
2909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2910   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2911   ac_status=$?
2912   grep -v '^ *+' conftest.er1 >conftest.err
2913   rm -f conftest.er1
2914   cat conftest.err >&5
2915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); } >/dev/null; then
2917   if test -s conftest.err; then
2918     ac_cpp_err=$ac_c_preproc_warn_flag
2919     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2920   else
2921     ac_cpp_err=
2922   fi
2923 else
2924   ac_cpp_err=yes
2925 fi
2926 if test -z "$ac_cpp_err"; then
2927   :
2928 else
2929   echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2931
2932   # Broken: fails on valid input.
2933 continue
2934 fi
2935 rm -f conftest.err conftest.$ac_ext
2936
2937   # OK, works on sane cases.  Now check whether non-existent headers
2938   # can be detected and how.
2939   cat >conftest.$ac_ext <<_ACEOF
2940 /* confdefs.h.  */
2941 _ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h.  */
2945 #include <ac_nonexistent.h>
2946 _ACEOF
2947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2948   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2949   ac_status=$?
2950   grep -v '^ *+' conftest.er1 >conftest.err
2951   rm -f conftest.er1
2952   cat conftest.err >&5
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); } >/dev/null; then
2955   if test -s conftest.err; then
2956     ac_cpp_err=$ac_c_preproc_warn_flag
2957     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2958   else
2959     ac_cpp_err=
2960   fi
2961 else
2962   ac_cpp_err=yes
2963 fi
2964 if test -z "$ac_cpp_err"; then
2965   # Broken: success on invalid input.
2966 continue
2967 else
2968   echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2970
2971   # Passes both tests.
2972 ac_preproc_ok=:
2973 break
2974 fi
2975 rm -f conftest.err conftest.$ac_ext
2976
2977 done
2978 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2979 rm -f conftest.err conftest.$ac_ext
2980 if $ac_preproc_ok; then
2981   break
2982 fi
2983
2984     done
2985     ac_cv_prog_CPP=$CPP
2986
2987 fi
2988   CPP=$ac_cv_prog_CPP
2989 else
2990   ac_cv_prog_CPP=$CPP
2991 fi
2992 echo "$as_me:$LINENO: result: $CPP" >&5
2993 echo "${ECHO_T}$CPP" >&6
2994 ac_preproc_ok=false
2995 for ac_c_preproc_warn_flag in '' yes
2996 do
2997   # Use a header file that comes with gcc, so configuring glibc
2998   # with a fresh cross-compiler works.
2999   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3000   # <limits.h> exists even on freestanding compilers.
3001   # On the NeXT, cc -E runs the code through the compiler's parser,
3002   # not just through cpp. "Syntax error" is here to catch this case.
3003   cat >conftest.$ac_ext <<_ACEOF
3004 /* confdefs.h.  */
3005 _ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h.  */
3009 #ifdef __STDC__
3010 # include <limits.h>
3011 #else
3012 # include <assert.h>
3013 #endif
3014                      Syntax error
3015 _ACEOF
3016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3017   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3018   ac_status=$?
3019   grep -v '^ *+' conftest.er1 >conftest.err
3020   rm -f conftest.er1
3021   cat conftest.err >&5
3022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023   (exit $ac_status); } >/dev/null; then
3024   if test -s conftest.err; then
3025     ac_cpp_err=$ac_c_preproc_warn_flag
3026     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3027   else
3028     ac_cpp_err=
3029   fi
3030 else
3031   ac_cpp_err=yes
3032 fi
3033 if test -z "$ac_cpp_err"; then
3034   :
3035 else
3036   echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3038
3039   # Broken: fails on valid input.
3040 continue
3041 fi
3042 rm -f conftest.err conftest.$ac_ext
3043
3044   # OK, works on sane cases.  Now check whether non-existent headers
3045   # can be detected and how.
3046   cat >conftest.$ac_ext <<_ACEOF
3047 /* confdefs.h.  */
3048 _ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h.  */
3052 #include <ac_nonexistent.h>
3053 _ACEOF
3054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3055   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3056   ac_status=$?
3057   grep -v '^ *+' conftest.er1 >conftest.err
3058   rm -f conftest.er1
3059   cat conftest.err >&5
3060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061   (exit $ac_status); } >/dev/null; then
3062   if test -s conftest.err; then
3063     ac_cpp_err=$ac_c_preproc_warn_flag
3064     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3065   else
3066     ac_cpp_err=
3067   fi
3068 else
3069   ac_cpp_err=yes
3070 fi
3071 if test -z "$ac_cpp_err"; then
3072   # Broken: success on invalid input.
3073 continue
3074 else
3075   echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3077
3078   # Passes both tests.
3079 ac_preproc_ok=:
3080 break
3081 fi
3082 rm -f conftest.err conftest.$ac_ext
3083
3084 done
3085 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3086 rm -f conftest.err conftest.$ac_ext
3087 if $ac_preproc_ok; then
3088   :
3089 else
3090   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3091 See \`config.log' for more details." >&5
3092 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3093 See \`config.log' for more details." >&2;}
3094    { (exit 1); exit 1; }; }
3095 fi
3096
3097 ac_ext=c
3098 ac_cpp='$CPP $CPPFLAGS'
3099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3102
3103
3104 echo "$as_me:$LINENO: checking for egrep" >&5
3105 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3106 if test "${ac_cv_prog_egrep+set}" = set; then
3107   echo $ECHO_N "(cached) $ECHO_C" >&6
3108 else
3109   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3110     then ac_cv_prog_egrep='grep -E'
3111     else ac_cv_prog_egrep='egrep'
3112     fi
3113 fi
3114 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3115 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3116  EGREP=$ac_cv_prog_egrep
3117
3118
3119 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3120 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3121 if test "${ac_cv_header_stdc+set}" = set; then
3122   echo $ECHO_N "(cached) $ECHO_C" >&6
3123 else
3124   cat >conftest.$ac_ext <<_ACEOF
3125 /* confdefs.h.  */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h.  */
3130 #include <stdlib.h>
3131 #include <stdarg.h>
3132 #include <string.h>
3133 #include <float.h>
3134
3135 int
3136 main ()
3137 {
3138
3139   ;
3140   return 0;
3141 }
3142 _ACEOF
3143 rm -f conftest.$ac_objext
3144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3145   (eval $ac_compile) 2>conftest.er1
3146   ac_status=$?
3147   grep -v '^ *+' conftest.er1 >conftest.err
3148   rm -f conftest.er1
3149   cat conftest.err >&5
3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151   (exit $ac_status); } &&
3152          { ac_try='test -z "$ac_c_werror_flag"
3153                          || test ! -s conftest.err'
3154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3155   (eval $ac_try) 2>&5
3156   ac_status=$?
3157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); }; } &&
3159          { ac_try='test -s conftest.$ac_objext'
3160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161   (eval $ac_try) 2>&5
3162   ac_status=$?
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); }; }; then
3165   ac_cv_header_stdc=yes
3166 else
3167   echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3169
3170 ac_cv_header_stdc=no
3171 fi
3172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3173
3174 if test $ac_cv_header_stdc = yes; then
3175   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3176   cat >conftest.$ac_ext <<_ACEOF
3177 /* confdefs.h.  */
3178 _ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h.  */
3182 #include <string.h>
3183
3184 _ACEOF
3185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3186   $EGREP "memchr" >/dev/null 2>&1; then
3187   :
3188 else
3189   ac_cv_header_stdc=no
3190 fi
3191 rm -f conftest*
3192
3193 fi
3194
3195 if test $ac_cv_header_stdc = yes; then
3196   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3197   cat >conftest.$ac_ext <<_ACEOF
3198 /* confdefs.h.  */
3199 _ACEOF
3200 cat confdefs.h >>conftest.$ac_ext
3201 cat >>conftest.$ac_ext <<_ACEOF
3202 /* end confdefs.h.  */
3203 #include <stdlib.h>
3204
3205 _ACEOF
3206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3207   $EGREP "free" >/dev/null 2>&1; then
3208   :
3209 else
3210   ac_cv_header_stdc=no
3211 fi
3212 rm -f conftest*
3213
3214 fi
3215
3216 if test $ac_cv_header_stdc = yes; then
3217   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3218   if test "$cross_compiling" = yes; then
3219   :
3220 else
3221   cat >conftest.$ac_ext <<_ACEOF
3222 /* confdefs.h.  */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h.  */
3227 #include <ctype.h>
3228 #if ((' ' & 0x0FF) == 0x020)
3229 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3230 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3231 #else
3232 # define ISLOWER(c) \
3233                    (('a' <= (c) && (c) <= 'i') \
3234                      || ('j' <= (c) && (c) <= 'r') \
3235                      || ('s' <= (c) && (c) <= 'z'))
3236 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3237 #endif
3238
3239 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3240 int
3241 main ()
3242 {
3243   int i;
3244   for (i = 0; i < 256; i++)
3245     if (XOR (islower (i), ISLOWER (i))
3246         || toupper (i) != TOUPPER (i))
3247       exit(2);
3248   exit (0);
3249 }
3250 _ACEOF
3251 rm -f conftest$ac_exeext
3252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3253   (eval $ac_link) 2>&5
3254   ac_status=$?
3255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258   (eval $ac_try) 2>&5
3259   ac_status=$?
3260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261   (exit $ac_status); }; }; then
3262   :
3263 else
3264   echo "$as_me: program exited with status $ac_status" >&5
3265 echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3267
3268 ( exit $ac_status )
3269 ac_cv_header_stdc=no
3270 fi
3271 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3272 fi
3273 fi
3274 fi
3275 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3276 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3277 if test $ac_cv_header_stdc = yes; then
3278
3279 cat >>confdefs.h <<\_ACEOF
3280 #define STDC_HEADERS 1
3281 _ACEOF
3282
3283 fi
3284
3285 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3286 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3287 if test "${ac_cv_c_const+set}" = set; then
3288   echo $ECHO_N "(cached) $ECHO_C" >&6
3289 else
3290   cat >conftest.$ac_ext <<_ACEOF
3291 /* confdefs.h.  */
3292 _ACEOF
3293 cat confdefs.h >>conftest.$ac_ext
3294 cat >>conftest.$ac_ext <<_ACEOF
3295 /* end confdefs.h.  */
3296
3297 int
3298 main ()
3299 {
3300 /* FIXME: Include the comments suggested by Paul. */
3301 #ifndef __cplusplus
3302   /* Ultrix mips cc rejects this.  */
3303   typedef int charset[2];
3304   const charset x;
3305   /* SunOS 4.1.1 cc rejects this.  */
3306   char const *const *ccp;
3307   char **p;
3308   /* NEC SVR4.0.2 mips cc rejects this.  */
3309   struct point {int x, y;};
3310   static struct point const zero = {0,0};
3311   /* AIX XL C 1.02.0.0 rejects this.
3312      It does not let you subtract one const X* pointer from another in
3313      an arm of an if-expression whose if-part is not a constant
3314      expression */
3315   const char *g = "string";
3316   ccp = &g + (g ? g-g : 0);
3317   /* HPUX 7.0 cc rejects these. */
3318   ++ccp;
3319   p = (char**) ccp;
3320   ccp = (char const *const *) p;
3321   { /* SCO 3.2v4 cc rejects this.  */
3322     char *t;
3323     char const *s = 0 ? (char *) 0 : (char const *) 0;
3324
3325     *t++ = 0;
3326   }
3327   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3328     int x[] = {25, 17};
3329     const int *foo = &x[0];
3330     ++foo;
3331   }
3332   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3333     typedef const int *iptr;
3334     iptr p = 0;
3335     ++p;
3336   }
3337   { /* AIX XL C 1.02.0.0 rejects this saying
3338        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3339     struct s { int j; const int *ap[3]; };
3340     struct s *b; b->j = 5;
3341   }
3342   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3343     const int foo = 10;
3344   }
3345 #endif
3346
3347   ;
3348   return 0;
3349 }
3350 _ACEOF
3351 rm -f conftest.$ac_objext
3352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3353   (eval $ac_compile) 2>conftest.er1
3354   ac_status=$?
3355   grep -v '^ *+' conftest.er1 >conftest.err
3356   rm -f conftest.er1
3357   cat conftest.err >&5
3358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359   (exit $ac_status); } &&
3360          { ac_try='test -z "$ac_c_werror_flag"
3361                          || test ! -s conftest.err'
3362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363   (eval $ac_try) 2>&5
3364   ac_status=$?
3365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366   (exit $ac_status); }; } &&
3367          { ac_try='test -s conftest.$ac_objext'
3368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369   (eval $ac_try) 2>&5
3370   ac_status=$?
3371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372   (exit $ac_status); }; }; then
3373   ac_cv_c_const=yes
3374 else
3375   echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3377
3378 ac_cv_c_const=no
3379 fi
3380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3381 fi
3382 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3383 echo "${ECHO_T}$ac_cv_c_const" >&6
3384 if test $ac_cv_c_const = no; then
3385
3386 cat >>confdefs.h <<\_ACEOF
3387 #define const
3388 _ACEOF
3389
3390 fi
3391
3392 echo "$as_me:$LINENO: checking for inline" >&5
3393 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3394 if test "${ac_cv_c_inline+set}" = set; then
3395   echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397   ac_cv_c_inline=no
3398 for ac_kw in inline __inline__ __inline; do
3399   cat >conftest.$ac_ext <<_ACEOF
3400 /* confdefs.h.  */
3401 _ACEOF
3402 cat confdefs.h >>conftest.$ac_ext
3403 cat >>conftest.$ac_ext <<_ACEOF
3404 /* end confdefs.h.  */
3405 #ifndef __cplusplus
3406 typedef int foo_t;
3407 static $ac_kw foo_t static_foo () {return 0; }
3408 $ac_kw foo_t foo () {return 0; }
3409 #endif
3410
3411 _ACEOF
3412 rm -f conftest.$ac_objext
3413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3414   (eval $ac_compile) 2>conftest.er1
3415   ac_status=$?
3416   grep -v '^ *+' conftest.er1 >conftest.err
3417   rm -f conftest.er1
3418   cat conftest.err >&5
3419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420   (exit $ac_status); } &&
3421          { ac_try='test -z "$ac_c_werror_flag"
3422                          || test ! -s conftest.err'
3423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424   (eval $ac_try) 2>&5
3425   ac_status=$?
3426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427   (exit $ac_status); }; } &&
3428          { ac_try='test -s conftest.$ac_objext'
3429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430   (eval $ac_try) 2>&5
3431   ac_status=$?
3432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433   (exit $ac_status); }; }; then
3434   ac_cv_c_inline=$ac_kw; break
3435 else
3436   echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3438
3439 fi
3440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3441 done
3442
3443 fi
3444 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3445 echo "${ECHO_T}$ac_cv_c_inline" >&6
3446
3447
3448 case $ac_cv_c_inline in
3449   inline | yes) ;;
3450   *)
3451     case $ac_cv_c_inline in
3452       no) ac_val=;;
3453       *) ac_val=$ac_cv_c_inline;;
3454     esac
3455     cat >>confdefs.h <<_ACEOF
3456 #ifndef __cplusplus
3457 #define inline $ac_val
3458 #endif
3459 _ACEOF
3460     ;;
3461 esac
3462
3463 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3474                   inttypes.h stdint.h unistd.h
3475 do
3476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3477 echo "$as_me:$LINENO: checking for $ac_header" >&5
3478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3480   echo $ECHO_N "(cached) $ECHO_C" >&6
3481 else
3482   cat >conftest.$ac_ext <<_ACEOF
3483 /* confdefs.h.  */
3484 _ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h.  */
3488 $ac_includes_default
3489
3490 #include <$ac_header>
3491 _ACEOF
3492 rm -f conftest.$ac_objext
3493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3494   (eval $ac_compile) 2>conftest.er1
3495   ac_status=$?
3496   grep -v '^ *+' conftest.er1 >conftest.err
3497   rm -f conftest.er1
3498   cat conftest.err >&5
3499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500   (exit $ac_status); } &&
3501          { ac_try='test -z "$ac_c_werror_flag"
3502                          || test ! -s conftest.err'
3503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504   (eval $ac_try) 2>&5
3505   ac_status=$?
3506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507   (exit $ac_status); }; } &&
3508          { ac_try='test -s conftest.$ac_objext'
3509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510   (eval $ac_try) 2>&5
3511   ac_status=$?
3512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513   (exit $ac_status); }; }; then
3514   eval "$as_ac_Header=yes"
3515 else
3516   echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3518
3519 eval "$as_ac_Header=no"
3520 fi
3521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3522 fi
3523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3526   cat >>confdefs.h <<_ACEOF
3527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3528 _ACEOF
3529
3530 fi
3531
3532 done
3533
3534
3535 echo "$as_me:$LINENO: checking for off_t" >&5
3536 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3537 if test "${ac_cv_type_off_t+set}" = set; then
3538   echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540   cat >conftest.$ac_ext <<_ACEOF
3541 /* confdefs.h.  */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h.  */
3546 $ac_includes_default
3547 int
3548 main ()
3549 {
3550 if ((off_t *) 0)
3551   return 0;
3552 if (sizeof (off_t))
3553   return 0;
3554   ;
3555   return 0;
3556 }
3557 _ACEOF
3558 rm -f conftest.$ac_objext
3559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3560   (eval $ac_compile) 2>conftest.er1
3561   ac_status=$?
3562   grep -v '^ *+' conftest.er1 >conftest.err
3563   rm -f conftest.er1
3564   cat conftest.err >&5
3565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566   (exit $ac_status); } &&
3567          { ac_try='test -z "$ac_c_werror_flag"
3568                          || test ! -s conftest.err'
3569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570   (eval $ac_try) 2>&5
3571   ac_status=$?
3572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573   (exit $ac_status); }; } &&
3574          { ac_try='test -s conftest.$ac_objext'
3575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576   (eval $ac_try) 2>&5
3577   ac_status=$?
3578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579   (exit $ac_status); }; }; then
3580   ac_cv_type_off_t=yes
3581 else
3582   echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3584
3585 ac_cv_type_off_t=no
3586 fi
3587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3588 fi
3589 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3590 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3591 if test $ac_cv_type_off_t = yes; then
3592   :
3593 else
3594
3595 cat >>confdefs.h <<_ACEOF
3596 #define off_t long
3597 _ACEOF
3598
3599 fi
3600
3601 echo "$as_me:$LINENO: checking for size_t" >&5
3602 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3603 if test "${ac_cv_type_size_t+set}" = set; then
3604   echo $ECHO_N "(cached) $ECHO_C" >&6
3605 else
3606   cat >conftest.$ac_ext <<_ACEOF
3607 /* confdefs.h.  */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h.  */
3612 $ac_includes_default
3613 int
3614 main ()
3615 {
3616 if ((size_t *) 0)
3617   return 0;
3618 if (sizeof (size_t))
3619   return 0;
3620   ;
3621   return 0;
3622 }
3623 _ACEOF
3624 rm -f conftest.$ac_objext
3625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3626   (eval $ac_compile) 2>conftest.er1
3627   ac_status=$?
3628   grep -v '^ *+' conftest.er1 >conftest.err
3629   rm -f conftest.er1
3630   cat conftest.err >&5
3631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632   (exit $ac_status); } &&
3633          { ac_try='test -z "$ac_c_werror_flag"
3634                          || test ! -s conftest.err'
3635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636   (eval $ac_try) 2>&5
3637   ac_status=$?
3638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639   (exit $ac_status); }; } &&
3640          { ac_try='test -s conftest.$ac_objext'
3641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642   (eval $ac_try) 2>&5
3643   ac_status=$?
3644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645   (exit $ac_status); }; }; then
3646   ac_cv_type_size_t=yes
3647 else
3648   echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3650
3651 ac_cv_type_size_t=no
3652 fi
3653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3654 fi
3655 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3656 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3657 if test $ac_cv_type_size_t = yes; then
3658   :
3659 else
3660
3661 cat >>confdefs.h <<_ACEOF
3662 #define size_t unsigned
3663 _ACEOF
3664
3665 fi
3666
3667 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3668 # for constant arguments.  Useless!
3669 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3670 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3671 if test "${ac_cv_working_alloca_h+set}" = set; then
3672   echo $ECHO_N "(cached) $ECHO_C" >&6
3673 else
3674   cat >conftest.$ac_ext <<_ACEOF
3675 /* confdefs.h.  */
3676 _ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h.  */
3680 #include <alloca.h>
3681 int
3682 main ()
3683 {
3684 char *p = (char *) alloca (2 * sizeof (int));
3685   ;
3686   return 0;
3687 }
3688 _ACEOF
3689 rm -f conftest.$ac_objext conftest$ac_exeext
3690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3691   (eval $ac_link) 2>conftest.er1
3692   ac_status=$?
3693   grep -v '^ *+' conftest.er1 >conftest.err
3694   rm -f conftest.er1
3695   cat conftest.err >&5
3696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697   (exit $ac_status); } &&
3698          { ac_try='test -z "$ac_c_werror_flag"
3699                          || test ! -s conftest.err'
3700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701   (eval $ac_try) 2>&5
3702   ac_status=$?
3703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704   (exit $ac_status); }; } &&
3705          { ac_try='test -s conftest$ac_exeext'
3706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707   (eval $ac_try) 2>&5
3708   ac_status=$?
3709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); }; }; then
3711   ac_cv_working_alloca_h=yes
3712 else
3713   echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3715
3716 ac_cv_working_alloca_h=no
3717 fi
3718 rm -f conftest.err conftest.$ac_objext \
3719       conftest$ac_exeext conftest.$ac_ext
3720 fi
3721 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3722 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3723 if test $ac_cv_working_alloca_h = yes; then
3724
3725 cat >>confdefs.h <<\_ACEOF
3726 #define HAVE_ALLOCA_H 1
3727 _ACEOF
3728
3729 fi
3730
3731 echo "$as_me:$LINENO: checking for alloca" >&5
3732 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3733 if test "${ac_cv_func_alloca_works+set}" = set; then
3734   echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736   cat >conftest.$ac_ext <<_ACEOF
3737 /* confdefs.h.  */
3738 _ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h.  */
3742 #ifdef __GNUC__
3743 # define alloca __builtin_alloca
3744 #else
3745 # ifdef _MSC_VER
3746 #  include <malloc.h>
3747 #  define alloca _alloca
3748 # else
3749 #  if HAVE_ALLOCA_H
3750 #   include <alloca.h>
3751 #  else
3752 #   ifdef _AIX
3753  #pragma alloca
3754 #   else
3755 #    ifndef alloca /* predefined by HP cc +Olibcalls */
3756 char *alloca ();
3757 #    endif
3758 #   endif
3759 #  endif
3760 # endif
3761 #endif
3762
3763 int
3764 main ()
3765 {
3766 char *p = (char *) alloca (1);
3767   ;
3768   return 0;
3769 }
3770 _ACEOF
3771 rm -f conftest.$ac_objext conftest$ac_exeext
3772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3773   (eval $ac_link) 2>conftest.er1
3774   ac_status=$?
3775   grep -v '^ *+' conftest.er1 >conftest.err
3776   rm -f conftest.er1
3777   cat conftest.err >&5
3778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779   (exit $ac_status); } &&
3780          { ac_try='test -z "$ac_c_werror_flag"
3781                          || test ! -s conftest.err'
3782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783   (eval $ac_try) 2>&5
3784   ac_status=$?
3785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786   (exit $ac_status); }; } &&
3787          { ac_try='test -s conftest$ac_exeext'
3788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789   (eval $ac_try) 2>&5
3790   ac_status=$?
3791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792   (exit $ac_status); }; }; then
3793   ac_cv_func_alloca_works=yes
3794 else
3795   echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3797
3798 ac_cv_func_alloca_works=no
3799 fi
3800 rm -f conftest.err conftest.$ac_objext \
3801       conftest$ac_exeext conftest.$ac_ext
3802 fi
3803 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3804 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3805
3806 if test $ac_cv_func_alloca_works = yes; then
3807
3808 cat >>confdefs.h <<\_ACEOF
3809 #define HAVE_ALLOCA 1
3810 _ACEOF
3811
3812 else
3813   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3814 # that cause trouble.  Some versions do not even contain alloca or
3815 # contain a buggy version.  If you still want to use their alloca,
3816 # use ar to extract alloca.o from them instead of compiling alloca.c.
3817
3818 ALLOCA=alloca.$ac_objext
3819
3820 cat >>confdefs.h <<\_ACEOF
3821 #define C_ALLOCA 1
3822 _ACEOF
3823
3824
3825 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3826 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3827 if test "${ac_cv_os_cray+set}" = set; then
3828   echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830   cat >conftest.$ac_ext <<_ACEOF
3831 /* confdefs.h.  */
3832 _ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h.  */
3836 #if defined(CRAY) && ! defined(CRAY2)
3837 webecray
3838 #else
3839 wenotbecray
3840 #endif
3841
3842 _ACEOF
3843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3844   $EGREP "webecray" >/dev/null 2>&1; then
3845   ac_cv_os_cray=yes
3846 else
3847   ac_cv_os_cray=no
3848 fi
3849 rm -f conftest*
3850
3851 fi
3852 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3853 echo "${ECHO_T}$ac_cv_os_cray" >&6
3854 if test $ac_cv_os_cray = yes; then
3855   for ac_func in _getb67 GETB67 getb67; do
3856     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3857 echo "$as_me:$LINENO: checking for $ac_func" >&5
3858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3859 if eval "test \"\${$as_ac_var+set}\" = set"; then
3860   echo $ECHO_N "(cached) $ECHO_C" >&6
3861 else
3862   cat >conftest.$ac_ext <<_ACEOF
3863 /* confdefs.h.  */
3864 _ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h.  */
3868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3869    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3870 #define $ac_func innocuous_$ac_func
3871
3872 /* System header to define __stub macros and hopefully few prototypes,
3873     which can conflict with char $ac_func (); below.
3874     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3875     <limits.h> exists even on freestanding compilers.  */
3876
3877 #ifdef __STDC__
3878 # include <limits.h>
3879 #else
3880 # include <assert.h>
3881 #endif
3882
3883 #undef $ac_func
3884
3885 /* Override any gcc2 internal prototype to avoid an error.  */
3886 #ifdef __cplusplus
3887 extern "C"
3888 {
3889 #endif
3890 /* We use char because int might match the return type of a gcc2
3891    builtin and then its argument prototype would still apply.  */
3892 char $ac_func ();
3893 /* The GNU C library defines this for functions which it implements
3894     to always fail with ENOSYS.  Some functions are actually named
3895     something starting with __ and the normal name is an alias.  */
3896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3897 choke me
3898 #else
3899 char (*f) () = $ac_func;
3900 #endif
3901 #ifdef __cplusplus
3902 }
3903 #endif
3904
3905 int
3906 main ()
3907 {
3908 return f != $ac_func;
3909   ;
3910   return 0;
3911 }
3912 _ACEOF
3913 rm -f conftest.$ac_objext conftest$ac_exeext
3914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3915   (eval $ac_link) 2>conftest.er1
3916   ac_status=$?
3917   grep -v '^ *+' conftest.er1 >conftest.err
3918   rm -f conftest.er1
3919   cat conftest.err >&5
3920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921   (exit $ac_status); } &&
3922          { ac_try='test -z "$ac_c_werror_flag"
3923                          || test ! -s conftest.err'
3924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925   (eval $ac_try) 2>&5
3926   ac_status=$?
3927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928   (exit $ac_status); }; } &&
3929          { ac_try='test -s conftest$ac_exeext'
3930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931   (eval $ac_try) 2>&5
3932   ac_status=$?
3933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934   (exit $ac_status); }; }; then
3935   eval "$as_ac_var=yes"
3936 else
3937   echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3939
3940 eval "$as_ac_var=no"
3941 fi
3942 rm -f conftest.err conftest.$ac_objext \
3943       conftest$ac_exeext conftest.$ac_ext
3944 fi
3945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3946 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3947 if test `eval echo '${'$as_ac_var'}'` = yes; then
3948
3949 cat >>confdefs.h <<_ACEOF
3950 #define CRAY_STACKSEG_END $ac_func
3951 _ACEOF
3952
3953     break
3954 fi
3955
3956   done
3957 fi
3958
3959 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3960 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3961 if test "${ac_cv_c_stack_direction+set}" = set; then
3962   echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964   if test "$cross_compiling" = yes; then
3965   ac_cv_c_stack_direction=0
3966 else
3967   cat >conftest.$ac_ext <<_ACEOF
3968 /* confdefs.h.  */
3969 _ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h.  */
3973 int
3974 find_stack_direction ()
3975 {
3976   static char *addr = 0;
3977   auto char dummy;
3978   if (addr == 0)
3979     {
3980       addr = &dummy;
3981       return find_stack_direction ();
3982     }
3983   else
3984     return (&dummy > addr) ? 1 : -1;
3985 }
3986
3987 int
3988 main ()
3989 {
3990   exit (find_stack_direction () < 0);
3991 }
3992 _ACEOF
3993 rm -f conftest$ac_exeext
3994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3995   (eval $ac_link) 2>&5
3996   ac_status=$?
3997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000   (eval $ac_try) 2>&5
4001   ac_status=$?
4002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003   (exit $ac_status); }; }; then
4004   ac_cv_c_stack_direction=1
4005 else
4006   echo "$as_me: program exited with status $ac_status" >&5
4007 echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4009
4010 ( exit $ac_status )
4011 ac_cv_c_stack_direction=-1
4012 fi
4013 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4014 fi
4015 fi
4016 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4017 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4018
4019 cat >>confdefs.h <<_ACEOF
4020 #define STACK_DIRECTION $ac_cv_c_stack_direction
4021 _ACEOF
4022
4023
4024 fi
4025
4026
4027
4028 for ac_header in stdlib.h unistd.h
4029 do
4030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4032   echo "$as_me:$LINENO: checking for $ac_header" >&5
4033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4035   echo $ECHO_N "(cached) $ECHO_C" >&6
4036 fi
4037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4039 else
4040   # Is the header compilable?
4041 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4043 cat >conftest.$ac_ext <<_ACEOF
4044 /* confdefs.h.  */
4045 _ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h.  */
4049 $ac_includes_default
4050 #include <$ac_header>
4051 _ACEOF
4052 rm -f conftest.$ac_objext
4053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4054   (eval $ac_compile) 2>conftest.er1
4055   ac_status=$?
4056   grep -v '^ *+' conftest.er1 >conftest.err
4057   rm -f conftest.er1
4058   cat conftest.err >&5
4059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060   (exit $ac_status); } &&
4061          { ac_try='test -z "$ac_c_werror_flag"
4062                          || test ! -s conftest.err'
4063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064   (eval $ac_try) 2>&5
4065   ac_status=$?
4066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067   (exit $ac_status); }; } &&
4068          { ac_try='test -s conftest.$ac_objext'
4069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070   (eval $ac_try) 2>&5
4071   ac_status=$?
4072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073   (exit $ac_status); }; }; then
4074   ac_header_compiler=yes
4075 else
4076   echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4078
4079 ac_header_compiler=no
4080 fi
4081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4082 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4083 echo "${ECHO_T}$ac_header_compiler" >&6
4084
4085 # Is the header present?
4086 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4088 cat >conftest.$ac_ext <<_ACEOF
4089 /* confdefs.h.  */
4090 _ACEOF
4091 cat confdefs.h >>conftest.$ac_ext
4092 cat >>conftest.$ac_ext <<_ACEOF
4093 /* end confdefs.h.  */
4094 #include <$ac_header>
4095 _ACEOF
4096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4097   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4098   ac_status=$?
4099   grep -v '^ *+' conftest.er1 >conftest.err
4100   rm -f conftest.er1
4101   cat conftest.err >&5
4102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103   (exit $ac_status); } >/dev/null; then
4104   if test -s conftest.err; then
4105     ac_cpp_err=$ac_c_preproc_warn_flag
4106     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4107   else
4108     ac_cpp_err=
4109   fi
4110 else
4111   ac_cpp_err=yes
4112 fi
4113 if test -z "$ac_cpp_err"; then
4114   ac_header_preproc=yes
4115 else
4116   echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.$ac_ext >&5
4118
4119   ac_header_preproc=no
4120 fi
4121 rm -f conftest.err conftest.$ac_ext
4122 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4123 echo "${ECHO_T}$ac_header_preproc" >&6
4124
4125 # So?  What about this header?
4126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4127   yes:no: )
4128     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4130     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4132     ac_header_preproc=yes
4133     ;;
4134   no:yes:* )
4135     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4137     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4138 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4139     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4141     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4142 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4143     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4145     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4147     (
4148       cat <<\_ASBOX
4149 ## ------------------------------------------ ##
4150 ## Report this to the AC_PACKAGE_NAME lists.  ##
4151 ## ------------------------------------------ ##
4152 _ASBOX
4153     ) |
4154       sed "s/^/$as_me: WARNING:     /" >&2
4155     ;;
4156 esac
4157 echo "$as_me:$LINENO: checking for $ac_header" >&5
4158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4160   echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162   eval "$as_ac_Header=\$ac_header_preproc"
4163 fi
4164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4166
4167 fi
4168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4169   cat >>confdefs.h <<_ACEOF
4170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4171 _ACEOF
4172
4173 fi
4174
4175 done
4176
4177
4178 for ac_func in getpagesize
4179 do
4180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4181 echo "$as_me:$LINENO: checking for $ac_func" >&5
4182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4183 if eval "test \"\${$as_ac_var+set}\" = set"; then
4184   echo $ECHO_N "(cached) $ECHO_C" >&6
4185 else
4186   cat >conftest.$ac_ext <<_ACEOF
4187 /* confdefs.h.  */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h.  */
4192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4193    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4194 #define $ac_func innocuous_$ac_func
4195
4196 /* System header to define __stub macros and hopefully few prototypes,
4197     which can conflict with char $ac_func (); below.
4198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4199     <limits.h> exists even on freestanding compilers.  */
4200
4201 #ifdef __STDC__
4202 # include <limits.h>
4203 #else
4204 # include <assert.h>
4205 #endif
4206
4207 #undef $ac_func
4208
4209 /* Override any gcc2 internal prototype to avoid an error.  */
4210 #ifdef __cplusplus
4211 extern "C"
4212 {
4213 #endif
4214 /* We use char because int might match the return type of a gcc2
4215    builtin and then its argument prototype would still apply.  */
4216 char $ac_func ();
4217 /* The GNU C library defines this for functions which it implements
4218     to always fail with ENOSYS.  Some functions are actually named
4219     something starting with __ and the normal name is an alias.  */
4220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4221 choke me
4222 #else
4223 char (*f) () = $ac_func;
4224 #endif
4225 #ifdef __cplusplus
4226 }
4227 #endif
4228
4229 int
4230 main ()
4231 {
4232 return f != $ac_func;
4233   ;
4234   return 0;
4235 }
4236 _ACEOF
4237 rm -f conftest.$ac_objext conftest$ac_exeext
4238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4239   (eval $ac_link) 2>conftest.er1
4240   ac_status=$?
4241   grep -v '^ *+' conftest.er1 >conftest.err
4242   rm -f conftest.er1
4243   cat conftest.err >&5
4244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245   (exit $ac_status); } &&
4246          { ac_try='test -z "$ac_c_werror_flag"
4247                          || test ! -s conftest.err'
4248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249   (eval $ac_try) 2>&5
4250   ac_status=$?
4251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252   (exit $ac_status); }; } &&
4253          { ac_try='test -s conftest$ac_exeext'
4254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255   (eval $ac_try) 2>&5
4256   ac_status=$?
4257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258   (exit $ac_status); }; }; then
4259   eval "$as_ac_var=yes"
4260 else
4261   echo "$as_me: failed program was:" >&5
4262 sed 's/^/| /' conftest.$ac_ext >&5
4263
4264 eval "$as_ac_var=no"
4265 fi
4266 rm -f conftest.err conftest.$ac_objext \
4267       conftest$ac_exeext conftest.$ac_ext
4268 fi
4269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4271 if test `eval echo '${'$as_ac_var'}'` = yes; then
4272   cat >>confdefs.h <<_ACEOF
4273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4274 _ACEOF
4275
4276 fi
4277 done
4278
4279 echo "$as_me:$LINENO: checking for working mmap" >&5
4280 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4281 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4282   echo $ECHO_N "(cached) $ECHO_C" >&6
4283 else
4284   if test "$cross_compiling" = yes; then
4285   ac_cv_func_mmap_fixed_mapped=no
4286 else
4287   cat >conftest.$ac_ext <<_ACEOF
4288 /* confdefs.h.  */
4289 _ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h.  */
4293 $ac_includes_default
4294 /* malloc might have been renamed as rpl_malloc. */
4295 #undef malloc
4296
4297 /* Thanks to Mike Haertel and Jim Avera for this test.
4298    Here is a matrix of mmap possibilities:
4299         mmap private not fixed
4300         mmap private fixed at somewhere currently unmapped
4301         mmap private fixed at somewhere already mapped
4302         mmap shared not fixed
4303         mmap shared fixed at somewhere currently unmapped
4304         mmap shared fixed at somewhere already mapped
4305    For private mappings, we should verify that changes cannot be read()
4306    back from the file, nor mmap's back from the file at a different
4307    address.  (There have been systems where private was not correctly
4308    implemented like the infamous i386 svr4.0, and systems where the
4309    VM page cache was not coherent with the file system buffer cache
4310    like early versions of FreeBSD and possibly contemporary NetBSD.)
4311    For shared mappings, we should conversely verify that changes get
4312    propagated back to all the places they're supposed to be.
4313
4314    Grep wants private fixed already mapped.
4315    The main things grep needs to know about mmap are:
4316    * does it exist and is it safe to write into the mmap'd area
4317    * how to use it (BSD variants)  */
4318
4319 #include <fcntl.h>
4320 #include <sys/mman.h>
4321
4322 #if !STDC_HEADERS && !HAVE_STDLIB_H
4323 char *malloc ();
4324 #endif
4325
4326 /* This mess was copied from the GNU getpagesize.h.  */
4327 #if !HAVE_GETPAGESIZE
4328 /* Assume that all systems that can run configure have sys/param.h.  */
4329 # if !HAVE_SYS_PARAM_H
4330 #  define HAVE_SYS_PARAM_H 1
4331 # endif
4332
4333 # ifdef _SC_PAGESIZE
4334 #  define getpagesize() sysconf(_SC_PAGESIZE)
4335 # else /* no _SC_PAGESIZE */
4336 #  if HAVE_SYS_PARAM_H
4337 #   include <sys/param.h>
4338 #   ifdef EXEC_PAGESIZE
4339 #    define getpagesize() EXEC_PAGESIZE
4340 #   else /* no EXEC_PAGESIZE */
4341 #    ifdef NBPG
4342 #     define getpagesize() NBPG * CLSIZE
4343 #     ifndef CLSIZE
4344 #      define CLSIZE 1
4345 #     endif /* no CLSIZE */
4346 #    else /* no NBPG */
4347 #     ifdef NBPC
4348 #      define getpagesize() NBPC
4349 #     else /* no NBPC */
4350 #      ifdef PAGESIZE
4351 #       define getpagesize() PAGESIZE
4352 #      endif /* PAGESIZE */
4353 #     endif /* no NBPC */
4354 #    endif /* no NBPG */
4355 #   endif /* no EXEC_PAGESIZE */
4356 #  else /* no HAVE_SYS_PARAM_H */
4357 #   define getpagesize() 8192   /* punt totally */
4358 #  endif /* no HAVE_SYS_PARAM_H */
4359 # endif /* no _SC_PAGESIZE */
4360
4361 #endif /* no HAVE_GETPAGESIZE */
4362
4363 int
4364 main ()
4365 {
4366   char *data, *data2, *data3;
4367   int i, pagesize;
4368   int fd;
4369
4370   pagesize = getpagesize ();
4371
4372   /* First, make a file with some known garbage in it. */
4373   data = (char *) malloc (pagesize);
4374   if (!data)
4375     exit (1);
4376   for (i = 0; i < pagesize; ++i)
4377     *(data + i) = rand ();
4378   umask (0);
4379   fd = creat ("conftest.mmap", 0600);
4380   if (fd < 0)
4381     exit (1);
4382   if (write (fd, data, pagesize) != pagesize)
4383     exit (1);
4384   close (fd);
4385
4386   /* Next, try to mmap the file at a fixed address which already has
4387      something else allocated at it.  If we can, also make sure that
4388      we see the same garbage.  */
4389   fd = open ("conftest.mmap", O_RDWR);
4390   if (fd < 0)
4391     exit (1);
4392   data2 = (char *) malloc (2 * pagesize);
4393   if (!data2)
4394     exit (1);
4395   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4396   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4397                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
4398     exit (1);
4399   for (i = 0; i < pagesize; ++i)
4400     if (*(data + i) != *(data2 + i))
4401       exit (1);
4402
4403   /* Finally, make sure that changes to the mapped area do not
4404      percolate back to the file as seen by read().  (This is a bug on
4405      some variants of i386 svr4.0.)  */
4406   for (i = 0; i < pagesize; ++i)
4407     *(data2 + i) = *(data2 + i) + 1;
4408   data3 = (char *) malloc (pagesize);
4409   if (!data3)
4410     exit (1);
4411   if (read (fd, data3, pagesize) != pagesize)
4412     exit (1);
4413   for (i = 0; i < pagesize; ++i)
4414     if (*(data + i) != *(data3 + i))
4415       exit (1);
4416   close (fd);
4417   exit (0);
4418 }
4419 _ACEOF
4420 rm -f conftest$ac_exeext
4421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4422   (eval $ac_link) 2>&5
4423   ac_status=$?
4424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427   (eval $ac_try) 2>&5
4428   ac_status=$?
4429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); }; }; then
4431   ac_cv_func_mmap_fixed_mapped=yes
4432 else
4433   echo "$as_me: program exited with status $ac_status" >&5
4434 echo "$as_me: failed program was:" >&5
4435 sed 's/^/| /' conftest.$ac_ext >&5
4436
4437 ( exit $ac_status )
4438 ac_cv_func_mmap_fixed_mapped=no
4439 fi
4440 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4441 fi
4442 fi
4443 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4444 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4445 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4446
4447 cat >>confdefs.h <<\_ACEOF
4448 #define HAVE_MMAP 1
4449 _ACEOF
4450
4451 fi
4452 rm -f conftest.mmap
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4465 unistd.h values.h sys/param.h
4466 do
4467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4469   echo "$as_me:$LINENO: checking for $ac_header" >&5
4470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4472   echo $ECHO_N "(cached) $ECHO_C" >&6
4473 fi
4474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4476 else
4477   # Is the header compilable?
4478 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4480 cat >conftest.$ac_ext <<_ACEOF
4481 /* confdefs.h.  */
4482 _ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h.  */
4486 $ac_includes_default
4487 #include <$ac_header>
4488 _ACEOF
4489 rm -f conftest.$ac_objext
4490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4491   (eval $ac_compile) 2>conftest.er1
4492   ac_status=$?
4493   grep -v '^ *+' conftest.er1 >conftest.err
4494   rm -f conftest.er1
4495   cat conftest.err >&5
4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); } &&
4498          { ac_try='test -z "$ac_c_werror_flag"
4499                          || test ! -s conftest.err'
4500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501   (eval $ac_try) 2>&5
4502   ac_status=$?
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); }; } &&
4505          { ac_try='test -s conftest.$ac_objext'
4506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507   (eval $ac_try) 2>&5
4508   ac_status=$?
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); }; }; then
4511   ac_header_compiler=yes
4512 else
4513   echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4515
4516 ac_header_compiler=no
4517 fi
4518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4520 echo "${ECHO_T}$ac_header_compiler" >&6
4521
4522 # Is the header present?
4523 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4525 cat >conftest.$ac_ext <<_ACEOF
4526 /* confdefs.h.  */
4527 _ACEOF
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h.  */
4531 #include <$ac_header>
4532 _ACEOF
4533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4534   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4535   ac_status=$?
4536   grep -v '^ *+' conftest.er1 >conftest.err
4537   rm -f conftest.er1
4538   cat conftest.err >&5
4539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540   (exit $ac_status); } >/dev/null; then
4541   if test -s conftest.err; then
4542     ac_cpp_err=$ac_c_preproc_warn_flag
4543     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4544   else
4545     ac_cpp_err=
4546   fi
4547 else
4548   ac_cpp_err=yes
4549 fi
4550 if test -z "$ac_cpp_err"; then
4551   ac_header_preproc=yes
4552 else
4553   echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4555
4556   ac_header_preproc=no
4557 fi
4558 rm -f conftest.err conftest.$ac_ext
4559 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4560 echo "${ECHO_T}$ac_header_preproc" >&6
4561
4562 # So?  What about this header?
4563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4564   yes:no: )
4565     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4567     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4569     ac_header_preproc=yes
4570     ;;
4571   no:yes:* )
4572     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4574     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4575 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4576     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4578     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4579 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4580     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4582     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4584     (
4585       cat <<\_ASBOX
4586 ## ------------------------------------------ ##
4587 ## Report this to the AC_PACKAGE_NAME lists.  ##
4588 ## ------------------------------------------ ##
4589 _ASBOX
4590     ) |
4591       sed "s/^/$as_me: WARNING:     /" >&2
4592     ;;
4593 esac
4594 echo "$as_me:$LINENO: checking for $ac_header" >&5
4595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4597   echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599   eval "$as_ac_Header=\$ac_header_preproc"
4600 fi
4601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4603
4604 fi
4605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4606   cat >>confdefs.h <<_ACEOF
4607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4608 _ACEOF
4609
4610 fi
4611
4612 done
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4625 __argz_count __argz_stringify __argz_next
4626 do
4627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4628 echo "$as_me:$LINENO: checking for $ac_func" >&5
4629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4630 if eval "test \"\${$as_ac_var+set}\" = set"; then
4631   echo $ECHO_N "(cached) $ECHO_C" >&6
4632 else
4633   cat >conftest.$ac_ext <<_ACEOF
4634 /* confdefs.h.  */
4635 _ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h.  */
4639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4640    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4641 #define $ac_func innocuous_$ac_func
4642
4643 /* System header to define __stub macros and hopefully few prototypes,
4644     which can conflict with char $ac_func (); below.
4645     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4646     <limits.h> exists even on freestanding compilers.  */
4647
4648 #ifdef __STDC__
4649 # include <limits.h>
4650 #else
4651 # include <assert.h>
4652 #endif
4653
4654 #undef $ac_func
4655
4656 /* Override any gcc2 internal prototype to avoid an error.  */
4657 #ifdef __cplusplus
4658 extern "C"
4659 {
4660 #endif
4661 /* We use char because int might match the return type of a gcc2
4662    builtin and then its argument prototype would still apply.  */
4663 char $ac_func ();
4664 /* The GNU C library defines this for functions which it implements
4665     to always fail with ENOSYS.  Some functions are actually named
4666     something starting with __ and the normal name is an alias.  */
4667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4668 choke me
4669 #else
4670 char (*f) () = $ac_func;
4671 #endif
4672 #ifdef __cplusplus
4673 }
4674 #endif
4675
4676 int
4677 main ()
4678 {
4679 return f != $ac_func;
4680   ;
4681   return 0;
4682 }
4683 _ACEOF
4684 rm -f conftest.$ac_objext conftest$ac_exeext
4685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4686   (eval $ac_link) 2>conftest.er1
4687   ac_status=$?
4688   grep -v '^ *+' conftest.er1 >conftest.err
4689   rm -f conftest.er1
4690   cat conftest.err >&5
4691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692   (exit $ac_status); } &&
4693          { ac_try='test -z "$ac_c_werror_flag"
4694                          || test ! -s conftest.err'
4695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696   (eval $ac_try) 2>&5
4697   ac_status=$?
4698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699   (exit $ac_status); }; } &&
4700          { ac_try='test -s conftest$ac_exeext'
4701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702   (eval $ac_try) 2>&5
4703   ac_status=$?
4704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705   (exit $ac_status); }; }; then
4706   eval "$as_ac_var=yes"
4707 else
4708   echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.$ac_ext >&5
4710
4711 eval "$as_ac_var=no"
4712 fi
4713 rm -f conftest.err conftest.$ac_objext \
4714       conftest$ac_exeext conftest.$ac_ext
4715 fi
4716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4717 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4718 if test `eval echo '${'$as_ac_var'}'` = yes; then
4719   cat >>confdefs.h <<_ACEOF
4720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4721 _ACEOF
4722
4723 fi
4724 done
4725
4726
4727    if test "${ac_cv_func_stpcpy+set}" != "set"; then
4728
4729 for ac_func in stpcpy
4730 do
4731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4732 echo "$as_me:$LINENO: checking for $ac_func" >&5
4733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4734 if eval "test \"\${$as_ac_var+set}\" = set"; then
4735   echo $ECHO_N "(cached) $ECHO_C" >&6
4736 else
4737   cat >conftest.$ac_ext <<_ACEOF
4738 /* confdefs.h.  */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h.  */
4743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4744    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4745 #define $ac_func innocuous_$ac_func
4746
4747 /* System header to define __stub macros and hopefully few prototypes,
4748     which can conflict with char $ac_func (); below.
4749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4750     <limits.h> exists even on freestanding compilers.  */
4751
4752 #ifdef __STDC__
4753 # include <limits.h>
4754 #else
4755 # include <assert.h>
4756 #endif
4757
4758 #undef $ac_func
4759
4760 /* Override any gcc2 internal prototype to avoid an error.  */
4761 #ifdef __cplusplus
4762 extern "C"
4763 {
4764 #endif
4765 /* We use char because int might match the return type of a gcc2
4766    builtin and then its argument prototype would still apply.  */
4767 char $ac_func ();
4768 /* The GNU C library defines this for functions which it implements
4769     to always fail with ENOSYS.  Some functions are actually named
4770     something starting with __ and the normal name is an alias.  */
4771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4772 choke me
4773 #else
4774 char (*f) () = $ac_func;
4775 #endif
4776 #ifdef __cplusplus
4777 }
4778 #endif
4779
4780 int
4781 main ()
4782 {
4783 return f != $ac_func;
4784   ;
4785   return 0;
4786 }
4787 _ACEOF
4788 rm -f conftest.$ac_objext conftest$ac_exeext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4790   (eval $ac_link) 2>conftest.er1
4791   ac_status=$?
4792   grep -v '^ *+' conftest.er1 >conftest.err
4793   rm -f conftest.er1
4794   cat conftest.err >&5
4795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796   (exit $ac_status); } &&
4797          { ac_try='test -z "$ac_c_werror_flag"
4798                          || test ! -s conftest.err'
4799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800   (eval $ac_try) 2>&5
4801   ac_status=$?
4802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803   (exit $ac_status); }; } &&
4804          { ac_try='test -s conftest$ac_exeext'
4805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806   (eval $ac_try) 2>&5
4807   ac_status=$?
4808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809   (exit $ac_status); }; }; then
4810   eval "$as_ac_var=yes"
4811 else
4812   echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4814
4815 eval "$as_ac_var=no"
4816 fi
4817 rm -f conftest.err conftest.$ac_objext \
4818       conftest$ac_exeext conftest.$ac_ext
4819 fi
4820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4821 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4822 if test `eval echo '${'$as_ac_var'}'` = yes; then
4823   cat >>confdefs.h <<_ACEOF
4824 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4825 _ACEOF
4826
4827 fi
4828 done
4829
4830    fi
4831    if test "${ac_cv_func_stpcpy}" = "yes"; then
4832      cat >>confdefs.h <<\_ACEOF
4833 #define HAVE_STPCPY 1
4834 _ACEOF
4835
4836    fi
4837
4838    if test $ac_cv_header_locale_h = yes; then
4839     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4840 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4841 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4842   echo $ECHO_N "(cached) $ECHO_C" >&6
4843 else
4844   cat >conftest.$ac_ext <<_ACEOF
4845 /* confdefs.h.  */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h.  */
4850 #include <locale.h>
4851 int
4852 main ()
4853 {
4854 return LC_MESSAGES
4855   ;
4856   return 0;
4857 }
4858 _ACEOF
4859 rm -f conftest.$ac_objext conftest$ac_exeext
4860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4861   (eval $ac_link) 2>conftest.er1
4862   ac_status=$?
4863   grep -v '^ *+' conftest.er1 >conftest.err
4864   rm -f conftest.er1
4865   cat conftest.err >&5
4866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867   (exit $ac_status); } &&
4868          { ac_try='test -z "$ac_c_werror_flag"
4869                          || test ! -s conftest.err'
4870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871   (eval $ac_try) 2>&5
4872   ac_status=$?
4873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874   (exit $ac_status); }; } &&
4875          { ac_try='test -s conftest$ac_exeext'
4876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877   (eval $ac_try) 2>&5
4878   ac_status=$?
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); }; }; then
4881   am_cv_val_LC_MESSAGES=yes
4882 else
4883   echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4885
4886 am_cv_val_LC_MESSAGES=no
4887 fi
4888 rm -f conftest.err conftest.$ac_objext \
4889       conftest$ac_exeext conftest.$ac_ext
4890 fi
4891 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4892 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4893     if test $am_cv_val_LC_MESSAGES = yes; then
4894       cat >>confdefs.h <<\_ACEOF
4895 #define HAVE_LC_MESSAGES 1
4896 _ACEOF
4897
4898     fi
4899   fi
4900    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4901 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4902         # Check whether --enable-nls or --disable-nls was given.
4903 if test "${enable_nls+set}" = set; then
4904   enableval="$enable_nls"
4905   USE_NLS=$enableval
4906 else
4907   USE_NLS=yes
4908 fi;
4909     echo "$as_me:$LINENO: result: $USE_NLS" >&5
4910 echo "${ECHO_T}$USE_NLS" >&6
4911
4912
4913     USE_INCLUDED_LIBINTL=no
4914
4915         if test "$USE_NLS" = "yes"; then
4916       cat >>confdefs.h <<\_ACEOF
4917 #define ENABLE_NLS 1
4918 _ACEOF
4919
4920       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4921 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4922
4923 # Check whether --with-included-gettext or --without-included-gettext was given.
4924 if test "${with_included_gettext+set}" = set; then
4925   withval="$with_included_gettext"
4926   nls_cv_force_use_gnu_gettext=$withval
4927 else
4928   nls_cv_force_use_gnu_gettext=no
4929 fi;
4930       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4931 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4932
4933       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4934       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4935                                         nls_cv_header_intl=
4936         nls_cv_header_libgt=
4937         CATOBJEXT=NONE
4938
4939         if test "${ac_cv_header_libintl_h+set}" = set; then
4940   echo "$as_me:$LINENO: checking for libintl.h" >&5
4941 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4942 if test "${ac_cv_header_libintl_h+set}" = set; then
4943   echo $ECHO_N "(cached) $ECHO_C" >&6
4944 fi
4945 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4946 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4947 else
4948   # Is the header compilable?
4949 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4950 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4951 cat >conftest.$ac_ext <<_ACEOF
4952 /* confdefs.h.  */
4953 _ACEOF
4954 cat confdefs.h >>conftest.$ac_ext
4955 cat >>conftest.$ac_ext <<_ACEOF
4956 /* end confdefs.h.  */
4957 $ac_includes_default
4958 #include <libintl.h>
4959 _ACEOF
4960 rm -f conftest.$ac_objext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4962   (eval $ac_compile) 2>conftest.er1
4963   ac_status=$?
4964   grep -v '^ *+' conftest.er1 >conftest.err
4965   rm -f conftest.er1
4966   cat conftest.err >&5
4967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968   (exit $ac_status); } &&
4969          { ac_try='test -z "$ac_c_werror_flag"
4970                          || test ! -s conftest.err'
4971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972   (eval $ac_try) 2>&5
4973   ac_status=$?
4974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975   (exit $ac_status); }; } &&
4976          { ac_try='test -s conftest.$ac_objext'
4977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978   (eval $ac_try) 2>&5
4979   ac_status=$?
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); }; }; then
4982   ac_header_compiler=yes
4983 else
4984   echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4986
4987 ac_header_compiler=no
4988 fi
4989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4990 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4991 echo "${ECHO_T}$ac_header_compiler" >&6
4992
4993 # Is the header present?
4994 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4995 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4996 cat >conftest.$ac_ext <<_ACEOF
4997 /* confdefs.h.  */
4998 _ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h.  */
5002 #include <libintl.h>
5003 _ACEOF
5004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5005   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5006   ac_status=$?
5007   grep -v '^ *+' conftest.er1 >conftest.err
5008   rm -f conftest.er1
5009   cat conftest.err >&5
5010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011   (exit $ac_status); } >/dev/null; then
5012   if test -s conftest.err; then
5013     ac_cpp_err=$ac_c_preproc_warn_flag
5014     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5015   else
5016     ac_cpp_err=
5017   fi
5018 else
5019   ac_cpp_err=yes
5020 fi
5021 if test -z "$ac_cpp_err"; then
5022   ac_header_preproc=yes
5023 else
5024   echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5026
5027   ac_header_preproc=no
5028 fi
5029 rm -f conftest.err conftest.$ac_ext
5030 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5031 echo "${ECHO_T}$ac_header_preproc" >&6
5032
5033 # So?  What about this header?
5034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5035   yes:no: )
5036     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5037 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5038     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5039 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5040     ac_header_preproc=yes
5041     ;;
5042   no:yes:* )
5043     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5044 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5045     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
5046 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
5047     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5048 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5049     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
5050 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5051     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5052 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5053     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5054 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5055     (
5056       cat <<\_ASBOX
5057 ## ------------------------------------------ ##
5058 ## Report this to the AC_PACKAGE_NAME lists.  ##
5059 ## ------------------------------------------ ##
5060 _ASBOX
5061     ) |
5062       sed "s/^/$as_me: WARNING:     /" >&2
5063     ;;
5064 esac
5065 echo "$as_me:$LINENO: checking for libintl.h" >&5
5066 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5067 if test "${ac_cv_header_libintl_h+set}" = set; then
5068   echo $ECHO_N "(cached) $ECHO_C" >&6
5069 else
5070   ac_cv_header_libintl_h=$ac_header_preproc
5071 fi
5072 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5073 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5074
5075 fi
5076 if test $ac_cv_header_libintl_h = yes; then
5077   echo "$as_me:$LINENO: checking for gettext in libc" >&5
5078 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5079 if test "${gt_cv_func_gettext_libc+set}" = set; then
5080   echo $ECHO_N "(cached) $ECHO_C" >&6
5081 else
5082   cat >conftest.$ac_ext <<_ACEOF
5083 /* confdefs.h.  */
5084 _ACEOF
5085 cat confdefs.h >>conftest.$ac_ext
5086 cat >>conftest.$ac_ext <<_ACEOF
5087 /* end confdefs.h.  */
5088 #include <libintl.h>
5089 int
5090 main ()
5091 {
5092 return (int) gettext ("")
5093   ;
5094   return 0;
5095 }
5096 _ACEOF
5097 rm -f conftest.$ac_objext conftest$ac_exeext
5098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5099   (eval $ac_link) 2>conftest.er1
5100   ac_status=$?
5101   grep -v '^ *+' conftest.er1 >conftest.err
5102   rm -f conftest.er1
5103   cat conftest.err >&5
5104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105   (exit $ac_status); } &&
5106          { ac_try='test -z "$ac_c_werror_flag"
5107                          || test ! -s conftest.err'
5108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109   (eval $ac_try) 2>&5
5110   ac_status=$?
5111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112   (exit $ac_status); }; } &&
5113          { ac_try='test -s conftest$ac_exeext'
5114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115   (eval $ac_try) 2>&5
5116   ac_status=$?
5117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118   (exit $ac_status); }; }; then
5119   gt_cv_func_gettext_libc=yes
5120 else
5121   echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.$ac_ext >&5
5123
5124 gt_cv_func_gettext_libc=no
5125 fi
5126 rm -f conftest.err conftest.$ac_objext \
5127       conftest$ac_exeext conftest.$ac_ext
5128 fi
5129 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5130 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5131
5132            if test "$gt_cv_func_gettext_libc" != "yes"; then
5133              echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5134 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5135 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5136   echo $ECHO_N "(cached) $ECHO_C" >&6
5137 else
5138   ac_check_lib_save_LIBS=$LIBS
5139 LIBS="-lintl  $LIBS"
5140 cat >conftest.$ac_ext <<_ACEOF
5141 /* confdefs.h.  */
5142 _ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h.  */
5146
5147 /* Override any gcc2 internal prototype to avoid an error.  */
5148 #ifdef __cplusplus
5149 extern "C"
5150 #endif
5151 /* We use char because int might match the return type of a gcc2
5152    builtin and then its argument prototype would still apply.  */
5153 char bindtextdomain ();
5154 int
5155 main ()
5156 {
5157 bindtextdomain ();
5158   ;
5159   return 0;
5160 }
5161 _ACEOF
5162 rm -f conftest.$ac_objext conftest$ac_exeext
5163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5164   (eval $ac_link) 2>conftest.er1
5165   ac_status=$?
5166   grep -v '^ *+' conftest.er1 >conftest.err
5167   rm -f conftest.er1
5168   cat conftest.err >&5
5169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170   (exit $ac_status); } &&
5171          { ac_try='test -z "$ac_c_werror_flag"
5172                          || test ! -s conftest.err'
5173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5174   (eval $ac_try) 2>&5
5175   ac_status=$?
5176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177   (exit $ac_status); }; } &&
5178          { ac_try='test -s conftest$ac_exeext'
5179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180   (eval $ac_try) 2>&5
5181   ac_status=$?
5182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183   (exit $ac_status); }; }; then
5184   ac_cv_lib_intl_bindtextdomain=yes
5185 else
5186   echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5188
5189 ac_cv_lib_intl_bindtextdomain=no
5190 fi
5191 rm -f conftest.err conftest.$ac_objext \
5192       conftest$ac_exeext conftest.$ac_ext
5193 LIBS=$ac_check_lib_save_LIBS
5194 fi
5195 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5196 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5197 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5198   echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5199 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5200 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5201   echo $ECHO_N "(cached) $ECHO_C" >&6
5202 else
5203   cat >conftest.$ac_ext <<_ACEOF
5204 /* confdefs.h.  */
5205 _ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h.  */
5209
5210 int
5211 main ()
5212 {
5213 return (int) gettext ("")
5214   ;
5215   return 0;
5216 }
5217 _ACEOF
5218 rm -f conftest.$ac_objext conftest$ac_exeext
5219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5220   (eval $ac_link) 2>conftest.er1
5221   ac_status=$?
5222   grep -v '^ *+' conftest.er1 >conftest.err
5223   rm -f conftest.er1
5224   cat conftest.err >&5
5225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226   (exit $ac_status); } &&
5227          { ac_try='test -z "$ac_c_werror_flag"
5228                          || test ! -s conftest.err'
5229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230   (eval $ac_try) 2>&5
5231   ac_status=$?
5232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233   (exit $ac_status); }; } &&
5234          { ac_try='test -s conftest$ac_exeext'
5235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236   (eval $ac_try) 2>&5
5237   ac_status=$?
5238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239   (exit $ac_status); }; }; then
5240   gt_cv_func_gettext_libintl=yes
5241 else
5242   echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5244
5245 gt_cv_func_gettext_libintl=no
5246 fi
5247 rm -f conftest.err conftest.$ac_objext \
5248       conftest$ac_exeext conftest.$ac_ext
5249 fi
5250 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5251 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5252 fi
5253
5254            fi
5255
5256            if test "$gt_cv_func_gettext_libc" = "yes" \
5257               || test "$gt_cv_func_gettext_libintl" = "yes"; then
5258               cat >>confdefs.h <<\_ACEOF
5259 #define HAVE_GETTEXT 1
5260 _ACEOF
5261
5262               # Extract the first word of "msgfmt", so it can be a program name with args.
5263 set dummy msgfmt; ac_word=$2
5264 echo "$as_me:$LINENO: checking for $ac_word" >&5
5265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5266 if test "${ac_cv_path_MSGFMT+set}" = set; then
5267   echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269   case "$MSGFMT" in
5270   /*)
5271   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5272   ;;
5273   *)
5274   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5275   for ac_dir in $PATH; do
5276     test -z "$ac_dir" && ac_dir=.
5277     if test -f $ac_dir/$ac_word; then
5278       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5279         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5280         break
5281       fi
5282     fi
5283   done
5284   IFS="$ac_save_ifs"
5285   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5286   ;;
5287 esac
5288 fi
5289 MSGFMT="$ac_cv_path_MSGFMT"
5290 if test -n "$MSGFMT"; then
5291   echo "$as_me:$LINENO: result: $MSGFMT" >&5
5292 echo "${ECHO_T}$MSGFMT" >&6
5293 else
5294   echo "$as_me:$LINENO: result: no" >&5
5295 echo "${ECHO_T}no" >&6
5296 fi
5297               if test "$MSGFMT" != "no"; then
5298
5299 for ac_func in dcgettext
5300 do
5301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5302 echo "$as_me:$LINENO: checking for $ac_func" >&5
5303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5304 if eval "test \"\${$as_ac_var+set}\" = set"; then
5305   echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307   cat >conftest.$ac_ext <<_ACEOF
5308 /* confdefs.h.  */
5309 _ACEOF
5310 cat confdefs.h >>conftest.$ac_ext
5311 cat >>conftest.$ac_ext <<_ACEOF
5312 /* end confdefs.h.  */
5313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5314    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5315 #define $ac_func innocuous_$ac_func
5316
5317 /* System header to define __stub macros and hopefully few prototypes,
5318     which can conflict with char $ac_func (); below.
5319     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5320     <limits.h> exists even on freestanding compilers.  */
5321
5322 #ifdef __STDC__
5323 # include <limits.h>
5324 #else
5325 # include <assert.h>
5326 #endif
5327
5328 #undef $ac_func
5329
5330 /* Override any gcc2 internal prototype to avoid an error.  */
5331 #ifdef __cplusplus
5332 extern "C"
5333 {
5334 #endif
5335 /* We use char because int might match the return type of a gcc2
5336    builtin and then its argument prototype would still apply.  */
5337 char $ac_func ();
5338 /* The GNU C library defines this for functions which it implements
5339     to always fail with ENOSYS.  Some functions are actually named
5340     something starting with __ and the normal name is an alias.  */
5341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5342 choke me
5343 #else
5344 char (*f) () = $ac_func;
5345 #endif
5346 #ifdef __cplusplus
5347 }
5348 #endif
5349
5350 int
5351 main ()
5352 {
5353 return f != $ac_func;
5354   ;
5355   return 0;
5356 }
5357 _ACEOF
5358 rm -f conftest.$ac_objext conftest$ac_exeext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5360   (eval $ac_link) 2>conftest.er1
5361   ac_status=$?
5362   grep -v '^ *+' conftest.er1 >conftest.err
5363   rm -f conftest.er1
5364   cat conftest.err >&5
5365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366   (exit $ac_status); } &&
5367          { ac_try='test -z "$ac_c_werror_flag"
5368                          || test ! -s conftest.err'
5369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370   (eval $ac_try) 2>&5
5371   ac_status=$?
5372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373   (exit $ac_status); }; } &&
5374          { ac_try='test -s conftest$ac_exeext'
5375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376   (eval $ac_try) 2>&5
5377   ac_status=$?
5378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379   (exit $ac_status); }; }; then
5380   eval "$as_ac_var=yes"
5381 else
5382   echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5384
5385 eval "$as_ac_var=no"
5386 fi
5387 rm -f conftest.err conftest.$ac_objext \
5388       conftest$ac_exeext conftest.$ac_ext
5389 fi
5390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5392 if test `eval echo '${'$as_ac_var'}'` = yes; then
5393   cat >>confdefs.h <<_ACEOF
5394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5395 _ACEOF
5396
5397 fi
5398 done
5399
5400                 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5401 set dummy gmsgfmt; ac_word=$2
5402 echo "$as_me:$LINENO: checking for $ac_word" >&5
5403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5404 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5405   echo $ECHO_N "(cached) $ECHO_C" >&6
5406 else
5407   case $GMSGFMT in
5408   [\\/]* | ?:[\\/]*)
5409   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5410   ;;
5411   *)
5412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413 for as_dir in $PATH
5414 do
5415   IFS=$as_save_IFS
5416   test -z "$as_dir" && as_dir=.
5417   for ac_exec_ext in '' $ac_executable_extensions; do
5418   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5419     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5421     break 2
5422   fi
5423 done
5424 done
5425
5426   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5427   ;;
5428 esac
5429 fi
5430 GMSGFMT=$ac_cv_path_GMSGFMT
5431
5432 if test -n "$GMSGFMT"; then
5433   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5434 echo "${ECHO_T}$GMSGFMT" >&6
5435 else
5436   echo "$as_me:$LINENO: result: no" >&5
5437 echo "${ECHO_T}no" >&6
5438 fi
5439
5440                 # Extract the first word of "xgettext", so it can be a program name with args.
5441 set dummy xgettext; ac_word=$2
5442 echo "$as_me:$LINENO: checking for $ac_word" >&5
5443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5444 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5445   echo $ECHO_N "(cached) $ECHO_C" >&6
5446 else
5447   case "$XGETTEXT" in
5448   /*)
5449   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5450   ;;
5451   *)
5452   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5453   for ac_dir in $PATH; do
5454     test -z "$ac_dir" && ac_dir=.
5455     if test -f $ac_dir/$ac_word; then
5456       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5457         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5458         break
5459       fi
5460     fi
5461   done
5462   IFS="$ac_save_ifs"
5463   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5464   ;;
5465 esac
5466 fi
5467 XGETTEXT="$ac_cv_path_XGETTEXT"
5468 if test -n "$XGETTEXT"; then
5469   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5470 echo "${ECHO_T}$XGETTEXT" >&6
5471 else
5472   echo "$as_me:$LINENO: result: no" >&5
5473 echo "${ECHO_T}no" >&6
5474 fi
5475
5476                 cat >conftest.$ac_ext <<_ACEOF
5477 /* confdefs.h.  */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h.  */
5482
5483 int
5484 main ()
5485 {
5486 extern int _nl_msg_cat_cntr;
5487                                return _nl_msg_cat_cntr
5488   ;
5489   return 0;
5490 }
5491 _ACEOF
5492 rm -f conftest.$ac_objext conftest$ac_exeext
5493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5494   (eval $ac_link) 2>conftest.er1
5495   ac_status=$?
5496   grep -v '^ *+' conftest.er1 >conftest.err
5497   rm -f conftest.er1
5498   cat conftest.err >&5
5499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500   (exit $ac_status); } &&
5501          { ac_try='test -z "$ac_c_werror_flag"
5502                          || test ! -s conftest.err'
5503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504   (eval $ac_try) 2>&5
5505   ac_status=$?
5506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507   (exit $ac_status); }; } &&
5508          { ac_try='test -s conftest$ac_exeext'
5509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510   (eval $ac_try) 2>&5
5511   ac_status=$?
5512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513   (exit $ac_status); }; }; then
5514   CATOBJEXT=.gmo
5515                    DATADIRNAME=share
5516 else
5517   echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5519
5520 CATOBJEXT=.mo
5521                    DATADIRNAME=lib
5522 fi
5523 rm -f conftest.err conftest.$ac_objext \
5524       conftest$ac_exeext conftest.$ac_ext
5525                 INSTOBJEXT=.mo
5526               fi
5527             fi
5528
5529 fi
5530
5531
5532
5533
5534         if test "$CATOBJEXT" = "NONE"; then
5535                           nls_cv_use_gnu_gettext=yes
5536         fi
5537       fi
5538
5539       if test "$nls_cv_use_gnu_gettext" = "yes"; then
5540                 INTLOBJS="\$(GETTOBJS)"
5541         # Extract the first word of "msgfmt", so it can be a program name with args.
5542 set dummy msgfmt; ac_word=$2
5543 echo "$as_me:$LINENO: checking for $ac_word" >&5
5544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5545 if test "${ac_cv_path_MSGFMT+set}" = set; then
5546   echo $ECHO_N "(cached) $ECHO_C" >&6
5547 else
5548   case "$MSGFMT" in
5549   /*)
5550   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5551   ;;
5552   *)
5553   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5554   for ac_dir in $PATH; do
5555     test -z "$ac_dir" && ac_dir=.
5556     if test -f $ac_dir/$ac_word; then
5557       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5558         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5559         break
5560       fi
5561     fi
5562   done
5563   IFS="$ac_save_ifs"
5564   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5565   ;;
5566 esac
5567 fi
5568 MSGFMT="$ac_cv_path_MSGFMT"
5569 if test -n "$MSGFMT"; then
5570   echo "$as_me:$LINENO: result: $MSGFMT" >&5
5571 echo "${ECHO_T}$MSGFMT" >&6
5572 else
5573   echo "$as_me:$LINENO: result: no" >&5
5574 echo "${ECHO_T}no" >&6
5575 fi
5576
5577         # Extract the first word of "gmsgfmt", so it can be a program name with args.
5578 set dummy gmsgfmt; ac_word=$2
5579 echo "$as_me:$LINENO: checking for $ac_word" >&5
5580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5581 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5582   echo $ECHO_N "(cached) $ECHO_C" >&6
5583 else
5584   case $GMSGFMT in
5585   [\\/]* | ?:[\\/]*)
5586   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5587   ;;
5588   *)
5589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 for as_dir in $PATH
5591 do
5592   IFS=$as_save_IFS
5593   test -z "$as_dir" && as_dir=.
5594   for ac_exec_ext in '' $ac_executable_extensions; do
5595   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5596     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5598     break 2
5599   fi
5600 done
5601 done
5602
5603   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5604   ;;
5605 esac
5606 fi
5607 GMSGFMT=$ac_cv_path_GMSGFMT
5608
5609 if test -n "$GMSGFMT"; then
5610   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5611 echo "${ECHO_T}$GMSGFMT" >&6
5612 else
5613   echo "$as_me:$LINENO: result: no" >&5
5614 echo "${ECHO_T}no" >&6
5615 fi
5616
5617         # Extract the first word of "xgettext", so it can be a program name with args.
5618 set dummy xgettext; ac_word=$2
5619 echo "$as_me:$LINENO: checking for $ac_word" >&5
5620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5621 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5622   echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624   case "$XGETTEXT" in
5625   /*)
5626   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5627   ;;
5628   *)
5629   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5630   for ac_dir in $PATH; do
5631     test -z "$ac_dir" && ac_dir=.
5632     if test -f $ac_dir/$ac_word; then
5633       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5634         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5635         break
5636       fi
5637     fi
5638   done
5639   IFS="$ac_save_ifs"
5640   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5641   ;;
5642 esac
5643 fi
5644 XGETTEXT="$ac_cv_path_XGETTEXT"
5645 if test -n "$XGETTEXT"; then
5646   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5647 echo "${ECHO_T}$XGETTEXT" >&6
5648 else
5649   echo "$as_me:$LINENO: result: no" >&5
5650 echo "${ECHO_T}no" >&6
5651 fi
5652
5653
5654         USE_INCLUDED_LIBINTL=yes
5655         CATOBJEXT=.gmo
5656         INSTOBJEXT=.mo
5657         DATADIRNAME=share
5658         INTLDEPS='$(top_builddir)/../intl/libintl.a'
5659         INTLLIBS=$INTLDEPS
5660         LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5661         nls_cv_header_intl=libintl.h
5662         nls_cv_header_libgt=libgettext.h
5663       fi
5664
5665             if test "$XGETTEXT" != ":"; then
5666                         if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5667           : ;
5668         else
5669           echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5670 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5671           XGETTEXT=":"
5672         fi
5673       fi
5674
5675       # We need to process the po/ directory.
5676       POSUB=po
5677     else
5678       DATADIRNAME=share
5679       nls_cv_header_intl=libintl.h
5680       nls_cv_header_libgt=libgettext.h
5681     fi
5682
5683     # If this is used in GNU gettext we have to set USE_NLS to `yes'
5684     # because some of the sources are only built for this goal.
5685     if test "$PACKAGE" = gettext; then
5686       USE_NLS=yes
5687       USE_INCLUDED_LIBINTL=yes
5688     fi
5689
5690                 for lang in $ALL_LINGUAS; do
5691       GMOFILES="$GMOFILES $lang.gmo"
5692       POFILES="$POFILES $lang.po"
5693     done
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708    if test "x$CATOBJEXT" != "x"; then
5709      if test "x$ALL_LINGUAS" = "x"; then
5710        LINGUAS=
5711      else
5712        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5713 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5714        NEW_LINGUAS=
5715        for lang in ${LINGUAS=$ALL_LINGUAS}; do
5716          case "$ALL_LINGUAS" in
5717           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5718          esac
5719        done
5720        LINGUAS=$NEW_LINGUAS
5721        echo "$as_me:$LINENO: result: $LINGUAS" >&5
5722 echo "${ECHO_T}$LINGUAS" >&6
5723      fi
5724
5725           if test -n "$LINGUAS"; then
5726        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5727      fi
5728    fi
5729
5730             if test $ac_cv_header_locale_h = yes; then
5731      INCLUDE_LOCALE_H="#include <locale.h>"
5732    else
5733      INCLUDE_LOCALE_H="\
5734 /* The system does not provide the header <locale.h>.  Take care yourself.  */"
5735    fi
5736
5737
5738             if test -f $srcdir/po2tbl.sed.in; then
5739       if test "$CATOBJEXT" = ".cat"; then
5740          if test "${ac_cv_header_linux_version_h+set}" = set; then
5741   echo "$as_me:$LINENO: checking for linux/version.h" >&5
5742 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5743 if test "${ac_cv_header_linux_version_h+set}" = set; then
5744   echo $ECHO_N "(cached) $ECHO_C" >&6
5745 fi
5746 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5747 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5748 else
5749   # Is the header compilable?
5750 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5751 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5752 cat >conftest.$ac_ext <<_ACEOF
5753 /* confdefs.h.  */
5754 _ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h.  */
5758 $ac_includes_default
5759 #include <linux/version.h>
5760 _ACEOF
5761 rm -f conftest.$ac_objext
5762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5763   (eval $ac_compile) 2>conftest.er1
5764   ac_status=$?
5765   grep -v '^ *+' conftest.er1 >conftest.err
5766   rm -f conftest.er1
5767   cat conftest.err >&5
5768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769   (exit $ac_status); } &&
5770          { ac_try='test -z "$ac_c_werror_flag"
5771                          || test ! -s conftest.err'
5772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773   (eval $ac_try) 2>&5
5774   ac_status=$?
5775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776   (exit $ac_status); }; } &&
5777          { ac_try='test -s conftest.$ac_objext'
5778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779   (eval $ac_try) 2>&5
5780   ac_status=$?
5781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782   (exit $ac_status); }; }; then
5783   ac_header_compiler=yes
5784 else
5785   echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.$ac_ext >&5
5787
5788 ac_header_compiler=no
5789 fi
5790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5791 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5792 echo "${ECHO_T}$ac_header_compiler" >&6
5793
5794 # Is the header present?
5795 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5796 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5797 cat >conftest.$ac_ext <<_ACEOF
5798 /* confdefs.h.  */
5799 _ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h.  */
5803 #include <linux/version.h>
5804 _ACEOF
5805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5806   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5807   ac_status=$?
5808   grep -v '^ *+' conftest.er1 >conftest.err
5809   rm -f conftest.er1
5810   cat conftest.err >&5
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); } >/dev/null; then
5813   if test -s conftest.err; then
5814     ac_cpp_err=$ac_c_preproc_warn_flag
5815     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5816   else
5817     ac_cpp_err=
5818   fi
5819 else
5820   ac_cpp_err=yes
5821 fi
5822 if test -z "$ac_cpp_err"; then
5823   ac_header_preproc=yes
5824 else
5825   echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5827
5828   ac_header_preproc=no
5829 fi
5830 rm -f conftest.err conftest.$ac_ext
5831 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5832 echo "${ECHO_T}$ac_header_preproc" >&6
5833
5834 # So?  What about this header?
5835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5836   yes:no: )
5837     { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5838 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5839     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5840 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5841     ac_header_preproc=yes
5842     ;;
5843   no:yes:* )
5844     { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5845 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5846     { echo "$as_me:$LINENO: WARNING: linux/version.h:     check for missing prerequisite headers?" >&5
5847 echo "$as_me: WARNING: linux/version.h:     check for missing prerequisite headers?" >&2;}
5848     { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5849 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5850     { echo "$as_me:$LINENO: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&5
5851 echo "$as_me: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5852     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5853 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5854     { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5855 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5856     (
5857       cat <<\_ASBOX
5858 ## ------------------------------------------ ##
5859 ## Report this to the AC_PACKAGE_NAME lists.  ##
5860 ## ------------------------------------------ ##
5861 _ASBOX
5862     ) |
5863       sed "s/^/$as_me: WARNING:     /" >&2
5864     ;;
5865 esac
5866 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5867 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5868 if test "${ac_cv_header_linux_version_h+set}" = set; then
5869   echo $ECHO_N "(cached) $ECHO_C" >&6
5870 else
5871   ac_cv_header_linux_version_h=$ac_header_preproc
5872 fi
5873 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5874 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5875
5876 fi
5877 if test $ac_cv_header_linux_version_h = yes; then
5878   msgformat=linux
5879 else
5880   msgformat=xopen
5881 fi
5882
5883
5884
5885                          sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5886       fi
5887             sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5888          $srcdir/po2tbl.sed.in > po2tbl.sed
5889    fi
5890
5891             if test "$PACKAGE" = "gettext"; then
5892      GT_NO="#NO#"
5893      GT_YES=
5894    else
5895      GT_NO=
5896      GT_YES="#YES#"
5897    fi
5898
5899
5900
5901    MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5902
5903
5904       l=
5905
5906
5907             if test -d $srcdir/po; then
5908       test -d po || mkdir po
5909       if test "x$srcdir" != "x."; then
5910          if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5911             posrcprefix="$srcdir/"
5912          else
5913             posrcprefix="../$srcdir/"
5914          fi
5915       else
5916          posrcprefix="../"
5917       fi
5918       rm -f po/POTFILES
5919       sed -e "/^#/d" -e "/^\$/d" -e "s,.*,      $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5920          < $srcdir/po/POTFILES.in > po/POTFILES
5921    fi
5922
5923
5924 # Check for common headers.
5925 # FIXME: Seems to me this can cause problems for i386-windows hosts.
5926 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
5927
5928
5929
5930
5931
5932 for ac_header in stdlib.h string.h strings.h unistd.h time.h
5933 do
5934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5936   echo "$as_me:$LINENO: checking for $ac_header" >&5
5937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5939   echo $ECHO_N "(cached) $ECHO_C" >&6
5940 fi
5941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5943 else
5944   # Is the header compilable?
5945 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5946 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5947 cat >conftest.$ac_ext <<_ACEOF
5948 /* confdefs.h.  */
5949 _ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h.  */
5953 $ac_includes_default
5954 #include <$ac_header>
5955 _ACEOF
5956 rm -f conftest.$ac_objext
5957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5958   (eval $ac_compile) 2>conftest.er1
5959   ac_status=$?
5960   grep -v '^ *+' conftest.er1 >conftest.err
5961   rm -f conftest.er1
5962   cat conftest.err >&5
5963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964   (exit $ac_status); } &&
5965          { ac_try='test -z "$ac_c_werror_flag"
5966                          || test ! -s conftest.err'
5967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968   (eval $ac_try) 2>&5
5969   ac_status=$?
5970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971   (exit $ac_status); }; } &&
5972          { ac_try='test -s conftest.$ac_objext'
5973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974   (eval $ac_try) 2>&5
5975   ac_status=$?
5976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977   (exit $ac_status); }; }; then
5978   ac_header_compiler=yes
5979 else
5980   echo "$as_me: failed program was:" >&5
5981 sed 's/^/| /' conftest.$ac_ext >&5
5982
5983 ac_header_compiler=no
5984 fi
5985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5986 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5987 echo "${ECHO_T}$ac_header_compiler" >&6
5988
5989 # Is the header present?
5990 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5992 cat >conftest.$ac_ext <<_ACEOF
5993 /* confdefs.h.  */
5994 _ACEOF
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h.  */
5998 #include <$ac_header>
5999 _ACEOF
6000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6001   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6002   ac_status=$?
6003   grep -v '^ *+' conftest.er1 >conftest.err
6004   rm -f conftest.er1
6005   cat conftest.err >&5
6006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007   (exit $ac_status); } >/dev/null; then
6008   if test -s conftest.err; then
6009     ac_cpp_err=$ac_c_preproc_warn_flag
6010     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6011   else
6012     ac_cpp_err=
6013   fi
6014 else
6015   ac_cpp_err=yes
6016 fi
6017 if test -z "$ac_cpp_err"; then
6018   ac_header_preproc=yes
6019 else
6020   echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6022
6023   ac_header_preproc=no
6024 fi
6025 rm -f conftest.err conftest.$ac_ext
6026 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6027 echo "${ECHO_T}$ac_header_preproc" >&6
6028
6029 # So?  What about this header?
6030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6031   yes:no: )
6032     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6034     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6036     ac_header_preproc=yes
6037     ;;
6038   no:yes:* )
6039     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6041     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6042 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6043     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6045     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6046 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6047     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6049     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6051     (
6052       cat <<\_ASBOX
6053 ## ------------------------------------------ ##
6054 ## Report this to the AC_PACKAGE_NAME lists.  ##
6055 ## ------------------------------------------ ##
6056 _ASBOX
6057     ) |
6058       sed "s/^/$as_me: WARNING:     /" >&2
6059     ;;
6060 esac
6061 echo "$as_me:$LINENO: checking for $ac_header" >&5
6062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6064   echo $ECHO_N "(cached) $ECHO_C" >&6
6065 else
6066   eval "$as_ac_Header=\$ac_header_preproc"
6067 fi
6068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6070
6071 fi
6072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6073   cat >>confdefs.h <<_ACEOF
6074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6075 _ACEOF
6076
6077 fi
6078
6079 done
6080
6081
6082
6083 for ac_header in sys/time.h sys/resource.h
6084 do
6085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6087   echo "$as_me:$LINENO: checking for $ac_header" >&5
6088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6090   echo $ECHO_N "(cached) $ECHO_C" >&6
6091 fi
6092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6094 else
6095   # Is the header compilable?
6096 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6098 cat >conftest.$ac_ext <<_ACEOF
6099 /* confdefs.h.  */
6100 _ACEOF
6101 cat confdefs.h >>conftest.$ac_ext
6102 cat >>conftest.$ac_ext <<_ACEOF
6103 /* end confdefs.h.  */
6104 $ac_includes_default
6105 #include <$ac_header>
6106 _ACEOF
6107 rm -f conftest.$ac_objext
6108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6109   (eval $ac_compile) 2>conftest.er1
6110   ac_status=$?
6111   grep -v '^ *+' conftest.er1 >conftest.err
6112   rm -f conftest.er1
6113   cat conftest.err >&5
6114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115   (exit $ac_status); } &&
6116          { ac_try='test -z "$ac_c_werror_flag"
6117                          || test ! -s conftest.err'
6118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119   (eval $ac_try) 2>&5
6120   ac_status=$?
6121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122   (exit $ac_status); }; } &&
6123          { ac_try='test -s conftest.$ac_objext'
6124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125   (eval $ac_try) 2>&5
6126   ac_status=$?
6127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128   (exit $ac_status); }; }; then
6129   ac_header_compiler=yes
6130 else
6131   echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.$ac_ext >&5
6133
6134 ac_header_compiler=no
6135 fi
6136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6137 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6138 echo "${ECHO_T}$ac_header_compiler" >&6
6139
6140 # Is the header present?
6141 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6142 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6143 cat >conftest.$ac_ext <<_ACEOF
6144 /* confdefs.h.  */
6145 _ACEOF
6146 cat confdefs.h >>conftest.$ac_ext
6147 cat >>conftest.$ac_ext <<_ACEOF
6148 /* end confdefs.h.  */
6149 #include <$ac_header>
6150 _ACEOF
6151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6152   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6153   ac_status=$?
6154   grep -v '^ *+' conftest.er1 >conftest.err
6155   rm -f conftest.er1
6156   cat conftest.err >&5
6157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158   (exit $ac_status); } >/dev/null; then
6159   if test -s conftest.err; then
6160     ac_cpp_err=$ac_c_preproc_warn_flag
6161     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6162   else
6163     ac_cpp_err=
6164   fi
6165 else
6166   ac_cpp_err=yes
6167 fi
6168 if test -z "$ac_cpp_err"; then
6169   ac_header_preproc=yes
6170 else
6171   echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.$ac_ext >&5
6173
6174   ac_header_preproc=no
6175 fi
6176 rm -f conftest.err conftest.$ac_ext
6177 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6178 echo "${ECHO_T}$ac_header_preproc" >&6
6179
6180 # So?  What about this header?
6181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6182   yes:no: )
6183     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6185     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6187     ac_header_preproc=yes
6188     ;;
6189   no:yes:* )
6190     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6192     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6193 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6194     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6196     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6197 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6198     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6200     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6202     (
6203       cat <<\_ASBOX
6204 ## ------------------------------------------ ##
6205 ## Report this to the AC_PACKAGE_NAME lists.  ##
6206 ## ------------------------------------------ ##
6207 _ASBOX
6208     ) |
6209       sed "s/^/$as_me: WARNING:     /" >&2
6210     ;;
6211 esac
6212 echo "$as_me:$LINENO: checking for $ac_header" >&5
6213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6215   echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217   eval "$as_ac_Header=\$ac_header_preproc"
6218 fi
6219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6221
6222 fi
6223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6224   cat >>confdefs.h <<_ACEOF
6225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6226 _ACEOF
6227
6228 fi
6229
6230 done
6231
6232
6233
6234 for ac_header in fcntl.h fpu_control.h
6235 do
6236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6238   echo "$as_me:$LINENO: checking for $ac_header" >&5
6239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6241   echo $ECHO_N "(cached) $ECHO_C" >&6
6242 fi
6243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6245 else
6246   # Is the header compilable?
6247 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6249 cat >conftest.$ac_ext <<_ACEOF
6250 /* confdefs.h.  */
6251 _ACEOF
6252 cat confdefs.h >>conftest.$ac_ext
6253 cat >>conftest.$ac_ext <<_ACEOF
6254 /* end confdefs.h.  */
6255 $ac_includes_default
6256 #include <$ac_header>
6257 _ACEOF
6258 rm -f conftest.$ac_objext
6259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6260   (eval $ac_compile) 2>conftest.er1
6261   ac_status=$?
6262   grep -v '^ *+' conftest.er1 >conftest.err
6263   rm -f conftest.er1
6264   cat conftest.err >&5
6265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266   (exit $ac_status); } &&
6267          { ac_try='test -z "$ac_c_werror_flag"
6268                          || test ! -s conftest.err'
6269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270   (eval $ac_try) 2>&5
6271   ac_status=$?
6272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273   (exit $ac_status); }; } &&
6274          { ac_try='test -s conftest.$ac_objext'
6275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276   (eval $ac_try) 2>&5
6277   ac_status=$?
6278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279   (exit $ac_status); }; }; then
6280   ac_header_compiler=yes
6281 else
6282   echo "$as_me: failed program was:" >&5
6283 sed 's/^/| /' conftest.$ac_ext >&5
6284
6285 ac_header_compiler=no
6286 fi
6287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6288 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6289 echo "${ECHO_T}$ac_header_compiler" >&6
6290
6291 # Is the header present?
6292 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6294 cat >conftest.$ac_ext <<_ACEOF
6295 /* confdefs.h.  */
6296 _ACEOF
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h.  */
6300 #include <$ac_header>
6301 _ACEOF
6302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6303   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6304   ac_status=$?
6305   grep -v '^ *+' conftest.er1 >conftest.err
6306   rm -f conftest.er1
6307   cat conftest.err >&5
6308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309   (exit $ac_status); } >/dev/null; then
6310   if test -s conftest.err; then
6311     ac_cpp_err=$ac_c_preproc_warn_flag
6312     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6313   else
6314     ac_cpp_err=
6315   fi
6316 else
6317   ac_cpp_err=yes
6318 fi
6319 if test -z "$ac_cpp_err"; then
6320   ac_header_preproc=yes
6321 else
6322   echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6324
6325   ac_header_preproc=no
6326 fi
6327 rm -f conftest.err conftest.$ac_ext
6328 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6329 echo "${ECHO_T}$ac_header_preproc" >&6
6330
6331 # So?  What about this header?
6332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6333   yes:no: )
6334     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6336     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6337 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6338     ac_header_preproc=yes
6339     ;;
6340   no:yes:* )
6341     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6343     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6344 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6345     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6346 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6347     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6348 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6349     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6351     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6352 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6353     (
6354       cat <<\_ASBOX
6355 ## ------------------------------------------ ##
6356 ## Report this to the AC_PACKAGE_NAME lists.  ##
6357 ## ------------------------------------------ ##
6358 _ASBOX
6359     ) |
6360       sed "s/^/$as_me: WARNING:     /" >&2
6361     ;;
6362 esac
6363 echo "$as_me:$LINENO: checking for $ac_header" >&5
6364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6366   echo $ECHO_N "(cached) $ECHO_C" >&6
6367 else
6368   eval "$as_ac_Header=\$ac_header_preproc"
6369 fi
6370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6372
6373 fi
6374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6375   cat >>confdefs.h <<_ACEOF
6376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6377 _ACEOF
6378
6379 fi
6380
6381 done
6382
6383
6384
6385
6386 for ac_header in dlfcn.h errno.h sys/stat.h
6387 do
6388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6390   echo "$as_me:$LINENO: checking for $ac_header" >&5
6391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6393   echo $ECHO_N "(cached) $ECHO_C" >&6
6394 fi
6395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6397 else
6398   # Is the header compilable?
6399 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6400 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6401 cat >conftest.$ac_ext <<_ACEOF
6402 /* confdefs.h.  */
6403 _ACEOF
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h.  */
6407 $ac_includes_default
6408 #include <$ac_header>
6409 _ACEOF
6410 rm -f conftest.$ac_objext
6411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6412   (eval $ac_compile) 2>conftest.er1
6413   ac_status=$?
6414   grep -v '^ *+' conftest.er1 >conftest.err
6415   rm -f conftest.er1
6416   cat conftest.err >&5
6417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418   (exit $ac_status); } &&
6419          { ac_try='test -z "$ac_c_werror_flag"
6420                          || test ! -s conftest.err'
6421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422   (eval $ac_try) 2>&5
6423   ac_status=$?
6424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425   (exit $ac_status); }; } &&
6426          { ac_try='test -s conftest.$ac_objext'
6427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428   (eval $ac_try) 2>&5
6429   ac_status=$?
6430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431   (exit $ac_status); }; }; then
6432   ac_header_compiler=yes
6433 else
6434   echo "$as_me: failed program was:" >&5
6435 sed 's/^/| /' conftest.$ac_ext >&5
6436
6437 ac_header_compiler=no
6438 fi
6439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6440 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6441 echo "${ECHO_T}$ac_header_compiler" >&6
6442
6443 # Is the header present?
6444 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6446 cat >conftest.$ac_ext <<_ACEOF
6447 /* confdefs.h.  */
6448 _ACEOF
6449 cat confdefs.h >>conftest.$ac_ext
6450 cat >>conftest.$ac_ext <<_ACEOF
6451 /* end confdefs.h.  */
6452 #include <$ac_header>
6453 _ACEOF
6454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6455   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6456   ac_status=$?
6457   grep -v '^ *+' conftest.er1 >conftest.err
6458   rm -f conftest.er1
6459   cat conftest.err >&5
6460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461   (exit $ac_status); } >/dev/null; then
6462   if test -s conftest.err; then
6463     ac_cpp_err=$ac_c_preproc_warn_flag
6464     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6465   else
6466     ac_cpp_err=
6467   fi
6468 else
6469   ac_cpp_err=yes
6470 fi
6471 if test -z "$ac_cpp_err"; then
6472   ac_header_preproc=yes
6473 else
6474   echo "$as_me: failed program was:" >&5
6475 sed 's/^/| /' conftest.$ac_ext >&5
6476
6477   ac_header_preproc=no
6478 fi
6479 rm -f conftest.err conftest.$ac_ext
6480 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6481 echo "${ECHO_T}$ac_header_preproc" >&6
6482
6483 # So?  What about this header?
6484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6485   yes:no: )
6486     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6487 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6488     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6489 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6490     ac_header_preproc=yes
6491     ;;
6492   no:yes:* )
6493     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6494 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6495     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6496 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6497     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6498 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6499     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6500 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6501     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6503     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6504 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6505     (
6506       cat <<\_ASBOX
6507 ## ------------------------------------------ ##
6508 ## Report this to the AC_PACKAGE_NAME lists.  ##
6509 ## ------------------------------------------ ##
6510 _ASBOX
6511     ) |
6512       sed "s/^/$as_me: WARNING:     /" >&2
6513     ;;
6514 esac
6515 echo "$as_me:$LINENO: checking for $ac_header" >&5
6516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6518   echo $ECHO_N "(cached) $ECHO_C" >&6
6519 else
6520   eval "$as_ac_Header=\$ac_header_preproc"
6521 fi
6522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6524
6525 fi
6526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6527   cat >>confdefs.h <<_ACEOF
6528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6529 _ACEOF
6530
6531 fi
6532
6533 done
6534
6535
6536
6537
6538
6539 for ac_func in getrusage time sigaction __setfpucw
6540 do
6541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6542 echo "$as_me:$LINENO: checking for $ac_func" >&5
6543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6544 if eval "test \"\${$as_ac_var+set}\" = set"; then
6545   echo $ECHO_N "(cached) $ECHO_C" >&6
6546 else
6547   cat >conftest.$ac_ext <<_ACEOF
6548 /* confdefs.h.  */
6549 _ACEOF
6550 cat confdefs.h >>conftest.$ac_ext
6551 cat >>conftest.$ac_ext <<_ACEOF
6552 /* end confdefs.h.  */
6553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6554    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6555 #define $ac_func innocuous_$ac_func
6556
6557 /* System header to define __stub macros and hopefully few prototypes,
6558     which can conflict with char $ac_func (); below.
6559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6560     <limits.h> exists even on freestanding compilers.  */
6561
6562 #ifdef __STDC__
6563 # include <limits.h>
6564 #else
6565 # include <assert.h>
6566 #endif
6567
6568 #undef $ac_func
6569
6570 /* Override any gcc2 internal prototype to avoid an error.  */
6571 #ifdef __cplusplus
6572 extern "C"
6573 {
6574 #endif
6575 /* We use char because int might match the return type of a gcc2
6576    builtin and then its argument prototype would still apply.  */
6577 char $ac_func ();
6578 /* The GNU C library defines this for functions which it implements
6579     to always fail with ENOSYS.  Some functions are actually named
6580     something starting with __ and the normal name is an alias.  */
6581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6582 choke me
6583 #else
6584 char (*f) () = $ac_func;
6585 #endif
6586 #ifdef __cplusplus
6587 }
6588 #endif
6589
6590 int
6591 main ()
6592 {
6593 return f != $ac_func;
6594   ;
6595   return 0;
6596 }
6597 _ACEOF
6598 rm -f conftest.$ac_objext conftest$ac_exeext
6599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6600   (eval $ac_link) 2>conftest.er1
6601   ac_status=$?
6602   grep -v '^ *+' conftest.er1 >conftest.err
6603   rm -f conftest.er1
6604   cat conftest.err >&5
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); } &&
6607          { ac_try='test -z "$ac_c_werror_flag"
6608                          || test ! -s conftest.err'
6609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610   (eval $ac_try) 2>&5
6611   ac_status=$?
6612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613   (exit $ac_status); }; } &&
6614          { ac_try='test -s conftest$ac_exeext'
6615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616   (eval $ac_try) 2>&5
6617   ac_status=$?
6618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619   (exit $ac_status); }; }; then
6620   eval "$as_ac_var=yes"
6621 else
6622   echo "$as_me: failed program was:" >&5
6623 sed 's/^/| /' conftest.$ac_ext >&5
6624
6625 eval "$as_ac_var=no"
6626 fi
6627 rm -f conftest.err conftest.$ac_objext \
6628       conftest$ac_exeext conftest.$ac_ext
6629 fi
6630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6631 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6632 if test `eval echo '${'$as_ac_var'}'` = yes; then
6633   cat >>confdefs.h <<_ACEOF
6634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6635 _ACEOF
6636
6637 fi
6638 done
6639
6640
6641 # Check for socket libraries
6642
6643 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6644 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6645 if test "${ac_cv_lib_socket_bind+set}" = set; then
6646   echo $ECHO_N "(cached) $ECHO_C" >&6
6647 else
6648   ac_check_lib_save_LIBS=$LIBS
6649 LIBS="-lsocket  $LIBS"
6650 cat >conftest.$ac_ext <<_ACEOF
6651 /* confdefs.h.  */
6652 _ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h.  */
6656
6657 /* Override any gcc2 internal prototype to avoid an error.  */
6658 #ifdef __cplusplus
6659 extern "C"
6660 #endif
6661 /* We use char because int might match the return type of a gcc2
6662    builtin and then its argument prototype would still apply.  */
6663 char bind ();
6664 int
6665 main ()
6666 {
6667 bind ();
6668   ;
6669   return 0;
6670 }
6671 _ACEOF
6672 rm -f conftest.$ac_objext conftest$ac_exeext
6673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6674   (eval $ac_link) 2>conftest.er1
6675   ac_status=$?
6676   grep -v '^ *+' conftest.er1 >conftest.err
6677   rm -f conftest.er1
6678   cat conftest.err >&5
6679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680   (exit $ac_status); } &&
6681          { ac_try='test -z "$ac_c_werror_flag"
6682                          || test ! -s conftest.err'
6683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684   (eval $ac_try) 2>&5
6685   ac_status=$?
6686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687   (exit $ac_status); }; } &&
6688          { ac_try='test -s conftest$ac_exeext'
6689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690   (eval $ac_try) 2>&5
6691   ac_status=$?
6692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693   (exit $ac_status); }; }; then
6694   ac_cv_lib_socket_bind=yes
6695 else
6696   echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6698
6699 ac_cv_lib_socket_bind=no
6700 fi
6701 rm -f conftest.err conftest.$ac_objext \
6702       conftest$ac_exeext conftest.$ac_ext
6703 LIBS=$ac_check_lib_save_LIBS
6704 fi
6705 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6706 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6707 if test $ac_cv_lib_socket_bind = yes; then
6708   cat >>confdefs.h <<_ACEOF
6709 #define HAVE_LIBSOCKET 1
6710 _ACEOF
6711
6712   LIBS="-lsocket $LIBS"
6713
6714 fi
6715
6716
6717 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6718 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6719 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6720   echo $ECHO_N "(cached) $ECHO_C" >&6
6721 else
6722   ac_check_lib_save_LIBS=$LIBS
6723 LIBS="-lnsl  $LIBS"
6724 cat >conftest.$ac_ext <<_ACEOF
6725 /* confdefs.h.  */
6726 _ACEOF
6727 cat confdefs.h >>conftest.$ac_ext
6728 cat >>conftest.$ac_ext <<_ACEOF
6729 /* end confdefs.h.  */
6730
6731 /* Override any gcc2 internal prototype to avoid an error.  */
6732 #ifdef __cplusplus
6733 extern "C"
6734 #endif
6735 /* We use char because int might match the return type of a gcc2
6736    builtin and then its argument prototype would still apply.  */
6737 char gethostbyname ();
6738 int
6739 main ()
6740 {
6741 gethostbyname ();
6742   ;
6743   return 0;
6744 }
6745 _ACEOF
6746 rm -f conftest.$ac_objext conftest$ac_exeext
6747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6748   (eval $ac_link) 2>conftest.er1
6749   ac_status=$?
6750   grep -v '^ *+' conftest.er1 >conftest.err
6751   rm -f conftest.er1
6752   cat conftest.err >&5
6753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754   (exit $ac_status); } &&
6755          { ac_try='test -z "$ac_c_werror_flag"
6756                          || test ! -s conftest.err'
6757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758   (eval $ac_try) 2>&5
6759   ac_status=$?
6760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761   (exit $ac_status); }; } &&
6762          { ac_try='test -s conftest$ac_exeext'
6763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6764   (eval $ac_try) 2>&5
6765   ac_status=$?
6766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767   (exit $ac_status); }; }; then
6768   ac_cv_lib_nsl_gethostbyname=yes
6769 else
6770   echo "$as_me: failed program was:" >&5
6771 sed 's/^/| /' conftest.$ac_ext >&5
6772
6773 ac_cv_lib_nsl_gethostbyname=no
6774 fi
6775 rm -f conftest.err conftest.$ac_objext \
6776       conftest$ac_exeext conftest.$ac_ext
6777 LIBS=$ac_check_lib_save_LIBS
6778 fi
6779 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6780 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6781 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6782   cat >>confdefs.h <<_ACEOF
6783 #define HAVE_LIBNSL 1
6784 _ACEOF
6785
6786   LIBS="-lnsl $LIBS"
6787
6788 fi
6789
6790
6791 . ${srcdir}/../../bfd/configure.host
6792
6793
6794
6795 USE_MAINTAINER_MODE=no
6796 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6797 if test "${enable_maintainer_mode+set}" = set; then
6798   enableval="$enable_maintainer_mode"
6799   case "${enableval}" in
6800   yes)  MAINT="" USE_MAINTAINER_MODE=yes ;;
6801   no)   MAINT="#" ;;
6802   *)    { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6803 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6804    { (exit 1); exit 1; }; }; MAINT="#" ;;
6805 esac
6806 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
6807   echo "Setting maintainer mode" 6>&1
6808 fi
6809 else
6810   MAINT="#"
6811 fi;
6812
6813
6814 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6815 if test "${enable_sim_bswap+set}" = set; then
6816   enableval="$enable_sim_bswap"
6817   case "${enableval}" in
6818   yes)  sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6819   no)   sim_bswap="-DWITH_BSWAP=0";;
6820   *)    { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6821 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6822    { (exit 1); exit 1; }; }; sim_bswap="";;
6823 esac
6824 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
6825   echo "Setting bswap flags = $sim_bswap" 6>&1
6826 fi
6827 else
6828   sim_bswap=""
6829 fi;
6830
6831
6832 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6833 if test "${enable_sim_cflags+set}" = set; then
6834   enableval="$enable_sim_cflags"
6835   case "${enableval}" in
6836   yes)   sim_cflags="-O2 -fomit-frame-pointer";;
6837   trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6838 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6839    { (exit 1); exit 1; }; }; sim_cflags="";;
6840   no)    sim_cflags="";;
6841   *)     sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6842 esac
6843 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
6844   echo "Setting sim cflags = $sim_cflags" 6>&1
6845 fi
6846 else
6847   sim_cflags=""
6848 fi;
6849
6850
6851 # Check whether --enable-sim-debug or --disable-sim-debug was given.
6852 if test "${enable_sim_debug+set}" = set; then
6853   enableval="$enable_sim_debug"
6854   case "${enableval}" in
6855   yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
6856   no)  sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
6857   *)   sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6858 esac
6859 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
6860   echo "Setting sim debug = $sim_debug" 6>&1
6861 fi
6862 else
6863   sim_debug=""
6864 fi;
6865
6866
6867 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6868 if test "${enable_sim_stdio+set}" = set; then
6869   enableval="$enable_sim_stdio"
6870   case "${enableval}" in
6871   yes)  sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
6872   no)   sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
6873   *)    { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6874 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6875    { (exit 1); exit 1; }; }; sim_stdio="";;
6876 esac
6877 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
6878   echo "Setting stdio flags = $sim_stdio" 6>&1
6879 fi
6880 else
6881   sim_stdio=""
6882 fi;
6883
6884
6885 # Check whether --enable-sim-trace or --disable-sim-trace was given.
6886 if test "${enable_sim_trace+set}" = set; then
6887   enableval="$enable_sim_trace"
6888   case "${enableval}" in
6889   yes)  sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
6890   no)   sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
6891   [-0-9]*)
6892         sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6893   [a-z]*)
6894         sim_trace=""
6895         for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6896           if test x"$sim_trace" = x; then
6897             sim_trace="-DWITH_TRACE='(TRACE_$x"
6898           else
6899             sim_trace="${sim_trace}|TRACE_$x"
6900           fi
6901         done
6902         sim_trace="$sim_trace)'" ;;
6903 esac
6904 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
6905   echo "Setting sim trace = $sim_trace" 6>&1
6906 fi
6907 else
6908   sim_trace=""
6909 fi;
6910
6911
6912 # Check whether --enable-sim-profile or --disable-sim-profile was given.
6913 if test "${enable_sim_profile+set}" = set; then
6914   enableval="$enable_sim_profile"
6915   case "${enableval}" in
6916   yes)  sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
6917   no)   sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
6918   [-0-9]*)
6919         sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6920   [a-z]*)
6921         sim_profile=""
6922         for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6923           if test x"$sim_profile" = x; then
6924             sim_profile="-DWITH_PROFILE='(PROFILE_$x"
6925           else
6926             sim_profile="${sim_profile}|PROFILE_$x"
6927           fi
6928         done
6929         sim_profile="$sim_profile)'" ;;
6930 esac
6931 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
6932   echo "Setting sim profile = $sim_profile" 6>&1
6933 fi
6934 else
6935   sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
6936 fi;
6937
6938
6939 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6940 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6941 if test "${ac_cv_type_signal+set}" = set; then
6942   echo $ECHO_N "(cached) $ECHO_C" >&6
6943 else
6944   cat >conftest.$ac_ext <<_ACEOF
6945 /* confdefs.h.  */
6946 _ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h.  */
6950 #include <sys/types.h>
6951 #include <signal.h>
6952 #ifdef signal
6953 # undef signal
6954 #endif
6955 #ifdef __cplusplus
6956 extern "C" void (*signal (int, void (*)(int)))(int);
6957 #else
6958 void (*signal ()) ();
6959 #endif
6960
6961 int
6962 main ()
6963 {
6964 int i;
6965   ;
6966   return 0;
6967 }
6968 _ACEOF
6969 rm -f conftest.$ac_objext
6970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6971   (eval $ac_compile) 2>conftest.er1
6972   ac_status=$?
6973   grep -v '^ *+' conftest.er1 >conftest.err
6974   rm -f conftest.er1
6975   cat conftest.err >&5
6976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977   (exit $ac_status); } &&
6978          { ac_try='test -z "$ac_c_werror_flag"
6979                          || test ! -s conftest.err'
6980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981   (eval $ac_try) 2>&5
6982   ac_status=$?
6983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984   (exit $ac_status); }; } &&
6985          { ac_try='test -s conftest.$ac_objext'
6986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987   (eval $ac_try) 2>&5
6988   ac_status=$?
6989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990   (exit $ac_status); }; }; then
6991   ac_cv_type_signal=void
6992 else
6993   echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6995
6996 ac_cv_type_signal=int
6997 fi
6998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6999 fi
7000 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7001 echo "${ECHO_T}$ac_cv_type_signal" >&6
7002
7003 cat >>confdefs.h <<_ACEOF
7004 #define RETSIGTYPE $ac_cv_type_signal
7005 _ACEOF
7006
7007
7008
7009
7010
7011 sim_link_files=
7012 sim_link_links=
7013
7014 sim_link_links=tconfig.h
7015 if test -f ${srcdir}/tconfig.in
7016 then
7017   sim_link_files=tconfig.in
7018 else
7019   sim_link_files=../common/tconfig.in
7020 fi
7021
7022 # targ-vals.def points to the libc macro description file.
7023 case "${target}" in
7024 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
7025 esac
7026 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
7027 sim_link_links="${sim_link_links} targ-vals.def"
7028
7029
7030
7031 # NOTE: Don't add -Wall or -Wunused, they both include
7032 # -Wunused-parameter which reports bogus warnings.
7033 # NOTE: If you add to this list, remember to update
7034 # gdb/doc/gdbint.texinfo.
7035 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
7036 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
7037 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
7038 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
7039 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
7040 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
7041 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
7042 # -Woverloaded-virtual -Winline -Werror"
7043 # Check whether --enable-build-warnings or --disable-build-warnings was given.
7044 if test "${enable_build_warnings+set}" = set; then
7045   enableval="$enable_build_warnings"
7046   case "${enableval}" in
7047   yes)  ;;
7048   no)   build_warnings="-w";;
7049   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
7050         build_warnings="${build_warnings} ${t}";;
7051   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
7052         build_warnings="${t} ${build_warnings}";;
7053   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7054 esac
7055 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
7056   echo "Setting compiler warning flags = $build_warnings" 6>&1
7057 fi
7058 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
7059 if test "${enable_sim_build_warnings+set}" = set; then
7060   enableval="$enable_sim_build_warnings"
7061   case "${enableval}" in
7062   yes)  ;;
7063   no)   build_warnings="-w";;
7064   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
7065         build_warnings="${build_warnings} ${t}";;
7066   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
7067         build_warnings="${t} ${build_warnings}";;
7068   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7069 esac
7070 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
7071   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7072 fi
7073 fi; WARN_CFLAGS=""
7074 WERROR_CFLAGS=""
7075 if test "x${build_warnings}" != x -a "x$GCC" = xyes
7076 then
7077     echo "$as_me:$LINENO: checking compiler warning flags" >&5
7078 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
7079     # Separate out the -Werror flag as some files just cannot be
7080     # compiled with it enabled.
7081     for w in ${build_warnings}; do
7082         case $w in
7083         -Werr*) WERROR_CFLAGS=-Werror ;;
7084         *) # Check that GCC accepts it
7085             saved_CFLAGS="$CFLAGS"
7086             CFLAGS="$CFLAGS $w"
7087             cat >conftest.$ac_ext <<_ACEOF
7088 /* confdefs.h.  */
7089 _ACEOF
7090 cat confdefs.h >>conftest.$ac_ext
7091 cat >>conftest.$ac_ext <<_ACEOF
7092 /* end confdefs.h.  */
7093
7094 int
7095 main ()
7096 {
7097
7098   ;
7099   return 0;
7100 }
7101 _ACEOF
7102 rm -f conftest.$ac_objext
7103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7104   (eval $ac_compile) 2>conftest.er1
7105   ac_status=$?
7106   grep -v '^ *+' conftest.er1 >conftest.err
7107   rm -f conftest.er1
7108   cat conftest.err >&5
7109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110   (exit $ac_status); } &&
7111          { ac_try='test -z "$ac_c_werror_flag"
7112                          || test ! -s conftest.err'
7113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114   (eval $ac_try) 2>&5
7115   ac_status=$?
7116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117   (exit $ac_status); }; } &&
7118          { ac_try='test -s conftest.$ac_objext'
7119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120   (eval $ac_try) 2>&5
7121   ac_status=$?
7122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123   (exit $ac_status); }; }; then
7124   WARN_CFLAGS="${WARN_CFLAGS} $w"
7125 else
7126   echo "$as_me: failed program was:" >&5
7127 sed 's/^/| /' conftest.$ac_ext >&5
7128
7129 fi
7130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7131             CFLAGS="$saved_CFLAGS"
7132         esac
7133     done
7134     echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
7135 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
7136 fi
7137
7138
7139
7140 for ac_header in unistd.h
7141 do
7142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7144   echo "$as_me:$LINENO: checking for $ac_header" >&5
7145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7147   echo $ECHO_N "(cached) $ECHO_C" >&6
7148 fi
7149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7151 else
7152   # Is the header compilable?
7153 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7155 cat >conftest.$ac_ext <<_ACEOF
7156 /* confdefs.h.  */
7157 _ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h.  */
7161 $ac_includes_default
7162 #include <$ac_header>
7163 _ACEOF
7164 rm -f conftest.$ac_objext
7165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7166   (eval $ac_compile) 2>conftest.er1
7167   ac_status=$?
7168   grep -v '^ *+' conftest.er1 >conftest.err
7169   rm -f conftest.er1
7170   cat conftest.err >&5
7171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172   (exit $ac_status); } &&
7173          { ac_try='test -z "$ac_c_werror_flag"
7174                          || test ! -s conftest.err'
7175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7176   (eval $ac_try) 2>&5
7177   ac_status=$?
7178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179   (exit $ac_status); }; } &&
7180          { ac_try='test -s conftest.$ac_objext'
7181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182   (eval $ac_try) 2>&5
7183   ac_status=$?
7184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185   (exit $ac_status); }; }; then
7186   ac_header_compiler=yes
7187 else
7188   echo "$as_me: failed program was:" >&5
7189 sed 's/^/| /' conftest.$ac_ext >&5
7190
7191 ac_header_compiler=no
7192 fi
7193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7194 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7195 echo "${ECHO_T}$ac_header_compiler" >&6
7196
7197 # Is the header present?
7198 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7200 cat >conftest.$ac_ext <<_ACEOF
7201 /* confdefs.h.  */
7202 _ACEOF
7203 cat confdefs.h >>conftest.$ac_ext
7204 cat >>conftest.$ac_ext <<_ACEOF
7205 /* end confdefs.h.  */
7206 #include <$ac_header>
7207 _ACEOF
7208 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7209   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7210   ac_status=$?
7211   grep -v '^ *+' conftest.er1 >conftest.err
7212   rm -f conftest.er1
7213   cat conftest.err >&5
7214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215   (exit $ac_status); } >/dev/null; then
7216   if test -s conftest.err; then
7217     ac_cpp_err=$ac_c_preproc_warn_flag
7218     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7219   else
7220     ac_cpp_err=
7221   fi
7222 else
7223   ac_cpp_err=yes
7224 fi
7225 if test -z "$ac_cpp_err"; then
7226   ac_header_preproc=yes
7227 else
7228   echo "$as_me: failed program was:" >&5
7229 sed 's/^/| /' conftest.$ac_ext >&5
7230
7231   ac_header_preproc=no
7232 fi
7233 rm -f conftest.err conftest.$ac_ext
7234 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7235 echo "${ECHO_T}$ac_header_preproc" >&6
7236
7237 # So?  What about this header?
7238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7239   yes:no: )
7240     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7242     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7244     ac_header_preproc=yes
7245     ;;
7246   no:yes:* )
7247     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7249     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7250 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7251     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7253     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7254 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7257     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7259     (
7260       cat <<\_ASBOX
7261 ## ------------------------------------------ ##
7262 ## Report this to the AC_PACKAGE_NAME lists.  ##
7263 ## ------------------------------------------ ##
7264 _ASBOX
7265     ) |
7266       sed "s/^/$as_me: WARNING:     /" >&2
7267     ;;
7268 esac
7269 echo "$as_me:$LINENO: checking for $ac_header" >&5
7270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7272   echo $ECHO_N "(cached) $ECHO_C" >&6
7273 else
7274   eval "$as_ac_Header=\$ac_header_preproc"
7275 fi
7276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7278
7279 fi
7280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7281   cat >>confdefs.h <<_ACEOF
7282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7283 _ACEOF
7284
7285 fi
7286
7287 done
7288
7289
7290
7291
7292 ac_sources="$sim_link_files"
7293 ac_dests="$sim_link_links"
7294 while test -n "$ac_sources"; do
7295   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7296   set $ac_sources; ac_source=$1; shift; ac_sources=$*
7297   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
7298 done
7299           ac_config_links="$ac_config_links $ac_config_links_1"
7300
7301 cgen_breaks=""
7302 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
7303 cgen_breaks="break cgen_rtx_error";
7304 fi
7305
7306           ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
7307
7308           ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
7309
7310           ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
7311
7312           ac_config_commands="$ac_config_commands Makefile"
7313
7314           ac_config_commands="$ac_config_commands stamp-h"
7315
7316 cat >confcache <<\_ACEOF
7317 # This file is a shell script that caches the results of configure
7318 # tests run on this system so they can be shared between configure
7319 # scripts and configure runs, see configure's option --config-cache.
7320 # It is not useful on other systems.  If it contains results you don't
7321 # want to keep, you may remove or edit it.
7322 #
7323 # config.status only pays attention to the cache file if you give it
7324 # the --recheck option to rerun configure.
7325 #
7326 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7327 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7328 # following values.
7329
7330 _ACEOF
7331
7332 # The following way of writing the cache mishandles newlines in values,
7333 # but we know of no workaround that is simple, portable, and efficient.
7334 # So, don't put newlines in cache variables' values.
7335 # Ultrix sh set writes to stderr and can't be redirected directly,
7336 # and sets the high bit in the cache file unless we assign to the vars.
7337 {
7338   (set) 2>&1 |
7339     case `(ac_space=' '; set | grep ac_space) 2>&1` in
7340     *ac_space=\ *)
7341       # `set' does not quote correctly, so add quotes (double-quote
7342       # substitution turns \\\\ into \\, and sed turns \\ into \).
7343       sed -n \
7344         "s/'/'\\\\''/g;
7345           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7346       ;;
7347     *)
7348       # `set' quotes correctly as required by POSIX, so do not add quotes.
7349       sed -n \
7350         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7351       ;;
7352     esac;
7353 } |
7354   sed '
7355      t clear
7356      : clear
7357      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7358      t end
7359      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7360      : end' >>confcache
7361 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7362   if test -w $cache_file; then
7363     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7364     cat confcache >$cache_file
7365   else
7366     echo "not updating unwritable cache $cache_file"
7367   fi
7368 fi
7369 rm -f confcache
7370
7371 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7372 # Let make expand exec_prefix.
7373 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7374
7375 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7376 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7377 # trailing colons and then remove the whole line if VPATH becomes empty
7378 # (actually we leave an empty line to preserve line numbers).
7379 if test "x$srcdir" = x.; then
7380   ac_vpsub='/^[  ]*VPATH[        ]*=/{
7381 s/:*\$(srcdir):*/:/;
7382 s/:*\${srcdir}:*/:/;
7383 s/:*@srcdir@:*/:/;
7384 s/^\([^=]*=[     ]*\):*/\1/;
7385 s/:*$//;
7386 s/^[^=]*=[       ]*$//;
7387 }'
7388 fi
7389
7390 DEFS=-DHAVE_CONFIG_H
7391
7392 ac_libobjs=
7393 ac_ltlibobjs=
7394 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7395   # 1. Remove the extension, and $U if already installed.
7396   ac_i=`echo "$ac_i" |
7397          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7398   # 2. Add them.
7399   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7400   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7401 done
7402 LIBOBJS=$ac_libobjs
7403
7404 LTLIBOBJS=$ac_ltlibobjs
7405
7406
7407
7408 : ${CONFIG_STATUS=./config.status}
7409 ac_clean_files_save=$ac_clean_files
7410 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7411 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7412 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7413 cat >$CONFIG_STATUS <<_ACEOF
7414 #! $SHELL
7415 # Generated by $as_me.
7416 # Run this file to recreate the current configuration.
7417 # Compiler output produced by configure, useful for debugging
7418 # configure, is in config.log if it exists.
7419
7420 debug=false
7421 ac_cs_recheck=false
7422 ac_cs_silent=false
7423 SHELL=\${CONFIG_SHELL-$SHELL}
7424 _ACEOF
7425
7426 cat >>$CONFIG_STATUS <<\_ACEOF
7427 ## --------------------- ##
7428 ## M4sh Initialization.  ##
7429 ## --------------------- ##
7430
7431 # Be Bourne compatible
7432 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7433   emulate sh
7434   NULLCMD=:
7435   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7436   # is contrary to our usage.  Disable this feature.
7437   alias -g '${1+"$@"}'='"$@"'
7438 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7439   set -o posix
7440 fi
7441 DUALCASE=1; export DUALCASE # for MKS sh
7442
7443 # Support unset when possible.
7444 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7445   as_unset=unset
7446 else
7447   as_unset=false
7448 fi
7449
7450
7451 # Work around bugs in pre-3.0 UWIN ksh.
7452 $as_unset ENV MAIL MAILPATH
7453 PS1='$ '
7454 PS2='> '
7455 PS4='+ '
7456
7457 # NLS nuisances.
7458 for as_var in \
7459   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7460   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7461   LC_TELEPHONE LC_TIME
7462 do
7463   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7464     eval $as_var=C; export $as_var
7465   else
7466     $as_unset $as_var
7467   fi
7468 done
7469
7470 # Required to use basename.
7471 if expr a : '\(a\)' >/dev/null 2>&1; then
7472   as_expr=expr
7473 else
7474   as_expr=false
7475 fi
7476
7477 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7478   as_basename=basename
7479 else
7480   as_basename=false
7481 fi
7482
7483
7484 # Name of the executable.
7485 as_me=`$as_basename "$0" ||
7486 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7487          X"$0" : 'X\(//\)$' \| \
7488          X"$0" : 'X\(/\)$' \| \
7489          .     : '\(.\)' 2>/dev/null ||
7490 echo X/"$0" |
7491     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7492           /^X\/\(\/\/\)$/{ s//\1/; q; }
7493           /^X\/\(\/\).*/{ s//\1/; q; }
7494           s/.*/./; q'`
7495
7496
7497 # PATH needs CR, and LINENO needs CR and PATH.
7498 # Avoid depending upon Character Ranges.
7499 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7500 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7501 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7502 as_cr_digits='0123456789'
7503 as_cr_alnum=$as_cr_Letters$as_cr_digits
7504
7505 # The user is always right.
7506 if test "${PATH_SEPARATOR+set}" != set; then
7507   echo "#! /bin/sh" >conf$$.sh
7508   echo  "exit 0"   >>conf$$.sh
7509   chmod +x conf$$.sh
7510   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7511     PATH_SEPARATOR=';'
7512   else
7513     PATH_SEPARATOR=:
7514   fi
7515   rm -f conf$$.sh
7516 fi
7517
7518
7519   as_lineno_1=$LINENO
7520   as_lineno_2=$LINENO
7521   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7522   test "x$as_lineno_1" != "x$as_lineno_2" &&
7523   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7524   # Find who we are.  Look in the path if we contain no path at all
7525   # relative or not.
7526   case $0 in
7527     *[\\/]* ) as_myself=$0 ;;
7528     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 for as_dir in $PATH
7530 do
7531   IFS=$as_save_IFS
7532   test -z "$as_dir" && as_dir=.
7533   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7534 done
7535
7536        ;;
7537   esac
7538   # We did not find ourselves, most probably we were run as `sh COMMAND'
7539   # in which case we are not to be found in the path.
7540   if test "x$as_myself" = x; then
7541     as_myself=$0
7542   fi
7543   if test ! -f "$as_myself"; then
7544     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7545 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7546    { (exit 1); exit 1; }; }
7547   fi
7548   case $CONFIG_SHELL in
7549   '')
7550     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7552 do
7553   IFS=$as_save_IFS
7554   test -z "$as_dir" && as_dir=.
7555   for as_base in sh bash ksh sh5; do
7556          case $as_dir in
7557          /*)
7558            if ("$as_dir/$as_base" -c '
7559   as_lineno_1=$LINENO
7560   as_lineno_2=$LINENO
7561   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7562   test "x$as_lineno_1" != "x$as_lineno_2" &&
7563   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7564              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7565              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7566              CONFIG_SHELL=$as_dir/$as_base
7567              export CONFIG_SHELL
7568              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7569            fi;;
7570          esac
7571        done
7572 done
7573 ;;
7574   esac
7575
7576   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7577   # uniformly replaced by the line number.  The first 'sed' inserts a
7578   # line-number line before each line; the second 'sed' does the real
7579   # work.  The second script uses 'N' to pair each line-number line
7580   # with the numbered line, and appends trailing '-' during
7581   # substitution so that $LINENO is not a special case at line end.
7582   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7583   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7584   sed '=' <$as_myself |
7585     sed '
7586       N
7587       s,$,-,
7588       : loop
7589       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7590       t loop
7591       s,-$,,
7592       s,^['$as_cr_digits']*\n,,
7593     ' >$as_me.lineno &&
7594   chmod +x $as_me.lineno ||
7595     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7596 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7597    { (exit 1); exit 1; }; }
7598
7599   # Don't try to exec as it changes $[0], causing all sort of problems
7600   # (the dirname of $[0] is not the place where we might find the
7601   # original and so on.  Autoconf is especially sensible to this).
7602   . ./$as_me.lineno
7603   # Exit status is that of the last command.
7604   exit
7605 }
7606
7607
7608 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7609   *c*,-n*) ECHO_N= ECHO_C='
7610 ' ECHO_T='      ' ;;
7611   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7612   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7613 esac
7614
7615 if expr a : '\(a\)' >/dev/null 2>&1; then
7616   as_expr=expr
7617 else
7618   as_expr=false
7619 fi
7620
7621 rm -f conf$$ conf$$.exe conf$$.file
7622 echo >conf$$.file
7623 if ln -s conf$$.file conf$$ 2>/dev/null; then
7624   # We could just check for DJGPP; but this test a) works b) is more generic
7625   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7626   if test -f conf$$.exe; then
7627     # Don't use ln at all; we don't have any links
7628     as_ln_s='cp -p'
7629   else
7630     as_ln_s='ln -s'
7631   fi
7632 elif ln conf$$.file conf$$ 2>/dev/null; then
7633   as_ln_s=ln
7634 else
7635   as_ln_s='cp -p'
7636 fi
7637 rm -f conf$$ conf$$.exe conf$$.file
7638
7639 if mkdir -p . 2>/dev/null; then
7640   as_mkdir_p=:
7641 else
7642   test -d ./-p && rmdir ./-p
7643   as_mkdir_p=false
7644 fi
7645
7646 as_executable_p="test -f"
7647
7648 # Sed expression to map a string onto a valid CPP name.
7649 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7650
7651 # Sed expression to map a string onto a valid variable name.
7652 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7653
7654
7655 # IFS
7656 # We need space, tab and new line, in precisely that order.
7657 as_nl='
7658 '
7659 IFS="   $as_nl"
7660
7661 # CDPATH.
7662 $as_unset CDPATH
7663
7664 exec 6>&1
7665
7666 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7667 # report actual input values of CONFIG_FILES etc. instead of their
7668 # values after options handling.  Logging --version etc. is OK.
7669 exec 5>>config.log
7670 {
7671   echo
7672   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7673 ## Running $as_me. ##
7674 _ASBOX
7675 } >&5
7676 cat >&5 <<_CSEOF
7677
7678 This file was extended by $as_me, which was
7679 generated by GNU Autoconf 2.59.  Invocation command line was
7680
7681   CONFIG_FILES    = $CONFIG_FILES
7682   CONFIG_HEADERS  = $CONFIG_HEADERS
7683   CONFIG_LINKS    = $CONFIG_LINKS
7684   CONFIG_COMMANDS = $CONFIG_COMMANDS
7685   $ $0 $@
7686
7687 _CSEOF
7688 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7689 echo >&5
7690 _ACEOF
7691
7692 # Files that config.status was made for.
7693 if test -n "$ac_config_files"; then
7694   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7695 fi
7696
7697 if test -n "$ac_config_headers"; then
7698   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7699 fi
7700
7701 if test -n "$ac_config_links"; then
7702   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7703 fi
7704
7705 if test -n "$ac_config_commands"; then
7706   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7707 fi
7708
7709 cat >>$CONFIG_STATUS <<\_ACEOF
7710
7711 ac_cs_usage="\
7712 \`$as_me' instantiates files from templates according to the
7713 current configuration.
7714
7715 Usage: $0 [OPTIONS] [FILE]...
7716
7717   -h, --help       print this help, then exit
7718   -V, --version    print version number, then exit
7719   -q, --quiet      do not print progress messages
7720   -d, --debug      don't remove temporary files
7721       --recheck    update $as_me by reconfiguring in the same conditions
7722   --file=FILE[:TEMPLATE]
7723                    instantiate the configuration file FILE
7724   --header=FILE[:TEMPLATE]
7725                    instantiate the configuration header FILE
7726
7727 Configuration files:
7728 $config_files
7729
7730 Configuration headers:
7731 $config_headers
7732
7733 Configuration links:
7734 $config_links
7735
7736 Configuration commands:
7737 $config_commands
7738
7739 Report bugs to <bug-autoconf@gnu.org>."
7740 _ACEOF
7741
7742 cat >>$CONFIG_STATUS <<_ACEOF
7743 ac_cs_version="\\
7744 config.status
7745 configured by $0, generated by GNU Autoconf 2.59,
7746   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7747
7748 Copyright (C) 2003 Free Software Foundation, Inc.
7749 This config.status script is free software; the Free Software Foundation
7750 gives unlimited permission to copy, distribute and modify it."
7751 srcdir=$srcdir
7752 INSTALL="$INSTALL"
7753 _ACEOF
7754
7755 cat >>$CONFIG_STATUS <<\_ACEOF
7756 # If no file are specified by the user, then we need to provide default
7757 # value.  By we need to know if files were specified by the user.
7758 ac_need_defaults=:
7759 while test $# != 0
7760 do
7761   case $1 in
7762   --*=*)
7763     ac_option=`expr "x$1" : 'x\([^=]*\)='`
7764     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7765     ac_shift=:
7766     ;;
7767   -*)
7768     ac_option=$1
7769     ac_optarg=$2
7770     ac_shift=shift
7771     ;;
7772   *) # This is not an option, so the user has probably given explicit
7773      # arguments.
7774      ac_option=$1
7775      ac_need_defaults=false;;
7776   esac
7777
7778   case $ac_option in
7779   # Handling of the options.
7780 _ACEOF
7781 cat >>$CONFIG_STATUS <<\_ACEOF
7782   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7783     ac_cs_recheck=: ;;
7784   --version | --vers* | -V )
7785     echo "$ac_cs_version"; exit 0 ;;
7786   --he | --h)
7787     # Conflict between --help and --header
7788     { { echo "$as_me:$LINENO: error: ambiguous option: $1
7789 Try \`$0 --help' for more information." >&5
7790 echo "$as_me: error: ambiguous option: $1
7791 Try \`$0 --help' for more information." >&2;}
7792    { (exit 1); exit 1; }; };;
7793   --help | --hel | -h )
7794     echo "$ac_cs_usage"; exit 0 ;;
7795   --debug | --d* | -d )
7796     debug=: ;;
7797   --file | --fil | --fi | --f )
7798     $ac_shift
7799     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7800     ac_need_defaults=false;;
7801   --header | --heade | --head | --hea )
7802     $ac_shift
7803     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7804     ac_need_defaults=false;;
7805   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7806   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7807     ac_cs_silent=: ;;
7808
7809   # This is an error.
7810   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7811 Try \`$0 --help' for more information." >&5
7812 echo "$as_me: error: unrecognized option: $1
7813 Try \`$0 --help' for more information." >&2;}
7814    { (exit 1); exit 1; }; } ;;
7815
7816   *) ac_config_targets="$ac_config_targets $1" ;;
7817
7818   esac
7819   shift
7820 done
7821
7822 ac_configure_extra_args=
7823
7824 if $ac_cs_silent; then
7825   exec 6>/dev/null
7826   ac_configure_extra_args="$ac_configure_extra_args --silent"
7827 fi
7828
7829 _ACEOF
7830 cat >>$CONFIG_STATUS <<_ACEOF
7831 if \$ac_cs_recheck; then
7832   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7833   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7834 fi
7835
7836 _ACEOF
7837
7838
7839
7840
7841
7842 cat >>$CONFIG_STATUS <<\_ACEOF
7843 for ac_config_target in $ac_config_targets
7844 do
7845   case "$ac_config_target" in
7846   # Handling of arguments.
7847   "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
7848   "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
7849   ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
7850   "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
7851   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
7852   "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
7853   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7854   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7855 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7856    { (exit 1); exit 1; }; };;
7857   esac
7858 done
7859
7860 # If the user did not use the arguments to specify the items to instantiate,
7861 # then the envvar interface is used.  Set only those that are not.
7862 # We use the long form for the default assignment because of an extremely
7863 # bizarre bug on SunOS 4.1.3.
7864 if $ac_need_defaults; then
7865   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7866   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7867   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
7868   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7869 fi
7870
7871 # Have a temporary directory for convenience.  Make it in the build tree
7872 # simply because there is no reason to put it here, and in addition,
7873 # creating and moving files from /tmp can sometimes cause problems.
7874 # Create a temporary directory, and hook for its removal unless debugging.
7875 $debug ||
7876 {
7877   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7878   trap '{ (exit 1); exit 1; }' 1 2 13 15
7879 }
7880
7881 # Create a (secure) tmp directory for tmp files.
7882
7883 {
7884   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7885   test -n "$tmp" && test -d "$tmp"
7886 }  ||
7887 {
7888   tmp=./confstat$$-$RANDOM
7889   (umask 077 && mkdir $tmp)
7890 } ||
7891 {
7892    echo "$me: cannot create a temporary directory in ." >&2
7893    { (exit 1); exit 1; }
7894 }
7895
7896 _ACEOF
7897
7898 cat >>$CONFIG_STATUS <<_ACEOF
7899
7900 #
7901 # CONFIG_FILES section.
7902 #
7903
7904 # No need to generate the scripts if there are no CONFIG_FILES.
7905 # This happens for instance when ./config.status config.h
7906 if test -n "\$CONFIG_FILES"; then
7907   # Protect against being on the right side of a sed subst in config.status.
7908   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7909    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7910 s,@SHELL@,$SHELL,;t t
7911 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7912 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7913 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7914 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7915 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7916 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7917 s,@exec_prefix@,$exec_prefix,;t t
7918 s,@prefix@,$prefix,;t t
7919 s,@program_transform_name@,$program_transform_name,;t t
7920 s,@bindir@,$bindir,;t t
7921 s,@sbindir@,$sbindir,;t t
7922 s,@libexecdir@,$libexecdir,;t t
7923 s,@datadir@,$datadir,;t t
7924 s,@sysconfdir@,$sysconfdir,;t t
7925 s,@sharedstatedir@,$sharedstatedir,;t t
7926 s,@localstatedir@,$localstatedir,;t t
7927 s,@libdir@,$libdir,;t t
7928 s,@includedir@,$includedir,;t t
7929 s,@oldincludedir@,$oldincludedir,;t t
7930 s,@infodir@,$infodir,;t t
7931 s,@mandir@,$mandir,;t t
7932 s,@build_alias@,$build_alias,;t t
7933 s,@host_alias@,$host_alias,;t t
7934 s,@target_alias@,$target_alias,;t t
7935 s,@DEFS@,$DEFS,;t t
7936 s,@ECHO_C@,$ECHO_C,;t t
7937 s,@ECHO_N@,$ECHO_N,;t t
7938 s,@ECHO_T@,$ECHO_T,;t t
7939 s,@LIBS@,$LIBS,;t t
7940 s,@sim_environment@,$sim_environment,;t t
7941 s,@sim_alignment@,$sim_alignment,;t t
7942 s,@sim_assert@,$sim_assert,;t t
7943 s,@sim_bitsize@,$sim_bitsize,;t t
7944 s,@sim_endian@,$sim_endian,;t t
7945 s,@sim_hostendian@,$sim_hostendian,;t t
7946 s,@sim_float@,$sim_float,;t t
7947 s,@sim_scache@,$sim_scache,;t t
7948 s,@sim_default_model@,$sim_default_model,;t t
7949 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
7950 s,@sim_hw_objs@,$sim_hw_objs,;t t
7951 s,@sim_hw@,$sim_hw,;t t
7952 s,@sim_inline@,$sim_inline,;t t
7953 s,@sim_packages@,$sim_packages,;t t
7954 s,@sim_regparm@,$sim_regparm,;t t
7955 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
7956 s,@sim_smp@,$sim_smp,;t t
7957 s,@sim_stdcall@,$sim_stdcall,;t t
7958 s,@sim_xor_endian@,$sim_xor_endian,;t t
7959 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
7960 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
7961 s,@build@,$build,;t t
7962 s,@build_cpu@,$build_cpu,;t t
7963 s,@build_vendor@,$build_vendor,;t t
7964 s,@build_os@,$build_os,;t t
7965 s,@host@,$host,;t t
7966 s,@host_cpu@,$host_cpu,;t t
7967 s,@host_vendor@,$host_vendor,;t t
7968 s,@host_os@,$host_os,;t t
7969 s,@target@,$target,;t t
7970 s,@target_cpu@,$target_cpu,;t t
7971 s,@target_vendor@,$target_vendor,;t t
7972 s,@target_os@,$target_os,;t t
7973 s,@CC@,$CC,;t t
7974 s,@CFLAGS@,$CFLAGS,;t t
7975 s,@LDFLAGS@,$LDFLAGS,;t t
7976 s,@CPPFLAGS@,$CPPFLAGS,;t t
7977 s,@ac_ct_CC@,$ac_ct_CC,;t t
7978 s,@EXEEXT@,$EXEEXT,;t t
7979 s,@OBJEXT@,$OBJEXT,;t t
7980 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7981 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7982 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7983 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
7984 s,@HDEFINES@,$HDEFINES,;t t
7985 s,@AR@,$AR,;t t
7986 s,@RANLIB@,$RANLIB,;t t
7987 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7988 s,@SET_MAKE@,$SET_MAKE,;t t
7989 s,@CPP@,$CPP,;t t
7990 s,@EGREP@,$EGREP,;t t
7991 s,@ALLOCA@,$ALLOCA,;t t
7992 s,@USE_NLS@,$USE_NLS,;t t
7993 s,@MSGFMT@,$MSGFMT,;t t
7994 s,@GMSGFMT@,$GMSGFMT,;t t
7995 s,@XGETTEXT@,$XGETTEXT,;t t
7996 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
7997 s,@CATALOGS@,$CATALOGS,;t t
7998 s,@CATOBJEXT@,$CATOBJEXT,;t t
7999 s,@DATADIRNAME@,$DATADIRNAME,;t t
8000 s,@GMOFILES@,$GMOFILES,;t t
8001 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8002 s,@INTLDEPS@,$INTLDEPS,;t t
8003 s,@INTLLIBS@,$INTLLIBS,;t t
8004 s,@INTLOBJS@,$INTLOBJS,;t t
8005 s,@POFILES@,$POFILES,;t t
8006 s,@POSUB@,$POSUB,;t t
8007 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
8008 s,@GT_NO@,$GT_NO,;t t
8009 s,@GT_YES@,$GT_YES,;t t
8010 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8011 s,@l@,$l,;t t
8012 s,@MAINT@,$MAINT,;t t
8013 s,@sim_bswap@,$sim_bswap,;t t
8014 s,@sim_cflags@,$sim_cflags,;t t
8015 s,@sim_debug@,$sim_debug,;t t
8016 s,@sim_stdio@,$sim_stdio,;t t
8017 s,@sim_trace@,$sim_trace,;t t
8018 s,@sim_profile@,$sim_profile,;t t
8019 s,@cgen_breaks@,$cgen_breaks,;t t
8020 s,@LIBOBJS@,$LIBOBJS,;t t
8021 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8022 CEOF
8023
8024 _ACEOF
8025
8026   cat >>$CONFIG_STATUS <<\_ACEOF
8027   # Split the substitutions into bite-sized pieces for seds with
8028   # small command number limits, like on Digital OSF/1 and HP-UX.
8029   ac_max_sed_lines=48
8030   ac_sed_frag=1 # Number of current file.
8031   ac_beg=1 # First line for current file.
8032   ac_end=$ac_max_sed_lines # Line after last line for current file.
8033   ac_more_lines=:
8034   ac_sed_cmds=
8035   while $ac_more_lines; do
8036     if test $ac_beg -gt 1; then
8037       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8038     else
8039       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8040     fi
8041     if test ! -s $tmp/subs.frag; then
8042       ac_more_lines=false
8043     else
8044       # The purpose of the label and of the branching condition is to
8045       # speed up the sed processing (if there are no `@' at all, there
8046       # is no need to browse any of the substitutions).
8047       # These are the two extra sed commands mentioned above.
8048       (echo ':t
8049   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8050       if test -z "$ac_sed_cmds"; then
8051         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8052       else
8053         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8054       fi
8055       ac_sed_frag=`expr $ac_sed_frag + 1`
8056       ac_beg=$ac_end
8057       ac_end=`expr $ac_end + $ac_max_sed_lines`
8058     fi
8059   done
8060   if test -z "$ac_sed_cmds"; then
8061     ac_sed_cmds=cat
8062   fi
8063 fi # test -n "$CONFIG_FILES"
8064
8065 _ACEOF
8066 cat >>$CONFIG_STATUS <<\_ACEOF
8067 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8068   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8069   case $ac_file in
8070   - | *:- | *:-:* ) # input from stdin
8071         cat >$tmp/stdin
8072         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8073         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8074   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8075         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8076   * )   ac_file_in=$ac_file.in ;;
8077   esac
8078
8079   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8080   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8081 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8082          X"$ac_file" : 'X\(//\)[^/]' \| \
8083          X"$ac_file" : 'X\(//\)$' \| \
8084          X"$ac_file" : 'X\(/\)' \| \
8085          .     : '\(.\)' 2>/dev/null ||
8086 echo X"$ac_file" |
8087     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8088           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8089           /^X\(\/\/\)$/{ s//\1/; q; }
8090           /^X\(\/\).*/{ s//\1/; q; }
8091           s/.*/./; q'`
8092   { if $as_mkdir_p; then
8093     mkdir -p "$ac_dir"
8094   else
8095     as_dir="$ac_dir"
8096     as_dirs=
8097     while test ! -d "$as_dir"; do
8098       as_dirs="$as_dir $as_dirs"
8099       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8100 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8101          X"$as_dir" : 'X\(//\)[^/]' \| \
8102          X"$as_dir" : 'X\(//\)$' \| \
8103          X"$as_dir" : 'X\(/\)' \| \
8104          .     : '\(.\)' 2>/dev/null ||
8105 echo X"$as_dir" |
8106     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8107           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8108           /^X\(\/\/\)$/{ s//\1/; q; }
8109           /^X\(\/\).*/{ s//\1/; q; }
8110           s/.*/./; q'`
8111     done
8112     test ! -n "$as_dirs" || mkdir $as_dirs
8113   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8114 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8115    { (exit 1); exit 1; }; }; }
8116
8117   ac_builddir=.
8118
8119 if test "$ac_dir" != .; then
8120   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8121   # A "../" for each directory in $ac_dir_suffix.
8122   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8123 else
8124   ac_dir_suffix= ac_top_builddir=
8125 fi
8126
8127 case $srcdir in
8128   .)  # No --srcdir option.  We are building in place.
8129     ac_srcdir=.
8130     if test -z "$ac_top_builddir"; then
8131        ac_top_srcdir=.
8132     else
8133        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8134     fi ;;
8135   [\\/]* | ?:[\\/]* )  # Absolute path.
8136     ac_srcdir=$srcdir$ac_dir_suffix;
8137     ac_top_srcdir=$srcdir ;;
8138   *) # Relative path.
8139     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8140     ac_top_srcdir=$ac_top_builddir$srcdir ;;
8141 esac
8142
8143 # Do not use `cd foo && pwd` to compute absolute paths, because
8144 # the directories may not exist.
8145 case `pwd` in
8146 .) ac_abs_builddir="$ac_dir";;
8147 *)
8148   case "$ac_dir" in
8149   .) ac_abs_builddir=`pwd`;;
8150   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8151   *) ac_abs_builddir=`pwd`/"$ac_dir";;
8152   esac;;
8153 esac
8154 case $ac_abs_builddir in
8155 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8156 *)
8157   case ${ac_top_builddir}. in
8158   .) ac_abs_top_builddir=$ac_abs_builddir;;
8159   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8160   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8161   esac;;
8162 esac
8163 case $ac_abs_builddir in
8164 .) ac_abs_srcdir=$ac_srcdir;;
8165 *)
8166   case $ac_srcdir in
8167   .) ac_abs_srcdir=$ac_abs_builddir;;
8168   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8169   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8170   esac;;
8171 esac
8172 case $ac_abs_builddir in
8173 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8174 *)
8175   case $ac_top_srcdir in
8176   .) ac_abs_top_srcdir=$ac_abs_builddir;;
8177   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8178   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8179   esac;;
8180 esac
8181
8182
8183   case $INSTALL in
8184   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8185   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8186   esac
8187
8188   if test x"$ac_file" != x-; then
8189     { echo "$as_me:$LINENO: creating $ac_file" >&5
8190 echo "$as_me: creating $ac_file" >&6;}
8191     rm -f "$ac_file"
8192   fi
8193   # Let's still pretend it is `configure' which instantiates (i.e., don't
8194   # use $as_me), people would be surprised to read:
8195   #    /* config.h.  Generated by config.status.  */
8196   if test x"$ac_file" = x-; then
8197     configure_input=
8198   else
8199     configure_input="$ac_file.  "
8200   fi
8201   configure_input=$configure_input"Generated from `echo $ac_file_in |
8202                                      sed 's,.*/,,'` by configure."
8203
8204   # First look for the input files in the build tree, otherwise in the
8205   # src tree.
8206   ac_file_inputs=`IFS=:
8207     for f in $ac_file_in; do
8208       case $f in
8209       -) echo $tmp/stdin ;;
8210       [\\/$]*)
8211          # Absolute (can't be DOS-style, as IFS=:)
8212          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8213 echo "$as_me: error: cannot find input file: $f" >&2;}
8214    { (exit 1); exit 1; }; }
8215          echo "$f";;
8216       *) # Relative
8217          if test -f "$f"; then
8218            # Build tree
8219            echo "$f"
8220          elif test -f "$srcdir/$f"; then
8221            # Source tree
8222            echo "$srcdir/$f"
8223          else
8224            # /dev/null tree
8225            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8226 echo "$as_me: error: cannot find input file: $f" >&2;}
8227    { (exit 1); exit 1; }; }
8228          fi;;
8229       esac
8230     done` || { (exit 1); exit 1; }
8231 _ACEOF
8232 cat >>$CONFIG_STATUS <<_ACEOF
8233   sed "$ac_vpsub
8234 $extrasub
8235 _ACEOF
8236 cat >>$CONFIG_STATUS <<\_ACEOF
8237 :t
8238 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8239 s,@configure_input@,$configure_input,;t t
8240 s,@srcdir@,$ac_srcdir,;t t
8241 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8242 s,@top_srcdir@,$ac_top_srcdir,;t t
8243 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8244 s,@builddir@,$ac_builddir,;t t
8245 s,@abs_builddir@,$ac_abs_builddir,;t t
8246 s,@top_builddir@,$ac_top_builddir,;t t
8247 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8248 s,@INSTALL@,$ac_INSTALL,;t t
8249 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8250   rm -f $tmp/stdin
8251   if test x"$ac_file" != x-; then
8252     mv $tmp/out $ac_file
8253   else
8254     cat $tmp/out
8255     rm -f $tmp/out
8256   fi
8257
8258 done
8259 _ACEOF
8260 cat >>$CONFIG_STATUS <<\_ACEOF
8261
8262 #
8263 # CONFIG_HEADER section.
8264 #
8265
8266 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8267 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8268 #
8269 # ac_d sets the value in "#define NAME VALUE" lines.
8270 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
8271 ac_dB='[         ].*$,\1#\2'
8272 ac_dC=' '
8273 ac_dD=',;t'
8274 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8275 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8276 ac_uB='$,\1#\2define\3'
8277 ac_uC=' '
8278 ac_uD=',;t'
8279
8280 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8281   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8282   case $ac_file in
8283   - | *:- | *:-:* ) # input from stdin
8284         cat >$tmp/stdin
8285         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8286         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8287   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8288         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8289   * )   ac_file_in=$ac_file.in ;;
8290   esac
8291
8292   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8293 echo "$as_me: creating $ac_file" >&6;}
8294
8295   # First look for the input files in the build tree, otherwise in the
8296   # src tree.
8297   ac_file_inputs=`IFS=:
8298     for f in $ac_file_in; do
8299       case $f in
8300       -) echo $tmp/stdin ;;
8301       [\\/$]*)
8302          # Absolute (can't be DOS-style, as IFS=:)
8303          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8304 echo "$as_me: error: cannot find input file: $f" >&2;}
8305    { (exit 1); exit 1; }; }
8306          # Do quote $f, to prevent DOS paths from being IFS'd.
8307          echo "$f";;
8308       *) # Relative
8309          if test -f "$f"; then
8310            # Build tree
8311            echo "$f"
8312          elif test -f "$srcdir/$f"; then
8313            # Source tree
8314            echo "$srcdir/$f"
8315          else
8316            # /dev/null tree
8317            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8318 echo "$as_me: error: cannot find input file: $f" >&2;}
8319    { (exit 1); exit 1; }; }
8320          fi;;
8321       esac
8322     done` || { (exit 1); exit 1; }
8323   # Remove the trailing spaces.
8324   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
8325
8326 _ACEOF
8327
8328 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8329 # `conftest.undefs', that substitutes the proper values into
8330 # config.h.in to produce config.h.  The first handles `#define'
8331 # templates, and the second `#undef' templates.
8332 # And first: Protect against being on the right side of a sed subst in
8333 # config.status.  Protect against being in an unquoted here document
8334 # in config.status.
8335 rm -f conftest.defines conftest.undefs
8336 # Using a here document instead of a string reduces the quoting nightmare.
8337 # Putting comments in sed scripts is not portable.
8338 #
8339 # `end' is used to avoid that the second main sed command (meant for
8340 # 0-ary CPP macros) applies to n-ary macro definitions.
8341 # See the Autoconf documentation for `clear'.
8342 cat >confdef2sed.sed <<\_ACEOF
8343 s/[\\&,]/\\&/g
8344 s,[\\$`],\\&,g
8345 t clear
8346 : clear
8347 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8348 t end
8349 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8350 : end
8351 _ACEOF
8352 # If some macros were called several times there might be several times
8353 # the same #defines, which is useless.  Nevertheless, we may not want to
8354 # sort them, since we want the *last* AC-DEFINE to be honored.
8355 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8356 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8357 rm -f confdef2sed.sed
8358
8359 # This sed command replaces #undef with comments.  This is necessary, for
8360 # example, in the case of _POSIX_SOURCE, which is predefined and required
8361 # on some systems where configure will not decide to define it.
8362 cat >>conftest.undefs <<\_ACEOF
8363 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8364 _ACEOF
8365
8366 # Break up conftest.defines because some shells have a limit on the size
8367 # of here documents, and old seds have small limits too (100 cmds).
8368 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8369 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8370 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8371 echo '  :' >>$CONFIG_STATUS
8372 rm -f conftest.tail
8373 while grep . conftest.defines >/dev/null
8374 do
8375   # Write a limited-size here document to $tmp/defines.sed.
8376   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8377   # Speed up: don't consider the non `#define' lines.
8378   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
8379   # Work around the forget-to-reset-the-flag bug.
8380   echo 't clr' >>$CONFIG_STATUS
8381   echo ': clr' >>$CONFIG_STATUS
8382   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8383   echo 'CEOF
8384   sed -f $tmp/defines.sed $tmp/in >$tmp/out
8385   rm -f $tmp/in
8386   mv $tmp/out $tmp/in
8387 ' >>$CONFIG_STATUS
8388   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8389   rm -f conftest.defines
8390   mv conftest.tail conftest.defines
8391 done
8392 rm -f conftest.defines
8393 echo '  fi # grep' >>$CONFIG_STATUS
8394 echo >>$CONFIG_STATUS
8395
8396 # Break up conftest.undefs because some shells have a limit on the size
8397 # of here documents, and old seds have small limits too (100 cmds).
8398 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
8399 rm -f conftest.tail
8400 while grep . conftest.undefs >/dev/null
8401 do
8402   # Write a limited-size here document to $tmp/undefs.sed.
8403   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8404   # Speed up: don't consider the non `#undef'
8405   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8406   # Work around the forget-to-reset-the-flag bug.
8407   echo 't clr' >>$CONFIG_STATUS
8408   echo ': clr' >>$CONFIG_STATUS
8409   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8410   echo 'CEOF
8411   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8412   rm -f $tmp/in
8413   mv $tmp/out $tmp/in
8414 ' >>$CONFIG_STATUS
8415   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8416   rm -f conftest.undefs
8417   mv conftest.tail conftest.undefs
8418 done
8419 rm -f conftest.undefs
8420
8421 cat >>$CONFIG_STATUS <<\_ACEOF
8422   # Let's still pretend it is `configure' which instantiates (i.e., don't
8423   # use $as_me), people would be surprised to read:
8424   #    /* config.h.  Generated by config.status.  */
8425   if test x"$ac_file" = x-; then
8426     echo "/* Generated by configure.  */" >$tmp/config.h
8427   else
8428     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8429   fi
8430   cat $tmp/in >>$tmp/config.h
8431   rm -f $tmp/in
8432   if test x"$ac_file" != x-; then
8433     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8434       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8435 echo "$as_me: $ac_file is unchanged" >&6;}
8436     else
8437       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8438 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8439          X"$ac_file" : 'X\(//\)[^/]' \| \
8440          X"$ac_file" : 'X\(//\)$' \| \
8441          X"$ac_file" : 'X\(/\)' \| \
8442          .     : '\(.\)' 2>/dev/null ||
8443 echo X"$ac_file" |
8444     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8445           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8446           /^X\(\/\/\)$/{ s//\1/; q; }
8447           /^X\(\/\).*/{ s//\1/; q; }
8448           s/.*/./; q'`
8449       { if $as_mkdir_p; then
8450     mkdir -p "$ac_dir"
8451   else
8452     as_dir="$ac_dir"
8453     as_dirs=
8454     while test ! -d "$as_dir"; do
8455       as_dirs="$as_dir $as_dirs"
8456       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8457 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8458          X"$as_dir" : 'X\(//\)[^/]' \| \
8459          X"$as_dir" : 'X\(//\)$' \| \
8460          X"$as_dir" : 'X\(/\)' \| \
8461          .     : '\(.\)' 2>/dev/null ||
8462 echo X"$as_dir" |
8463     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8464           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8465           /^X\(\/\/\)$/{ s//\1/; q; }
8466           /^X\(\/\).*/{ s//\1/; q; }
8467           s/.*/./; q'`
8468     done
8469     test ! -n "$as_dirs" || mkdir $as_dirs
8470   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8471 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8472    { (exit 1); exit 1; }; }; }
8473
8474       rm -f $ac_file
8475       mv $tmp/config.h $ac_file
8476     fi
8477   else
8478     cat $tmp/config.h
8479     rm -f $tmp/config.h
8480   fi
8481 done
8482 _ACEOF
8483 cat >>$CONFIG_STATUS <<\_ACEOF
8484
8485 #
8486 # CONFIG_LINKS section.
8487 #
8488
8489 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
8490   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8491   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8492
8493   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
8494 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
8495
8496   if test ! -r $srcdir/$ac_source; then
8497     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
8498 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
8499    { (exit 1); exit 1; }; }
8500   fi
8501   rm -f $ac_dest
8502
8503   # Make relative symlinks.
8504   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
8505 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8506          X"$ac_dest" : 'X\(//\)[^/]' \| \
8507          X"$ac_dest" : 'X\(//\)$' \| \
8508          X"$ac_dest" : 'X\(/\)' \| \
8509          .     : '\(.\)' 2>/dev/null ||
8510 echo X"$ac_dest" |
8511     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8512           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8513           /^X\(\/\/\)$/{ s//\1/; q; }
8514           /^X\(\/\).*/{ s//\1/; q; }
8515           s/.*/./; q'`
8516   { if $as_mkdir_p; then
8517     mkdir -p "$ac_dest_dir"
8518   else
8519     as_dir="$ac_dest_dir"
8520     as_dirs=
8521     while test ! -d "$as_dir"; do
8522       as_dirs="$as_dir $as_dirs"
8523       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8524 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8525          X"$as_dir" : 'X\(//\)[^/]' \| \
8526          X"$as_dir" : 'X\(//\)$' \| \
8527          X"$as_dir" : 'X\(/\)' \| \
8528          .     : '\(.\)' 2>/dev/null ||
8529 echo X"$as_dir" |
8530     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8531           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8532           /^X\(\/\/\)$/{ s//\1/; q; }
8533           /^X\(\/\).*/{ s//\1/; q; }
8534           s/.*/./; q'`
8535     done
8536     test ! -n "$as_dirs" || mkdir $as_dirs
8537   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
8538 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
8539    { (exit 1); exit 1; }; }; }
8540
8541   ac_builddir=.
8542
8543 if test "$ac_dest_dir" != .; then
8544   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
8545   # A "../" for each directory in $ac_dir_suffix.
8546   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8547 else
8548   ac_dir_suffix= ac_top_builddir=
8549 fi
8550
8551 case $srcdir in
8552   .)  # No --srcdir option.  We are building in place.
8553     ac_srcdir=.
8554     if test -z "$ac_top_builddir"; then
8555        ac_top_srcdir=.
8556     else
8557        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8558     fi ;;
8559   [\\/]* | ?:[\\/]* )  # Absolute path.
8560     ac_srcdir=$srcdir$ac_dir_suffix;
8561     ac_top_srcdir=$srcdir ;;
8562   *) # Relative path.
8563     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8564     ac_top_srcdir=$ac_top_builddir$srcdir ;;
8565 esac
8566
8567 # Do not use `cd foo && pwd` to compute absolute paths, because
8568 # the directories may not exist.
8569 case `pwd` in
8570 .) ac_abs_builddir="$ac_dest_dir";;
8571 *)
8572   case "$ac_dest_dir" in
8573   .) ac_abs_builddir=`pwd`;;
8574   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
8575   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
8576   esac;;
8577 esac
8578 case $ac_abs_builddir in
8579 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8580 *)
8581   case ${ac_top_builddir}. in
8582   .) ac_abs_top_builddir=$ac_abs_builddir;;
8583   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8584   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8585   esac;;
8586 esac
8587 case $ac_abs_builddir in
8588 .) ac_abs_srcdir=$ac_srcdir;;
8589 *)
8590   case $ac_srcdir in
8591   .) ac_abs_srcdir=$ac_abs_builddir;;
8592   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8593   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8594   esac;;
8595 esac
8596 case $ac_abs_builddir in
8597 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8598 *)
8599   case $ac_top_srcdir in
8600   .) ac_abs_top_srcdir=$ac_abs_builddir;;
8601   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8602   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8603   esac;;
8604 esac
8605
8606
8607   case $srcdir in
8608   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
8609       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
8610   esac
8611
8612   # Try a symlink, then a hard link, then a copy.
8613   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8614     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
8615     cp -p $srcdir/$ac_source $ac_dest ||
8616     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
8617 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
8618    { (exit 1); exit 1; }; }
8619 done
8620 _ACEOF
8621 cat >>$CONFIG_STATUS <<\_ACEOF
8622
8623 #
8624 # CONFIG_COMMANDS section.
8625 #
8626 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8627   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8628   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8629   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8630 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8631          X"$ac_dest" : 'X\(//\)[^/]' \| \
8632          X"$ac_dest" : 'X\(//\)$' \| \
8633          X"$ac_dest" : 'X\(/\)' \| \
8634          .     : '\(.\)' 2>/dev/null ||
8635 echo X"$ac_dest" |
8636     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8637           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8638           /^X\(\/\/\)$/{ s//\1/; q; }
8639           /^X\(\/\).*/{ s//\1/; q; }
8640           s/.*/./; q'`
8641   { if $as_mkdir_p; then
8642     mkdir -p "$ac_dir"
8643   else
8644     as_dir="$ac_dir"
8645     as_dirs=
8646     while test ! -d "$as_dir"; do
8647       as_dirs="$as_dir $as_dirs"
8648       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8649 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8650          X"$as_dir" : 'X\(//\)[^/]' \| \
8651          X"$as_dir" : 'X\(//\)$' \| \
8652          X"$as_dir" : 'X\(/\)' \| \
8653          .     : '\(.\)' 2>/dev/null ||
8654 echo X"$as_dir" |
8655     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8656           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8657           /^X\(\/\/\)$/{ s//\1/; q; }
8658           /^X\(\/\).*/{ s//\1/; q; }
8659           s/.*/./; q'`
8660     done
8661     test ! -n "$as_dirs" || mkdir $as_dirs
8662   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8663 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8664    { (exit 1); exit 1; }; }; }
8665
8666   ac_builddir=.
8667
8668 if test "$ac_dir" != .; then
8669   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8670   # A "../" for each directory in $ac_dir_suffix.
8671   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8672 else
8673   ac_dir_suffix= ac_top_builddir=
8674 fi
8675
8676 case $srcdir in
8677   .)  # No --srcdir option.  We are building in place.
8678     ac_srcdir=.
8679     if test -z "$ac_top_builddir"; then
8680        ac_top_srcdir=.
8681     else
8682        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8683     fi ;;
8684   [\\/]* | ?:[\\/]* )  # Absolute path.
8685     ac_srcdir=$srcdir$ac_dir_suffix;
8686     ac_top_srcdir=$srcdir ;;
8687   *) # Relative path.
8688     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8689     ac_top_srcdir=$ac_top_builddir$srcdir ;;
8690 esac
8691
8692 # Do not use `cd foo && pwd` to compute absolute paths, because
8693 # the directories may not exist.
8694 case `pwd` in
8695 .) ac_abs_builddir="$ac_dir";;
8696 *)
8697   case "$ac_dir" in
8698   .) ac_abs_builddir=`pwd`;;
8699   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8700   *) ac_abs_builddir=`pwd`/"$ac_dir";;
8701   esac;;
8702 esac
8703 case $ac_abs_builddir in
8704 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8705 *)
8706   case ${ac_top_builddir}. in
8707   .) ac_abs_top_builddir=$ac_abs_builddir;;
8708   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8709   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8710   esac;;
8711 esac
8712 case $ac_abs_builddir in
8713 .) ac_abs_srcdir=$ac_srcdir;;
8714 *)
8715   case $ac_srcdir in
8716   .) ac_abs_srcdir=$ac_abs_builddir;;
8717   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8718   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8719   esac;;
8720 esac
8721 case $ac_abs_builddir in
8722 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8723 *)
8724   case $ac_top_srcdir in
8725   .) ac_abs_top_srcdir=$ac_abs_builddir;;
8726   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8727   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8728   esac;;
8729 esac
8730
8731
8732   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8733 echo "$as_me: executing $ac_dest commands" >&6;}
8734   case $ac_dest in
8735     Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
8736  rm -f Makesim1.tmp Makesim2.tmp Makefile
8737  sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
8738  sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
8739  sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
8740         -e '/^## COMMON_POST_/ r Makesim2.tmp' \
8741         <Makefile.sim >Makefile
8742  rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
8743  ;;
8744     stamp-h ) echo > stamp-h ;;
8745   esac
8746 done
8747 _ACEOF
8748
8749 cat >>$CONFIG_STATUS <<\_ACEOF
8750
8751 { (exit 0); exit 0; }
8752 _ACEOF
8753 chmod +x $CONFIG_STATUS
8754 ac_clean_files=$ac_clean_files_save
8755
8756
8757 # configure is writing to config.log, and then calls config.status.
8758 # config.status does its own redirection, appending to config.log.
8759 # Unfortunately, on DOS this fails, as config.log is still kept open
8760 # by configure, so config.status won't be able to write to it; its
8761 # output is simply discarded.  So we exec the FD to /dev/null,
8762 # effectively closing config.log, so it can be properly (re)opened and
8763 # appended to by config.status.  When coming back to configure, we
8764 # need to make the FD available again.
8765 if test "$no_create" != yes; then
8766   ac_cs_success=:
8767   ac_config_status_args=
8768   test "$silent" = yes &&
8769     ac_config_status_args="$ac_config_status_args --quiet"
8770   exec 5>/dev/null
8771   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8772   exec 5>>config.log
8773   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8774   # would make configure fail if this is the last instruction.
8775   $ac_cs_success || { (exit 1); exit 1; }
8776 fi
8777
8778