This commit was generated by cvs2svn to track changes on a CVS vendor
[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
4833 cat >>confdefs.h <<\_ACEOF
4834 #define HAVE_STPCPY 1
4835 _ACEOF
4836
4837    fi
4838
4839    if test $ac_cv_header_locale_h = yes; then
4840     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4841 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4842 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4843   echo $ECHO_N "(cached) $ECHO_C" >&6
4844 else
4845   cat >conftest.$ac_ext <<_ACEOF
4846 /* confdefs.h.  */
4847 _ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h.  */
4851 #include <locale.h>
4852 int
4853 main ()
4854 {
4855 return LC_MESSAGES
4856   ;
4857   return 0;
4858 }
4859 _ACEOF
4860 rm -f conftest.$ac_objext conftest$ac_exeext
4861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4862   (eval $ac_link) 2>conftest.er1
4863   ac_status=$?
4864   grep -v '^ *+' conftest.er1 >conftest.err
4865   rm -f conftest.er1
4866   cat conftest.err >&5
4867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868   (exit $ac_status); } &&
4869          { ac_try='test -z "$ac_c_werror_flag"
4870                          || test ! -s conftest.err'
4871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872   (eval $ac_try) 2>&5
4873   ac_status=$?
4874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875   (exit $ac_status); }; } &&
4876          { ac_try='test -s conftest$ac_exeext'
4877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878   (eval $ac_try) 2>&5
4879   ac_status=$?
4880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881   (exit $ac_status); }; }; then
4882   am_cv_val_LC_MESSAGES=yes
4883 else
4884   echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4886
4887 am_cv_val_LC_MESSAGES=no
4888 fi
4889 rm -f conftest.err conftest.$ac_objext \
4890       conftest$ac_exeext conftest.$ac_ext
4891 fi
4892 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4893 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4894     if test $am_cv_val_LC_MESSAGES = yes; then
4895
4896 cat >>confdefs.h <<\_ACEOF
4897 #define HAVE_LC_MESSAGES 1
4898 _ACEOF
4899
4900     fi
4901   fi
4902    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4903 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4904         # Check whether --enable-nls or --disable-nls was given.
4905 if test "${enable_nls+set}" = set; then
4906   enableval="$enable_nls"
4907   USE_NLS=$enableval
4908 else
4909   USE_NLS=yes
4910 fi;
4911     echo "$as_me:$LINENO: result: $USE_NLS" >&5
4912 echo "${ECHO_T}$USE_NLS" >&6
4913
4914
4915     USE_INCLUDED_LIBINTL=no
4916
4917         if test "$USE_NLS" = "yes"; then
4918       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4919 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4920
4921 # Check whether --with-included-gettext or --without-included-gettext was given.
4922 if test "${with_included_gettext+set}" = set; then
4923   withval="$with_included_gettext"
4924   nls_cv_force_use_gnu_gettext=$withval
4925 else
4926   nls_cv_force_use_gnu_gettext=no
4927 fi;
4928       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4929 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4930
4931       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4932       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4933                                         nls_cv_header_intl=
4934         nls_cv_header_libgt=
4935         CATOBJEXT=
4936
4937         if test "${ac_cv_header_libintl_h+set}" = set; then
4938   echo "$as_me:$LINENO: checking for libintl.h" >&5
4939 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4940 if test "${ac_cv_header_libintl_h+set}" = set; then
4941   echo $ECHO_N "(cached) $ECHO_C" >&6
4942 fi
4943 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4944 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4945 else
4946   # Is the header compilable?
4947 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4948 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4949 cat >conftest.$ac_ext <<_ACEOF
4950 /* confdefs.h.  */
4951 _ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h.  */
4955 $ac_includes_default
4956 #include <libintl.h>
4957 _ACEOF
4958 rm -f conftest.$ac_objext
4959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4960   (eval $ac_compile) 2>conftest.er1
4961   ac_status=$?
4962   grep -v '^ *+' conftest.er1 >conftest.err
4963   rm -f conftest.er1
4964   cat conftest.err >&5
4965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966   (exit $ac_status); } &&
4967          { ac_try='test -z "$ac_c_werror_flag"
4968                          || test ! -s conftest.err'
4969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970   (eval $ac_try) 2>&5
4971   ac_status=$?
4972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973   (exit $ac_status); }; } &&
4974          { ac_try='test -s conftest.$ac_objext'
4975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976   (eval $ac_try) 2>&5
4977   ac_status=$?
4978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979   (exit $ac_status); }; }; then
4980   ac_header_compiler=yes
4981 else
4982   echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4984
4985 ac_header_compiler=no
4986 fi
4987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4989 echo "${ECHO_T}$ac_header_compiler" >&6
4990
4991 # Is the header present?
4992 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4993 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4994 cat >conftest.$ac_ext <<_ACEOF
4995 /* confdefs.h.  */
4996 _ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h.  */
5000 #include <libintl.h>
5001 _ACEOF
5002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5003   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5004   ac_status=$?
5005   grep -v '^ *+' conftest.er1 >conftest.err
5006   rm -f conftest.er1
5007   cat conftest.err >&5
5008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009   (exit $ac_status); } >/dev/null; then
5010   if test -s conftest.err; then
5011     ac_cpp_err=$ac_c_preproc_warn_flag
5012     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5013   else
5014     ac_cpp_err=
5015   fi
5016 else
5017   ac_cpp_err=yes
5018 fi
5019 if test -z "$ac_cpp_err"; then
5020   ac_header_preproc=yes
5021 else
5022   echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5024
5025   ac_header_preproc=no
5026 fi
5027 rm -f conftest.err conftest.$ac_ext
5028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5029 echo "${ECHO_T}$ac_header_preproc" >&6
5030
5031 # So?  What about this header?
5032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5033   yes:no: )
5034     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5035 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5036     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5037 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5038     ac_header_preproc=yes
5039     ;;
5040   no:yes:* )
5041     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5042 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5043     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
5044 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
5045     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5046 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5047     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
5048 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5049     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5050 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5051     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5052 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5053     (
5054       cat <<\_ASBOX
5055 ## ------------------------------------------ ##
5056 ## Report this to the AC_PACKAGE_NAME lists.  ##
5057 ## ------------------------------------------ ##
5058 _ASBOX
5059     ) |
5060       sed "s/^/$as_me: WARNING:     /" >&2
5061     ;;
5062 esac
5063 echo "$as_me:$LINENO: checking for libintl.h" >&5
5064 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5065 if test "${ac_cv_header_libintl_h+set}" = set; then
5066   echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068   ac_cv_header_libintl_h=$ac_header_preproc
5069 fi
5070 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5071 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5072
5073 fi
5074 if test $ac_cv_header_libintl_h = yes; then
5075   echo "$as_me:$LINENO: checking for gettext in libc" >&5
5076 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5077 if test "${gt_cv_func_gettext_libc+set}" = set; then
5078   echo $ECHO_N "(cached) $ECHO_C" >&6
5079 else
5080   cat >conftest.$ac_ext <<_ACEOF
5081 /* confdefs.h.  */
5082 _ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h.  */
5086 #include <libintl.h>
5087 int
5088 main ()
5089 {
5090 return (int) gettext ("")
5091   ;
5092   return 0;
5093 }
5094 _ACEOF
5095 rm -f conftest.$ac_objext conftest$ac_exeext
5096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5097   (eval $ac_link) 2>conftest.er1
5098   ac_status=$?
5099   grep -v '^ *+' conftest.er1 >conftest.err
5100   rm -f conftest.er1
5101   cat conftest.err >&5
5102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103   (exit $ac_status); } &&
5104          { ac_try='test -z "$ac_c_werror_flag"
5105                          || test ! -s conftest.err'
5106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107   (eval $ac_try) 2>&5
5108   ac_status=$?
5109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110   (exit $ac_status); }; } &&
5111          { ac_try='test -s conftest$ac_exeext'
5112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113   (eval $ac_try) 2>&5
5114   ac_status=$?
5115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116   (exit $ac_status); }; }; then
5117   gt_cv_func_gettext_libc=yes
5118 else
5119   echo "$as_me: failed program was:" >&5
5120 sed 's/^/| /' conftest.$ac_ext >&5
5121
5122 gt_cv_func_gettext_libc=no
5123 fi
5124 rm -f conftest.err conftest.$ac_objext \
5125       conftest$ac_exeext conftest.$ac_ext
5126 fi
5127 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5128 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5129
5130            if test "$gt_cv_func_gettext_libc" != "yes"; then
5131              echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5132 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5133 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5134   echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136   ac_check_lib_save_LIBS=$LIBS
5137 LIBS="-lintl  $LIBS"
5138 cat >conftest.$ac_ext <<_ACEOF
5139 /* confdefs.h.  */
5140 _ACEOF
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h.  */
5144
5145 /* Override any gcc2 internal prototype to avoid an error.  */
5146 #ifdef __cplusplus
5147 extern "C"
5148 #endif
5149 /* We use char because int might match the return type of a gcc2
5150    builtin and then its argument prototype would still apply.  */
5151 char bindtextdomain ();
5152 int
5153 main ()
5154 {
5155 bindtextdomain ();
5156   ;
5157   return 0;
5158 }
5159 _ACEOF
5160 rm -f conftest.$ac_objext conftest$ac_exeext
5161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5162   (eval $ac_link) 2>conftest.er1
5163   ac_status=$?
5164   grep -v '^ *+' conftest.er1 >conftest.err
5165   rm -f conftest.er1
5166   cat conftest.err >&5
5167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168   (exit $ac_status); } &&
5169          { ac_try='test -z "$ac_c_werror_flag"
5170                          || test ! -s conftest.err'
5171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172   (eval $ac_try) 2>&5
5173   ac_status=$?
5174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175   (exit $ac_status); }; } &&
5176          { ac_try='test -s conftest$ac_exeext'
5177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5178   (eval $ac_try) 2>&5
5179   ac_status=$?
5180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181   (exit $ac_status); }; }; then
5182   ac_cv_lib_intl_bindtextdomain=yes
5183 else
5184   echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.$ac_ext >&5
5186
5187 ac_cv_lib_intl_bindtextdomain=no
5188 fi
5189 rm -f conftest.err conftest.$ac_objext \
5190       conftest$ac_exeext conftest.$ac_ext
5191 LIBS=$ac_check_lib_save_LIBS
5192 fi
5193 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5194 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5195 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5196   echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5197 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5198 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5199   echo $ECHO_N "(cached) $ECHO_C" >&6
5200 else
5201   cat >conftest.$ac_ext <<_ACEOF
5202 /* confdefs.h.  */
5203 _ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h.  */
5207
5208 int
5209 main ()
5210 {
5211 return (int) gettext ("")
5212   ;
5213   return 0;
5214 }
5215 _ACEOF
5216 rm -f conftest.$ac_objext conftest$ac_exeext
5217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5218   (eval $ac_link) 2>conftest.er1
5219   ac_status=$?
5220   grep -v '^ *+' conftest.er1 >conftest.err
5221   rm -f conftest.er1
5222   cat conftest.err >&5
5223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224   (exit $ac_status); } &&
5225          { ac_try='test -z "$ac_c_werror_flag"
5226                          || test ! -s conftest.err'
5227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228   (eval $ac_try) 2>&5
5229   ac_status=$?
5230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231   (exit $ac_status); }; } &&
5232          { ac_try='test -s conftest$ac_exeext'
5233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234   (eval $ac_try) 2>&5
5235   ac_status=$?
5236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237   (exit $ac_status); }; }; then
5238   gt_cv_func_gettext_libintl=yes
5239 else
5240   echo "$as_me: failed program was:" >&5
5241 sed 's/^/| /' conftest.$ac_ext >&5
5242
5243 gt_cv_func_gettext_libintl=no
5244 fi
5245 rm -f conftest.err conftest.$ac_objext \
5246       conftest$ac_exeext conftest.$ac_ext
5247 fi
5248 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5249 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5250 fi
5251
5252            fi
5253
5254            if test "$gt_cv_func_gettext_libc" = "yes" \
5255               || test "$gt_cv_func_gettext_libintl" = "yes"; then
5256
5257 cat >>confdefs.h <<\_ACEOF
5258 #define HAVE_GETTEXT 1
5259 _ACEOF
5260
5261               # Extract the first word of "msgfmt", so it can be a program name with args.
5262 set dummy msgfmt; ac_word=$2
5263 echo "$as_me:$LINENO: checking for $ac_word" >&5
5264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5265 if test "${ac_cv_path_MSGFMT+set}" = set; then
5266   echo $ECHO_N "(cached) $ECHO_C" >&6
5267 else
5268   case "$MSGFMT" in
5269   /*)
5270   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5271   ;;
5272   *)
5273   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5274   for ac_dir in $PATH; do
5275     test -z "$ac_dir" && ac_dir=.
5276     if test -f $ac_dir/$ac_word; then
5277       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5278         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5279         break
5280       fi
5281     fi
5282   done
5283   IFS="$ac_save_ifs"
5284   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5285   ;;
5286 esac
5287 fi
5288 MSGFMT="$ac_cv_path_MSGFMT"
5289 if test -n "$MSGFMT"; then
5290   echo "$as_me:$LINENO: result: $MSGFMT" >&5
5291 echo "${ECHO_T}$MSGFMT" >&6
5292 else
5293   echo "$as_me:$LINENO: result: no" >&5
5294 echo "${ECHO_T}no" >&6
5295 fi
5296               if test "$MSGFMT" != "no"; then
5297
5298 for ac_func in dcgettext
5299 do
5300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5301 echo "$as_me:$LINENO: checking for $ac_func" >&5
5302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5303 if eval "test \"\${$as_ac_var+set}\" = set"; then
5304   echo $ECHO_N "(cached) $ECHO_C" >&6
5305 else
5306   cat >conftest.$ac_ext <<_ACEOF
5307 /* confdefs.h.  */
5308 _ACEOF
5309 cat confdefs.h >>conftest.$ac_ext
5310 cat >>conftest.$ac_ext <<_ACEOF
5311 /* end confdefs.h.  */
5312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5314 #define $ac_func innocuous_$ac_func
5315
5316 /* System header to define __stub macros and hopefully few prototypes,
5317     which can conflict with char $ac_func (); below.
5318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5319     <limits.h> exists even on freestanding compilers.  */
5320
5321 #ifdef __STDC__
5322 # include <limits.h>
5323 #else
5324 # include <assert.h>
5325 #endif
5326
5327 #undef $ac_func
5328
5329 /* Override any gcc2 internal prototype to avoid an error.  */
5330 #ifdef __cplusplus
5331 extern "C"
5332 {
5333 #endif
5334 /* We use char because int might match the return type of a gcc2
5335    builtin and then its argument prototype would still apply.  */
5336 char $ac_func ();
5337 /* The GNU C library defines this for functions which it implements
5338     to always fail with ENOSYS.  Some functions are actually named
5339     something starting with __ and the normal name is an alias.  */
5340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5341 choke me
5342 #else
5343 char (*f) () = $ac_func;
5344 #endif
5345 #ifdef __cplusplus
5346 }
5347 #endif
5348
5349 int
5350 main ()
5351 {
5352 return f != $ac_func;
5353   ;
5354   return 0;
5355 }
5356 _ACEOF
5357 rm -f conftest.$ac_objext conftest$ac_exeext
5358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5359   (eval $ac_link) 2>conftest.er1
5360   ac_status=$?
5361   grep -v '^ *+' conftest.er1 >conftest.err
5362   rm -f conftest.er1
5363   cat conftest.err >&5
5364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365   (exit $ac_status); } &&
5366          { ac_try='test -z "$ac_c_werror_flag"
5367                          || test ! -s conftest.err'
5368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369   (eval $ac_try) 2>&5
5370   ac_status=$?
5371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372   (exit $ac_status); }; } &&
5373          { ac_try='test -s conftest$ac_exeext'
5374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375   (eval $ac_try) 2>&5
5376   ac_status=$?
5377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378   (exit $ac_status); }; }; then
5379   eval "$as_ac_var=yes"
5380 else
5381   echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5383
5384 eval "$as_ac_var=no"
5385 fi
5386 rm -f conftest.err conftest.$ac_objext \
5387       conftest$ac_exeext conftest.$ac_ext
5388 fi
5389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5391 if test `eval echo '${'$as_ac_var'}'` = yes; then
5392   cat >>confdefs.h <<_ACEOF
5393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5394 _ACEOF
5395
5396 fi
5397 done
5398
5399                 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5400 set dummy gmsgfmt; ac_word=$2
5401 echo "$as_me:$LINENO: checking for $ac_word" >&5
5402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5403 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5404   echo $ECHO_N "(cached) $ECHO_C" >&6
5405 else
5406   case $GMSGFMT in
5407   [\\/]* | ?:[\\/]*)
5408   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5409   ;;
5410   *)
5411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH
5413 do
5414   IFS=$as_save_IFS
5415   test -z "$as_dir" && as_dir=.
5416   for ac_exec_ext in '' $ac_executable_extensions; do
5417   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5418     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5420     break 2
5421   fi
5422 done
5423 done
5424
5425   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5426   ;;
5427 esac
5428 fi
5429 GMSGFMT=$ac_cv_path_GMSGFMT
5430
5431 if test -n "$GMSGFMT"; then
5432   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5433 echo "${ECHO_T}$GMSGFMT" >&6
5434 else
5435   echo "$as_me:$LINENO: result: no" >&5
5436 echo "${ECHO_T}no" >&6
5437 fi
5438
5439                 # Extract the first word of "xgettext", so it can be a program name with args.
5440 set dummy xgettext; ac_word=$2
5441 echo "$as_me:$LINENO: checking for $ac_word" >&5
5442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5443 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5444   echo $ECHO_N "(cached) $ECHO_C" >&6
5445 else
5446   case "$XGETTEXT" in
5447   /*)
5448   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5449   ;;
5450   *)
5451   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5452   for ac_dir in $PATH; do
5453     test -z "$ac_dir" && ac_dir=.
5454     if test -f $ac_dir/$ac_word; then
5455       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5456         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5457         break
5458       fi
5459     fi
5460   done
5461   IFS="$ac_save_ifs"
5462   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5463   ;;
5464 esac
5465 fi
5466 XGETTEXT="$ac_cv_path_XGETTEXT"
5467 if test -n "$XGETTEXT"; then
5468   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5469 echo "${ECHO_T}$XGETTEXT" >&6
5470 else
5471   echo "$as_me:$LINENO: result: no" >&5
5472 echo "${ECHO_T}no" >&6
5473 fi
5474
5475                 cat >conftest.$ac_ext <<_ACEOF
5476 /* confdefs.h.  */
5477 _ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h.  */
5481
5482 int
5483 main ()
5484 {
5485 extern int _nl_msg_cat_cntr;
5486                                return _nl_msg_cat_cntr
5487   ;
5488   return 0;
5489 }
5490 _ACEOF
5491 rm -f conftest.$ac_objext conftest$ac_exeext
5492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5493   (eval $ac_link) 2>conftest.er1
5494   ac_status=$?
5495   grep -v '^ *+' conftest.er1 >conftest.err
5496   rm -f conftest.er1
5497   cat conftest.err >&5
5498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499   (exit $ac_status); } &&
5500          { ac_try='test -z "$ac_c_werror_flag"
5501                          || test ! -s conftest.err'
5502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503   (eval $ac_try) 2>&5
5504   ac_status=$?
5505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506   (exit $ac_status); }; } &&
5507          { ac_try='test -s conftest$ac_exeext'
5508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509   (eval $ac_try) 2>&5
5510   ac_status=$?
5511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512   (exit $ac_status); }; }; then
5513   CATOBJEXT=.gmo
5514                    DATADIRNAME=share
5515 else
5516   echo "$as_me: failed program was:" >&5
5517 sed 's/^/| /' conftest.$ac_ext >&5
5518
5519 CATOBJEXT=.mo
5520                    DATADIRNAME=lib
5521 fi
5522 rm -f conftest.err conftest.$ac_objext \
5523       conftest$ac_exeext conftest.$ac_ext
5524                 INSTOBJEXT=.mo
5525               fi
5526             fi
5527
5528 fi
5529
5530
5531
5532
5533         if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
5534           # Neither gettext nor catgets in included in the C library.
5535           # Fall back on GNU gettext library (assuming it is present).
5536           nls_cv_use_gnu_gettext=yes
5537         fi
5538       fi
5539
5540       if test "$nls_cv_use_gnu_gettext" = "yes"; then
5541                 INTLOBJS="\$(GETTOBJS)"
5542         # Extract the first word of "msgfmt", so it can be a program name with args.
5543 set dummy msgfmt; ac_word=$2
5544 echo "$as_me:$LINENO: checking for $ac_word" >&5
5545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5546 if test "${ac_cv_path_MSGFMT+set}" = set; then
5547   echo $ECHO_N "(cached) $ECHO_C" >&6
5548 else
5549   case "$MSGFMT" in
5550   /*)
5551   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5552   ;;
5553   *)
5554   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5555   for ac_dir in $PATH; do
5556     test -z "$ac_dir" && ac_dir=.
5557     if test -f $ac_dir/$ac_word; then
5558       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5559         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5560         break
5561       fi
5562     fi
5563   done
5564   IFS="$ac_save_ifs"
5565   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5566   ;;
5567 esac
5568 fi
5569 MSGFMT="$ac_cv_path_MSGFMT"
5570 if test -n "$MSGFMT"; then
5571   echo "$as_me:$LINENO: result: $MSGFMT" >&5
5572 echo "${ECHO_T}$MSGFMT" >&6
5573 else
5574   echo "$as_me:$LINENO: result: no" >&5
5575 echo "${ECHO_T}no" >&6
5576 fi
5577
5578         # Extract the first word of "gmsgfmt", so it can be a program name with args.
5579 set dummy gmsgfmt; ac_word=$2
5580 echo "$as_me:$LINENO: checking for $ac_word" >&5
5581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5582 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5583   echo $ECHO_N "(cached) $ECHO_C" >&6
5584 else
5585   case $GMSGFMT in
5586   [\\/]* | ?:[\\/]*)
5587   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5588   ;;
5589   *)
5590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH
5592 do
5593   IFS=$as_save_IFS
5594   test -z "$as_dir" && as_dir=.
5595   for ac_exec_ext in '' $ac_executable_extensions; do
5596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5597     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5599     break 2
5600   fi
5601 done
5602 done
5603
5604   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5605   ;;
5606 esac
5607 fi
5608 GMSGFMT=$ac_cv_path_GMSGFMT
5609
5610 if test -n "$GMSGFMT"; then
5611   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5612 echo "${ECHO_T}$GMSGFMT" >&6
5613 else
5614   echo "$as_me:$LINENO: result: no" >&5
5615 echo "${ECHO_T}no" >&6
5616 fi
5617
5618         # Extract the first word of "xgettext", so it can be a program name with args.
5619 set dummy xgettext; ac_word=$2
5620 echo "$as_me:$LINENO: checking for $ac_word" >&5
5621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5622 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5623   echo $ECHO_N "(cached) $ECHO_C" >&6
5624 else
5625   case "$XGETTEXT" in
5626   /*)
5627   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5628   ;;
5629   *)
5630   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5631   for ac_dir in $PATH; do
5632     test -z "$ac_dir" && ac_dir=.
5633     if test -f $ac_dir/$ac_word; then
5634       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5635         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5636         break
5637       fi
5638     fi
5639   done
5640   IFS="$ac_save_ifs"
5641   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5642   ;;
5643 esac
5644 fi
5645 XGETTEXT="$ac_cv_path_XGETTEXT"
5646 if test -n "$XGETTEXT"; then
5647   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5648 echo "${ECHO_T}$XGETTEXT" >&6
5649 else
5650   echo "$as_me:$LINENO: result: no" >&5
5651 echo "${ECHO_T}no" >&6
5652 fi
5653
5654
5655         USE_INCLUDED_LIBINTL=yes
5656         CATOBJEXT=.gmo
5657         INSTOBJEXT=.mo
5658         DATADIRNAME=share
5659         INTLDEPS='$(top_builddir)/../intl/libintl.a'
5660         INTLLIBS=$INTLDEPS
5661         LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5662         nls_cv_header_intl=libintl.h
5663         nls_cv_header_libgt=libgettext.h
5664       fi
5665
5666             if test "$XGETTEXT" != ":"; then
5667                         if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5668           : ;
5669         else
5670           echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5671 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5672           XGETTEXT=":"
5673         fi
5674       fi
5675
5676       # We need to process the po/ directory.
5677       POSUB=po
5678     else
5679       DATADIRNAME=share
5680       nls_cv_header_intl=libintl.h
5681       nls_cv_header_libgt=libgettext.h
5682     fi
5683
5684     # If this is used in GNU gettext we have to set USE_NLS to `yes'
5685     # because some of the sources are only built for this goal.
5686     if test "$PACKAGE" = gettext; then
5687       USE_NLS=yes
5688       USE_INCLUDED_LIBINTL=yes
5689     fi
5690
5691                 for lang in $ALL_LINGUAS; do
5692       GMOFILES="$GMOFILES $lang.gmo"
5693       POFILES="$POFILES $lang.po"
5694     done
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707     if test "x$CATOBJEXT" != "x"; then
5708
5709 cat >>confdefs.h <<\_ACEOF
5710 #define ENABLE_NLS 1
5711 _ACEOF
5712
5713     fi
5714
5715
5716    if test "x$CATOBJEXT" != "x"; then
5717      if test "x$ALL_LINGUAS" = "x"; then
5718        LINGUAS=
5719      else
5720        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5721 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5722        NEW_LINGUAS=
5723        for lang in ${LINGUAS=$ALL_LINGUAS}; do
5724          case "$ALL_LINGUAS" in
5725           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5726          esac
5727        done
5728        LINGUAS=$NEW_LINGUAS
5729        echo "$as_me:$LINENO: result: $LINGUAS" >&5
5730 echo "${ECHO_T}$LINGUAS" >&6
5731      fi
5732
5733           if test -n "$LINGUAS"; then
5734        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5735      fi
5736    fi
5737
5738             if test $ac_cv_header_locale_h = yes; then
5739      INCLUDE_LOCALE_H="#include <locale.h>"
5740    else
5741      INCLUDE_LOCALE_H="\
5742 /* The system does not provide the header <locale.h>.  Take care yourself.  */"
5743    fi
5744
5745
5746             if test -f $srcdir/po2tbl.sed.in; then
5747       if test "$CATOBJEXT" = ".cat"; then
5748          if test "${ac_cv_header_linux_version_h+set}" = set; then
5749   echo "$as_me:$LINENO: checking for linux/version.h" >&5
5750 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5751 if test "${ac_cv_header_linux_version_h+set}" = set; then
5752   echo $ECHO_N "(cached) $ECHO_C" >&6
5753 fi
5754 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5755 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5756 else
5757   # Is the header compilable?
5758 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5759 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5760 cat >conftest.$ac_ext <<_ACEOF
5761 /* confdefs.h.  */
5762 _ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h.  */
5766 $ac_includes_default
5767 #include <linux/version.h>
5768 _ACEOF
5769 rm -f conftest.$ac_objext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5771   (eval $ac_compile) 2>conftest.er1
5772   ac_status=$?
5773   grep -v '^ *+' conftest.er1 >conftest.err
5774   rm -f conftest.er1
5775   cat conftest.err >&5
5776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777   (exit $ac_status); } &&
5778          { ac_try='test -z "$ac_c_werror_flag"
5779                          || test ! -s conftest.err'
5780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781   (eval $ac_try) 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); }; } &&
5785          { ac_try='test -s conftest.$ac_objext'
5786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787   (eval $ac_try) 2>&5
5788   ac_status=$?
5789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790   (exit $ac_status); }; }; then
5791   ac_header_compiler=yes
5792 else
5793   echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.$ac_ext >&5
5795
5796 ac_header_compiler=no
5797 fi
5798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5799 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5800 echo "${ECHO_T}$ac_header_compiler" >&6
5801
5802 # Is the header present?
5803 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5804 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5805 cat >conftest.$ac_ext <<_ACEOF
5806 /* confdefs.h.  */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h.  */
5811 #include <linux/version.h>
5812 _ACEOF
5813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5814   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5815   ac_status=$?
5816   grep -v '^ *+' conftest.er1 >conftest.err
5817   rm -f conftest.er1
5818   cat conftest.err >&5
5819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820   (exit $ac_status); } >/dev/null; then
5821   if test -s conftest.err; then
5822     ac_cpp_err=$ac_c_preproc_warn_flag
5823     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5824   else
5825     ac_cpp_err=
5826   fi
5827 else
5828   ac_cpp_err=yes
5829 fi
5830 if test -z "$ac_cpp_err"; then
5831   ac_header_preproc=yes
5832 else
5833   echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.$ac_ext >&5
5835
5836   ac_header_preproc=no
5837 fi
5838 rm -f conftest.err conftest.$ac_ext
5839 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5840 echo "${ECHO_T}$ac_header_preproc" >&6
5841
5842 # So?  What about this header?
5843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5844   yes:no: )
5845     { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5846 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5847     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5848 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5849     ac_header_preproc=yes
5850     ;;
5851   no:yes:* )
5852     { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5853 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5854     { echo "$as_me:$LINENO: WARNING: linux/version.h:     check for missing prerequisite headers?" >&5
5855 echo "$as_me: WARNING: linux/version.h:     check for missing prerequisite headers?" >&2;}
5856     { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5857 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5858     { echo "$as_me:$LINENO: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&5
5859 echo "$as_me: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5860     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5861 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5862     { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5863 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5864     (
5865       cat <<\_ASBOX
5866 ## ------------------------------------------ ##
5867 ## Report this to the AC_PACKAGE_NAME lists.  ##
5868 ## ------------------------------------------ ##
5869 _ASBOX
5870     ) |
5871       sed "s/^/$as_me: WARNING:     /" >&2
5872     ;;
5873 esac
5874 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5875 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5876 if test "${ac_cv_header_linux_version_h+set}" = set; then
5877   echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879   ac_cv_header_linux_version_h=$ac_header_preproc
5880 fi
5881 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5882 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5883
5884 fi
5885 if test $ac_cv_header_linux_version_h = yes; then
5886   msgformat=linux
5887 else
5888   msgformat=xopen
5889 fi
5890
5891
5892
5893                          sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5894       fi
5895             sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5896          $srcdir/po2tbl.sed.in > po2tbl.sed
5897    fi
5898
5899             if test "$PACKAGE" = "gettext"; then
5900      GT_NO="#NO#"
5901      GT_YES=
5902    else
5903      GT_NO=
5904      GT_YES="#YES#"
5905    fi
5906
5907
5908
5909    MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5910
5911
5912       l=
5913
5914
5915             if test -f $srcdir/po/POTFILES.in; then
5916       test -d po || mkdir po
5917       if test "x$srcdir" != "x."; then
5918          if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5919             posrcprefix="$srcdir/"
5920          else
5921             posrcprefix="../$srcdir/"
5922          fi
5923       else
5924          posrcprefix="../"
5925       fi
5926       rm -f po/POTFILES
5927       sed -e "/^#/d" -e "/^\$/d" -e "s,.*,      $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5928          < $srcdir/po/POTFILES.in > po/POTFILES
5929    fi
5930
5931
5932 # Check for common headers.
5933 # FIXME: Seems to me this can cause problems for i386-windows hosts.
5934 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
5935
5936
5937
5938
5939
5940 for ac_header in stdlib.h string.h strings.h unistd.h time.h
5941 do
5942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5944   echo "$as_me:$LINENO: checking for $ac_header" >&5
5945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5947   echo $ECHO_N "(cached) $ECHO_C" >&6
5948 fi
5949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5951 else
5952   # Is the header compilable?
5953 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5955 cat >conftest.$ac_ext <<_ACEOF
5956 /* confdefs.h.  */
5957 _ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h.  */
5961 $ac_includes_default
5962 #include <$ac_header>
5963 _ACEOF
5964 rm -f conftest.$ac_objext
5965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5966   (eval $ac_compile) 2>conftest.er1
5967   ac_status=$?
5968   grep -v '^ *+' conftest.er1 >conftest.err
5969   rm -f conftest.er1
5970   cat conftest.err >&5
5971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972   (exit $ac_status); } &&
5973          { ac_try='test -z "$ac_c_werror_flag"
5974                          || test ! -s conftest.err'
5975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5976   (eval $ac_try) 2>&5
5977   ac_status=$?
5978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979   (exit $ac_status); }; } &&
5980          { ac_try='test -s conftest.$ac_objext'
5981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982   (eval $ac_try) 2>&5
5983   ac_status=$?
5984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985   (exit $ac_status); }; }; then
5986   ac_header_compiler=yes
5987 else
5988   echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5990
5991 ac_header_compiler=no
5992 fi
5993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5995 echo "${ECHO_T}$ac_header_compiler" >&6
5996
5997 # Is the header present?
5998 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6000 cat >conftest.$ac_ext <<_ACEOF
6001 /* confdefs.h.  */
6002 _ACEOF
6003 cat confdefs.h >>conftest.$ac_ext
6004 cat >>conftest.$ac_ext <<_ACEOF
6005 /* end confdefs.h.  */
6006 #include <$ac_header>
6007 _ACEOF
6008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6009   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6010   ac_status=$?
6011   grep -v '^ *+' conftest.er1 >conftest.err
6012   rm -f conftest.er1
6013   cat conftest.err >&5
6014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015   (exit $ac_status); } >/dev/null; then
6016   if test -s conftest.err; then
6017     ac_cpp_err=$ac_c_preproc_warn_flag
6018     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6019   else
6020     ac_cpp_err=
6021   fi
6022 else
6023   ac_cpp_err=yes
6024 fi
6025 if test -z "$ac_cpp_err"; then
6026   ac_header_preproc=yes
6027 else
6028   echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6030
6031   ac_header_preproc=no
6032 fi
6033 rm -f conftest.err conftest.$ac_ext
6034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6035 echo "${ECHO_T}$ac_header_preproc" >&6
6036
6037 # So?  What about this header?
6038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6039   yes:no: )
6040     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6044     ac_header_preproc=yes
6045     ;;
6046   no:yes:* )
6047     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6049     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6050 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6051     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6053     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6054 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6055     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6057     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6059     (
6060       cat <<\_ASBOX
6061 ## ------------------------------------------ ##
6062 ## Report this to the AC_PACKAGE_NAME lists.  ##
6063 ## ------------------------------------------ ##
6064 _ASBOX
6065     ) |
6066       sed "s/^/$as_me: WARNING:     /" >&2
6067     ;;
6068 esac
6069 echo "$as_me:$LINENO: checking for $ac_header" >&5
6070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6072   echo $ECHO_N "(cached) $ECHO_C" >&6
6073 else
6074   eval "$as_ac_Header=\$ac_header_preproc"
6075 fi
6076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6078
6079 fi
6080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6081   cat >>confdefs.h <<_ACEOF
6082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6083 _ACEOF
6084
6085 fi
6086
6087 done
6088
6089
6090
6091 for ac_header in sys/time.h sys/resource.h
6092 do
6093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6095   echo "$as_me:$LINENO: checking for $ac_header" >&5
6096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6098   echo $ECHO_N "(cached) $ECHO_C" >&6
6099 fi
6100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6102 else
6103   # Is the header compilable?
6104 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6106 cat >conftest.$ac_ext <<_ACEOF
6107 /* confdefs.h.  */
6108 _ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h.  */
6112 $ac_includes_default
6113 #include <$ac_header>
6114 _ACEOF
6115 rm -f conftest.$ac_objext
6116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6117   (eval $ac_compile) 2>conftest.er1
6118   ac_status=$?
6119   grep -v '^ *+' conftest.er1 >conftest.err
6120   rm -f conftest.er1
6121   cat conftest.err >&5
6122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123   (exit $ac_status); } &&
6124          { ac_try='test -z "$ac_c_werror_flag"
6125                          || test ! -s conftest.err'
6126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127   (eval $ac_try) 2>&5
6128   ac_status=$?
6129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130   (exit $ac_status); }; } &&
6131          { ac_try='test -s conftest.$ac_objext'
6132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133   (eval $ac_try) 2>&5
6134   ac_status=$?
6135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136   (exit $ac_status); }; }; then
6137   ac_header_compiler=yes
6138 else
6139   echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6141
6142 ac_header_compiler=no
6143 fi
6144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6146 echo "${ECHO_T}$ac_header_compiler" >&6
6147
6148 # Is the header present?
6149 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6151 cat >conftest.$ac_ext <<_ACEOF
6152 /* confdefs.h.  */
6153 _ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h.  */
6157 #include <$ac_header>
6158 _ACEOF
6159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6160   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6161   ac_status=$?
6162   grep -v '^ *+' conftest.er1 >conftest.err
6163   rm -f conftest.er1
6164   cat conftest.err >&5
6165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166   (exit $ac_status); } >/dev/null; then
6167   if test -s conftest.err; then
6168     ac_cpp_err=$ac_c_preproc_warn_flag
6169     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6170   else
6171     ac_cpp_err=
6172   fi
6173 else
6174   ac_cpp_err=yes
6175 fi
6176 if test -z "$ac_cpp_err"; then
6177   ac_header_preproc=yes
6178 else
6179   echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.$ac_ext >&5
6181
6182   ac_header_preproc=no
6183 fi
6184 rm -f conftest.err conftest.$ac_ext
6185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6186 echo "${ECHO_T}$ac_header_preproc" >&6
6187
6188 # So?  What about this header?
6189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6190   yes:no: )
6191     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6195     ac_header_preproc=yes
6196     ;;
6197   no:yes:* )
6198     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6199 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6200     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6201 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6202     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6203 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6204     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6205 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6206     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6208     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6209 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6210     (
6211       cat <<\_ASBOX
6212 ## ------------------------------------------ ##
6213 ## Report this to the AC_PACKAGE_NAME lists.  ##
6214 ## ------------------------------------------ ##
6215 _ASBOX
6216     ) |
6217       sed "s/^/$as_me: WARNING:     /" >&2
6218     ;;
6219 esac
6220 echo "$as_me:$LINENO: checking for $ac_header" >&5
6221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6223   echo $ECHO_N "(cached) $ECHO_C" >&6
6224 else
6225   eval "$as_ac_Header=\$ac_header_preproc"
6226 fi
6227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6229
6230 fi
6231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6232   cat >>confdefs.h <<_ACEOF
6233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6234 _ACEOF
6235
6236 fi
6237
6238 done
6239
6240
6241
6242 for ac_header in fcntl.h fpu_control.h
6243 do
6244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6246   echo "$as_me:$LINENO: checking for $ac_header" >&5
6247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6249   echo $ECHO_N "(cached) $ECHO_C" >&6
6250 fi
6251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6253 else
6254   # Is the header compilable?
6255 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6257 cat >conftest.$ac_ext <<_ACEOF
6258 /* confdefs.h.  */
6259 _ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h.  */
6263 $ac_includes_default
6264 #include <$ac_header>
6265 _ACEOF
6266 rm -f conftest.$ac_objext
6267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6268   (eval $ac_compile) 2>conftest.er1
6269   ac_status=$?
6270   grep -v '^ *+' conftest.er1 >conftest.err
6271   rm -f conftest.er1
6272   cat conftest.err >&5
6273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274   (exit $ac_status); } &&
6275          { ac_try='test -z "$ac_c_werror_flag"
6276                          || test ! -s conftest.err'
6277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278   (eval $ac_try) 2>&5
6279   ac_status=$?
6280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281   (exit $ac_status); }; } &&
6282          { ac_try='test -s conftest.$ac_objext'
6283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284   (eval $ac_try) 2>&5
6285   ac_status=$?
6286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287   (exit $ac_status); }; }; then
6288   ac_header_compiler=yes
6289 else
6290   echo "$as_me: failed program was:" >&5
6291 sed 's/^/| /' conftest.$ac_ext >&5
6292
6293 ac_header_compiler=no
6294 fi
6295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6296 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6297 echo "${ECHO_T}$ac_header_compiler" >&6
6298
6299 # Is the header present?
6300 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6302 cat >conftest.$ac_ext <<_ACEOF
6303 /* confdefs.h.  */
6304 _ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h.  */
6308 #include <$ac_header>
6309 _ACEOF
6310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6311   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6312   ac_status=$?
6313   grep -v '^ *+' conftest.er1 >conftest.err
6314   rm -f conftest.er1
6315   cat conftest.err >&5
6316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317   (exit $ac_status); } >/dev/null; then
6318   if test -s conftest.err; then
6319     ac_cpp_err=$ac_c_preproc_warn_flag
6320     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6321   else
6322     ac_cpp_err=
6323   fi
6324 else
6325   ac_cpp_err=yes
6326 fi
6327 if test -z "$ac_cpp_err"; then
6328   ac_header_preproc=yes
6329 else
6330   echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6332
6333   ac_header_preproc=no
6334 fi
6335 rm -f conftest.err conftest.$ac_ext
6336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6337 echo "${ECHO_T}$ac_header_preproc" >&6
6338
6339 # So?  What about this header?
6340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6341   yes:no: )
6342     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6344     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6346     ac_header_preproc=yes
6347     ;;
6348   no:yes:* )
6349     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6351     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6352 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6353     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6355     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6356 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6357     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6359     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6361     (
6362       cat <<\_ASBOX
6363 ## ------------------------------------------ ##
6364 ## Report this to the AC_PACKAGE_NAME lists.  ##
6365 ## ------------------------------------------ ##
6366 _ASBOX
6367     ) |
6368       sed "s/^/$as_me: WARNING:     /" >&2
6369     ;;
6370 esac
6371 echo "$as_me:$LINENO: checking for $ac_header" >&5
6372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6374   echo $ECHO_N "(cached) $ECHO_C" >&6
6375 else
6376   eval "$as_ac_Header=\$ac_header_preproc"
6377 fi
6378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6380
6381 fi
6382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6383   cat >>confdefs.h <<_ACEOF
6384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6385 _ACEOF
6386
6387 fi
6388
6389 done
6390
6391
6392
6393
6394 for ac_header in dlfcn.h errno.h sys/stat.h
6395 do
6396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6398   echo "$as_me:$LINENO: checking for $ac_header" >&5
6399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6401   echo $ECHO_N "(cached) $ECHO_C" >&6
6402 fi
6403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6405 else
6406   # Is the header compilable?
6407 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6409 cat >conftest.$ac_ext <<_ACEOF
6410 /* confdefs.h.  */
6411 _ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h.  */
6415 $ac_includes_default
6416 #include <$ac_header>
6417 _ACEOF
6418 rm -f conftest.$ac_objext
6419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6420   (eval $ac_compile) 2>conftest.er1
6421   ac_status=$?
6422   grep -v '^ *+' conftest.er1 >conftest.err
6423   rm -f conftest.er1
6424   cat conftest.err >&5
6425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426   (exit $ac_status); } &&
6427          { ac_try='test -z "$ac_c_werror_flag"
6428                          || test ! -s conftest.err'
6429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430   (eval $ac_try) 2>&5
6431   ac_status=$?
6432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433   (exit $ac_status); }; } &&
6434          { ac_try='test -s conftest.$ac_objext'
6435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436   (eval $ac_try) 2>&5
6437   ac_status=$?
6438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439   (exit $ac_status); }; }; then
6440   ac_header_compiler=yes
6441 else
6442   echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6444
6445 ac_header_compiler=no
6446 fi
6447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6449 echo "${ECHO_T}$ac_header_compiler" >&6
6450
6451 # Is the header present?
6452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6454 cat >conftest.$ac_ext <<_ACEOF
6455 /* confdefs.h.  */
6456 _ACEOF
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h.  */
6460 #include <$ac_header>
6461 _ACEOF
6462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6463   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6464   ac_status=$?
6465   grep -v '^ *+' conftest.er1 >conftest.err
6466   rm -f conftest.er1
6467   cat conftest.err >&5
6468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469   (exit $ac_status); } >/dev/null; then
6470   if test -s conftest.err; then
6471     ac_cpp_err=$ac_c_preproc_warn_flag
6472     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6473   else
6474     ac_cpp_err=
6475   fi
6476 else
6477   ac_cpp_err=yes
6478 fi
6479 if test -z "$ac_cpp_err"; then
6480   ac_header_preproc=yes
6481 else
6482   echo "$as_me: failed program was:" >&5
6483 sed 's/^/| /' conftest.$ac_ext >&5
6484
6485   ac_header_preproc=no
6486 fi
6487 rm -f conftest.err conftest.$ac_ext
6488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6489 echo "${ECHO_T}$ac_header_preproc" >&6
6490
6491 # So?  What about this header?
6492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6493   yes:no: )
6494     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6496     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6498     ac_header_preproc=yes
6499     ;;
6500   no:yes:* )
6501     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6503     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6504 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6505     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6507     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6508 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6509     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6511     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6513     (
6514       cat <<\_ASBOX
6515 ## ------------------------------------------ ##
6516 ## Report this to the AC_PACKAGE_NAME lists.  ##
6517 ## ------------------------------------------ ##
6518 _ASBOX
6519     ) |
6520       sed "s/^/$as_me: WARNING:     /" >&2
6521     ;;
6522 esac
6523 echo "$as_me:$LINENO: checking for $ac_header" >&5
6524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6526   echo $ECHO_N "(cached) $ECHO_C" >&6
6527 else
6528   eval "$as_ac_Header=\$ac_header_preproc"
6529 fi
6530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6532
6533 fi
6534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6535   cat >>confdefs.h <<_ACEOF
6536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6537 _ACEOF
6538
6539 fi
6540
6541 done
6542
6543
6544
6545
6546
6547 for ac_func in getrusage time sigaction __setfpucw
6548 do
6549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6550 echo "$as_me:$LINENO: checking for $ac_func" >&5
6551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6552 if eval "test \"\${$as_ac_var+set}\" = set"; then
6553   echo $ECHO_N "(cached) $ECHO_C" >&6
6554 else
6555   cat >conftest.$ac_ext <<_ACEOF
6556 /* confdefs.h.  */
6557 _ACEOF
6558 cat confdefs.h >>conftest.$ac_ext
6559 cat >>conftest.$ac_ext <<_ACEOF
6560 /* end confdefs.h.  */
6561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6562    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6563 #define $ac_func innocuous_$ac_func
6564
6565 /* System header to define __stub macros and hopefully few prototypes,
6566     which can conflict with char $ac_func (); below.
6567     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6568     <limits.h> exists even on freestanding compilers.  */
6569
6570 #ifdef __STDC__
6571 # include <limits.h>
6572 #else
6573 # include <assert.h>
6574 #endif
6575
6576 #undef $ac_func
6577
6578 /* Override any gcc2 internal prototype to avoid an error.  */
6579 #ifdef __cplusplus
6580 extern "C"
6581 {
6582 #endif
6583 /* We use char because int might match the return type of a gcc2
6584    builtin and then its argument prototype would still apply.  */
6585 char $ac_func ();
6586 /* The GNU C library defines this for functions which it implements
6587     to always fail with ENOSYS.  Some functions are actually named
6588     something starting with __ and the normal name is an alias.  */
6589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6590 choke me
6591 #else
6592 char (*f) () = $ac_func;
6593 #endif
6594 #ifdef __cplusplus
6595 }
6596 #endif
6597
6598 int
6599 main ()
6600 {
6601 return f != $ac_func;
6602   ;
6603   return 0;
6604 }
6605 _ACEOF
6606 rm -f conftest.$ac_objext conftest$ac_exeext
6607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6608   (eval $ac_link) 2>conftest.er1
6609   ac_status=$?
6610   grep -v '^ *+' conftest.er1 >conftest.err
6611   rm -f conftest.er1
6612   cat conftest.err >&5
6613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614   (exit $ac_status); } &&
6615          { ac_try='test -z "$ac_c_werror_flag"
6616                          || test ! -s conftest.err'
6617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618   (eval $ac_try) 2>&5
6619   ac_status=$?
6620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621   (exit $ac_status); }; } &&
6622          { ac_try='test -s conftest$ac_exeext'
6623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624   (eval $ac_try) 2>&5
6625   ac_status=$?
6626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627   (exit $ac_status); }; }; then
6628   eval "$as_ac_var=yes"
6629 else
6630   echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6632
6633 eval "$as_ac_var=no"
6634 fi
6635 rm -f conftest.err conftest.$ac_objext \
6636       conftest$ac_exeext conftest.$ac_ext
6637 fi
6638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6639 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6640 if test `eval echo '${'$as_ac_var'}'` = yes; then
6641   cat >>confdefs.h <<_ACEOF
6642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6643 _ACEOF
6644
6645 fi
6646 done
6647
6648
6649 # Check for socket libraries
6650
6651 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6652 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6653 if test "${ac_cv_lib_socket_bind+set}" = set; then
6654   echo $ECHO_N "(cached) $ECHO_C" >&6
6655 else
6656   ac_check_lib_save_LIBS=$LIBS
6657 LIBS="-lsocket  $LIBS"
6658 cat >conftest.$ac_ext <<_ACEOF
6659 /* confdefs.h.  */
6660 _ACEOF
6661 cat confdefs.h >>conftest.$ac_ext
6662 cat >>conftest.$ac_ext <<_ACEOF
6663 /* end confdefs.h.  */
6664
6665 /* Override any gcc2 internal prototype to avoid an error.  */
6666 #ifdef __cplusplus
6667 extern "C"
6668 #endif
6669 /* We use char because int might match the return type of a gcc2
6670    builtin and then its argument prototype would still apply.  */
6671 char bind ();
6672 int
6673 main ()
6674 {
6675 bind ();
6676   ;
6677   return 0;
6678 }
6679 _ACEOF
6680 rm -f conftest.$ac_objext conftest$ac_exeext
6681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6682   (eval $ac_link) 2>conftest.er1
6683   ac_status=$?
6684   grep -v '^ *+' conftest.er1 >conftest.err
6685   rm -f conftest.er1
6686   cat conftest.err >&5
6687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688   (exit $ac_status); } &&
6689          { ac_try='test -z "$ac_c_werror_flag"
6690                          || test ! -s conftest.err'
6691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692   (eval $ac_try) 2>&5
6693   ac_status=$?
6694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695   (exit $ac_status); }; } &&
6696          { ac_try='test -s conftest$ac_exeext'
6697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6698   (eval $ac_try) 2>&5
6699   ac_status=$?
6700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701   (exit $ac_status); }; }; then
6702   ac_cv_lib_socket_bind=yes
6703 else
6704   echo "$as_me: failed program was:" >&5
6705 sed 's/^/| /' conftest.$ac_ext >&5
6706
6707 ac_cv_lib_socket_bind=no
6708 fi
6709 rm -f conftest.err conftest.$ac_objext \
6710       conftest$ac_exeext conftest.$ac_ext
6711 LIBS=$ac_check_lib_save_LIBS
6712 fi
6713 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6714 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6715 if test $ac_cv_lib_socket_bind = yes; then
6716   cat >>confdefs.h <<_ACEOF
6717 #define HAVE_LIBSOCKET 1
6718 _ACEOF
6719
6720   LIBS="-lsocket $LIBS"
6721
6722 fi
6723
6724
6725 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6726 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6727 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6728   echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730   ac_check_lib_save_LIBS=$LIBS
6731 LIBS="-lnsl  $LIBS"
6732 cat >conftest.$ac_ext <<_ACEOF
6733 /* confdefs.h.  */
6734 _ACEOF
6735 cat confdefs.h >>conftest.$ac_ext
6736 cat >>conftest.$ac_ext <<_ACEOF
6737 /* end confdefs.h.  */
6738
6739 /* Override any gcc2 internal prototype to avoid an error.  */
6740 #ifdef __cplusplus
6741 extern "C"
6742 #endif
6743 /* We use char because int might match the return type of a gcc2
6744    builtin and then its argument prototype would still apply.  */
6745 char gethostbyname ();
6746 int
6747 main ()
6748 {
6749 gethostbyname ();
6750   ;
6751   return 0;
6752 }
6753 _ACEOF
6754 rm -f conftest.$ac_objext conftest$ac_exeext
6755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6756   (eval $ac_link) 2>conftest.er1
6757   ac_status=$?
6758   grep -v '^ *+' conftest.er1 >conftest.err
6759   rm -f conftest.er1
6760   cat conftest.err >&5
6761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762   (exit $ac_status); } &&
6763          { ac_try='test -z "$ac_c_werror_flag"
6764                          || test ! -s conftest.err'
6765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766   (eval $ac_try) 2>&5
6767   ac_status=$?
6768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769   (exit $ac_status); }; } &&
6770          { ac_try='test -s conftest$ac_exeext'
6771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772   (eval $ac_try) 2>&5
6773   ac_status=$?
6774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775   (exit $ac_status); }; }; then
6776   ac_cv_lib_nsl_gethostbyname=yes
6777 else
6778   echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.$ac_ext >&5
6780
6781 ac_cv_lib_nsl_gethostbyname=no
6782 fi
6783 rm -f conftest.err conftest.$ac_objext \
6784       conftest$ac_exeext conftest.$ac_ext
6785 LIBS=$ac_check_lib_save_LIBS
6786 fi
6787 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6788 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6789 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6790   cat >>confdefs.h <<_ACEOF
6791 #define HAVE_LIBNSL 1
6792 _ACEOF
6793
6794   LIBS="-lnsl $LIBS"
6795
6796 fi
6797
6798
6799 . ${srcdir}/../../bfd/configure.host
6800
6801
6802
6803 USE_MAINTAINER_MODE=no
6804 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6805 if test "${enable_maintainer_mode+set}" = set; then
6806   enableval="$enable_maintainer_mode"
6807   case "${enableval}" in
6808   yes)  MAINT="" USE_MAINTAINER_MODE=yes ;;
6809   no)   MAINT="#" ;;
6810   *)    { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6811 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6812    { (exit 1); exit 1; }; }; MAINT="#" ;;
6813 esac
6814 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
6815   echo "Setting maintainer mode" 6>&1
6816 fi
6817 else
6818   MAINT="#"
6819 fi;
6820
6821
6822 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6823 if test "${enable_sim_bswap+set}" = set; then
6824   enableval="$enable_sim_bswap"
6825   case "${enableval}" in
6826   yes)  sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6827   no)   sim_bswap="-DWITH_BSWAP=0";;
6828   *)    { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6829 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6830    { (exit 1); exit 1; }; }; sim_bswap="";;
6831 esac
6832 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
6833   echo "Setting bswap flags = $sim_bswap" 6>&1
6834 fi
6835 else
6836   sim_bswap=""
6837 fi;
6838
6839
6840 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6841 if test "${enable_sim_cflags+set}" = set; then
6842   enableval="$enable_sim_cflags"
6843   case "${enableval}" in
6844   yes)   sim_cflags="-O2 -fomit-frame-pointer";;
6845   trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6846 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6847    { (exit 1); exit 1; }; }; sim_cflags="";;
6848   no)    sim_cflags="";;
6849   *)     sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6850 esac
6851 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
6852   echo "Setting sim cflags = $sim_cflags" 6>&1
6853 fi
6854 else
6855   sim_cflags=""
6856 fi;
6857
6858
6859 # Check whether --enable-sim-debug or --disable-sim-debug was given.
6860 if test "${enable_sim_debug+set}" = set; then
6861   enableval="$enable_sim_debug"
6862   case "${enableval}" in
6863   yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
6864   no)  sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
6865   *)   sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6866 esac
6867 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
6868   echo "Setting sim debug = $sim_debug" 6>&1
6869 fi
6870 else
6871   sim_debug=""
6872 fi;
6873
6874
6875 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6876 if test "${enable_sim_stdio+set}" = set; then
6877   enableval="$enable_sim_stdio"
6878   case "${enableval}" in
6879   yes)  sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
6880   no)   sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
6881   *)    { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6882 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6883    { (exit 1); exit 1; }; }; sim_stdio="";;
6884 esac
6885 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
6886   echo "Setting stdio flags = $sim_stdio" 6>&1
6887 fi
6888 else
6889   sim_stdio=""
6890 fi;
6891
6892
6893 # Check whether --enable-sim-trace or --disable-sim-trace was given.
6894 if test "${enable_sim_trace+set}" = set; then
6895   enableval="$enable_sim_trace"
6896   case "${enableval}" in
6897   yes)  sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
6898   no)   sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
6899   [-0-9]*)
6900         sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6901   [a-z]*)
6902         sim_trace=""
6903         for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6904           if test x"$sim_trace" = x; then
6905             sim_trace="-DWITH_TRACE='(TRACE_$x"
6906           else
6907             sim_trace="${sim_trace}|TRACE_$x"
6908           fi
6909         done
6910         sim_trace="$sim_trace)'" ;;
6911 esac
6912 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
6913   echo "Setting sim trace = $sim_trace" 6>&1
6914 fi
6915 else
6916   sim_trace=""
6917 fi;
6918
6919
6920 # Check whether --enable-sim-profile or --disable-sim-profile was given.
6921 if test "${enable_sim_profile+set}" = set; then
6922   enableval="$enable_sim_profile"
6923   case "${enableval}" in
6924   yes)  sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
6925   no)   sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
6926   [-0-9]*)
6927         sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6928   [a-z]*)
6929         sim_profile=""
6930         for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6931           if test x"$sim_profile" = x; then
6932             sim_profile="-DWITH_PROFILE='(PROFILE_$x"
6933           else
6934             sim_profile="${sim_profile}|PROFILE_$x"
6935           fi
6936         done
6937         sim_profile="$sim_profile)'" ;;
6938 esac
6939 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
6940   echo "Setting sim profile = $sim_profile" 6>&1
6941 fi
6942 else
6943   sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
6944 fi;
6945
6946
6947 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6948 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6949 if test "${ac_cv_type_signal+set}" = set; then
6950   echo $ECHO_N "(cached) $ECHO_C" >&6
6951 else
6952   cat >conftest.$ac_ext <<_ACEOF
6953 /* confdefs.h.  */
6954 _ACEOF
6955 cat confdefs.h >>conftest.$ac_ext
6956 cat >>conftest.$ac_ext <<_ACEOF
6957 /* end confdefs.h.  */
6958 #include <sys/types.h>
6959 #include <signal.h>
6960 #ifdef signal
6961 # undef signal
6962 #endif
6963 #ifdef __cplusplus
6964 extern "C" void (*signal (int, void (*)(int)))(int);
6965 #else
6966 void (*signal ()) ();
6967 #endif
6968
6969 int
6970 main ()
6971 {
6972 int i;
6973   ;
6974   return 0;
6975 }
6976 _ACEOF
6977 rm -f conftest.$ac_objext
6978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6979   (eval $ac_compile) 2>conftest.er1
6980   ac_status=$?
6981   grep -v '^ *+' conftest.er1 >conftest.err
6982   rm -f conftest.er1
6983   cat conftest.err >&5
6984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985   (exit $ac_status); } &&
6986          { ac_try='test -z "$ac_c_werror_flag"
6987                          || test ! -s conftest.err'
6988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989   (eval $ac_try) 2>&5
6990   ac_status=$?
6991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992   (exit $ac_status); }; } &&
6993          { ac_try='test -s conftest.$ac_objext'
6994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995   (eval $ac_try) 2>&5
6996   ac_status=$?
6997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998   (exit $ac_status); }; }; then
6999   ac_cv_type_signal=void
7000 else
7001   echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7003
7004 ac_cv_type_signal=int
7005 fi
7006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7007 fi
7008 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7009 echo "${ECHO_T}$ac_cv_type_signal" >&6
7010
7011 cat >>confdefs.h <<_ACEOF
7012 #define RETSIGTYPE $ac_cv_type_signal
7013 _ACEOF
7014
7015
7016
7017
7018
7019 sim_link_files=
7020 sim_link_links=
7021
7022 sim_link_links=tconfig.h
7023 if test -f ${srcdir}/tconfig.in
7024 then
7025   sim_link_files=tconfig.in
7026 else
7027   sim_link_files=../common/tconfig.in
7028 fi
7029
7030 # targ-vals.def points to the libc macro description file.
7031 case "${target}" in
7032 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
7033 esac
7034 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
7035 sim_link_links="${sim_link_links} targ-vals.def"
7036
7037
7038
7039 # NOTE: Don't add -Wall or -Wunused, they both include
7040 # -Wunused-parameter which reports bogus warnings.
7041 # NOTE: If you add to this list, remember to update
7042 # gdb/doc/gdbint.texinfo.
7043 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
7044 -Wformat -Wparentheses -Wpointer-arith"
7045 # GCC supports -Wuninitialized only with -O or -On, n != 0.
7046 if test x${CFLAGS+set} = xset; then
7047   case "${CFLAGS}" in
7048     *"-O0"* ) ;;
7049     *"-O"* )
7050       build_warnings="${build_warnings} -Wuninitialized"
7051     ;;
7052   esac
7053 else
7054   build_warnings="${build_warnings} -Wuninitialized"
7055 fi
7056 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
7057 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
7058 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
7059 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
7060 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
7061 # -Woverloaded-virtual -Winline -Werror"
7062 # Check whether --enable-build-warnings or --disable-build-warnings was given.
7063 if test "${enable_build_warnings+set}" = set; then
7064   enableval="$enable_build_warnings"
7065   case "${enableval}" in
7066   yes)  ;;
7067   no)   build_warnings="-w";;
7068   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
7069         build_warnings="${build_warnings} ${t}";;
7070   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
7071         build_warnings="${t} ${build_warnings}";;
7072   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7073 esac
7074 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
7075   echo "Setting compiler warning flags = $build_warnings" 6>&1
7076 fi
7077 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
7078 if test "${enable_sim_build_warnings+set}" = set; then
7079   enableval="$enable_sim_build_warnings"
7080   case "${enableval}" in
7081   yes)  ;;
7082   no)   build_warnings="-w";;
7083   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
7084         build_warnings="${build_warnings} ${t}";;
7085   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
7086         build_warnings="${t} ${build_warnings}";;
7087   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7088 esac
7089 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
7090   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7091 fi
7092 fi; WARN_CFLAGS=""
7093 WERROR_CFLAGS=""
7094 if test "x${build_warnings}" != x -a "x$GCC" = xyes
7095 then
7096     echo "$as_me:$LINENO: checking compiler warning flags" >&5
7097 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
7098     # Separate out the -Werror flag as some files just cannot be
7099     # compiled with it enabled.
7100     for w in ${build_warnings}; do
7101         case $w in
7102         -Werr*) WERROR_CFLAGS=-Werror ;;
7103         *) # Check that GCC accepts it
7104             saved_CFLAGS="$CFLAGS"
7105             CFLAGS="$CFLAGS $w"
7106             cat >conftest.$ac_ext <<_ACEOF
7107 /* confdefs.h.  */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h.  */
7112
7113 int
7114 main ()
7115 {
7116
7117   ;
7118   return 0;
7119 }
7120 _ACEOF
7121 rm -f conftest.$ac_objext
7122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7123   (eval $ac_compile) 2>conftest.er1
7124   ac_status=$?
7125   grep -v '^ *+' conftest.er1 >conftest.err
7126   rm -f conftest.er1
7127   cat conftest.err >&5
7128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129   (exit $ac_status); } &&
7130          { ac_try='test -z "$ac_c_werror_flag"
7131                          || test ! -s conftest.err'
7132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7133   (eval $ac_try) 2>&5
7134   ac_status=$?
7135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136   (exit $ac_status); }; } &&
7137          { ac_try='test -s conftest.$ac_objext'
7138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7139   (eval $ac_try) 2>&5
7140   ac_status=$?
7141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142   (exit $ac_status); }; }; then
7143   WARN_CFLAGS="${WARN_CFLAGS} $w"
7144 else
7145   echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7147
7148 fi
7149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7150             CFLAGS="$saved_CFLAGS"
7151         esac
7152     done
7153     echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
7154 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
7155 fi
7156
7157
7158
7159 for ac_header in unistd.h
7160 do
7161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7163   echo "$as_me:$LINENO: checking for $ac_header" >&5
7164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7166   echo $ECHO_N "(cached) $ECHO_C" >&6
7167 fi
7168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7170 else
7171   # Is the header compilable?
7172 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7174 cat >conftest.$ac_ext <<_ACEOF
7175 /* confdefs.h.  */
7176 _ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h.  */
7180 $ac_includes_default
7181 #include <$ac_header>
7182 _ACEOF
7183 rm -f conftest.$ac_objext
7184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7185   (eval $ac_compile) 2>conftest.er1
7186   ac_status=$?
7187   grep -v '^ *+' conftest.er1 >conftest.err
7188   rm -f conftest.er1
7189   cat conftest.err >&5
7190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191   (exit $ac_status); } &&
7192          { ac_try='test -z "$ac_c_werror_flag"
7193                          || test ! -s conftest.err'
7194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195   (eval $ac_try) 2>&5
7196   ac_status=$?
7197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198   (exit $ac_status); }; } &&
7199          { ac_try='test -s conftest.$ac_objext'
7200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201   (eval $ac_try) 2>&5
7202   ac_status=$?
7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204   (exit $ac_status); }; }; then
7205   ac_header_compiler=yes
7206 else
7207   echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7209
7210 ac_header_compiler=no
7211 fi
7212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7214 echo "${ECHO_T}$ac_header_compiler" >&6
7215
7216 # Is the header present?
7217 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7219 cat >conftest.$ac_ext <<_ACEOF
7220 /* confdefs.h.  */
7221 _ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h.  */
7225 #include <$ac_header>
7226 _ACEOF
7227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7228   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7229   ac_status=$?
7230   grep -v '^ *+' conftest.er1 >conftest.err
7231   rm -f conftest.er1
7232   cat conftest.err >&5
7233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234   (exit $ac_status); } >/dev/null; then
7235   if test -s conftest.err; then
7236     ac_cpp_err=$ac_c_preproc_warn_flag
7237     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7238   else
7239     ac_cpp_err=
7240   fi
7241 else
7242   ac_cpp_err=yes
7243 fi
7244 if test -z "$ac_cpp_err"; then
7245   ac_header_preproc=yes
7246 else
7247   echo "$as_me: failed program was:" >&5
7248 sed 's/^/| /' conftest.$ac_ext >&5
7249
7250   ac_header_preproc=no
7251 fi
7252 rm -f conftest.err conftest.$ac_ext
7253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7254 echo "${ECHO_T}$ac_header_preproc" >&6
7255
7256 # So?  What about this header?
7257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7258   yes:no: )
7259     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7261     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7263     ac_header_preproc=yes
7264     ;;
7265   no:yes:* )
7266     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7268     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7269 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7270     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7272     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7273 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7274     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7276     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7278     (
7279       cat <<\_ASBOX
7280 ## ------------------------------------------ ##
7281 ## Report this to the AC_PACKAGE_NAME lists.  ##
7282 ## ------------------------------------------ ##
7283 _ASBOX
7284     ) |
7285       sed "s/^/$as_me: WARNING:     /" >&2
7286     ;;
7287 esac
7288 echo "$as_me:$LINENO: checking for $ac_header" >&5
7289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7291   echo $ECHO_N "(cached) $ECHO_C" >&6
7292 else
7293   eval "$as_ac_Header=\$ac_header_preproc"
7294 fi
7295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7297
7298 fi
7299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7300   cat >>confdefs.h <<_ACEOF
7301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7302 _ACEOF
7303
7304 fi
7305
7306 done
7307
7308
7309
7310
7311 ac_sources="$sim_link_files"
7312 ac_dests="$sim_link_links"
7313 while test -n "$ac_sources"; do
7314   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7315   set $ac_sources; ac_source=$1; shift; ac_sources=$*
7316   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
7317 done
7318           ac_config_links="$ac_config_links $ac_config_links_1"
7319
7320 cgen_breaks=""
7321 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
7322 cgen_breaks="break cgen_rtx_error";
7323 fi
7324
7325           ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
7326
7327           ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
7328
7329           ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
7330
7331           ac_config_commands="$ac_config_commands Makefile"
7332
7333           ac_config_commands="$ac_config_commands stamp-h"
7334
7335 cat >confcache <<\_ACEOF
7336 # This file is a shell script that caches the results of configure
7337 # tests run on this system so they can be shared between configure
7338 # scripts and configure runs, see configure's option --config-cache.
7339 # It is not useful on other systems.  If it contains results you don't
7340 # want to keep, you may remove or edit it.
7341 #
7342 # config.status only pays attention to the cache file if you give it
7343 # the --recheck option to rerun configure.
7344 #
7345 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7346 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7347 # following values.
7348
7349 _ACEOF
7350
7351 # The following way of writing the cache mishandles newlines in values,
7352 # but we know of no workaround that is simple, portable, and efficient.
7353 # So, don't put newlines in cache variables' values.
7354 # Ultrix sh set writes to stderr and can't be redirected directly,
7355 # and sets the high bit in the cache file unless we assign to the vars.
7356 {
7357   (set) 2>&1 |
7358     case `(ac_space=' '; set | grep ac_space) 2>&1` in
7359     *ac_space=\ *)
7360       # `set' does not quote correctly, so add quotes (double-quote
7361       # substitution turns \\\\ into \\, and sed turns \\ into \).
7362       sed -n \
7363         "s/'/'\\\\''/g;
7364           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7365       ;;
7366     *)
7367       # `set' quotes correctly as required by POSIX, so do not add quotes.
7368       sed -n \
7369         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7370       ;;
7371     esac;
7372 } |
7373   sed '
7374      t clear
7375      : clear
7376      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7377      t end
7378      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7379      : end' >>confcache
7380 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7381   if test -w $cache_file; then
7382     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7383     cat confcache >$cache_file
7384   else
7385     echo "not updating unwritable cache $cache_file"
7386   fi
7387 fi
7388 rm -f confcache
7389
7390 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7391 # Let make expand exec_prefix.
7392 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7393
7394 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7395 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7396 # trailing colons and then remove the whole line if VPATH becomes empty
7397 # (actually we leave an empty line to preserve line numbers).
7398 if test "x$srcdir" = x.; then
7399   ac_vpsub='/^[  ]*VPATH[        ]*=/{
7400 s/:*\$(srcdir):*/:/;
7401 s/:*\${srcdir}:*/:/;
7402 s/:*@srcdir@:*/:/;
7403 s/^\([^=]*=[     ]*\):*/\1/;
7404 s/:*$//;
7405 s/^[^=]*=[       ]*$//;
7406 }'
7407 fi
7408
7409 DEFS=-DHAVE_CONFIG_H
7410
7411 ac_libobjs=
7412 ac_ltlibobjs=
7413 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7414   # 1. Remove the extension, and $U if already installed.
7415   ac_i=`echo "$ac_i" |
7416          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7417   # 2. Add them.
7418   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7419   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7420 done
7421 LIBOBJS=$ac_libobjs
7422
7423 LTLIBOBJS=$ac_ltlibobjs
7424
7425
7426
7427 : ${CONFIG_STATUS=./config.status}
7428 ac_clean_files_save=$ac_clean_files
7429 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7430 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7431 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7432 cat >$CONFIG_STATUS <<_ACEOF
7433 #! $SHELL
7434 # Generated by $as_me.
7435 # Run this file to recreate the current configuration.
7436 # Compiler output produced by configure, useful for debugging
7437 # configure, is in config.log if it exists.
7438
7439 debug=false
7440 ac_cs_recheck=false
7441 ac_cs_silent=false
7442 SHELL=\${CONFIG_SHELL-$SHELL}
7443 _ACEOF
7444
7445 cat >>$CONFIG_STATUS <<\_ACEOF
7446 ## --------------------- ##
7447 ## M4sh Initialization.  ##
7448 ## --------------------- ##
7449
7450 # Be Bourne compatible
7451 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7452   emulate sh
7453   NULLCMD=:
7454   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7455   # is contrary to our usage.  Disable this feature.
7456   alias -g '${1+"$@"}'='"$@"'
7457 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7458   set -o posix
7459 fi
7460 DUALCASE=1; export DUALCASE # for MKS sh
7461
7462 # Support unset when possible.
7463 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7464   as_unset=unset
7465 else
7466   as_unset=false
7467 fi
7468
7469
7470 # Work around bugs in pre-3.0 UWIN ksh.
7471 $as_unset ENV MAIL MAILPATH
7472 PS1='$ '
7473 PS2='> '
7474 PS4='+ '
7475
7476 # NLS nuisances.
7477 for as_var in \
7478   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7479   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7480   LC_TELEPHONE LC_TIME
7481 do
7482   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7483     eval $as_var=C; export $as_var
7484   else
7485     $as_unset $as_var
7486   fi
7487 done
7488
7489 # Required to use basename.
7490 if expr a : '\(a\)' >/dev/null 2>&1; then
7491   as_expr=expr
7492 else
7493   as_expr=false
7494 fi
7495
7496 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7497   as_basename=basename
7498 else
7499   as_basename=false
7500 fi
7501
7502
7503 # Name of the executable.
7504 as_me=`$as_basename "$0" ||
7505 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7506          X"$0" : 'X\(//\)$' \| \
7507          X"$0" : 'X\(/\)$' \| \
7508          .     : '\(.\)' 2>/dev/null ||
7509 echo X/"$0" |
7510     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7511           /^X\/\(\/\/\)$/{ s//\1/; q; }
7512           /^X\/\(\/\).*/{ s//\1/; q; }
7513           s/.*/./; q'`
7514
7515
7516 # PATH needs CR, and LINENO needs CR and PATH.
7517 # Avoid depending upon Character Ranges.
7518 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7519 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7520 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7521 as_cr_digits='0123456789'
7522 as_cr_alnum=$as_cr_Letters$as_cr_digits
7523
7524 # The user is always right.
7525 if test "${PATH_SEPARATOR+set}" != set; then
7526   echo "#! /bin/sh" >conf$$.sh
7527   echo  "exit 0"   >>conf$$.sh
7528   chmod +x conf$$.sh
7529   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7530     PATH_SEPARATOR=';'
7531   else
7532     PATH_SEPARATOR=:
7533   fi
7534   rm -f conf$$.sh
7535 fi
7536
7537
7538   as_lineno_1=$LINENO
7539   as_lineno_2=$LINENO
7540   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7541   test "x$as_lineno_1" != "x$as_lineno_2" &&
7542   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7543   # Find who we are.  Look in the path if we contain no path at all
7544   # relative or not.
7545   case $0 in
7546     *[\\/]* ) as_myself=$0 ;;
7547     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7549 do
7550   IFS=$as_save_IFS
7551   test -z "$as_dir" && as_dir=.
7552   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7553 done
7554
7555        ;;
7556   esac
7557   # We did not find ourselves, most probably we were run as `sh COMMAND'
7558   # in which case we are not to be found in the path.
7559   if test "x$as_myself" = x; then
7560     as_myself=$0
7561   fi
7562   if test ! -f "$as_myself"; then
7563     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7564 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7565    { (exit 1); exit 1; }; }
7566   fi
7567   case $CONFIG_SHELL in
7568   '')
7569     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7571 do
7572   IFS=$as_save_IFS
7573   test -z "$as_dir" && as_dir=.
7574   for as_base in sh bash ksh sh5; do
7575          case $as_dir in
7576          /*)
7577            if ("$as_dir/$as_base" -c '
7578   as_lineno_1=$LINENO
7579   as_lineno_2=$LINENO
7580   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7581   test "x$as_lineno_1" != "x$as_lineno_2" &&
7582   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7583              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7584              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7585              CONFIG_SHELL=$as_dir/$as_base
7586              export CONFIG_SHELL
7587              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7588            fi;;
7589          esac
7590        done
7591 done
7592 ;;
7593   esac
7594
7595   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7596   # uniformly replaced by the line number.  The first 'sed' inserts a
7597   # line-number line before each line; the second 'sed' does the real
7598   # work.  The second script uses 'N' to pair each line-number line
7599   # with the numbered line, and appends trailing '-' during
7600   # substitution so that $LINENO is not a special case at line end.
7601   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7602   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7603   sed '=' <$as_myself |
7604     sed '
7605       N
7606       s,$,-,
7607       : loop
7608       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7609       t loop
7610       s,-$,,
7611       s,^['$as_cr_digits']*\n,,
7612     ' >$as_me.lineno &&
7613   chmod +x $as_me.lineno ||
7614     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7615 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7616    { (exit 1); exit 1; }; }
7617
7618   # Don't try to exec as it changes $[0], causing all sort of problems
7619   # (the dirname of $[0] is not the place where we might find the
7620   # original and so on.  Autoconf is especially sensible to this).
7621   . ./$as_me.lineno
7622   # Exit status is that of the last command.
7623   exit
7624 }
7625
7626
7627 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7628   *c*,-n*) ECHO_N= ECHO_C='
7629 ' ECHO_T='      ' ;;
7630   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7631   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7632 esac
7633
7634 if expr a : '\(a\)' >/dev/null 2>&1; then
7635   as_expr=expr
7636 else
7637   as_expr=false
7638 fi
7639
7640 rm -f conf$$ conf$$.exe conf$$.file
7641 echo >conf$$.file
7642 if ln -s conf$$.file conf$$ 2>/dev/null; then
7643   # We could just check for DJGPP; but this test a) works b) is more generic
7644   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7645   if test -f conf$$.exe; then
7646     # Don't use ln at all; we don't have any links
7647     as_ln_s='cp -p'
7648   else
7649     as_ln_s='ln -s'
7650   fi
7651 elif ln conf$$.file conf$$ 2>/dev/null; then
7652   as_ln_s=ln
7653 else
7654   as_ln_s='cp -p'
7655 fi
7656 rm -f conf$$ conf$$.exe conf$$.file
7657
7658 if mkdir -p . 2>/dev/null; then
7659   as_mkdir_p=:
7660 else
7661   test -d ./-p && rmdir ./-p
7662   as_mkdir_p=false
7663 fi
7664
7665 as_executable_p="test -f"
7666
7667 # Sed expression to map a string onto a valid CPP name.
7668 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7669
7670 # Sed expression to map a string onto a valid variable name.
7671 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7672
7673
7674 # IFS
7675 # We need space, tab and new line, in precisely that order.
7676 as_nl='
7677 '
7678 IFS="   $as_nl"
7679
7680 # CDPATH.
7681 $as_unset CDPATH
7682
7683 exec 6>&1
7684
7685 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7686 # report actual input values of CONFIG_FILES etc. instead of their
7687 # values after options handling.  Logging --version etc. is OK.
7688 exec 5>>config.log
7689 {
7690   echo
7691   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7692 ## Running $as_me. ##
7693 _ASBOX
7694 } >&5
7695 cat >&5 <<_CSEOF
7696
7697 This file was extended by $as_me, which was
7698 generated by GNU Autoconf 2.59.  Invocation command line was
7699
7700   CONFIG_FILES    = $CONFIG_FILES
7701   CONFIG_HEADERS  = $CONFIG_HEADERS
7702   CONFIG_LINKS    = $CONFIG_LINKS
7703   CONFIG_COMMANDS = $CONFIG_COMMANDS
7704   $ $0 $@
7705
7706 _CSEOF
7707 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7708 echo >&5
7709 _ACEOF
7710
7711 # Files that config.status was made for.
7712 if test -n "$ac_config_files"; then
7713   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7714 fi
7715
7716 if test -n "$ac_config_headers"; then
7717   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7718 fi
7719
7720 if test -n "$ac_config_links"; then
7721   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7722 fi
7723
7724 if test -n "$ac_config_commands"; then
7725   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7726 fi
7727
7728 cat >>$CONFIG_STATUS <<\_ACEOF
7729
7730 ac_cs_usage="\
7731 \`$as_me' instantiates files from templates according to the
7732 current configuration.
7733
7734 Usage: $0 [OPTIONS] [FILE]...
7735
7736   -h, --help       print this help, then exit
7737   -V, --version    print version number, then exit
7738   -q, --quiet      do not print progress messages
7739   -d, --debug      don't remove temporary files
7740       --recheck    update $as_me by reconfiguring in the same conditions
7741   --file=FILE[:TEMPLATE]
7742                    instantiate the configuration file FILE
7743   --header=FILE[:TEMPLATE]
7744                    instantiate the configuration header FILE
7745
7746 Configuration files:
7747 $config_files
7748
7749 Configuration headers:
7750 $config_headers
7751
7752 Configuration links:
7753 $config_links
7754
7755 Configuration commands:
7756 $config_commands
7757
7758 Report bugs to <bug-autoconf@gnu.org>."
7759 _ACEOF
7760
7761 cat >>$CONFIG_STATUS <<_ACEOF
7762 ac_cs_version="\\
7763 config.status
7764 configured by $0, generated by GNU Autoconf 2.59,
7765   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7766
7767 Copyright (C) 2003 Free Software Foundation, Inc.
7768 This config.status script is free software; the Free Software Foundation
7769 gives unlimited permission to copy, distribute and modify it."
7770 srcdir=$srcdir
7771 INSTALL="$INSTALL"
7772 _ACEOF
7773
7774 cat >>$CONFIG_STATUS <<\_ACEOF
7775 # If no file are specified by the user, then we need to provide default
7776 # value.  By we need to know if files were specified by the user.
7777 ac_need_defaults=:
7778 while test $# != 0
7779 do
7780   case $1 in
7781   --*=*)
7782     ac_option=`expr "x$1" : 'x\([^=]*\)='`
7783     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7784     ac_shift=:
7785     ;;
7786   -*)
7787     ac_option=$1
7788     ac_optarg=$2
7789     ac_shift=shift
7790     ;;
7791   *) # This is not an option, so the user has probably given explicit
7792      # arguments.
7793      ac_option=$1
7794      ac_need_defaults=false;;
7795   esac
7796
7797   case $ac_option in
7798   # Handling of the options.
7799 _ACEOF
7800 cat >>$CONFIG_STATUS <<\_ACEOF
7801   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7802     ac_cs_recheck=: ;;
7803   --version | --vers* | -V )
7804     echo "$ac_cs_version"; exit 0 ;;
7805   --he | --h)
7806     # Conflict between --help and --header
7807     { { echo "$as_me:$LINENO: error: ambiguous option: $1
7808 Try \`$0 --help' for more information." >&5
7809 echo "$as_me: error: ambiguous option: $1
7810 Try \`$0 --help' for more information." >&2;}
7811    { (exit 1); exit 1; }; };;
7812   --help | --hel | -h )
7813     echo "$ac_cs_usage"; exit 0 ;;
7814   --debug | --d* | -d )
7815     debug=: ;;
7816   --file | --fil | --fi | --f )
7817     $ac_shift
7818     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7819     ac_need_defaults=false;;
7820   --header | --heade | --head | --hea )
7821     $ac_shift
7822     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7823     ac_need_defaults=false;;
7824   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7825   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7826     ac_cs_silent=: ;;
7827
7828   # This is an error.
7829   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7830 Try \`$0 --help' for more information." >&5
7831 echo "$as_me: error: unrecognized option: $1
7832 Try \`$0 --help' for more information." >&2;}
7833    { (exit 1); exit 1; }; } ;;
7834
7835   *) ac_config_targets="$ac_config_targets $1" ;;
7836
7837   esac
7838   shift
7839 done
7840
7841 ac_configure_extra_args=
7842
7843 if $ac_cs_silent; then
7844   exec 6>/dev/null
7845   ac_configure_extra_args="$ac_configure_extra_args --silent"
7846 fi
7847
7848 _ACEOF
7849 cat >>$CONFIG_STATUS <<_ACEOF
7850 if \$ac_cs_recheck; then
7851   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7852   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7853 fi
7854
7855 _ACEOF
7856
7857
7858
7859
7860
7861 cat >>$CONFIG_STATUS <<\_ACEOF
7862 for ac_config_target in $ac_config_targets
7863 do
7864   case "$ac_config_target" in
7865   # Handling of arguments.
7866   "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
7867   "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
7868   ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
7869   "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
7870   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
7871   "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
7872   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7873   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7874 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7875    { (exit 1); exit 1; }; };;
7876   esac
7877 done
7878
7879 # If the user did not use the arguments to specify the items to instantiate,
7880 # then the envvar interface is used.  Set only those that are not.
7881 # We use the long form for the default assignment because of an extremely
7882 # bizarre bug on SunOS 4.1.3.
7883 if $ac_need_defaults; then
7884   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7885   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7886   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
7887   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7888 fi
7889
7890 # Have a temporary directory for convenience.  Make it in the build tree
7891 # simply because there is no reason to put it here, and in addition,
7892 # creating and moving files from /tmp can sometimes cause problems.
7893 # Create a temporary directory, and hook for its removal unless debugging.
7894 $debug ||
7895 {
7896   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7897   trap '{ (exit 1); exit 1; }' 1 2 13 15
7898 }
7899
7900 # Create a (secure) tmp directory for tmp files.
7901
7902 {
7903   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7904   test -n "$tmp" && test -d "$tmp"
7905 }  ||
7906 {
7907   tmp=./confstat$$-$RANDOM
7908   (umask 077 && mkdir $tmp)
7909 } ||
7910 {
7911    echo "$me: cannot create a temporary directory in ." >&2
7912    { (exit 1); exit 1; }
7913 }
7914
7915 _ACEOF
7916
7917 cat >>$CONFIG_STATUS <<_ACEOF
7918
7919 #
7920 # CONFIG_FILES section.
7921 #
7922
7923 # No need to generate the scripts if there are no CONFIG_FILES.
7924 # This happens for instance when ./config.status config.h
7925 if test -n "\$CONFIG_FILES"; then
7926   # Protect against being on the right side of a sed subst in config.status.
7927   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7928    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7929 s,@SHELL@,$SHELL,;t t
7930 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7931 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7932 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7933 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7934 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7935 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7936 s,@exec_prefix@,$exec_prefix,;t t
7937 s,@prefix@,$prefix,;t t
7938 s,@program_transform_name@,$program_transform_name,;t t
7939 s,@bindir@,$bindir,;t t
7940 s,@sbindir@,$sbindir,;t t
7941 s,@libexecdir@,$libexecdir,;t t
7942 s,@datadir@,$datadir,;t t
7943 s,@sysconfdir@,$sysconfdir,;t t
7944 s,@sharedstatedir@,$sharedstatedir,;t t
7945 s,@localstatedir@,$localstatedir,;t t
7946 s,@libdir@,$libdir,;t t
7947 s,@includedir@,$includedir,;t t
7948 s,@oldincludedir@,$oldincludedir,;t t
7949 s,@infodir@,$infodir,;t t
7950 s,@mandir@,$mandir,;t t
7951 s,@build_alias@,$build_alias,;t t
7952 s,@host_alias@,$host_alias,;t t
7953 s,@target_alias@,$target_alias,;t t
7954 s,@DEFS@,$DEFS,;t t
7955 s,@ECHO_C@,$ECHO_C,;t t
7956 s,@ECHO_N@,$ECHO_N,;t t
7957 s,@ECHO_T@,$ECHO_T,;t t
7958 s,@LIBS@,$LIBS,;t t
7959 s,@sim_environment@,$sim_environment,;t t
7960 s,@sim_alignment@,$sim_alignment,;t t
7961 s,@sim_assert@,$sim_assert,;t t
7962 s,@sim_bitsize@,$sim_bitsize,;t t
7963 s,@sim_endian@,$sim_endian,;t t
7964 s,@sim_hostendian@,$sim_hostendian,;t t
7965 s,@sim_float@,$sim_float,;t t
7966 s,@sim_scache@,$sim_scache,;t t
7967 s,@sim_default_model@,$sim_default_model,;t t
7968 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
7969 s,@sim_hw_objs@,$sim_hw_objs,;t t
7970 s,@sim_hw@,$sim_hw,;t t
7971 s,@sim_inline@,$sim_inline,;t t
7972 s,@sim_packages@,$sim_packages,;t t
7973 s,@sim_regparm@,$sim_regparm,;t t
7974 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
7975 s,@sim_smp@,$sim_smp,;t t
7976 s,@sim_stdcall@,$sim_stdcall,;t t
7977 s,@sim_xor_endian@,$sim_xor_endian,;t t
7978 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
7979 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
7980 s,@build@,$build,;t t
7981 s,@build_cpu@,$build_cpu,;t t
7982 s,@build_vendor@,$build_vendor,;t t
7983 s,@build_os@,$build_os,;t t
7984 s,@host@,$host,;t t
7985 s,@host_cpu@,$host_cpu,;t t
7986 s,@host_vendor@,$host_vendor,;t t
7987 s,@host_os@,$host_os,;t t
7988 s,@target@,$target,;t t
7989 s,@target_cpu@,$target_cpu,;t t
7990 s,@target_vendor@,$target_vendor,;t t
7991 s,@target_os@,$target_os,;t t
7992 s,@CC@,$CC,;t t
7993 s,@CFLAGS@,$CFLAGS,;t t
7994 s,@LDFLAGS@,$LDFLAGS,;t t
7995 s,@CPPFLAGS@,$CPPFLAGS,;t t
7996 s,@ac_ct_CC@,$ac_ct_CC,;t t
7997 s,@EXEEXT@,$EXEEXT,;t t
7998 s,@OBJEXT@,$OBJEXT,;t t
7999 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8000 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8001 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8002 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
8003 s,@HDEFINES@,$HDEFINES,;t t
8004 s,@AR@,$AR,;t t
8005 s,@RANLIB@,$RANLIB,;t t
8006 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8007 s,@SET_MAKE@,$SET_MAKE,;t t
8008 s,@CPP@,$CPP,;t t
8009 s,@EGREP@,$EGREP,;t t
8010 s,@ALLOCA@,$ALLOCA,;t t
8011 s,@USE_NLS@,$USE_NLS,;t t
8012 s,@MSGFMT@,$MSGFMT,;t t
8013 s,@GMSGFMT@,$GMSGFMT,;t t
8014 s,@XGETTEXT@,$XGETTEXT,;t t
8015 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8016 s,@CATALOGS@,$CATALOGS,;t t
8017 s,@CATOBJEXT@,$CATOBJEXT,;t t
8018 s,@DATADIRNAME@,$DATADIRNAME,;t t
8019 s,@GMOFILES@,$GMOFILES,;t t
8020 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8021 s,@INTLDEPS@,$INTLDEPS,;t t
8022 s,@INTLLIBS@,$INTLLIBS,;t t
8023 s,@INTLOBJS@,$INTLOBJS,;t t
8024 s,@POFILES@,$POFILES,;t t
8025 s,@POSUB@,$POSUB,;t t
8026 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
8027 s,@GT_NO@,$GT_NO,;t t
8028 s,@GT_YES@,$GT_YES,;t t
8029 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8030 s,@l@,$l,;t t
8031 s,@MAINT@,$MAINT,;t t
8032 s,@sim_bswap@,$sim_bswap,;t t
8033 s,@sim_cflags@,$sim_cflags,;t t
8034 s,@sim_debug@,$sim_debug,;t t
8035 s,@sim_stdio@,$sim_stdio,;t t
8036 s,@sim_trace@,$sim_trace,;t t
8037 s,@sim_profile@,$sim_profile,;t t
8038 s,@cgen_breaks@,$cgen_breaks,;t t
8039 s,@LIBOBJS@,$LIBOBJS,;t t
8040 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8041 CEOF
8042
8043 _ACEOF
8044
8045   cat >>$CONFIG_STATUS <<\_ACEOF
8046   # Split the substitutions into bite-sized pieces for seds with
8047   # small command number limits, like on Digital OSF/1 and HP-UX.
8048   ac_max_sed_lines=48
8049   ac_sed_frag=1 # Number of current file.
8050   ac_beg=1 # First line for current file.
8051   ac_end=$ac_max_sed_lines # Line after last line for current file.
8052   ac_more_lines=:
8053   ac_sed_cmds=
8054   while $ac_more_lines; do
8055     if test $ac_beg -gt 1; then
8056       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8057     else
8058       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8059     fi
8060     if test ! -s $tmp/subs.frag; then
8061       ac_more_lines=false
8062     else
8063       # The purpose of the label and of the branching condition is to
8064       # speed up the sed processing (if there are no `@' at all, there
8065       # is no need to browse any of the substitutions).
8066       # These are the two extra sed commands mentioned above.
8067       (echo ':t
8068   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8069       if test -z "$ac_sed_cmds"; then
8070         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8071       else
8072         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8073       fi
8074       ac_sed_frag=`expr $ac_sed_frag + 1`
8075       ac_beg=$ac_end
8076       ac_end=`expr $ac_end + $ac_max_sed_lines`
8077     fi
8078   done
8079   if test -z "$ac_sed_cmds"; then
8080     ac_sed_cmds=cat
8081   fi
8082 fi # test -n "$CONFIG_FILES"
8083
8084 _ACEOF
8085 cat >>$CONFIG_STATUS <<\_ACEOF
8086 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8087   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8088   case $ac_file in
8089   - | *:- | *:-:* ) # input from stdin
8090         cat >$tmp/stdin
8091         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8092         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8093   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8094         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8095   * )   ac_file_in=$ac_file.in ;;
8096   esac
8097
8098   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8099   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8100 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8101          X"$ac_file" : 'X\(//\)[^/]' \| \
8102          X"$ac_file" : 'X\(//\)$' \| \
8103          X"$ac_file" : 'X\(/\)' \| \
8104          .     : '\(.\)' 2>/dev/null ||
8105 echo X"$ac_file" |
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   { if $as_mkdir_p; then
8112     mkdir -p "$ac_dir"
8113   else
8114     as_dir="$ac_dir"
8115     as_dirs=
8116     while test ! -d "$as_dir"; do
8117       as_dirs="$as_dir $as_dirs"
8118       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8120          X"$as_dir" : 'X\(//\)[^/]' \| \
8121          X"$as_dir" : 'X\(//\)$' \| \
8122          X"$as_dir" : 'X\(/\)' \| \
8123          .     : '\(.\)' 2>/dev/null ||
8124 echo X"$as_dir" |
8125     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8126           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8127           /^X\(\/\/\)$/{ s//\1/; q; }
8128           /^X\(\/\).*/{ s//\1/; q; }
8129           s/.*/./; q'`
8130     done
8131     test ! -n "$as_dirs" || mkdir $as_dirs
8132   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8133 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8134    { (exit 1); exit 1; }; }; }
8135
8136   ac_builddir=.
8137
8138 if test "$ac_dir" != .; then
8139   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8140   # A "../" for each directory in $ac_dir_suffix.
8141   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8142 else
8143   ac_dir_suffix= ac_top_builddir=
8144 fi
8145
8146 case $srcdir in
8147   .)  # No --srcdir option.  We are building in place.
8148     ac_srcdir=.
8149     if test -z "$ac_top_builddir"; then
8150        ac_top_srcdir=.
8151     else
8152        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8153     fi ;;
8154   [\\/]* | ?:[\\/]* )  # Absolute path.
8155     ac_srcdir=$srcdir$ac_dir_suffix;
8156     ac_top_srcdir=$srcdir ;;
8157   *) # Relative path.
8158     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8159     ac_top_srcdir=$ac_top_builddir$srcdir ;;
8160 esac
8161
8162 # Do not use `cd foo && pwd` to compute absolute paths, because
8163 # the directories may not exist.
8164 case `pwd` in
8165 .) ac_abs_builddir="$ac_dir";;
8166 *)
8167   case "$ac_dir" in
8168   .) ac_abs_builddir=`pwd`;;
8169   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8170   *) ac_abs_builddir=`pwd`/"$ac_dir";;
8171   esac;;
8172 esac
8173 case $ac_abs_builddir in
8174 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8175 *)
8176   case ${ac_top_builddir}. in
8177   .) ac_abs_top_builddir=$ac_abs_builddir;;
8178   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8179   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8180   esac;;
8181 esac
8182 case $ac_abs_builddir in
8183 .) ac_abs_srcdir=$ac_srcdir;;
8184 *)
8185   case $ac_srcdir in
8186   .) ac_abs_srcdir=$ac_abs_builddir;;
8187   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8188   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8189   esac;;
8190 esac
8191 case $ac_abs_builddir in
8192 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8193 *)
8194   case $ac_top_srcdir in
8195   .) ac_abs_top_srcdir=$ac_abs_builddir;;
8196   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8197   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8198   esac;;
8199 esac
8200
8201
8202   case $INSTALL in
8203   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8204   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8205   esac
8206
8207   if test x"$ac_file" != x-; then
8208     { echo "$as_me:$LINENO: creating $ac_file" >&5
8209 echo "$as_me: creating $ac_file" >&6;}
8210     rm -f "$ac_file"
8211   fi
8212   # Let's still pretend it is `configure' which instantiates (i.e., don't
8213   # use $as_me), people would be surprised to read:
8214   #    /* config.h.  Generated by config.status.  */
8215   if test x"$ac_file" = x-; then
8216     configure_input=
8217   else
8218     configure_input="$ac_file.  "
8219   fi
8220   configure_input=$configure_input"Generated from `echo $ac_file_in |
8221                                      sed 's,.*/,,'` by configure."
8222
8223   # First look for the input files in the build tree, otherwise in the
8224   # src tree.
8225   ac_file_inputs=`IFS=:
8226     for f in $ac_file_in; do
8227       case $f in
8228       -) echo $tmp/stdin ;;
8229       [\\/$]*)
8230          # Absolute (can't be DOS-style, as IFS=:)
8231          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8232 echo "$as_me: error: cannot find input file: $f" >&2;}
8233    { (exit 1); exit 1; }; }
8234          echo "$f";;
8235       *) # Relative
8236          if test -f "$f"; then
8237            # Build tree
8238            echo "$f"
8239          elif test -f "$srcdir/$f"; then
8240            # Source tree
8241            echo "$srcdir/$f"
8242          else
8243            # /dev/null tree
8244            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8245 echo "$as_me: error: cannot find input file: $f" >&2;}
8246    { (exit 1); exit 1; }; }
8247          fi;;
8248       esac
8249     done` || { (exit 1); exit 1; }
8250 _ACEOF
8251 cat >>$CONFIG_STATUS <<_ACEOF
8252   sed "$ac_vpsub
8253 $extrasub
8254 _ACEOF
8255 cat >>$CONFIG_STATUS <<\_ACEOF
8256 :t
8257 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8258 s,@configure_input@,$configure_input,;t t
8259 s,@srcdir@,$ac_srcdir,;t t
8260 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8261 s,@top_srcdir@,$ac_top_srcdir,;t t
8262 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8263 s,@builddir@,$ac_builddir,;t t
8264 s,@abs_builddir@,$ac_abs_builddir,;t t
8265 s,@top_builddir@,$ac_top_builddir,;t t
8266 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8267 s,@INSTALL@,$ac_INSTALL,;t t
8268 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8269   rm -f $tmp/stdin
8270   if test x"$ac_file" != x-; then
8271     mv $tmp/out $ac_file
8272   else
8273     cat $tmp/out
8274     rm -f $tmp/out
8275   fi
8276
8277 done
8278 _ACEOF
8279 cat >>$CONFIG_STATUS <<\_ACEOF
8280
8281 #
8282 # CONFIG_HEADER section.
8283 #
8284
8285 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8286 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8287 #
8288 # ac_d sets the value in "#define NAME VALUE" lines.
8289 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
8290 ac_dB='[         ].*$,\1#\2'
8291 ac_dC=' '
8292 ac_dD=',;t'
8293 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8294 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8295 ac_uB='$,\1#\2define\3'
8296 ac_uC=' '
8297 ac_uD=',;t'
8298
8299 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8300   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8301   case $ac_file in
8302   - | *:- | *:-:* ) # input from stdin
8303         cat >$tmp/stdin
8304         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8305         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8306   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8307         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8308   * )   ac_file_in=$ac_file.in ;;
8309   esac
8310
8311   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8312 echo "$as_me: creating $ac_file" >&6;}
8313
8314   # First look for the input files in the build tree, otherwise in the
8315   # src tree.
8316   ac_file_inputs=`IFS=:
8317     for f in $ac_file_in; do
8318       case $f in
8319       -) echo $tmp/stdin ;;
8320       [\\/$]*)
8321          # Absolute (can't be DOS-style, as IFS=:)
8322          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8323 echo "$as_me: error: cannot find input file: $f" >&2;}
8324    { (exit 1); exit 1; }; }
8325          # Do quote $f, to prevent DOS paths from being IFS'd.
8326          echo "$f";;
8327       *) # Relative
8328          if test -f "$f"; then
8329            # Build tree
8330            echo "$f"
8331          elif test -f "$srcdir/$f"; then
8332            # Source tree
8333            echo "$srcdir/$f"
8334          else
8335            # /dev/null tree
8336            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8337 echo "$as_me: error: cannot find input file: $f" >&2;}
8338    { (exit 1); exit 1; }; }
8339          fi;;
8340       esac
8341     done` || { (exit 1); exit 1; }
8342   # Remove the trailing spaces.
8343   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
8344
8345 _ACEOF
8346
8347 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8348 # `conftest.undefs', that substitutes the proper values into
8349 # config.h.in to produce config.h.  The first handles `#define'
8350 # templates, and the second `#undef' templates.
8351 # And first: Protect against being on the right side of a sed subst in
8352 # config.status.  Protect against being in an unquoted here document
8353 # in config.status.
8354 rm -f conftest.defines conftest.undefs
8355 # Using a here document instead of a string reduces the quoting nightmare.
8356 # Putting comments in sed scripts is not portable.
8357 #
8358 # `end' is used to avoid that the second main sed command (meant for
8359 # 0-ary CPP macros) applies to n-ary macro definitions.
8360 # See the Autoconf documentation for `clear'.
8361 cat >confdef2sed.sed <<\_ACEOF
8362 s/[\\&,]/\\&/g
8363 s,[\\$`],\\&,g
8364 t clear
8365 : clear
8366 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8367 t end
8368 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8369 : end
8370 _ACEOF
8371 # If some macros were called several times there might be several times
8372 # the same #defines, which is useless.  Nevertheless, we may not want to
8373 # sort them, since we want the *last* AC-DEFINE to be honored.
8374 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8375 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8376 rm -f confdef2sed.sed
8377
8378 # This sed command replaces #undef with comments.  This is necessary, for
8379 # example, in the case of _POSIX_SOURCE, which is predefined and required
8380 # on some systems where configure will not decide to define it.
8381 cat >>conftest.undefs <<\_ACEOF
8382 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8383 _ACEOF
8384
8385 # Break up conftest.defines because some shells have a limit on the size
8386 # of here documents, and old seds have small limits too (100 cmds).
8387 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8388 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8389 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8390 echo '  :' >>$CONFIG_STATUS
8391 rm -f conftest.tail
8392 while grep . conftest.defines >/dev/null
8393 do
8394   # Write a limited-size here document to $tmp/defines.sed.
8395   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8396   # Speed up: don't consider the non `#define' lines.
8397   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
8398   # Work around the forget-to-reset-the-flag bug.
8399   echo 't clr' >>$CONFIG_STATUS
8400   echo ': clr' >>$CONFIG_STATUS
8401   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8402   echo 'CEOF
8403   sed -f $tmp/defines.sed $tmp/in >$tmp/out
8404   rm -f $tmp/in
8405   mv $tmp/out $tmp/in
8406 ' >>$CONFIG_STATUS
8407   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8408   rm -f conftest.defines
8409   mv conftest.tail conftest.defines
8410 done
8411 rm -f conftest.defines
8412 echo '  fi # grep' >>$CONFIG_STATUS
8413 echo >>$CONFIG_STATUS
8414
8415 # Break up conftest.undefs because some shells have a limit on the size
8416 # of here documents, and old seds have small limits too (100 cmds).
8417 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
8418 rm -f conftest.tail
8419 while grep . conftest.undefs >/dev/null
8420 do
8421   # Write a limited-size here document to $tmp/undefs.sed.
8422   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8423   # Speed up: don't consider the non `#undef'
8424   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8425   # Work around the forget-to-reset-the-flag bug.
8426   echo 't clr' >>$CONFIG_STATUS
8427   echo ': clr' >>$CONFIG_STATUS
8428   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8429   echo 'CEOF
8430   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8431   rm -f $tmp/in
8432   mv $tmp/out $tmp/in
8433 ' >>$CONFIG_STATUS
8434   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8435   rm -f conftest.undefs
8436   mv conftest.tail conftest.undefs
8437 done
8438 rm -f conftest.undefs
8439
8440 cat >>$CONFIG_STATUS <<\_ACEOF
8441   # Let's still pretend it is `configure' which instantiates (i.e., don't
8442   # use $as_me), people would be surprised to read:
8443   #    /* config.h.  Generated by config.status.  */
8444   if test x"$ac_file" = x-; then
8445     echo "/* Generated by configure.  */" >$tmp/config.h
8446   else
8447     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8448   fi
8449   cat $tmp/in >>$tmp/config.h
8450   rm -f $tmp/in
8451   if test x"$ac_file" != x-; then
8452     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8453       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8454 echo "$as_me: $ac_file is unchanged" >&6;}
8455     else
8456       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8457 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8458          X"$ac_file" : 'X\(//\)[^/]' \| \
8459          X"$ac_file" : 'X\(//\)$' \| \
8460          X"$ac_file" : 'X\(/\)' \| \
8461          .     : '\(.\)' 2>/dev/null ||
8462 echo X"$ac_file" |
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       { if $as_mkdir_p; then
8469     mkdir -p "$ac_dir"
8470   else
8471     as_dir="$ac_dir"
8472     as_dirs=
8473     while test ! -d "$as_dir"; do
8474       as_dirs="$as_dir $as_dirs"
8475       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8476 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8477          X"$as_dir" : 'X\(//\)[^/]' \| \
8478          X"$as_dir" : 'X\(//\)$' \| \
8479          X"$as_dir" : 'X\(/\)' \| \
8480          .     : '\(.\)' 2>/dev/null ||
8481 echo X"$as_dir" |
8482     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8483           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8484           /^X\(\/\/\)$/{ s//\1/; q; }
8485           /^X\(\/\).*/{ s//\1/; q; }
8486           s/.*/./; q'`
8487     done
8488     test ! -n "$as_dirs" || mkdir $as_dirs
8489   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8490 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8491    { (exit 1); exit 1; }; }; }
8492
8493       rm -f $ac_file
8494       mv $tmp/config.h $ac_file
8495     fi
8496   else
8497     cat $tmp/config.h
8498     rm -f $tmp/config.h
8499   fi
8500 done
8501 _ACEOF
8502 cat >>$CONFIG_STATUS <<\_ACEOF
8503
8504 #
8505 # CONFIG_LINKS section.
8506 #
8507
8508 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
8509   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8510   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8511
8512   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
8513 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
8514
8515   if test ! -r $srcdir/$ac_source; then
8516     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
8517 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
8518    { (exit 1); exit 1; }; }
8519   fi
8520   rm -f $ac_dest
8521
8522   # Make relative symlinks.
8523   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
8524 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8525          X"$ac_dest" : 'X\(//\)[^/]' \| \
8526          X"$ac_dest" : 'X\(//\)$' \| \
8527          X"$ac_dest" : 'X\(/\)' \| \
8528          .     : '\(.\)' 2>/dev/null ||
8529 echo X"$ac_dest" |
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   { if $as_mkdir_p; then
8536     mkdir -p "$ac_dest_dir"
8537   else
8538     as_dir="$ac_dest_dir"
8539     as_dirs=
8540     while test ! -d "$as_dir"; do
8541       as_dirs="$as_dir $as_dirs"
8542       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8543 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8544          X"$as_dir" : 'X\(//\)[^/]' \| \
8545          X"$as_dir" : 'X\(//\)$' \| \
8546          X"$as_dir" : 'X\(/\)' \| \
8547          .     : '\(.\)' 2>/dev/null ||
8548 echo X"$as_dir" |
8549     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8550           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8551           /^X\(\/\/\)$/{ s//\1/; q; }
8552           /^X\(\/\).*/{ s//\1/; q; }
8553           s/.*/./; q'`
8554     done
8555     test ! -n "$as_dirs" || mkdir $as_dirs
8556   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
8557 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
8558    { (exit 1); exit 1; }; }; }
8559
8560   ac_builddir=.
8561
8562 if test "$ac_dest_dir" != .; then
8563   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
8564   # A "../" for each directory in $ac_dir_suffix.
8565   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8566 else
8567   ac_dir_suffix= ac_top_builddir=
8568 fi
8569
8570 case $srcdir in
8571   .)  # No --srcdir option.  We are building in place.
8572     ac_srcdir=.
8573     if test -z "$ac_top_builddir"; then
8574        ac_top_srcdir=.
8575     else
8576        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8577     fi ;;
8578   [\\/]* | ?:[\\/]* )  # Absolute path.
8579     ac_srcdir=$srcdir$ac_dir_suffix;
8580     ac_top_srcdir=$srcdir ;;
8581   *) # Relative path.
8582     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8583     ac_top_srcdir=$ac_top_builddir$srcdir ;;
8584 esac
8585
8586 # Do not use `cd foo && pwd` to compute absolute paths, because
8587 # the directories may not exist.
8588 case `pwd` in
8589 .) ac_abs_builddir="$ac_dest_dir";;
8590 *)
8591   case "$ac_dest_dir" in
8592   .) ac_abs_builddir=`pwd`;;
8593   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
8594   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
8595   esac;;
8596 esac
8597 case $ac_abs_builddir in
8598 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8599 *)
8600   case ${ac_top_builddir}. in
8601   .) ac_abs_top_builddir=$ac_abs_builddir;;
8602   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8603   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8604   esac;;
8605 esac
8606 case $ac_abs_builddir in
8607 .) ac_abs_srcdir=$ac_srcdir;;
8608 *)
8609   case $ac_srcdir in
8610   .) ac_abs_srcdir=$ac_abs_builddir;;
8611   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8612   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8613   esac;;
8614 esac
8615 case $ac_abs_builddir in
8616 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8617 *)
8618   case $ac_top_srcdir in
8619   .) ac_abs_top_srcdir=$ac_abs_builddir;;
8620   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8621   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8622   esac;;
8623 esac
8624
8625
8626   case $srcdir in
8627   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
8628       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
8629   esac
8630
8631   # Try a symlink, then a hard link, then a copy.
8632   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8633     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
8634     cp -p $srcdir/$ac_source $ac_dest ||
8635     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
8636 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
8637    { (exit 1); exit 1; }; }
8638 done
8639 _ACEOF
8640 cat >>$CONFIG_STATUS <<\_ACEOF
8641
8642 #
8643 # CONFIG_COMMANDS section.
8644 #
8645 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8646   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8647   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8648   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8649 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8650          X"$ac_dest" : 'X\(//\)[^/]' \| \
8651          X"$ac_dest" : 'X\(//\)$' \| \
8652          X"$ac_dest" : 'X\(/\)' \| \
8653          .     : '\(.\)' 2>/dev/null ||
8654 echo X"$ac_dest" |
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   { if $as_mkdir_p; then
8661     mkdir -p "$ac_dir"
8662   else
8663     as_dir="$ac_dir"
8664     as_dirs=
8665     while test ! -d "$as_dir"; do
8666       as_dirs="$as_dir $as_dirs"
8667       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8668 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8669          X"$as_dir" : 'X\(//\)[^/]' \| \
8670          X"$as_dir" : 'X\(//\)$' \| \
8671          X"$as_dir" : 'X\(/\)' \| \
8672          .     : '\(.\)' 2>/dev/null ||
8673 echo X"$as_dir" |
8674     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8675           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8676           /^X\(\/\/\)$/{ s//\1/; q; }
8677           /^X\(\/\).*/{ s//\1/; q; }
8678           s/.*/./; q'`
8679     done
8680     test ! -n "$as_dirs" || mkdir $as_dirs
8681   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8682 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8683    { (exit 1); exit 1; }; }; }
8684
8685   ac_builddir=.
8686
8687 if test "$ac_dir" != .; then
8688   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8689   # A "../" for each directory in $ac_dir_suffix.
8690   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8691 else
8692   ac_dir_suffix= ac_top_builddir=
8693 fi
8694
8695 case $srcdir in
8696   .)  # No --srcdir option.  We are building in place.
8697     ac_srcdir=.
8698     if test -z "$ac_top_builddir"; then
8699        ac_top_srcdir=.
8700     else
8701        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8702     fi ;;
8703   [\\/]* | ?:[\\/]* )  # Absolute path.
8704     ac_srcdir=$srcdir$ac_dir_suffix;
8705     ac_top_srcdir=$srcdir ;;
8706   *) # Relative path.
8707     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8708     ac_top_srcdir=$ac_top_builddir$srcdir ;;
8709 esac
8710
8711 # Do not use `cd foo && pwd` to compute absolute paths, because
8712 # the directories may not exist.
8713 case `pwd` in
8714 .) ac_abs_builddir="$ac_dir";;
8715 *)
8716   case "$ac_dir" in
8717   .) ac_abs_builddir=`pwd`;;
8718   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8719   *) ac_abs_builddir=`pwd`/"$ac_dir";;
8720   esac;;
8721 esac
8722 case $ac_abs_builddir in
8723 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8724 *)
8725   case ${ac_top_builddir}. in
8726   .) ac_abs_top_builddir=$ac_abs_builddir;;
8727   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8728   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8729   esac;;
8730 esac
8731 case $ac_abs_builddir in
8732 .) ac_abs_srcdir=$ac_srcdir;;
8733 *)
8734   case $ac_srcdir in
8735   .) ac_abs_srcdir=$ac_abs_builddir;;
8736   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8737   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8738   esac;;
8739 esac
8740 case $ac_abs_builddir in
8741 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8742 *)
8743   case $ac_top_srcdir in
8744   .) ac_abs_top_srcdir=$ac_abs_builddir;;
8745   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8746   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8747   esac;;
8748 esac
8749
8750
8751   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8752 echo "$as_me: executing $ac_dest commands" >&6;}
8753   case $ac_dest in
8754     Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
8755  rm -f Makesim1.tmp Makesim2.tmp Makefile
8756  sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
8757  sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
8758  sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
8759         -e '/^## COMMON_POST_/ r Makesim2.tmp' \
8760         <Makefile.sim >Makefile
8761  rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
8762  ;;
8763     stamp-h ) echo > stamp-h ;;
8764   esac
8765 done
8766 _ACEOF
8767
8768 cat >>$CONFIG_STATUS <<\_ACEOF
8769
8770 { (exit 0); exit 0; }
8771 _ACEOF
8772 chmod +x $CONFIG_STATUS
8773 ac_clean_files=$ac_clean_files_save
8774
8775
8776 # configure is writing to config.log, and then calls config.status.
8777 # config.status does its own redirection, appending to config.log.
8778 # Unfortunately, on DOS this fails, as config.log is still kept open
8779 # by configure, so config.status won't be able to write to it; its
8780 # output is simply discarded.  So we exec the FD to /dev/null,
8781 # effectively closing config.log, so it can be properly (re)opened and
8782 # appended to by config.status.  When coming back to configure, we
8783 # need to make the FD available again.
8784 if test "$no_create" != yes; then
8785   ac_cs_success=:
8786   ac_config_status_args=
8787   test "$silent" = yes &&
8788     ac_config_status_args="$ac_config_status_args --quiet"
8789   exec 5>/dev/null
8790   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8791   exec 5>>config.log
8792   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8793   # would make configure fail if this is the last instruction.
8794   $ac_cs_success || { (exit 1); exit 1; }
8795 fi
8796
8797