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