- Added some tools to detect memory leaks.
[ircu2.10.12-pk.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
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 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
16
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25   emulate sh
26   NULLCMD=:
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28   set -o posix
29 fi
30
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
33
34 if expr a : '\(a\)' >/dev/null 2>&1; then
35   as_expr=expr
36 else
37   as_expr=false
38 fi
39
40 rm -f conf$$ conf$$.exe conf$$.file
41 echo >conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43   # We could just check for DJGPP; but this test a) works b) is more generic
44   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45   if test -f conf$$.exe; then
46     # Don't use ln at all; we don't have any links
47     as_ln_s='cp -p'
48   else
49     as_ln_s='ln -s'
50   fi
51 elif ln conf$$.file conf$$ 2>/dev/null; then
52   as_ln_s=ln
53 else
54   as_ln_s='cp -p'
55 fi
56 rm -f conf$$ conf$$.exe conf$$.file
57
58 as_executable_p="test -f"
59
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62   as_unset=unset
63 else
64   as_unset=false
65 fi
66
67 # NLS nuisances.
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
76
77 # IFS
78 # We need space, tab and new line, in precisely that order.
79 as_nl='
80 '
81 IFS="   $as_nl"
82
83 # CDPATH.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
85
86 # Name of the host.
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
90
91 exec 6>&1
92
93 #
94 # Initializations.
95 #
96 ac_default_prefix=/usr/local
97 cross_compiling=no
98 subdirs=
99 MFLAGS= MAKEFLAGS=
100 SHELL=${CONFIG_SHELL-/bin/sh}
101
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete.  It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
106
107 ac_unique_file="ircd/ircd.c"
108 ac_default_prefix=$HOME
109 # Factoring default headers for most tests.
110 ac_includes_default="\
111 #include <stdio.h>
112 #if HAVE_SYS_TYPES_H
113 # include <sys/types.h>
114 #endif
115 #if HAVE_SYS_STAT_H
116 # include <sys/stat.h>
117 #endif
118 #if STDC_HEADERS
119 # include <stdlib.h>
120 # include <stddef.h>
121 #else
122 # if HAVE_STDLIB_H
123 #  include <stdlib.h>
124 # endif
125 #endif
126 #if HAVE_STRING_H
127 # if !STDC_HEADERS && HAVE_MEMORY_H
128 #  include <memory.h>
129 # endif
130 # include <string.h>
131 #endif
132 #if HAVE_STRINGS_H
133 # include <strings.h>
134 #endif
135 #if HAVE_INTTYPES_H
136 # include <inttypes.h>
137 #else
138 # if HAVE_STDINT_H
139 #  include <stdint.h>
140 # endif
141 #endif
142 #if HAVE_UNISTD_H
143 # include <unistd.h>
144 #endif"
145
146 ac_subdirs_all="$ac_subdirs_all adns"
147
148 # Initialize some variables set by options.
149 ac_init_help=
150 ac_init_version=false
151 # The variables have the same names as the options, with
152 # dashes changed to underlines.
153 cache_file=/dev/null
154 exec_prefix=NONE
155 no_create=
156 no_recursion=
157 prefix=NONE
158 program_prefix=NONE
159 program_suffix=NONE
160 program_transform_name=s,x,x,
161 silent=
162 site=
163 srcdir=
164 verbose=
165 x_includes=NONE
166 x_libraries=NONE
167
168 # Installation directory options.
169 # These are left unexpanded so users can "make install exec_prefix=/foo"
170 # and all the variables that are supposed to be based on exec_prefix
171 # by default will actually change.
172 # Use braces instead of parens because sh, perl, etc. also accept them.
173 bindir='${exec_prefix}/bin'
174 sbindir='${exec_prefix}/sbin'
175 libexecdir='${exec_prefix}/libexec'
176 datadir='${prefix}/share'
177 sysconfdir='${prefix}/etc'
178 sharedstatedir='${prefix}/com'
179 localstatedir='${prefix}/var'
180 libdir='${exec_prefix}/lib'
181 includedir='${prefix}/include'
182 oldincludedir='/usr/include'
183 infodir='${prefix}/info'
184 mandir='${prefix}/man'
185
186 # Identity of this package.
187 PACKAGE_NAME=
188 PACKAGE_TARNAME=
189 PACKAGE_VERSION=
190 PACKAGE_STRING=
191 PACKAGE_BUGREPORT=
192
193 ac_prev=
194 for ac_option
195 do
196   # If the previous option needs an argument, assign it.
197   if test -n "$ac_prev"; then
198     eval "$ac_prev=\$ac_option"
199     ac_prev=
200     continue
201   fi
202
203   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
204
205   # Accept the important Cygnus configure options, so we can diagnose typos.
206
207   case $ac_option in
208
209   -bindir | --bindir | --bindi | --bind | --bin | --bi)
210     ac_prev=bindir ;;
211   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
212     bindir=$ac_optarg ;;
213
214   -build | --build | --buil | --bui | --bu)
215     ac_prev=build_alias ;;
216   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
217     build_alias=$ac_optarg ;;
218
219   -cache-file | --cache-file | --cache-fil | --cache-fi \
220   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
221     ac_prev=cache_file ;;
222   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
223   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
224     cache_file=$ac_optarg ;;
225
226   --config-cache | -C)
227     cache_file=config.cache ;;
228
229   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
230     ac_prev=datadir ;;
231   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
232   | --da=*)
233     datadir=$ac_optarg ;;
234
235   -disable-* | --disable-*)
236     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
237     # Reject names that are not valid shell variable names.
238     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
239       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
240    { (exit 1); exit 1; }; }
241     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
242     eval "enable_$ac_feature=no" ;;
243
244   -enable-* | --enable-*)
245     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
246     # Reject names that are not valid shell variable names.
247     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
248       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
249    { (exit 1); exit 1; }; }
250     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
251     case $ac_option in
252       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
253       *) ac_optarg=yes ;;
254     esac
255     eval "enable_$ac_feature='$ac_optarg'" ;;
256
257   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
258   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
259   | --exec | --exe | --ex)
260     ac_prev=exec_prefix ;;
261   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
262   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
263   | --exec=* | --exe=* | --ex=*)
264     exec_prefix=$ac_optarg ;;
265
266   -gas | --gas | --ga | --g)
267     # Obsolete; use --with-gas.
268     with_gas=yes ;;
269
270   -help | --help | --hel | --he | -h)
271     ac_init_help=long ;;
272   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
273     ac_init_help=recursive ;;
274   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
275     ac_init_help=short ;;
276
277   -host | --host | --hos | --ho)
278     ac_prev=host_alias ;;
279   -host=* | --host=* | --hos=* | --ho=*)
280     host_alias=$ac_optarg ;;
281
282   -includedir | --includedir | --includedi | --included | --include \
283   | --includ | --inclu | --incl | --inc)
284     ac_prev=includedir ;;
285   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
286   | --includ=* | --inclu=* | --incl=* | --inc=*)
287     includedir=$ac_optarg ;;
288
289   -infodir | --infodir | --infodi | --infod | --info | --inf)
290     ac_prev=infodir ;;
291   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
292     infodir=$ac_optarg ;;
293
294   -libdir | --libdir | --libdi | --libd)
295     ac_prev=libdir ;;
296   -libdir=* | --libdir=* | --libdi=* | --libd=*)
297     libdir=$ac_optarg ;;
298
299   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
300   | --libexe | --libex | --libe)
301     ac_prev=libexecdir ;;
302   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
303   | --libexe=* | --libex=* | --libe=*)
304     libexecdir=$ac_optarg ;;
305
306   -localstatedir | --localstatedir | --localstatedi | --localstated \
307   | --localstate | --localstat | --localsta | --localst \
308   | --locals | --local | --loca | --loc | --lo)
309     ac_prev=localstatedir ;;
310   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
311   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
312   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
313     localstatedir=$ac_optarg ;;
314
315   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
316     ac_prev=mandir ;;
317   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
318     mandir=$ac_optarg ;;
319
320   -nfp | --nfp | --nf)
321     # Obsolete; use --without-fp.
322     with_fp=no ;;
323
324   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
325   | --no-cr | --no-c)
326     no_create=yes ;;
327
328   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
329   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
330     no_recursion=yes ;;
331
332   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
333   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
334   | --oldin | --oldi | --old | --ol | --o)
335     ac_prev=oldincludedir ;;
336   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
337   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
338   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
339     oldincludedir=$ac_optarg ;;
340
341   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
342     ac_prev=prefix ;;
343   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
344     prefix=$ac_optarg ;;
345
346   -program-prefix | --program-prefix | --program-prefi | --program-pref \
347   | --program-pre | --program-pr | --program-p)
348     ac_prev=program_prefix ;;
349   -program-prefix=* | --program-prefix=* | --program-prefi=* \
350   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
351     program_prefix=$ac_optarg ;;
352
353   -program-suffix | --program-suffix | --program-suffi | --program-suff \
354   | --program-suf | --program-su | --program-s)
355     ac_prev=program_suffix ;;
356   -program-suffix=* | --program-suffix=* | --program-suffi=* \
357   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
358     program_suffix=$ac_optarg ;;
359
360   -program-transform-name | --program-transform-name \
361   | --program-transform-nam | --program-transform-na \
362   | --program-transform-n | --program-transform- \
363   | --program-transform | --program-transfor \
364   | --program-transfo | --program-transf \
365   | --program-trans | --program-tran \
366   | --progr-tra | --program-tr | --program-t)
367     ac_prev=program_transform_name ;;
368   -program-transform-name=* | --program-transform-name=* \
369   | --program-transform-nam=* | --program-transform-na=* \
370   | --program-transform-n=* | --program-transform-=* \
371   | --program-transform=* | --program-transfor=* \
372   | --program-transfo=* | --program-transf=* \
373   | --program-trans=* | --program-tran=* \
374   | --progr-tra=* | --program-tr=* | --program-t=*)
375     program_transform_name=$ac_optarg ;;
376
377   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
378   | -silent | --silent | --silen | --sile | --sil)
379     silent=yes ;;
380
381   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
382     ac_prev=sbindir ;;
383   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
384   | --sbi=* | --sb=*)
385     sbindir=$ac_optarg ;;
386
387   -sharedstatedir | --sharedstatedir | --sharedstatedi \
388   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
389   | --sharedst | --shareds | --shared | --share | --shar \
390   | --sha | --sh)
391     ac_prev=sharedstatedir ;;
392   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
393   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
394   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
395   | --sha=* | --sh=*)
396     sharedstatedir=$ac_optarg ;;
397
398   -site | --site | --sit)
399     ac_prev=site ;;
400   -site=* | --site=* | --sit=*)
401     site=$ac_optarg ;;
402
403   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
404     ac_prev=srcdir ;;
405   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
406     srcdir=$ac_optarg ;;
407
408   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
409   | --syscon | --sysco | --sysc | --sys | --sy)
410     ac_prev=sysconfdir ;;
411   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
412   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
413     sysconfdir=$ac_optarg ;;
414
415   -target | --target | --targe | --targ | --tar | --ta | --t)
416     ac_prev=target_alias ;;
417   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
418     target_alias=$ac_optarg ;;
419
420   -v | -verbose | --verbose | --verbos | --verbo | --verb)
421     verbose=yes ;;
422
423   -version | --version | --versio | --versi | --vers | -V)
424     ac_init_version=: ;;
425
426   -with-* | --with-*)
427     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
428     # Reject names that are not valid shell variable names.
429     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
430       { echo "$as_me: error: invalid package name: $ac_package" >&2
431    { (exit 1); exit 1; }; }
432     ac_package=`echo $ac_package| sed 's/-/_/g'`
433     case $ac_option in
434       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
435       *) ac_optarg=yes ;;
436     esac
437     eval "with_$ac_package='$ac_optarg'" ;;
438
439   -without-* | --without-*)
440     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
441     # Reject names that are not valid shell variable names.
442     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
443       { echo "$as_me: error: invalid package name: $ac_package" >&2
444    { (exit 1); exit 1; }; }
445     ac_package=`echo $ac_package | sed 's/-/_/g'`
446     eval "with_$ac_package=no" ;;
447
448   --x)
449     # Obsolete; use --with-x.
450     with_x=yes ;;
451
452   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
453   | --x-incl | --x-inc | --x-in | --x-i)
454     ac_prev=x_includes ;;
455   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
456   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
457     x_includes=$ac_optarg ;;
458
459   -x-libraries | --x-libraries | --x-librarie | --x-librari \
460   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
461     ac_prev=x_libraries ;;
462   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
463   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
464     x_libraries=$ac_optarg ;;
465
466   -*) { echo "$as_me: error: unrecognized option: $ac_option
467 Try \`$0 --help' for more information." >&2
468    { (exit 1); exit 1; }; }
469     ;;
470
471   *=*)
472     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
473     # Reject names that are not valid shell variable names.
474     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
475       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
476    { (exit 1); exit 1; }; }
477     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
478     eval "$ac_envvar='$ac_optarg'"
479     export $ac_envvar ;;
480
481   *)
482     # FIXME: should be removed in autoconf 3.0.
483     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
484     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
485       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
486     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
487     ;;
488
489   esac
490 done
491
492 if test -n "$ac_prev"; then
493   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
494   { echo "$as_me: error: missing argument to $ac_option" >&2
495    { (exit 1); exit 1; }; }
496 fi
497
498 # Be sure to have absolute paths.
499 for ac_var in exec_prefix prefix
500 do
501   eval ac_val=$`echo $ac_var`
502   case $ac_val in
503     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
504     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
505    { (exit 1); exit 1; }; };;
506   esac
507 done
508
509 # Be sure to have absolute paths.
510 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
511               localstatedir libdir includedir oldincludedir infodir mandir
512 do
513   eval ac_val=$`echo $ac_var`
514   case $ac_val in
515     [\\/$]* | ?:[\\/]* ) ;;
516     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
517    { (exit 1); exit 1; }; };;
518   esac
519 done
520
521 # There might be people who depend on the old broken behavior: `$host'
522 # used to hold the argument of --host etc.
523 build=$build_alias
524 host=$host_alias
525 target=$target_alias
526
527 # FIXME: should be removed in autoconf 3.0.
528 if test "x$host_alias" != x; then
529   if test "x$build_alias" = x; then
530     cross_compiling=maybe
531     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
532     If a cross compiler is detected then cross compile mode will be used." >&2
533   elif test "x$build_alias" != "x$host_alias"; then
534     cross_compiling=yes
535   fi
536 fi
537
538 ac_tool_prefix=
539 test -n "$host_alias" && ac_tool_prefix=$host_alias-
540
541 test "$silent" = yes && exec 6>/dev/null
542
543 # Find the source files, if location was not specified.
544 if test -z "$srcdir"; then
545   ac_srcdir_defaulted=yes
546   # Try the directory containing this script, then its parent.
547   ac_prog=$0
548   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
549   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
550   srcdir=$ac_confdir
551   if test ! -r $srcdir/$ac_unique_file; then
552     srcdir=..
553   fi
554 else
555   ac_srcdir_defaulted=no
556 fi
557 if test ! -r $srcdir/$ac_unique_file; then
558   if test "$ac_srcdir_defaulted" = yes; then
559     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
560    { (exit 1); exit 1; }; }
561   else
562     { echo "$as_me: error: cannot find sources in $srcdir" >&2
563    { (exit 1); exit 1; }; }
564   fi
565 fi
566 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
567 ac_env_build_alias_set=${build_alias+set}
568 ac_env_build_alias_value=$build_alias
569 ac_cv_env_build_alias_set=${build_alias+set}
570 ac_cv_env_build_alias_value=$build_alias
571 ac_env_host_alias_set=${host_alias+set}
572 ac_env_host_alias_value=$host_alias
573 ac_cv_env_host_alias_set=${host_alias+set}
574 ac_cv_env_host_alias_value=$host_alias
575 ac_env_target_alias_set=${target_alias+set}
576 ac_env_target_alias_value=$target_alias
577 ac_cv_env_target_alias_set=${target_alias+set}
578 ac_cv_env_target_alias_value=$target_alias
579 ac_env_CC_set=${CC+set}
580 ac_env_CC_value=$CC
581 ac_cv_env_CC_set=${CC+set}
582 ac_cv_env_CC_value=$CC
583 ac_env_CFLAGS_set=${CFLAGS+set}
584 ac_env_CFLAGS_value=$CFLAGS
585 ac_cv_env_CFLAGS_set=${CFLAGS+set}
586 ac_cv_env_CFLAGS_value=$CFLAGS
587 ac_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_env_LDFLAGS_value=$LDFLAGS
589 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
590 ac_cv_env_LDFLAGS_value=$LDFLAGS
591 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_env_CPPFLAGS_value=$CPPFLAGS
593 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
594 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
595 ac_env_CPP_set=${CPP+set}
596 ac_env_CPP_value=$CPP
597 ac_cv_env_CPP_set=${CPP+set}
598 ac_cv_env_CPP_value=$CPP
599
600 #
601 # Report the --help message.
602 #
603 if test "$ac_init_help" = "long"; then
604   # Omit some internal or obsolete options to make the list less imposing.
605   # This message is too long to be a string in the A/UX 3.1 sh.
606   cat <<EOF
607 \`configure' configures this package to adapt to many kinds of systems.
608
609 Usage: $0 [OPTION]... [VAR=VALUE]...
610
611 To assign environment variables (e.g., CC, CFLAGS...), specify them as
612 VAR=VALUE.  See below for descriptions of some of the useful variables.
613
614 Defaults for the options are specified in brackets.
615
616 Configuration:
617   -h, --help              display this help and exit
618       --help=short        display options specific to this package
619       --help=recursive    display the short help of all the included packages
620   -V, --version           display version information and exit
621   -q, --quiet, --silent   do not print \`checking...' messages
622       --cache-file=FILE   cache test results in FILE [disabled]
623   -C, --config-cache      alias for \`--cache-file=config.cache'
624   -n, --no-create         do not create output files
625       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
626
627 EOF
628
629   cat <<EOF
630 Installation directories:
631   --prefix=PREFIX         install architecture-independent files in PREFIX
632                           [$ac_default_prefix]
633   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
634                           [PREFIX]
635
636 By default, \`make install' will install all the files in
637 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
638 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
639 for instance \`--prefix=\$HOME'.
640
641 For better control, use the options below.
642
643 Fine tuning of the installation directories:
644   --bindir=DIR           user executables [EPREFIX/bin]
645   --sbindir=DIR          system admin executables [EPREFIX/sbin]
646   --libexecdir=DIR       program executables [EPREFIX/libexec]
647   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
648   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
649   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
650   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
651   --libdir=DIR           object code libraries [EPREFIX/lib]
652   --includedir=DIR       C header files [PREFIX/include]
653   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
654   --infodir=DIR          info documentation [PREFIX/info]
655   --mandir=DIR           man documentation [PREFIX/man]
656 EOF
657
658   cat <<\EOF
659
660 System types:
661   --build=BUILD     configure for building on BUILD [guessed]
662   --host=HOST       build programs to run on HOST [BUILD]
663 EOF
664 fi
665
666 if test -n "$ac_init_help"; then
667
668   cat <<\EOF
669
670 Optional Features:
671   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
672   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
673   --enable-poll           Force poll to be used regardless of whether or not
674                           it is a system call
675   --enable-debug          Turn on debugging mode
676   --disable-asserts       Disable assertion checking
677   --disable-symbols       Disable debugging symbols (remove -g from CFLAGS)
678   --disable-headinsand      Disable head in sand (-DNO_HEAD_IN_SAND)
679   --enable-profile        Enable profiling support (add -pg to CFLAGS)
680   --enable-pedantic       Enable pedantic warnings (add -pedantic to CFLAGS)
681   --enable-warnings       Enable warnings (add -Wall to CFLAGS)
682   --disable-inlines       Disable inlining for a few critical functions
683   --disable-devpoll       Enable the /dev/poll-based engine
684   --disable-kqueue        Enable the kqueue-based engine
685   --disable-adns          Disable adns resolver
686
687 Optional Packages:
688   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
689   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
690   --with-leak-detect          Turn on the leak detector(requires patched boehm)
691   --with-symlink=name     Name to give the symlink; if name is "no," no
692                           symlink will be created.
693   --with-mode=mode        Permissions (in octal) to give the binary
694   --with-owner=owner      Specify owner of the installed binary
695   --with-group=group      Specify group owner of the installed binary
696   --with-domain=domain    Domain name to use in local statistics gathering
697   --with-chroot=dir       Specify that the server will be operated under
698                           a different root directory given by dir.  See
699                           doc/readme.chroot for more information.
700   --with-dpath=dir        Directory for all server data files
701   --with-cpath=file       Set server configuration file
702   --with-lpath=file       Set the debugging log file
703   --with-maxcon=maxcon    Maximum number of connections server will accept
704
705 Some influential environment variables:
706   CC          C compiler command
707   CFLAGS      C compiler flags
708   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
709               nonstandard directory <lib dir>
710   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
711               headers in a nonstandard directory <include dir>
712   CPP         C preprocessor
713
714 Use these variables to override the choices made by `configure' or to help
715 it to find libraries and programs with nonstandard names/locations.
716
717 EOF
718 fi
719
720 if test "$ac_init_help" = "recursive"; then
721   # If there are subdirs, report their specific --help.
722   ac_popdir=`pwd`
723   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
724     cd $ac_subdir
725     # A "../" for each directory in /$ac_subdir.
726     ac_dots=`echo $ac_subdir |
727              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
728
729     case $srcdir in
730     .) # No --srcdir option.  We are building in place.
731       ac_sub_srcdir=$srcdir ;;
732     [\\/]* | ?:[\\/]* ) # Absolute path.
733       ac_sub_srcdir=$srcdir/$ac_subdir ;;
734     *) # Relative path.
735       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
736     esac
737
738     # Check for guested configure; otherwise get Cygnus style configure.
739     if test -f $ac_sub_srcdir/configure.gnu; then
740       echo
741       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
742     elif test -f $ac_sub_srcdir/configure; then
743       echo
744       $SHELL $ac_sub_srcdir/configure  --help=recursive
745     elif test -f $ac_sub_srcdir/configure.ac ||
746            test -f $ac_sub_srcdir/configure.in; then
747       echo
748       $ac_configure --help
749     else
750       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
751     fi
752     cd $ac_popdir
753   done
754 fi
755
756 test -n "$ac_init_help" && exit 0
757 if $ac_init_version; then
758   cat <<\EOF
759
760 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
761 Free Software Foundation, Inc.
762 This configure script is free software; the Free Software Foundation
763 gives unlimited permission to copy, distribute and modify it.
764 EOF
765   exit 0
766 fi
767 exec 5>config.log
768 cat >&5 <<EOF
769 This file contains any messages produced by compilers while
770 running configure, to aid debugging if configure makes a mistake.
771
772 It was created by $as_me, which was
773 generated by GNU Autoconf 2.52.  Invocation command line was
774
775   $ $0 $@
776
777 EOF
778 {
779 cat <<_ASUNAME
780 ## ---------- ##
781 ## Platform.  ##
782 ## ---------- ##
783
784 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
785 uname -m = `(uname -m) 2>/dev/null || echo unknown`
786 uname -r = `(uname -r) 2>/dev/null || echo unknown`
787 uname -s = `(uname -s) 2>/dev/null || echo unknown`
788 uname -v = `(uname -v) 2>/dev/null || echo unknown`
789
790 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
791 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
792
793 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
794 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
795 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
796 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
797 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
798 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
799 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
800
801 PATH = $PATH
802
803 _ASUNAME
804 } >&5
805
806 cat >&5 <<EOF
807 ## ------------ ##
808 ## Core tests.  ##
809 ## ------------ ##
810
811 EOF
812
813 # Keep a trace of the command line.
814 # Strip out --no-create and --no-recursion so they do not pile up.
815 # Also quote any args containing shell meta-characters.
816 ac_configure_args=
817 ac_sep=
818 for ac_arg
819 do
820   case $ac_arg in
821   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
822   | --no-cr | --no-c) ;;
823   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
824   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
825   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
826     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
827     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
828     ac_sep=" " ;;
829   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
830      ac_sep=" " ;;
831   esac
832   # Get rid of the leading space.
833 done
834
835 # When interrupted or exit'd, cleanup temporary files, and complete
836 # config.log.  We remove comments because anyway the quotes in there
837 # would cause problems or look ugly.
838 trap 'exit_status=$?
839   # Save into config.log some information that might help in debugging.
840   echo >&5
841   echo "## ----------------- ##" >&5
842   echo "## Cache variables.  ##" >&5
843   echo "## ----------------- ##" >&5
844   echo >&5
845   # The following way of writing the cache mishandles newlines in values,
846 {
847   (set) 2>&1 |
848     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
849     *ac_space=\ *)
850       sed -n \
851         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
852           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
853       ;;
854     *)
855       sed -n \
856         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
857       ;;
858     esac;
859 } >&5
860   sed "/^$/d" confdefs.h >conftest.log
861   if test -s conftest.log; then
862     echo >&5
863     echo "## ------------ ##" >&5
864     echo "## confdefs.h.  ##" >&5
865     echo "## ------------ ##" >&5
866     echo >&5
867     cat conftest.log >&5
868   fi
869   (echo; echo) >&5
870   test "$ac_signal" != 0 &&
871     echo "$as_me: caught signal $ac_signal" >&5
872   echo "$as_me: exit $exit_status" >&5
873   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
874     exit $exit_status
875      ' 0
876 for ac_signal in 1 2 13 15; do
877   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
878 done
879 ac_signal=0
880
881 # confdefs.h avoids OS command line length limits that DEFS can exceed.
882 rm -rf conftest* confdefs.h
883 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
884 echo >confdefs.h
885
886 # Let the site file select an alternate cache file if it wants to.
887 # Prefer explicitly selected file to automatically selected ones.
888 if test -z "$CONFIG_SITE"; then
889   if test "x$prefix" != xNONE; then
890     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
891   else
892     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
893   fi
894 fi
895 for ac_site_file in $CONFIG_SITE; do
896   if test -r "$ac_site_file"; then
897     { echo "$as_me:897: loading site script $ac_site_file" >&5
898 echo "$as_me: loading site script $ac_site_file" >&6;}
899     cat "$ac_site_file" >&5
900     . "$ac_site_file"
901   fi
902 done
903
904 if test -r "$cache_file"; then
905   # Some versions of bash will fail to source /dev/null (special
906   # files actually), so we avoid doing that.
907   if test -f "$cache_file"; then
908     { echo "$as_me:908: loading cache $cache_file" >&5
909 echo "$as_me: loading cache $cache_file" >&6;}
910     case $cache_file in
911       [\\/]* | ?:[\\/]* ) . $cache_file;;
912       *)                      . ./$cache_file;;
913     esac
914   fi
915 else
916   { echo "$as_me:916: creating cache $cache_file" >&5
917 echo "$as_me: creating cache $cache_file" >&6;}
918   >$cache_file
919 fi
920
921 # Check that the precious variables saved in the cache have kept the same
922 # value.
923 ac_cache_corrupted=false
924 for ac_var in `(set) 2>&1 |
925                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
926   eval ac_old_set=\$ac_cv_env_${ac_var}_set
927   eval ac_new_set=\$ac_env_${ac_var}_set
928   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
929   eval ac_new_val="\$ac_env_${ac_var}_value"
930   case $ac_old_set,$ac_new_set in
931     set,)
932       { echo "$as_me:932: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
933 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
934       ac_cache_corrupted=: ;;
935     ,set)
936       { echo "$as_me:936: error: \`$ac_var' was not set in the previous run" >&5
937 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
938       ac_cache_corrupted=: ;;
939     ,);;
940     *)
941       if test "x$ac_old_val" != "x$ac_new_val"; then
942         { echo "$as_me:942: error: \`$ac_var' has changed since the previous run:" >&5
943 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
944         { echo "$as_me:944:   former value:  $ac_old_val" >&5
945 echo "$as_me:   former value:  $ac_old_val" >&2;}
946         { echo "$as_me:946:   current value: $ac_new_val" >&5
947 echo "$as_me:   current value: $ac_new_val" >&2;}
948         ac_cache_corrupted=:
949       fi;;
950   esac
951   # Pass precious variables to config.status.  It doesn't matter if
952   # we pass some twice (in addition to the command line arguments).
953   if test "$ac_new_set" = set; then
954     case $ac_new_val in
955     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
956       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
957       ac_configure_args="$ac_configure_args '$ac_arg'"
958       ;;
959     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
960        ;;
961     esac
962   fi
963 done
964 if $ac_cache_corrupted; then
965   { echo "$as_me:965: error: changes in the environment can compromise the build" >&5
966 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
967   { { echo "$as_me:967: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
968 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
969    { (exit 1); exit 1; }; }
970 fi
971
972 ac_ext=c
973 ac_cpp='$CPP $CPPFLAGS'
974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
977
978 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
979   *c*,-n*) ECHO_N= ECHO_C='
980 ' ECHO_T='      ' ;;
981   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
982   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
983 esac
984 echo "#! $SHELL" >conftest.sh
985 echo  "exit 0"   >>conftest.sh
986 chmod +x conftest.sh
987 if { (echo "$as_me:987: PATH=\".;.\"; conftest.sh") >&5
988   (PATH=".;."; conftest.sh) 2>&5
989   ac_status=$?
990   echo "$as_me:990: \$? = $ac_status" >&5
991   (exit $ac_status); }; then
992   ac_path_separator=';'
993 else
994   ac_path_separator=:
995 fi
996 PATH_SEPARATOR="$ac_path_separator"
997 rm -f conftest.sh
998
999 echo "$as_me:999: checking for installation prefix" >&5
1000 echo $ECHO_N "checking for installation prefix... $ECHO_C" >&6
1001 if test "${unet_cv_prefix+set}" = set; then
1002   echo $ECHO_N "(cached) $ECHO_C" >&6
1003 else
1004   unet_cv_prefix=$HOME
1005 fi
1006
1007 if test x"$prefix" != xNONE; then
1008     unet_cv_prefix=$prefix
1009 fi
1010 echo "$as_me:1010: result: $unet_cv_prefix" >&5
1011 echo "${ECHO_T}$unet_cv_prefix" >&6
1012 ac_default_prefix=$unet_cv_prefix
1013
1014 ac_config_headers="$ac_config_headers config.h"
1015
1016 ac_aux_dir=
1017 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1018   if test -f $ac_dir/install-sh; then
1019     ac_aux_dir=$ac_dir
1020     ac_install_sh="$ac_aux_dir/install-sh -c"
1021     break
1022   elif test -f $ac_dir/install.sh; then
1023     ac_aux_dir=$ac_dir
1024     ac_install_sh="$ac_aux_dir/install.sh -c"
1025     break
1026   elif test -f $ac_dir/shtool; then
1027     ac_aux_dir=$ac_dir
1028     ac_install_sh="$ac_aux_dir/shtool install -c"
1029     break
1030   fi
1031 done
1032 if test -z "$ac_aux_dir"; then
1033   { { echo "$as_me:1033: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1034 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1035    { (exit 1); exit 1; }; }
1036 fi
1037 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1038 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1039 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1040
1041 # Make sure we can run config.sub.
1042 $ac_config_sub sun4 >/dev/null 2>&1 ||
1043   { { echo "$as_me:1043: error: cannot run $ac_config_sub" >&5
1044 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1045    { (exit 1); exit 1; }; }
1046
1047 echo "$as_me:1047: checking build system type" >&5
1048 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1049 if test "${ac_cv_build+set}" = set; then
1050   echo $ECHO_N "(cached) $ECHO_C" >&6
1051 else
1052   ac_cv_build_alias=$build_alias
1053 test -z "$ac_cv_build_alias" &&
1054   ac_cv_build_alias=`$ac_config_guess`
1055 test -z "$ac_cv_build_alias" &&
1056   { { echo "$as_me:1056: error: cannot guess build type; you must specify one" >&5
1057 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1058    { (exit 1); exit 1; }; }
1059 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1060   { { echo "$as_me:1060: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1061 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1062    { (exit 1); exit 1; }; }
1063
1064 fi
1065 echo "$as_me:1065: result: $ac_cv_build" >&5
1066 echo "${ECHO_T}$ac_cv_build" >&6
1067 build=$ac_cv_build
1068 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1069 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1070 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1071
1072 echo "$as_me:1072: checking host system type" >&5
1073 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1074 if test "${ac_cv_host+set}" = set; then
1075   echo $ECHO_N "(cached) $ECHO_C" >&6
1076 else
1077   ac_cv_host_alias=$host_alias
1078 test -z "$ac_cv_host_alias" &&
1079   ac_cv_host_alias=$ac_cv_build_alias
1080 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1081   { { echo "$as_me:1081: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1082 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1083    { (exit 1); exit 1; }; }
1084
1085 fi
1086 echo "$as_me:1086: result: $ac_cv_host" >&5
1087 echo "${ECHO_T}$ac_cv_host" >&6
1088 host=$ac_cv_host
1089 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1090 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1091 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1092
1093 ac_ext=c
1094 ac_cpp='$CPP $CPPFLAGS'
1095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1098 if test -n "$ac_tool_prefix"; then
1099   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1100 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1101 echo "$as_me:1101: checking for $ac_word" >&5
1102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1103 if test "${ac_cv_prog_CC+set}" = set; then
1104   echo $ECHO_N "(cached) $ECHO_C" >&6
1105 else
1106   if test -n "$CC"; then
1107   ac_cv_prog_CC="$CC" # Let the user override the test.
1108 else
1109   ac_save_IFS=$IFS; IFS=$ac_path_separator
1110 ac_dummy="$PATH"
1111 for ac_dir in $ac_dummy; do
1112   IFS=$ac_save_IFS
1113   test -z "$ac_dir" && ac_dir=.
1114   $as_executable_p "$ac_dir/$ac_word" || continue
1115 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1116 echo "$as_me:1116: found $ac_dir/$ac_word" >&5
1117 break
1118 done
1119
1120 fi
1121 fi
1122 CC=$ac_cv_prog_CC
1123 if test -n "$CC"; then
1124   echo "$as_me:1124: result: $CC" >&5
1125 echo "${ECHO_T}$CC" >&6
1126 else
1127   echo "$as_me:1127: result: no" >&5
1128 echo "${ECHO_T}no" >&6
1129 fi
1130
1131 fi
1132 if test -z "$ac_cv_prog_CC"; then
1133   ac_ct_CC=$CC
1134   # Extract the first word of "gcc", so it can be a program name with args.
1135 set dummy gcc; ac_word=$2
1136 echo "$as_me:1136: checking for $ac_word" >&5
1137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1138 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1139   echo $ECHO_N "(cached) $ECHO_C" >&6
1140 else
1141   if test -n "$ac_ct_CC"; then
1142   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1143 else
1144   ac_save_IFS=$IFS; IFS=$ac_path_separator
1145 ac_dummy="$PATH"
1146 for ac_dir in $ac_dummy; do
1147   IFS=$ac_save_IFS
1148   test -z "$ac_dir" && ac_dir=.
1149   $as_executable_p "$ac_dir/$ac_word" || continue
1150 ac_cv_prog_ac_ct_CC="gcc"
1151 echo "$as_me:1151: found $ac_dir/$ac_word" >&5
1152 break
1153 done
1154
1155 fi
1156 fi
1157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1158 if test -n "$ac_ct_CC"; then
1159   echo "$as_me:1159: result: $ac_ct_CC" >&5
1160 echo "${ECHO_T}$ac_ct_CC" >&6
1161 else
1162   echo "$as_me:1162: result: no" >&5
1163 echo "${ECHO_T}no" >&6
1164 fi
1165
1166   CC=$ac_ct_CC
1167 else
1168   CC="$ac_cv_prog_CC"
1169 fi
1170
1171 if test -z "$CC"; then
1172   if test -n "$ac_tool_prefix"; then
1173   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1174 set dummy ${ac_tool_prefix}cc; ac_word=$2
1175 echo "$as_me:1175: checking for $ac_word" >&5
1176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1177 if test "${ac_cv_prog_CC+set}" = set; then
1178   echo $ECHO_N "(cached) $ECHO_C" >&6
1179 else
1180   if test -n "$CC"; then
1181   ac_cv_prog_CC="$CC" # Let the user override the test.
1182 else
1183   ac_save_IFS=$IFS; IFS=$ac_path_separator
1184 ac_dummy="$PATH"
1185 for ac_dir in $ac_dummy; do
1186   IFS=$ac_save_IFS
1187   test -z "$ac_dir" && ac_dir=.
1188   $as_executable_p "$ac_dir/$ac_word" || continue
1189 ac_cv_prog_CC="${ac_tool_prefix}cc"
1190 echo "$as_me:1190: found $ac_dir/$ac_word" >&5
1191 break
1192 done
1193
1194 fi
1195 fi
1196 CC=$ac_cv_prog_CC
1197 if test -n "$CC"; then
1198   echo "$as_me:1198: result: $CC" >&5
1199 echo "${ECHO_T}$CC" >&6
1200 else
1201   echo "$as_me:1201: result: no" >&5
1202 echo "${ECHO_T}no" >&6
1203 fi
1204
1205 fi
1206 if test -z "$ac_cv_prog_CC"; then
1207   ac_ct_CC=$CC
1208   # Extract the first word of "cc", so it can be a program name with args.
1209 set dummy cc; ac_word=$2
1210 echo "$as_me:1210: checking for $ac_word" >&5
1211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1212 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1213   echo $ECHO_N "(cached) $ECHO_C" >&6
1214 else
1215   if test -n "$ac_ct_CC"; then
1216   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1217 else
1218   ac_save_IFS=$IFS; IFS=$ac_path_separator
1219 ac_dummy="$PATH"
1220 for ac_dir in $ac_dummy; do
1221   IFS=$ac_save_IFS
1222   test -z "$ac_dir" && ac_dir=.
1223   $as_executable_p "$ac_dir/$ac_word" || continue
1224 ac_cv_prog_ac_ct_CC="cc"
1225 echo "$as_me:1225: found $ac_dir/$ac_word" >&5
1226 break
1227 done
1228
1229 fi
1230 fi
1231 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1232 if test -n "$ac_ct_CC"; then
1233   echo "$as_me:1233: result: $ac_ct_CC" >&5
1234 echo "${ECHO_T}$ac_ct_CC" >&6
1235 else
1236   echo "$as_me:1236: result: no" >&5
1237 echo "${ECHO_T}no" >&6
1238 fi
1239
1240   CC=$ac_ct_CC
1241 else
1242   CC="$ac_cv_prog_CC"
1243 fi
1244
1245 fi
1246 if test -z "$CC"; then
1247   # Extract the first word of "cc", so it can be a program name with args.
1248 set dummy cc; ac_word=$2
1249 echo "$as_me:1249: checking for $ac_word" >&5
1250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1251 if test "${ac_cv_prog_CC+set}" = set; then
1252   echo $ECHO_N "(cached) $ECHO_C" >&6
1253 else
1254   if test -n "$CC"; then
1255   ac_cv_prog_CC="$CC" # Let the user override the test.
1256 else
1257   ac_prog_rejected=no
1258   ac_save_IFS=$IFS; IFS=$ac_path_separator
1259 ac_dummy="$PATH"
1260 for ac_dir in $ac_dummy; do
1261   IFS=$ac_save_IFS
1262   test -z "$ac_dir" && ac_dir=.
1263   $as_executable_p "$ac_dir/$ac_word" || continue
1264 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1265   ac_prog_rejected=yes
1266   continue
1267 fi
1268 ac_cv_prog_CC="cc"
1269 echo "$as_me:1269: found $ac_dir/$ac_word" >&5
1270 break
1271 done
1272
1273 if test $ac_prog_rejected = yes; then
1274   # We found a bogon in the path, so make sure we never use it.
1275   set dummy $ac_cv_prog_CC
1276   shift
1277   if test $# != 0; then
1278     # We chose a different compiler from the bogus one.
1279     # However, it has the same basename, so the bogon will be chosen
1280     # first if we set CC to just the basename; use the full file name.
1281     shift
1282     set dummy "$ac_dir/$ac_word" ${1+"$@"}
1283     shift
1284     ac_cv_prog_CC="$@"
1285   fi
1286 fi
1287 fi
1288 fi
1289 CC=$ac_cv_prog_CC
1290 if test -n "$CC"; then
1291   echo "$as_me:1291: result: $CC" >&5
1292 echo "${ECHO_T}$CC" >&6
1293 else
1294   echo "$as_me:1294: result: no" >&5
1295 echo "${ECHO_T}no" >&6
1296 fi
1297
1298 fi
1299 if test -z "$CC"; then
1300   if test -n "$ac_tool_prefix"; then
1301   for ac_prog in cl
1302   do
1303     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1304 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1305 echo "$as_me:1305: checking for $ac_word" >&5
1306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1307 if test "${ac_cv_prog_CC+set}" = set; then
1308   echo $ECHO_N "(cached) $ECHO_C" >&6
1309 else
1310   if test -n "$CC"; then
1311   ac_cv_prog_CC="$CC" # Let the user override the test.
1312 else
1313   ac_save_IFS=$IFS; IFS=$ac_path_separator
1314 ac_dummy="$PATH"
1315 for ac_dir in $ac_dummy; do
1316   IFS=$ac_save_IFS
1317   test -z "$ac_dir" && ac_dir=.
1318   $as_executable_p "$ac_dir/$ac_word" || continue
1319 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1320 echo "$as_me:1320: found $ac_dir/$ac_word" >&5
1321 break
1322 done
1323
1324 fi
1325 fi
1326 CC=$ac_cv_prog_CC
1327 if test -n "$CC"; then
1328   echo "$as_me:1328: result: $CC" >&5
1329 echo "${ECHO_T}$CC" >&6
1330 else
1331   echo "$as_me:1331: result: no" >&5
1332 echo "${ECHO_T}no" >&6
1333 fi
1334
1335     test -n "$CC" && break
1336   done
1337 fi
1338 if test -z "$CC"; then
1339   ac_ct_CC=$CC
1340   for ac_prog in cl
1341 do
1342   # Extract the first word of "$ac_prog", so it can be a program name with args.
1343 set dummy $ac_prog; ac_word=$2
1344 echo "$as_me:1344: checking for $ac_word" >&5
1345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1346 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1347   echo $ECHO_N "(cached) $ECHO_C" >&6
1348 else
1349   if test -n "$ac_ct_CC"; then
1350   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1351 else
1352   ac_save_IFS=$IFS; IFS=$ac_path_separator
1353 ac_dummy="$PATH"
1354 for ac_dir in $ac_dummy; do
1355   IFS=$ac_save_IFS
1356   test -z "$ac_dir" && ac_dir=.
1357   $as_executable_p "$ac_dir/$ac_word" || continue
1358 ac_cv_prog_ac_ct_CC="$ac_prog"
1359 echo "$as_me:1359: found $ac_dir/$ac_word" >&5
1360 break
1361 done
1362
1363 fi
1364 fi
1365 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1366 if test -n "$ac_ct_CC"; then
1367   echo "$as_me:1367: result: $ac_ct_CC" >&5
1368 echo "${ECHO_T}$ac_ct_CC" >&6
1369 else
1370   echo "$as_me:1370: result: no" >&5
1371 echo "${ECHO_T}no" >&6
1372 fi
1373
1374   test -n "$ac_ct_CC" && break
1375 done
1376
1377   CC=$ac_ct_CC
1378 fi
1379
1380 fi
1381
1382 test -z "$CC" && { { echo "$as_me:1382: error: no acceptable cc found in \$PATH" >&5
1383 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1384    { (exit 1); exit 1; }; }
1385
1386 # Provide some information about the compiler.
1387 echo "$as_me:1387:" \
1388      "checking for C compiler version" >&5
1389 ac_compiler=`set X $ac_compile; echo $2`
1390 { (eval echo "$as_me:1390: \"$ac_compiler --version </dev/null >&5\"") >&5
1391   (eval $ac_compiler --version </dev/null >&5) 2>&5
1392   ac_status=$?
1393   echo "$as_me:1393: \$? = $ac_status" >&5
1394   (exit $ac_status); }
1395 { (eval echo "$as_me:1395: \"$ac_compiler -v </dev/null >&5\"") >&5
1396   (eval $ac_compiler -v </dev/null >&5) 2>&5
1397   ac_status=$?
1398   echo "$as_me:1398: \$? = $ac_status" >&5
1399   (exit $ac_status); }
1400 { (eval echo "$as_me:1400: \"$ac_compiler -V </dev/null >&5\"") >&5
1401   (eval $ac_compiler -V </dev/null >&5) 2>&5
1402   ac_status=$?
1403   echo "$as_me:1403: \$? = $ac_status" >&5
1404   (exit $ac_status); }
1405
1406 cat >conftest.$ac_ext <<_ACEOF
1407 #line 1407 "configure"
1408 #include "confdefs.h"
1409
1410 int
1411 main ()
1412 {
1413
1414   ;
1415   return 0;
1416 }
1417 _ACEOF
1418 ac_clean_files_save=$ac_clean_files
1419 ac_clean_files="$ac_clean_files a.out a.exe"
1420 # Try to create an executable without -o first, disregard a.out.
1421 # It will help us diagnose broken compilers, and finding out an intuition
1422 # of exeext.
1423 echo "$as_me:1423: checking for C compiler default output" >&5
1424 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1425 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1426 if { (eval echo "$as_me:1426: \"$ac_link_default\"") >&5
1427   (eval $ac_link_default) 2>&5
1428   ac_status=$?
1429   echo "$as_me:1429: \$? = $ac_status" >&5
1430   (exit $ac_status); }; then
1431   # Find the output, starting from the most likely.  This scheme is
1432 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1433 # resort.
1434 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1435                 ls a.out conftest 2>/dev/null;
1436                 ls a.* conftest.* 2>/dev/null`; do
1437   case $ac_file in
1438     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1439     a.out ) # We found the default executable, but exeext='' is most
1440             # certainly right.
1441             break;;
1442     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1443           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1444           export ac_cv_exeext
1445           break;;
1446     * ) break;;
1447   esac
1448 done
1449 else
1450   echo "$as_me: failed program was:" >&5
1451 cat conftest.$ac_ext >&5
1452 { { echo "$as_me:1452: error: C compiler cannot create executables" >&5
1453 echo "$as_me: error: C compiler cannot create executables" >&2;}
1454    { (exit 77); exit 77; }; }
1455 fi
1456
1457 ac_exeext=$ac_cv_exeext
1458 echo "$as_me:1458: result: $ac_file" >&5
1459 echo "${ECHO_T}$ac_file" >&6
1460
1461 # Check the compiler produces executables we can run.  If not, either
1462 # the compiler is broken, or we cross compile.
1463 echo "$as_me:1463: checking whether the C compiler works" >&5
1464 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1465 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1466 # If not cross compiling, check that we can run a simple program.
1467 if test "$cross_compiling" != yes; then
1468   if { ac_try='./$ac_file'
1469   { (eval echo "$as_me:1469: \"$ac_try\"") >&5
1470   (eval $ac_try) 2>&5
1471   ac_status=$?
1472   echo "$as_me:1472: \$? = $ac_status" >&5
1473   (exit $ac_status); }; }; then
1474     cross_compiling=no
1475   else
1476     if test "$cross_compiling" = maybe; then
1477         cross_compiling=yes
1478     else
1479         { { echo "$as_me:1479: error: cannot run C compiled programs.
1480 If you meant to cross compile, use \`--host'." >&5
1481 echo "$as_me: error: cannot run C compiled programs.
1482 If you meant to cross compile, use \`--host'." >&2;}
1483    { (exit 1); exit 1; }; }
1484     fi
1485   fi
1486 fi
1487 echo "$as_me:1487: result: yes" >&5
1488 echo "${ECHO_T}yes" >&6
1489
1490 rm -f a.out a.exe conftest$ac_cv_exeext
1491 ac_clean_files=$ac_clean_files_save
1492 # Check the compiler produces executables we can run.  If not, either
1493 # the compiler is broken, or we cross compile.
1494 echo "$as_me:1494: checking whether we are cross compiling" >&5
1495 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1496 echo "$as_me:1496: result: $cross_compiling" >&5
1497 echo "${ECHO_T}$cross_compiling" >&6
1498
1499 echo "$as_me:1499: checking for executable suffix" >&5
1500 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1501 if { (eval echo "$as_me:1501: \"$ac_link\"") >&5
1502   (eval $ac_link) 2>&5
1503   ac_status=$?
1504   echo "$as_me:1504: \$? = $ac_status" >&5
1505   (exit $ac_status); }; then
1506   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1507 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1508 # work properly (i.e., refer to `conftest.exe'), while it won't with
1509 # `rm'.
1510 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1511   case $ac_file in
1512     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1513     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1514           export ac_cv_exeext
1515           break;;
1516     * ) break;;
1517   esac
1518 done
1519 else
1520   { { echo "$as_me:1520: error: cannot compute EXEEXT: cannot compile and link" >&5
1521 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1522    { (exit 1); exit 1; }; }
1523 fi
1524
1525 rm -f conftest$ac_cv_exeext
1526 echo "$as_me:1526: result: $ac_cv_exeext" >&5
1527 echo "${ECHO_T}$ac_cv_exeext" >&6
1528
1529 rm -f conftest.$ac_ext
1530 EXEEXT=$ac_cv_exeext
1531 ac_exeext=$EXEEXT
1532 echo "$as_me:1532: checking for object suffix" >&5
1533 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1534 if test "${ac_cv_objext+set}" = set; then
1535   echo $ECHO_N "(cached) $ECHO_C" >&6
1536 else
1537   cat >conftest.$ac_ext <<_ACEOF
1538 #line 1538 "configure"
1539 #include "confdefs.h"
1540
1541 int
1542 main ()
1543 {
1544
1545   ;
1546   return 0;
1547 }
1548 _ACEOF
1549 rm -f conftest.o conftest.obj
1550 if { (eval echo "$as_me:1550: \"$ac_compile\"") >&5
1551   (eval $ac_compile) 2>&5
1552   ac_status=$?
1553   echo "$as_me:1553: \$? = $ac_status" >&5
1554   (exit $ac_status); }; then
1555   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1556   case $ac_file in
1557     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1558     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1559        break;;
1560   esac
1561 done
1562 else
1563   echo "$as_me: failed program was:" >&5
1564 cat conftest.$ac_ext >&5
1565 { { echo "$as_me:1565: error: cannot compute OBJEXT: cannot compile" >&5
1566 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1567    { (exit 1); exit 1; }; }
1568 fi
1569
1570 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1571 fi
1572 echo "$as_me:1572: result: $ac_cv_objext" >&5
1573 echo "${ECHO_T}$ac_cv_objext" >&6
1574 OBJEXT=$ac_cv_objext
1575 ac_objext=$OBJEXT
1576 echo "$as_me:1576: checking whether we are using the GNU C compiler" >&5
1577 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1578 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1579   echo $ECHO_N "(cached) $ECHO_C" >&6
1580 else
1581   cat >conftest.$ac_ext <<_ACEOF
1582 #line 1582 "configure"
1583 #include "confdefs.h"
1584
1585 int
1586 main ()
1587 {
1588 #ifndef __GNUC__
1589        choke me
1590 #endif
1591
1592   ;
1593   return 0;
1594 }
1595 _ACEOF
1596 rm -f conftest.$ac_objext
1597 if { (eval echo "$as_me:1597: \"$ac_compile\"") >&5
1598   (eval $ac_compile) 2>&5
1599   ac_status=$?
1600   echo "$as_me:1600: \$? = $ac_status" >&5
1601   (exit $ac_status); } &&
1602          { ac_try='test -s conftest.$ac_objext'
1603   { (eval echo "$as_me:1603: \"$ac_try\"") >&5
1604   (eval $ac_try) 2>&5
1605   ac_status=$?
1606   echo "$as_me:1606: \$? = $ac_status" >&5
1607   (exit $ac_status); }; }; then
1608   ac_compiler_gnu=yes
1609 else
1610   echo "$as_me: failed program was:" >&5
1611 cat conftest.$ac_ext >&5
1612 ac_compiler_gnu=no
1613 fi
1614 rm -f conftest.$ac_objext conftest.$ac_ext
1615 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1616
1617 fi
1618 echo "$as_me:1618: result: $ac_cv_c_compiler_gnu" >&5
1619 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1620 GCC=`test $ac_compiler_gnu = yes && echo yes`
1621 ac_test_CFLAGS=${CFLAGS+set}
1622 ac_save_CFLAGS=$CFLAGS
1623 CFLAGS="-g"
1624 echo "$as_me:1624: checking whether $CC accepts -g" >&5
1625 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1626 if test "${ac_cv_prog_cc_g+set}" = set; then
1627   echo $ECHO_N "(cached) $ECHO_C" >&6
1628 else
1629   cat >conftest.$ac_ext <<_ACEOF
1630 #line 1630 "configure"
1631 #include "confdefs.h"
1632
1633 int
1634 main ()
1635 {
1636
1637   ;
1638   return 0;
1639 }
1640 _ACEOF
1641 rm -f conftest.$ac_objext
1642 if { (eval echo "$as_me:1642: \"$ac_compile\"") >&5
1643   (eval $ac_compile) 2>&5
1644   ac_status=$?
1645   echo "$as_me:1645: \$? = $ac_status" >&5
1646   (exit $ac_status); } &&
1647          { ac_try='test -s conftest.$ac_objext'
1648   { (eval echo "$as_me:1648: \"$ac_try\"") >&5
1649   (eval $ac_try) 2>&5
1650   ac_status=$?
1651   echo "$as_me:1651: \$? = $ac_status" >&5
1652   (exit $ac_status); }; }; then
1653   ac_cv_prog_cc_g=yes
1654 else
1655   echo "$as_me: failed program was:" >&5
1656 cat conftest.$ac_ext >&5
1657 ac_cv_prog_cc_g=no
1658 fi
1659 rm -f conftest.$ac_objext conftest.$ac_ext
1660 fi
1661 echo "$as_me:1661: result: $ac_cv_prog_cc_g" >&5
1662 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1663 if test "$ac_test_CFLAGS" = set; then
1664   CFLAGS=$ac_save_CFLAGS
1665 elif test $ac_cv_prog_cc_g = yes; then
1666   if test "$GCC" = yes; then
1667     CFLAGS="-g -O2"
1668   else
1669     CFLAGS="-g"
1670   fi
1671 else
1672   if test "$GCC" = yes; then
1673     CFLAGS="-O2"
1674   else
1675     CFLAGS=
1676   fi
1677 fi
1678 # Some people use a C++ compiler to compile C.  Since we use `exit',
1679 # in C++ we need to declare it.  In case someone uses the same compiler
1680 # for both compiling C and C++ we need to have the C++ compiler decide
1681 # the declaration of exit, since it's the most demanding environment.
1682 cat >conftest.$ac_ext <<_ACEOF
1683 #ifndef __cplusplus
1684   choke me
1685 #endif
1686 _ACEOF
1687 rm -f conftest.$ac_objext
1688 if { (eval echo "$as_me:1688: \"$ac_compile\"") >&5
1689   (eval $ac_compile) 2>&5
1690   ac_status=$?
1691   echo "$as_me:1691: \$? = $ac_status" >&5
1692   (exit $ac_status); } &&
1693          { ac_try='test -s conftest.$ac_objext'
1694   { (eval echo "$as_me:1694: \"$ac_try\"") >&5
1695   (eval $ac_try) 2>&5
1696   ac_status=$?
1697   echo "$as_me:1697: \$? = $ac_status" >&5
1698   (exit $ac_status); }; }; then
1699   for ac_declaration in \
1700    ''\
1701    '#include <stdlib.h>' \
1702    'extern "C" void std::exit (int) throw (); using std::exit;' \
1703    'extern "C" void std::exit (int); using std::exit;' \
1704    'extern "C" void exit (int) throw ();' \
1705    'extern "C" void exit (int);' \
1706    'void exit (int);'
1707 do
1708   cat >conftest.$ac_ext <<_ACEOF
1709 #line 1709 "configure"
1710 #include "confdefs.h"
1711 #include <stdlib.h>
1712 $ac_declaration
1713 int
1714 main ()
1715 {
1716 exit (42);
1717   ;
1718   return 0;
1719 }
1720 _ACEOF
1721 rm -f conftest.$ac_objext
1722 if { (eval echo "$as_me:1722: \"$ac_compile\"") >&5
1723   (eval $ac_compile) 2>&5
1724   ac_status=$?
1725   echo "$as_me:1725: \$? = $ac_status" >&5
1726   (exit $ac_status); } &&
1727          { ac_try='test -s conftest.$ac_objext'
1728   { (eval echo "$as_me:1728: \"$ac_try\"") >&5
1729   (eval $ac_try) 2>&5
1730   ac_status=$?
1731   echo "$as_me:1731: \$? = $ac_status" >&5
1732   (exit $ac_status); }; }; then
1733   :
1734 else
1735   echo "$as_me: failed program was:" >&5
1736 cat conftest.$ac_ext >&5
1737 continue
1738 fi
1739 rm -f conftest.$ac_objext conftest.$ac_ext
1740   cat >conftest.$ac_ext <<_ACEOF
1741 #line 1741 "configure"
1742 #include "confdefs.h"
1743 $ac_declaration
1744 int
1745 main ()
1746 {
1747 exit (42);
1748   ;
1749   return 0;
1750 }
1751 _ACEOF
1752 rm -f conftest.$ac_objext
1753 if { (eval echo "$as_me:1753: \"$ac_compile\"") >&5
1754   (eval $ac_compile) 2>&5
1755   ac_status=$?
1756   echo "$as_me:1756: \$? = $ac_status" >&5
1757   (exit $ac_status); } &&
1758          { ac_try='test -s conftest.$ac_objext'
1759   { (eval echo "$as_me:1759: \"$ac_try\"") >&5
1760   (eval $ac_try) 2>&5
1761   ac_status=$?
1762   echo "$as_me:1762: \$? = $ac_status" >&5
1763   (exit $ac_status); }; }; then
1764   break
1765 else
1766   echo "$as_me: failed program was:" >&5
1767 cat conftest.$ac_ext >&5
1768 fi
1769 rm -f conftest.$ac_objext conftest.$ac_ext
1770 done
1771 rm -f conftest*
1772 if test -n "$ac_declaration"; then
1773   echo '#ifdef __cplusplus' >>confdefs.h
1774   echo $ac_declaration      >>confdefs.h
1775   echo '#endif'             >>confdefs.h
1776 fi
1777
1778 else
1779   echo "$as_me: failed program was:" >&5
1780 cat conftest.$ac_ext >&5
1781 fi
1782 rm -f conftest.$ac_objext conftest.$ac_ext
1783 ac_ext=c
1784 ac_cpp='$CPP $CPPFLAGS'
1785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1788
1789 echo "$as_me:1789: checking for ${CC-cc} option to accept ANSI C" >&5
1790 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
1791 if test "${am_cv_prog_cc_stdc+set}" = set; then
1792   echo $ECHO_N "(cached) $ECHO_C" >&6
1793 else
1794   am_cv_prog_cc_stdc=no
1795 ac_save_CC="$CC"
1796 # Don't try gcc -ansi; that turns off useful extensions and
1797 # breaks some systems' header files.
1798 # AIX                   -qlanglvl=ansi
1799 # Ultrix and OSF/1      -std1
1800 # HP-UX                 -Aa -D_HPUX_SOURCE
1801 # SVR4                  -Xc -D__EXTENSIONS__
1802 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1803 do
1804   CC="$ac_save_CC $ac_arg"
1805   cat >conftest.$ac_ext <<_ACEOF
1806 #line 1806 "configure"
1807 #include "confdefs.h"
1808 #include <stdarg.h>
1809 #include <stdio.h>
1810 #include <sys/types.h>
1811 #include <sys/stat.h>
1812 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1813 struct buf { int x; };
1814 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1815 static char *e (p, i)
1816      char **p;
1817      int i;
1818 {
1819   return p[i];
1820 }
1821 static char *f (char * (*g) (char **, int), char **p, ...)
1822 {
1823   char *s;
1824   va_list v;
1825   va_start (v,p);
1826   s = g (p, va_arg (v,int));
1827   va_end (v);
1828   return s;
1829 }
1830 int test (int i, double x);
1831 struct s1 {int (*f) (int a);};
1832 struct s2 {int (*f) (double a);};
1833 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1834 int argc;
1835 char **argv;
1836
1837 int
1838 main ()
1839 {
1840
1841 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1842
1843   ;
1844   return 0;
1845 }
1846 _ACEOF
1847 rm -f conftest.$ac_objext
1848 if { (eval echo "$as_me:1848: \"$ac_compile\"") >&5
1849   (eval $ac_compile) 2>&5
1850   ac_status=$?
1851   echo "$as_me:1851: \$? = $ac_status" >&5
1852   (exit $ac_status); } &&
1853          { ac_try='test -s conftest.$ac_objext'
1854   { (eval echo "$as_me:1854: \"$ac_try\"") >&5
1855   (eval $ac_try) 2>&5
1856   ac_status=$?
1857   echo "$as_me:1857: \$? = $ac_status" >&5
1858   (exit $ac_status); }; }; then
1859   am_cv_prog_cc_stdc="$ac_arg"; break
1860 else
1861   echo "$as_me: failed program was:" >&5
1862 cat conftest.$ac_ext >&5
1863 fi
1864 rm -f conftest.$ac_objext conftest.$ac_ext
1865 done
1866 CC="$ac_save_CC"
1867
1868 fi
1869
1870 if test -z "$am_cv_prog_cc_stdc"; then
1871   echo "$as_me:1871: result: none needed" >&5
1872 echo "${ECHO_T}none needed" >&6
1873 else
1874   echo "$as_me:1874: result: $am_cv_prog_cc_stdc" >&5
1875 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
1876 fi
1877 case "x$am_cv_prog_cc_stdc" in
1878   x|xno) ;;
1879   *) CC="$CC $am_cv_prog_cc_stdc" ;;
1880 esac
1881
1882 if test x"$CFLAGS" != x; then
1883     CFLAGS=`echo "$CFLAGS" | sed -e 's/-O2/-O3/'`
1884 fi
1885 if test x"$CFLAGS" != x; then
1886     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pipe//g'`
1887 fi
1888 if test x"$CFLAGS" != x; then
1889     unet_old_cflags=$CFLAGS
1890     CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
1891 fi
1892 if test x"$CFLAGS" != x"$unet_old_cflags"; then
1893     # If -g was already there, force symbols to be enabled
1894     unet_cv_enable_symbols=yes
1895 fi
1896 if test x"$CFLAGS" != x; then
1897     unet_old_cflags=$CFLAGS
1898     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
1899 fi
1900 if test x"$CFLAGS" != x"$unet_old_cflags"; then
1901     # If -pg was already there, force profiling to be enabled
1902     unet_cv_enable_profile=yes
1903 fi
1904 if test x"$CFLAGS" != x; then
1905     unet_old_cflags=$CFLAGS
1906     CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wall//g'`
1907 fi
1908 if test x"$CFLAGS" != x"$unet_old_cflags"; then
1909     # If -Wall was already there, force warnings to be enabled
1910     unet_cv_enable_warnings=yes
1911 fi
1912 if test x"$CFLAGS" != x; then
1913     unet_old_cflags=$CFLAGS
1914     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pedantic//g'`
1915 fi
1916 if test x"$CFLAGS" != x"$unet_old_cflags"; then
1917     # If -pedantic was already there, force pedatic to be enabled
1918     unet_cv_enable_pedantic=yes
1919 fi
1920
1921 echo "$as_me:1921: checking for library containing crypt" >&5
1922 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
1923 if test "${ac_cv_search_crypt+set}" = set; then
1924   echo $ECHO_N "(cached) $ECHO_C" >&6
1925 else
1926   ac_func_search_save_LIBS=$LIBS
1927 ac_cv_search_crypt=no
1928 cat >conftest.$ac_ext <<_ACEOF
1929 #line 1929 "configure"
1930 #include "confdefs.h"
1931
1932 /* Override any gcc2 internal prototype to avoid an error.  */
1933 #ifdef __cplusplus
1934 extern "C"
1935 #endif
1936 /* We use char because int might match the return type of a gcc2
1937    builtin and then its argument prototype would still apply.  */
1938 char crypt ();
1939 int
1940 main ()
1941 {
1942 crypt ();
1943   ;
1944   return 0;
1945 }
1946 _ACEOF
1947 rm -f conftest.$ac_objext conftest$ac_exeext
1948 if { (eval echo "$as_me:1948: \"$ac_link\"") >&5
1949   (eval $ac_link) 2>&5
1950   ac_status=$?
1951   echo "$as_me:1951: \$? = $ac_status" >&5
1952   (exit $ac_status); } &&
1953          { ac_try='test -s conftest$ac_exeext'
1954   { (eval echo "$as_me:1954: \"$ac_try\"") >&5
1955   (eval $ac_try) 2>&5
1956   ac_status=$?
1957   echo "$as_me:1957: \$? = $ac_status" >&5
1958   (exit $ac_status); }; }; then
1959   ac_cv_search_crypt="none required"
1960 else
1961   echo "$as_me: failed program was:" >&5
1962 cat conftest.$ac_ext >&5
1963 fi
1964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1965 if test "$ac_cv_search_crypt" = no; then
1966   for ac_lib in descrypt crypt; do
1967     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
1968     cat >conftest.$ac_ext <<_ACEOF
1969 #line 1969 "configure"
1970 #include "confdefs.h"
1971
1972 /* Override any gcc2 internal prototype to avoid an error.  */
1973 #ifdef __cplusplus
1974 extern "C"
1975 #endif
1976 /* We use char because int might match the return type of a gcc2
1977    builtin and then its argument prototype would still apply.  */
1978 char crypt ();
1979 int
1980 main ()
1981 {
1982 crypt ();
1983   ;
1984   return 0;
1985 }
1986 _ACEOF
1987 rm -f conftest.$ac_objext conftest$ac_exeext
1988 if { (eval echo "$as_me:1988: \"$ac_link\"") >&5
1989   (eval $ac_link) 2>&5
1990   ac_status=$?
1991   echo "$as_me:1991: \$? = $ac_status" >&5
1992   (exit $ac_status); } &&
1993          { ac_try='test -s conftest$ac_exeext'
1994   { (eval echo "$as_me:1994: \"$ac_try\"") >&5
1995   (eval $ac_try) 2>&5
1996   ac_status=$?
1997   echo "$as_me:1997: \$? = $ac_status" >&5
1998   (exit $ac_status); }; }; then
1999   ac_cv_search_crypt="-l$ac_lib"
2000 break
2001 else
2002   echo "$as_me: failed program was:" >&5
2003 cat conftest.$ac_ext >&5
2004 fi
2005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2006   done
2007 fi
2008 LIBS=$ac_func_search_save_LIBS
2009 fi
2010 echo "$as_me:2010: result: $ac_cv_search_crypt" >&5
2011 echo "${ECHO_T}$ac_cv_search_crypt" >&6
2012 if test "$ac_cv_search_crypt" != no; then
2013   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
2014
2015 else
2016   { { echo "$as_me:2016: error: Unable to find library containing crypt()" >&5
2017 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
2018    { (exit 1); exit 1; }; }
2019 fi
2020
2021    # Most operating systems have gethostbyname() in the default searched
2022    # libraries (i.e. libc):
2023    echo "$as_me:2023: checking for gethostbyname" >&5
2024 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2025 if test "${ac_cv_func_gethostbyname+set}" = set; then
2026   echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028   cat >conftest.$ac_ext <<_ACEOF
2029 #line 2029 "configure"
2030 #include "confdefs.h"
2031 /* System header to define __stub macros and hopefully few prototypes,
2032     which can conflict with char gethostbyname (); below.  */
2033 #include <assert.h>
2034 /* Override any gcc2 internal prototype to avoid an error.  */
2035 #ifdef __cplusplus
2036 extern "C"
2037 #endif
2038 /* We use char because int might match the return type of a gcc2
2039    builtin and then its argument prototype would still apply.  */
2040 char gethostbyname ();
2041 char (*f) ();
2042
2043 int
2044 main ()
2045 {
2046 /* The GNU C library defines this for functions which it implements
2047     to always fail with ENOSYS.  Some functions are actually named
2048     something starting with __ and the normal name is an alias.  */
2049 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2050 choke me
2051 #else
2052 f = gethostbyname;
2053 #endif
2054
2055   ;
2056   return 0;
2057 }
2058 _ACEOF
2059 rm -f conftest.$ac_objext conftest$ac_exeext
2060 if { (eval echo "$as_me:2060: \"$ac_link\"") >&5
2061   (eval $ac_link) 2>&5
2062   ac_status=$?
2063   echo "$as_me:2063: \$? = $ac_status" >&5
2064   (exit $ac_status); } &&
2065          { ac_try='test -s conftest$ac_exeext'
2066   { (eval echo "$as_me:2066: \"$ac_try\"") >&5
2067   (eval $ac_try) 2>&5
2068   ac_status=$?
2069   echo "$as_me:2069: \$? = $ac_status" >&5
2070   (exit $ac_status); }; }; then
2071   ac_cv_func_gethostbyname=yes
2072 else
2073   echo "$as_me: failed program was:" >&5
2074 cat conftest.$ac_ext >&5
2075 ac_cv_func_gethostbyname=no
2076 fi
2077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2078 fi
2079 echo "$as_me:2079: result: $ac_cv_func_gethostbyname" >&5
2080 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2081 if test $ac_cv_func_gethostbyname = yes; then
2082   :
2083 else
2084   # Some OSes (eg. Solaris) place it in libnsl:
2085
2086 echo "$as_me:2086: checking for gethostbyname in -lnsl" >&5
2087 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2088 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2089   echo $ECHO_N "(cached) $ECHO_C" >&6
2090 else
2091   ac_check_lib_save_LIBS=$LIBS
2092 LIBS="-lnsl  $LIBS"
2093 cat >conftest.$ac_ext <<_ACEOF
2094 #line 2094 "configure"
2095 #include "confdefs.h"
2096
2097 /* Override any gcc2 internal prototype to avoid an error.  */
2098 #ifdef __cplusplus
2099 extern "C"
2100 #endif
2101 /* We use char because int might match the return type of a gcc2
2102    builtin and then its argument prototype would still apply.  */
2103 char gethostbyname ();
2104 int
2105 main ()
2106 {
2107 gethostbyname ();
2108   ;
2109   return 0;
2110 }
2111 _ACEOF
2112 rm -f conftest.$ac_objext conftest$ac_exeext
2113 if { (eval echo "$as_me:2113: \"$ac_link\"") >&5
2114   (eval $ac_link) 2>&5
2115   ac_status=$?
2116   echo "$as_me:2116: \$? = $ac_status" >&5
2117   (exit $ac_status); } &&
2118          { ac_try='test -s conftest$ac_exeext'
2119   { (eval echo "$as_me:2119: \"$ac_try\"") >&5
2120   (eval $ac_try) 2>&5
2121   ac_status=$?
2122   echo "$as_me:2122: \$? = $ac_status" >&5
2123   (exit $ac_status); }; }; then
2124   ac_cv_lib_nsl_gethostbyname=yes
2125 else
2126   echo "$as_me: failed program was:" >&5
2127 cat conftest.$ac_ext >&5
2128 ac_cv_lib_nsl_gethostbyname=no
2129 fi
2130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2131 LIBS=$ac_check_lib_save_LIBS
2132 fi
2133 echo "$as_me:2133: result: $ac_cv_lib_nsl_gethostbyname" >&5
2134 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2135 if test $ac_cv_lib_nsl_gethostbyname = yes; then
2136   cat >>confdefs.h <<EOF
2137 #define HAVE_LIBNSL 1
2138 EOF
2139
2140   LIBS="-lnsl $LIBS"
2141
2142 else
2143   # Some strange OSes (SINIX) have it in libsocket:
2144
2145 echo "$as_me:2145: checking for gethostbyname in -lsocket" >&5
2146 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2147 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2148   echo $ECHO_N "(cached) $ECHO_C" >&6
2149 else
2150   ac_check_lib_save_LIBS=$LIBS
2151 LIBS="-lsocket  $LIBS"
2152 cat >conftest.$ac_ext <<_ACEOF
2153 #line 2153 "configure"
2154 #include "confdefs.h"
2155
2156 /* Override any gcc2 internal prototype to avoid an error.  */
2157 #ifdef __cplusplus
2158 extern "C"
2159 #endif
2160 /* We use char because int might match the return type of a gcc2
2161    builtin and then its argument prototype would still apply.  */
2162 char gethostbyname ();
2163 int
2164 main ()
2165 {
2166 gethostbyname ();
2167   ;
2168   return 0;
2169 }
2170 _ACEOF
2171 rm -f conftest.$ac_objext conftest$ac_exeext
2172 if { (eval echo "$as_me:2172: \"$ac_link\"") >&5
2173   (eval $ac_link) 2>&5
2174   ac_status=$?
2175   echo "$as_me:2175: \$? = $ac_status" >&5
2176   (exit $ac_status); } &&
2177          { ac_try='test -s conftest$ac_exeext'
2178   { (eval echo "$as_me:2178: \"$ac_try\"") >&5
2179   (eval $ac_try) 2>&5
2180   ac_status=$?
2181   echo "$as_me:2181: \$? = $ac_status" >&5
2182   (exit $ac_status); }; }; then
2183   ac_cv_lib_socket_gethostbyname=yes
2184 else
2185   echo "$as_me: failed program was:" >&5
2186 cat conftest.$ac_ext >&5
2187 ac_cv_lib_socket_gethostbyname=no
2188 fi
2189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2190 LIBS=$ac_check_lib_save_LIBS
2191 fi
2192 echo "$as_me:2192: result: $ac_cv_lib_socket_gethostbyname" >&5
2193 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2194 if test $ac_cv_lib_socket_gethostbyname = yes; then
2195   cat >>confdefs.h <<EOF
2196 #define HAVE_LIBSOCKET 1
2197 EOF
2198
2199   LIBS="-lsocket $LIBS"
2200
2201 else
2202   # Unfortunately libsocket sometimes depends on libnsl.
2203           # AC_CHECK_LIB's API is essentially broken so the following
2204           # ugliness is necessary:
2205           echo "$as_me:2205: checking for gethostbyname in -lsocket" >&5
2206 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2207 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2208   echo $ECHO_N "(cached) $ECHO_C" >&6
2209 else
2210   ac_check_lib_save_LIBS=$LIBS
2211 LIBS="-lsocket -lnsl $LIBS"
2212 cat >conftest.$ac_ext <<_ACEOF
2213 #line 2213 "configure"
2214 #include "confdefs.h"
2215
2216 /* Override any gcc2 internal prototype to avoid an error.  */
2217 #ifdef __cplusplus
2218 extern "C"
2219 #endif
2220 /* We use char because int might match the return type of a gcc2
2221    builtin and then its argument prototype would still apply.  */
2222 char gethostbyname ();
2223 int
2224 main ()
2225 {
2226 gethostbyname ();
2227   ;
2228   return 0;
2229 }
2230 _ACEOF
2231 rm -f conftest.$ac_objext conftest$ac_exeext
2232 if { (eval echo "$as_me:2232: \"$ac_link\"") >&5
2233   (eval $ac_link) 2>&5
2234   ac_status=$?
2235   echo "$as_me:2235: \$? = $ac_status" >&5
2236   (exit $ac_status); } &&
2237          { ac_try='test -s conftest$ac_exeext'
2238   { (eval echo "$as_me:2238: \"$ac_try\"") >&5
2239   (eval $ac_try) 2>&5
2240   ac_status=$?
2241   echo "$as_me:2241: \$? = $ac_status" >&5
2242   (exit $ac_status); }; }; then
2243   ac_cv_lib_socket_gethostbyname=yes
2244 else
2245   echo "$as_me: failed program was:" >&5
2246 cat conftest.$ac_ext >&5
2247 ac_cv_lib_socket_gethostbyname=no
2248 fi
2249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2250 LIBS=$ac_check_lib_save_LIBS
2251 fi
2252 echo "$as_me:2252: result: $ac_cv_lib_socket_gethostbyname" >&5
2253 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2254 if test $ac_cv_lib_socket_gethostbyname = yes; then
2255   LIBS="-lsocket -lnsl $LIBS"
2256 else
2257
2258 echo "$as_me:2258: checking for gethostbyname in -lresolv" >&5
2259 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
2260 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
2261   echo $ECHO_N "(cached) $ECHO_C" >&6
2262 else
2263   ac_check_lib_save_LIBS=$LIBS
2264 LIBS="-lresolv  $LIBS"
2265 cat >conftest.$ac_ext <<_ACEOF
2266 #line 2266 "configure"
2267 #include "confdefs.h"
2268
2269 /* Override any gcc2 internal prototype to avoid an error.  */
2270 #ifdef __cplusplus
2271 extern "C"
2272 #endif
2273 /* We use char because int might match the return type of a gcc2
2274    builtin and then its argument prototype would still apply.  */
2275 char gethostbyname ();
2276 int
2277 main ()
2278 {
2279 gethostbyname ();
2280   ;
2281   return 0;
2282 }
2283 _ACEOF
2284 rm -f conftest.$ac_objext conftest$ac_exeext
2285 if { (eval echo "$as_me:2285: \"$ac_link\"") >&5
2286   (eval $ac_link) 2>&5
2287   ac_status=$?
2288   echo "$as_me:2288: \$? = $ac_status" >&5
2289   (exit $ac_status); } &&
2290          { ac_try='test -s conftest$ac_exeext'
2291   { (eval echo "$as_me:2291: \"$ac_try\"") >&5
2292   (eval $ac_try) 2>&5
2293   ac_status=$?
2294   echo "$as_me:2294: \$? = $ac_status" >&5
2295   (exit $ac_status); }; }; then
2296   ac_cv_lib_resolv_gethostbyname=yes
2297 else
2298   echo "$as_me: failed program was:" >&5
2299 cat conftest.$ac_ext >&5
2300 ac_cv_lib_resolv_gethostbyname=no
2301 fi
2302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2303 LIBS=$ac_check_lib_save_LIBS
2304 fi
2305 echo "$as_me:2305: result: $ac_cv_lib_resolv_gethostbyname" >&5
2306 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
2307 if test $ac_cv_lib_resolv_gethostbyname = yes; then
2308   cat >>confdefs.h <<EOF
2309 #define HAVE_LIBRESOLV 1
2310 EOF
2311
2312   LIBS="-lresolv $LIBS"
2313
2314 fi
2315
2316 fi
2317
2318 fi
2319
2320 fi
2321
2322 fi
2323
2324   echo "$as_me:2324: checking for socket" >&5
2325 echo $ECHO_N "checking for socket... $ECHO_C" >&6
2326 if test "${ac_cv_func_socket+set}" = set; then
2327   echo $ECHO_N "(cached) $ECHO_C" >&6
2328 else
2329   cat >conftest.$ac_ext <<_ACEOF
2330 #line 2330 "configure"
2331 #include "confdefs.h"
2332 /* System header to define __stub macros and hopefully few prototypes,
2333     which can conflict with char socket (); below.  */
2334 #include <assert.h>
2335 /* Override any gcc2 internal prototype to avoid an error.  */
2336 #ifdef __cplusplus
2337 extern "C"
2338 #endif
2339 /* We use char because int might match the return type of a gcc2
2340    builtin and then its argument prototype would still apply.  */
2341 char socket ();
2342 char (*f) ();
2343
2344 int
2345 main ()
2346 {
2347 /* The GNU C library defines this for functions which it implements
2348     to always fail with ENOSYS.  Some functions are actually named
2349     something starting with __ and the normal name is an alias.  */
2350 #if defined (__stub_socket) || defined (__stub___socket)
2351 choke me
2352 #else
2353 f = socket;
2354 #endif
2355
2356   ;
2357   return 0;
2358 }
2359 _ACEOF
2360 rm -f conftest.$ac_objext conftest$ac_exeext
2361 if { (eval echo "$as_me:2361: \"$ac_link\"") >&5
2362   (eval $ac_link) 2>&5
2363   ac_status=$?
2364   echo "$as_me:2364: \$? = $ac_status" >&5
2365   (exit $ac_status); } &&
2366          { ac_try='test -s conftest$ac_exeext'
2367   { (eval echo "$as_me:2367: \"$ac_try\"") >&5
2368   (eval $ac_try) 2>&5
2369   ac_status=$?
2370   echo "$as_me:2370: \$? = $ac_status" >&5
2371   (exit $ac_status); }; }; then
2372   ac_cv_func_socket=yes
2373 else
2374   echo "$as_me: failed program was:" >&5
2375 cat conftest.$ac_ext >&5
2376 ac_cv_func_socket=no
2377 fi
2378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2379 fi
2380 echo "$as_me:2380: result: $ac_cv_func_socket" >&5
2381 echo "${ECHO_T}$ac_cv_func_socket" >&6
2382 if test $ac_cv_func_socket = yes; then
2383   :
2384 else
2385
2386 echo "$as_me:2386: checking for socket in -lsocket" >&5
2387 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
2388 if test "${ac_cv_lib_socket_socket+set}" = set; then
2389   echo $ECHO_N "(cached) $ECHO_C" >&6
2390 else
2391   ac_check_lib_save_LIBS=$LIBS
2392 LIBS="-lsocket  $LIBS"
2393 cat >conftest.$ac_ext <<_ACEOF
2394 #line 2394 "configure"
2395 #include "confdefs.h"
2396
2397 /* Override any gcc2 internal prototype to avoid an error.  */
2398 #ifdef __cplusplus
2399 extern "C"
2400 #endif
2401 /* We use char because int might match the return type of a gcc2
2402    builtin and then its argument prototype would still apply.  */
2403 char socket ();
2404 int
2405 main ()
2406 {
2407 socket ();
2408   ;
2409   return 0;
2410 }
2411 _ACEOF
2412 rm -f conftest.$ac_objext conftest$ac_exeext
2413 if { (eval echo "$as_me:2413: \"$ac_link\"") >&5
2414   (eval $ac_link) 2>&5
2415   ac_status=$?
2416   echo "$as_me:2416: \$? = $ac_status" >&5
2417   (exit $ac_status); } &&
2418          { ac_try='test -s conftest$ac_exeext'
2419   { (eval echo "$as_me:2419: \"$ac_try\"") >&5
2420   (eval $ac_try) 2>&5
2421   ac_status=$?
2422   echo "$as_me:2422: \$? = $ac_status" >&5
2423   (exit $ac_status); }; }; then
2424   ac_cv_lib_socket_socket=yes
2425 else
2426   echo "$as_me: failed program was:" >&5
2427 cat conftest.$ac_ext >&5
2428 ac_cv_lib_socket_socket=no
2429 fi
2430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2431 LIBS=$ac_check_lib_save_LIBS
2432 fi
2433 echo "$as_me:2433: result: $ac_cv_lib_socket_socket" >&5
2434 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
2435 if test $ac_cv_lib_socket_socket = yes; then
2436   cat >>confdefs.h <<EOF
2437 #define HAVE_LIBSOCKET 1
2438 EOF
2439
2440   LIBS="-lsocket $LIBS"
2441
2442 else
2443   echo "$as_me:2443: checking for socket in -lsocket" >&5
2444 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
2445 if test "${ac_cv_lib_socket_socket+set}" = set; then
2446   echo $ECHO_N "(cached) $ECHO_C" >&6
2447 else
2448   ac_check_lib_save_LIBS=$LIBS
2449 LIBS="-lsocket -lnsl $LIBS"
2450 cat >conftest.$ac_ext <<_ACEOF
2451 #line 2451 "configure"
2452 #include "confdefs.h"
2453
2454 /* Override any gcc2 internal prototype to avoid an error.  */
2455 #ifdef __cplusplus
2456 extern "C"
2457 #endif
2458 /* We use char because int might match the return type of a gcc2
2459    builtin and then its argument prototype would still apply.  */
2460 char socket ();
2461 int
2462 main ()
2463 {
2464 socket ();
2465   ;
2466   return 0;
2467 }
2468 _ACEOF
2469 rm -f conftest.$ac_objext conftest$ac_exeext
2470 if { (eval echo "$as_me:2470: \"$ac_link\"") >&5
2471   (eval $ac_link) 2>&5
2472   ac_status=$?
2473   echo "$as_me:2473: \$? = $ac_status" >&5
2474   (exit $ac_status); } &&
2475          { ac_try='test -s conftest$ac_exeext'
2476   { (eval echo "$as_me:2476: \"$ac_try\"") >&5
2477   (eval $ac_try) 2>&5
2478   ac_status=$?
2479   echo "$as_me:2479: \$? = $ac_status" >&5
2480   (exit $ac_status); }; }; then
2481   ac_cv_lib_socket_socket=yes
2482 else
2483   echo "$as_me: failed program was:" >&5
2484 cat conftest.$ac_ext >&5
2485 ac_cv_lib_socket_socket=no
2486 fi
2487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2488 LIBS=$ac_check_lib_save_LIBS
2489 fi
2490 echo "$as_me:2490: result: $ac_cv_lib_socket_socket" >&5
2491 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
2492 if test $ac_cv_lib_socket_socket = yes; then
2493   LIBS="-lsocket -lnsl $LIBS"
2494 fi
2495
2496 fi
2497
2498 fi
2499
2500 ac_ext=c
2501 ac_cpp='$CPP $CPPFLAGS'
2502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2505 echo "$as_me:2505: checking how to run the C preprocessor" >&5
2506 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2507 # On Suns, sometimes $CPP names a directory.
2508 if test -n "$CPP" && test -d "$CPP"; then
2509   CPP=
2510 fi
2511 if test -z "$CPP"; then
2512   if test "${ac_cv_prog_CPP+set}" = set; then
2513   echo $ECHO_N "(cached) $ECHO_C" >&6
2514 else
2515       # Double quotes because CPP needs to be expanded
2516     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2517     do
2518       ac_preproc_ok=false
2519 for ac_c_preproc_warn_flag in '' yes
2520 do
2521   # Use a header file that comes with gcc, so configuring glibc
2522   # with a fresh cross-compiler works.
2523   # On the NeXT, cc -E runs the code through the compiler's parser,
2524   # not just through cpp. "Syntax error" is here to catch this case.
2525   cat >conftest.$ac_ext <<_ACEOF
2526 #line 2526 "configure"
2527 #include "confdefs.h"
2528 #include <assert.h>
2529                      Syntax error
2530 _ACEOF
2531 if { (eval echo "$as_me:2531: \"$ac_cpp conftest.$ac_ext\"") >&5
2532   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2533   ac_status=$?
2534   egrep -v '^ *\+' conftest.er1 >conftest.err
2535   rm -f conftest.er1
2536   cat conftest.err >&5
2537   echo "$as_me:2537: \$? = $ac_status" >&5
2538   (exit $ac_status); } >/dev/null; then
2539   if test -s conftest.err; then
2540     ac_cpp_err=$ac_c_preproc_warn_flag
2541   else
2542     ac_cpp_err=
2543   fi
2544 else
2545   ac_cpp_err=yes
2546 fi
2547 if test -z "$ac_cpp_err"; then
2548   :
2549 else
2550   echo "$as_me: failed program was:" >&5
2551   cat conftest.$ac_ext >&5
2552   # Broken: fails on valid input.
2553 continue
2554 fi
2555 rm -f conftest.err conftest.$ac_ext
2556
2557   # OK, works on sane cases.  Now check whether non-existent headers
2558   # can be detected and how.
2559   cat >conftest.$ac_ext <<_ACEOF
2560 #line 2560 "configure"
2561 #include "confdefs.h"
2562 #include <ac_nonexistent.h>
2563 _ACEOF
2564 if { (eval echo "$as_me:2564: \"$ac_cpp conftest.$ac_ext\"") >&5
2565   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2566   ac_status=$?
2567   egrep -v '^ *\+' conftest.er1 >conftest.err
2568   rm -f conftest.er1
2569   cat conftest.err >&5
2570   echo "$as_me:2570: \$? = $ac_status" >&5
2571   (exit $ac_status); } >/dev/null; then
2572   if test -s conftest.err; then
2573     ac_cpp_err=$ac_c_preproc_warn_flag
2574   else
2575     ac_cpp_err=
2576   fi
2577 else
2578   ac_cpp_err=yes
2579 fi
2580 if test -z "$ac_cpp_err"; then
2581   # Broken: success on invalid input.
2582 continue
2583 else
2584   echo "$as_me: failed program was:" >&5
2585   cat conftest.$ac_ext >&5
2586   # Passes both tests.
2587 ac_preproc_ok=:
2588 break
2589 fi
2590 rm -f conftest.err conftest.$ac_ext
2591
2592 done
2593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2594 rm -f conftest.err conftest.$ac_ext
2595 if $ac_preproc_ok; then
2596   break
2597 fi
2598
2599     done
2600     ac_cv_prog_CPP=$CPP
2601
2602 fi
2603   CPP=$ac_cv_prog_CPP
2604 else
2605   ac_cv_prog_CPP=$CPP
2606 fi
2607 echo "$as_me:2607: result: $CPP" >&5
2608 echo "${ECHO_T}$CPP" >&6
2609 ac_preproc_ok=false
2610 for ac_c_preproc_warn_flag in '' yes
2611 do
2612   # Use a header file that comes with gcc, so configuring glibc
2613   # with a fresh cross-compiler works.
2614   # On the NeXT, cc -E runs the code through the compiler's parser,
2615   # not just through cpp. "Syntax error" is here to catch this case.
2616   cat >conftest.$ac_ext <<_ACEOF
2617 #line 2617 "configure"
2618 #include "confdefs.h"
2619 #include <assert.h>
2620                      Syntax error
2621 _ACEOF
2622 if { (eval echo "$as_me:2622: \"$ac_cpp conftest.$ac_ext\"") >&5
2623   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2624   ac_status=$?
2625   egrep -v '^ *\+' conftest.er1 >conftest.err
2626   rm -f conftest.er1
2627   cat conftest.err >&5
2628   echo "$as_me:2628: \$? = $ac_status" >&5
2629   (exit $ac_status); } >/dev/null; then
2630   if test -s conftest.err; then
2631     ac_cpp_err=$ac_c_preproc_warn_flag
2632   else
2633     ac_cpp_err=
2634   fi
2635 else
2636   ac_cpp_err=yes
2637 fi
2638 if test -z "$ac_cpp_err"; then
2639   :
2640 else
2641   echo "$as_me: failed program was:" >&5
2642   cat conftest.$ac_ext >&5
2643   # Broken: fails on valid input.
2644 continue
2645 fi
2646 rm -f conftest.err conftest.$ac_ext
2647
2648   # OK, works on sane cases.  Now check whether non-existent headers
2649   # can be detected and how.
2650   cat >conftest.$ac_ext <<_ACEOF
2651 #line 2651 "configure"
2652 #include "confdefs.h"
2653 #include <ac_nonexistent.h>
2654 _ACEOF
2655 if { (eval echo "$as_me:2655: \"$ac_cpp conftest.$ac_ext\"") >&5
2656   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2657   ac_status=$?
2658   egrep -v '^ *\+' conftest.er1 >conftest.err
2659   rm -f conftest.er1
2660   cat conftest.err >&5
2661   echo "$as_me:2661: \$? = $ac_status" >&5
2662   (exit $ac_status); } >/dev/null; then
2663   if test -s conftest.err; then
2664     ac_cpp_err=$ac_c_preproc_warn_flag
2665   else
2666     ac_cpp_err=
2667   fi
2668 else
2669   ac_cpp_err=yes
2670 fi
2671 if test -z "$ac_cpp_err"; then
2672   # Broken: success on invalid input.
2673 continue
2674 else
2675   echo "$as_me: failed program was:" >&5
2676   cat conftest.$ac_ext >&5
2677   # Passes both tests.
2678 ac_preproc_ok=:
2679 break
2680 fi
2681 rm -f conftest.err conftest.$ac_ext
2682
2683 done
2684 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2685 rm -f conftest.err conftest.$ac_ext
2686 if $ac_preproc_ok; then
2687   :
2688 else
2689   { { echo "$as_me:2689: error: C preprocessor \"$CPP\" fails sanity check" >&5
2690 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2691    { (exit 1); exit 1; }; }
2692 fi
2693
2694 ac_ext=c
2695 ac_cpp='$CPP $CPPFLAGS'
2696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699
2700 echo "$as_me:2700: checking for ANSI C header files" >&5
2701 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2702 if test "${ac_cv_header_stdc+set}" = set; then
2703   echo $ECHO_N "(cached) $ECHO_C" >&6
2704 else
2705   cat >conftest.$ac_ext <<_ACEOF
2706 #line 2706 "configure"
2707 #include "confdefs.h"
2708 #include <stdlib.h>
2709 #include <stdarg.h>
2710 #include <string.h>
2711 #include <float.h>
2712
2713 _ACEOF
2714 if { (eval echo "$as_me:2714: \"$ac_cpp conftest.$ac_ext\"") >&5
2715   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2716   ac_status=$?
2717   egrep -v '^ *\+' conftest.er1 >conftest.err
2718   rm -f conftest.er1
2719   cat conftest.err >&5
2720   echo "$as_me:2720: \$? = $ac_status" >&5
2721   (exit $ac_status); } >/dev/null; then
2722   if test -s conftest.err; then
2723     ac_cpp_err=$ac_c_preproc_warn_flag
2724   else
2725     ac_cpp_err=
2726   fi
2727 else
2728   ac_cpp_err=yes
2729 fi
2730 if test -z "$ac_cpp_err"; then
2731   ac_cv_header_stdc=yes
2732 else
2733   echo "$as_me: failed program was:" >&5
2734   cat conftest.$ac_ext >&5
2735   ac_cv_header_stdc=no
2736 fi
2737 rm -f conftest.err conftest.$ac_ext
2738
2739 if test $ac_cv_header_stdc = yes; then
2740   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2741   cat >conftest.$ac_ext <<_ACEOF
2742 #line 2742 "configure"
2743 #include "confdefs.h"
2744 #include <string.h>
2745
2746 _ACEOF
2747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2748   egrep "memchr" >/dev/null 2>&1; then
2749   :
2750 else
2751   ac_cv_header_stdc=no
2752 fi
2753 rm -f conftest*
2754
2755 fi
2756
2757 if test $ac_cv_header_stdc = yes; then
2758   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2759   cat >conftest.$ac_ext <<_ACEOF
2760 #line 2760 "configure"
2761 #include "confdefs.h"
2762 #include <stdlib.h>
2763
2764 _ACEOF
2765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2766   egrep "free" >/dev/null 2>&1; then
2767   :
2768 else
2769   ac_cv_header_stdc=no
2770 fi
2771 rm -f conftest*
2772
2773 fi
2774
2775 if test $ac_cv_header_stdc = yes; then
2776   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2777   if test "$cross_compiling" = yes; then
2778   :
2779 else
2780   cat >conftest.$ac_ext <<_ACEOF
2781 #line 2781 "configure"
2782 #include "confdefs.h"
2783 #include <ctype.h>
2784 #if ((' ' & 0x0FF) == 0x020)
2785 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2786 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2787 #else
2788 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2789                      || ('j' <= (c) && (c) <= 'r') \
2790                      || ('s' <= (c) && (c) <= 'z'))
2791 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2792 #endif
2793
2794 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2795 int
2796 main ()
2797 {
2798   int i;
2799   for (i = 0; i < 256; i++)
2800     if (XOR (islower (i), ISLOWER (i))
2801         || toupper (i) != TOUPPER (i))
2802       exit(2);
2803   exit (0);
2804 }
2805 _ACEOF
2806 rm -f conftest$ac_exeext
2807 if { (eval echo "$as_me:2807: \"$ac_link\"") >&5
2808   (eval $ac_link) 2>&5
2809   ac_status=$?
2810   echo "$as_me:2810: \$? = $ac_status" >&5
2811   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2812   { (eval echo "$as_me:2812: \"$ac_try\"") >&5
2813   (eval $ac_try) 2>&5
2814   ac_status=$?
2815   echo "$as_me:2815: \$? = $ac_status" >&5
2816   (exit $ac_status); }; }; then
2817   :
2818 else
2819   echo "$as_me: program exited with status $ac_status" >&5
2820 echo "$as_me: failed program was:" >&5
2821 cat conftest.$ac_ext >&5
2822 ac_cv_header_stdc=no
2823 fi
2824 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2825 fi
2826 fi
2827 fi
2828 echo "$as_me:2828: result: $ac_cv_header_stdc" >&5
2829 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2830 if test $ac_cv_header_stdc = yes; then
2831
2832 cat >>confdefs.h <<\EOF
2833 #define STDC_HEADERS 1
2834 EOF
2835
2836 fi
2837
2838 for ac_header in poll.h sys/devpoll.h sys/event.h
2839 do
2840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2841 echo "$as_me:2841: checking for $ac_header" >&5
2842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2844   echo $ECHO_N "(cached) $ECHO_C" >&6
2845 else
2846   cat >conftest.$ac_ext <<_ACEOF
2847 #line 2847 "configure"
2848 #include "confdefs.h"
2849 #include <$ac_header>
2850 _ACEOF
2851 if { (eval echo "$as_me:2851: \"$ac_cpp conftest.$ac_ext\"") >&5
2852   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2853   ac_status=$?
2854   egrep -v '^ *\+' conftest.er1 >conftest.err
2855   rm -f conftest.er1
2856   cat conftest.err >&5
2857   echo "$as_me:2857: \$? = $ac_status" >&5
2858   (exit $ac_status); } >/dev/null; then
2859   if test -s conftest.err; then
2860     ac_cpp_err=$ac_c_preproc_warn_flag
2861   else
2862     ac_cpp_err=
2863   fi
2864 else
2865   ac_cpp_err=yes
2866 fi
2867 if test -z "$ac_cpp_err"; then
2868   eval "$as_ac_Header=yes"
2869 else
2870   echo "$as_me: failed program was:" >&5
2871   cat conftest.$ac_ext >&5
2872   eval "$as_ac_Header=no"
2873 fi
2874 rm -f conftest.err conftest.$ac_ext
2875 fi
2876 echo "$as_me:2876: result: `eval echo '${'$as_ac_Header'}'`" >&5
2877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2879   cat >>confdefs.h <<EOF
2880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2881 EOF
2882
2883 fi
2884 done
2885
2886 echo "$as_me:2886: checking whether byte ordering is bigendian" >&5
2887 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2888 if test "${ac_cv_c_bigendian+set}" = set; then
2889   echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891   ac_cv_c_bigendian=unknown
2892 # See if sys/param.h defines the BYTE_ORDER macro.
2893 cat >conftest.$ac_ext <<_ACEOF
2894 #line 2894 "configure"
2895 #include "confdefs.h"
2896 #include <sys/types.h>
2897 #include <sys/param.h>
2898
2899 int
2900 main ()
2901 {
2902 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2903  bogus endian macros
2904 #endif
2905
2906   ;
2907   return 0;
2908 }
2909 _ACEOF
2910 rm -f conftest.$ac_objext
2911 if { (eval echo "$as_me:2911: \"$ac_compile\"") >&5
2912   (eval $ac_compile) 2>&5
2913   ac_status=$?
2914   echo "$as_me:2914: \$? = $ac_status" >&5
2915   (exit $ac_status); } &&
2916          { ac_try='test -s conftest.$ac_objext'
2917   { (eval echo "$as_me:2917: \"$ac_try\"") >&5
2918   (eval $ac_try) 2>&5
2919   ac_status=$?
2920   echo "$as_me:2920: \$? = $ac_status" >&5
2921   (exit $ac_status); }; }; then
2922   # It does; now see whether it defined to BIG_ENDIAN or not.
2923 cat >conftest.$ac_ext <<_ACEOF
2924 #line 2924 "configure"
2925 #include "confdefs.h"
2926 #include <sys/types.h>
2927 #include <sys/param.h>
2928
2929 int
2930 main ()
2931 {
2932 #if BYTE_ORDER != BIG_ENDIAN
2933  not big endian
2934 #endif
2935
2936   ;
2937   return 0;
2938 }
2939 _ACEOF
2940 rm -f conftest.$ac_objext
2941 if { (eval echo "$as_me:2941: \"$ac_compile\"") >&5
2942   (eval $ac_compile) 2>&5
2943   ac_status=$?
2944   echo "$as_me:2944: \$? = $ac_status" >&5
2945   (exit $ac_status); } &&
2946          { ac_try='test -s conftest.$ac_objext'
2947   { (eval echo "$as_me:2947: \"$ac_try\"") >&5
2948   (eval $ac_try) 2>&5
2949   ac_status=$?
2950   echo "$as_me:2950: \$? = $ac_status" >&5
2951   (exit $ac_status); }; }; then
2952   ac_cv_c_bigendian=yes
2953 else
2954   echo "$as_me: failed program was:" >&5
2955 cat conftest.$ac_ext >&5
2956 ac_cv_c_bigendian=no
2957 fi
2958 rm -f conftest.$ac_objext conftest.$ac_ext
2959 else
2960   echo "$as_me: failed program was:" >&5
2961 cat conftest.$ac_ext >&5
2962 fi
2963 rm -f conftest.$ac_objext conftest.$ac_ext
2964 if test $ac_cv_c_bigendian = unknown; then
2965 if test "$cross_compiling" = yes; then
2966   { { echo "$as_me:2966: error: cannot run test program while cross compiling" >&5
2967 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
2968    { (exit 1); exit 1; }; }
2969 else
2970   cat >conftest.$ac_ext <<_ACEOF
2971 #line 2971 "configure"
2972 #include "confdefs.h"
2973 int
2974 main ()
2975 {
2976   /* Are we little or big endian?  From Harbison&Steele.  */
2977   union
2978   {
2979     long l;
2980     char c[sizeof (long)];
2981   } u;
2982   u.l = 1;
2983   exit (u.c[sizeof (long) - 1] == 1);
2984 }
2985 _ACEOF
2986 rm -f conftest$ac_exeext
2987 if { (eval echo "$as_me:2987: \"$ac_link\"") >&5
2988   (eval $ac_link) 2>&5
2989   ac_status=$?
2990   echo "$as_me:2990: \$? = $ac_status" >&5
2991   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2992   { (eval echo "$as_me:2992: \"$ac_try\"") >&5
2993   (eval $ac_try) 2>&5
2994   ac_status=$?
2995   echo "$as_me:2995: \$? = $ac_status" >&5
2996   (exit $ac_status); }; }; then
2997   ac_cv_c_bigendian=no
2998 else
2999   echo "$as_me: program exited with status $ac_status" >&5
3000 echo "$as_me: failed program was:" >&5
3001 cat conftest.$ac_ext >&5
3002 ac_cv_c_bigendian=yes
3003 fi
3004 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3005 fi
3006 fi
3007 fi
3008 echo "$as_me:3008: result: $ac_cv_c_bigendian" >&5
3009 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3010 if test $ac_cv_c_bigendian = yes; then
3011
3012 cat >>confdefs.h <<\EOF
3013 #define WORDS_BIGENDIAN 1
3014 EOF
3015
3016 fi
3017
3018 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3019
3020 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3021                   inttypes.h stdint.h unistd.h
3022 do
3023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3024 echo "$as_me:3024: checking for $ac_header" >&5
3025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3027   echo $ECHO_N "(cached) $ECHO_C" >&6
3028 else
3029   cat >conftest.$ac_ext <<_ACEOF
3030 #line 3030 "configure"
3031 #include "confdefs.h"
3032 $ac_includes_default
3033 #include <$ac_header>
3034 _ACEOF
3035 rm -f conftest.$ac_objext
3036 if { (eval echo "$as_me:3036: \"$ac_compile\"") >&5
3037   (eval $ac_compile) 2>&5
3038   ac_status=$?
3039   echo "$as_me:3039: \$? = $ac_status" >&5
3040   (exit $ac_status); } &&
3041          { ac_try='test -s conftest.$ac_objext'
3042   { (eval echo "$as_me:3042: \"$ac_try\"") >&5
3043   (eval $ac_try) 2>&5
3044   ac_status=$?
3045   echo "$as_me:3045: \$? = $ac_status" >&5
3046   (exit $ac_status); }; }; then
3047   eval "$as_ac_Header=yes"
3048 else
3049   echo "$as_me: failed program was:" >&5
3050 cat conftest.$ac_ext >&5
3051 eval "$as_ac_Header=no"
3052 fi
3053 rm -f conftest.$ac_objext conftest.$ac_ext
3054 fi
3055 echo "$as_me:3055: result: `eval echo '${'$as_ac_Header'}'`" >&5
3056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3058   cat >>confdefs.h <<EOF
3059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3060 EOF
3061
3062 fi
3063 done
3064
3065 echo "$as_me:3065: checking for size_t" >&5
3066 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3067 if test "${ac_cv_type_size_t+set}" = set; then
3068   echo $ECHO_N "(cached) $ECHO_C" >&6
3069 else
3070   cat >conftest.$ac_ext <<_ACEOF
3071 #line 3071 "configure"
3072 #include "confdefs.h"
3073 $ac_includes_default
3074 int
3075 main ()
3076 {
3077 if ((size_t *) 0)
3078   return 0;
3079 if (sizeof (size_t))
3080   return 0;
3081   ;
3082   return 0;
3083 }
3084 _ACEOF
3085 rm -f conftest.$ac_objext
3086 if { (eval echo "$as_me:3086: \"$ac_compile\"") >&5
3087   (eval $ac_compile) 2>&5
3088   ac_status=$?
3089   echo "$as_me:3089: \$? = $ac_status" >&5
3090   (exit $ac_status); } &&
3091          { ac_try='test -s conftest.$ac_objext'
3092   { (eval echo "$as_me:3092: \"$ac_try\"") >&5
3093   (eval $ac_try) 2>&5
3094   ac_status=$?
3095   echo "$as_me:3095: \$? = $ac_status" >&5
3096   (exit $ac_status); }; }; then
3097   ac_cv_type_size_t=yes
3098 else
3099   echo "$as_me: failed program was:" >&5
3100 cat conftest.$ac_ext >&5
3101 ac_cv_type_size_t=no
3102 fi
3103 rm -f conftest.$ac_objext conftest.$ac_ext
3104 fi
3105 echo "$as_me:3105: result: $ac_cv_type_size_t" >&5
3106 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3107 if test $ac_cv_type_size_t = yes; then
3108   :
3109 else
3110
3111 cat >>confdefs.h <<EOF
3112 #define size_t unsigned
3113 EOF
3114
3115 fi
3116
3117 echo "$as_me:3117: checking whether time.h and sys/time.h may both be included" >&5
3118 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3119 if test "${ac_cv_header_time+set}" = set; then
3120   echo $ECHO_N "(cached) $ECHO_C" >&6
3121 else
3122   cat >conftest.$ac_ext <<_ACEOF
3123 #line 3123 "configure"
3124 #include "confdefs.h"
3125 #include <sys/types.h>
3126 #include <sys/time.h>
3127 #include <time.h>
3128
3129 int
3130 main ()
3131 {
3132 if ((struct tm *) 0)
3133 return 0;
3134   ;
3135   return 0;
3136 }
3137 _ACEOF
3138 rm -f conftest.$ac_objext
3139 if { (eval echo "$as_me:3139: \"$ac_compile\"") >&5
3140   (eval $ac_compile) 2>&5
3141   ac_status=$?
3142   echo "$as_me:3142: \$? = $ac_status" >&5
3143   (exit $ac_status); } &&
3144          { ac_try='test -s conftest.$ac_objext'
3145   { (eval echo "$as_me:3145: \"$ac_try\"") >&5
3146   (eval $ac_try) 2>&5
3147   ac_status=$?
3148   echo "$as_me:3148: \$? = $ac_status" >&5
3149   (exit $ac_status); }; }; then
3150   ac_cv_header_time=yes
3151 else
3152   echo "$as_me: failed program was:" >&5
3153 cat conftest.$ac_ext >&5
3154 ac_cv_header_time=no
3155 fi
3156 rm -f conftest.$ac_objext conftest.$ac_ext
3157 fi
3158 echo "$as_me:3158: result: $ac_cv_header_time" >&5
3159 echo "${ECHO_T}$ac_cv_header_time" >&6
3160 if test $ac_cv_header_time = yes; then
3161
3162 cat >>confdefs.h <<\EOF
3163 #define TIME_WITH_SYS_TIME 1
3164 EOF
3165
3166 fi
3167
3168 echo "$as_me:3168: checking whether struct tm is in sys/time.h or time.h" >&5
3169 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3170 if test "${ac_cv_struct_tm+set}" = set; then
3171   echo $ECHO_N "(cached) $ECHO_C" >&6
3172 else
3173   cat >conftest.$ac_ext <<_ACEOF
3174 #line 3174 "configure"
3175 #include "confdefs.h"
3176 #include <sys/types.h>
3177 #include <time.h>
3178
3179 int
3180 main ()
3181 {
3182 struct tm *tp; tp->tm_sec;
3183   ;
3184   return 0;
3185 }
3186 _ACEOF
3187 rm -f conftest.$ac_objext
3188 if { (eval echo "$as_me:3188: \"$ac_compile\"") >&5
3189   (eval $ac_compile) 2>&5
3190   ac_status=$?
3191   echo "$as_me:3191: \$? = $ac_status" >&5
3192   (exit $ac_status); } &&
3193          { ac_try='test -s conftest.$ac_objext'
3194   { (eval echo "$as_me:3194: \"$ac_try\"") >&5
3195   (eval $ac_try) 2>&5
3196   ac_status=$?
3197   echo "$as_me:3197: \$? = $ac_status" >&5
3198   (exit $ac_status); }; }; then
3199   ac_cv_struct_tm=time.h
3200 else
3201   echo "$as_me: failed program was:" >&5
3202 cat conftest.$ac_ext >&5
3203 ac_cv_struct_tm=sys/time.h
3204 fi
3205 rm -f conftest.$ac_objext conftest.$ac_ext
3206 fi
3207 echo "$as_me:3207: result: $ac_cv_struct_tm" >&5
3208 echo "${ECHO_T}$ac_cv_struct_tm" >&6
3209 if test $ac_cv_struct_tm = sys/time.h; then
3210
3211 cat >>confdefs.h <<\EOF
3212 #define TM_IN_SYS_TIME 1
3213 EOF
3214
3215 fi
3216
3217 echo "$as_me:3217: checking for uid_t in sys/types.h" >&5
3218 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
3219 if test "${ac_cv_type_uid_t+set}" = set; then
3220   echo $ECHO_N "(cached) $ECHO_C" >&6
3221 else
3222   cat >conftest.$ac_ext <<_ACEOF
3223 #line 3223 "configure"
3224 #include "confdefs.h"
3225 #include <sys/types.h>
3226
3227 _ACEOF
3228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3229   egrep "uid_t" >/dev/null 2>&1; then
3230   ac_cv_type_uid_t=yes
3231 else
3232   ac_cv_type_uid_t=no
3233 fi
3234 rm -f conftest*
3235
3236 fi
3237 echo "$as_me:3237: result: $ac_cv_type_uid_t" >&5
3238 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
3239 if test $ac_cv_type_uid_t = no; then
3240
3241 cat >>confdefs.h <<\EOF
3242 #define uid_t int
3243 EOF
3244
3245 cat >>confdefs.h <<\EOF
3246 #define gid_t int
3247 EOF
3248
3249 fi
3250
3251 echo "$as_me:3251: checking for short" >&5
3252 echo $ECHO_N "checking for short... $ECHO_C" >&6
3253 if test "${ac_cv_type_short+set}" = set; then
3254   echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256   cat >conftest.$ac_ext <<_ACEOF
3257 #line 3257 "configure"
3258 #include "confdefs.h"
3259 $ac_includes_default
3260 int
3261 main ()
3262 {
3263 if ((short *) 0)
3264   return 0;
3265 if (sizeof (short))
3266   return 0;
3267   ;
3268   return 0;
3269 }
3270 _ACEOF
3271 rm -f conftest.$ac_objext
3272 if { (eval echo "$as_me:3272: \"$ac_compile\"") >&5
3273   (eval $ac_compile) 2>&5
3274   ac_status=$?
3275   echo "$as_me:3275: \$? = $ac_status" >&5
3276   (exit $ac_status); } &&
3277          { ac_try='test -s conftest.$ac_objext'
3278   { (eval echo "$as_me:3278: \"$ac_try\"") >&5
3279   (eval $ac_try) 2>&5
3280   ac_status=$?
3281   echo "$as_me:3281: \$? = $ac_status" >&5
3282   (exit $ac_status); }; }; then
3283   ac_cv_type_short=yes
3284 else
3285   echo "$as_me: failed program was:" >&5
3286 cat conftest.$ac_ext >&5
3287 ac_cv_type_short=no
3288 fi
3289 rm -f conftest.$ac_objext conftest.$ac_ext
3290 fi
3291 echo "$as_me:3291: result: $ac_cv_type_short" >&5
3292 echo "${ECHO_T}$ac_cv_type_short" >&6
3293
3294 echo "$as_me:3294: checking size of short" >&5
3295 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3296 if test "${ac_cv_sizeof_short+set}" = set; then
3297   echo $ECHO_N "(cached) $ECHO_C" >&6
3298 else
3299   if test "$ac_cv_type_short" = yes; then
3300   if test "$cross_compiling" = yes; then
3301   # Depending upon the size, compute the lo and hi bounds.
3302 cat >conftest.$ac_ext <<_ACEOF
3303 #line 3303 "configure"
3304 #include "confdefs.h"
3305 $ac_includes_default
3306 int
3307 main ()
3308 {
3309 int _array_ [1 - 2 * !((sizeof (short)) >= 0)]
3310   ;
3311   return 0;
3312 }
3313 _ACEOF
3314 rm -f conftest.$ac_objext
3315 if { (eval echo "$as_me:3315: \"$ac_compile\"") >&5
3316   (eval $ac_compile) 2>&5
3317   ac_status=$?
3318   echo "$as_me:3318: \$? = $ac_status" >&5
3319   (exit $ac_status); } &&
3320          { ac_try='test -s conftest.$ac_objext'
3321   { (eval echo "$as_me:3321: \"$ac_try\"") >&5
3322   (eval $ac_try) 2>&5
3323   ac_status=$?
3324   echo "$as_me:3324: \$? = $ac_status" >&5
3325   (exit $ac_status); }; }; then
3326   ac_lo=0 ac_mid=0
3327   while :; do
3328     cat >conftest.$ac_ext <<_ACEOF
3329 #line 3329 "configure"
3330 #include "confdefs.h"
3331 $ac_includes_default
3332 int
3333 main ()
3334 {
3335 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
3336   ;
3337   return 0;
3338 }
3339 _ACEOF
3340 rm -f conftest.$ac_objext
3341 if { (eval echo "$as_me:3341: \"$ac_compile\"") >&5
3342   (eval $ac_compile) 2>&5
3343   ac_status=$?
3344   echo "$as_me:3344: \$? = $ac_status" >&5
3345   (exit $ac_status); } &&
3346          { ac_try='test -s conftest.$ac_objext'
3347   { (eval echo "$as_me:3347: \"$ac_try\"") >&5
3348   (eval $ac_try) 2>&5
3349   ac_status=$?
3350   echo "$as_me:3350: \$? = $ac_status" >&5
3351   (exit $ac_status); }; }; then
3352   ac_hi=$ac_mid; break
3353 else
3354   echo "$as_me: failed program was:" >&5
3355 cat conftest.$ac_ext >&5
3356 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3357 fi
3358 rm -f conftest.$ac_objext conftest.$ac_ext
3359   done
3360 else
3361   echo "$as_me: failed program was:" >&5
3362 cat conftest.$ac_ext >&5
3363 ac_hi=-1 ac_mid=-1
3364   while :; do
3365     cat >conftest.$ac_ext <<_ACEOF
3366 #line 3366 "configure"
3367 #include "confdefs.h"
3368 $ac_includes_default
3369 int
3370 main ()
3371 {
3372 int _array_ [1 - 2 * !((sizeof (short)) >= $ac_mid)]
3373   ;
3374   return 0;
3375 }
3376 _ACEOF
3377 rm -f conftest.$ac_objext
3378 if { (eval echo "$as_me:3378: \"$ac_compile\"") >&5
3379   (eval $ac_compile) 2>&5
3380   ac_status=$?
3381   echo "$as_me:3381: \$? = $ac_status" >&5
3382   (exit $ac_status); } &&
3383          { ac_try='test -s conftest.$ac_objext'
3384   { (eval echo "$as_me:3384: \"$ac_try\"") >&5
3385   (eval $ac_try) 2>&5
3386   ac_status=$?
3387   echo "$as_me:3387: \$? = $ac_status" >&5
3388   (exit $ac_status); }; }; then
3389   ac_lo=$ac_mid; break
3390 else
3391   echo "$as_me: failed program was:" >&5
3392 cat conftest.$ac_ext >&5
3393 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3394 fi
3395 rm -f conftest.$ac_objext conftest.$ac_ext
3396   done
3397 fi
3398 rm -f conftest.$ac_objext conftest.$ac_ext
3399 # Binary search between lo and hi bounds.
3400 while test "x$ac_lo" != "x$ac_hi"; do
3401   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3402   cat >conftest.$ac_ext <<_ACEOF
3403 #line 3403 "configure"
3404 #include "confdefs.h"
3405 $ac_includes_default
3406 int
3407 main ()
3408 {
3409 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
3410   ;
3411   return 0;
3412 }
3413 _ACEOF
3414 rm -f conftest.$ac_objext
3415 if { (eval echo "$as_me:3415: \"$ac_compile\"") >&5
3416   (eval $ac_compile) 2>&5
3417   ac_status=$?
3418   echo "$as_me:3418: \$? = $ac_status" >&5
3419   (exit $ac_status); } &&
3420          { ac_try='test -s conftest.$ac_objext'
3421   { (eval echo "$as_me:3421: \"$ac_try\"") >&5
3422   (eval $ac_try) 2>&5
3423   ac_status=$?
3424   echo "$as_me:3424: \$? = $ac_status" >&5
3425   (exit $ac_status); }; }; then
3426   ac_hi=$ac_mid
3427 else
3428   echo "$as_me: failed program was:" >&5
3429 cat conftest.$ac_ext >&5
3430 ac_lo=`expr $ac_mid + 1`
3431 fi
3432 rm -f conftest.$ac_objext conftest.$ac_ext
3433 done
3434 ac_cv_sizeof_short=$ac_lo
3435 else
3436   if test "$cross_compiling" = yes; then
3437   { { echo "$as_me:3437: error: cannot run test program while cross compiling" >&5
3438 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3439    { (exit 1); exit 1; }; }
3440 else
3441   cat >conftest.$ac_ext <<_ACEOF
3442 #line 3442 "configure"
3443 #include "confdefs.h"
3444 $ac_includes_default
3445 int
3446 main ()
3447 {
3448 FILE *f = fopen ("conftest.val", "w");
3449 if (!f)
3450   exit (1);
3451 fprintf (f, "%d", (sizeof (short)));
3452 fclose (f);
3453   ;
3454   return 0;
3455 }
3456 _ACEOF
3457 rm -f conftest$ac_exeext
3458 if { (eval echo "$as_me:3458: \"$ac_link\"") >&5
3459   (eval $ac_link) 2>&5
3460   ac_status=$?
3461   echo "$as_me:3461: \$? = $ac_status" >&5
3462   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3463   { (eval echo "$as_me:3463: \"$ac_try\"") >&5
3464   (eval $ac_try) 2>&5
3465   ac_status=$?
3466   echo "$as_me:3466: \$? = $ac_status" >&5
3467   (exit $ac_status); }; }; then
3468   ac_cv_sizeof_short=`cat conftest.val`
3469 else
3470   echo "$as_me: program exited with status $ac_status" >&5
3471 echo "$as_me: failed program was:" >&5
3472 cat conftest.$ac_ext >&5
3473 fi
3474 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3475 fi
3476 fi
3477 rm -f conftest.val
3478 else
3479   ac_cv_sizeof_short=0
3480 fi
3481 fi
3482 echo "$as_me:3482: result: $ac_cv_sizeof_short" >&5
3483 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3484 cat >>confdefs.h <<EOF
3485 #define SIZEOF_SHORT $ac_cv_sizeof_short
3486 EOF
3487
3488 echo "$as_me:3488: checking for int" >&5
3489 echo $ECHO_N "checking for int... $ECHO_C" >&6
3490 if test "${ac_cv_type_int+set}" = set; then
3491   echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493   cat >conftest.$ac_ext <<_ACEOF
3494 #line 3494 "configure"
3495 #include "confdefs.h"
3496 $ac_includes_default
3497 int
3498 main ()
3499 {
3500 if ((int *) 0)
3501   return 0;
3502 if (sizeof (int))
3503   return 0;
3504   ;
3505   return 0;
3506 }
3507 _ACEOF
3508 rm -f conftest.$ac_objext
3509 if { (eval echo "$as_me:3509: \"$ac_compile\"") >&5
3510   (eval $ac_compile) 2>&5
3511   ac_status=$?
3512   echo "$as_me:3512: \$? = $ac_status" >&5
3513   (exit $ac_status); } &&
3514          { ac_try='test -s conftest.$ac_objext'
3515   { (eval echo "$as_me:3515: \"$ac_try\"") >&5
3516   (eval $ac_try) 2>&5
3517   ac_status=$?
3518   echo "$as_me:3518: \$? = $ac_status" >&5
3519   (exit $ac_status); }; }; then
3520   ac_cv_type_int=yes
3521 else
3522   echo "$as_me: failed program was:" >&5
3523 cat conftest.$ac_ext >&5
3524 ac_cv_type_int=no
3525 fi
3526 rm -f conftest.$ac_objext conftest.$ac_ext
3527 fi
3528 echo "$as_me:3528: result: $ac_cv_type_int" >&5
3529 echo "${ECHO_T}$ac_cv_type_int" >&6
3530
3531 echo "$as_me:3531: checking size of int" >&5
3532 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3533 if test "${ac_cv_sizeof_int+set}" = set; then
3534   echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536   if test "$ac_cv_type_int" = yes; then
3537   if test "$cross_compiling" = yes; then
3538   # Depending upon the size, compute the lo and hi bounds.
3539 cat >conftest.$ac_ext <<_ACEOF
3540 #line 3540 "configure"
3541 #include "confdefs.h"
3542 $ac_includes_default
3543 int
3544 main ()
3545 {
3546 int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
3547   ;
3548   return 0;
3549 }
3550 _ACEOF
3551 rm -f conftest.$ac_objext
3552 if { (eval echo "$as_me:3552: \"$ac_compile\"") >&5
3553   (eval $ac_compile) 2>&5
3554   ac_status=$?
3555   echo "$as_me:3555: \$? = $ac_status" >&5
3556   (exit $ac_status); } &&
3557          { ac_try='test -s conftest.$ac_objext'
3558   { (eval echo "$as_me:3558: \"$ac_try\"") >&5
3559   (eval $ac_try) 2>&5
3560   ac_status=$?
3561   echo "$as_me:3561: \$? = $ac_status" >&5
3562   (exit $ac_status); }; }; then
3563   ac_lo=0 ac_mid=0
3564   while :; do
3565     cat >conftest.$ac_ext <<_ACEOF
3566 #line 3566 "configure"
3567 #include "confdefs.h"
3568 $ac_includes_default
3569 int
3570 main ()
3571 {
3572 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
3573   ;
3574   return 0;
3575 }
3576 _ACEOF
3577 rm -f conftest.$ac_objext
3578 if { (eval echo "$as_me:3578: \"$ac_compile\"") >&5
3579   (eval $ac_compile) 2>&5
3580   ac_status=$?
3581   echo "$as_me:3581: \$? = $ac_status" >&5
3582   (exit $ac_status); } &&
3583          { ac_try='test -s conftest.$ac_objext'
3584   { (eval echo "$as_me:3584: \"$ac_try\"") >&5
3585   (eval $ac_try) 2>&5
3586   ac_status=$?
3587   echo "$as_me:3587: \$? = $ac_status" >&5
3588   (exit $ac_status); }; }; then
3589   ac_hi=$ac_mid; break
3590 else
3591   echo "$as_me: failed program was:" >&5
3592 cat conftest.$ac_ext >&5
3593 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3594 fi
3595 rm -f conftest.$ac_objext conftest.$ac_ext
3596   done
3597 else
3598   echo "$as_me: failed program was:" >&5
3599 cat conftest.$ac_ext >&5
3600 ac_hi=-1 ac_mid=-1
3601   while :; do
3602     cat >conftest.$ac_ext <<_ACEOF
3603 #line 3603 "configure"
3604 #include "confdefs.h"
3605 $ac_includes_default
3606 int
3607 main ()
3608 {
3609 int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
3610   ;
3611   return 0;
3612 }
3613 _ACEOF
3614 rm -f conftest.$ac_objext
3615 if { (eval echo "$as_me:3615: \"$ac_compile\"") >&5
3616   (eval $ac_compile) 2>&5
3617   ac_status=$?
3618   echo "$as_me:3618: \$? = $ac_status" >&5
3619   (exit $ac_status); } &&
3620          { ac_try='test -s conftest.$ac_objext'
3621   { (eval echo "$as_me:3621: \"$ac_try\"") >&5
3622   (eval $ac_try) 2>&5
3623   ac_status=$?
3624   echo "$as_me:3624: \$? = $ac_status" >&5
3625   (exit $ac_status); }; }; then
3626   ac_lo=$ac_mid; break
3627 else
3628   echo "$as_me: failed program was:" >&5
3629 cat conftest.$ac_ext >&5
3630 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3631 fi
3632 rm -f conftest.$ac_objext conftest.$ac_ext
3633   done
3634 fi
3635 rm -f conftest.$ac_objext conftest.$ac_ext
3636 # Binary search between lo and hi bounds.
3637 while test "x$ac_lo" != "x$ac_hi"; do
3638   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3639   cat >conftest.$ac_ext <<_ACEOF
3640 #line 3640 "configure"
3641 #include "confdefs.h"
3642 $ac_includes_default
3643 int
3644 main ()
3645 {
3646 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
3647   ;
3648   return 0;
3649 }
3650 _ACEOF
3651 rm -f conftest.$ac_objext
3652 if { (eval echo "$as_me:3652: \"$ac_compile\"") >&5
3653   (eval $ac_compile) 2>&5
3654   ac_status=$?
3655   echo "$as_me:3655: \$? = $ac_status" >&5
3656   (exit $ac_status); } &&
3657          { ac_try='test -s conftest.$ac_objext'
3658   { (eval echo "$as_me:3658: \"$ac_try\"") >&5
3659   (eval $ac_try) 2>&5
3660   ac_status=$?
3661   echo "$as_me:3661: \$? = $ac_status" >&5
3662   (exit $ac_status); }; }; then
3663   ac_hi=$ac_mid
3664 else
3665   echo "$as_me: failed program was:" >&5
3666 cat conftest.$ac_ext >&5
3667 ac_lo=`expr $ac_mid + 1`
3668 fi
3669 rm -f conftest.$ac_objext conftest.$ac_ext
3670 done
3671 ac_cv_sizeof_int=$ac_lo
3672 else
3673   if test "$cross_compiling" = yes; then
3674   { { echo "$as_me:3674: error: cannot run test program while cross compiling" >&5
3675 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3676    { (exit 1); exit 1; }; }
3677 else
3678   cat >conftest.$ac_ext <<_ACEOF
3679 #line 3679 "configure"
3680 #include "confdefs.h"
3681 $ac_includes_default
3682 int
3683 main ()
3684 {
3685 FILE *f = fopen ("conftest.val", "w");
3686 if (!f)
3687   exit (1);
3688 fprintf (f, "%d", (sizeof (int)));
3689 fclose (f);
3690   ;
3691   return 0;
3692 }
3693 _ACEOF
3694 rm -f conftest$ac_exeext
3695 if { (eval echo "$as_me:3695: \"$ac_link\"") >&5
3696   (eval $ac_link) 2>&5
3697   ac_status=$?
3698   echo "$as_me:3698: \$? = $ac_status" >&5
3699   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3700   { (eval echo "$as_me:3700: \"$ac_try\"") >&5
3701   (eval $ac_try) 2>&5
3702   ac_status=$?
3703   echo "$as_me:3703: \$? = $ac_status" >&5
3704   (exit $ac_status); }; }; then
3705   ac_cv_sizeof_int=`cat conftest.val`
3706 else
3707   echo "$as_me: program exited with status $ac_status" >&5
3708 echo "$as_me: failed program was:" >&5
3709 cat conftest.$ac_ext >&5
3710 fi
3711 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3712 fi
3713 fi
3714 rm -f conftest.val
3715 else
3716   ac_cv_sizeof_int=0
3717 fi
3718 fi
3719 echo "$as_me:3719: result: $ac_cv_sizeof_int" >&5
3720 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3721 cat >>confdefs.h <<EOF
3722 #define SIZEOF_INT $ac_cv_sizeof_int
3723 EOF
3724
3725 echo "$as_me:3725: checking for long" >&5
3726 echo $ECHO_N "checking for long... $ECHO_C" >&6
3727 if test "${ac_cv_type_long+set}" = set; then
3728   echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730   cat >conftest.$ac_ext <<_ACEOF
3731 #line 3731 "configure"
3732 #include "confdefs.h"
3733 $ac_includes_default
3734 int
3735 main ()
3736 {
3737 if ((long *) 0)
3738   return 0;
3739 if (sizeof (long))
3740   return 0;
3741   ;
3742   return 0;
3743 }
3744 _ACEOF
3745 rm -f conftest.$ac_objext
3746 if { (eval echo "$as_me:3746: \"$ac_compile\"") >&5
3747   (eval $ac_compile) 2>&5
3748   ac_status=$?
3749   echo "$as_me:3749: \$? = $ac_status" >&5
3750   (exit $ac_status); } &&
3751          { ac_try='test -s conftest.$ac_objext'
3752   { (eval echo "$as_me:3752: \"$ac_try\"") >&5
3753   (eval $ac_try) 2>&5
3754   ac_status=$?
3755   echo "$as_me:3755: \$? = $ac_status" >&5
3756   (exit $ac_status); }; }; then
3757   ac_cv_type_long=yes
3758 else
3759   echo "$as_me: failed program was:" >&5
3760 cat conftest.$ac_ext >&5
3761 ac_cv_type_long=no
3762 fi
3763 rm -f conftest.$ac_objext conftest.$ac_ext
3764 fi
3765 echo "$as_me:3765: result: $ac_cv_type_long" >&5
3766 echo "${ECHO_T}$ac_cv_type_long" >&6
3767
3768 echo "$as_me:3768: checking size of long" >&5
3769 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3770 if test "${ac_cv_sizeof_long+set}" = set; then
3771   echo $ECHO_N "(cached) $ECHO_C" >&6
3772 else
3773   if test "$ac_cv_type_long" = yes; then
3774   if test "$cross_compiling" = yes; then
3775   # Depending upon the size, compute the lo and hi bounds.
3776 cat >conftest.$ac_ext <<_ACEOF
3777 #line 3777 "configure"
3778 #include "confdefs.h"
3779 $ac_includes_default
3780 int
3781 main ()
3782 {
3783 int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
3784   ;
3785   return 0;
3786 }
3787 _ACEOF
3788 rm -f conftest.$ac_objext
3789 if { (eval echo "$as_me:3789: \"$ac_compile\"") >&5
3790   (eval $ac_compile) 2>&5
3791   ac_status=$?
3792   echo "$as_me:3792: \$? = $ac_status" >&5
3793   (exit $ac_status); } &&
3794          { ac_try='test -s conftest.$ac_objext'
3795   { (eval echo "$as_me:3795: \"$ac_try\"") >&5
3796   (eval $ac_try) 2>&5
3797   ac_status=$?
3798   echo "$as_me:3798: \$? = $ac_status" >&5
3799   (exit $ac_status); }; }; then
3800   ac_lo=0 ac_mid=0
3801   while :; do
3802     cat >conftest.$ac_ext <<_ACEOF
3803 #line 3803 "configure"
3804 #include "confdefs.h"
3805 $ac_includes_default
3806 int
3807 main ()
3808 {
3809 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
3810   ;
3811   return 0;
3812 }
3813 _ACEOF
3814 rm -f conftest.$ac_objext
3815 if { (eval echo "$as_me:3815: \"$ac_compile\"") >&5
3816   (eval $ac_compile) 2>&5
3817   ac_status=$?
3818   echo "$as_me:3818: \$? = $ac_status" >&5
3819   (exit $ac_status); } &&
3820          { ac_try='test -s conftest.$ac_objext'
3821   { (eval echo "$as_me:3821: \"$ac_try\"") >&5
3822   (eval $ac_try) 2>&5
3823   ac_status=$?
3824   echo "$as_me:3824: \$? = $ac_status" >&5
3825   (exit $ac_status); }; }; then
3826   ac_hi=$ac_mid; break
3827 else
3828   echo "$as_me: failed program was:" >&5
3829 cat conftest.$ac_ext >&5
3830 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3831 fi
3832 rm -f conftest.$ac_objext conftest.$ac_ext
3833   done
3834 else
3835   echo "$as_me: failed program was:" >&5
3836 cat conftest.$ac_ext >&5
3837 ac_hi=-1 ac_mid=-1
3838   while :; do
3839     cat >conftest.$ac_ext <<_ACEOF
3840 #line 3840 "configure"
3841 #include "confdefs.h"
3842 $ac_includes_default
3843 int
3844 main ()
3845 {
3846 int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
3847   ;
3848   return 0;
3849 }
3850 _ACEOF
3851 rm -f conftest.$ac_objext
3852 if { (eval echo "$as_me:3852: \"$ac_compile\"") >&5
3853   (eval $ac_compile) 2>&5
3854   ac_status=$?
3855   echo "$as_me:3855: \$? = $ac_status" >&5
3856   (exit $ac_status); } &&
3857          { ac_try='test -s conftest.$ac_objext'
3858   { (eval echo "$as_me:3858: \"$ac_try\"") >&5
3859   (eval $ac_try) 2>&5
3860   ac_status=$?
3861   echo "$as_me:3861: \$? = $ac_status" >&5
3862   (exit $ac_status); }; }; then
3863   ac_lo=$ac_mid; break
3864 else
3865   echo "$as_me: failed program was:" >&5
3866 cat conftest.$ac_ext >&5
3867 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3868 fi
3869 rm -f conftest.$ac_objext conftest.$ac_ext
3870   done
3871 fi
3872 rm -f conftest.$ac_objext conftest.$ac_ext
3873 # Binary search between lo and hi bounds.
3874 while test "x$ac_lo" != "x$ac_hi"; do
3875   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3876   cat >conftest.$ac_ext <<_ACEOF
3877 #line 3877 "configure"
3878 #include "confdefs.h"
3879 $ac_includes_default
3880 int
3881 main ()
3882 {
3883 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
3884   ;
3885   return 0;
3886 }
3887 _ACEOF
3888 rm -f conftest.$ac_objext
3889 if { (eval echo "$as_me:3889: \"$ac_compile\"") >&5
3890   (eval $ac_compile) 2>&5
3891   ac_status=$?
3892   echo "$as_me:3892: \$? = $ac_status" >&5
3893   (exit $ac_status); } &&
3894          { ac_try='test -s conftest.$ac_objext'
3895   { (eval echo "$as_me:3895: \"$ac_try\"") >&5
3896   (eval $ac_try) 2>&5
3897   ac_status=$?
3898   echo "$as_me:3898: \$? = $ac_status" >&5
3899   (exit $ac_status); }; }; then
3900   ac_hi=$ac_mid
3901 else
3902   echo "$as_me: failed program was:" >&5
3903 cat conftest.$ac_ext >&5
3904 ac_lo=`expr $ac_mid + 1`
3905 fi
3906 rm -f conftest.$ac_objext conftest.$ac_ext
3907 done
3908 ac_cv_sizeof_long=$ac_lo
3909 else
3910   if test "$cross_compiling" = yes; then
3911   { { echo "$as_me:3911: error: cannot run test program while cross compiling" >&5
3912 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3913    { (exit 1); exit 1; }; }
3914 else
3915   cat >conftest.$ac_ext <<_ACEOF
3916 #line 3916 "configure"
3917 #include "confdefs.h"
3918 $ac_includes_default
3919 int
3920 main ()
3921 {
3922 FILE *f = fopen ("conftest.val", "w");
3923 if (!f)
3924   exit (1);
3925 fprintf (f, "%d", (sizeof (long)));
3926 fclose (f);
3927   ;
3928   return 0;
3929 }
3930 _ACEOF
3931 rm -f conftest$ac_exeext
3932 if { (eval echo "$as_me:3932: \"$ac_link\"") >&5
3933   (eval $ac_link) 2>&5
3934   ac_status=$?
3935   echo "$as_me:3935: \$? = $ac_status" >&5
3936   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3937   { (eval echo "$as_me:3937: \"$ac_try\"") >&5
3938   (eval $ac_try) 2>&5
3939   ac_status=$?
3940   echo "$as_me:3940: \$? = $ac_status" >&5
3941   (exit $ac_status); }; }; then
3942   ac_cv_sizeof_long=`cat conftest.val`
3943 else
3944   echo "$as_me: program exited with status $ac_status" >&5
3945 echo "$as_me: failed program was:" >&5
3946 cat conftest.$ac_ext >&5
3947 fi
3948 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3949 fi
3950 fi
3951 rm -f conftest.val
3952 else
3953   ac_cv_sizeof_long=0
3954 fi
3955 fi
3956 echo "$as_me:3956: result: $ac_cv_sizeof_long" >&5
3957 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3958 cat >>confdefs.h <<EOF
3959 #define SIZEOF_LONG $ac_cv_sizeof_long
3960 EOF
3961
3962 echo "$as_me:3962: checking for void *" >&5
3963 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3964 if test "${ac_cv_type_void_p+set}" = set; then
3965   echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967   cat >conftest.$ac_ext <<_ACEOF
3968 #line 3968 "configure"
3969 #include "confdefs.h"
3970 $ac_includes_default
3971 int
3972 main ()
3973 {
3974 if ((void * *) 0)
3975   return 0;
3976 if (sizeof (void *))
3977   return 0;
3978   ;
3979   return 0;
3980 }
3981 _ACEOF
3982 rm -f conftest.$ac_objext
3983 if { (eval echo "$as_me:3983: \"$ac_compile\"") >&5
3984   (eval $ac_compile) 2>&5
3985   ac_status=$?
3986   echo "$as_me:3986: \$? = $ac_status" >&5
3987   (exit $ac_status); } &&
3988          { ac_try='test -s conftest.$ac_objext'
3989   { (eval echo "$as_me:3989: \"$ac_try\"") >&5
3990   (eval $ac_try) 2>&5
3991   ac_status=$?
3992   echo "$as_me:3992: \$? = $ac_status" >&5
3993   (exit $ac_status); }; }; then
3994   ac_cv_type_void_p=yes
3995 else
3996   echo "$as_me: failed program was:" >&5
3997 cat conftest.$ac_ext >&5
3998 ac_cv_type_void_p=no
3999 fi
4000 rm -f conftest.$ac_objext conftest.$ac_ext
4001 fi
4002 echo "$as_me:4002: result: $ac_cv_type_void_p" >&5
4003 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4004
4005 echo "$as_me:4005: checking size of void *" >&5
4006 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4007 if test "${ac_cv_sizeof_void_p+set}" = set; then
4008   echo $ECHO_N "(cached) $ECHO_C" >&6
4009 else
4010   if test "$ac_cv_type_void_p" = yes; then
4011   if test "$cross_compiling" = yes; then
4012   # Depending upon the size, compute the lo and hi bounds.
4013 cat >conftest.$ac_ext <<_ACEOF
4014 #line 4014 "configure"
4015 #include "confdefs.h"
4016 $ac_includes_default
4017 int
4018 main ()
4019 {
4020 int _array_ [1 - 2 * !((sizeof (void *)) >= 0)]
4021   ;
4022   return 0;
4023 }
4024 _ACEOF
4025 rm -f conftest.$ac_objext
4026 if { (eval echo "$as_me:4026: \"$ac_compile\"") >&5
4027   (eval $ac_compile) 2>&5
4028   ac_status=$?
4029   echo "$as_me:4029: \$? = $ac_status" >&5
4030   (exit $ac_status); } &&
4031          { ac_try='test -s conftest.$ac_objext'
4032   { (eval echo "$as_me:4032: \"$ac_try\"") >&5
4033   (eval $ac_try) 2>&5
4034   ac_status=$?
4035   echo "$as_me:4035: \$? = $ac_status" >&5
4036   (exit $ac_status); }; }; then
4037   ac_lo=0 ac_mid=0
4038   while :; do
4039     cat >conftest.$ac_ext <<_ACEOF
4040 #line 4040 "configure"
4041 #include "confdefs.h"
4042 $ac_includes_default
4043 int
4044 main ()
4045 {
4046 int _array_ [1 - 2 * !((sizeof (void *)) <= $ac_mid)]
4047   ;
4048   return 0;
4049 }
4050 _ACEOF
4051 rm -f conftest.$ac_objext
4052 if { (eval echo "$as_me:4052: \"$ac_compile\"") >&5
4053   (eval $ac_compile) 2>&5
4054   ac_status=$?
4055   echo "$as_me:4055: \$? = $ac_status" >&5
4056   (exit $ac_status); } &&
4057          { ac_try='test -s conftest.$ac_objext'
4058   { (eval echo "$as_me:4058: \"$ac_try\"") >&5
4059   (eval $ac_try) 2>&5
4060   ac_status=$?
4061   echo "$as_me:4061: \$? = $ac_status" >&5
4062   (exit $ac_status); }; }; then
4063   ac_hi=$ac_mid; break
4064 else
4065   echo "$as_me: failed program was:" >&5
4066 cat conftest.$ac_ext >&5
4067 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
4068 fi
4069 rm -f conftest.$ac_objext conftest.$ac_ext
4070   done
4071 else
4072   echo "$as_me: failed program was:" >&5
4073 cat conftest.$ac_ext >&5
4074 ac_hi=-1 ac_mid=-1
4075   while :; do
4076     cat >conftest.$ac_ext <<_ACEOF
4077 #line 4077 "configure"
4078 #include "confdefs.h"
4079 $ac_includes_default
4080 int
4081 main ()
4082 {
4083 int _array_ [1 - 2 * !((sizeof (void *)) >= $ac_mid)]
4084   ;
4085   return 0;
4086 }
4087 _ACEOF
4088 rm -f conftest.$ac_objext
4089 if { (eval echo "$as_me:4089: \"$ac_compile\"") >&5
4090   (eval $ac_compile) 2>&5
4091   ac_status=$?
4092   echo "$as_me:4092: \$? = $ac_status" >&5
4093   (exit $ac_status); } &&
4094          { ac_try='test -s conftest.$ac_objext'
4095   { (eval echo "$as_me:4095: \"$ac_try\"") >&5
4096   (eval $ac_try) 2>&5
4097   ac_status=$?
4098   echo "$as_me:4098: \$? = $ac_status" >&5
4099   (exit $ac_status); }; }; then
4100   ac_lo=$ac_mid; break
4101 else
4102   echo "$as_me: failed program was:" >&5
4103 cat conftest.$ac_ext >&5
4104 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
4105 fi
4106 rm -f conftest.$ac_objext conftest.$ac_ext
4107   done
4108 fi
4109 rm -f conftest.$ac_objext conftest.$ac_ext
4110 # Binary search between lo and hi bounds.
4111 while test "x$ac_lo" != "x$ac_hi"; do
4112   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4113   cat >conftest.$ac_ext <<_ACEOF
4114 #line 4114 "configure"
4115 #include "confdefs.h"
4116 $ac_includes_default
4117 int
4118 main ()
4119 {
4120 int _array_ [1 - 2 * !((sizeof (void *)) <= $ac_mid)]
4121   ;
4122   return 0;
4123 }
4124 _ACEOF
4125 rm -f conftest.$ac_objext
4126 if { (eval echo "$as_me:4126: \"$ac_compile\"") >&5
4127   (eval $ac_compile) 2>&5
4128   ac_status=$?
4129   echo "$as_me:4129: \$? = $ac_status" >&5
4130   (exit $ac_status); } &&
4131          { ac_try='test -s conftest.$ac_objext'
4132   { (eval echo "$as_me:4132: \"$ac_try\"") >&5
4133   (eval $ac_try) 2>&5
4134   ac_status=$?
4135   echo "$as_me:4135: \$? = $ac_status" >&5
4136   (exit $ac_status); }; }; then
4137   ac_hi=$ac_mid
4138 else
4139   echo "$as_me: failed program was:" >&5
4140 cat conftest.$ac_ext >&5
4141 ac_lo=`expr $ac_mid + 1`
4142 fi
4143 rm -f conftest.$ac_objext conftest.$ac_ext
4144 done
4145 ac_cv_sizeof_void_p=$ac_lo
4146 else
4147   if test "$cross_compiling" = yes; then
4148   { { echo "$as_me:4148: error: cannot run test program while cross compiling" >&5
4149 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4150    { (exit 1); exit 1; }; }
4151 else
4152   cat >conftest.$ac_ext <<_ACEOF
4153 #line 4153 "configure"
4154 #include "confdefs.h"
4155 $ac_includes_default
4156 int
4157 main ()
4158 {
4159 FILE *f = fopen ("conftest.val", "w");
4160 if (!f)
4161   exit (1);
4162 fprintf (f, "%d", (sizeof (void *)));
4163 fclose (f);
4164   ;
4165   return 0;
4166 }
4167 _ACEOF
4168 rm -f conftest$ac_exeext
4169 if { (eval echo "$as_me:4169: \"$ac_link\"") >&5
4170   (eval $ac_link) 2>&5
4171   ac_status=$?
4172   echo "$as_me:4172: \$? = $ac_status" >&5
4173   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4174   { (eval echo "$as_me:4174: \"$ac_try\"") >&5
4175   (eval $ac_try) 2>&5
4176   ac_status=$?
4177   echo "$as_me:4177: \$? = $ac_status" >&5
4178   (exit $ac_status); }; }; then
4179   ac_cv_sizeof_void_p=`cat conftest.val`
4180 else
4181   echo "$as_me: program exited with status $ac_status" >&5
4182 echo "$as_me: failed program was:" >&5
4183 cat conftest.$ac_ext >&5
4184 fi
4185 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4186 fi
4187 fi
4188 rm -f conftest.val
4189 else
4190   ac_cv_sizeof_void_p=0
4191 fi
4192 fi
4193 echo "$as_me:4193: result: $ac_cv_sizeof_void_p" >&5
4194 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4195 cat >>confdefs.h <<EOF
4196 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4197 EOF
4198
4199 if test "$ac_cv_sizeof_int" = 2 ; then
4200   echo "$as_me:4200: checking for int16_t" >&5
4201 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
4202 if test "${ac_cv_type_int16_t+set}" = set; then
4203   echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205   cat >conftest.$ac_ext <<_ACEOF
4206 #line 4206 "configure"
4207 #include "confdefs.h"
4208 $ac_includes_default
4209 int
4210 main ()
4211 {
4212 if ((int16_t *) 0)
4213   return 0;
4214 if (sizeof (int16_t))
4215   return 0;
4216   ;
4217   return 0;
4218 }
4219 _ACEOF
4220 rm -f conftest.$ac_objext
4221 if { (eval echo "$as_me:4221: \"$ac_compile\"") >&5
4222   (eval $ac_compile) 2>&5
4223   ac_status=$?
4224   echo "$as_me:4224: \$? = $ac_status" >&5
4225   (exit $ac_status); } &&
4226          { ac_try='test -s conftest.$ac_objext'
4227   { (eval echo "$as_me:4227: \"$ac_try\"") >&5
4228   (eval $ac_try) 2>&5
4229   ac_status=$?
4230   echo "$as_me:4230: \$? = $ac_status" >&5
4231   (exit $ac_status); }; }; then
4232   ac_cv_type_int16_t=yes
4233 else
4234   echo "$as_me: failed program was:" >&5
4235 cat conftest.$ac_ext >&5
4236 ac_cv_type_int16_t=no
4237 fi
4238 rm -f conftest.$ac_objext conftest.$ac_ext
4239 fi
4240 echo "$as_me:4240: result: $ac_cv_type_int16_t" >&5
4241 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
4242 if test $ac_cv_type_int16_t = yes; then
4243   :
4244 else
4245
4246 cat >>confdefs.h <<EOF
4247 #define int16_t int
4248 EOF
4249
4250 fi
4251
4252   echo "$as_me:4252: checking for u_int16_t" >&5
4253 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
4254 if test "${ac_cv_type_u_int16_t+set}" = set; then
4255   echo $ECHO_N "(cached) $ECHO_C" >&6
4256 else
4257   cat >conftest.$ac_ext <<_ACEOF
4258 #line 4258 "configure"
4259 #include "confdefs.h"
4260 $ac_includes_default
4261 int
4262 main ()
4263 {
4264 if ((u_int16_t *) 0)
4265   return 0;
4266 if (sizeof (u_int16_t))
4267   return 0;
4268   ;
4269   return 0;
4270 }
4271 _ACEOF
4272 rm -f conftest.$ac_objext
4273 if { (eval echo "$as_me:4273: \"$ac_compile\"") >&5
4274   (eval $ac_compile) 2>&5
4275   ac_status=$?
4276   echo "$as_me:4276: \$? = $ac_status" >&5
4277   (exit $ac_status); } &&
4278          { ac_try='test -s conftest.$ac_objext'
4279   { (eval echo "$as_me:4279: \"$ac_try\"") >&5
4280   (eval $ac_try) 2>&5
4281   ac_status=$?
4282   echo "$as_me:4282: \$? = $ac_status" >&5
4283   (exit $ac_status); }; }; then
4284   ac_cv_type_u_int16_t=yes
4285 else
4286   echo "$as_me: failed program was:" >&5
4287 cat conftest.$ac_ext >&5
4288 ac_cv_type_u_int16_t=no
4289 fi
4290 rm -f conftest.$ac_objext conftest.$ac_ext
4291 fi
4292 echo "$as_me:4292: result: $ac_cv_type_u_int16_t" >&5
4293 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
4294 if test $ac_cv_type_u_int16_t = yes; then
4295   :
4296 else
4297
4298 cat >>confdefs.h <<EOF
4299 #define u_int16_t unsigned int
4300 EOF
4301
4302 fi
4303
4304 elif test "$ac_cv_sizeof_short" = 2 ; then
4305   echo "$as_me:4305: checking for int16_t" >&5
4306 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
4307 if test "${ac_cv_type_int16_t+set}" = set; then
4308   echo $ECHO_N "(cached) $ECHO_C" >&6
4309 else
4310   cat >conftest.$ac_ext <<_ACEOF
4311 #line 4311 "configure"
4312 #include "confdefs.h"
4313 $ac_includes_default
4314 int
4315 main ()
4316 {
4317 if ((int16_t *) 0)
4318   return 0;
4319 if (sizeof (int16_t))
4320   return 0;
4321   ;
4322   return 0;
4323 }
4324 _ACEOF
4325 rm -f conftest.$ac_objext
4326 if { (eval echo "$as_me:4326: \"$ac_compile\"") >&5
4327   (eval $ac_compile) 2>&5
4328   ac_status=$?
4329   echo "$as_me:4329: \$? = $ac_status" >&5
4330   (exit $ac_status); } &&
4331          { ac_try='test -s conftest.$ac_objext'
4332   { (eval echo "$as_me:4332: \"$ac_try\"") >&5
4333   (eval $ac_try) 2>&5
4334   ac_status=$?
4335   echo "$as_me:4335: \$? = $ac_status" >&5
4336   (exit $ac_status); }; }; then
4337   ac_cv_type_int16_t=yes
4338 else
4339   echo "$as_me: failed program was:" >&5
4340 cat conftest.$ac_ext >&5
4341 ac_cv_type_int16_t=no
4342 fi
4343 rm -f conftest.$ac_objext conftest.$ac_ext
4344 fi
4345 echo "$as_me:4345: result: $ac_cv_type_int16_t" >&5
4346 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
4347 if test $ac_cv_type_int16_t = yes; then
4348   :
4349 else
4350
4351 cat >>confdefs.h <<EOF
4352 #define int16_t short
4353 EOF
4354
4355 fi
4356
4357   echo "$as_me:4357: checking for u_int16_t" >&5
4358 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
4359 if test "${ac_cv_type_u_int16_t+set}" = set; then
4360   echo $ECHO_N "(cached) $ECHO_C" >&6
4361 else
4362   cat >conftest.$ac_ext <<_ACEOF
4363 #line 4363 "configure"
4364 #include "confdefs.h"
4365 $ac_includes_default
4366 int
4367 main ()
4368 {
4369 if ((u_int16_t *) 0)
4370   return 0;
4371 if (sizeof (u_int16_t))
4372   return 0;
4373   ;
4374   return 0;
4375 }
4376 _ACEOF
4377 rm -f conftest.$ac_objext
4378 if { (eval echo "$as_me:4378: \"$ac_compile\"") >&5
4379   (eval $ac_compile) 2>&5
4380   ac_status=$?
4381   echo "$as_me:4381: \$? = $ac_status" >&5
4382   (exit $ac_status); } &&
4383          { ac_try='test -s conftest.$ac_objext'
4384   { (eval echo "$as_me:4384: \"$ac_try\"") >&5
4385   (eval $ac_try) 2>&5
4386   ac_status=$?
4387   echo "$as_me:4387: \$? = $ac_status" >&5
4388   (exit $ac_status); }; }; then
4389   ac_cv_type_u_int16_t=yes
4390 else
4391   echo "$as_me: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4393 ac_cv_type_u_int16_t=no
4394 fi
4395 rm -f conftest.$ac_objext conftest.$ac_ext
4396 fi
4397 echo "$as_me:4397: result: $ac_cv_type_u_int16_t" >&5
4398 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
4399 if test $ac_cv_type_u_int16_t = yes; then
4400   :
4401 else
4402
4403 cat >>confdefs.h <<EOF
4404 #define u_int16_t unsigned short
4405 EOF
4406
4407 fi
4408
4409 else
4410   { { echo "$as_me:4410: error: Cannot find a type with size of 16 bits" >&5
4411 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
4412    { (exit 1); exit 1; }; }
4413 fi
4414 if test "$ac_cv_sizeof_int" = 4 ; then
4415   echo "$as_me:4415: checking for int32_t" >&5
4416 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
4417 if test "${ac_cv_type_int32_t+set}" = set; then
4418   echo $ECHO_N "(cached) $ECHO_C" >&6
4419 else
4420   cat >conftest.$ac_ext <<_ACEOF
4421 #line 4421 "configure"
4422 #include "confdefs.h"
4423 $ac_includes_default
4424 int
4425 main ()
4426 {
4427 if ((int32_t *) 0)
4428   return 0;
4429 if (sizeof (int32_t))
4430   return 0;
4431   ;
4432   return 0;
4433 }
4434 _ACEOF
4435 rm -f conftest.$ac_objext
4436 if { (eval echo "$as_me:4436: \"$ac_compile\"") >&5
4437   (eval $ac_compile) 2>&5
4438   ac_status=$?
4439   echo "$as_me:4439: \$? = $ac_status" >&5
4440   (exit $ac_status); } &&
4441          { ac_try='test -s conftest.$ac_objext'
4442   { (eval echo "$as_me:4442: \"$ac_try\"") >&5
4443   (eval $ac_try) 2>&5
4444   ac_status=$?
4445   echo "$as_me:4445: \$? = $ac_status" >&5
4446   (exit $ac_status); }; }; then
4447   ac_cv_type_int32_t=yes
4448 else
4449   echo "$as_me: failed program was:" >&5
4450 cat conftest.$ac_ext >&5
4451 ac_cv_type_int32_t=no
4452 fi
4453 rm -f conftest.$ac_objext conftest.$ac_ext
4454 fi
4455 echo "$as_me:4455: result: $ac_cv_type_int32_t" >&5
4456 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
4457 if test $ac_cv_type_int32_t = yes; then
4458   :
4459 else
4460
4461 cat >>confdefs.h <<EOF
4462 #define int32_t int
4463 EOF
4464
4465 fi
4466
4467   echo "$as_me:4467: checking for u_int32_t" >&5
4468 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
4469 if test "${ac_cv_type_u_int32_t+set}" = set; then
4470   echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472   cat >conftest.$ac_ext <<_ACEOF
4473 #line 4473 "configure"
4474 #include "confdefs.h"
4475 $ac_includes_default
4476 int
4477 main ()
4478 {
4479 if ((u_int32_t *) 0)
4480   return 0;
4481 if (sizeof (u_int32_t))
4482   return 0;
4483   ;
4484   return 0;
4485 }
4486 _ACEOF
4487 rm -f conftest.$ac_objext
4488 if { (eval echo "$as_me:4488: \"$ac_compile\"") >&5
4489   (eval $ac_compile) 2>&5
4490   ac_status=$?
4491   echo "$as_me:4491: \$? = $ac_status" >&5
4492   (exit $ac_status); } &&
4493          { ac_try='test -s conftest.$ac_objext'
4494   { (eval echo "$as_me:4494: \"$ac_try\"") >&5
4495   (eval $ac_try) 2>&5
4496   ac_status=$?
4497   echo "$as_me:4497: \$? = $ac_status" >&5
4498   (exit $ac_status); }; }; then
4499   ac_cv_type_u_int32_t=yes
4500 else
4501   echo "$as_me: failed program was:" >&5
4502 cat conftest.$ac_ext >&5
4503 ac_cv_type_u_int32_t=no
4504 fi
4505 rm -f conftest.$ac_objext conftest.$ac_ext
4506 fi
4507 echo "$as_me:4507: result: $ac_cv_type_u_int32_t" >&5
4508 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
4509 if test $ac_cv_type_u_int32_t = yes; then
4510   :
4511 else
4512
4513 cat >>confdefs.h <<EOF
4514 #define u_int32_t unsigned int
4515 EOF
4516
4517 fi
4518
4519 elif test "$ac_cv_sizeof_short" = 4 ; then
4520   echo "$as_me:4520: checking for int32_t" >&5
4521 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
4522 if test "${ac_cv_type_int32_t+set}" = set; then
4523   echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525   cat >conftest.$ac_ext <<_ACEOF
4526 #line 4526 "configure"
4527 #include "confdefs.h"
4528 $ac_includes_default
4529 int
4530 main ()
4531 {
4532 if ((int32_t *) 0)
4533   return 0;
4534 if (sizeof (int32_t))
4535   return 0;
4536   ;
4537   return 0;
4538 }
4539 _ACEOF
4540 rm -f conftest.$ac_objext
4541 if { (eval echo "$as_me:4541: \"$ac_compile\"") >&5
4542   (eval $ac_compile) 2>&5
4543   ac_status=$?
4544   echo "$as_me:4544: \$? = $ac_status" >&5
4545   (exit $ac_status); } &&
4546          { ac_try='test -s conftest.$ac_objext'
4547   { (eval echo "$as_me:4547: \"$ac_try\"") >&5
4548   (eval $ac_try) 2>&5
4549   ac_status=$?
4550   echo "$as_me:4550: \$? = $ac_status" >&5
4551   (exit $ac_status); }; }; then
4552   ac_cv_type_int32_t=yes
4553 else
4554   echo "$as_me: failed program was:" >&5
4555 cat conftest.$ac_ext >&5
4556 ac_cv_type_int32_t=no
4557 fi
4558 rm -f conftest.$ac_objext conftest.$ac_ext
4559 fi
4560 echo "$as_me:4560: result: $ac_cv_type_int32_t" >&5
4561 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
4562 if test $ac_cv_type_int32_t = yes; then
4563   :
4564 else
4565
4566 cat >>confdefs.h <<EOF
4567 #define int32_t short
4568 EOF
4569
4570 fi
4571
4572   echo "$as_me:4572: checking for u_int32_t" >&5
4573 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
4574 if test "${ac_cv_type_u_int32_t+set}" = set; then
4575   echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577   cat >conftest.$ac_ext <<_ACEOF
4578 #line 4578 "configure"
4579 #include "confdefs.h"
4580 $ac_includes_default
4581 int
4582 main ()
4583 {
4584 if ((u_int32_t *) 0)
4585   return 0;
4586 if (sizeof (u_int32_t))
4587   return 0;
4588   ;
4589   return 0;
4590 }
4591 _ACEOF
4592 rm -f conftest.$ac_objext
4593 if { (eval echo "$as_me:4593: \"$ac_compile\"") >&5
4594   (eval $ac_compile) 2>&5
4595   ac_status=$?
4596   echo "$as_me:4596: \$? = $ac_status" >&5
4597   (exit $ac_status); } &&
4598          { ac_try='test -s conftest.$ac_objext'
4599   { (eval echo "$as_me:4599: \"$ac_try\"") >&5
4600   (eval $ac_try) 2>&5
4601   ac_status=$?
4602   echo "$as_me:4602: \$? = $ac_status" >&5
4603   (exit $ac_status); }; }; then
4604   ac_cv_type_u_int32_t=yes
4605 else
4606   echo "$as_me: failed program was:" >&5
4607 cat conftest.$ac_ext >&5
4608 ac_cv_type_u_int32_t=no
4609 fi
4610 rm -f conftest.$ac_objext conftest.$ac_ext
4611 fi
4612 echo "$as_me:4612: result: $ac_cv_type_u_int32_t" >&5
4613 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
4614 if test $ac_cv_type_u_int32_t = yes; then
4615   :
4616 else
4617
4618 cat >>confdefs.h <<EOF
4619 #define u_int32_t unsigned short
4620 EOF
4621
4622 fi
4623
4624 elif test "$ac_cv_sizeof_long" = 4 ; then
4625   echo "$as_me:4625: checking for int32_t" >&5
4626 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
4627 if test "${ac_cv_type_int32_t+set}" = set; then
4628   echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630   cat >conftest.$ac_ext <<_ACEOF
4631 #line 4631 "configure"
4632 #include "confdefs.h"
4633 $ac_includes_default
4634 int
4635 main ()
4636 {
4637 if ((int32_t *) 0)
4638   return 0;
4639 if (sizeof (int32_t))
4640   return 0;
4641   ;
4642   return 0;
4643 }
4644 _ACEOF
4645 rm -f conftest.$ac_objext
4646 if { (eval echo "$as_me:4646: \"$ac_compile\"") >&5
4647   (eval $ac_compile) 2>&5
4648   ac_status=$?
4649   echo "$as_me:4649: \$? = $ac_status" >&5
4650   (exit $ac_status); } &&
4651          { ac_try='test -s conftest.$ac_objext'
4652   { (eval echo "$as_me:4652: \"$ac_try\"") >&5
4653   (eval $ac_try) 2>&5
4654   ac_status=$?
4655   echo "$as_me:4655: \$? = $ac_status" >&5
4656   (exit $ac_status); }; }; then
4657   ac_cv_type_int32_t=yes
4658 else
4659   echo "$as_me: failed program was:" >&5
4660 cat conftest.$ac_ext >&5
4661 ac_cv_type_int32_t=no
4662 fi
4663 rm -f conftest.$ac_objext conftest.$ac_ext
4664 fi
4665 echo "$as_me:4665: result: $ac_cv_type_int32_t" >&5
4666 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
4667 if test $ac_cv_type_int32_t = yes; then
4668   :
4669 else
4670
4671 cat >>confdefs.h <<EOF
4672 #define int32_t long
4673 EOF
4674
4675 fi
4676
4677   echo "$as_me:4677: checking for u_int32_t" >&5
4678 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
4679 if test "${ac_cv_type_u_int32_t+set}" = set; then
4680   echo $ECHO_N "(cached) $ECHO_C" >&6
4681 else
4682   cat >conftest.$ac_ext <<_ACEOF
4683 #line 4683 "configure"
4684 #include "confdefs.h"
4685 $ac_includes_default
4686 int
4687 main ()
4688 {
4689 if ((u_int32_t *) 0)
4690   return 0;
4691 if (sizeof (u_int32_t))
4692   return 0;
4693   ;
4694   return 0;
4695 }
4696 _ACEOF
4697 rm -f conftest.$ac_objext
4698 if { (eval echo "$as_me:4698: \"$ac_compile\"") >&5
4699   (eval $ac_compile) 2>&5
4700   ac_status=$?
4701   echo "$as_me:4701: \$? = $ac_status" >&5
4702   (exit $ac_status); } &&
4703          { ac_try='test -s conftest.$ac_objext'
4704   { (eval echo "$as_me:4704: \"$ac_try\"") >&5
4705   (eval $ac_try) 2>&5
4706   ac_status=$?
4707   echo "$as_me:4707: \$? = $ac_status" >&5
4708   (exit $ac_status); }; }; then
4709   ac_cv_type_u_int32_t=yes
4710 else
4711   echo "$as_me: failed program was:" >&5
4712 cat conftest.$ac_ext >&5
4713 ac_cv_type_u_int32_t=no
4714 fi
4715 rm -f conftest.$ac_objext conftest.$ac_ext
4716 fi
4717 echo "$as_me:4717: result: $ac_cv_type_u_int32_t" >&5
4718 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
4719 if test $ac_cv_type_u_int32_t = yes; then
4720   :
4721 else
4722
4723 cat >>confdefs.h <<EOF
4724 #define u_int32_t unsigned long
4725 EOF
4726
4727 fi
4728
4729 else
4730   { { echo "$as_me:4730: error: Cannot find a type with size of 32 bits" >&5
4731 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
4732    { (exit 1); exit 1; }; }
4733 fi
4734
4735 for ac_func in kqueue setrlimit getrusage times
4736 do
4737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4738 echo "$as_me:4738: checking for $ac_func" >&5
4739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4740 if eval "test \"\${$as_ac_var+set}\" = set"; then
4741   echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743   cat >conftest.$ac_ext <<_ACEOF
4744 #line 4744 "configure"
4745 #include "confdefs.h"
4746 /* System header to define __stub macros and hopefully few prototypes,
4747     which can conflict with char $ac_func (); below.  */
4748 #include <assert.h>
4749 /* Override any gcc2 internal prototype to avoid an error.  */
4750 #ifdef __cplusplus
4751 extern "C"
4752 #endif
4753 /* We use char because int might match the return type of a gcc2
4754    builtin and then its argument prototype would still apply.  */
4755 char $ac_func ();
4756 char (*f) ();
4757
4758 int
4759 main ()
4760 {
4761 /* The GNU C library defines this for functions which it implements
4762     to always fail with ENOSYS.  Some functions are actually named
4763     something starting with __ and the normal name is an alias.  */
4764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4765 choke me
4766 #else
4767 f = $ac_func;
4768 #endif
4769
4770   ;
4771   return 0;
4772 }
4773 _ACEOF
4774 rm -f conftest.$ac_objext conftest$ac_exeext
4775 if { (eval echo "$as_me:4775: \"$ac_link\"") >&5
4776   (eval $ac_link) 2>&5
4777   ac_status=$?
4778   echo "$as_me:4778: \$? = $ac_status" >&5
4779   (exit $ac_status); } &&
4780          { ac_try='test -s conftest$ac_exeext'
4781   { (eval echo "$as_me:4781: \"$ac_try\"") >&5
4782   (eval $ac_try) 2>&5
4783   ac_status=$?
4784   echo "$as_me:4784: \$? = $ac_status" >&5
4785   (exit $ac_status); }; }; then
4786   eval "$as_ac_var=yes"
4787 else
4788   echo "$as_me: failed program was:" >&5
4789 cat conftest.$ac_ext >&5
4790 eval "$as_ac_var=no"
4791 fi
4792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4793 fi
4794 echo "$as_me:4794: result: `eval echo '${'$as_ac_var'}'`" >&5
4795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4796 if test `eval echo '${'$as_ac_var'}'` = yes; then
4797   cat >>confdefs.h <<EOF
4798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4799 EOF
4800
4801 fi
4802 done
4803
4804 echo "$as_me:4804: checking for sys/wait.h that is POSIX.1 compatible" >&5
4805 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4806 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4807   echo $ECHO_N "(cached) $ECHO_C" >&6
4808 else
4809   cat >conftest.$ac_ext <<_ACEOF
4810 #line 4810 "configure"
4811 #include "confdefs.h"
4812 #include <sys/types.h>
4813 #include <sys/wait.h>
4814 #ifndef WEXITSTATUS
4815 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4816 #endif
4817 #ifndef WIFEXITED
4818 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4819 #endif
4820
4821 int
4822 main ()
4823 {
4824   int s;
4825   wait (&s);
4826   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4827   ;
4828   return 0;
4829 }
4830 _ACEOF
4831 rm -f conftest.$ac_objext
4832 if { (eval echo "$as_me:4832: \"$ac_compile\"") >&5
4833   (eval $ac_compile) 2>&5
4834   ac_status=$?
4835   echo "$as_me:4835: \$? = $ac_status" >&5
4836   (exit $ac_status); } &&
4837          { ac_try='test -s conftest.$ac_objext'
4838   { (eval echo "$as_me:4838: \"$ac_try\"") >&5
4839   (eval $ac_try) 2>&5
4840   ac_status=$?
4841   echo "$as_me:4841: \$? = $ac_status" >&5
4842   (exit $ac_status); }; }; then
4843   ac_cv_header_sys_wait_h=yes
4844 else
4845   echo "$as_me: failed program was:" >&5
4846 cat conftest.$ac_ext >&5
4847 ac_cv_header_sys_wait_h=no
4848 fi
4849 rm -f conftest.$ac_objext conftest.$ac_ext
4850 fi
4851 echo "$as_me:4851: result: $ac_cv_header_sys_wait_h" >&5
4852 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4853 if test $ac_cv_header_sys_wait_h = yes; then
4854
4855 cat >>confdefs.h <<\EOF
4856 #define HAVE_SYS_WAIT_H 1
4857 EOF
4858
4859 fi
4860
4861 for ac_header in unistd.h
4862 do
4863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4864 echo "$as_me:4864: checking for $ac_header" >&5
4865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4867   echo $ECHO_N "(cached) $ECHO_C" >&6
4868 else
4869   cat >conftest.$ac_ext <<_ACEOF
4870 #line 4870 "configure"
4871 #include "confdefs.h"
4872 #include <$ac_header>
4873 _ACEOF
4874 if { (eval echo "$as_me:4874: \"$ac_cpp conftest.$ac_ext\"") >&5
4875   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4876   ac_status=$?
4877   egrep -v '^ *\+' conftest.er1 >conftest.err
4878   rm -f conftest.er1
4879   cat conftest.err >&5
4880   echo "$as_me:4880: \$? = $ac_status" >&5
4881   (exit $ac_status); } >/dev/null; then
4882   if test -s conftest.err; then
4883     ac_cpp_err=$ac_c_preproc_warn_flag
4884   else
4885     ac_cpp_err=
4886   fi
4887 else
4888   ac_cpp_err=yes
4889 fi
4890 if test -z "$ac_cpp_err"; then
4891   eval "$as_ac_Header=yes"
4892 else
4893   echo "$as_me: failed program was:" >&5
4894   cat conftest.$ac_ext >&5
4895   eval "$as_ac_Header=no"
4896 fi
4897 rm -f conftest.err conftest.$ac_ext
4898 fi
4899 echo "$as_me:4899: result: `eval echo '${'$as_ac_Header'}'`" >&5
4900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4902   cat >>confdefs.h <<EOF
4903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4904 EOF
4905
4906 fi
4907 done
4908
4909 echo "$as_me:4909: checking for restartable system calls" >&5
4910 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
4911 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
4912   echo $ECHO_N "(cached) $ECHO_C" >&6
4913 else
4914   if test "$cross_compiling" = yes; then
4915   { { echo "$as_me:4915: error: cannot run test program while cross compiling" >&5
4916 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4917    { (exit 1); exit 1; }; }
4918 else
4919   cat >conftest.$ac_ext <<_ACEOF
4920 #line 4920 "configure"
4921 #include "confdefs.h"
4922 /* Exit 0 (true) if wait returns something other than -1,
4923    i.e. the pid of the child, which means that wait was restarted
4924    after getting the signal.  */
4925
4926 #include <sys/types.h>
4927 #include <signal.h>
4928 #if HAVE_UNISTD_H
4929 # include <unistd.h>
4930 #endif
4931 #if HAVE_SYS_WAIT_H
4932 # include <sys/wait.h>
4933 #endif
4934
4935 /* Some platforms explicitly require an extern "C" signal handler
4936    when using C++. */
4937 #ifdef __cplusplus
4938 extern "C" void ucatch (int dummy) { }
4939 #else
4940 void ucatch (dummy) int dummy; { }
4941 #endif
4942
4943 int
4944 main ()
4945 {
4946   int i = fork (), status;
4947
4948   if (i == 0)
4949     {
4950       sleep (3);
4951       kill (getppid (), SIGINT);
4952       sleep (3);
4953       exit (0);
4954     }
4955
4956   signal (SIGINT, ucatch);
4957
4958   status = wait (&i);
4959   if (status == -1)
4960     wait (&i);
4961
4962   exit (status == -1);
4963 }
4964 _ACEOF
4965 rm -f conftest$ac_exeext
4966 if { (eval echo "$as_me:4966: \"$ac_link\"") >&5
4967   (eval $ac_link) 2>&5
4968   ac_status=$?
4969   echo "$as_me:4969: \$? = $ac_status" >&5
4970   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4971   { (eval echo "$as_me:4971: \"$ac_try\"") >&5
4972   (eval $ac_try) 2>&5
4973   ac_status=$?
4974   echo "$as_me:4974: \$? = $ac_status" >&5
4975   (exit $ac_status); }; }; then
4976   ac_cv_sys_restartable_syscalls=yes
4977 else
4978   echo "$as_me: program exited with status $ac_status" >&5
4979 echo "$as_me: failed program was:" >&5
4980 cat conftest.$ac_ext >&5
4981 ac_cv_sys_restartable_syscalls=no
4982 fi
4983 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4984 fi
4985 fi
4986 echo "$as_me:4986: result: $ac_cv_sys_restartable_syscalls" >&5
4987 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
4988 if test $ac_cv_sys_restartable_syscalls = yes; then
4989
4990 cat >>confdefs.h <<\EOF
4991 #define HAVE_RESTARTABLE_SYSCALLS 1
4992 EOF
4993
4994 fi
4995
4996 echo "$as_me:4996: checking for donuts" >&5
4997 echo $ECHO_N "checking for donuts... $ECHO_C" >&6
4998 echo "$as_me:4998: result: yes" >&5
4999 echo "${ECHO_T}yes" >&6
5000
5001 for ac_prog in mawk gawk nawk awk
5002 do
5003   # Extract the first word of "$ac_prog", so it can be a program name with args.
5004 set dummy $ac_prog; ac_word=$2
5005 echo "$as_me:5005: checking for $ac_word" >&5
5006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5007 if test "${ac_cv_prog_AWK+set}" = set; then
5008   echo $ECHO_N "(cached) $ECHO_C" >&6
5009 else
5010   if test -n "$AWK"; then
5011   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5012 else
5013   ac_save_IFS=$IFS; IFS=$ac_path_separator
5014 ac_dummy="$PATH"
5015 for ac_dir in $ac_dummy; do
5016   IFS=$ac_save_IFS
5017   test -z "$ac_dir" && ac_dir=.
5018   $as_executable_p "$ac_dir/$ac_word" || continue
5019 ac_cv_prog_AWK="$ac_prog"
5020 echo "$as_me:5020: found $ac_dir/$ac_word" >&5
5021 break
5022 done
5023
5024 fi
5025 fi
5026 AWK=$ac_cv_prog_AWK
5027 if test -n "$AWK"; then
5028   echo "$as_me:5028: result: $AWK" >&5
5029 echo "${ECHO_T}$AWK" >&6
5030 else
5031   echo "$as_me:5031: result: no" >&5
5032 echo "${ECHO_T}no" >&6
5033 fi
5034
5035   test -n "$AWK" && break
5036 done
5037
5038 echo "$as_me:5038: checking whether ${MAKE-make} sets \${MAKE}" >&5
5039 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5040 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5041 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5042   echo $ECHO_N "(cached) $ECHO_C" >&6
5043 else
5044   cat >conftest.make <<\EOF
5045 all:
5046         @echo 'ac_maketemp="${MAKE}"'
5047 EOF
5048 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5049 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5050 if test -n "$ac_maketemp"; then
5051   eval ac_cv_prog_make_${ac_make}_set=yes
5052 else
5053   eval ac_cv_prog_make_${ac_make}_set=no
5054 fi
5055 rm -f conftest.make
5056 fi
5057 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5058   echo "$as_me:5058: result: yes" >&5
5059 echo "${ECHO_T}yes" >&6
5060   SET_MAKE=
5061 else
5062   echo "$as_me:5062: result: no" >&5
5063 echo "${ECHO_T}no" >&6
5064   SET_MAKE="MAKE=${MAKE-make}"
5065 fi
5066
5067 # Find a good install program.  We prefer a C program (faster),
5068 # so one script is as good as another.  But avoid the broken or
5069 # incompatible versions:
5070 # SysV /etc/install, /usr/sbin/install
5071 # SunOS /usr/etc/install
5072 # IRIX /sbin/install
5073 # AIX /bin/install
5074 # AmigaOS /C/install, which installs bootblocks on floppy discs
5075 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5076 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5077 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5078 # ./install, which can be erroneously created by make from ./install.sh.
5079 echo "$as_me:5079: checking for a BSD compatible install" >&5
5080 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5081 if test -z "$INSTALL"; then
5082 if test "${ac_cv_path_install+set}" = set; then
5083   echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085     ac_save_IFS=$IFS; IFS=$ac_path_separator
5086   for ac_dir in $PATH; do
5087     IFS=$ac_save_IFS
5088     # Account for people who put trailing slashes in PATH elements.
5089     case $ac_dir/ in
5090     / | ./ | .// | /cC/* \
5091     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
5092     | /usr/ucb/* ) ;;
5093     *)
5094       # OSF1 and SCO ODT 3.0 have their own names for install.
5095       # Don't use installbsd from OSF since it installs stuff as root
5096       # by default.
5097       for ac_prog in ginstall scoinst install; do
5098         if $as_executable_p "$ac_dir/$ac_prog"; then
5099           if test $ac_prog = install &&
5100             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
5101             # AIX install.  It has an incompatible calling convention.
5102             :
5103           elif test $ac_prog = install &&
5104             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
5105             # program-specific install script used by HP pwplus--don't use.
5106             :
5107           else
5108             ac_cv_path_install="$ac_dir/$ac_prog -c"
5109             break 2
5110           fi
5111         fi
5112       done
5113       ;;
5114     esac
5115   done
5116
5117 fi
5118   if test "${ac_cv_path_install+set}" = set; then
5119     INSTALL=$ac_cv_path_install
5120   else
5121     # As a last resort, use the slow shell script.  We don't cache a
5122     # path for INSTALL within a source directory, because that will
5123     # break other packages using the cache if that directory is
5124     # removed, or if the path is relative.
5125     INSTALL=$ac_install_sh
5126   fi
5127 fi
5128 echo "$as_me:5128: result: $INSTALL" >&5
5129 echo "${ECHO_T}$INSTALL" >&6
5130
5131 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5132 # It thinks the first close brace ends the variable substitution.
5133 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5134
5135 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5136
5137 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5138
5139 echo "$as_me:5139: checking whether ln -s works" >&5
5140 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5141 LN_S=$as_ln_s
5142 if test "$LN_S" = "ln -s"; then
5143   echo "$as_me:5143: result: yes" >&5
5144 echo "${ECHO_T}yes" >&6
5145 else
5146   echo "$as_me:5146: result: no, using $LN_S" >&5
5147 echo "${ECHO_T}no, using $LN_S" >&6
5148 fi
5149
5150 for ac_prog in rm
5151 do
5152   # Extract the first word of "$ac_prog", so it can be a program name with args.
5153 set dummy $ac_prog; ac_word=$2
5154 echo "$as_me:5154: checking for $ac_word" >&5
5155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5156 if test "${ac_cv_path_RMPROG+set}" = set; then
5157   echo $ECHO_N "(cached) $ECHO_C" >&6
5158 else
5159   case $RMPROG in
5160   [\\/]* | ?:[\\/]*)
5161   ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
5162   ;;
5163   *)
5164   ac_save_IFS=$IFS; IFS=$ac_path_separator
5165 ac_dummy="$PATH"
5166 for ac_dir in $ac_dummy; do
5167   IFS=$ac_save_IFS
5168   test -z "$ac_dir" && ac_dir=.
5169   if $as_executable_p "$ac_dir/$ac_word"; then
5170    ac_cv_path_RMPROG="$ac_dir/$ac_word"
5171    echo "$as_me:5171: found $ac_dir/$ac_word" >&5
5172    break
5173 fi
5174 done
5175
5176   ;;
5177 esac
5178 fi
5179 RMPROG=$ac_cv_path_RMPROG
5180
5181 if test -n "$RMPROG"; then
5182   echo "$as_me:5182: result: $RMPROG" >&5
5183 echo "${ECHO_T}$RMPROG" >&6
5184 else
5185   echo "$as_me:5185: result: no" >&5
5186 echo "${ECHO_T}no" >&6
5187 fi
5188
5189   test -n "$RMPROG" && break
5190 done
5191 test -n "$RMPROG" || RMPROG="/bin/rm"
5192
5193 for ac_prog in sh
5194 do
5195   # Extract the first word of "$ac_prog", so it can be a program name with args.
5196 set dummy $ac_prog; ac_word=$2
5197 echo "$as_me:5197: checking for $ac_word" >&5
5198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5199 if test "${ac_cv_path_SHPROG+set}" = set; then
5200   echo $ECHO_N "(cached) $ECHO_C" >&6
5201 else
5202   case $SHPROG in
5203   [\\/]* | ?:[\\/]*)
5204   ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
5205   ;;
5206   *)
5207   ac_save_IFS=$IFS; IFS=$ac_path_separator
5208 ac_dummy="$PATH"
5209 for ac_dir in $ac_dummy; do
5210   IFS=$ac_save_IFS
5211   test -z "$ac_dir" && ac_dir=.
5212   if $as_executable_p "$ac_dir/$ac_word"; then
5213    ac_cv_path_SHPROG="$ac_dir/$ac_word"
5214    echo "$as_me:5214: found $ac_dir/$ac_word" >&5
5215    break
5216 fi
5217 done
5218
5219   ;;
5220 esac
5221 fi
5222 SHPROG=$ac_cv_path_SHPROG
5223
5224 if test -n "$SHPROG"; then
5225   echo "$as_me:5225: result: $SHPROG" >&5
5226 echo "${ECHO_T}$SHPROG" >&6
5227 else
5228   echo "$as_me:5228: result: no" >&5
5229 echo "${ECHO_T}no" >&6
5230 fi
5231
5232   test -n "$SHPROG" && break
5233 done
5234 test -n "$SHPROG" || SHPROG="/bin/sh"
5235
5236 echo "$as_me:5236: checking for posix non-blocking" >&5
5237 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6
5238 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
5239   echo $ECHO_N "(cached) $ECHO_C" >&6
5240 else
5241   if test "$cross_compiling" = yes; then
5242   { { echo "$as_me:5242: error: cannot run test program while cross compiling" >&5
5243 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5244    { (exit 1); exit 1; }; }
5245 else
5246   cat >conftest.$ac_ext <<_ACEOF
5247 #line 5247 "configure"
5248 #include "confdefs.h"
5249 #include <sys/types.h>
5250 #include <sys/socket.h>
5251 #include <fcntl.h>
5252 #include <sys/ioctl.h>
5253 #include <sys/file.h>
5254 #include <signal.h>
5255 $ac_cv_type_signal alarmed() { exit(1); }
5256 int main(void)
5257 {
5258   char b[12];
5259   struct sockaddr x;
5260   size_t l = sizeof(x);
5261   int f = socket(AF_INET, SOCK_DGRAM, 0);
5262   if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
5263   {
5264     signal(SIGALRM, alarmed);
5265     alarm(2);
5266     recvfrom(f, b, 12, 0, &x, &l);
5267     alarm(0);
5268     exit(0);
5269   }
5270   exit(1);
5271 }
5272 _ACEOF
5273 rm -f conftest$ac_exeext
5274 if { (eval echo "$as_me:5274: \"$ac_link\"") >&5
5275   (eval $ac_link) 2>&5
5276   ac_status=$?
5277   echo "$as_me:5277: \$? = $ac_status" >&5
5278   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5279   { (eval echo "$as_me:5279: \"$ac_try\"") >&5
5280   (eval $ac_try) 2>&5
5281   ac_status=$?
5282   echo "$as_me:5282: \$? = $ac_status" >&5
5283   (exit $ac_status); }; }; then
5284   unet_cv_sys_nonblocking_posix=yes
5285 else
5286   echo "$as_me: program exited with status $ac_status" >&5
5287 echo "$as_me: failed program was:" >&5
5288 cat conftest.$ac_ext >&5
5289 unet_cv_sys_nonblocking_posix=no
5290 fi
5291 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5292 fi
5293 fi
5294 echo "$as_me:5294: result: $unet_cv_sys_nonblocking_posix" >&5
5295 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6
5296 if test $unet_cv_sys_nonblocking_posix = yes; then
5297   cat >>confdefs.h <<\EOF
5298 #define NBLOCK_POSIX 1
5299 EOF
5300
5301 else
5302 echo "$as_me:5302: checking for bsd non-blocking" >&5
5303 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6
5304 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
5305   echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307   if test "$cross_compiling" = yes; then
5308   { { echo "$as_me:5308: error: cannot run test program while cross compiling" >&5
5309 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5310    { (exit 1); exit 1; }; }
5311 else
5312   cat >conftest.$ac_ext <<_ACEOF
5313 #line 5313 "configure"
5314 #include "confdefs.h"
5315 #include <sys/types.h>
5316 #include <sys/socket.h>
5317 #include <fcntl.h>
5318 #include <sys/ioctl.h>
5319 #include <sys/file.h>
5320 #include <signal.h>
5321 $ac_cv_type_signal alarmed() { exit(1); }
5322 int main(void)
5323 {
5324   char b[12];
5325   struct sockaddr x;
5326   size_t l = sizeof(x);
5327   int f = socket(AF_INET, SOCK_DGRAM, 0);
5328   if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
5329   {
5330     signal(SIGALRM, alarmed);
5331     alarm(2);
5332     recvfrom(f, b, 12, 0, &x, &l);
5333     alarm(0);
5334     exit(0);
5335   }
5336   exit(1);
5337 }
5338 _ACEOF
5339 rm -f conftest$ac_exeext
5340 if { (eval echo "$as_me:5340: \"$ac_link\"") >&5
5341   (eval $ac_link) 2>&5
5342   ac_status=$?
5343   echo "$as_me:5343: \$? = $ac_status" >&5
5344   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5345   { (eval echo "$as_me:5345: \"$ac_try\"") >&5
5346   (eval $ac_try) 2>&5
5347   ac_status=$?
5348   echo "$as_me:5348: \$? = $ac_status" >&5
5349   (exit $ac_status); }; }; then
5350   unet_cv_sys_nonblocking_bsd=yes
5351 else
5352   echo "$as_me: program exited with status $ac_status" >&5
5353 echo "$as_me: failed program was:" >&5
5354 cat conftest.$ac_ext >&5
5355 unet_cv_sys_nonblocking_bsd=no
5356 fi
5357 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5358 fi
5359 fi
5360 echo "$as_me:5360: result: $unet_cv_sys_nonblocking_bsd" >&5
5361 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6
5362 if test $unet_cv_sys_nonblocking_bsd = yes; then
5363   cat >>confdefs.h <<\EOF
5364 #define NBLOCK_BSD 1
5365 EOF
5366
5367 else
5368   cat >>confdefs.h <<\EOF
5369 #define NBLOCK_SYSV 1
5370 EOF
5371
5372 fi
5373 fi
5374 echo "$as_me:5374: checking for posix signals" >&5
5375 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6
5376 if test "${unet_cv_sys_signal_posix+set}" = set; then
5377   echo $ECHO_N "(cached) $ECHO_C" >&6
5378 else
5379   cat >conftest.$ac_ext <<_ACEOF
5380 #line 5380 "configure"
5381 #include "confdefs.h"
5382 #include <signal.h>
5383 int
5384 main ()
5385 {
5386 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
5387   ;
5388   return 0;
5389 }
5390 _ACEOF
5391 rm -f conftest.$ac_objext
5392 if { (eval echo "$as_me:5392: \"$ac_compile\"") >&5
5393   (eval $ac_compile) 2>&5
5394   ac_status=$?
5395   echo "$as_me:5395: \$? = $ac_status" >&5
5396   (exit $ac_status); } &&
5397          { ac_try='test -s conftest.$ac_objext'
5398   { (eval echo "$as_me:5398: \"$ac_try\"") >&5
5399   (eval $ac_try) 2>&5
5400   ac_status=$?
5401   echo "$as_me:5401: \$? = $ac_status" >&5
5402   (exit $ac_status); }; }; then
5403   unet_cv_sys_signal_posix=yes
5404 else
5405   echo "$as_me: failed program was:" >&5
5406 cat conftest.$ac_ext >&5
5407 unet_cv_sys_signal_posix=no
5408 fi
5409 rm -f conftest.$ac_objext conftest.$ac_ext
5410 fi
5411 echo "$as_me:5411: result: $unet_cv_sys_signal_posix" >&5
5412 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6
5413 if test $unet_cv_sys_signal_posix = yes; then
5414   cat >>confdefs.h <<\EOF
5415 #define POSIX_SIGNALS 1
5416 EOF
5417
5418 else
5419 echo "$as_me:5419: checking for bsd reliable signals" >&5
5420 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6
5421 if test "${unet_cv_sys_signal_bsd+set}" = set; then
5422   echo $ECHO_N "(cached) $ECHO_C" >&6
5423 else
5424   if test "$cross_compiling" = yes; then
5425   { { echo "$as_me:5425: error: cannot run test program while cross compiling" >&5
5426 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5427    { (exit 1); exit 1; }; }
5428 else
5429   cat >conftest.$ac_ext <<_ACEOF
5430 #line 5430 "configure"
5431 #include "confdefs.h"
5432 #include <signal.h>
5433 int calls = 0;
5434 $ac_cv_type_signal handler()
5435 {
5436   if (calls) return;
5437   calls++;
5438   kill(getpid(), SIGTERM);
5439   sleep(1);
5440 }
5441 int main(void)
5442 {
5443   signal(SIGTERM, handler);
5444   kill(getpid(), SIGTERM);
5445   exit (0);
5446 }
5447 _ACEOF
5448 rm -f conftest$ac_exeext
5449 if { (eval echo "$as_me:5449: \"$ac_link\"") >&5
5450   (eval $ac_link) 2>&5
5451   ac_status=$?
5452   echo "$as_me:5452: \$? = $ac_status" >&5
5453   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5454   { (eval echo "$as_me:5454: \"$ac_try\"") >&5
5455   (eval $ac_try) 2>&5
5456   ac_status=$?
5457   echo "$as_me:5457: \$? = $ac_status" >&5
5458   (exit $ac_status); }; }; then
5459   unet_cv_sys_signal_bsd=yes
5460 else
5461   echo "$as_me: program exited with status $ac_status" >&5
5462 echo "$as_me: failed program was:" >&5
5463 cat conftest.$ac_ext >&5
5464 unet_cv_sys_signal_bsd=no
5465 fi
5466 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5467 fi
5468 fi
5469 echo "$as_me:5469: result: $unet_cv_sys_signal_bsd" >&5
5470 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6
5471 if test $unet_cv_sys_signal_bsd = yes; then
5472   cat >>confdefs.h <<\EOF
5473 #define BSD_RELIABLE_SIGNALS 1
5474 EOF
5475
5476 else
5477   cat >>confdefs.h <<\EOF
5478 #define SYSV_UNRELIABLE_SIGNALS 1
5479 EOF
5480
5481 fi
5482 fi
5483
5484 echo "$as_me:5484: checking if the compiler understands -pipe" >&5
5485 echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6
5486 unet_cv_pipe_flags="$ac_cv_c_compiler_gnu"
5487 if test "$ac_cv_c_compiler_gnu" = no; then
5488   OLDCFLAGS="$CFLAGS"
5489   CFLAGS="$CFLAGS -pipe"
5490   cat >conftest.$ac_ext <<_ACEOF
5491 #line 5491 "configure"
5492 #include "confdefs.h"
5493
5494 int
5495 main ()
5496 {
5497
5498   ;
5499   return 0;
5500 }
5501 _ACEOF
5502 rm -f conftest.$ac_objext
5503 if { (eval echo "$as_me:5503: \"$ac_compile\"") >&5
5504   (eval $ac_compile) 2>&5
5505   ac_status=$?
5506   echo "$as_me:5506: \$? = $ac_status" >&5
5507   (exit $ac_status); } &&
5508          { ac_try='test -s conftest.$ac_objext'
5509   { (eval echo "$as_me:5509: \"$ac_try\"") >&5
5510   (eval $ac_try) 2>&5
5511   ac_status=$?
5512   echo "$as_me:5512: \$? = $ac_status" >&5
5513   (exit $ac_status); }; }; then
5514   unet_cv_pipe_flags=yes
5515 else
5516   echo "$as_me: failed program was:" >&5
5517 cat conftest.$ac_ext >&5
5518 fi
5519 rm -f conftest.$ac_objext conftest.$ac_ext
5520   CFLAGS="$OLDCFLAGS"
5521 fi
5522 echo "$as_me:5522: result: $unet_cv_pipe_flags" >&5
5523 echo "${ECHO_T}$unet_cv_pipe_flags" >&6
5524 if test "$unet_cv_pipe_flags" = yes ; then
5525   x=`echo $CFLAGS | grep 'pipe' 2>/dev/null`
5526   if test "$x" = "" ; then
5527     CFLAGS="$CFLAGS -pipe"
5528   fi
5529 fi
5530
5531 echo "$as_me:5531: checking for OS-dependent information" >&5
5532 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6
5533 case "$host" in
5534     *-linux*)
5535         echo "$as_me:5535: result: Linux ($host) found." >&5
5536 echo "${ECHO_T}Linux ($host) found." >&6
5537         unet_poll_syscall=yes
5538         OSDEP_C=os_linux.c
5539         ;;
5540
5541     *-solaris*)
5542         echo "$as_me:5542: result: Solaris ($host) found." >&5
5543 echo "${ECHO_T}Solaris ($host) found." >&6
5544         if test x"$ac_cv_header_poll_h" = xyes; then
5545             unet_poll_syscall=yes
5546         else
5547             unet_poll_syscall=no
5548         fi
5549         OSDEP_C=os_solaris.c
5550         ;;
5551
5552     *-sunos*)
5553         echo "$as_me:5553: result: Solaris ($host) found." >&5
5554 echo "${ECHO_T}Solaris ($host) found." >&6
5555         unet_poll_syscall=no
5556         OSDEP_C=os_solaris.c
5557         ;;
5558
5559     *-openbsd*)
5560         echo "$as_me:5560: result: OpenBSD ($host) found." >&5
5561 echo "${ECHO_T}OpenBSD ($host) found." >&6
5562         if test x"$ac_cv_header_poll_h" = xyes; then
5563             unet_poll_syscall=yes
5564         else
5565             unet_poll_syscall=no
5566         fi
5567         OSDEP_C=os_openbsd.c
5568         ;;
5569
5570     *-*bsd*)
5571         echo "$as_me:5571: result: Generic BSD ($host) found." >&5
5572 echo "${ECHO_T}Generic BSD ($host) found." >&6
5573         if test x"$ac_cv_header_poll_h" = xyes; then
5574             unet_poll_syscall=yes
5575         else
5576             unet_poll_syscall=no
5577         fi
5578         OSDEP_C=os_bsd.c
5579         ;;
5580
5581     *-darwin*)
5582         echo "$as_me:5582: result: Darwin (Mac OS X) ($host) found." >&5
5583 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6
5584         unet_poll_syscall=no
5585         OSDEP_C=os_bsd.c
5586         ;;
5587
5588     *)
5589         echo "$as_me:5589: result: Unknown system type $host found." >&5
5590 echo "${ECHO_T}Unknown system type $host found." >&6
5591         { echo "$as_me:5591: WARNING: Unknown OS type; using generic routines." >&5
5592 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
5593         unet_poll_syscall=no
5594         OSDEP_C=os_generic.c
5595         ;;
5596 esac
5597
5598 echo "$as_me:5598: checking whether to enable use of poll()" >&5
5599 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6
5600 # Check whether --enable-poll or --disable-poll was given.
5601 if test "${enable_poll+set}" = set; then
5602   enableval="$enable_poll"
5603   unet_cv_enable_poll=$enable_poll
5604 else
5605   if test "${unet_cv_enable_poll+set}" = set; then
5606   echo $ECHO_N "(cached) $ECHO_C" >&6
5607 else
5608   unet_cv_enable_poll=$unet_poll_syscall
5609 fi
5610
5611 fi;
5612
5613 # Force poll to be disabled if there is no poll.h
5614 if test x"$ac_cv_header_poll_h" != xyes; then
5615     unet_cv_enable_poll=no
5616 fi
5617
5618 echo "$as_me:5618: result: $unet_cv_enable_poll" >&5
5619 echo "${ECHO_T}$unet_cv_enable_poll" >&6
5620
5621 if test x"$unet_cv_enable_poll" = xyes; then
5622
5623 cat >>confdefs.h <<\EOF
5624 #define USE_POLL
5625 EOF
5626
5627     ENGINE_C=engine_poll.c
5628 else
5629     ENGINE_C=engine_select.c
5630 fi
5631
5632 echo "$as_me:5632: checking whether to enable debug mode" >&5
5633 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6
5634 # Check whether --enable-debug or --disable-debug was given.
5635 if test "${enable_debug+set}" = set; then
5636   enableval="$enable_debug"
5637   unet_cv_enable_debug=$enable_debug
5638 else
5639   if test "${unet_cv_enable_debug+set}" = set; then
5640   echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642   unet_cv_enable_debug=no
5643 fi
5644
5645 fi;
5646 echo "$as_me:5646: result: $unet_cv_enable_debug" >&5
5647 echo "${ECHO_T}$unet_cv_enable_debug" >&6
5648
5649 if test x"$unet_cv_enable_debug" = xyes; then
5650
5651 cat >>confdefs.h <<\EOF
5652 #define DEBUGMODE
5653 EOF
5654
5655 fi
5656
5657 echo "$as_me:5657: checking whether to enable leak detection" >&5
5658 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6
5659
5660 # Check whether --with-leak-detect or --without-leak-detect was given.
5661 if test "${with_leak_detect+set}" = set; then
5662   withval="$with_leak_detect"
5663   unet_cv_with_leak_detect=$with_leak_detect
5664 else
5665   if test "${unet_cv_with_leak_detect+set}" = set; then
5666   echo $ECHO_N "(cached) $ECHO_C" >&6
5667 else
5668   unet_cv_with_leak_detect=no
5669 fi
5670
5671 fi;
5672 echo "$as_me:5672: result: $unet_cv_enable_leak_detect" >&5
5673 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6
5674
5675 if test x"$unet_cv_with_leak_detect" != xno; then
5676     LIBS="-lgc $LIBS"
5677     CFLAGS="-DMDEBUG $CFLAGS"
5678     if test x"$unet_cv_with_leak_detect" != xyes; then
5679        LIBS="-L$unet_cv_with_leak_detect $LIBS"
5680     fi
5681 fi
5682
5683 echo "$as_me:5683: checking whether to enable asserts" >&5
5684 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6
5685 # Check whether --enable-asserts or --disable-asserts was given.
5686 if test "${enable_asserts+set}" = set; then
5687   enableval="$enable_asserts"
5688   unet_cv_enable_asserts=$enable_asserts
5689 else
5690   if test "${unet_cv_enable_asserts+set}" = set; then
5691   echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693   unet_cv_enable_asserts=yes
5694 fi
5695
5696 fi;
5697 echo "$as_me:5697: result: $unet_cv_enable_asserts" >&5
5698 echo "${ECHO_T}$unet_cv_enable_asserts" >&6
5699
5700 if test x"$unet_cv_enable_asserts" = xno; then
5701
5702 cat >>confdefs.h <<\EOF
5703 #define NDEBUG
5704 EOF
5705
5706 fi
5707
5708 echo "$as_me:5708: checking whether to enable debugging symbols" >&5
5709 echo $ECHO_N "checking whether to enable debugging symbols... $ECHO_C" >&6
5710 # Check whether --enable-symbols or --disable-symbols was given.
5711 if test "${enable_symbols+set}" = set; then
5712   enableval="$enable_symbols"
5713   unet_cv_enable_symbols=$enable_symbols
5714 else
5715   if test "${unet_cv_enable_symbols+set}" = set; then
5716   echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718   unet_cv_enable_symbols=yes
5719 fi
5720
5721 fi;
5722 echo "$as_me:5722: result: $unet_cv_enable_symbols" >&5
5723 echo "${ECHO_T}$unet_cv_enable_symbols" >&6
5724
5725 if test x"$unet_cv_enable_symbols" = xyes; then
5726     CFLAGS="-g $CFLAGS"
5727 fi
5728
5729 echo "$as_me:5729: checking whether to enable head in sand 'features'" >&5
5730 echo $ECHO_N "checking whether to enable head in sand 'features'... $ECHO_C" >&6
5731 # Check whether --enable-headinsand or --disable-headinsand was given.
5732 if test "${enable_headinsand+set}" = set; then
5733   enableval="$enable_headinsand"
5734   unet_cv_enable_headinsand=$enable_headinsand
5735 else
5736   if test "${unet_cv_enable_headinsand+set}" = set; then
5737   echo $ECHO_N "(cached) $ECHO_C" >&6
5738 else
5739   unet_cv_enable_headinsand=yes
5740 fi
5741
5742 fi;
5743 echo "$as_me:5743: result: $unet_cv_enable_headinsand" >&5
5744 echo "${ECHO_T}$unet_cv_enable_headinsand" >&6
5745
5746 if test x"$unet_cv_enable_headinsand" = xno; then
5747     CFLAGS="-DNO_HEAD_IN_SAND $CFLAGS"
5748 fi
5749
5750 echo "$as_me:5750: checking whether to enable profiling support (gprof)" >&5
5751 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
5752 # Check whether --enable-profile or --disable-profile was given.
5753 if test "${enable_profile+set}" = set; then
5754   enableval="$enable_profile"
5755   unet_cv_enable_profile=$enable_profile
5756 else
5757   if test "${unet_cv_enable_profile+set}" = set; then
5758   echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760   unet_cv_enable_profile=no
5761 fi
5762
5763 fi;
5764 echo "$as_me:5764: result: $unet_cv_enable_profile" >&5
5765 echo "${ECHO_T}$unet_cv_enable_profile" >&6
5766
5767 if test x"$unet_cv_enable_profile" = xyes; then
5768     CFLAGS="-pg $CFLAGS"
5769 fi
5770
5771 echo "$as_me:5771: checking whether to enable pedantic compiler warnings" >&5
5772 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6
5773 # Check whether --enable-pedantic or --disable-pedantic was given.
5774 if test "${enable_pedantic+set}" = set; then
5775   enableval="$enable_pedantic"
5776   unet_cv_enable_pedantic=$enable_pedantic
5777 else
5778   if test "${unet_cv_enable_pedantic+set}" = set; then
5779   echo $ECHO_N "(cached) $ECHO_C" >&6
5780 else
5781   unet_cv_enable_pedantic=no
5782 fi
5783
5784 fi;
5785 echo "$as_me:5785: result: $unet_cv_enable_pedantic" >&5
5786 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6
5787
5788 if test x"$unet_cv_enable_pedantic" = xyes; then
5789     CFLAGS="-pedantic $CFLAGS"
5790 fi
5791
5792 echo "$as_me:5792: checking whether to enable compiler warnings" >&5
5793 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6
5794 # Check whether --enable-warnings or --disable-warnings was given.
5795 if test "${enable_warnings+set}" = set; then
5796   enableval="$enable_warnings"
5797   unet_cv_enable_warnings=$enable_warnings
5798 else
5799   if test "${unet_cv_enable_warnings+set}" = set; then
5800   echo $ECHO_N "(cached) $ECHO_C" >&6
5801 else
5802   unet_cv_enable_warnings=no
5803 fi
5804
5805 fi;
5806 echo "$as_me:5806: result: $unet_cv_enable_warnings" >&5
5807 echo "${ECHO_T}$unet_cv_enable_warnings" >&6
5808
5809 if test x"$unet_cv_enable_warnings" = xyes; then
5810     CFLAGS="-Wall $CFLAGS"
5811 fi
5812
5813 echo "$as_me:5813: checking whether to enable inlining for a few critical functions" >&5
5814 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6
5815 # Check whether --enable-inlines or --disable-inlines was given.
5816 if test "${enable_inlines+set}" = set; then
5817   enableval="$enable_inlines"
5818   unet_cv_enable_inlines=$enable_inlines
5819 else
5820   if test "${unet_cv_enable_inlines+set}" = set; then
5821   echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823   unet_cv_enable_inlines=yes
5824 fi
5825
5826 fi;
5827 echo "$as_me:5827: result: $unet_cv_enable_inlines" >&5
5828 echo "${ECHO_T}$unet_cv_enable_inlines" >&6
5829
5830 if test x"$unet_cv_enable_inlines" = xyes; then
5831
5832 cat >>confdefs.h <<\EOF
5833 #define FORCEINLINE
5834 EOF
5835
5836 fi
5837
5838 echo "$as_me:5838: checking whether to enable the /dev/poll event engine" >&5
5839 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6
5840 # Check whether --enable-devpoll or --disable-devpoll was given.
5841 if test "${enable_devpoll+set}" = set; then
5842   enableval="$enable_devpoll"
5843   unet_cv_enable_devpoll=$enable_devpoll
5844 else
5845   if test "${unet_cv_enable_devpoll+set}" = set; then
5846   echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848   unet_cv_enable_devpoll=yes
5849 fi
5850
5851 fi;
5852
5853 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
5854     unet_cv_enable_devpoll=no
5855 fi
5856
5857 echo "$as_me:5857: result: $unet_cv_enable_devpoll" >&5
5858 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
5859
5860 if test x"$unet_cv_enable_devpoll" != xno; then
5861
5862 cat >>confdefs.h <<\EOF
5863 #define USE_DEVPOLL
5864 EOF
5865
5866     ENGINE_C="engine_devpoll.c $ENGINE_C"
5867 fi
5868
5869 echo "$as_me:5869: checking whether to enable the kqueue event engine" >&5
5870 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6
5871 # Check whether --enable-kqueue or --disable-kqueue was given.
5872 if test "${enable_kqueue+set}" = set; then
5873   enableval="$enable_kqueue"
5874   unet_cv_enable_kqueue=$enable_kqueue
5875 else
5876   if test "${unet_cv_enable_kqueue+set}" = set; then
5877   echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879   unet_cv_enable_kqueue=yes
5880 fi
5881
5882 fi;
5883
5884 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
5885     unet_cv_enable_kqueue=no
5886 fi
5887
5888 echo "$as_me:5888: result: $unet_cv_enable_kqueue" >&5
5889 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
5890
5891 if test x"$unet_cv_enable_kqueue" != xno; then
5892
5893 cat >>confdefs.h <<\EOF
5894 #define USE_KQUEUE
5895 EOF
5896
5897     ENGINE_C="engine_kqueue.c $ENGINE_C"
5898 fi
5899
5900 echo "$as_me:5900: checking whether to enable the adns resolver engine" >&5
5901 echo $ECHO_N "checking whether to enable the adns resolver engine... $ECHO_C" >&6
5902 # Check whether --enable-adns or --disable-adns was given.
5903 if test "${enable_adns+set}" = set; then
5904   enableval="$enable_adns"
5905   unet_cv_enable_adns=$enable_adns
5906 else
5907   if test "${unet_cv_enable_adns+set}" = set; then
5908   echo $ECHO_N "(cached) $ECHO_C" >&6
5909 else
5910   unet_cv_enable_adns=yes
5911 fi
5912
5913 fi;
5914
5915 echo "$as_me:5915: result: $unet_cv_enable_adns" >&5
5916 echo "${ECHO_T}$unet_cv_enable_adns" >&6
5917
5918 if test x"$unet_cv_enable_adns" != xno; then
5919
5920 cat >>confdefs.h <<\EOF
5921 #define USE_ADNS
5922 EOF
5923
5924 subdirs="$subdirs adns"
5925
5926     RES_C="res_adns.c"
5927     LIBS="../adns/src/libadns.a $LIBS"
5928     ADNS_SUBDIR="adns"
5929 else
5930     RES_C="res_libresolv.c"
5931     ADNS_SUBDIR=""
5932
5933             echo "$as_me:5933: checking for library containing res_mkquery" >&5
5934 echo $ECHO_N "checking for library containing res_mkquery... $ECHO_C" >&6
5935 if test "${ac_cv_search_res_mkquery+set}" = set; then
5936   echo $ECHO_N "(cached) $ECHO_C" >&6
5937 else
5938   ac_func_search_save_LIBS=$LIBS
5939 ac_cv_search_res_mkquery=no
5940 cat >conftest.$ac_ext <<_ACEOF
5941 #line 5941 "configure"
5942 #include "confdefs.h"
5943
5944 /* Override any gcc2 internal prototype to avoid an error.  */
5945 #ifdef __cplusplus
5946 extern "C"
5947 #endif
5948 /* We use char because int might match the return type of a gcc2
5949    builtin and then its argument prototype would still apply.  */
5950 char res_mkquery ();
5951 int
5952 main ()
5953 {
5954 res_mkquery ();
5955   ;
5956   return 0;
5957 }
5958 _ACEOF
5959 rm -f conftest.$ac_objext conftest$ac_exeext
5960 if { (eval echo "$as_me:5960: \"$ac_link\"") >&5
5961   (eval $ac_link) 2>&5
5962   ac_status=$?
5963   echo "$as_me:5963: \$? = $ac_status" >&5
5964   (exit $ac_status); } &&
5965          { ac_try='test -s conftest$ac_exeext'
5966   { (eval echo "$as_me:5966: \"$ac_try\"") >&5
5967   (eval $ac_try) 2>&5
5968   ac_status=$?
5969   echo "$as_me:5969: \$? = $ac_status" >&5
5970   (exit $ac_status); }; }; then
5971   ac_cv_search_res_mkquery="none required"
5972 else
5973   echo "$as_me: failed program was:" >&5
5974 cat conftest.$ac_ext >&5
5975 fi
5976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5977 if test "$ac_cv_search_res_mkquery" = no; then
5978   for ac_lib in resolv; do
5979     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5980     cat >conftest.$ac_ext <<_ACEOF
5981 #line 5981 "configure"
5982 #include "confdefs.h"
5983
5984 /* Override any gcc2 internal prototype to avoid an error.  */
5985 #ifdef __cplusplus
5986 extern "C"
5987 #endif
5988 /* We use char because int might match the return type of a gcc2
5989    builtin and then its argument prototype would still apply.  */
5990 char res_mkquery ();
5991 int
5992 main ()
5993 {
5994 res_mkquery ();
5995   ;
5996   return 0;
5997 }
5998 _ACEOF
5999 rm -f conftest.$ac_objext conftest$ac_exeext
6000 if { (eval echo "$as_me:6000: \"$ac_link\"") >&5
6001   (eval $ac_link) 2>&5
6002   ac_status=$?
6003   echo "$as_me:6003: \$? = $ac_status" >&5
6004   (exit $ac_status); } &&
6005          { ac_try='test -s conftest$ac_exeext'
6006   { (eval echo "$as_me:6006: \"$ac_try\"") >&5
6007   (eval $ac_try) 2>&5
6008   ac_status=$?
6009   echo "$as_me:6009: \$? = $ac_status" >&5
6010   (exit $ac_status); }; }; then
6011   ac_cv_search_res_mkquery="-l$ac_lib"
6012 break
6013 else
6014   echo "$as_me: failed program was:" >&5
6015 cat conftest.$ac_ext >&5
6016 fi
6017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6018   done
6019 fi
6020 LIBS=$ac_func_search_save_LIBS
6021 fi
6022 echo "$as_me:6022: result: $ac_cv_search_res_mkquery" >&5
6023 echo "${ECHO_T}$ac_cv_search_res_mkquery" >&6
6024 if test "$ac_cv_search_res_mkquery" != no; then
6025   test "$ac_cv_search_res_mkquery" = "none required" || LIBS="$ac_cv_search_res_mkquery $LIBS"
6026
6027 else
6028   { { echo "$as_me:6028: error: Unable to find library containing res_mkquery()" >&5
6029 echo "$as_me: error: Unable to find library containing res_mkquery()" >&2;}
6030    { (exit 1); exit 1; }; }
6031 fi
6032
6033 fi
6034
6035 echo "$as_me:6035: checking what name to give the symlink" >&5
6036 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6
6037
6038 # Check whether --with-symlink or --without-symlink was given.
6039 if test "${with_symlink+set}" = set; then
6040   withval="$with_symlink"
6041   unet_cv_with_symlink=$with_symlink
6042 else
6043   if test "${unet_cv_with_symlink+set}" = set; then
6044   echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046   unet_cv_with_symlink="ircd"
6047 fi
6048
6049 fi;
6050
6051 if test x"$unet_cv_with_symlink" = xyes; then
6052     unet_cv_with_symlink="ircd"
6053 fi
6054
6055 echo "$as_me:6055: result: $unet_cv_with_symlink" >&5
6056 echo "${ECHO_T}$unet_cv_with_symlink" >&6
6057
6058 if test x"$unet_cv_with_symlink" = xno; then
6059     INSTALL_RULE=install-no-symlink
6060     SYMLINK=
6061 else
6062     INSTALL_RULE=install-with-symlink
6063     SYMLINK=$unet_cv_with_symlink
6064 fi
6065
6066 echo "$as_me:6066: checking what permissions to set on the installed binary" >&5
6067 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6
6068
6069 # Check whether --with-mode or --without-mode was given.
6070 if test "${with_mode+set}" = set; then
6071   withval="$with_mode"
6072   unet_cv_with_mode=$with_mode
6073 else
6074   if test "${unet_cv_with_mode+set}" = set; then
6075   echo $ECHO_N "(cached) $ECHO_C" >&6
6076 else
6077   unet_cv_with_mode=711
6078 fi
6079
6080 fi;
6081
6082 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
6083     unet_cv_with_mode=711
6084 fi
6085
6086 echo "$as_me:6086: result: $unet_cv_with_mode" >&5
6087 echo "${ECHO_T}$unet_cv_with_mode" >&6
6088
6089 IRCDMODE=$unet_cv_with_mode
6090
6091 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
6092 echo "$as_me:6092: checking which user should own the installed binary" >&5
6093 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6
6094
6095 # Check whether --with-owner or --without-owner was given.
6096 if test "${with_owner+set}" = set; then
6097   withval="$with_owner"
6098   unet_cv_with_owner=$with_owner
6099 else
6100   if test "${unet_cv_with_owner+set}" = set; then
6101   echo $ECHO_N "(cached) $ECHO_C" >&6
6102 else
6103   unet_cv_with_owner=$unet_uid
6104 fi
6105
6106 fi;
6107
6108 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
6109     unet_cv_with_owner=$unet_uid
6110 fi
6111
6112 echo "$as_me:6112: result: $unet_cv_with_owner" >&5
6113 echo "${ECHO_T}$unet_cv_with_owner" >&6
6114
6115 IRCDOWN=$unet_cv_with_owner
6116
6117 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
6118 echo "$as_me:6118: checking which group should own the installed binary" >&5
6119 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6
6120
6121 # Check whether --with-group or --without-group was given.
6122 if test "${with_group+set}" = set; then
6123   withval="$with_group"
6124   unet_cv_with_group=$with_group
6125 else
6126   if test "${unet_cv_with_group+set}" = set; then
6127   echo $ECHO_N "(cached) $ECHO_C" >&6
6128 else
6129   unet_cv_with_group=$unet_gid
6130 fi
6131
6132 fi;
6133
6134 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
6135     unet_cv_with_group=$unet_gid
6136 fi
6137
6138 echo "$as_me:6138: result: $unet_cv_with_group" >&5
6139 echo "${ECHO_T}$unet_cv_with_group" >&6
6140
6141 IRCDGRP=$unet_cv_with_group
6142
6143 unet_domain=
6144 if test -f /etc/resolv.conf; then
6145     unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
6146     if test x"$unet_domain" = x; then
6147         unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
6148     fi
6149 fi
6150 echo "$as_me:6150: checking for site domain name" >&5
6151 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6
6152
6153 # Check whether --with-domain or --without-domain was given.
6154 if test "${with_domain+set}" = set; then
6155   withval="$with_domain"
6156   unet_cv_with_domain=$with_domain
6157 else
6158   if test "${unet_cv_with_domain+set}" = set; then
6159   echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161   unet_cv_with_domain=$unet_domain
6162 fi
6163
6164 fi;
6165
6166 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
6167     unet_cv_with_domain=$unet_domain
6168 fi
6169 if test x"$unet_cv_with_domain" = xno; then
6170     { { echo "$as_me:6170: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
6171 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
6172    { (exit 1); exit 1; }; }
6173 fi
6174
6175 echo "$as_me:6175: result: $unet_cv_with_domain" >&5
6176 echo "${ECHO_T}$unet_cv_with_domain" >&6
6177
6178 cat >>confdefs.h <<EOF
6179 #define DOMAINNAME "*$unet_cv_with_domain"
6180 EOF
6181
6182 echo "$as_me:6182: checking if chroot operation is desired" >&5
6183 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6
6184
6185 # Check whether --with-chroot or --without-chroot was given.
6186 if test "${with_chroot+set}" = set; then
6187   withval="$with_chroot"
6188   unet_cv_with_chroot=$with_chroot
6189 else
6190   if test "${unet_cv_with_chroot+set}" = set; then
6191   echo $ECHO_N "(cached) $ECHO_C" >&6
6192 else
6193   unet_cv_with_chroot=no
6194 fi
6195
6196 fi;
6197
6198 if test x"$unet_cv_with_chroot" = xyes; then
6199     { { echo "$as_me:6199: error: --with-chroot given with no directory.  See doc/readme.chroot." >&5
6200 echo "$as_me: error: --with-chroot given with no directory.  See doc/readme.chroot." >&2;}
6201    { (exit 1); exit 1; }; }
6202 fi
6203
6204 # Ensure there are no trailing /'s to mess us up
6205 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
6206
6207 echo "$as_me:6207: result: $unet_cv_with_chroot" >&5
6208 echo "${ECHO_T}$unet_cv_with_chroot" >&6
6209
6210 # Deal with the annoying value "NONE" here
6211 unet_save_prefix=$prefix
6212 if test x"$prefix" = xNONE; then
6213     prefix=$ac_default_prefix
6214 else
6215     prefix=$prefix
6216 fi
6217
6218 unet_save_exec_prefix=$exec_prefix
6219 if test x"$exec_prefix" = xNONE; then
6220     exec_prefix=$prefix
6221 else
6222     exec_prefix=$exec_prefix
6223 fi
6224
6225 # Obtain the actual interesting directories
6226 unet_bindir=`eval echo "$bindir"`
6227 unet_libdir=`eval echo "$libdir"`
6228
6229 # Restore the original settings of $prefix and $exec_prefix
6230 prefix=$unet_save_prefix
6231 exec_prefix=$unet_save_exec_prefix
6232
6233 echo "$as_me:6233: checking where the binary will be for /restart" >&5
6234 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6
6235 if test x"$unet_cv_with_symlink" = xno; then
6236     unet_spath="$unet_bindir/ircd"
6237 else
6238     unet_spath="$unet_bindir/$unet_cv_with_symlink"
6239 fi
6240 echo "$as_me:6240: result: $unet_spath" >&5
6241 echo "${ECHO_T}$unet_spath" >&6
6242
6243 if test x"$unet_cv_with_chroot" != xno; then
6244     if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
6245         unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
6246     else
6247         { echo "$as_me:6247: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
6248 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
6249     fi
6250 fi
6251
6252 cat >>confdefs.h <<EOF
6253 #define SPATH "$unet_spath"
6254 EOF
6255
6256 echo "$as_me:6256: checking what the data directory should be" >&5
6257 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6
6258
6259 # Check whether --with-dpath or --without-dpath was given.
6260 if test "${with_dpath+set}" = set; then
6261   withval="$with_dpath"
6262   unet_cv_with_dpath=$with_dpath
6263 else
6264   if test "${unet_cv_with_dpath+set}" = set; then
6265   echo $ECHO_N "(cached) $ECHO_C" >&6
6266 else
6267   unet_cv_with_dpath=$unet_libdir
6268 fi
6269
6270 fi;
6271
6272 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
6273     unet_cv_with_dpath=$unet_libdir
6274 fi
6275
6276 # Ensure there are no trailing /'s to mess us up
6277 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
6278
6279 echo "$as_me:6279: result: $unet_cv_with_dpath" >&5
6280 echo "${ECHO_T}$unet_cv_with_dpath" >&6
6281
6282 if test x"$unet_cv_with_chroot" != xno; then
6283     if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
6284         unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
6285     else
6286         { { echo "$as_me:6286: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
6287 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
6288    { (exit 1); exit 1; }; }
6289     fi
6290 else
6291     unet_dpath=$unet_cv_with_dpath
6292 fi
6293
6294 cat >>confdefs.h <<EOF
6295 #define DPATH "$unet_dpath"
6296 EOF
6297
6298 DPATH=$unet_cv_with_dpath
6299
6300 echo "$as_me:6300: checking where the default configuration file resides" >&5
6301 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6
6302
6303 # Check whether --with-cpath or --without-cpath was given.
6304 if test "${with_cpath+set}" = set; then
6305   withval="$with_cpath"
6306   unet_cv_with_cpath=$with_cpath
6307 else
6308   if test "${unet_cv_with_cpath+set}" = set; then
6309   echo $ECHO_N "(cached) $ECHO_C" >&6
6310 else
6311   unet_cv_with_cpath="ircd.conf"
6312 fi
6313
6314 fi;
6315
6316 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
6317     unet_cv_with_cpath="ircd.conf"
6318 fi
6319
6320 echo "$as_me:6320: result: $unet_cv_with_cpath" >&5
6321 echo "${ECHO_T}$unet_cv_with_cpath" >&6
6322
6323 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
6324     # Absolute path; check against chroot stuff
6325     if test x"$unet_cv_with_chroot" != xno; then
6326         if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
6327             unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
6328         else
6329             { { echo "$as_me:6329: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
6330 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
6331    { (exit 1); exit 1; }; }
6332         fi
6333     else
6334         unet_cpath=$unet_cv_with_cpath
6335     fi
6336 else
6337     unet_cpath=$unet_cv_with_cpath
6338 fi
6339
6340 cat >>confdefs.h <<EOF
6341 #define CPATH "$unet_cpath"
6342 EOF
6343
6344 echo "$as_me:6344: checking where to put the debugging log if debugging enabled" >&5
6345 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6
6346
6347 # Check whether --with-lpath or --without-lpath was given.
6348 if test "${with_lpath+set}" = set; then
6349   withval="$with_lpath"
6350   unet_cv_with_lpath=$with_lpath
6351 else
6352   if test "${unet_cv_with_lpath+set}" = set; then
6353   echo $ECHO_N "(cached) $ECHO_C" >&6
6354 else
6355   unet_cv_with_lpath="ircd.log"
6356 fi
6357
6358 fi;
6359
6360 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
6361     unet_cv_with_lpath="ircd.log"
6362 fi
6363
6364 echo "$as_me:6364: result: $unet_cv_with_lpath" >&5
6365 echo "${ECHO_T}$unet_cv_with_lpath" >&6
6366
6367 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
6368     # Absolute path; check against chroot stuff
6369     if test x"$unet_cv_with_chroot" != xno; then
6370         if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
6371             unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
6372         else
6373             { echo "$as_me:6373: WARNING: Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead" >&5
6374 echo "$as_me: WARNING: Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead" >&2;}
6375             unet_cv_with_lpath="ircd.log"
6376             unet_lpath="ircd.log"
6377         fi
6378     else
6379         unet_lpath=$unet_cv_with_lpath
6380     fi
6381 else
6382     unet_lpath=$unet_cv_with_lpath
6383 fi
6384
6385 cat >>confdefs.h <<EOF
6386 #define LPATH "$unet_lpath"
6387 EOF
6388
6389 unet_maxcon=`ulimit -Hn`
6390 unet_maxcon=`expr $unet_maxcon - 4`
6391 echo "$as_me:6391: checking max connections" >&5
6392 echo $ECHO_N "checking max connections... $ECHO_C" >&6
6393
6394 # Check whether --with-maxcon or --without-maxcon was given.
6395 if test "${with_maxcon+set}" = set; then
6396   withval="$with_maxcon"
6397   unet_cv_with_maxcon=$with_maxcon
6398 else
6399   if test "${unet_cv_with_maxcon+set}" = set; then
6400   echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402   unet_cv_with_maxcon=$unet_maxcon
6403 fi
6404
6405 fi;
6406
6407 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
6408     unet_cv_with_maxcon=$unet_maxcon
6409 fi
6410
6411 echo "$as_me:6411: result: $unet_cv_with_maxcon" >&5
6412 echo "${ECHO_T}$unet_cv_with_maxcon" >&6
6413
6414 cat >>confdefs.h <<EOF
6415 #define MAXCONNECTIONS $unet_cv_with_maxcon
6416 EOF
6417
6418 ac_config_files="$ac_config_files Makefile ircd/Makefile doc/Makefile"
6419 ac_config_commands="$ac_config_commands default"
6420 cat >confcache <<\_ACEOF
6421 # This file is a shell script that caches the results of configure
6422 # tests run on this system so they can be shared between configure
6423 # scripts and configure runs, see configure's option --config-cache.
6424 # It is not useful on other systems.  If it contains results you don't
6425 # want to keep, you may remove or edit it.
6426 #
6427 # config.status only pays attention to the cache file if you give it
6428 # the --recheck option to rerun configure.
6429 #
6430 # `ac_cv_env_foo' variables (set or unset) will be overriden when
6431 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6432 # following values.
6433
6434 _ACEOF
6435
6436 # The following way of writing the cache mishandles newlines in values,
6437 # but we know of no workaround that is simple, portable, and efficient.
6438 # So, don't put newlines in cache variables' values.
6439 # Ultrix sh set writes to stderr and can't be redirected directly,
6440 # and sets the high bit in the cache file unless we assign to the vars.
6441 {
6442   (set) 2>&1 |
6443     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6444     *ac_space=\ *)
6445       # `set' does not quote correctly, so add quotes (double-quote
6446       # substitution turns \\\\ into \\, and sed turns \\ into \).
6447       sed -n \
6448         "s/'/'\\\\''/g;
6449           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6450       ;;
6451     *)
6452       # `set' quotes correctly as required by POSIX, so do not add quotes.
6453       sed -n \
6454         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6455       ;;
6456     esac;
6457 } |
6458   sed '
6459      t clear
6460      : clear
6461      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6462      t end
6463      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6464      : end' >>confcache
6465 if cmp -s $cache_file confcache; then :; else
6466   if test -w $cache_file; then
6467     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6468     cat confcache >$cache_file
6469   else
6470     echo "not updating unwritable cache $cache_file"
6471   fi
6472 fi
6473 rm -f confcache
6474
6475 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6476 # Let make expand exec_prefix.
6477 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6478
6479 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6480 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6481 # trailing colons and then remove the whole line if VPATH becomes empty
6482 # (actually we leave an empty line to preserve line numbers).
6483 if test "x$srcdir" = x.; then
6484   ac_vpsub='/^[         ]*VPATH[        ]*=/{
6485 s/:*\$(srcdir):*/:/;
6486 s/:*\${srcdir}:*/:/;
6487 s/:*@srcdir@:*/:/;
6488 s/^\([^=]*=[    ]*\):*/\1/;
6489 s/:*$//;
6490 s/^[^=]*=[      ]*$//;
6491 }'
6492 fi
6493
6494 DEFS=-DHAVE_CONFIG_H
6495
6496 : ${CONFIG_STATUS=./config.status}
6497 ac_clean_files_save=$ac_clean_files
6498 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6499 { echo "$as_me:6499: creating $CONFIG_STATUS" >&5
6500 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6501 cat >$CONFIG_STATUS <<_ACEOF
6502 #! $SHELL
6503 # Generated automatically by configure.
6504 # Run this file to recreate the current configuration.
6505 # Compiler output produced by configure, useful for debugging
6506 # configure, is in config.log if it exists.
6507
6508 debug=false
6509 SHELL=\${CONFIG_SHELL-$SHELL}
6510 ac_cs_invocation="\$0 \$@"
6511
6512 _ACEOF
6513
6514 cat >>$CONFIG_STATUS <<\_ACEOF
6515 # Be Bourne compatible
6516 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6517   emulate sh
6518   NULLCMD=:
6519 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6520   set -o posix
6521 fi
6522
6523 # Name of the executable.
6524 as_me=`echo "$0" |sed 's,.*[\\/],,'`
6525
6526 if expr a : '\(a\)' >/dev/null 2>&1; then
6527   as_expr=expr
6528 else
6529   as_expr=false
6530 fi
6531
6532 rm -f conf$$ conf$$.exe conf$$.file
6533 echo >conf$$.file
6534 if ln -s conf$$.file conf$$ 2>/dev/null; then
6535   # We could just check for DJGPP; but this test a) works b) is more generic
6536   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6537   if test -f conf$$.exe; then
6538     # Don't use ln at all; we don't have any links
6539     as_ln_s='cp -p'
6540   else
6541     as_ln_s='ln -s'
6542   fi
6543 elif ln conf$$.file conf$$ 2>/dev/null; then
6544   as_ln_s=ln
6545 else
6546   as_ln_s='cp -p'
6547 fi
6548 rm -f conf$$ conf$$.exe conf$$.file
6549
6550 as_executable_p="test -f"
6551
6552 # Support unset when possible.
6553 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6554   as_unset=unset
6555 else
6556   as_unset=false
6557 fi
6558
6559 # NLS nuisances.
6560 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
6561 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
6562 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
6563 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
6564 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
6565 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
6566 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
6567 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
6568
6569 # IFS
6570 # We need space, tab and new line, in precisely that order.
6571 as_nl='
6572 '
6573 IFS="   $as_nl"
6574
6575 # CDPATH.
6576 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
6577
6578 exec 6>&1
6579
6580 _ACEOF
6581
6582 # Files that config.status was made for.
6583 if test -n "$ac_config_files"; then
6584   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6585 fi
6586
6587 if test -n "$ac_config_headers"; then
6588   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6589 fi
6590
6591 if test -n "$ac_config_links"; then
6592   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6593 fi
6594
6595 if test -n "$ac_config_commands"; then
6596   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6597 fi
6598
6599 cat >>$CONFIG_STATUS <<\EOF
6600
6601 ac_cs_usage="\
6602 \`$as_me' instantiates files from templates according to the
6603 current configuration.
6604
6605 Usage: $0 [OPTIONS] [FILE]...
6606
6607   -h, --help       print this help, then exit
6608   -V, --version    print version number, then exit
6609   -d, --debug      don't remove temporary files
6610       --recheck    update $as_me by reconfiguring in the same conditions
6611   --file=FILE[:TEMPLATE]
6612                    instantiate the configuration file FILE
6613   --header=FILE[:TEMPLATE]
6614                    instantiate the configuration header FILE
6615
6616 Configuration files:
6617 $config_files
6618
6619 Configuration headers:
6620 $config_headers
6621
6622 Configuration commands:
6623 $config_commands
6624
6625 Report bugs to <bug-autoconf@gnu.org>."
6626 EOF
6627
6628 cat >>$CONFIG_STATUS <<EOF
6629 ac_cs_version="\\
6630 config.status
6631 configured by $0, generated by GNU Autoconf 2.52,
6632   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6633
6634 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6635 Free Software Foundation, Inc.
6636 This config.status script is free software; the Free Software Foundation
6637 gives unlimited permission to copy, distribute and modify it."
6638 srcdir=$srcdir
6639 INSTALL="$INSTALL"
6640 EOF
6641
6642 cat >>$CONFIG_STATUS <<\EOF
6643 # If no file are specified by the user, then we need to provide default
6644 # value.  By we need to know if files were specified by the user.
6645 ac_need_defaults=:
6646 while test $# != 0
6647 do
6648   case $1 in
6649   --*=*)
6650     ac_option=`expr "x$1" : 'x\([^=]*\)='`
6651     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6652     shift
6653     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
6654     shift
6655     ;;
6656   -*);;
6657   *) # This is not an option, so the user has probably given explicit
6658      # arguments.
6659      ac_need_defaults=false;;
6660   esac
6661
6662   case $1 in
6663   # Handling of the options.
6664 EOF
6665 cat >>$CONFIG_STATUS <<EOF
6666   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6667     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
6668     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
6669 EOF
6670 cat >>$CONFIG_STATUS <<\EOF
6671   --version | --vers* | -V )
6672     echo "$ac_cs_version"; exit 0 ;;
6673   --he | --h)
6674     # Conflict between --help and --header
6675     { { echo "$as_me:6675: error: ambiguous option: $1
6676 Try \`$0 --help' for more information." >&5
6677 echo "$as_me: error: ambiguous option: $1
6678 Try \`$0 --help' for more information." >&2;}
6679    { (exit 1); exit 1; }; };;
6680   --help | --hel | -h )
6681     echo "$ac_cs_usage"; exit 0 ;;
6682   --debug | --d* | -d )
6683     debug=: ;;
6684   --file | --fil | --fi | --f )
6685     shift
6686     CONFIG_FILES="$CONFIG_FILES $1"
6687     ac_need_defaults=false;;
6688   --header | --heade | --head | --hea )
6689     shift
6690     CONFIG_HEADERS="$CONFIG_HEADERS $1"
6691     ac_need_defaults=false;;
6692
6693   # This is an error.
6694   -*) { { echo "$as_me:6694: error: unrecognized option: $1
6695 Try \`$0 --help' for more information." >&5
6696 echo "$as_me: error: unrecognized option: $1
6697 Try \`$0 --help' for more information." >&2;}
6698    { (exit 1); exit 1; }; } ;;
6699
6700   *) ac_config_targets="$ac_config_targets $1" ;;
6701
6702   esac
6703   shift
6704 done
6705
6706 exec 5>>config.log
6707 cat >&5 << _ACEOF
6708
6709 ## ----------------------- ##
6710 ## Running config.status.  ##
6711 ## ----------------------- ##
6712
6713 This file was extended by $as_me 2.52, executed with
6714   CONFIG_FILES    = $CONFIG_FILES
6715   CONFIG_HEADERS  = $CONFIG_HEADERS
6716   CONFIG_LINKS    = $CONFIG_LINKS
6717   CONFIG_COMMANDS = $CONFIG_COMMANDS
6718   > $ac_cs_invocation
6719 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6720
6721 _ACEOF
6722 EOF
6723
6724 cat >>$CONFIG_STATUS <<\EOF
6725 for ac_config_target in $ac_config_targets
6726 do
6727   case "$ac_config_target" in
6728   # Handling of arguments.
6729   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6730   "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
6731   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
6732   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6733   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6734   *) { { echo "$as_me:6734: error: invalid argument: $ac_config_target" >&5
6735 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6736    { (exit 1); exit 1; }; };;
6737   esac
6738 done
6739
6740 # If the user did not use the arguments to specify the items to instantiate,
6741 # then the envvar interface is used.  Set only those that are not.
6742 # We use the long form for the default assignment because of an extremely
6743 # bizarre bug on SunOS 4.1.3.
6744 if $ac_need_defaults; then
6745   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6746   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6747   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6748 fi
6749
6750 # Create a temporary directory, and hook for its removal unless debugging.
6751 $debug ||
6752 {
6753   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6754   trap '{ (exit 1); exit 1; }' 1 2 13 15
6755 }
6756
6757 # Create a (secure) tmp directory for tmp files.
6758 : ${TMPDIR=/tmp}
6759 {
6760   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
6761   test -n "$tmp" && test -d "$tmp"
6762 }  ||
6763 {
6764   tmp=$TMPDIR/cs$$-$RANDOM
6765   (umask 077 && mkdir $tmp)
6766 } ||
6767 {
6768    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6769    { (exit 1); exit 1; }
6770 }
6771
6772 EOF
6773
6774 cat >>$CONFIG_STATUS <<EOF
6775
6776 #
6777 # CONFIG_FILES section.
6778 #
6779
6780 # No need to generate the scripts if there are no CONFIG_FILES.
6781 # This happens for instance when ./config.status config.h
6782 if test -n "\$CONFIG_FILES"; then
6783   # Protect against being on the right side of a sed subst in config.status.
6784   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6785    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6786 s,@SHELL@,$SHELL,;t t
6787 s,@exec_prefix@,$exec_prefix,;t t
6788 s,@prefix@,$prefix,;t t
6789 s,@program_transform_name@,$program_transform_name,;t t
6790 s,@bindir@,$bindir,;t t
6791 s,@sbindir@,$sbindir,;t t
6792 s,@libexecdir@,$libexecdir,;t t
6793 s,@datadir@,$datadir,;t t
6794 s,@sysconfdir@,$sysconfdir,;t t
6795 s,@sharedstatedir@,$sharedstatedir,;t t
6796 s,@localstatedir@,$localstatedir,;t t
6797 s,@libdir@,$libdir,;t t
6798 s,@includedir@,$includedir,;t t
6799 s,@oldincludedir@,$oldincludedir,;t t
6800 s,@infodir@,$infodir,;t t
6801 s,@mandir@,$mandir,;t t
6802 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6803 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6804 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6805 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6806 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6807 s,@build_alias@,$build_alias,;t t
6808 s,@host_alias@,$host_alias,;t t
6809 s,@target_alias@,$target_alias,;t t
6810 s,@ECHO_C@,$ECHO_C,;t t
6811 s,@ECHO_N@,$ECHO_N,;t t
6812 s,@ECHO_T@,$ECHO_T,;t t
6813 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6814 s,@DEFS@,$DEFS,;t t
6815 s,@LIBS@,$LIBS,;t t
6816 s,@build@,$build,;t t
6817 s,@build_cpu@,$build_cpu,;t t
6818 s,@build_vendor@,$build_vendor,;t t
6819 s,@build_os@,$build_os,;t t
6820 s,@host@,$host,;t t
6821 s,@host_cpu@,$host_cpu,;t t
6822 s,@host_vendor@,$host_vendor,;t t
6823 s,@host_os@,$host_os,;t t
6824 s,@CC@,$CC,;t t
6825 s,@CFLAGS@,$CFLAGS,;t t
6826 s,@LDFLAGS@,$LDFLAGS,;t t
6827 s,@CPPFLAGS@,$CPPFLAGS,;t t
6828 s,@ac_ct_CC@,$ac_ct_CC,;t t
6829 s,@EXEEXT@,$EXEEXT,;t t
6830 s,@OBJEXT@,$OBJEXT,;t t
6831 s,@CPP@,$CPP,;t t
6832 s,@AWK@,$AWK,;t t
6833 s,@SET_MAKE@,$SET_MAKE,;t t
6834 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6835 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6836 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6837 s,@LN_S@,$LN_S,;t t
6838 s,@RMPROG@,$RMPROG,;t t
6839 s,@SHPROG@,$SHPROG,;t t
6840 s,@OSDEP_C@,$OSDEP_C,;t t
6841 s,@ENGINE_C@,$ENGINE_C,;t t
6842 s,@subdirs@,$subdirs,;t t
6843 s,@RES_C@,$RES_C,;t t
6844 s,@ADNS_SUBDIR@,$ADNS_SUBDIR,;t t
6845 s,@INSTALL_RULE@,$INSTALL_RULE,;t t
6846 s,@SYMLINK@,$SYMLINK,;t t
6847 s,@IRCDMODE@,$IRCDMODE,;t t
6848 s,@IRCDOWN@,$IRCDOWN,;t t
6849 s,@IRCDGRP@,$IRCDGRP,;t t
6850 s,@DPATH@,$DPATH,;t t
6851 CEOF
6852
6853 EOF
6854
6855   cat >>$CONFIG_STATUS <<\EOF
6856   # Split the substitutions into bite-sized pieces for seds with
6857   # small command number limits, like on Digital OSF/1 and HP-UX.
6858   ac_max_sed_lines=48
6859   ac_sed_frag=1 # Number of current file.
6860   ac_beg=1 # First line for current file.
6861   ac_end=$ac_max_sed_lines # Line after last line for current file.
6862   ac_more_lines=:
6863   ac_sed_cmds=
6864   while $ac_more_lines; do
6865     if test $ac_beg -gt 1; then
6866       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6867     else
6868       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6869     fi
6870     if test ! -s $tmp/subs.frag; then
6871       ac_more_lines=false
6872     else
6873       # The purpose of the label and of the branching condition is to
6874       # speed up the sed processing (if there are no `@' at all, there
6875       # is no need to browse any of the substitutions).
6876       # These are the two extra sed commands mentioned above.
6877       (echo ':t
6878   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6879       if test -z "$ac_sed_cmds"; then
6880         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6881       else
6882         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6883       fi
6884       ac_sed_frag=`expr $ac_sed_frag + 1`
6885       ac_beg=$ac_end
6886       ac_end=`expr $ac_end + $ac_max_sed_lines`
6887     fi
6888   done
6889   if test -z "$ac_sed_cmds"; then
6890     ac_sed_cmds=cat
6891   fi
6892 fi # test -n "$CONFIG_FILES"
6893
6894 EOF
6895 cat >>$CONFIG_STATUS <<\EOF
6896 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6897   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6898   case $ac_file in
6899   - | *:- | *:-:* ) # input from stdin
6900         cat >$tmp/stdin
6901         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6902         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6903   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6904         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6905   * )   ac_file_in=$ac_file.in ;;
6906   esac
6907
6908   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6909   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6910          X"$ac_file" : 'X\(//\)[^/]' \| \
6911          X"$ac_file" : 'X\(//\)$' \| \
6912          X"$ac_file" : 'X\(/\)' \| \
6913          .     : '\(.\)' 2>/dev/null ||
6914 echo X"$ac_file" |
6915     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6916           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6917           /^X\(\/\/\)$/{ s//\1/; q; }
6918           /^X\(\/\).*/{ s//\1/; q; }
6919           s/.*/./; q'`
6920   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6921     { case "$ac_dir" in
6922   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6923   *)                      as_incr_dir=.;;
6924 esac
6925 as_dummy="$ac_dir"
6926 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6927   case $as_mkdir_dir in
6928     # Skip DOS drivespec
6929     ?:) as_incr_dir=$as_mkdir_dir ;;
6930     *)
6931       as_incr_dir=$as_incr_dir/$as_mkdir_dir
6932       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
6933     ;;
6934   esac
6935 done; }
6936
6937     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
6938     # A "../" for each directory in $ac_dir_suffix.
6939     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
6940   else
6941     ac_dir_suffix= ac_dots=
6942   fi
6943
6944   case $srcdir in
6945   .)  ac_srcdir=.
6946       if test -z "$ac_dots"; then
6947          ac_top_srcdir=.
6948       else
6949          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
6950       fi ;;
6951   [\\/]* | ?:[\\/]* )
6952       ac_srcdir=$srcdir$ac_dir_suffix;
6953       ac_top_srcdir=$srcdir ;;
6954   *) # Relative path.
6955     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
6956     ac_top_srcdir=$ac_dots$srcdir ;;
6957   esac
6958
6959   case $INSTALL in
6960   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6961   *) ac_INSTALL=$ac_dots$INSTALL ;;
6962   esac
6963
6964   if test x"$ac_file" != x-; then
6965     { echo "$as_me:6965: creating $ac_file" >&5
6966 echo "$as_me: creating $ac_file" >&6;}
6967     rm -f "$ac_file"
6968   fi
6969   # Let's still pretend it is `configure' which instantiates (i.e., don't
6970   # use $as_me), people would be surprised to read:
6971   #    /* config.h.  Generated automatically by config.status.  */
6972   configure_input="Generated automatically from `echo $ac_file_in |
6973                                                  sed 's,.*/,,'` by configure."
6974
6975   # First look for the input files in the build tree, otherwise in the
6976   # src tree.
6977   ac_file_inputs=`IFS=:
6978     for f in $ac_file_in; do
6979       case $f in
6980       -) echo $tmp/stdin ;;
6981       [\\/$]*)
6982          # Absolute (can't be DOS-style, as IFS=:)
6983          test -f "$f" || { { echo "$as_me:6983: error: cannot find input file: $f" >&5
6984 echo "$as_me: error: cannot find input file: $f" >&2;}
6985    { (exit 1); exit 1; }; }
6986          echo $f;;
6987       *) # Relative
6988          if test -f "$f"; then
6989            # Build tree
6990            echo $f
6991          elif test -f "$srcdir/$f"; then
6992            # Source tree
6993            echo $srcdir/$f
6994          else
6995            # /dev/null tree
6996            { { echo "$as_me:6996: error: cannot find input file: $f" >&5
6997 echo "$as_me: error: cannot find input file: $f" >&2;}
6998    { (exit 1); exit 1; }; }
6999          fi;;
7000       esac
7001     done` || { (exit 1); exit 1; }
7002 EOF
7003 cat >>$CONFIG_STATUS <<EOF
7004   sed "$ac_vpsub
7005 $extrasub
7006 EOF
7007 cat >>$CONFIG_STATUS <<\EOF
7008 :t
7009 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7010 s,@configure_input@,$configure_input,;t t
7011 s,@srcdir@,$ac_srcdir,;t t
7012 s,@top_srcdir@,$ac_top_srcdir,;t t
7013 s,@INSTALL@,$ac_INSTALL,;t t
7014 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7015   rm -f $tmp/stdin
7016   if test x"$ac_file" != x-; then
7017     mv $tmp/out $ac_file
7018   else
7019     cat $tmp/out
7020     rm -f $tmp/out
7021   fi
7022
7023 done
7024 EOF
7025 cat >>$CONFIG_STATUS <<\EOF
7026
7027 #
7028 # CONFIG_HEADER section.
7029 #
7030
7031 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7032 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7033 #
7034 # ac_d sets the value in "#define NAME VALUE" lines.
7035 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
7036 ac_dB='[        ].*$,\1#\2'
7037 ac_dC=' '
7038 ac_dD=',;t'
7039 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7040 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7041 ac_uB='$,\1#\2define\3'
7042 ac_uC=' '
7043 ac_uD=',;t'
7044
7045 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7046   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7047   case $ac_file in
7048   - | *:- | *:-:* ) # input from stdin
7049         cat >$tmp/stdin
7050         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7051         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7052   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7053         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7054   * )   ac_file_in=$ac_file.in ;;
7055   esac
7056
7057   test x"$ac_file" != x- && { echo "$as_me:7057: creating $ac_file" >&5
7058 echo "$as_me: creating $ac_file" >&6;}
7059
7060   # First look for the input files in the build tree, otherwise in the
7061   # src tree.
7062   ac_file_inputs=`IFS=:
7063     for f in $ac_file_in; do
7064       case $f in
7065       -) echo $tmp/stdin ;;
7066       [\\/$]*)
7067          # Absolute (can't be DOS-style, as IFS=:)
7068          test -f "$f" || { { echo "$as_me:7068: error: cannot find input file: $f" >&5
7069 echo "$as_me: error: cannot find input file: $f" >&2;}
7070    { (exit 1); exit 1; }; }
7071          echo $f;;
7072       *) # Relative
7073          if test -f "$f"; then
7074            # Build tree
7075            echo $f
7076          elif test -f "$srcdir/$f"; then
7077            # Source tree
7078            echo $srcdir/$f
7079          else
7080            # /dev/null tree
7081            { { echo "$as_me:7081: error: cannot find input file: $f" >&5
7082 echo "$as_me: error: cannot find input file: $f" >&2;}
7083    { (exit 1); exit 1; }; }
7084          fi;;
7085       esac
7086     done` || { (exit 1); exit 1; }
7087   # Remove the trailing spaces.
7088   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
7089
7090 EOF
7091
7092 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7093 # `conftest.undefs', that substitutes the proper values into
7094 # config.h.in to produce config.h.  The first handles `#define'
7095 # templates, and the second `#undef' templates.
7096 # And first: Protect against being on the right side of a sed subst in
7097 # config.status.  Protect against being in an unquoted here document
7098 # in config.status.
7099 rm -f conftest.defines conftest.undefs
7100 # Using a here document instead of a string reduces the quoting nightmare.
7101 # Putting comments in sed scripts is not portable.
7102 #
7103 # `end' is used to avoid that the second main sed command (meant for
7104 # 0-ary CPP macros) applies to n-ary macro definitions.
7105 # See the Autoconf documentation for `clear'.
7106 cat >confdef2sed.sed <<\EOF
7107 s/[\\&,]/\\&/g
7108 s,[\\$`],\\&,g
7109 t clear
7110 : clear
7111 s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
7112 t end
7113 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7114 : end
7115 EOF
7116 # If some macros were called several times there might be several times
7117 # the same #defines, which is useless.  Nevertheless, we may not want to
7118 # sort them, since we want the *last* AC-DEFINE to be honored.
7119 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7120 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7121 rm -f confdef2sed.sed
7122
7123 # This sed command replaces #undef with comments.  This is necessary, for
7124 # example, in the case of _POSIX_SOURCE, which is predefined and required
7125 # on some systems where configure will not decide to define it.
7126 cat >>conftest.undefs <<\EOF
7127 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7128 EOF
7129
7130 # Break up conftest.defines because some shells have a limit on the size
7131 # of here documents, and old seds have small limits too (100 cmds).
7132 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7133 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7134 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7135 echo '  :' >>$CONFIG_STATUS
7136 rm -f conftest.tail
7137 while grep . conftest.defines >/dev/null
7138 do
7139   # Write a limited-size here document to $tmp/defines.sed.
7140   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7141   # Speed up: don't consider the non `#define' lines.
7142   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
7143   # Work around the forget-to-reset-the-flag bug.
7144   echo 't clr' >>$CONFIG_STATUS
7145   echo ': clr' >>$CONFIG_STATUS
7146   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7147   echo 'CEOF
7148   sed -f $tmp/defines.sed $tmp/in >$tmp/out
7149   rm -f $tmp/in
7150   mv $tmp/out $tmp/in
7151 ' >>$CONFIG_STATUS
7152   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7153   rm -f conftest.defines
7154   mv conftest.tail conftest.defines
7155 done
7156 rm -f conftest.defines
7157 echo '  fi # egrep' >>$CONFIG_STATUS
7158 echo >>$CONFIG_STATUS
7159
7160 # Break up conftest.undefs because some shells have a limit on the size
7161 # of here documents, and old seds have small limits too (100 cmds).
7162 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7163 rm -f conftest.tail
7164 while grep . conftest.undefs >/dev/null
7165 do
7166   # Write a limited-size here document to $tmp/undefs.sed.
7167   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7168   # Speed up: don't consider the non `#undef'
7169   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
7170   # Work around the forget-to-reset-the-flag bug.
7171   echo 't clr' >>$CONFIG_STATUS
7172   echo ': clr' >>$CONFIG_STATUS
7173   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7174   echo 'CEOF
7175   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7176   rm -f $tmp/in
7177   mv $tmp/out $tmp/in
7178 ' >>$CONFIG_STATUS
7179   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7180   rm -f conftest.undefs
7181   mv conftest.tail conftest.undefs
7182 done
7183 rm -f conftest.undefs
7184
7185 cat >>$CONFIG_STATUS <<\EOF
7186   # Let's still pretend it is `configure' which instantiates (i.e., don't
7187   # use $as_me), people would be surprised to read:
7188   #    /* config.h.  Generated automatically by config.status.  */
7189   if test x"$ac_file" = x-; then
7190     echo "/* Generated automatically by configure.  */" >$tmp/config.h
7191   else
7192     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
7193   fi
7194   cat $tmp/in >>$tmp/config.h
7195   rm -f $tmp/in
7196   if test x"$ac_file" != x-; then
7197     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7198       { echo "$as_me:7198: $ac_file is unchanged" >&5
7199 echo "$as_me: $ac_file is unchanged" >&6;}
7200     else
7201       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7202          X"$ac_file" : 'X\(//\)[^/]' \| \
7203          X"$ac_file" : 'X\(//\)$' \| \
7204          X"$ac_file" : 'X\(/\)' \| \
7205          .     : '\(.\)' 2>/dev/null ||
7206 echo X"$ac_file" |
7207     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7208           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7209           /^X\(\/\/\)$/{ s//\1/; q; }
7210           /^X\(\/\).*/{ s//\1/; q; }
7211           s/.*/./; q'`
7212       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7213         { case "$ac_dir" in
7214   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7215   *)                      as_incr_dir=.;;
7216 esac
7217 as_dummy="$ac_dir"
7218 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7219   case $as_mkdir_dir in
7220     # Skip DOS drivespec
7221     ?:) as_incr_dir=$as_mkdir_dir ;;
7222     *)
7223       as_incr_dir=$as_incr_dir/$as_mkdir_dir
7224       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7225     ;;
7226   esac
7227 done; }
7228
7229       fi
7230       rm -f $ac_file
7231       mv $tmp/config.h $ac_file
7232     fi
7233   else
7234     cat $tmp/config.h
7235     rm -f $tmp/config.h
7236   fi
7237 done
7238 EOF
7239 cat >>$CONFIG_STATUS <<\EOF
7240
7241 #
7242 # CONFIG_COMMANDS section.
7243 #
7244 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7245   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7246   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7247
7248   case $ac_dest in
7249     default ) echo timestamp > stamp-h ;;
7250   esac
7251 done
7252 EOF
7253
7254 cat >>$CONFIG_STATUS <<\EOF
7255
7256 { (exit 0); exit 0; }
7257 EOF
7258 chmod +x $CONFIG_STATUS
7259 ac_clean_files=$ac_clean_files_save
7260
7261 # configure is writing to config.log, and then calls config.status.
7262 # config.status does its own redirection, appending to config.log.
7263 # Unfortunately, on DOS this fails, as config.log is still kept open
7264 # by configure, so config.status won't be able to write to it; its
7265 # output is simply discarded.  So we exec the FD to /dev/null,
7266 # effectively closing config.log, so it can be properly (re)opened and
7267 # appended to by config.status.  When coming back to configure, we
7268 # need to make the FD available again.
7269 if test "$no_create" != yes; then
7270   ac_cs_success=:
7271   exec 5>/dev/null
7272   $SHELL $CONFIG_STATUS || ac_cs_success=false
7273   exec 5>>config.log
7274   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7275   # would make configure fail if this is the last instruction.
7276   $ac_cs_success || { (exit 1); exit 1; }
7277 fi
7278
7279 #
7280 # CONFIG_SUBDIRS section.
7281 #
7282 if test "$no_recursion" != yes; then
7283
7284   # Remove --cache-file and --srcdir arguments so they do not pile up.
7285   ac_sub_configure_args=
7286   ac_prev=
7287   for ac_arg in $ac_configure_args; do
7288     if test -n "$ac_prev"; then
7289       ac_prev=
7290       continue
7291     fi
7292     case $ac_arg in
7293     -cache-file | --cache-file | --cache-fil | --cache-fi \
7294     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7295       ac_prev=cache_file ;;
7296     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7297     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7298     | --c=*)
7299       ;;
7300     --config-cache | -C)
7301       ;;
7302     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7303       ac_prev=srcdir ;;
7304     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7305       ;;
7306     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7307     esac
7308   done
7309
7310   for ac_subdir in : $subdirs; do test "x$ac_subdir" = x: && continue
7311
7312     # Do not complain, so a configure script can configure whichever
7313     # parts of a large source tree are present.
7314     test -d $srcdir/$ac_subdir || continue
7315
7316     { echo "$as_me:7316: configuring in $ac_subdir" >&5
7317 echo "$as_me: configuring in $ac_subdir" >&6;}
7318     case $srcdir in
7319     .) ;;
7320     *) { case "./$ac_subdir" in
7321   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7322   *)                      as_incr_dir=.;;
7323 esac
7324 as_dummy="./$ac_subdir"
7325 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7326   case $as_mkdir_dir in
7327     # Skip DOS drivespec
7328     ?:) as_incr_dir=$as_mkdir_dir ;;
7329     *)
7330       as_incr_dir=$as_incr_dir/$as_mkdir_dir
7331       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7332     ;;
7333   esac
7334 done; }
7335
7336        if test -d ./$ac_subdir; then :;
7337        else
7338          { { echo "$as_me:7338: error: cannot create \`pwd\`/$ac_subdir" >&5
7339 echo "$as_me: error: cannot create \`pwd\`/$ac_subdir" >&2;}
7340    { (exit 1); exit 1; }; }
7341        fi
7342        ;;
7343     esac
7344
7345     ac_popdir=`pwd`
7346     cd $ac_subdir
7347
7348     # A "../" for each directory in /$ac_subdir.
7349     ac_dots=`echo $ac_subdir |
7350              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
7351
7352     case $srcdir in
7353     .) # No --srcdir option.  We are building in place.
7354       ac_sub_srcdir=$srcdir ;;
7355     [\\/]* | ?:[\\/]* ) # Absolute path.
7356       ac_sub_srcdir=$srcdir/$ac_subdir ;;
7357     *) # Relative path.
7358       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
7359     esac
7360
7361     # Check for guested configure; otherwise get Cygnus style configure.
7362     if test -f $ac_sub_srcdir/configure.gnu; then
7363       ac_sub_configure="$SHELL '$ac_sub_srcdir/configure.gnu'"
7364     elif test -f $ac_sub_srcdir/configure; then
7365       ac_sub_configure="$SHELL '$ac_sub_srcdir/configure'"
7366     elif test -f $ac_sub_srcdir/configure.in; then
7367       ac_sub_configure=$ac_configure
7368     else
7369       { echo "$as_me:7369: WARNING: no configuration information is in $ac_subdir" >&5
7370 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2;}
7371       ac_sub_configure=
7372     fi
7373
7374     # The recursion is here.
7375     if test -n "$ac_sub_configure"; then
7376       # Make the cache file name correct relative to the subdirectory.
7377       case $cache_file in
7378       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7379       *) # Relative path.
7380         ac_sub_cache_file=$ac_dots$cache_file ;;
7381       esac
7382
7383       { echo "$as_me:7383: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&5
7384 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&6;}
7385       # The eval makes quoting arguments work.
7386       eval $ac_sub_configure $ac_sub_configure_args \
7387            --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir ||
7388         { { echo "$as_me:7388: error: $ac_sub_configure failed for $ac_subdir" >&5
7389 echo "$as_me: error: $ac_sub_configure failed for $ac_subdir" >&2;}
7390    { (exit 1); exit 1; }; }
7391     fi
7392
7393     cd $ac_popdir
7394   done
7395 fi
7396
7397 ac_config_commands="$ac_config_commands default-1"
7398