Regenerate configure script
[ircu2.10.12-pk.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="ircd/ircd.c"
275 ac_default_prefix=$HOME
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RMPROG SHPROG LEX LEXLIB LEX_OUTPUT_ROOT YACC ENGINE_C INSTALL_RULE SYMLINK IRCDMODE IRCDOWN IRCDGRP DPATH LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779   # Omit some internal or obsolete options to make the list less imposing.
780   # This message is too long to be a string in the A/UX 3.1 sh.
781   cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792   -h, --help              display this help and exit
793       --help=short        display options specific to this package
794       --help=recursive    display the short help of all the included packages
795   -V, --version           display version information and exit
796   -q, --quiet, --silent   do not print \`checking...' messages
797       --cache-file=FILE   cache test results in FILE [disabled]
798   -C, --config-cache      alias for \`--cache-file=config.cache'
799   -n, --no-create         do not create output files
800       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804   cat <<_ACEOF
805 Installation directories:
806   --prefix=PREFIX         install architecture-independent files in PREFIX
807                           [$ac_default_prefix]
808   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809                           [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819   --bindir=DIR           user executables [EPREFIX/bin]
820   --sbindir=DIR          system admin executables [EPREFIX/sbin]
821   --libexecdir=DIR       program executables [EPREFIX/libexec]
822   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826   --libdir=DIR           object code libraries [EPREFIX/lib]
827   --includedir=DIR       C header files [PREFIX/include]
828   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829   --infodir=DIR          info documentation [PREFIX/info]
830   --mandir=DIR           man documentation [PREFIX/man]
831 _ACEOF
832
833   cat <<\_ACEOF
834
835 System types:
836   --build=BUILD     configure for building on BUILD [guessed]
837   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
838 _ACEOF
839 fi
840
841 if test -n "$ac_init_help"; then
842
843   cat <<\_ACEOF
844
845 Optional Features:
846   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
847   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
848   --enable-poll           Force poll to be used regardless of whether or not
849                           it is a system call
850   --enable-debug          Turn on debugging mode
851   --disable-asserts       Disable assertion checking
852   --enable-profile        Enable profiling support (add -pg to CFLAGS and LDFLAGS)
853   --enable-pedantic       Enable pedantic warnings (add -pedantic to CFLAGS)
854   --enable-warnings       Enable warnings (add -Wall to CFLAGS)
855   --disable-inlines       Disable inlining for a few critical functions
856   --disable-devpoll       Disable the /dev/poll-based engine
857   --disable-kqueue        Disable the kqueue-based engine
858   --disable-epoll         Disable the epoll-based engine
859
860 Optional Packages:
861   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
862   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
863   --with-leak-detect          Turn on the leak detector(requires patched boehm)
864   --without-ipv6          disable IPv6 support (default is autodetect)
865   --with-symlink=name     Name to give the symlink; if name is "no," no
866                           symlink will be created.
867   --with-mode=mode        Permissions (in octal) to give the binary
868   --with-owner=owner      Specify owner of the installed binary
869   --with-group=group      Specify group owner of the installed binary
870   --with-domain=domain    Domain name to use in local statistics gathering
871   --with-chroot=dir       Specify that the server will be operated under
872                           a different root directory given by dir.  See
873                           doc/readme.chroot for more information.
874   --with-dpath=dir        Directory for all server data files
875   --with-cpath=file       Set server configuration file
876   --with-lpath=file       Set the debugging log file
877   --with-maxcon=maxcon    Maximum number of connections server will accept
878
879 Some influential environment variables:
880   CC          C compiler command
881   CFLAGS      C compiler flags
882   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
883               nonstandard directory <lib dir>
884   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
885               headers in a nonstandard directory <include dir>
886   CPP         C preprocessor
887
888 Use these variables to override the choices made by `configure' or to help
889 it to find libraries and programs with nonstandard names/locations.
890
891 _ACEOF
892 fi
893
894 if test "$ac_init_help" = "recursive"; then
895   # If there are subdirs, report their specific --help.
896   ac_popdir=`pwd`
897   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898     test -d $ac_dir || continue
899     ac_builddir=.
900
901 if test "$ac_dir" != .; then
902   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903   # A "../" for each directory in $ac_dir_suffix.
904   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905 else
906   ac_dir_suffix= ac_top_builddir=
907 fi
908
909 case $srcdir in
910   .)  # No --srcdir option.  We are building in place.
911     ac_srcdir=.
912     if test -z "$ac_top_builddir"; then
913        ac_top_srcdir=.
914     else
915        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916     fi ;;
917   [\\/]* | ?:[\\/]* )  # Absolute path.
918     ac_srcdir=$srcdir$ac_dir_suffix;
919     ac_top_srcdir=$srcdir ;;
920   *) # Relative path.
921     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922     ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 esac
924
925 # Do not use `cd foo && pwd` to compute absolute paths, because
926 # the directories may not exist.
927 case `pwd` in
928 .) ac_abs_builddir="$ac_dir";;
929 *)
930   case "$ac_dir" in
931   .) ac_abs_builddir=`pwd`;;
932   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
933   *) ac_abs_builddir=`pwd`/"$ac_dir";;
934   esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *)
939   case ${ac_top_builddir}. in
940   .) ac_abs_top_builddir=$ac_abs_builddir;;
941   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
942   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
943   esac;;
944 esac
945 case $ac_abs_builddir in
946 .) ac_abs_srcdir=$ac_srcdir;;
947 *)
948   case $ac_srcdir in
949   .) ac_abs_srcdir=$ac_abs_builddir;;
950   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
951   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
952   esac;;
953 esac
954 case $ac_abs_builddir in
955 .) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *)
957   case $ac_top_srcdir in
958   .) ac_abs_top_srcdir=$ac_abs_builddir;;
959   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
960   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
961   esac;;
962 esac
963
964     cd $ac_dir
965     # Check for guested configure; otherwise get Cygnus style configure.
966     if test -f $ac_srcdir/configure.gnu; then
967       echo
968       $SHELL $ac_srcdir/configure.gnu  --help=recursive
969     elif test -f $ac_srcdir/configure; then
970       echo
971       $SHELL $ac_srcdir/configure  --help=recursive
972     elif test -f $ac_srcdir/configure.ac ||
973            test -f $ac_srcdir/configure.in; then
974       echo
975       $ac_configure --help
976     else
977       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
978     fi
979     cd "$ac_popdir"
980   done
981 fi
982
983 test -n "$ac_init_help" && exit 0
984 if $ac_init_version; then
985   cat <<\_ACEOF
986
987 Copyright (C) 2003 Free Software Foundation, Inc.
988 This configure script is free software; the Free Software Foundation
989 gives unlimited permission to copy, distribute and modify it.
990 _ACEOF
991   exit 0
992 fi
993 exec 5>config.log
994 cat >&5 <<_ACEOF
995 This file contains any messages produced by compilers while
996 running configure, to aid debugging if configure makes a mistake.
997
998 It was created by $as_me, which was
999 generated by GNU Autoconf 2.59.  Invocation command line was
1000
1001   $ $0 $@
1002
1003 _ACEOF
1004 {
1005 cat <<_ASUNAME
1006 ## --------- ##
1007 ## Platform. ##
1008 ## --------- ##
1009
1010 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1011 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1012 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1013 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1014 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1015
1016 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1017 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1018
1019 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1020 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1021 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1022 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1023 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1024 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1025 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1026
1027 _ASUNAME
1028
1029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1030 for as_dir in $PATH
1031 do
1032   IFS=$as_save_IFS
1033   test -z "$as_dir" && as_dir=.
1034   echo "PATH: $as_dir"
1035 done
1036
1037 } >&5
1038
1039 cat >&5 <<_ACEOF
1040
1041
1042 ## ----------- ##
1043 ## Core tests. ##
1044 ## ----------- ##
1045
1046 _ACEOF
1047
1048
1049 # Keep a trace of the command line.
1050 # Strip out --no-create and --no-recursion so they do not pile up.
1051 # Strip out --silent because we don't want to record it for future runs.
1052 # Also quote any args containing shell meta-characters.
1053 # Make two passes to allow for proper duplicate-argument suppression.
1054 ac_configure_args=
1055 ac_configure_args0=
1056 ac_configure_args1=
1057 ac_sep=
1058 ac_must_keep_next=false
1059 for ac_pass in 1 2
1060 do
1061   for ac_arg
1062   do
1063     case $ac_arg in
1064     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1065     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066     | -silent | --silent | --silen | --sile | --sil)
1067       continue ;;
1068     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1069       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1070     esac
1071     case $ac_pass in
1072     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1073     2)
1074       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1075       if test $ac_must_keep_next = true; then
1076         ac_must_keep_next=false # Got value, back to normal.
1077       else
1078         case $ac_arg in
1079           *=* | --config-cache | -C | -disable-* | --disable-* \
1080           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1081           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1082           | -with-* | --with-* | -without-* | --without-* | --x)
1083             case "$ac_configure_args0 " in
1084               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1085             esac
1086             ;;
1087           -* ) ac_must_keep_next=true ;;
1088         esac
1089       fi
1090       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1091       # Get rid of the leading space.
1092       ac_sep=" "
1093       ;;
1094     esac
1095   done
1096 done
1097 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1098 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1099
1100 # When interrupted or exit'd, cleanup temporary files, and complete
1101 # config.log.  We remove comments because anyway the quotes in there
1102 # would cause problems or look ugly.
1103 # WARNING: Be sure not to use single quotes in there, as some shells,
1104 # such as our DU 5.0 friend, will then `close' the trap.
1105 trap 'exit_status=$?
1106   # Save into config.log some information that might help in debugging.
1107   {
1108     echo
1109
1110     cat <<\_ASBOX
1111 ## ---------------- ##
1112 ## Cache variables. ##
1113 ## ---------------- ##
1114 _ASBOX
1115     echo
1116     # The following way of writing the cache mishandles newlines in values,
1117 {
1118   (set) 2>&1 |
1119     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1120     *ac_space=\ *)
1121       sed -n \
1122         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1123           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1124       ;;
1125     *)
1126       sed -n \
1127         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1128       ;;
1129     esac;
1130 }
1131     echo
1132
1133     cat <<\_ASBOX
1134 ## ----------------- ##
1135 ## Output variables. ##
1136 ## ----------------- ##
1137 _ASBOX
1138     echo
1139     for ac_var in $ac_subst_vars
1140     do
1141       eval ac_val=$`echo $ac_var`
1142       echo "$ac_var='"'"'$ac_val'"'"'"
1143     done | sort
1144     echo
1145
1146     if test -n "$ac_subst_files"; then
1147       cat <<\_ASBOX
1148 ## ------------- ##
1149 ## Output files. ##
1150 ## ------------- ##
1151 _ASBOX
1152       echo
1153       for ac_var in $ac_subst_files
1154       do
1155         eval ac_val=$`echo $ac_var`
1156         echo "$ac_var='"'"'$ac_val'"'"'"
1157       done | sort
1158       echo
1159     fi
1160
1161     if test -s confdefs.h; then
1162       cat <<\_ASBOX
1163 ## ----------- ##
1164 ## confdefs.h. ##
1165 ## ----------- ##
1166 _ASBOX
1167       echo
1168       sed "/^$/d" confdefs.h | sort
1169       echo
1170     fi
1171     test "$ac_signal" != 0 &&
1172       echo "$as_me: caught signal $ac_signal"
1173     echo "$as_me: exit $exit_status"
1174   } >&5
1175   rm -f core *.core &&
1176   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1177     exit $exit_status
1178      ' 0
1179 for ac_signal in 1 2 13 15; do
1180   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1181 done
1182 ac_signal=0
1183
1184 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1185 rm -rf conftest* confdefs.h
1186 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1187 echo >confdefs.h
1188
1189 # Predefined preprocessor variables.
1190
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_NAME "$PACKAGE_NAME"
1193 _ACEOF
1194
1195
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1198 _ACEOF
1199
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1203 _ACEOF
1204
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_STRING "$PACKAGE_STRING"
1208 _ACEOF
1209
1210
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1213 _ACEOF
1214
1215
1216 # Let the site file select an alternate cache file if it wants to.
1217 # Prefer explicitly selected file to automatically selected ones.
1218 if test -z "$CONFIG_SITE"; then
1219   if test "x$prefix" != xNONE; then
1220     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1221   else
1222     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1223   fi
1224 fi
1225 for ac_site_file in $CONFIG_SITE; do
1226   if test -r "$ac_site_file"; then
1227     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1228 echo "$as_me: loading site script $ac_site_file" >&6;}
1229     sed 's/^/| /' "$ac_site_file" >&5
1230     . "$ac_site_file"
1231   fi
1232 done
1233
1234 if test -r "$cache_file"; then
1235   # Some versions of bash will fail to source /dev/null (special
1236   # files actually), so we avoid doing that.
1237   if test -f "$cache_file"; then
1238     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1239 echo "$as_me: loading cache $cache_file" >&6;}
1240     case $cache_file in
1241       [\\/]* | ?:[\\/]* ) . $cache_file;;
1242       *)                      . ./$cache_file;;
1243     esac
1244   fi
1245 else
1246   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1247 echo "$as_me: creating cache $cache_file" >&6;}
1248   >$cache_file
1249 fi
1250
1251 # Check that the precious variables saved in the cache have kept the same
1252 # value.
1253 ac_cache_corrupted=false
1254 for ac_var in `(set) 2>&1 |
1255                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1256   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1257   eval ac_new_set=\$ac_env_${ac_var}_set
1258   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1259   eval ac_new_val="\$ac_env_${ac_var}_value"
1260   case $ac_old_set,$ac_new_set in
1261     set,)
1262       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1263 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1264       ac_cache_corrupted=: ;;
1265     ,set)
1266       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1268       ac_cache_corrupted=: ;;
1269     ,);;
1270     *)
1271       if test "x$ac_old_val" != "x$ac_new_val"; then
1272         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1273 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1274         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1275 echo "$as_me:   former value:  $ac_old_val" >&2;}
1276         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1277 echo "$as_me:   current value: $ac_new_val" >&2;}
1278         ac_cache_corrupted=:
1279       fi;;
1280   esac
1281   # Pass precious variables to config.status.
1282   if test "$ac_new_set" = set; then
1283     case $ac_new_val in
1284     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1286     *) ac_arg=$ac_var=$ac_new_val ;;
1287     esac
1288     case " $ac_configure_args " in
1289       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1290       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1291     esac
1292   fi
1293 done
1294 if $ac_cache_corrupted; then
1295   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1296 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1297   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1298 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1299    { (exit 1); exit 1; }; }
1300 fi
1301
1302 ac_ext=c
1303 ac_cpp='$CPP $CPPFLAGS'
1304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328 echo "$as_me:$LINENO: checking for installation prefix" >&5
1329 echo $ECHO_N "checking for installation prefix... $ECHO_C" >&6
1330 if test "${unet_cv_prefix+set}" = set; then
1331   echo $ECHO_N "(cached) $ECHO_C" >&6
1332 else
1333   unet_cv_prefix=$HOME
1334 fi
1335
1336 if test x"$prefix" != xNONE; then
1337     unet_cv_prefix=$prefix
1338 fi
1339 echo "$as_me:$LINENO: result: $unet_cv_prefix" >&5
1340 echo "${ECHO_T}$unet_cv_prefix" >&6
1341 ac_default_prefix=$unet_cv_prefix
1342
1343           ac_config_headers="$ac_config_headers config.h"
1344
1345
1346
1347
1348 ac_aux_dir=
1349 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1350   if test -f $ac_dir/install-sh; then
1351     ac_aux_dir=$ac_dir
1352     ac_install_sh="$ac_aux_dir/install-sh -c"
1353     break
1354   elif test -f $ac_dir/install.sh; then
1355     ac_aux_dir=$ac_dir
1356     ac_install_sh="$ac_aux_dir/install.sh -c"
1357     break
1358   elif test -f $ac_dir/shtool; then
1359     ac_aux_dir=$ac_dir
1360     ac_install_sh="$ac_aux_dir/shtool install -c"
1361     break
1362   fi
1363 done
1364 if test -z "$ac_aux_dir"; then
1365   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1366 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1367    { (exit 1); exit 1; }; }
1368 fi
1369 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1370 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1371 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1372
1373 # Make sure we can run config.sub.
1374 $ac_config_sub sun4 >/dev/null 2>&1 ||
1375   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1376 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1377    { (exit 1); exit 1; }; }
1378
1379 echo "$as_me:$LINENO: checking build system type" >&5
1380 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1381 if test "${ac_cv_build+set}" = set; then
1382   echo $ECHO_N "(cached) $ECHO_C" >&6
1383 else
1384   ac_cv_build_alias=$build_alias
1385 test -z "$ac_cv_build_alias" &&
1386   ac_cv_build_alias=`$ac_config_guess`
1387 test -z "$ac_cv_build_alias" &&
1388   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1389 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1390    { (exit 1); exit 1; }; }
1391 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1392   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1393 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1394    { (exit 1); exit 1; }; }
1395
1396 fi
1397 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1398 echo "${ECHO_T}$ac_cv_build" >&6
1399 build=$ac_cv_build
1400 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1401 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1402 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1403
1404
1405 echo "$as_me:$LINENO: checking host system type" >&5
1406 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1407 if test "${ac_cv_host+set}" = set; then
1408   echo $ECHO_N "(cached) $ECHO_C" >&6
1409 else
1410   ac_cv_host_alias=$host_alias
1411 test -z "$ac_cv_host_alias" &&
1412   ac_cv_host_alias=$ac_cv_build_alias
1413 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1414   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1415 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1416    { (exit 1); exit 1; }; }
1417
1418 fi
1419 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1420 echo "${ECHO_T}$ac_cv_host" >&6
1421 host=$ac_cv_host
1422 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1425
1426
1427
1428 ac_ext=c
1429 ac_cpp='$CPP $CPPFLAGS'
1430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1433 if test -n "$ac_tool_prefix"; then
1434   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1435 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1436 echo "$as_me:$LINENO: checking for $ac_word" >&5
1437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438 if test "${ac_cv_prog_CC+set}" = set; then
1439   echo $ECHO_N "(cached) $ECHO_C" >&6
1440 else
1441   if test -n "$CC"; then
1442   ac_cv_prog_CC="$CC" # Let the user override the test.
1443 else
1444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1445 for as_dir in $PATH
1446 do
1447   IFS=$as_save_IFS
1448   test -z "$as_dir" && as_dir=.
1449   for ac_exec_ext in '' $ac_executable_extensions; do
1450   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1451     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1453     break 2
1454   fi
1455 done
1456 done
1457
1458 fi
1459 fi
1460 CC=$ac_cv_prog_CC
1461 if test -n "$CC"; then
1462   echo "$as_me:$LINENO: result: $CC" >&5
1463 echo "${ECHO_T}$CC" >&6
1464 else
1465   echo "$as_me:$LINENO: result: no" >&5
1466 echo "${ECHO_T}no" >&6
1467 fi
1468
1469 fi
1470 if test -z "$ac_cv_prog_CC"; then
1471   ac_ct_CC=$CC
1472   # Extract the first word of "gcc", so it can be a program name with args.
1473 set dummy gcc; ac_word=$2
1474 echo "$as_me:$LINENO: checking for $ac_word" >&5
1475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1477   echo $ECHO_N "(cached) $ECHO_C" >&6
1478 else
1479   if test -n "$ac_ct_CC"; then
1480   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1481 else
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483 for as_dir in $PATH
1484 do
1485   IFS=$as_save_IFS
1486   test -z "$as_dir" && as_dir=.
1487   for ac_exec_ext in '' $ac_executable_extensions; do
1488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489     ac_cv_prog_ac_ct_CC="gcc"
1490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1491     break 2
1492   fi
1493 done
1494 done
1495
1496 fi
1497 fi
1498 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1499 if test -n "$ac_ct_CC"; then
1500   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1501 echo "${ECHO_T}$ac_ct_CC" >&6
1502 else
1503   echo "$as_me:$LINENO: result: no" >&5
1504 echo "${ECHO_T}no" >&6
1505 fi
1506
1507   CC=$ac_ct_CC
1508 else
1509   CC="$ac_cv_prog_CC"
1510 fi
1511
1512 if test -z "$CC"; then
1513   if test -n "$ac_tool_prefix"; then
1514   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1515 set dummy ${ac_tool_prefix}cc; ac_word=$2
1516 echo "$as_me:$LINENO: checking for $ac_word" >&5
1517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1518 if test "${ac_cv_prog_CC+set}" = set; then
1519   echo $ECHO_N "(cached) $ECHO_C" >&6
1520 else
1521   if test -n "$CC"; then
1522   ac_cv_prog_CC="$CC" # Let the user override the test.
1523 else
1524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525 for as_dir in $PATH
1526 do
1527   IFS=$as_save_IFS
1528   test -z "$as_dir" && as_dir=.
1529   for ac_exec_ext in '' $ac_executable_extensions; do
1530   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1531     ac_cv_prog_CC="${ac_tool_prefix}cc"
1532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1533     break 2
1534   fi
1535 done
1536 done
1537
1538 fi
1539 fi
1540 CC=$ac_cv_prog_CC
1541 if test -n "$CC"; then
1542   echo "$as_me:$LINENO: result: $CC" >&5
1543 echo "${ECHO_T}$CC" >&6
1544 else
1545   echo "$as_me:$LINENO: result: no" >&5
1546 echo "${ECHO_T}no" >&6
1547 fi
1548
1549 fi
1550 if test -z "$ac_cv_prog_CC"; then
1551   ac_ct_CC=$CC
1552   # Extract the first word of "cc", so it can be a program name with args.
1553 set dummy cc; ac_word=$2
1554 echo "$as_me:$LINENO: checking for $ac_word" >&5
1555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1556 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1557   echo $ECHO_N "(cached) $ECHO_C" >&6
1558 else
1559   if test -n "$ac_ct_CC"; then
1560   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1561 else
1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563 for as_dir in $PATH
1564 do
1565   IFS=$as_save_IFS
1566   test -z "$as_dir" && as_dir=.
1567   for ac_exec_ext in '' $ac_executable_extensions; do
1568   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1569     ac_cv_prog_ac_ct_CC="cc"
1570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1571     break 2
1572   fi
1573 done
1574 done
1575
1576 fi
1577 fi
1578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1579 if test -n "$ac_ct_CC"; then
1580   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1581 echo "${ECHO_T}$ac_ct_CC" >&6
1582 else
1583   echo "$as_me:$LINENO: result: no" >&5
1584 echo "${ECHO_T}no" >&6
1585 fi
1586
1587   CC=$ac_ct_CC
1588 else
1589   CC="$ac_cv_prog_CC"
1590 fi
1591
1592 fi
1593 if test -z "$CC"; then
1594   # Extract the first word of "cc", so it can be a program name with args.
1595 set dummy cc; ac_word=$2
1596 echo "$as_me:$LINENO: checking for $ac_word" >&5
1597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1598 if test "${ac_cv_prog_CC+set}" = set; then
1599   echo $ECHO_N "(cached) $ECHO_C" >&6
1600 else
1601   if test -n "$CC"; then
1602   ac_cv_prog_CC="$CC" # Let the user override the test.
1603 else
1604   ac_prog_rejected=no
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 for as_dir in $PATH
1607 do
1608   IFS=$as_save_IFS
1609   test -z "$as_dir" && as_dir=.
1610   for ac_exec_ext in '' $ac_executable_extensions; do
1611   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1613        ac_prog_rejected=yes
1614        continue
1615      fi
1616     ac_cv_prog_CC="cc"
1617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618     break 2
1619   fi
1620 done
1621 done
1622
1623 if test $ac_prog_rejected = yes; then
1624   # We found a bogon in the path, so make sure we never use it.
1625   set dummy $ac_cv_prog_CC
1626   shift
1627   if test $# != 0; then
1628     # We chose a different compiler from the bogus one.
1629     # However, it has the same basename, so the bogon will be chosen
1630     # first if we set CC to just the basename; use the full file name.
1631     shift
1632     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1633   fi
1634 fi
1635 fi
1636 fi
1637 CC=$ac_cv_prog_CC
1638 if test -n "$CC"; then
1639   echo "$as_me:$LINENO: result: $CC" >&5
1640 echo "${ECHO_T}$CC" >&6
1641 else
1642   echo "$as_me:$LINENO: result: no" >&5
1643 echo "${ECHO_T}no" >&6
1644 fi
1645
1646 fi
1647 if test -z "$CC"; then
1648   if test -n "$ac_tool_prefix"; then
1649   for ac_prog in cl
1650   do
1651     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1653 echo "$as_me:$LINENO: checking for $ac_word" >&5
1654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1655 if test "${ac_cv_prog_CC+set}" = set; then
1656   echo $ECHO_N "(cached) $ECHO_C" >&6
1657 else
1658   if test -n "$CC"; then
1659   ac_cv_prog_CC="$CC" # Let the user override the test.
1660 else
1661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662 for as_dir in $PATH
1663 do
1664   IFS=$as_save_IFS
1665   test -z "$as_dir" && as_dir=.
1666   for ac_exec_ext in '' $ac_executable_extensions; do
1667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1668     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1670     break 2
1671   fi
1672 done
1673 done
1674
1675 fi
1676 fi
1677 CC=$ac_cv_prog_CC
1678 if test -n "$CC"; then
1679   echo "$as_me:$LINENO: result: $CC" >&5
1680 echo "${ECHO_T}$CC" >&6
1681 else
1682   echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1684 fi
1685
1686     test -n "$CC" && break
1687   done
1688 fi
1689 if test -z "$CC"; then
1690   ac_ct_CC=$CC
1691   for ac_prog in cl
1692 do
1693   # Extract the first word of "$ac_prog", so it can be a program name with args.
1694 set dummy $ac_prog; ac_word=$2
1695 echo "$as_me:$LINENO: checking for $ac_word" >&5
1696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1697 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1698   echo $ECHO_N "(cached) $ECHO_C" >&6
1699 else
1700   if test -n "$ac_ct_CC"; then
1701   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1702 else
1703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 for as_dir in $PATH
1705 do
1706   IFS=$as_save_IFS
1707   test -z "$as_dir" && as_dir=.
1708   for ac_exec_ext in '' $ac_executable_extensions; do
1709   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1710     ac_cv_prog_ac_ct_CC="$ac_prog"
1711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712     break 2
1713   fi
1714 done
1715 done
1716
1717 fi
1718 fi
1719 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1720 if test -n "$ac_ct_CC"; then
1721   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1722 echo "${ECHO_T}$ac_ct_CC" >&6
1723 else
1724   echo "$as_me:$LINENO: result: no" >&5
1725 echo "${ECHO_T}no" >&6
1726 fi
1727
1728   test -n "$ac_ct_CC" && break
1729 done
1730
1731   CC=$ac_ct_CC
1732 fi
1733
1734 fi
1735
1736
1737 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1738 See \`config.log' for more details." >&5
1739 echo "$as_me: error: no acceptable C compiler found in \$PATH
1740 See \`config.log' for more details." >&2;}
1741    { (exit 1); exit 1; }; }
1742
1743 # Provide some information about the compiler.
1744 echo "$as_me:$LINENO:" \
1745      "checking for C compiler version" >&5
1746 ac_compiler=`set X $ac_compile; echo $2`
1747 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1748   (eval $ac_compiler --version </dev/null >&5) 2>&5
1749   ac_status=$?
1750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751   (exit $ac_status); }
1752 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1753   (eval $ac_compiler -v </dev/null >&5) 2>&5
1754   ac_status=$?
1755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756   (exit $ac_status); }
1757 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1758   (eval $ac_compiler -V </dev/null >&5) 2>&5
1759   ac_status=$?
1760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761   (exit $ac_status); }
1762
1763 cat >conftest.$ac_ext <<_ACEOF
1764 /* confdefs.h.  */
1765 _ACEOF
1766 cat confdefs.h >>conftest.$ac_ext
1767 cat >>conftest.$ac_ext <<_ACEOF
1768 /* end confdefs.h.  */
1769
1770 int
1771 main ()
1772 {
1773
1774   ;
1775   return 0;
1776 }
1777 _ACEOF
1778 ac_clean_files_save=$ac_clean_files
1779 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1780 # Try to create an executable without -o first, disregard a.out.
1781 # It will help us diagnose broken compilers, and finding out an intuition
1782 # of exeext.
1783 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1784 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1785 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1786 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1787   (eval $ac_link_default) 2>&5
1788   ac_status=$?
1789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790   (exit $ac_status); }; then
1791   # Find the output, starting from the most likely.  This scheme is
1792 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1793 # resort.
1794
1795 # Be careful to initialize this variable, since it used to be cached.
1796 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1797 ac_cv_exeext=
1798 # b.out is created by i960 compilers.
1799 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1800 do
1801   test -f "$ac_file" || continue
1802   case $ac_file in
1803     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1804         ;;
1805     conftest.$ac_ext )
1806         # This is the source file.
1807         ;;
1808     [ab].out )
1809         # We found the default executable, but exeext='' is most
1810         # certainly right.
1811         break;;
1812     *.* )
1813         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1814         # FIXME: I believe we export ac_cv_exeext for Libtool,
1815         # but it would be cool to find out if it's true.  Does anybody
1816         # maintain Libtool? --akim.
1817         export ac_cv_exeext
1818         break;;
1819     * )
1820         break;;
1821   esac
1822 done
1823 else
1824   echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1826
1827 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1828 See \`config.log' for more details." >&5
1829 echo "$as_me: error: C compiler cannot create executables
1830 See \`config.log' for more details." >&2;}
1831    { (exit 77); exit 77; }; }
1832 fi
1833
1834 ac_exeext=$ac_cv_exeext
1835 echo "$as_me:$LINENO: result: $ac_file" >&5
1836 echo "${ECHO_T}$ac_file" >&6
1837
1838 # Check the compiler produces executables we can run.  If not, either
1839 # the compiler is broken, or we cross compile.
1840 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1841 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1842 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1843 # If not cross compiling, check that we can run a simple program.
1844 if test "$cross_compiling" != yes; then
1845   if { ac_try='./$ac_file'
1846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1847   (eval $ac_try) 2>&5
1848   ac_status=$?
1849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850   (exit $ac_status); }; }; then
1851     cross_compiling=no
1852   else
1853     if test "$cross_compiling" = maybe; then
1854         cross_compiling=yes
1855     else
1856         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1857 If you meant to cross compile, use \`--host'.
1858 See \`config.log' for more details." >&5
1859 echo "$as_me: error: cannot run C compiled programs.
1860 If you meant to cross compile, use \`--host'.
1861 See \`config.log' for more details." >&2;}
1862    { (exit 1); exit 1; }; }
1863     fi
1864   fi
1865 fi
1866 echo "$as_me:$LINENO: result: yes" >&5
1867 echo "${ECHO_T}yes" >&6
1868
1869 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1870 ac_clean_files=$ac_clean_files_save
1871 # Check the compiler produces executables we can run.  If not, either
1872 # the compiler is broken, or we cross compile.
1873 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1874 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1875 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1876 echo "${ECHO_T}$cross_compiling" >&6
1877
1878 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1879 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1881   (eval $ac_link) 2>&5
1882   ac_status=$?
1883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884   (exit $ac_status); }; then
1885   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1886 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1887 # work properly (i.e., refer to `conftest.exe'), while it won't with
1888 # `rm'.
1889 for ac_file in conftest.exe conftest conftest.*; do
1890   test -f "$ac_file" || continue
1891   case $ac_file in
1892     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1893     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1894           export ac_cv_exeext
1895           break;;
1896     * ) break;;
1897   esac
1898 done
1899 else
1900   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1901 See \`config.log' for more details." >&5
1902 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1903 See \`config.log' for more details." >&2;}
1904    { (exit 1); exit 1; }; }
1905 fi
1906
1907 rm -f conftest$ac_cv_exeext
1908 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1909 echo "${ECHO_T}$ac_cv_exeext" >&6
1910
1911 rm -f conftest.$ac_ext
1912 EXEEXT=$ac_cv_exeext
1913 ac_exeext=$EXEEXT
1914 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1915 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1916 if test "${ac_cv_objext+set}" = set; then
1917   echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919   cat >conftest.$ac_ext <<_ACEOF
1920 /* confdefs.h.  */
1921 _ACEOF
1922 cat confdefs.h >>conftest.$ac_ext
1923 cat >>conftest.$ac_ext <<_ACEOF
1924 /* end confdefs.h.  */
1925
1926 int
1927 main ()
1928 {
1929
1930   ;
1931   return 0;
1932 }
1933 _ACEOF
1934 rm -f conftest.o conftest.obj
1935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1936   (eval $ac_compile) 2>&5
1937   ac_status=$?
1938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939   (exit $ac_status); }; then
1940   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1941   case $ac_file in
1942     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1943     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1944        break;;
1945   esac
1946 done
1947 else
1948   echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1950
1951 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1952 See \`config.log' for more details." >&5
1953 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1954 See \`config.log' for more details." >&2;}
1955    { (exit 1); exit 1; }; }
1956 fi
1957
1958 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1959 fi
1960 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1961 echo "${ECHO_T}$ac_cv_objext" >&6
1962 OBJEXT=$ac_cv_objext
1963 ac_objext=$OBJEXT
1964 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1965 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1966 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1967   echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969   cat >conftest.$ac_ext <<_ACEOF
1970 /* confdefs.h.  */
1971 _ACEOF
1972 cat confdefs.h >>conftest.$ac_ext
1973 cat >>conftest.$ac_ext <<_ACEOF
1974 /* end confdefs.h.  */
1975
1976 int
1977 main ()
1978 {
1979 #ifndef __GNUC__
1980        choke me
1981 #endif
1982
1983   ;
1984   return 0;
1985 }
1986 _ACEOF
1987 rm -f conftest.$ac_objext
1988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989   (eval $ac_compile) 2>conftest.er1
1990   ac_status=$?
1991   grep -v '^ *+' conftest.er1 >conftest.err
1992   rm -f conftest.er1
1993   cat conftest.err >&5
1994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995   (exit $ac_status); } &&
1996          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1998   (eval $ac_try) 2>&5
1999   ac_status=$?
2000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001   (exit $ac_status); }; } &&
2002          { ac_try='test -s conftest.$ac_objext'
2003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004   (eval $ac_try) 2>&5
2005   ac_status=$?
2006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007   (exit $ac_status); }; }; then
2008   ac_compiler_gnu=yes
2009 else
2010   echo "$as_me: failed program was:" >&5
2011 sed 's/^/| /' conftest.$ac_ext >&5
2012
2013 ac_compiler_gnu=no
2014 fi
2015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2016 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2017
2018 fi
2019 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2020 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2021 GCC=`test $ac_compiler_gnu = yes && echo yes`
2022 ac_test_CFLAGS=${CFLAGS+set}
2023 ac_save_CFLAGS=$CFLAGS
2024 CFLAGS="-g"
2025 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2026 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2027 if test "${ac_cv_prog_cc_g+set}" = set; then
2028   echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030   cat >conftest.$ac_ext <<_ACEOF
2031 /* confdefs.h.  */
2032 _ACEOF
2033 cat confdefs.h >>conftest.$ac_ext
2034 cat >>conftest.$ac_ext <<_ACEOF
2035 /* end confdefs.h.  */
2036
2037 int
2038 main ()
2039 {
2040
2041   ;
2042   return 0;
2043 }
2044 _ACEOF
2045 rm -f conftest.$ac_objext
2046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2047   (eval $ac_compile) 2>conftest.er1
2048   ac_status=$?
2049   grep -v '^ *+' conftest.er1 >conftest.err
2050   rm -f conftest.er1
2051   cat conftest.err >&5
2052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053   (exit $ac_status); } &&
2054          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2056   (eval $ac_try) 2>&5
2057   ac_status=$?
2058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059   (exit $ac_status); }; } &&
2060          { ac_try='test -s conftest.$ac_objext'
2061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062   (eval $ac_try) 2>&5
2063   ac_status=$?
2064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065   (exit $ac_status); }; }; then
2066   ac_cv_prog_cc_g=yes
2067 else
2068   echo "$as_me: failed program was:" >&5
2069 sed 's/^/| /' conftest.$ac_ext >&5
2070
2071 ac_cv_prog_cc_g=no
2072 fi
2073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2074 fi
2075 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2076 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2077 if test "$ac_test_CFLAGS" = set; then
2078   CFLAGS=$ac_save_CFLAGS
2079 elif test $ac_cv_prog_cc_g = yes; then
2080   if test "$GCC" = yes; then
2081     CFLAGS="-g -O2"
2082   else
2083     CFLAGS="-g"
2084   fi
2085 else
2086   if test "$GCC" = yes; then
2087     CFLAGS="-O2"
2088   else
2089     CFLAGS=
2090   fi
2091 fi
2092 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2093 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2094 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2095   echo $ECHO_N "(cached) $ECHO_C" >&6
2096 else
2097   ac_cv_prog_cc_stdc=no
2098 ac_save_CC=$CC
2099 cat >conftest.$ac_ext <<_ACEOF
2100 /* confdefs.h.  */
2101 _ACEOF
2102 cat confdefs.h >>conftest.$ac_ext
2103 cat >>conftest.$ac_ext <<_ACEOF
2104 /* end confdefs.h.  */
2105 #include <stdarg.h>
2106 #include <stdio.h>
2107 #include <sys/types.h>
2108 #include <sys/stat.h>
2109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2110 struct buf { int x; };
2111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2112 static char *e (p, i)
2113      char **p;
2114      int i;
2115 {
2116   return p[i];
2117 }
2118 static char *f (char * (*g) (char **, int), char **p, ...)
2119 {
2120   char *s;
2121   va_list v;
2122   va_start (v,p);
2123   s = g (p, va_arg (v,int));
2124   va_end (v);
2125   return s;
2126 }
2127
2128 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2129    function prototypes and stuff, but not '\xHH' hex character constants.
2130    These don't provoke an error unfortunately, instead are silently treated
2131    as 'x'.  The following induces an error, until -std1 is added to get
2132    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2133    array size at least.  It's necessary to write '\x00'==0 to get something
2134    that's true only with -std1.  */
2135 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2136
2137 int test (int i, double x);
2138 struct s1 {int (*f) (int a);};
2139 struct s2 {int (*f) (double a);};
2140 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2141 int argc;
2142 char **argv;
2143 int
2144 main ()
2145 {
2146 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2147   ;
2148   return 0;
2149 }
2150 _ACEOF
2151 # Don't try gcc -ansi; that turns off useful extensions and
2152 # breaks some systems' header files.
2153 # AIX                   -qlanglvl=ansi
2154 # Ultrix and OSF/1      -std1
2155 # HP-UX 10.20 and later -Ae
2156 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2157 # SVR4                  -Xc -D__EXTENSIONS__
2158 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2159 do
2160   CC="$ac_save_CC $ac_arg"
2161   rm -f conftest.$ac_objext
2162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2163   (eval $ac_compile) 2>conftest.er1
2164   ac_status=$?
2165   grep -v '^ *+' conftest.er1 >conftest.err
2166   rm -f conftest.er1
2167   cat conftest.err >&5
2168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169   (exit $ac_status); } &&
2170          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172   (eval $ac_try) 2>&5
2173   ac_status=$?
2174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175   (exit $ac_status); }; } &&
2176          { ac_try='test -s conftest.$ac_objext'
2177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178   (eval $ac_try) 2>&5
2179   ac_status=$?
2180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181   (exit $ac_status); }; }; then
2182   ac_cv_prog_cc_stdc=$ac_arg
2183 break
2184 else
2185   echo "$as_me: failed program was:" >&5
2186 sed 's/^/| /' conftest.$ac_ext >&5
2187
2188 fi
2189 rm -f conftest.err conftest.$ac_objext
2190 done
2191 rm -f conftest.$ac_ext conftest.$ac_objext
2192 CC=$ac_save_CC
2193
2194 fi
2195
2196 case "x$ac_cv_prog_cc_stdc" in
2197   x|xno)
2198     echo "$as_me:$LINENO: result: none needed" >&5
2199 echo "${ECHO_T}none needed" >&6 ;;
2200   *)
2201     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2202 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2203     CC="$CC $ac_cv_prog_cc_stdc" ;;
2204 esac
2205
2206 # Some people use a C++ compiler to compile C.  Since we use `exit',
2207 # in C++ we need to declare it.  In case someone uses the same compiler
2208 # for both compiling C and C++ we need to have the C++ compiler decide
2209 # the declaration of exit, since it's the most demanding environment.
2210 cat >conftest.$ac_ext <<_ACEOF
2211 #ifndef __cplusplus
2212   choke me
2213 #endif
2214 _ACEOF
2215 rm -f conftest.$ac_objext
2216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2217   (eval $ac_compile) 2>conftest.er1
2218   ac_status=$?
2219   grep -v '^ *+' conftest.er1 >conftest.err
2220   rm -f conftest.er1
2221   cat conftest.err >&5
2222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223   (exit $ac_status); } &&
2224          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226   (eval $ac_try) 2>&5
2227   ac_status=$?
2228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229   (exit $ac_status); }; } &&
2230          { ac_try='test -s conftest.$ac_objext'
2231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232   (eval $ac_try) 2>&5
2233   ac_status=$?
2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235   (exit $ac_status); }; }; then
2236   for ac_declaration in \
2237    '' \
2238    'extern "C" void std::exit (int) throw (); using std::exit;' \
2239    'extern "C" void std::exit (int); using std::exit;' \
2240    'extern "C" void exit (int) throw ();' \
2241    'extern "C" void exit (int);' \
2242    'void exit (int);'
2243 do
2244   cat >conftest.$ac_ext <<_ACEOF
2245 /* confdefs.h.  */
2246 _ACEOF
2247 cat confdefs.h >>conftest.$ac_ext
2248 cat >>conftest.$ac_ext <<_ACEOF
2249 /* end confdefs.h.  */
2250 $ac_declaration
2251 #include <stdlib.h>
2252 int
2253 main ()
2254 {
2255 exit (42);
2256   ;
2257   return 0;
2258 }
2259 _ACEOF
2260 rm -f conftest.$ac_objext
2261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262   (eval $ac_compile) 2>conftest.er1
2263   ac_status=$?
2264   grep -v '^ *+' conftest.er1 >conftest.err
2265   rm -f conftest.er1
2266   cat conftest.err >&5
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); } &&
2269          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271   (eval $ac_try) 2>&5
2272   ac_status=$?
2273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274   (exit $ac_status); }; } &&
2275          { ac_try='test -s conftest.$ac_objext'
2276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277   (eval $ac_try) 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); }; }; then
2281   :
2282 else
2283   echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2285
2286 continue
2287 fi
2288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2289   cat >conftest.$ac_ext <<_ACEOF
2290 /* confdefs.h.  */
2291 _ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h.  */
2295 $ac_declaration
2296 int
2297 main ()
2298 {
2299 exit (42);
2300   ;
2301   return 0;
2302 }
2303 _ACEOF
2304 rm -f conftest.$ac_objext
2305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306   (eval $ac_compile) 2>conftest.er1
2307   ac_status=$?
2308   grep -v '^ *+' conftest.er1 >conftest.err
2309   rm -f conftest.er1
2310   cat conftest.err >&5
2311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312   (exit $ac_status); } &&
2313          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315   (eval $ac_try) 2>&5
2316   ac_status=$?
2317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318   (exit $ac_status); }; } &&
2319          { ac_try='test -s conftest.$ac_objext'
2320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321   (eval $ac_try) 2>&5
2322   ac_status=$?
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); }; }; then
2325   break
2326 else
2327   echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2329
2330 fi
2331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2332 done
2333 rm -f conftest*
2334 if test -n "$ac_declaration"; then
2335   echo '#ifdef __cplusplus' >>confdefs.h
2336   echo $ac_declaration      >>confdefs.h
2337   echo '#endif'             >>confdefs.h
2338 fi
2339
2340 else
2341   echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2343
2344 fi
2345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2346 ac_ext=c
2347 ac_cpp='$CPP $CPPFLAGS'
2348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2351
2352
2353 ac_ext=c
2354 ac_cpp='$CPP $CPPFLAGS'
2355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358 if test -n "$ac_tool_prefix"; then
2359   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2360 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2361 echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2363 if test "${ac_cv_prog_CC+set}" = set; then
2364   echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366   if test -n "$CC"; then
2367   ac_cv_prog_CC="$CC" # Let the user override the test.
2368 else
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2371 do
2372   IFS=$as_save_IFS
2373   test -z "$as_dir" && as_dir=.
2374   for ac_exec_ext in '' $ac_executable_extensions; do
2375   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2376     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378     break 2
2379   fi
2380 done
2381 done
2382
2383 fi
2384 fi
2385 CC=$ac_cv_prog_CC
2386 if test -n "$CC"; then
2387   echo "$as_me:$LINENO: result: $CC" >&5
2388 echo "${ECHO_T}$CC" >&6
2389 else
2390   echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6
2392 fi
2393
2394 fi
2395 if test -z "$ac_cv_prog_CC"; then
2396   ac_ct_CC=$CC
2397   # Extract the first word of "gcc", so it can be a program name with args.
2398 set dummy gcc; ac_word=$2
2399 echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2401 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2402   echo $ECHO_N "(cached) $ECHO_C" >&6
2403 else
2404   if test -n "$ac_ct_CC"; then
2405   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2406 else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH
2409 do
2410   IFS=$as_save_IFS
2411   test -z "$as_dir" && as_dir=.
2412   for ac_exec_ext in '' $ac_executable_extensions; do
2413   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2414     ac_cv_prog_ac_ct_CC="gcc"
2415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416     break 2
2417   fi
2418 done
2419 done
2420
2421 fi
2422 fi
2423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2424 if test -n "$ac_ct_CC"; then
2425   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2426 echo "${ECHO_T}$ac_ct_CC" >&6
2427 else
2428   echo "$as_me:$LINENO: result: no" >&5
2429 echo "${ECHO_T}no" >&6
2430 fi
2431
2432   CC=$ac_ct_CC
2433 else
2434   CC="$ac_cv_prog_CC"
2435 fi
2436
2437 if test -z "$CC"; then
2438   if test -n "$ac_tool_prefix"; then
2439   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2440 set dummy ${ac_tool_prefix}cc; ac_word=$2
2441 echo "$as_me:$LINENO: checking for $ac_word" >&5
2442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2443 if test "${ac_cv_prog_CC+set}" = set; then
2444   echo $ECHO_N "(cached) $ECHO_C" >&6
2445 else
2446   if test -n "$CC"; then
2447   ac_cv_prog_CC="$CC" # Let the user override the test.
2448 else
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH
2451 do
2452   IFS=$as_save_IFS
2453   test -z "$as_dir" && as_dir=.
2454   for ac_exec_ext in '' $ac_executable_extensions; do
2455   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2456     ac_cv_prog_CC="${ac_tool_prefix}cc"
2457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458     break 2
2459   fi
2460 done
2461 done
2462
2463 fi
2464 fi
2465 CC=$ac_cv_prog_CC
2466 if test -n "$CC"; then
2467   echo "$as_me:$LINENO: result: $CC" >&5
2468 echo "${ECHO_T}$CC" >&6
2469 else
2470   echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6
2472 fi
2473
2474 fi
2475 if test -z "$ac_cv_prog_CC"; then
2476   ac_ct_CC=$CC
2477   # Extract the first word of "cc", so it can be a program name with args.
2478 set dummy cc; ac_word=$2
2479 echo "$as_me:$LINENO: checking for $ac_word" >&5
2480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2481 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2482   echo $ECHO_N "(cached) $ECHO_C" >&6
2483 else
2484   if test -n "$ac_ct_CC"; then
2485   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2486 else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2489 do
2490   IFS=$as_save_IFS
2491   test -z "$as_dir" && as_dir=.
2492   for ac_exec_ext in '' $ac_executable_extensions; do
2493   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2494     ac_cv_prog_ac_ct_CC="cc"
2495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496     break 2
2497   fi
2498 done
2499 done
2500
2501 fi
2502 fi
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6
2507 else
2508   echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6
2510 fi
2511
2512   CC=$ac_ct_CC
2513 else
2514   CC="$ac_cv_prog_CC"
2515 fi
2516
2517 fi
2518 if test -z "$CC"; then
2519   # Extract the first word of "cc", so it can be a program name with args.
2520 set dummy cc; ac_word=$2
2521 echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2523 if test "${ac_cv_prog_CC+set}" = set; then
2524   echo $ECHO_N "(cached) $ECHO_C" >&6
2525 else
2526   if test -n "$CC"; then
2527   ac_cv_prog_CC="$CC" # Let the user override the test.
2528 else
2529   ac_prog_rejected=no
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533   IFS=$as_save_IFS
2534   test -z "$as_dir" && as_dir=.
2535   for ac_exec_ext in '' $ac_executable_extensions; do
2536   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2538        ac_prog_rejected=yes
2539        continue
2540      fi
2541     ac_cv_prog_CC="cc"
2542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543     break 2
2544   fi
2545 done
2546 done
2547
2548 if test $ac_prog_rejected = yes; then
2549   # We found a bogon in the path, so make sure we never use it.
2550   set dummy $ac_cv_prog_CC
2551   shift
2552   if test $# != 0; then
2553     # We chose a different compiler from the bogus one.
2554     # However, it has the same basename, so the bogon will be chosen
2555     # first if we set CC to just the basename; use the full file name.
2556     shift
2557     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2558   fi
2559 fi
2560 fi
2561 fi
2562 CC=$ac_cv_prog_CC
2563 if test -n "$CC"; then
2564   echo "$as_me:$LINENO: result: $CC" >&5
2565 echo "${ECHO_T}$CC" >&6
2566 else
2567   echo "$as_me:$LINENO: result: no" >&5
2568 echo "${ECHO_T}no" >&6
2569 fi
2570
2571 fi
2572 if test -z "$CC"; then
2573   if test -n "$ac_tool_prefix"; then
2574   for ac_prog in cl
2575   do
2576     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2577 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2578 echo "$as_me:$LINENO: checking for $ac_word" >&5
2579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2580 if test "${ac_cv_prog_CC+set}" = set; then
2581   echo $ECHO_N "(cached) $ECHO_C" >&6
2582 else
2583   if test -n "$CC"; then
2584   ac_cv_prog_CC="$CC" # Let the user override the test.
2585 else
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2588 do
2589   IFS=$as_save_IFS
2590   test -z "$as_dir" && as_dir=.
2591   for ac_exec_ext in '' $ac_executable_extensions; do
2592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2593     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595     break 2
2596   fi
2597 done
2598 done
2599
2600 fi
2601 fi
2602 CC=$ac_cv_prog_CC
2603 if test -n "$CC"; then
2604   echo "$as_me:$LINENO: result: $CC" >&5
2605 echo "${ECHO_T}$CC" >&6
2606 else
2607   echo "$as_me:$LINENO: result: no" >&5
2608 echo "${ECHO_T}no" >&6
2609 fi
2610
2611     test -n "$CC" && break
2612   done
2613 fi
2614 if test -z "$CC"; then
2615   ac_ct_CC=$CC
2616   for ac_prog in cl
2617 do
2618   # Extract the first word of "$ac_prog", so it can be a program name with args.
2619 set dummy $ac_prog; ac_word=$2
2620 echo "$as_me:$LINENO: checking for $ac_word" >&5
2621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2622 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2623   echo $ECHO_N "(cached) $ECHO_C" >&6
2624 else
2625   if test -n "$ac_ct_CC"; then
2626   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2627 else
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 for as_dir in $PATH
2630 do
2631   IFS=$as_save_IFS
2632   test -z "$as_dir" && as_dir=.
2633   for ac_exec_ext in '' $ac_executable_extensions; do
2634   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2635     ac_cv_prog_ac_ct_CC="$ac_prog"
2636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2637     break 2
2638   fi
2639 done
2640 done
2641
2642 fi
2643 fi
2644 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2645 if test -n "$ac_ct_CC"; then
2646   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2647 echo "${ECHO_T}$ac_ct_CC" >&6
2648 else
2649   echo "$as_me:$LINENO: result: no" >&5
2650 echo "${ECHO_T}no" >&6
2651 fi
2652
2653   test -n "$ac_ct_CC" && break
2654 done
2655
2656   CC=$ac_ct_CC
2657 fi
2658
2659 fi
2660
2661
2662 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2663 See \`config.log' for more details." >&5
2664 echo "$as_me: error: no acceptable C compiler found in \$PATH
2665 See \`config.log' for more details." >&2;}
2666    { (exit 1); exit 1; }; }
2667
2668 # Provide some information about the compiler.
2669 echo "$as_me:$LINENO:" \
2670      "checking for C compiler version" >&5
2671 ac_compiler=`set X $ac_compile; echo $2`
2672 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2673   (eval $ac_compiler --version </dev/null >&5) 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }
2677 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2678   (eval $ac_compiler -v </dev/null >&5) 2>&5
2679   ac_status=$?
2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681   (exit $ac_status); }
2682 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2683   (eval $ac_compiler -V </dev/null >&5) 2>&5
2684   ac_status=$?
2685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686   (exit $ac_status); }
2687
2688 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2689 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2690 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2691   echo $ECHO_N "(cached) $ECHO_C" >&6
2692 else
2693   cat >conftest.$ac_ext <<_ACEOF
2694 /* confdefs.h.  */
2695 _ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h.  */
2699
2700 int
2701 main ()
2702 {
2703 #ifndef __GNUC__
2704        choke me
2705 #endif
2706
2707   ;
2708   return 0;
2709 }
2710 _ACEOF
2711 rm -f conftest.$ac_objext
2712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713   (eval $ac_compile) 2>conftest.er1
2714   ac_status=$?
2715   grep -v '^ *+' conftest.er1 >conftest.err
2716   rm -f conftest.er1
2717   cat conftest.err >&5
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); } &&
2720          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722   (eval $ac_try) 2>&5
2723   ac_status=$?
2724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725   (exit $ac_status); }; } &&
2726          { ac_try='test -s conftest.$ac_objext'
2727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728   (eval $ac_try) 2>&5
2729   ac_status=$?
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); }; }; then
2732   ac_compiler_gnu=yes
2733 else
2734   echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2736
2737 ac_compiler_gnu=no
2738 fi
2739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2741
2742 fi
2743 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2744 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2745 GCC=`test $ac_compiler_gnu = yes && echo yes`
2746 ac_test_CFLAGS=${CFLAGS+set}
2747 ac_save_CFLAGS=$CFLAGS
2748 CFLAGS="-g"
2749 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2750 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2751 if test "${ac_cv_prog_cc_g+set}" = set; then
2752   echo $ECHO_N "(cached) $ECHO_C" >&6
2753 else
2754   cat >conftest.$ac_ext <<_ACEOF
2755 /* confdefs.h.  */
2756 _ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h.  */
2760
2761 int
2762 main ()
2763 {
2764
2765   ;
2766   return 0;
2767 }
2768 _ACEOF
2769 rm -f conftest.$ac_objext
2770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2771   (eval $ac_compile) 2>conftest.er1
2772   ac_status=$?
2773   grep -v '^ *+' conftest.er1 >conftest.err
2774   rm -f conftest.er1
2775   cat conftest.err >&5
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); } &&
2778          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780   (eval $ac_try) 2>&5
2781   ac_status=$?
2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); }; } &&
2784          { ac_try='test -s conftest.$ac_objext'
2785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786   (eval $ac_try) 2>&5
2787   ac_status=$?
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); }; }; then
2790   ac_cv_prog_cc_g=yes
2791 else
2792   echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2794
2795 ac_cv_prog_cc_g=no
2796 fi
2797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2798 fi
2799 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2800 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2801 if test "$ac_test_CFLAGS" = set; then
2802   CFLAGS=$ac_save_CFLAGS
2803 elif test $ac_cv_prog_cc_g = yes; then
2804   if test "$GCC" = yes; then
2805     CFLAGS="-g -O2"
2806   else
2807     CFLAGS="-g"
2808   fi
2809 else
2810   if test "$GCC" = yes; then
2811     CFLAGS="-O2"
2812   else
2813     CFLAGS=
2814   fi
2815 fi
2816 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2817 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2818 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2819   echo $ECHO_N "(cached) $ECHO_C" >&6
2820 else
2821   ac_cv_prog_cc_stdc=no
2822 ac_save_CC=$CC
2823 cat >conftest.$ac_ext <<_ACEOF
2824 /* confdefs.h.  */
2825 _ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h.  */
2829 #include <stdarg.h>
2830 #include <stdio.h>
2831 #include <sys/types.h>
2832 #include <sys/stat.h>
2833 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2834 struct buf { int x; };
2835 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2836 static char *e (p, i)
2837      char **p;
2838      int i;
2839 {
2840   return p[i];
2841 }
2842 static char *f (char * (*g) (char **, int), char **p, ...)
2843 {
2844   char *s;
2845   va_list v;
2846   va_start (v,p);
2847   s = g (p, va_arg (v,int));
2848   va_end (v);
2849   return s;
2850 }
2851
2852 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2853    function prototypes and stuff, but not '\xHH' hex character constants.
2854    These don't provoke an error unfortunately, instead are silently treated
2855    as 'x'.  The following induces an error, until -std1 is added to get
2856    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2857    array size at least.  It's necessary to write '\x00'==0 to get something
2858    that's true only with -std1.  */
2859 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2860
2861 int test (int i, double x);
2862 struct s1 {int (*f) (int a);};
2863 struct s2 {int (*f) (double a);};
2864 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2865 int argc;
2866 char **argv;
2867 int
2868 main ()
2869 {
2870 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2871   ;
2872   return 0;
2873 }
2874 _ACEOF
2875 # Don't try gcc -ansi; that turns off useful extensions and
2876 # breaks some systems' header files.
2877 # AIX                   -qlanglvl=ansi
2878 # Ultrix and OSF/1      -std1
2879 # HP-UX 10.20 and later -Ae
2880 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2881 # SVR4                  -Xc -D__EXTENSIONS__
2882 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2883 do
2884   CC="$ac_save_CC $ac_arg"
2885   rm -f conftest.$ac_objext
2886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2887   (eval $ac_compile) 2>conftest.er1
2888   ac_status=$?
2889   grep -v '^ *+' conftest.er1 >conftest.err
2890   rm -f conftest.er1
2891   cat conftest.err >&5
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); } &&
2894          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896   (eval $ac_try) 2>&5
2897   ac_status=$?
2898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899   (exit $ac_status); }; } &&
2900          { ac_try='test -s conftest.$ac_objext'
2901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902   (eval $ac_try) 2>&5
2903   ac_status=$?
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); }; }; then
2906   ac_cv_prog_cc_stdc=$ac_arg
2907 break
2908 else
2909   echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2911
2912 fi
2913 rm -f conftest.err conftest.$ac_objext
2914 done
2915 rm -f conftest.$ac_ext conftest.$ac_objext
2916 CC=$ac_save_CC
2917
2918 fi
2919
2920 case "x$ac_cv_prog_cc_stdc" in
2921   x|xno)
2922     echo "$as_me:$LINENO: result: none needed" >&5
2923 echo "${ECHO_T}none needed" >&6 ;;
2924   *)
2925     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2926 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2927     CC="$CC $ac_cv_prog_cc_stdc" ;;
2928 esac
2929
2930 # Some people use a C++ compiler to compile C.  Since we use `exit',
2931 # in C++ we need to declare it.  In case someone uses the same compiler
2932 # for both compiling C and C++ we need to have the C++ compiler decide
2933 # the declaration of exit, since it's the most demanding environment.
2934 cat >conftest.$ac_ext <<_ACEOF
2935 #ifndef __cplusplus
2936   choke me
2937 #endif
2938 _ACEOF
2939 rm -f conftest.$ac_objext
2940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2941   (eval $ac_compile) 2>conftest.er1
2942   ac_status=$?
2943   grep -v '^ *+' conftest.er1 >conftest.err
2944   rm -f conftest.er1
2945   cat conftest.err >&5
2946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947   (exit $ac_status); } &&
2948          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950   (eval $ac_try) 2>&5
2951   ac_status=$?
2952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953   (exit $ac_status); }; } &&
2954          { ac_try='test -s conftest.$ac_objext'
2955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956   (eval $ac_try) 2>&5
2957   ac_status=$?
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); }; }; then
2960   for ac_declaration in \
2961    '' \
2962    'extern "C" void std::exit (int) throw (); using std::exit;' \
2963    'extern "C" void std::exit (int); using std::exit;' \
2964    'extern "C" void exit (int) throw ();' \
2965    'extern "C" void exit (int);' \
2966    'void exit (int);'
2967 do
2968   cat >conftest.$ac_ext <<_ACEOF
2969 /* confdefs.h.  */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h.  */
2974 $ac_declaration
2975 #include <stdlib.h>
2976 int
2977 main ()
2978 {
2979 exit (42);
2980   ;
2981   return 0;
2982 }
2983 _ACEOF
2984 rm -f conftest.$ac_objext
2985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2986   (eval $ac_compile) 2>conftest.er1
2987   ac_status=$?
2988   grep -v '^ *+' conftest.er1 >conftest.err
2989   rm -f conftest.er1
2990   cat conftest.err >&5
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); } &&
2993          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995   (eval $ac_try) 2>&5
2996   ac_status=$?
2997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998   (exit $ac_status); }; } &&
2999          { ac_try='test -s conftest.$ac_objext'
3000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001   (eval $ac_try) 2>&5
3002   ac_status=$?
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); }; }; then
3005   :
3006 else
3007   echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3009
3010 continue
3011 fi
3012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3013   cat >conftest.$ac_ext <<_ACEOF
3014 /* confdefs.h.  */
3015 _ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h.  */
3019 $ac_declaration
3020 int
3021 main ()
3022 {
3023 exit (42);
3024   ;
3025   return 0;
3026 }
3027 _ACEOF
3028 rm -f conftest.$ac_objext
3029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3030   (eval $ac_compile) 2>conftest.er1
3031   ac_status=$?
3032   grep -v '^ *+' conftest.er1 >conftest.err
3033   rm -f conftest.er1
3034   cat conftest.err >&5
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); } &&
3037          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039   (eval $ac_try) 2>&5
3040   ac_status=$?
3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); }; } &&
3043          { ac_try='test -s conftest.$ac_objext'
3044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045   (eval $ac_try) 2>&5
3046   ac_status=$?
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); }; }; then
3049   break
3050 else
3051   echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3053
3054 fi
3055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3056 done
3057 rm -f conftest*
3058 if test -n "$ac_declaration"; then
3059   echo '#ifdef __cplusplus' >>confdefs.h
3060   echo $ac_declaration      >>confdefs.h
3061   echo '#endif'             >>confdefs.h
3062 fi
3063
3064 else
3065   echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3067
3068 fi
3069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3070 ac_ext=c
3071 ac_cpp='$CPP $CPPFLAGS'
3072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3075
3076
3077 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
3078
3079
3080
3081
3082 echo "$as_me:$LINENO: checking for library containing crypt" >&5
3083 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
3084 if test "${ac_cv_search_crypt+set}" = set; then
3085   echo $ECHO_N "(cached) $ECHO_C" >&6
3086 else
3087   ac_func_search_save_LIBS=$LIBS
3088 ac_cv_search_crypt=no
3089 cat >conftest.$ac_ext <<_ACEOF
3090 /* confdefs.h.  */
3091 _ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h.  */
3095
3096 /* Override any gcc2 internal prototype to avoid an error.  */
3097 #ifdef __cplusplus
3098 extern "C"
3099 #endif
3100 /* We use char because int might match the return type of a gcc2
3101    builtin and then its argument prototype would still apply.  */
3102 char crypt ();
3103 int
3104 main ()
3105 {
3106 crypt ();
3107   ;
3108   return 0;
3109 }
3110 _ACEOF
3111 rm -f conftest.$ac_objext conftest$ac_exeext
3112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3113   (eval $ac_link) 2>conftest.er1
3114   ac_status=$?
3115   grep -v '^ *+' conftest.er1 >conftest.err
3116   rm -f conftest.er1
3117   cat conftest.err >&5
3118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119   (exit $ac_status); } &&
3120          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122   (eval $ac_try) 2>&5
3123   ac_status=$?
3124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125   (exit $ac_status); }; } &&
3126          { ac_try='test -s conftest$ac_exeext'
3127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3128   (eval $ac_try) 2>&5
3129   ac_status=$?
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); }; }; then
3132   ac_cv_search_crypt="none required"
3133 else
3134   echo "$as_me: failed program was:" >&5
3135 sed 's/^/| /' conftest.$ac_ext >&5
3136
3137 fi
3138 rm -f conftest.err conftest.$ac_objext \
3139       conftest$ac_exeext conftest.$ac_ext
3140 if test "$ac_cv_search_crypt" = no; then
3141   for ac_lib in descrypt crypt; do
3142     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3143     cat >conftest.$ac_ext <<_ACEOF
3144 /* confdefs.h.  */
3145 _ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h.  */
3149
3150 /* Override any gcc2 internal prototype to avoid an error.  */
3151 #ifdef __cplusplus
3152 extern "C"
3153 #endif
3154 /* We use char because int might match the return type of a gcc2
3155    builtin and then its argument prototype would still apply.  */
3156 char crypt ();
3157 int
3158 main ()
3159 {
3160 crypt ();
3161   ;
3162   return 0;
3163 }
3164 _ACEOF
3165 rm -f conftest.$ac_objext conftest$ac_exeext
3166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3167   (eval $ac_link) 2>conftest.er1
3168   ac_status=$?
3169   grep -v '^ *+' conftest.er1 >conftest.err
3170   rm -f conftest.er1
3171   cat conftest.err >&5
3172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173   (exit $ac_status); } &&
3174          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176   (eval $ac_try) 2>&5
3177   ac_status=$?
3178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179   (exit $ac_status); }; } &&
3180          { ac_try='test -s conftest$ac_exeext'
3181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182   (eval $ac_try) 2>&5
3183   ac_status=$?
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); }; }; then
3186   ac_cv_search_crypt="-l$ac_lib"
3187 break
3188 else
3189   echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3191
3192 fi
3193 rm -f conftest.err conftest.$ac_objext \
3194       conftest$ac_exeext conftest.$ac_ext
3195   done
3196 fi
3197 LIBS=$ac_func_search_save_LIBS
3198 fi
3199 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
3200 echo "${ECHO_T}$ac_cv_search_crypt" >&6
3201 if test "$ac_cv_search_crypt" != no; then
3202   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
3203
3204 else
3205   { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
3206 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
3207    { (exit 1); exit 1; }; }
3208 fi
3209
3210
3211
3212    # Most operating systems have gethostbyname() in the default searched
3213    # libraries (i.e. libc):
3214    echo "$as_me:$LINENO: checking for gethostbyname" >&5
3215 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3216 if test "${ac_cv_func_gethostbyname+set}" = set; then
3217   echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219   cat >conftest.$ac_ext <<_ACEOF
3220 /* confdefs.h.  */
3221 _ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h.  */
3225 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3226    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3227 #define gethostbyname innocuous_gethostbyname
3228
3229 /* System header to define __stub macros and hopefully few prototypes,
3230     which can conflict with char gethostbyname (); below.
3231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3232     <limits.h> exists even on freestanding compilers.  */
3233
3234 #ifdef __STDC__
3235 # include <limits.h>
3236 #else
3237 # include <assert.h>
3238 #endif
3239
3240 #undef gethostbyname
3241
3242 /* Override any gcc2 internal prototype to avoid an error.  */
3243 #ifdef __cplusplus
3244 extern "C"
3245 {
3246 #endif
3247 /* We use char because int might match the return type of a gcc2
3248    builtin and then its argument prototype would still apply.  */
3249 char gethostbyname ();
3250 /* The GNU C library defines this for functions which it implements
3251     to always fail with ENOSYS.  Some functions are actually named
3252     something starting with __ and the normal name is an alias.  */
3253 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3254 choke me
3255 #else
3256 char (*f) () = gethostbyname;
3257 #endif
3258 #ifdef __cplusplus
3259 }
3260 #endif
3261
3262 int
3263 main ()
3264 {
3265 return f != gethostbyname;
3266   ;
3267   return 0;
3268 }
3269 _ACEOF
3270 rm -f conftest.$ac_objext conftest$ac_exeext
3271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3272   (eval $ac_link) 2>conftest.er1
3273   ac_status=$?
3274   grep -v '^ *+' conftest.er1 >conftest.err
3275   rm -f conftest.er1
3276   cat conftest.err >&5
3277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278   (exit $ac_status); } &&
3279          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3281   (eval $ac_try) 2>&5
3282   ac_status=$?
3283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284   (exit $ac_status); }; } &&
3285          { ac_try='test -s conftest$ac_exeext'
3286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287   (eval $ac_try) 2>&5
3288   ac_status=$?
3289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290   (exit $ac_status); }; }; then
3291   ac_cv_func_gethostbyname=yes
3292 else
3293   echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3295
3296 ac_cv_func_gethostbyname=no
3297 fi
3298 rm -f conftest.err conftest.$ac_objext \
3299       conftest$ac_exeext conftest.$ac_ext
3300 fi
3301 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3302 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3303 if test $ac_cv_func_gethostbyname = yes; then
3304   :
3305 else
3306   # Some OSes (eg. Solaris) place it in libnsl:
3307
3308 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3309 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3310 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3311   echo $ECHO_N "(cached) $ECHO_C" >&6
3312 else
3313   ac_check_lib_save_LIBS=$LIBS
3314 LIBS="-lnsl  $LIBS"
3315 cat >conftest.$ac_ext <<_ACEOF
3316 /* confdefs.h.  */
3317 _ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h.  */
3321
3322 /* Override any gcc2 internal prototype to avoid an error.  */
3323 #ifdef __cplusplus
3324 extern "C"
3325 #endif
3326 /* We use char because int might match the return type of a gcc2
3327    builtin and then its argument prototype would still apply.  */
3328 char gethostbyname ();
3329 int
3330 main ()
3331 {
3332 gethostbyname ();
3333   ;
3334   return 0;
3335 }
3336 _ACEOF
3337 rm -f conftest.$ac_objext conftest$ac_exeext
3338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3339   (eval $ac_link) 2>conftest.er1
3340   ac_status=$?
3341   grep -v '^ *+' conftest.er1 >conftest.err
3342   rm -f conftest.er1
3343   cat conftest.err >&5
3344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345   (exit $ac_status); } &&
3346          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348   (eval $ac_try) 2>&5
3349   ac_status=$?
3350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351   (exit $ac_status); }; } &&
3352          { ac_try='test -s conftest$ac_exeext'
3353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354   (eval $ac_try) 2>&5
3355   ac_status=$?
3356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357   (exit $ac_status); }; }; then
3358   ac_cv_lib_nsl_gethostbyname=yes
3359 else
3360   echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3362
3363 ac_cv_lib_nsl_gethostbyname=no
3364 fi
3365 rm -f conftest.err conftest.$ac_objext \
3366       conftest$ac_exeext conftest.$ac_ext
3367 LIBS=$ac_check_lib_save_LIBS
3368 fi
3369 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3370 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3371 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3372   cat >>confdefs.h <<_ACEOF
3373 #define HAVE_LIBNSL 1
3374 _ACEOF
3375
3376   LIBS="-lnsl $LIBS"
3377
3378 else
3379   # Some strange OSes (SINIX) have it in libsocket:
3380
3381 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3382 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3383 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3384   echo $ECHO_N "(cached) $ECHO_C" >&6
3385 else
3386   ac_check_lib_save_LIBS=$LIBS
3387 LIBS="-lsocket  $LIBS"
3388 cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h.  */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h.  */
3394
3395 /* Override any gcc2 internal prototype to avoid an error.  */
3396 #ifdef __cplusplus
3397 extern "C"
3398 #endif
3399 /* We use char because int might match the return type of a gcc2
3400    builtin and then its argument prototype would still apply.  */
3401 char gethostbyname ();
3402 int
3403 main ()
3404 {
3405 gethostbyname ();
3406   ;
3407   return 0;
3408 }
3409 _ACEOF
3410 rm -f conftest.$ac_objext conftest$ac_exeext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3412   (eval $ac_link) 2>conftest.er1
3413   ac_status=$?
3414   grep -v '^ *+' conftest.er1 >conftest.err
3415   rm -f conftest.er1
3416   cat conftest.err >&5
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); } &&
3419          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421   (eval $ac_try) 2>&5
3422   ac_status=$?
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); }; } &&
3425          { ac_try='test -s conftest$ac_exeext'
3426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427   (eval $ac_try) 2>&5
3428   ac_status=$?
3429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430   (exit $ac_status); }; }; then
3431   ac_cv_lib_socket_gethostbyname=yes
3432 else
3433   echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3435
3436 ac_cv_lib_socket_gethostbyname=no
3437 fi
3438 rm -f conftest.err conftest.$ac_objext \
3439       conftest$ac_exeext conftest.$ac_ext
3440 LIBS=$ac_check_lib_save_LIBS
3441 fi
3442 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3443 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3444 if test $ac_cv_lib_socket_gethostbyname = yes; then
3445   cat >>confdefs.h <<_ACEOF
3446 #define HAVE_LIBSOCKET 1
3447 _ACEOF
3448
3449   LIBS="-lsocket $LIBS"
3450
3451 else
3452   # Unfortunately libsocket sometimes depends on libnsl.
3453           # AC_CHECK_LIB's API is essentially broken so the following
3454           # ugliness is necessary:
3455           echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3456 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3457 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3458   echo $ECHO_N "(cached) $ECHO_C" >&6
3459 else
3460   ac_check_lib_save_LIBS=$LIBS
3461 LIBS="-lsocket -lnsl $LIBS"
3462 cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h.  */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h.  */
3468
3469 /* Override any gcc2 internal prototype to avoid an error.  */
3470 #ifdef __cplusplus
3471 extern "C"
3472 #endif
3473 /* We use char because int might match the return type of a gcc2
3474    builtin and then its argument prototype would still apply.  */
3475 char gethostbyname ();
3476 int
3477 main ()
3478 {
3479 gethostbyname ();
3480   ;
3481   return 0;
3482 }
3483 _ACEOF
3484 rm -f conftest.$ac_objext conftest$ac_exeext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3486   (eval $ac_link) 2>conftest.er1
3487   ac_status=$?
3488   grep -v '^ *+' conftest.er1 >conftest.err
3489   rm -f conftest.er1
3490   cat conftest.err >&5
3491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492   (exit $ac_status); } &&
3493          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495   (eval $ac_try) 2>&5
3496   ac_status=$?
3497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498   (exit $ac_status); }; } &&
3499          { ac_try='test -s conftest$ac_exeext'
3500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501   (eval $ac_try) 2>&5
3502   ac_status=$?
3503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504   (exit $ac_status); }; }; then
3505   ac_cv_lib_socket_gethostbyname=yes
3506 else
3507   echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3509
3510 ac_cv_lib_socket_gethostbyname=no
3511 fi
3512 rm -f conftest.err conftest.$ac_objext \
3513       conftest$ac_exeext conftest.$ac_ext
3514 LIBS=$ac_check_lib_save_LIBS
3515 fi
3516 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3517 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3518 if test $ac_cv_lib_socket_gethostbyname = yes; then
3519   LIBS="-lsocket -lnsl $LIBS"
3520 else
3521
3522 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
3523 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
3524 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
3525   echo $ECHO_N "(cached) $ECHO_C" >&6
3526 else
3527   ac_check_lib_save_LIBS=$LIBS
3528 LIBS="-lresolv  $LIBS"
3529 cat >conftest.$ac_ext <<_ACEOF
3530 /* confdefs.h.  */
3531 _ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h.  */
3535
3536 /* Override any gcc2 internal prototype to avoid an error.  */
3537 #ifdef __cplusplus
3538 extern "C"
3539 #endif
3540 /* We use char because int might match the return type of a gcc2
3541    builtin and then its argument prototype would still apply.  */
3542 char gethostbyname ();
3543 int
3544 main ()
3545 {
3546 gethostbyname ();
3547   ;
3548   return 0;
3549 }
3550 _ACEOF
3551 rm -f conftest.$ac_objext conftest$ac_exeext
3552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3553   (eval $ac_link) 2>conftest.er1
3554   ac_status=$?
3555   grep -v '^ *+' conftest.er1 >conftest.err
3556   rm -f conftest.er1
3557   cat conftest.err >&5
3558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559   (exit $ac_status); } &&
3560          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3562   (eval $ac_try) 2>&5
3563   ac_status=$?
3564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565   (exit $ac_status); }; } &&
3566          { ac_try='test -s conftest$ac_exeext'
3567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568   (eval $ac_try) 2>&5
3569   ac_status=$?
3570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571   (exit $ac_status); }; }; then
3572   ac_cv_lib_resolv_gethostbyname=yes
3573 else
3574   echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3576
3577 ac_cv_lib_resolv_gethostbyname=no
3578 fi
3579 rm -f conftest.err conftest.$ac_objext \
3580       conftest$ac_exeext conftest.$ac_ext
3581 LIBS=$ac_check_lib_save_LIBS
3582 fi
3583 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3584 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3585 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3586   cat >>confdefs.h <<_ACEOF
3587 #define HAVE_LIBRESOLV 1
3588 _ACEOF
3589
3590   LIBS="-lresolv $LIBS"
3591
3592 fi
3593
3594 fi
3595
3596
3597 fi
3598
3599
3600 fi
3601
3602
3603 fi
3604
3605   echo "$as_me:$LINENO: checking for socket" >&5
3606 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3607 if test "${ac_cv_func_socket+set}" = set; then
3608   echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610   cat >conftest.$ac_ext <<_ACEOF
3611 /* confdefs.h.  */
3612 _ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h.  */
3616 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3617    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3618 #define socket innocuous_socket
3619
3620 /* System header to define __stub macros and hopefully few prototypes,
3621     which can conflict with char socket (); below.
3622     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3623     <limits.h> exists even on freestanding compilers.  */
3624
3625 #ifdef __STDC__
3626 # include <limits.h>
3627 #else
3628 # include <assert.h>
3629 #endif
3630
3631 #undef socket
3632
3633 /* Override any gcc2 internal prototype to avoid an error.  */
3634 #ifdef __cplusplus
3635 extern "C"
3636 {
3637 #endif
3638 /* We use char because int might match the return type of a gcc2
3639    builtin and then its argument prototype would still apply.  */
3640 char socket ();
3641 /* The GNU C library defines this for functions which it implements
3642     to always fail with ENOSYS.  Some functions are actually named
3643     something starting with __ and the normal name is an alias.  */
3644 #if defined (__stub_socket) || defined (__stub___socket)
3645 choke me
3646 #else
3647 char (*f) () = socket;
3648 #endif
3649 #ifdef __cplusplus
3650 }
3651 #endif
3652
3653 int
3654 main ()
3655 {
3656 return f != socket;
3657   ;
3658   return 0;
3659 }
3660 _ACEOF
3661 rm -f conftest.$ac_objext conftest$ac_exeext
3662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3663   (eval $ac_link) 2>conftest.er1
3664   ac_status=$?
3665   grep -v '^ *+' conftest.er1 >conftest.err
3666   rm -f conftest.er1
3667   cat conftest.err >&5
3668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669   (exit $ac_status); } &&
3670          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672   (eval $ac_try) 2>&5
3673   ac_status=$?
3674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675   (exit $ac_status); }; } &&
3676          { ac_try='test -s conftest$ac_exeext'
3677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678   (eval $ac_try) 2>&5
3679   ac_status=$?
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); }; }; then
3682   ac_cv_func_socket=yes
3683 else
3684   echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3686
3687 ac_cv_func_socket=no
3688 fi
3689 rm -f conftest.err conftest.$ac_objext \
3690       conftest$ac_exeext conftest.$ac_ext
3691 fi
3692 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3693 echo "${ECHO_T}$ac_cv_func_socket" >&6
3694 if test $ac_cv_func_socket = yes; then
3695   :
3696 else
3697
3698 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3699 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3700 if test "${ac_cv_lib_socket_socket+set}" = set; then
3701   echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703   ac_check_lib_save_LIBS=$LIBS
3704 LIBS="-lsocket  $LIBS"
3705 cat >conftest.$ac_ext <<_ACEOF
3706 /* confdefs.h.  */
3707 _ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h.  */
3711
3712 /* Override any gcc2 internal prototype to avoid an error.  */
3713 #ifdef __cplusplus
3714 extern "C"
3715 #endif
3716 /* We use char because int might match the return type of a gcc2
3717    builtin and then its argument prototype would still apply.  */
3718 char socket ();
3719 int
3720 main ()
3721 {
3722 socket ();
3723   ;
3724   return 0;
3725 }
3726 _ACEOF
3727 rm -f conftest.$ac_objext conftest$ac_exeext
3728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3729   (eval $ac_link) 2>conftest.er1
3730   ac_status=$?
3731   grep -v '^ *+' conftest.er1 >conftest.err
3732   rm -f conftest.er1
3733   cat conftest.err >&5
3734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735   (exit $ac_status); } &&
3736          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738   (eval $ac_try) 2>&5
3739   ac_status=$?
3740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741   (exit $ac_status); }; } &&
3742          { ac_try='test -s conftest$ac_exeext'
3743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744   (eval $ac_try) 2>&5
3745   ac_status=$?
3746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747   (exit $ac_status); }; }; then
3748   ac_cv_lib_socket_socket=yes
3749 else
3750   echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.$ac_ext >&5
3752
3753 ac_cv_lib_socket_socket=no
3754 fi
3755 rm -f conftest.err conftest.$ac_objext \
3756       conftest$ac_exeext conftest.$ac_ext
3757 LIBS=$ac_check_lib_save_LIBS
3758 fi
3759 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3760 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3761 if test $ac_cv_lib_socket_socket = yes; then
3762   cat >>confdefs.h <<_ACEOF
3763 #define HAVE_LIBSOCKET 1
3764 _ACEOF
3765
3766   LIBS="-lsocket $LIBS"
3767
3768 else
3769   echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3770 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3771 if test "${ac_cv_lib_socket_socket+set}" = set; then
3772   echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774   ac_check_lib_save_LIBS=$LIBS
3775 LIBS="-lsocket -lnsl $LIBS"
3776 cat >conftest.$ac_ext <<_ACEOF
3777 /* confdefs.h.  */
3778 _ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h.  */
3782
3783 /* Override any gcc2 internal prototype to avoid an error.  */
3784 #ifdef __cplusplus
3785 extern "C"
3786 #endif
3787 /* We use char because int might match the return type of a gcc2
3788    builtin and then its argument prototype would still apply.  */
3789 char socket ();
3790 int
3791 main ()
3792 {
3793 socket ();
3794   ;
3795   return 0;
3796 }
3797 _ACEOF
3798 rm -f conftest.$ac_objext conftest$ac_exeext
3799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3800   (eval $ac_link) 2>conftest.er1
3801   ac_status=$?
3802   grep -v '^ *+' conftest.er1 >conftest.err
3803   rm -f conftest.er1
3804   cat conftest.err >&5
3805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806   (exit $ac_status); } &&
3807          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809   (eval $ac_try) 2>&5
3810   ac_status=$?
3811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812   (exit $ac_status); }; } &&
3813          { ac_try='test -s conftest$ac_exeext'
3814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815   (eval $ac_try) 2>&5
3816   ac_status=$?
3817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818   (exit $ac_status); }; }; then
3819   ac_cv_lib_socket_socket=yes
3820 else
3821   echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3823
3824 ac_cv_lib_socket_socket=no
3825 fi
3826 rm -f conftest.err conftest.$ac_objext \
3827       conftest$ac_exeext conftest.$ac_ext
3828 LIBS=$ac_check_lib_save_LIBS
3829 fi
3830 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3831 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3832 if test $ac_cv_lib_socket_socket = yes; then
3833   LIBS="-lsocket -lnsl $LIBS"
3834 fi
3835
3836 fi
3837
3838 fi
3839
3840
3841
3842 ac_ext=c
3843 ac_cpp='$CPP $CPPFLAGS'
3844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3847 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3848 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3849 # On Suns, sometimes $CPP names a directory.
3850 if test -n "$CPP" && test -d "$CPP"; then
3851   CPP=
3852 fi
3853 if test -z "$CPP"; then
3854   if test "${ac_cv_prog_CPP+set}" = set; then
3855   echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857       # Double quotes because CPP needs to be expanded
3858     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3859     do
3860       ac_preproc_ok=false
3861 for ac_c_preproc_warn_flag in '' yes
3862 do
3863   # Use a header file that comes with gcc, so configuring glibc
3864   # with a fresh cross-compiler works.
3865   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3866   # <limits.h> exists even on freestanding compilers.
3867   # On the NeXT, cc -E runs the code through the compiler's parser,
3868   # not just through cpp. "Syntax error" is here to catch this case.
3869   cat >conftest.$ac_ext <<_ACEOF
3870 /* confdefs.h.  */
3871 _ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h.  */
3875 #ifdef __STDC__
3876 # include <limits.h>
3877 #else
3878 # include <assert.h>
3879 #endif
3880                      Syntax error
3881 _ACEOF
3882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3883   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3884   ac_status=$?
3885   grep -v '^ *+' conftest.er1 >conftest.err
3886   rm -f conftest.er1
3887   cat conftest.err >&5
3888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889   (exit $ac_status); } >/dev/null; then
3890   if test -s conftest.err; then
3891     ac_cpp_err=$ac_c_preproc_warn_flag
3892     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3893   else
3894     ac_cpp_err=
3895   fi
3896 else
3897   ac_cpp_err=yes
3898 fi
3899 if test -z "$ac_cpp_err"; then
3900   :
3901 else
3902   echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3904
3905   # Broken: fails on valid input.
3906 continue
3907 fi
3908 rm -f conftest.err conftest.$ac_ext
3909
3910   # OK, works on sane cases.  Now check whether non-existent headers
3911   # can be detected and how.
3912   cat >conftest.$ac_ext <<_ACEOF
3913 /* confdefs.h.  */
3914 _ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h.  */
3918 #include <ac_nonexistent.h>
3919 _ACEOF
3920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3921   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3922   ac_status=$?
3923   grep -v '^ *+' conftest.er1 >conftest.err
3924   rm -f conftest.er1
3925   cat conftest.err >&5
3926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927   (exit $ac_status); } >/dev/null; then
3928   if test -s conftest.err; then
3929     ac_cpp_err=$ac_c_preproc_warn_flag
3930     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3931   else
3932     ac_cpp_err=
3933   fi
3934 else
3935   ac_cpp_err=yes
3936 fi
3937 if test -z "$ac_cpp_err"; then
3938   # Broken: success on invalid input.
3939 continue
3940 else
3941   echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3943
3944   # Passes both tests.
3945 ac_preproc_ok=:
3946 break
3947 fi
3948 rm -f conftest.err conftest.$ac_ext
3949
3950 done
3951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3952 rm -f conftest.err conftest.$ac_ext
3953 if $ac_preproc_ok; then
3954   break
3955 fi
3956
3957     done
3958     ac_cv_prog_CPP=$CPP
3959
3960 fi
3961   CPP=$ac_cv_prog_CPP
3962 else
3963   ac_cv_prog_CPP=$CPP
3964 fi
3965 echo "$as_me:$LINENO: result: $CPP" >&5
3966 echo "${ECHO_T}$CPP" >&6
3967 ac_preproc_ok=false
3968 for ac_c_preproc_warn_flag in '' yes
3969 do
3970   # Use a header file that comes with gcc, so configuring glibc
3971   # with a fresh cross-compiler works.
3972   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3973   # <limits.h> exists even on freestanding compilers.
3974   # On the NeXT, cc -E runs the code through the compiler's parser,
3975   # not just through cpp. "Syntax error" is here to catch this case.
3976   cat >conftest.$ac_ext <<_ACEOF
3977 /* confdefs.h.  */
3978 _ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h.  */
3982 #ifdef __STDC__
3983 # include <limits.h>
3984 #else
3985 # include <assert.h>
3986 #endif
3987                      Syntax error
3988 _ACEOF
3989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3990   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3991   ac_status=$?
3992   grep -v '^ *+' conftest.er1 >conftest.err
3993   rm -f conftest.er1
3994   cat conftest.err >&5
3995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996   (exit $ac_status); } >/dev/null; then
3997   if test -s conftest.err; then
3998     ac_cpp_err=$ac_c_preproc_warn_flag
3999     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4000   else
4001     ac_cpp_err=
4002   fi
4003 else
4004   ac_cpp_err=yes
4005 fi
4006 if test -z "$ac_cpp_err"; then
4007   :
4008 else
4009   echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4011
4012   # Broken: fails on valid input.
4013 continue
4014 fi
4015 rm -f conftest.err conftest.$ac_ext
4016
4017   # OK, works on sane cases.  Now check whether non-existent headers
4018   # can be detected and how.
4019   cat >conftest.$ac_ext <<_ACEOF
4020 /* confdefs.h.  */
4021 _ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h.  */
4025 #include <ac_nonexistent.h>
4026 _ACEOF
4027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4028   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4029   ac_status=$?
4030   grep -v '^ *+' conftest.er1 >conftest.err
4031   rm -f conftest.er1
4032   cat conftest.err >&5
4033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034   (exit $ac_status); } >/dev/null; then
4035   if test -s conftest.err; then
4036     ac_cpp_err=$ac_c_preproc_warn_flag
4037     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4038   else
4039     ac_cpp_err=
4040   fi
4041 else
4042   ac_cpp_err=yes
4043 fi
4044 if test -z "$ac_cpp_err"; then
4045   # Broken: success on invalid input.
4046 continue
4047 else
4048   echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4050
4051   # Passes both tests.
4052 ac_preproc_ok=:
4053 break
4054 fi
4055 rm -f conftest.err conftest.$ac_ext
4056
4057 done
4058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4059 rm -f conftest.err conftest.$ac_ext
4060 if $ac_preproc_ok; then
4061   :
4062 else
4063   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4064 See \`config.log' for more details." >&5
4065 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4066 See \`config.log' for more details." >&2;}
4067    { (exit 1); exit 1; }; }
4068 fi
4069
4070 ac_ext=c
4071 ac_cpp='$CPP $CPPFLAGS'
4072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075
4076
4077 echo "$as_me:$LINENO: checking for egrep" >&5
4078 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4079 if test "${ac_cv_prog_egrep+set}" = set; then
4080   echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4083     then ac_cv_prog_egrep='grep -E'
4084     else ac_cv_prog_egrep='egrep'
4085     fi
4086 fi
4087 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4088 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4089  EGREP=$ac_cv_prog_egrep
4090
4091
4092 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4093 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4094 if test "${ac_cv_header_stdc+set}" = set; then
4095   echo $ECHO_N "(cached) $ECHO_C" >&6
4096 else
4097   cat >conftest.$ac_ext <<_ACEOF
4098 /* confdefs.h.  */
4099 _ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h.  */
4103 #include <stdlib.h>
4104 #include <stdarg.h>
4105 #include <string.h>
4106 #include <float.h>
4107
4108 int
4109 main ()
4110 {
4111
4112   ;
4113   return 0;
4114 }
4115 _ACEOF
4116 rm -f conftest.$ac_objext
4117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4118   (eval $ac_compile) 2>conftest.er1
4119   ac_status=$?
4120   grep -v '^ *+' conftest.er1 >conftest.err
4121   rm -f conftest.er1
4122   cat conftest.err >&5
4123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124   (exit $ac_status); } &&
4125          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127   (eval $ac_try) 2>&5
4128   ac_status=$?
4129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130   (exit $ac_status); }; } &&
4131          { ac_try='test -s conftest.$ac_objext'
4132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4133   (eval $ac_try) 2>&5
4134   ac_status=$?
4135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136   (exit $ac_status); }; }; then
4137   ac_cv_header_stdc=yes
4138 else
4139   echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.$ac_ext >&5
4141
4142 ac_cv_header_stdc=no
4143 fi
4144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4145
4146 if test $ac_cv_header_stdc = yes; then
4147   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4148   cat >conftest.$ac_ext <<_ACEOF
4149 /* confdefs.h.  */
4150 _ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h.  */
4154 #include <string.h>
4155
4156 _ACEOF
4157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158   $EGREP "memchr" >/dev/null 2>&1; then
4159   :
4160 else
4161   ac_cv_header_stdc=no
4162 fi
4163 rm -f conftest*
4164
4165 fi
4166
4167 if test $ac_cv_header_stdc = yes; then
4168   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4169   cat >conftest.$ac_ext <<_ACEOF
4170 /* confdefs.h.  */
4171 _ACEOF
4172 cat confdefs.h >>conftest.$ac_ext
4173 cat >>conftest.$ac_ext <<_ACEOF
4174 /* end confdefs.h.  */
4175 #include <stdlib.h>
4176
4177 _ACEOF
4178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4179   $EGREP "free" >/dev/null 2>&1; then
4180   :
4181 else
4182   ac_cv_header_stdc=no
4183 fi
4184 rm -f conftest*
4185
4186 fi
4187
4188 if test $ac_cv_header_stdc = yes; then
4189   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4190   if test "$cross_compiling" = yes; then
4191   :
4192 else
4193   cat >conftest.$ac_ext <<_ACEOF
4194 /* confdefs.h.  */
4195 _ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h.  */
4199 #include <ctype.h>
4200 #if ((' ' & 0x0FF) == 0x020)
4201 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4202 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4203 #else
4204 # define ISLOWER(c) \
4205                    (('a' <= (c) && (c) <= 'i') \
4206                      || ('j' <= (c) && (c) <= 'r') \
4207                      || ('s' <= (c) && (c) <= 'z'))
4208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4209 #endif
4210
4211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4212 int
4213 main ()
4214 {
4215   int i;
4216   for (i = 0; i < 256; i++)
4217     if (XOR (islower (i), ISLOWER (i))
4218         || toupper (i) != TOUPPER (i))
4219       exit(2);
4220   exit (0);
4221 }
4222 _ACEOF
4223 rm -f conftest$ac_exeext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4225   (eval $ac_link) 2>&5
4226   ac_status=$?
4227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230   (eval $ac_try) 2>&5
4231   ac_status=$?
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); }; }; then
4234   :
4235 else
4236   echo "$as_me: program exited with status $ac_status" >&5
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4239
4240 ( exit $ac_status )
4241 ac_cv_header_stdc=no
4242 fi
4243 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4244 fi
4245 fi
4246 fi
4247 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4248 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4249 if test $ac_cv_header_stdc = yes; then
4250
4251 cat >>confdefs.h <<\_ACEOF
4252 #define STDC_HEADERS 1
4253 _ACEOF
4254
4255 fi
4256
4257 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4268                   inttypes.h stdint.h unistd.h
4269 do
4270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4271 echo "$as_me:$LINENO: checking for $ac_header" >&5
4272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4274   echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276   cat >conftest.$ac_ext <<_ACEOF
4277 /* confdefs.h.  */
4278 _ACEOF
4279 cat confdefs.h >>conftest.$ac_ext
4280 cat >>conftest.$ac_ext <<_ACEOF
4281 /* end confdefs.h.  */
4282 $ac_includes_default
4283
4284 #include <$ac_header>
4285 _ACEOF
4286 rm -f conftest.$ac_objext
4287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4288   (eval $ac_compile) 2>conftest.er1
4289   ac_status=$?
4290   grep -v '^ *+' conftest.er1 >conftest.err
4291   rm -f conftest.er1
4292   cat conftest.err >&5
4293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294   (exit $ac_status); } &&
4295          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297   (eval $ac_try) 2>&5
4298   ac_status=$?
4299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300   (exit $ac_status); }; } &&
4301          { ac_try='test -s conftest.$ac_objext'
4302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303   (eval $ac_try) 2>&5
4304   ac_status=$?
4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); }; }; then
4307   eval "$as_ac_Header=yes"
4308 else
4309   echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4311
4312 eval "$as_ac_Header=no"
4313 fi
4314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4315 fi
4316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4319   cat >>confdefs.h <<_ACEOF
4320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4321 _ACEOF
4322
4323 fi
4324
4325 done
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338 for ac_header in crypt.h poll.h inttypes.h stdint.h sys/devpoll.h sys/epoll.h sys/event.h sys/param.h sys/resource.h sys/socket.h
4339 do
4340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4342   echo "$as_me:$LINENO: checking for $ac_header" >&5
4343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4345   echo $ECHO_N "(cached) $ECHO_C" >&6
4346 fi
4347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4349 else
4350   # Is the header compilable?
4351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4353 cat >conftest.$ac_ext <<_ACEOF
4354 /* confdefs.h.  */
4355 _ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h.  */
4359 $ac_includes_default
4360 #include <$ac_header>
4361 _ACEOF
4362 rm -f conftest.$ac_objext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4364   (eval $ac_compile) 2>conftest.er1
4365   ac_status=$?
4366   grep -v '^ *+' conftest.er1 >conftest.err
4367   rm -f conftest.er1
4368   cat conftest.err >&5
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); } &&
4371          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373   (eval $ac_try) 2>&5
4374   ac_status=$?
4375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376   (exit $ac_status); }; } &&
4377          { ac_try='test -s conftest.$ac_objext'
4378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379   (eval $ac_try) 2>&5
4380   ac_status=$?
4381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382   (exit $ac_status); }; }; then
4383   ac_header_compiler=yes
4384 else
4385   echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4387
4388 ac_header_compiler=no
4389 fi
4390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4392 echo "${ECHO_T}$ac_header_compiler" >&6
4393
4394 # Is the header present?
4395 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4397 cat >conftest.$ac_ext <<_ACEOF
4398 /* confdefs.h.  */
4399 _ACEOF
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h.  */
4403 #include <$ac_header>
4404 _ACEOF
4405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4406   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4407   ac_status=$?
4408   grep -v '^ *+' conftest.er1 >conftest.err
4409   rm -f conftest.er1
4410   cat conftest.err >&5
4411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412   (exit $ac_status); } >/dev/null; then
4413   if test -s conftest.err; then
4414     ac_cpp_err=$ac_c_preproc_warn_flag
4415     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4416   else
4417     ac_cpp_err=
4418   fi
4419 else
4420   ac_cpp_err=yes
4421 fi
4422 if test -z "$ac_cpp_err"; then
4423   ac_header_preproc=yes
4424 else
4425   echo "$as_me: failed program was:" >&5
4426 sed 's/^/| /' conftest.$ac_ext >&5
4427
4428   ac_header_preproc=no
4429 fi
4430 rm -f conftest.err conftest.$ac_ext
4431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4432 echo "${ECHO_T}$ac_header_preproc" >&6
4433
4434 # So?  What about this header?
4435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4436   yes:no: )
4437     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4441     ac_header_preproc=yes
4442     ;;
4443   no:yes:* )
4444     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4446     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4447 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4448     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4450     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4451 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4452     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4454     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4456     (
4457       cat <<\_ASBOX
4458 ## ------------------------------------------ ##
4459 ## Report this to the AC_PACKAGE_NAME lists.  ##
4460 ## ------------------------------------------ ##
4461 _ASBOX
4462     ) |
4463       sed "s/^/$as_me: WARNING:     /" >&2
4464     ;;
4465 esac
4466 echo "$as_me:$LINENO: checking for $ac_header" >&5
4467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4469   echo $ECHO_N "(cached) $ECHO_C" >&6
4470 else
4471   eval "$as_ac_Header=\$ac_header_preproc"
4472 fi
4473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4475
4476 fi
4477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4478   cat >>confdefs.h <<_ACEOF
4479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4480 _ACEOF
4481
4482 fi
4483
4484 done
4485
4486
4487 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4488 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4489 if test "${ac_cv_c_bigendian+set}" = set; then
4490   echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492   # See if sys/param.h defines the BYTE_ORDER macro.
4493 cat >conftest.$ac_ext <<_ACEOF
4494 /* confdefs.h.  */
4495 _ACEOF
4496 cat confdefs.h >>conftest.$ac_ext
4497 cat >>conftest.$ac_ext <<_ACEOF
4498 /* end confdefs.h.  */
4499 #include <sys/types.h>
4500 #include <sys/param.h>
4501
4502 int
4503 main ()
4504 {
4505 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4506  bogus endian macros
4507 #endif
4508
4509   ;
4510   return 0;
4511 }
4512 _ACEOF
4513 rm -f conftest.$ac_objext
4514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4515   (eval $ac_compile) 2>conftest.er1
4516   ac_status=$?
4517   grep -v '^ *+' conftest.er1 >conftest.err
4518   rm -f conftest.er1
4519   cat conftest.err >&5
4520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521   (exit $ac_status); } &&
4522          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524   (eval $ac_try) 2>&5
4525   ac_status=$?
4526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527   (exit $ac_status); }; } &&
4528          { ac_try='test -s conftest.$ac_objext'
4529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530   (eval $ac_try) 2>&5
4531   ac_status=$?
4532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533   (exit $ac_status); }; }; then
4534   # It does; now see whether it defined to BIG_ENDIAN or not.
4535 cat >conftest.$ac_ext <<_ACEOF
4536 /* confdefs.h.  */
4537 _ACEOF
4538 cat confdefs.h >>conftest.$ac_ext
4539 cat >>conftest.$ac_ext <<_ACEOF
4540 /* end confdefs.h.  */
4541 #include <sys/types.h>
4542 #include <sys/param.h>
4543
4544 int
4545 main ()
4546 {
4547 #if BYTE_ORDER != BIG_ENDIAN
4548  not big endian
4549 #endif
4550
4551   ;
4552   return 0;
4553 }
4554 _ACEOF
4555 rm -f conftest.$ac_objext
4556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4557   (eval $ac_compile) 2>conftest.er1
4558   ac_status=$?
4559   grep -v '^ *+' conftest.er1 >conftest.err
4560   rm -f conftest.er1
4561   cat conftest.err >&5
4562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563   (exit $ac_status); } &&
4564          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566   (eval $ac_try) 2>&5
4567   ac_status=$?
4568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569   (exit $ac_status); }; } &&
4570          { ac_try='test -s conftest.$ac_objext'
4571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572   (eval $ac_try) 2>&5
4573   ac_status=$?
4574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575   (exit $ac_status); }; }; then
4576   ac_cv_c_bigendian=yes
4577 else
4578   echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4580
4581 ac_cv_c_bigendian=no
4582 fi
4583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4584 else
4585   echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4587
4588 # It does not; compile a test program.
4589 if test "$cross_compiling" = yes; then
4590   # try to guess the endianness by grepping values into an object file
4591   ac_cv_c_bigendian=unknown
4592   cat >conftest.$ac_ext <<_ACEOF
4593 /* confdefs.h.  */
4594 _ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h.  */
4598 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4599 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4600 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4601 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4602 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4603 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4604 int
4605 main ()
4606 {
4607  _ascii (); _ebcdic ();
4608   ;
4609   return 0;
4610 }
4611 _ACEOF
4612 rm -f conftest.$ac_objext
4613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4614   (eval $ac_compile) 2>conftest.er1
4615   ac_status=$?
4616   grep -v '^ *+' conftest.er1 >conftest.err
4617   rm -f conftest.er1
4618   cat conftest.err >&5
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); } &&
4621          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623   (eval $ac_try) 2>&5
4624   ac_status=$?
4625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626   (exit $ac_status); }; } &&
4627          { ac_try='test -s conftest.$ac_objext'
4628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629   (eval $ac_try) 2>&5
4630   ac_status=$?
4631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632   (exit $ac_status); }; }; then
4633   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4634   ac_cv_c_bigendian=yes
4635 fi
4636 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4637   if test "$ac_cv_c_bigendian" = unknown; then
4638     ac_cv_c_bigendian=no
4639   else
4640     # finding both strings is unlikely to happen, but who knows?
4641     ac_cv_c_bigendian=unknown
4642   fi
4643 fi
4644 else
4645   echo "$as_me: failed program was:" >&5
4646 sed 's/^/| /' conftest.$ac_ext >&5
4647
4648 fi
4649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4650 else
4651   cat >conftest.$ac_ext <<_ACEOF
4652 /* confdefs.h.  */
4653 _ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h.  */
4657 int
4658 main ()
4659 {
4660   /* Are we little or big endian?  From Harbison&Steele.  */
4661   union
4662   {
4663     long l;
4664     char c[sizeof (long)];
4665   } u;
4666   u.l = 1;
4667   exit (u.c[sizeof (long) - 1] == 1);
4668 }
4669 _ACEOF
4670 rm -f conftest$ac_exeext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4672   (eval $ac_link) 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677   (eval $ac_try) 2>&5
4678   ac_status=$?
4679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680   (exit $ac_status); }; }; then
4681   ac_cv_c_bigendian=no
4682 else
4683   echo "$as_me: program exited with status $ac_status" >&5
4684 echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4686
4687 ( exit $ac_status )
4688 ac_cv_c_bigendian=yes
4689 fi
4690 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4691 fi
4692 fi
4693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4694 fi
4695 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4696 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4697 case $ac_cv_c_bigendian in
4698   yes)
4699
4700 cat >>confdefs.h <<\_ACEOF
4701 #define WORDS_BIGENDIAN 1
4702 _ACEOF
4703  ;;
4704   no)
4705      ;;
4706   *)
4707     { { echo "$as_me:$LINENO: error: unknown endianness
4708 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4709 echo "$as_me: error: unknown endianness
4710 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4711    { (exit 1); exit 1; }; } ;;
4712 esac
4713
4714 echo "$as_me:$LINENO: checking for size_t" >&5
4715 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4716 if test "${ac_cv_type_size_t+set}" = set; then
4717   echo $ECHO_N "(cached) $ECHO_C" >&6
4718 else
4719   cat >conftest.$ac_ext <<_ACEOF
4720 /* confdefs.h.  */
4721 _ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h.  */
4725 $ac_includes_default
4726 int
4727 main ()
4728 {
4729 if ((size_t *) 0)
4730   return 0;
4731 if (sizeof (size_t))
4732   return 0;
4733   ;
4734   return 0;
4735 }
4736 _ACEOF
4737 rm -f conftest.$ac_objext
4738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4739   (eval $ac_compile) 2>conftest.er1
4740   ac_status=$?
4741   grep -v '^ *+' conftest.er1 >conftest.err
4742   rm -f conftest.er1
4743   cat conftest.err >&5
4744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745   (exit $ac_status); } &&
4746          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748   (eval $ac_try) 2>&5
4749   ac_status=$?
4750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751   (exit $ac_status); }; } &&
4752          { ac_try='test -s conftest.$ac_objext'
4753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754   (eval $ac_try) 2>&5
4755   ac_status=$?
4756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757   (exit $ac_status); }; }; then
4758   ac_cv_type_size_t=yes
4759 else
4760   echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4762
4763 ac_cv_type_size_t=no
4764 fi
4765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4766 fi
4767 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4768 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4769 if test $ac_cv_type_size_t = yes; then
4770   :
4771 else
4772
4773 cat >>confdefs.h <<_ACEOF
4774 #define size_t unsigned
4775 _ACEOF
4776
4777 fi
4778
4779 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4780 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4781 if test "${ac_cv_header_time+set}" = set; then
4782   echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784   cat >conftest.$ac_ext <<_ACEOF
4785 /* confdefs.h.  */
4786 _ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h.  */
4790 #include <sys/types.h>
4791 #include <sys/time.h>
4792 #include <time.h>
4793
4794 int
4795 main ()
4796 {
4797 if ((struct tm *) 0)
4798 return 0;
4799   ;
4800   return 0;
4801 }
4802 _ACEOF
4803 rm -f conftest.$ac_objext
4804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805   (eval $ac_compile) 2>conftest.er1
4806   ac_status=$?
4807   grep -v '^ *+' conftest.er1 >conftest.err
4808   rm -f conftest.er1
4809   cat conftest.err >&5
4810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811   (exit $ac_status); } &&
4812          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814   (eval $ac_try) 2>&5
4815   ac_status=$?
4816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817   (exit $ac_status); }; } &&
4818          { ac_try='test -s conftest.$ac_objext'
4819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820   (eval $ac_try) 2>&5
4821   ac_status=$?
4822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823   (exit $ac_status); }; }; then
4824   ac_cv_header_time=yes
4825 else
4826   echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4828
4829 ac_cv_header_time=no
4830 fi
4831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4832 fi
4833 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4834 echo "${ECHO_T}$ac_cv_header_time" >&6
4835 if test $ac_cv_header_time = yes; then
4836
4837 cat >>confdefs.h <<\_ACEOF
4838 #define TIME_WITH_SYS_TIME 1
4839 _ACEOF
4840
4841 fi
4842
4843 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4844 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4845 if test "${ac_cv_struct_tm+set}" = set; then
4846   echo $ECHO_N "(cached) $ECHO_C" >&6
4847 else
4848   cat >conftest.$ac_ext <<_ACEOF
4849 /* confdefs.h.  */
4850 _ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h.  */
4854 #include <sys/types.h>
4855 #include <time.h>
4856
4857 int
4858 main ()
4859 {
4860 struct tm *tp; tp->tm_sec;
4861   ;
4862   return 0;
4863 }
4864 _ACEOF
4865 rm -f conftest.$ac_objext
4866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4867   (eval $ac_compile) 2>conftest.er1
4868   ac_status=$?
4869   grep -v '^ *+' conftest.er1 >conftest.err
4870   rm -f conftest.er1
4871   cat conftest.err >&5
4872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873   (exit $ac_status); } &&
4874          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876   (eval $ac_try) 2>&5
4877   ac_status=$?
4878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879   (exit $ac_status); }; } &&
4880          { ac_try='test -s conftest.$ac_objext'
4881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882   (eval $ac_try) 2>&5
4883   ac_status=$?
4884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885   (exit $ac_status); }; }; then
4886   ac_cv_struct_tm=time.h
4887 else
4888   echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4890
4891 ac_cv_struct_tm=sys/time.h
4892 fi
4893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4894 fi
4895 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4896 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4897 if test $ac_cv_struct_tm = sys/time.h; then
4898
4899 cat >>confdefs.h <<\_ACEOF
4900 #define TM_IN_SYS_TIME 1
4901 _ACEOF
4902
4903 fi
4904
4905 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4906 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4907 if test "${ac_cv_type_uid_t+set}" = set; then
4908   echo $ECHO_N "(cached) $ECHO_C" >&6
4909 else
4910   cat >conftest.$ac_ext <<_ACEOF
4911 /* confdefs.h.  */
4912 _ACEOF
4913 cat confdefs.h >>conftest.$ac_ext
4914 cat >>conftest.$ac_ext <<_ACEOF
4915 /* end confdefs.h.  */
4916 #include <sys/types.h>
4917
4918 _ACEOF
4919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4920   $EGREP "uid_t" >/dev/null 2>&1; then
4921   ac_cv_type_uid_t=yes
4922 else
4923   ac_cv_type_uid_t=no
4924 fi
4925 rm -f conftest*
4926
4927 fi
4928 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4929 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4930 if test $ac_cv_type_uid_t = no; then
4931
4932 cat >>confdefs.h <<\_ACEOF
4933 #define uid_t int
4934 _ACEOF
4935
4936
4937 cat >>confdefs.h <<\_ACEOF
4938 #define gid_t int
4939 _ACEOF
4940
4941 fi
4942
4943 echo "$as_me:$LINENO: checking for short" >&5
4944 echo $ECHO_N "checking for short... $ECHO_C" >&6
4945 if test "${ac_cv_type_short+set}" = set; then
4946   echo $ECHO_N "(cached) $ECHO_C" >&6
4947 else
4948   cat >conftest.$ac_ext <<_ACEOF
4949 /* confdefs.h.  */
4950 _ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h.  */
4954 $ac_includes_default
4955 int
4956 main ()
4957 {
4958 if ((short *) 0)
4959   return 0;
4960 if (sizeof (short))
4961   return 0;
4962   ;
4963   return 0;
4964 }
4965 _ACEOF
4966 rm -f conftest.$ac_objext
4967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4968   (eval $ac_compile) 2>conftest.er1
4969   ac_status=$?
4970   grep -v '^ *+' conftest.er1 >conftest.err
4971   rm -f conftest.er1
4972   cat conftest.err >&5
4973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974   (exit $ac_status); } &&
4975          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977   (eval $ac_try) 2>&5
4978   ac_status=$?
4979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980   (exit $ac_status); }; } &&
4981          { ac_try='test -s conftest.$ac_objext'
4982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983   (eval $ac_try) 2>&5
4984   ac_status=$?
4985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986   (exit $ac_status); }; }; then
4987   ac_cv_type_short=yes
4988 else
4989   echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4991
4992 ac_cv_type_short=no
4993 fi
4994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4995 fi
4996 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4997 echo "${ECHO_T}$ac_cv_type_short" >&6
4998
4999 echo "$as_me:$LINENO: checking size of short" >&5
5000 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5001 if test "${ac_cv_sizeof_short+set}" = set; then
5002   echo $ECHO_N "(cached) $ECHO_C" >&6
5003 else
5004   if test "$ac_cv_type_short" = yes; then
5005   # The cast to unsigned long works around a bug in the HP C Compiler
5006   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5007   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5008   # This bug is HP SR number 8606223364.
5009   if test "$cross_compiling" = yes; then
5010   # Depending upon the size, compute the lo and hi bounds.
5011 cat >conftest.$ac_ext <<_ACEOF
5012 /* confdefs.h.  */
5013 _ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h.  */
5017 $ac_includes_default
5018 int
5019 main ()
5020 {
5021 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5022 test_array [0] = 0
5023
5024   ;
5025   return 0;
5026 }
5027 _ACEOF
5028 rm -f conftest.$ac_objext
5029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5030   (eval $ac_compile) 2>conftest.er1
5031   ac_status=$?
5032   grep -v '^ *+' conftest.er1 >conftest.err
5033   rm -f conftest.er1
5034   cat conftest.err >&5
5035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036   (exit $ac_status); } &&
5037          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039   (eval $ac_try) 2>&5
5040   ac_status=$?
5041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042   (exit $ac_status); }; } &&
5043          { ac_try='test -s conftest.$ac_objext'
5044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045   (eval $ac_try) 2>&5
5046   ac_status=$?
5047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048   (exit $ac_status); }; }; then
5049   ac_lo=0 ac_mid=0
5050   while :; do
5051     cat >conftest.$ac_ext <<_ACEOF
5052 /* confdefs.h.  */
5053 _ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h.  */
5057 $ac_includes_default
5058 int
5059 main ()
5060 {
5061 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5062 test_array [0] = 0
5063
5064   ;
5065   return 0;
5066 }
5067 _ACEOF
5068 rm -f conftest.$ac_objext
5069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5070   (eval $ac_compile) 2>conftest.er1
5071   ac_status=$?
5072   grep -v '^ *+' conftest.er1 >conftest.err
5073   rm -f conftest.er1
5074   cat conftest.err >&5
5075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076   (exit $ac_status); } &&
5077          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079   (eval $ac_try) 2>&5
5080   ac_status=$?
5081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082   (exit $ac_status); }; } &&
5083          { ac_try='test -s conftest.$ac_objext'
5084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085   (eval $ac_try) 2>&5
5086   ac_status=$?
5087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088   (exit $ac_status); }; }; then
5089   ac_hi=$ac_mid; break
5090 else
5091   echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5093
5094 ac_lo=`expr $ac_mid + 1`
5095                     if test $ac_lo -le $ac_mid; then
5096                       ac_lo= ac_hi=
5097                       break
5098                     fi
5099                     ac_mid=`expr 2 '*' $ac_mid + 1`
5100 fi
5101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5102   done
5103 else
5104   echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5106
5107 cat >conftest.$ac_ext <<_ACEOF
5108 /* confdefs.h.  */
5109 _ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h.  */
5113 $ac_includes_default
5114 int
5115 main ()
5116 {
5117 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5118 test_array [0] = 0
5119
5120   ;
5121   return 0;
5122 }
5123 _ACEOF
5124 rm -f conftest.$ac_objext
5125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5126   (eval $ac_compile) 2>conftest.er1
5127   ac_status=$?
5128   grep -v '^ *+' conftest.er1 >conftest.err
5129   rm -f conftest.er1
5130   cat conftest.err >&5
5131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132   (exit $ac_status); } &&
5133          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135   (eval $ac_try) 2>&5
5136   ac_status=$?
5137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138   (exit $ac_status); }; } &&
5139          { ac_try='test -s conftest.$ac_objext'
5140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141   (eval $ac_try) 2>&5
5142   ac_status=$?
5143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144   (exit $ac_status); }; }; then
5145   ac_hi=-1 ac_mid=-1
5146   while :; do
5147     cat >conftest.$ac_ext <<_ACEOF
5148 /* confdefs.h.  */
5149 _ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h.  */
5153 $ac_includes_default
5154 int
5155 main ()
5156 {
5157 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5158 test_array [0] = 0
5159
5160   ;
5161   return 0;
5162 }
5163 _ACEOF
5164 rm -f conftest.$ac_objext
5165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5166   (eval $ac_compile) 2>conftest.er1
5167   ac_status=$?
5168   grep -v '^ *+' conftest.er1 >conftest.err
5169   rm -f conftest.er1
5170   cat conftest.err >&5
5171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172   (exit $ac_status); } &&
5173          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175   (eval $ac_try) 2>&5
5176   ac_status=$?
5177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178   (exit $ac_status); }; } &&
5179          { ac_try='test -s conftest.$ac_objext'
5180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181   (eval $ac_try) 2>&5
5182   ac_status=$?
5183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184   (exit $ac_status); }; }; then
5185   ac_lo=$ac_mid; break
5186 else
5187   echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5189
5190 ac_hi=`expr '(' $ac_mid ')' - 1`
5191                        if test $ac_mid -le $ac_hi; then
5192                          ac_lo= ac_hi=
5193                          break
5194                        fi
5195                        ac_mid=`expr 2 '*' $ac_mid`
5196 fi
5197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5198   done
5199 else
5200   echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.$ac_ext >&5
5202
5203 ac_lo= ac_hi=
5204 fi
5205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5206 fi
5207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5208 # Binary search between lo and hi bounds.
5209 while test "x$ac_lo" != "x$ac_hi"; do
5210   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5211   cat >conftest.$ac_ext <<_ACEOF
5212 /* confdefs.h.  */
5213 _ACEOF
5214 cat confdefs.h >>conftest.$ac_ext
5215 cat >>conftest.$ac_ext <<_ACEOF
5216 /* end confdefs.h.  */
5217 $ac_includes_default
5218 int
5219 main ()
5220 {
5221 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5222 test_array [0] = 0
5223
5224   ;
5225   return 0;
5226 }
5227 _ACEOF
5228 rm -f conftest.$ac_objext
5229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5230   (eval $ac_compile) 2>conftest.er1
5231   ac_status=$?
5232   grep -v '^ *+' conftest.er1 >conftest.err
5233   rm -f conftest.er1
5234   cat conftest.err >&5
5235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236   (exit $ac_status); } &&
5237          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5239   (eval $ac_try) 2>&5
5240   ac_status=$?
5241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242   (exit $ac_status); }; } &&
5243          { ac_try='test -s conftest.$ac_objext'
5244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245   (eval $ac_try) 2>&5
5246   ac_status=$?
5247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248   (exit $ac_status); }; }; then
5249   ac_hi=$ac_mid
5250 else
5251   echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5253
5254 ac_lo=`expr '(' $ac_mid ')' + 1`
5255 fi
5256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5257 done
5258 case $ac_lo in
5259 ?*) ac_cv_sizeof_short=$ac_lo;;
5260 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5261 See \`config.log' for more details." >&5
5262 echo "$as_me: error: cannot compute sizeof (short), 77
5263 See \`config.log' for more details." >&2;}
5264    { (exit 1); exit 1; }; } ;;
5265 esac
5266 else
5267   if test "$cross_compiling" = yes; then
5268   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5269 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5270    { (exit 1); exit 1; }; }
5271 else
5272   cat >conftest.$ac_ext <<_ACEOF
5273 /* confdefs.h.  */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h.  */
5278 $ac_includes_default
5279 long longval () { return (long) (sizeof (short)); }
5280 unsigned long ulongval () { return (long) (sizeof (short)); }
5281 #include <stdio.h>
5282 #include <stdlib.h>
5283 int
5284 main ()
5285 {
5286
5287   FILE *f = fopen ("conftest.val", "w");
5288   if (! f)
5289     exit (1);
5290   if (((long) (sizeof (short))) < 0)
5291     {
5292       long i = longval ();
5293       if (i != ((long) (sizeof (short))))
5294         exit (1);
5295       fprintf (f, "%ld\n", i);
5296     }
5297   else
5298     {
5299       unsigned long i = ulongval ();
5300       if (i != ((long) (sizeof (short))))
5301         exit (1);
5302       fprintf (f, "%lu\n", i);
5303     }
5304   exit (ferror (f) || fclose (f) != 0);
5305
5306   ;
5307   return 0;
5308 }
5309 _ACEOF
5310 rm -f conftest$ac_exeext
5311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5312   (eval $ac_link) 2>&5
5313   ac_status=$?
5314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317   (eval $ac_try) 2>&5
5318   ac_status=$?
5319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320   (exit $ac_status); }; }; then
5321   ac_cv_sizeof_short=`cat conftest.val`
5322 else
5323   echo "$as_me: program exited with status $ac_status" >&5
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5326
5327 ( exit $ac_status )
5328 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5329 See \`config.log' for more details." >&5
5330 echo "$as_me: error: cannot compute sizeof (short), 77
5331 See \`config.log' for more details." >&2;}
5332    { (exit 1); exit 1; }; }
5333 fi
5334 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5335 fi
5336 fi
5337 rm -f conftest.val
5338 else
5339   ac_cv_sizeof_short=0
5340 fi
5341 fi
5342 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5343 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5344 cat >>confdefs.h <<_ACEOF
5345 #define SIZEOF_SHORT $ac_cv_sizeof_short
5346 _ACEOF
5347
5348
5349 echo "$as_me:$LINENO: checking for int" >&5
5350 echo $ECHO_N "checking for int... $ECHO_C" >&6
5351 if test "${ac_cv_type_int+set}" = set; then
5352   echo $ECHO_N "(cached) $ECHO_C" >&6
5353 else
5354   cat >conftest.$ac_ext <<_ACEOF
5355 /* confdefs.h.  */
5356 _ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h.  */
5360 $ac_includes_default
5361 int
5362 main ()
5363 {
5364 if ((int *) 0)
5365   return 0;
5366 if (sizeof (int))
5367   return 0;
5368   ;
5369   return 0;
5370 }
5371 _ACEOF
5372 rm -f conftest.$ac_objext
5373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5374   (eval $ac_compile) 2>conftest.er1
5375   ac_status=$?
5376   grep -v '^ *+' conftest.er1 >conftest.err
5377   rm -f conftest.er1
5378   cat conftest.err >&5
5379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380   (exit $ac_status); } &&
5381          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383   (eval $ac_try) 2>&5
5384   ac_status=$?
5385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386   (exit $ac_status); }; } &&
5387          { ac_try='test -s conftest.$ac_objext'
5388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389   (eval $ac_try) 2>&5
5390   ac_status=$?
5391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392   (exit $ac_status); }; }; then
5393   ac_cv_type_int=yes
5394 else
5395   echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5397
5398 ac_cv_type_int=no
5399 fi
5400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5401 fi
5402 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5403 echo "${ECHO_T}$ac_cv_type_int" >&6
5404
5405 echo "$as_me:$LINENO: checking size of int" >&5
5406 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5407 if test "${ac_cv_sizeof_int+set}" = set; then
5408   echo $ECHO_N "(cached) $ECHO_C" >&6
5409 else
5410   if test "$ac_cv_type_int" = yes; then
5411   # The cast to unsigned long works around a bug in the HP C Compiler
5412   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5413   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5414   # This bug is HP SR number 8606223364.
5415   if test "$cross_compiling" = yes; then
5416   # Depending upon the size, compute the lo and hi bounds.
5417 cat >conftest.$ac_ext <<_ACEOF
5418 /* confdefs.h.  */
5419 _ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h.  */
5423 $ac_includes_default
5424 int
5425 main ()
5426 {
5427 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5428 test_array [0] = 0
5429
5430   ;
5431   return 0;
5432 }
5433 _ACEOF
5434 rm -f conftest.$ac_objext
5435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5436   (eval $ac_compile) 2>conftest.er1
5437   ac_status=$?
5438   grep -v '^ *+' conftest.er1 >conftest.err
5439   rm -f conftest.er1
5440   cat conftest.err >&5
5441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442   (exit $ac_status); } &&
5443          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445   (eval $ac_try) 2>&5
5446   ac_status=$?
5447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448   (exit $ac_status); }; } &&
5449          { ac_try='test -s conftest.$ac_objext'
5450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451   (eval $ac_try) 2>&5
5452   ac_status=$?
5453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454   (exit $ac_status); }; }; then
5455   ac_lo=0 ac_mid=0
5456   while :; do
5457     cat >conftest.$ac_ext <<_ACEOF
5458 /* confdefs.h.  */
5459 _ACEOF
5460 cat confdefs.h >>conftest.$ac_ext
5461 cat >>conftest.$ac_ext <<_ACEOF
5462 /* end confdefs.h.  */
5463 $ac_includes_default
5464 int
5465 main ()
5466 {
5467 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5468 test_array [0] = 0
5469
5470   ;
5471   return 0;
5472 }
5473 _ACEOF
5474 rm -f conftest.$ac_objext
5475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5476   (eval $ac_compile) 2>conftest.er1
5477   ac_status=$?
5478   grep -v '^ *+' conftest.er1 >conftest.err
5479   rm -f conftest.er1
5480   cat conftest.err >&5
5481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482   (exit $ac_status); } &&
5483          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485   (eval $ac_try) 2>&5
5486   ac_status=$?
5487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488   (exit $ac_status); }; } &&
5489          { ac_try='test -s conftest.$ac_objext'
5490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491   (eval $ac_try) 2>&5
5492   ac_status=$?
5493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494   (exit $ac_status); }; }; then
5495   ac_hi=$ac_mid; break
5496 else
5497   echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5499
5500 ac_lo=`expr $ac_mid + 1`
5501                     if test $ac_lo -le $ac_mid; then
5502                       ac_lo= ac_hi=
5503                       break
5504                     fi
5505                     ac_mid=`expr 2 '*' $ac_mid + 1`
5506 fi
5507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5508   done
5509 else
5510   echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5512
5513 cat >conftest.$ac_ext <<_ACEOF
5514 /* confdefs.h.  */
5515 _ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h.  */
5519 $ac_includes_default
5520 int
5521 main ()
5522 {
5523 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5524 test_array [0] = 0
5525
5526   ;
5527   return 0;
5528 }
5529 _ACEOF
5530 rm -f conftest.$ac_objext
5531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5532   (eval $ac_compile) 2>conftest.er1
5533   ac_status=$?
5534   grep -v '^ *+' conftest.er1 >conftest.err
5535   rm -f conftest.er1
5536   cat conftest.err >&5
5537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538   (exit $ac_status); } &&
5539          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541   (eval $ac_try) 2>&5
5542   ac_status=$?
5543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544   (exit $ac_status); }; } &&
5545          { ac_try='test -s conftest.$ac_objext'
5546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547   (eval $ac_try) 2>&5
5548   ac_status=$?
5549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550   (exit $ac_status); }; }; then
5551   ac_hi=-1 ac_mid=-1
5552   while :; do
5553     cat >conftest.$ac_ext <<_ACEOF
5554 /* confdefs.h.  */
5555 _ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h.  */
5559 $ac_includes_default
5560 int
5561 main ()
5562 {
5563 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5564 test_array [0] = 0
5565
5566   ;
5567   return 0;
5568 }
5569 _ACEOF
5570 rm -f conftest.$ac_objext
5571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5572   (eval $ac_compile) 2>conftest.er1
5573   ac_status=$?
5574   grep -v '^ *+' conftest.er1 >conftest.err
5575   rm -f conftest.er1
5576   cat conftest.err >&5
5577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578   (exit $ac_status); } &&
5579          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581   (eval $ac_try) 2>&5
5582   ac_status=$?
5583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584   (exit $ac_status); }; } &&
5585          { ac_try='test -s conftest.$ac_objext'
5586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587   (eval $ac_try) 2>&5
5588   ac_status=$?
5589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590   (exit $ac_status); }; }; then
5591   ac_lo=$ac_mid; break
5592 else
5593   echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5595
5596 ac_hi=`expr '(' $ac_mid ')' - 1`
5597                        if test $ac_mid -le $ac_hi; then
5598                          ac_lo= ac_hi=
5599                          break
5600                        fi
5601                        ac_mid=`expr 2 '*' $ac_mid`
5602 fi
5603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5604   done
5605 else
5606   echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5608
5609 ac_lo= ac_hi=
5610 fi
5611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5612 fi
5613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5614 # Binary search between lo and hi bounds.
5615 while test "x$ac_lo" != "x$ac_hi"; do
5616   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5617   cat >conftest.$ac_ext <<_ACEOF
5618 /* confdefs.h.  */
5619 _ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h.  */
5623 $ac_includes_default
5624 int
5625 main ()
5626 {
5627 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5628 test_array [0] = 0
5629
5630   ;
5631   return 0;
5632 }
5633 _ACEOF
5634 rm -f conftest.$ac_objext
5635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5636   (eval $ac_compile) 2>conftest.er1
5637   ac_status=$?
5638   grep -v '^ *+' conftest.er1 >conftest.err
5639   rm -f conftest.er1
5640   cat conftest.err >&5
5641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642   (exit $ac_status); } &&
5643          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645   (eval $ac_try) 2>&5
5646   ac_status=$?
5647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648   (exit $ac_status); }; } &&
5649          { ac_try='test -s conftest.$ac_objext'
5650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651   (eval $ac_try) 2>&5
5652   ac_status=$?
5653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654   (exit $ac_status); }; }; then
5655   ac_hi=$ac_mid
5656 else
5657   echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5659
5660 ac_lo=`expr '(' $ac_mid ')' + 1`
5661 fi
5662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5663 done
5664 case $ac_lo in
5665 ?*) ac_cv_sizeof_int=$ac_lo;;
5666 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5667 See \`config.log' for more details." >&5
5668 echo "$as_me: error: cannot compute sizeof (int), 77
5669 See \`config.log' for more details." >&2;}
5670    { (exit 1); exit 1; }; } ;;
5671 esac
5672 else
5673   if test "$cross_compiling" = yes; then
5674   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5675 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5676    { (exit 1); exit 1; }; }
5677 else
5678   cat >conftest.$ac_ext <<_ACEOF
5679 /* confdefs.h.  */
5680 _ACEOF
5681 cat confdefs.h >>conftest.$ac_ext
5682 cat >>conftest.$ac_ext <<_ACEOF
5683 /* end confdefs.h.  */
5684 $ac_includes_default
5685 long longval () { return (long) (sizeof (int)); }
5686 unsigned long ulongval () { return (long) (sizeof (int)); }
5687 #include <stdio.h>
5688 #include <stdlib.h>
5689 int
5690 main ()
5691 {
5692
5693   FILE *f = fopen ("conftest.val", "w");
5694   if (! f)
5695     exit (1);
5696   if (((long) (sizeof (int))) < 0)
5697     {
5698       long i = longval ();
5699       if (i != ((long) (sizeof (int))))
5700         exit (1);
5701       fprintf (f, "%ld\n", i);
5702     }
5703   else
5704     {
5705       unsigned long i = ulongval ();
5706       if (i != ((long) (sizeof (int))))
5707         exit (1);
5708       fprintf (f, "%lu\n", i);
5709     }
5710   exit (ferror (f) || fclose (f) != 0);
5711
5712   ;
5713   return 0;
5714 }
5715 _ACEOF
5716 rm -f conftest$ac_exeext
5717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5718   (eval $ac_link) 2>&5
5719   ac_status=$?
5720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723   (eval $ac_try) 2>&5
5724   ac_status=$?
5725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726   (exit $ac_status); }; }; then
5727   ac_cv_sizeof_int=`cat conftest.val`
5728 else
5729   echo "$as_me: program exited with status $ac_status" >&5
5730 echo "$as_me: failed program was:" >&5
5731 sed 's/^/| /' conftest.$ac_ext >&5
5732
5733 ( exit $ac_status )
5734 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5735 See \`config.log' for more details." >&5
5736 echo "$as_me: error: cannot compute sizeof (int), 77
5737 See \`config.log' for more details." >&2;}
5738    { (exit 1); exit 1; }; }
5739 fi
5740 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5741 fi
5742 fi
5743 rm -f conftest.val
5744 else
5745   ac_cv_sizeof_int=0
5746 fi
5747 fi
5748 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5749 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5750 cat >>confdefs.h <<_ACEOF
5751 #define SIZEOF_INT $ac_cv_sizeof_int
5752 _ACEOF
5753
5754
5755 echo "$as_me:$LINENO: checking for long" >&5
5756 echo $ECHO_N "checking for long... $ECHO_C" >&6
5757 if test "${ac_cv_type_long+set}" = set; then
5758   echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760   cat >conftest.$ac_ext <<_ACEOF
5761 /* confdefs.h.  */
5762 _ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h.  */
5766 $ac_includes_default
5767 int
5768 main ()
5769 {
5770 if ((long *) 0)
5771   return 0;
5772 if (sizeof (long))
5773   return 0;
5774   ;
5775   return 0;
5776 }
5777 _ACEOF
5778 rm -f conftest.$ac_objext
5779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5780   (eval $ac_compile) 2>conftest.er1
5781   ac_status=$?
5782   grep -v '^ *+' conftest.er1 >conftest.err
5783   rm -f conftest.er1
5784   cat conftest.err >&5
5785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786   (exit $ac_status); } &&
5787          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789   (eval $ac_try) 2>&5
5790   ac_status=$?
5791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792   (exit $ac_status); }; } &&
5793          { ac_try='test -s conftest.$ac_objext'
5794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795   (eval $ac_try) 2>&5
5796   ac_status=$?
5797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798   (exit $ac_status); }; }; then
5799   ac_cv_type_long=yes
5800 else
5801   echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5803
5804 ac_cv_type_long=no
5805 fi
5806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5807 fi
5808 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5809 echo "${ECHO_T}$ac_cv_type_long" >&6
5810
5811 echo "$as_me:$LINENO: checking size of long" >&5
5812 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5813 if test "${ac_cv_sizeof_long+set}" = set; then
5814   echo $ECHO_N "(cached) $ECHO_C" >&6
5815 else
5816   if test "$ac_cv_type_long" = yes; then
5817   # The cast to unsigned long works around a bug in the HP C Compiler
5818   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5819   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5820   # This bug is HP SR number 8606223364.
5821   if test "$cross_compiling" = yes; then
5822   # Depending upon the size, compute the lo and hi bounds.
5823 cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h.  */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h.  */
5829 $ac_includes_default
5830 int
5831 main ()
5832 {
5833 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5834 test_array [0] = 0
5835
5836   ;
5837   return 0;
5838 }
5839 _ACEOF
5840 rm -f conftest.$ac_objext
5841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5842   (eval $ac_compile) 2>conftest.er1
5843   ac_status=$?
5844   grep -v '^ *+' conftest.er1 >conftest.err
5845   rm -f conftest.er1
5846   cat conftest.err >&5
5847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848   (exit $ac_status); } &&
5849          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851   (eval $ac_try) 2>&5
5852   ac_status=$?
5853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854   (exit $ac_status); }; } &&
5855          { ac_try='test -s conftest.$ac_objext'
5856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857   (eval $ac_try) 2>&5
5858   ac_status=$?
5859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860   (exit $ac_status); }; }; then
5861   ac_lo=0 ac_mid=0
5862   while :; do
5863     cat >conftest.$ac_ext <<_ACEOF
5864 /* confdefs.h.  */
5865 _ACEOF
5866 cat confdefs.h >>conftest.$ac_ext
5867 cat >>conftest.$ac_ext <<_ACEOF
5868 /* end confdefs.h.  */
5869 $ac_includes_default
5870 int
5871 main ()
5872 {
5873 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5874 test_array [0] = 0
5875
5876   ;
5877   return 0;
5878 }
5879 _ACEOF
5880 rm -f conftest.$ac_objext
5881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5882   (eval $ac_compile) 2>conftest.er1
5883   ac_status=$?
5884   grep -v '^ *+' conftest.er1 >conftest.err
5885   rm -f conftest.er1
5886   cat conftest.err >&5
5887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888   (exit $ac_status); } &&
5889          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891   (eval $ac_try) 2>&5
5892   ac_status=$?
5893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894   (exit $ac_status); }; } &&
5895          { ac_try='test -s conftest.$ac_objext'
5896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5897   (eval $ac_try) 2>&5
5898   ac_status=$?
5899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900   (exit $ac_status); }; }; then
5901   ac_hi=$ac_mid; break
5902 else
5903   echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5905
5906 ac_lo=`expr $ac_mid + 1`
5907                     if test $ac_lo -le $ac_mid; then
5908                       ac_lo= ac_hi=
5909                       break
5910                     fi
5911                     ac_mid=`expr 2 '*' $ac_mid + 1`
5912 fi
5913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5914   done
5915 else
5916   echo "$as_me: failed program was:" >&5
5917 sed 's/^/| /' conftest.$ac_ext >&5
5918
5919 cat >conftest.$ac_ext <<_ACEOF
5920 /* confdefs.h.  */
5921 _ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5924 /* end confdefs.h.  */
5925 $ac_includes_default
5926 int
5927 main ()
5928 {
5929 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5930 test_array [0] = 0
5931
5932   ;
5933   return 0;
5934 }
5935 _ACEOF
5936 rm -f conftest.$ac_objext
5937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938   (eval $ac_compile) 2>conftest.er1
5939   ac_status=$?
5940   grep -v '^ *+' conftest.er1 >conftest.err
5941   rm -f conftest.er1
5942   cat conftest.err >&5
5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944   (exit $ac_status); } &&
5945          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947   (eval $ac_try) 2>&5
5948   ac_status=$?
5949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950   (exit $ac_status); }; } &&
5951          { ac_try='test -s conftest.$ac_objext'
5952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953   (eval $ac_try) 2>&5
5954   ac_status=$?
5955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956   (exit $ac_status); }; }; then
5957   ac_hi=-1 ac_mid=-1
5958   while :; do
5959     cat >conftest.$ac_ext <<_ACEOF
5960 /* confdefs.h.  */
5961 _ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h.  */
5965 $ac_includes_default
5966 int
5967 main ()
5968 {
5969 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5970 test_array [0] = 0
5971
5972   ;
5973   return 0;
5974 }
5975 _ACEOF
5976 rm -f conftest.$ac_objext
5977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5978   (eval $ac_compile) 2>conftest.er1
5979   ac_status=$?
5980   grep -v '^ *+' conftest.er1 >conftest.err
5981   rm -f conftest.er1
5982   cat conftest.err >&5
5983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984   (exit $ac_status); } &&
5985          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5987   (eval $ac_try) 2>&5
5988   ac_status=$?
5989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990   (exit $ac_status); }; } &&
5991          { ac_try='test -s conftest.$ac_objext'
5992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993   (eval $ac_try) 2>&5
5994   ac_status=$?
5995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996   (exit $ac_status); }; }; then
5997   ac_lo=$ac_mid; break
5998 else
5999   echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6001
6002 ac_hi=`expr '(' $ac_mid ')' - 1`
6003                        if test $ac_mid -le $ac_hi; then
6004                          ac_lo= ac_hi=
6005                          break
6006                        fi
6007                        ac_mid=`expr 2 '*' $ac_mid`
6008 fi
6009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6010   done
6011 else
6012   echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6014
6015 ac_lo= ac_hi=
6016 fi
6017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6018 fi
6019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6020 # Binary search between lo and hi bounds.
6021 while test "x$ac_lo" != "x$ac_hi"; do
6022   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6023   cat >conftest.$ac_ext <<_ACEOF
6024 /* confdefs.h.  */
6025 _ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h.  */
6029 $ac_includes_default
6030 int
6031 main ()
6032 {
6033 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6034 test_array [0] = 0
6035
6036   ;
6037   return 0;
6038 }
6039 _ACEOF
6040 rm -f conftest.$ac_objext
6041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6042   (eval $ac_compile) 2>conftest.er1
6043   ac_status=$?
6044   grep -v '^ *+' conftest.er1 >conftest.err
6045   rm -f conftest.er1
6046   cat conftest.err >&5
6047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048   (exit $ac_status); } &&
6049          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6051   (eval $ac_try) 2>&5
6052   ac_status=$?
6053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054   (exit $ac_status); }; } &&
6055          { ac_try='test -s conftest.$ac_objext'
6056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6057   (eval $ac_try) 2>&5
6058   ac_status=$?
6059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060   (exit $ac_status); }; }; then
6061   ac_hi=$ac_mid
6062 else
6063   echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6065
6066 ac_lo=`expr '(' $ac_mid ')' + 1`
6067 fi
6068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6069 done
6070 case $ac_lo in
6071 ?*) ac_cv_sizeof_long=$ac_lo;;
6072 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6073 See \`config.log' for more details." >&5
6074 echo "$as_me: error: cannot compute sizeof (long), 77
6075 See \`config.log' for more details." >&2;}
6076    { (exit 1); exit 1; }; } ;;
6077 esac
6078 else
6079   if test "$cross_compiling" = yes; then
6080   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6081 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6082    { (exit 1); exit 1; }; }
6083 else
6084   cat >conftest.$ac_ext <<_ACEOF
6085 /* confdefs.h.  */
6086 _ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h.  */
6090 $ac_includes_default
6091 long longval () { return (long) (sizeof (long)); }
6092 unsigned long ulongval () { return (long) (sizeof (long)); }
6093 #include <stdio.h>
6094 #include <stdlib.h>
6095 int
6096 main ()
6097 {
6098
6099   FILE *f = fopen ("conftest.val", "w");
6100   if (! f)
6101     exit (1);
6102   if (((long) (sizeof (long))) < 0)
6103     {
6104       long i = longval ();
6105       if (i != ((long) (sizeof (long))))
6106         exit (1);
6107       fprintf (f, "%ld\n", i);
6108     }
6109   else
6110     {
6111       unsigned long i = ulongval ();
6112       if (i != ((long) (sizeof (long))))
6113         exit (1);
6114       fprintf (f, "%lu\n", i);
6115     }
6116   exit (ferror (f) || fclose (f) != 0);
6117
6118   ;
6119   return 0;
6120 }
6121 _ACEOF
6122 rm -f conftest$ac_exeext
6123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6124   (eval $ac_link) 2>&5
6125   ac_status=$?
6126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129   (eval $ac_try) 2>&5
6130   ac_status=$?
6131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132   (exit $ac_status); }; }; then
6133   ac_cv_sizeof_long=`cat conftest.val`
6134 else
6135   echo "$as_me: program exited with status $ac_status" >&5
6136 echo "$as_me: failed program was:" >&5
6137 sed 's/^/| /' conftest.$ac_ext >&5
6138
6139 ( exit $ac_status )
6140 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6141 See \`config.log' for more details." >&5
6142 echo "$as_me: error: cannot compute sizeof (long), 77
6143 See \`config.log' for more details." >&2;}
6144    { (exit 1); exit 1; }; }
6145 fi
6146 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6147 fi
6148 fi
6149 rm -f conftest.val
6150 else
6151   ac_cv_sizeof_long=0
6152 fi
6153 fi
6154 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6155 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6156 cat >>confdefs.h <<_ACEOF
6157 #define SIZEOF_LONG $ac_cv_sizeof_long
6158 _ACEOF
6159
6160
6161 echo "$as_me:$LINENO: checking for void *" >&5
6162 echo $ECHO_N "checking for void *... $ECHO_C" >&6
6163 if test "${ac_cv_type_void_p+set}" = set; then
6164   echo $ECHO_N "(cached) $ECHO_C" >&6
6165 else
6166   cat >conftest.$ac_ext <<_ACEOF
6167 /* confdefs.h.  */
6168 _ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h.  */
6172 $ac_includes_default
6173 int
6174 main ()
6175 {
6176 if ((void * *) 0)
6177   return 0;
6178 if (sizeof (void *))
6179   return 0;
6180   ;
6181   return 0;
6182 }
6183 _ACEOF
6184 rm -f conftest.$ac_objext
6185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6186   (eval $ac_compile) 2>conftest.er1
6187   ac_status=$?
6188   grep -v '^ *+' conftest.er1 >conftest.err
6189   rm -f conftest.er1
6190   cat conftest.err >&5
6191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192   (exit $ac_status); } &&
6193          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195   (eval $ac_try) 2>&5
6196   ac_status=$?
6197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198   (exit $ac_status); }; } &&
6199          { ac_try='test -s conftest.$ac_objext'
6200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201   (eval $ac_try) 2>&5
6202   ac_status=$?
6203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204   (exit $ac_status); }; }; then
6205   ac_cv_type_void_p=yes
6206 else
6207   echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6209
6210 ac_cv_type_void_p=no
6211 fi
6212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6213 fi
6214 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6215 echo "${ECHO_T}$ac_cv_type_void_p" >&6
6216
6217 echo "$as_me:$LINENO: checking size of void *" >&5
6218 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6219 if test "${ac_cv_sizeof_void_p+set}" = set; then
6220   echo $ECHO_N "(cached) $ECHO_C" >&6
6221 else
6222   if test "$ac_cv_type_void_p" = yes; then
6223   # The cast to unsigned long works around a bug in the HP C Compiler
6224   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6225   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6226   # This bug is HP SR number 8606223364.
6227   if test "$cross_compiling" = yes; then
6228   # Depending upon the size, compute the lo and hi bounds.
6229 cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h.  */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h.  */
6235 $ac_includes_default
6236 int
6237 main ()
6238 {
6239 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6240 test_array [0] = 0
6241
6242   ;
6243   return 0;
6244 }
6245 _ACEOF
6246 rm -f conftest.$ac_objext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6248   (eval $ac_compile) 2>conftest.er1
6249   ac_status=$?
6250   grep -v '^ *+' conftest.er1 >conftest.err
6251   rm -f conftest.er1
6252   cat conftest.err >&5
6253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254   (exit $ac_status); } &&
6255          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257   (eval $ac_try) 2>&5
6258   ac_status=$?
6259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260   (exit $ac_status); }; } &&
6261          { ac_try='test -s conftest.$ac_objext'
6262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263   (eval $ac_try) 2>&5
6264   ac_status=$?
6265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266   (exit $ac_status); }; }; then
6267   ac_lo=0 ac_mid=0
6268   while :; do
6269     cat >conftest.$ac_ext <<_ACEOF
6270 /* confdefs.h.  */
6271 _ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h.  */
6275 $ac_includes_default
6276 int
6277 main ()
6278 {
6279 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6280 test_array [0] = 0
6281
6282   ;
6283   return 0;
6284 }
6285 _ACEOF
6286 rm -f conftest.$ac_objext
6287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6288   (eval $ac_compile) 2>conftest.er1
6289   ac_status=$?
6290   grep -v '^ *+' conftest.er1 >conftest.err
6291   rm -f conftest.er1
6292   cat conftest.err >&5
6293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294   (exit $ac_status); } &&
6295          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297   (eval $ac_try) 2>&5
6298   ac_status=$?
6299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300   (exit $ac_status); }; } &&
6301          { ac_try='test -s conftest.$ac_objext'
6302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303   (eval $ac_try) 2>&5
6304   ac_status=$?
6305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306   (exit $ac_status); }; }; then
6307   ac_hi=$ac_mid; break
6308 else
6309   echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6311
6312 ac_lo=`expr $ac_mid + 1`
6313                     if test $ac_lo -le $ac_mid; then
6314                       ac_lo= ac_hi=
6315                       break
6316                     fi
6317                     ac_mid=`expr 2 '*' $ac_mid + 1`
6318 fi
6319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6320   done
6321 else
6322   echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6324
6325 cat >conftest.$ac_ext <<_ACEOF
6326 /* confdefs.h.  */
6327 _ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h.  */
6331 $ac_includes_default
6332 int
6333 main ()
6334 {
6335 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6336 test_array [0] = 0
6337
6338   ;
6339   return 0;
6340 }
6341 _ACEOF
6342 rm -f conftest.$ac_objext
6343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6344   (eval $ac_compile) 2>conftest.er1
6345   ac_status=$?
6346   grep -v '^ *+' conftest.er1 >conftest.err
6347   rm -f conftest.er1
6348   cat conftest.err >&5
6349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350   (exit $ac_status); } &&
6351          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353   (eval $ac_try) 2>&5
6354   ac_status=$?
6355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356   (exit $ac_status); }; } &&
6357          { ac_try='test -s conftest.$ac_objext'
6358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359   (eval $ac_try) 2>&5
6360   ac_status=$?
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); }; }; then
6363   ac_hi=-1 ac_mid=-1
6364   while :; do
6365     cat >conftest.$ac_ext <<_ACEOF
6366 /* confdefs.h.  */
6367 _ACEOF
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h.  */
6371 $ac_includes_default
6372 int
6373 main ()
6374 {
6375 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6376 test_array [0] = 0
6377
6378   ;
6379   return 0;
6380 }
6381 _ACEOF
6382 rm -f conftest.$ac_objext
6383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6384   (eval $ac_compile) 2>conftest.er1
6385   ac_status=$?
6386   grep -v '^ *+' conftest.er1 >conftest.err
6387   rm -f conftest.er1
6388   cat conftest.err >&5
6389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390   (exit $ac_status); } &&
6391          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6393   (eval $ac_try) 2>&5
6394   ac_status=$?
6395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396   (exit $ac_status); }; } &&
6397          { ac_try='test -s conftest.$ac_objext'
6398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399   (eval $ac_try) 2>&5
6400   ac_status=$?
6401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402   (exit $ac_status); }; }; then
6403   ac_lo=$ac_mid; break
6404 else
6405   echo "$as_me: failed program was:" >&5
6406 sed 's/^/| /' conftest.$ac_ext >&5
6407
6408 ac_hi=`expr '(' $ac_mid ')' - 1`
6409                        if test $ac_mid -le $ac_hi; then
6410                          ac_lo= ac_hi=
6411                          break
6412                        fi
6413                        ac_mid=`expr 2 '*' $ac_mid`
6414 fi
6415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6416   done
6417 else
6418   echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6420
6421 ac_lo= ac_hi=
6422 fi
6423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6424 fi
6425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6426 # Binary search between lo and hi bounds.
6427 while test "x$ac_lo" != "x$ac_hi"; do
6428   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6429   cat >conftest.$ac_ext <<_ACEOF
6430 /* confdefs.h.  */
6431 _ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h.  */
6435 $ac_includes_default
6436 int
6437 main ()
6438 {
6439 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6440 test_array [0] = 0
6441
6442   ;
6443   return 0;
6444 }
6445 _ACEOF
6446 rm -f conftest.$ac_objext
6447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6448   (eval $ac_compile) 2>conftest.er1
6449   ac_status=$?
6450   grep -v '^ *+' conftest.er1 >conftest.err
6451   rm -f conftest.er1
6452   cat conftest.err >&5
6453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454   (exit $ac_status); } &&
6455          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457   (eval $ac_try) 2>&5
6458   ac_status=$?
6459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460   (exit $ac_status); }; } &&
6461          { ac_try='test -s conftest.$ac_objext'
6462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463   (eval $ac_try) 2>&5
6464   ac_status=$?
6465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466   (exit $ac_status); }; }; then
6467   ac_hi=$ac_mid
6468 else
6469   echo "$as_me: failed program was:" >&5
6470 sed 's/^/| /' conftest.$ac_ext >&5
6471
6472 ac_lo=`expr '(' $ac_mid ')' + 1`
6473 fi
6474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6475 done
6476 case $ac_lo in
6477 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6478 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6479 See \`config.log' for more details." >&5
6480 echo "$as_me: error: cannot compute sizeof (void *), 77
6481 See \`config.log' for more details." >&2;}
6482    { (exit 1); exit 1; }; } ;;
6483 esac
6484 else
6485   if test "$cross_compiling" = yes; then
6486   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6487 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6488    { (exit 1); exit 1; }; }
6489 else
6490   cat >conftest.$ac_ext <<_ACEOF
6491 /* confdefs.h.  */
6492 _ACEOF
6493 cat confdefs.h >>conftest.$ac_ext
6494 cat >>conftest.$ac_ext <<_ACEOF
6495 /* end confdefs.h.  */
6496 $ac_includes_default
6497 long longval () { return (long) (sizeof (void *)); }
6498 unsigned long ulongval () { return (long) (sizeof (void *)); }
6499 #include <stdio.h>
6500 #include <stdlib.h>
6501 int
6502 main ()
6503 {
6504
6505   FILE *f = fopen ("conftest.val", "w");
6506   if (! f)
6507     exit (1);
6508   if (((long) (sizeof (void *))) < 0)
6509     {
6510       long i = longval ();
6511       if (i != ((long) (sizeof (void *))))
6512         exit (1);
6513       fprintf (f, "%ld\n", i);
6514     }
6515   else
6516     {
6517       unsigned long i = ulongval ();
6518       if (i != ((long) (sizeof (void *))))
6519         exit (1);
6520       fprintf (f, "%lu\n", i);
6521     }
6522   exit (ferror (f) || fclose (f) != 0);
6523
6524   ;
6525   return 0;
6526 }
6527 _ACEOF
6528 rm -f conftest$ac_exeext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6530   (eval $ac_link) 2>&5
6531   ac_status=$?
6532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535   (eval $ac_try) 2>&5
6536   ac_status=$?
6537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538   (exit $ac_status); }; }; then
6539   ac_cv_sizeof_void_p=`cat conftest.val`
6540 else
6541   echo "$as_me: program exited with status $ac_status" >&5
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6544
6545 ( exit $ac_status )
6546 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6547 See \`config.log' for more details." >&5
6548 echo "$as_me: error: cannot compute sizeof (void *), 77
6549 See \`config.log' for more details." >&2;}
6550    { (exit 1); exit 1; }; }
6551 fi
6552 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6553 fi
6554 fi
6555 rm -f conftest.val
6556 else
6557   ac_cv_sizeof_void_p=0
6558 fi
6559 fi
6560 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6561 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6562 cat >>confdefs.h <<_ACEOF
6563 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6564 _ACEOF
6565
6566
6567 echo "$as_me:$LINENO: checking for int64_t" >&5
6568 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
6569 if test "${ac_cv_type_int64_t+set}" = set; then
6570   echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572   cat >conftest.$ac_ext <<_ACEOF
6573 /* confdefs.h.  */
6574 _ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h.  */
6578 $ac_includes_default
6579 int
6580 main ()
6581 {
6582 if ((int64_t *) 0)
6583   return 0;
6584 if (sizeof (int64_t))
6585   return 0;
6586   ;
6587   return 0;
6588 }
6589 _ACEOF
6590 rm -f conftest.$ac_objext
6591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6592   (eval $ac_compile) 2>conftest.er1
6593   ac_status=$?
6594   grep -v '^ *+' conftest.er1 >conftest.err
6595   rm -f conftest.er1
6596   cat conftest.err >&5
6597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598   (exit $ac_status); } &&
6599          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601   (eval $ac_try) 2>&5
6602   ac_status=$?
6603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604   (exit $ac_status); }; } &&
6605          { ac_try='test -s conftest.$ac_objext'
6606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607   (eval $ac_try) 2>&5
6608   ac_status=$?
6609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610   (exit $ac_status); }; }; then
6611   ac_cv_type_int64_t=yes
6612 else
6613   echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6615
6616 ac_cv_type_int64_t=no
6617 fi
6618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6619 fi
6620 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6621 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
6622
6623 echo "$as_me:$LINENO: checking size of int64_t" >&5
6624 echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6
6625 if test "${ac_cv_sizeof_int64_t+set}" = set; then
6626   echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628   if test "$ac_cv_type_int64_t" = yes; then
6629   # The cast to unsigned long works around a bug in the HP C Compiler
6630   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6631   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6632   # This bug is HP SR number 8606223364.
6633   if test "$cross_compiling" = yes; then
6634   # Depending upon the size, compute the lo and hi bounds.
6635 cat >conftest.$ac_ext <<_ACEOF
6636 /* confdefs.h.  */
6637 _ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h.  */
6641 $ac_includes_default
6642 int
6643 main ()
6644 {
6645 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= 0)];
6646 test_array [0] = 0
6647
6648   ;
6649   return 0;
6650 }
6651 _ACEOF
6652 rm -f conftest.$ac_objext
6653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6654   (eval $ac_compile) 2>conftest.er1
6655   ac_status=$?
6656   grep -v '^ *+' conftest.er1 >conftest.err
6657   rm -f conftest.er1
6658   cat conftest.err >&5
6659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660   (exit $ac_status); } &&
6661          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663   (eval $ac_try) 2>&5
6664   ac_status=$?
6665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666   (exit $ac_status); }; } &&
6667          { ac_try='test -s conftest.$ac_objext'
6668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669   (eval $ac_try) 2>&5
6670   ac_status=$?
6671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672   (exit $ac_status); }; }; then
6673   ac_lo=0 ac_mid=0
6674   while :; do
6675     cat >conftest.$ac_ext <<_ACEOF
6676 /* confdefs.h.  */
6677 _ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h.  */
6681 $ac_includes_default
6682 int
6683 main ()
6684 {
6685 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6686 test_array [0] = 0
6687
6688   ;
6689   return 0;
6690 }
6691 _ACEOF
6692 rm -f conftest.$ac_objext
6693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6694   (eval $ac_compile) 2>conftest.er1
6695   ac_status=$?
6696   grep -v '^ *+' conftest.er1 >conftest.err
6697   rm -f conftest.er1
6698   cat conftest.err >&5
6699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700   (exit $ac_status); } &&
6701          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703   (eval $ac_try) 2>&5
6704   ac_status=$?
6705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706   (exit $ac_status); }; } &&
6707          { ac_try='test -s conftest.$ac_objext'
6708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709   (eval $ac_try) 2>&5
6710   ac_status=$?
6711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712   (exit $ac_status); }; }; then
6713   ac_hi=$ac_mid; break
6714 else
6715   echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6717
6718 ac_lo=`expr $ac_mid + 1`
6719                     if test $ac_lo -le $ac_mid; then
6720                       ac_lo= ac_hi=
6721                       break
6722                     fi
6723                     ac_mid=`expr 2 '*' $ac_mid + 1`
6724 fi
6725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726   done
6727 else
6728   echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.$ac_ext >&5
6730
6731 cat >conftest.$ac_ext <<_ACEOF
6732 /* confdefs.h.  */
6733 _ACEOF
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h.  */
6737 $ac_includes_default
6738 int
6739 main ()
6740 {
6741 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) < 0)];
6742 test_array [0] = 0
6743
6744   ;
6745   return 0;
6746 }
6747 _ACEOF
6748 rm -f conftest.$ac_objext
6749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6750   (eval $ac_compile) 2>conftest.er1
6751   ac_status=$?
6752   grep -v '^ *+' conftest.er1 >conftest.err
6753   rm -f conftest.er1
6754   cat conftest.err >&5
6755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756   (exit $ac_status); } &&
6757          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759   (eval $ac_try) 2>&5
6760   ac_status=$?
6761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762   (exit $ac_status); }; } &&
6763          { ac_try='test -s conftest.$ac_objext'
6764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765   (eval $ac_try) 2>&5
6766   ac_status=$?
6767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768   (exit $ac_status); }; }; then
6769   ac_hi=-1 ac_mid=-1
6770   while :; do
6771     cat >conftest.$ac_ext <<_ACEOF
6772 /* confdefs.h.  */
6773 _ACEOF
6774 cat confdefs.h >>conftest.$ac_ext
6775 cat >>conftest.$ac_ext <<_ACEOF
6776 /* end confdefs.h.  */
6777 $ac_includes_default
6778 int
6779 main ()
6780 {
6781 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= $ac_mid)];
6782 test_array [0] = 0
6783
6784   ;
6785   return 0;
6786 }
6787 _ACEOF
6788 rm -f conftest.$ac_objext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6790   (eval $ac_compile) 2>conftest.er1
6791   ac_status=$?
6792   grep -v '^ *+' conftest.er1 >conftest.err
6793   rm -f conftest.er1
6794   cat conftest.err >&5
6795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796   (exit $ac_status); } &&
6797          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799   (eval $ac_try) 2>&5
6800   ac_status=$?
6801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802   (exit $ac_status); }; } &&
6803          { ac_try='test -s conftest.$ac_objext'
6804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805   (eval $ac_try) 2>&5
6806   ac_status=$?
6807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808   (exit $ac_status); }; }; then
6809   ac_lo=$ac_mid; break
6810 else
6811   echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6813
6814 ac_hi=`expr '(' $ac_mid ')' - 1`
6815                        if test $ac_mid -le $ac_hi; then
6816                          ac_lo= ac_hi=
6817                          break
6818                        fi
6819                        ac_mid=`expr 2 '*' $ac_mid`
6820 fi
6821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6822   done
6823 else
6824   echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6826
6827 ac_lo= ac_hi=
6828 fi
6829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6830 fi
6831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6832 # Binary search between lo and hi bounds.
6833 while test "x$ac_lo" != "x$ac_hi"; do
6834   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6835   cat >conftest.$ac_ext <<_ACEOF
6836 /* confdefs.h.  */
6837 _ACEOF
6838 cat confdefs.h >>conftest.$ac_ext
6839 cat >>conftest.$ac_ext <<_ACEOF
6840 /* end confdefs.h.  */
6841 $ac_includes_default
6842 int
6843 main ()
6844 {
6845 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6846 test_array [0] = 0
6847
6848   ;
6849   return 0;
6850 }
6851 _ACEOF
6852 rm -f conftest.$ac_objext
6853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6854   (eval $ac_compile) 2>conftest.er1
6855   ac_status=$?
6856   grep -v '^ *+' conftest.er1 >conftest.err
6857   rm -f conftest.er1
6858   cat conftest.err >&5
6859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860   (exit $ac_status); } &&
6861          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6863   (eval $ac_try) 2>&5
6864   ac_status=$?
6865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866   (exit $ac_status); }; } &&
6867          { ac_try='test -s conftest.$ac_objext'
6868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6869   (eval $ac_try) 2>&5
6870   ac_status=$?
6871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872   (exit $ac_status); }; }; then
6873   ac_hi=$ac_mid
6874 else
6875   echo "$as_me: failed program was:" >&5
6876 sed 's/^/| /' conftest.$ac_ext >&5
6877
6878 ac_lo=`expr '(' $ac_mid ')' + 1`
6879 fi
6880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6881 done
6882 case $ac_lo in
6883 ?*) ac_cv_sizeof_int64_t=$ac_lo;;
6884 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
6885 See \`config.log' for more details." >&5
6886 echo "$as_me: error: cannot compute sizeof (int64_t), 77
6887 See \`config.log' for more details." >&2;}
6888    { (exit 1); exit 1; }; } ;;
6889 esac
6890 else
6891   if test "$cross_compiling" = yes; then
6892   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6893 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6894    { (exit 1); exit 1; }; }
6895 else
6896   cat >conftest.$ac_ext <<_ACEOF
6897 /* confdefs.h.  */
6898 _ACEOF
6899 cat confdefs.h >>conftest.$ac_ext
6900 cat >>conftest.$ac_ext <<_ACEOF
6901 /* end confdefs.h.  */
6902 $ac_includes_default
6903 long longval () { return (long) (sizeof (int64_t)); }
6904 unsigned long ulongval () { return (long) (sizeof (int64_t)); }
6905 #include <stdio.h>
6906 #include <stdlib.h>
6907 int
6908 main ()
6909 {
6910
6911   FILE *f = fopen ("conftest.val", "w");
6912   if (! f)
6913     exit (1);
6914   if (((long) (sizeof (int64_t))) < 0)
6915     {
6916       long i = longval ();
6917       if (i != ((long) (sizeof (int64_t))))
6918         exit (1);
6919       fprintf (f, "%ld\n", i);
6920     }
6921   else
6922     {
6923       unsigned long i = ulongval ();
6924       if (i != ((long) (sizeof (int64_t))))
6925         exit (1);
6926       fprintf (f, "%lu\n", i);
6927     }
6928   exit (ferror (f) || fclose (f) != 0);
6929
6930   ;
6931   return 0;
6932 }
6933 _ACEOF
6934 rm -f conftest$ac_exeext
6935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6936   (eval $ac_link) 2>&5
6937   ac_status=$?
6938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941   (eval $ac_try) 2>&5
6942   ac_status=$?
6943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944   (exit $ac_status); }; }; then
6945   ac_cv_sizeof_int64_t=`cat conftest.val`
6946 else
6947   echo "$as_me: program exited with status $ac_status" >&5
6948 echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6950
6951 ( exit $ac_status )
6952 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
6953 See \`config.log' for more details." >&5
6954 echo "$as_me: error: cannot compute sizeof (int64_t), 77
6955 See \`config.log' for more details." >&2;}
6956    { (exit 1); exit 1; }; }
6957 fi
6958 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6959 fi
6960 fi
6961 rm -f conftest.val
6962 else
6963   ac_cv_sizeof_int64_t=0
6964 fi
6965 fi
6966 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
6967 echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6
6968 cat >>confdefs.h <<_ACEOF
6969 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
6970 _ACEOF
6971
6972
6973 echo "$as_me:$LINENO: checking for long long" >&5
6974 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6975 if test "${ac_cv_type_long_long+set}" = set; then
6976   echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978   cat >conftest.$ac_ext <<_ACEOF
6979 /* confdefs.h.  */
6980 _ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h.  */
6984 $ac_includes_default
6985 int
6986 main ()
6987 {
6988 if ((long long *) 0)
6989   return 0;
6990 if (sizeof (long long))
6991   return 0;
6992   ;
6993   return 0;
6994 }
6995 _ACEOF
6996 rm -f conftest.$ac_objext
6997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6998   (eval $ac_compile) 2>conftest.er1
6999   ac_status=$?
7000   grep -v '^ *+' conftest.er1 >conftest.err
7001   rm -f conftest.er1
7002   cat conftest.err >&5
7003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004   (exit $ac_status); } &&
7005          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007   (eval $ac_try) 2>&5
7008   ac_status=$?
7009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010   (exit $ac_status); }; } &&
7011          { ac_try='test -s conftest.$ac_objext'
7012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013   (eval $ac_try) 2>&5
7014   ac_status=$?
7015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016   (exit $ac_status); }; }; then
7017   ac_cv_type_long_long=yes
7018 else
7019   echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7021
7022 ac_cv_type_long_long=no
7023 fi
7024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7025 fi
7026 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7027 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7028
7029 echo "$as_me:$LINENO: checking size of long long" >&5
7030 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7031 if test "${ac_cv_sizeof_long_long+set}" = set; then
7032   echo $ECHO_N "(cached) $ECHO_C" >&6
7033 else
7034   if test "$ac_cv_type_long_long" = yes; then
7035   # The cast to unsigned long works around a bug in the HP C Compiler
7036   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7037   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7038   # This bug is HP SR number 8606223364.
7039   if test "$cross_compiling" = yes; then
7040   # Depending upon the size, compute the lo and hi bounds.
7041 cat >conftest.$ac_ext <<_ACEOF
7042 /* confdefs.h.  */
7043 _ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h.  */
7047 $ac_includes_default
7048 int
7049 main ()
7050 {
7051 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
7052 test_array [0] = 0
7053
7054   ;
7055   return 0;
7056 }
7057 _ACEOF
7058 rm -f conftest.$ac_objext
7059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7060   (eval $ac_compile) 2>conftest.er1
7061   ac_status=$?
7062   grep -v '^ *+' conftest.er1 >conftest.err
7063   rm -f conftest.er1
7064   cat conftest.err >&5
7065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066   (exit $ac_status); } &&
7067          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069   (eval $ac_try) 2>&5
7070   ac_status=$?
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); }; } &&
7073          { ac_try='test -s conftest.$ac_objext'
7074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075   (eval $ac_try) 2>&5
7076   ac_status=$?
7077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078   (exit $ac_status); }; }; then
7079   ac_lo=0 ac_mid=0
7080   while :; do
7081     cat >conftest.$ac_ext <<_ACEOF
7082 /* confdefs.h.  */
7083 _ACEOF
7084 cat confdefs.h >>conftest.$ac_ext
7085 cat >>conftest.$ac_ext <<_ACEOF
7086 /* end confdefs.h.  */
7087 $ac_includes_default
7088 int
7089 main ()
7090 {
7091 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7092 test_array [0] = 0
7093
7094   ;
7095   return 0;
7096 }
7097 _ACEOF
7098 rm -f conftest.$ac_objext
7099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7100   (eval $ac_compile) 2>conftest.er1
7101   ac_status=$?
7102   grep -v '^ *+' conftest.er1 >conftest.err
7103   rm -f conftest.er1
7104   cat conftest.err >&5
7105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106   (exit $ac_status); } &&
7107          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109   (eval $ac_try) 2>&5
7110   ac_status=$?
7111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112   (exit $ac_status); }; } &&
7113          { ac_try='test -s conftest.$ac_objext'
7114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115   (eval $ac_try) 2>&5
7116   ac_status=$?
7117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118   (exit $ac_status); }; }; then
7119   ac_hi=$ac_mid; break
7120 else
7121   echo "$as_me: failed program was:" >&5
7122 sed 's/^/| /' conftest.$ac_ext >&5
7123
7124 ac_lo=`expr $ac_mid + 1`
7125                     if test $ac_lo -le $ac_mid; then
7126                       ac_lo= ac_hi=
7127                       break
7128                     fi
7129                     ac_mid=`expr 2 '*' $ac_mid + 1`
7130 fi
7131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7132   done
7133 else
7134   echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7136
7137 cat >conftest.$ac_ext <<_ACEOF
7138 /* confdefs.h.  */
7139 _ACEOF
7140 cat confdefs.h >>conftest.$ac_ext
7141 cat >>conftest.$ac_ext <<_ACEOF
7142 /* end confdefs.h.  */
7143 $ac_includes_default
7144 int
7145 main ()
7146 {
7147 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
7148 test_array [0] = 0
7149
7150   ;
7151   return 0;
7152 }
7153 _ACEOF
7154 rm -f conftest.$ac_objext
7155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7156   (eval $ac_compile) 2>conftest.er1
7157   ac_status=$?
7158   grep -v '^ *+' conftest.er1 >conftest.err
7159   rm -f conftest.er1
7160   cat conftest.err >&5
7161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162   (exit $ac_status); } &&
7163          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165   (eval $ac_try) 2>&5
7166   ac_status=$?
7167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168   (exit $ac_status); }; } &&
7169          { ac_try='test -s conftest.$ac_objext'
7170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7171   (eval $ac_try) 2>&5
7172   ac_status=$?
7173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174   (exit $ac_status); }; }; then
7175   ac_hi=-1 ac_mid=-1
7176   while :; do
7177     cat >conftest.$ac_ext <<_ACEOF
7178 /* confdefs.h.  */
7179 _ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
7182 /* end confdefs.h.  */
7183 $ac_includes_default
7184 int
7185 main ()
7186 {
7187 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
7188 test_array [0] = 0
7189
7190   ;
7191   return 0;
7192 }
7193 _ACEOF
7194 rm -f conftest.$ac_objext
7195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7196   (eval $ac_compile) 2>conftest.er1
7197   ac_status=$?
7198   grep -v '^ *+' conftest.er1 >conftest.err
7199   rm -f conftest.er1
7200   cat conftest.err >&5
7201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202   (exit $ac_status); } &&
7203          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205   (eval $ac_try) 2>&5
7206   ac_status=$?
7207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208   (exit $ac_status); }; } &&
7209          { ac_try='test -s conftest.$ac_objext'
7210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211   (eval $ac_try) 2>&5
7212   ac_status=$?
7213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214   (exit $ac_status); }; }; then
7215   ac_lo=$ac_mid; break
7216 else
7217   echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.$ac_ext >&5
7219
7220 ac_hi=`expr '(' $ac_mid ')' - 1`
7221                        if test $ac_mid -le $ac_hi; then
7222                          ac_lo= ac_hi=
7223                          break
7224                        fi
7225                        ac_mid=`expr 2 '*' $ac_mid`
7226 fi
7227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7228   done
7229 else
7230   echo "$as_me: failed program was:" >&5
7231 sed 's/^/| /' conftest.$ac_ext >&5
7232
7233 ac_lo= ac_hi=
7234 fi
7235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7236 fi
7237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7238 # Binary search between lo and hi bounds.
7239 while test "x$ac_lo" != "x$ac_hi"; do
7240   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7241   cat >conftest.$ac_ext <<_ACEOF
7242 /* confdefs.h.  */
7243 _ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h.  */
7247 $ac_includes_default
7248 int
7249 main ()
7250 {
7251 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7252 test_array [0] = 0
7253
7254   ;
7255   return 0;
7256 }
7257 _ACEOF
7258 rm -f conftest.$ac_objext
7259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7260   (eval $ac_compile) 2>conftest.er1
7261   ac_status=$?
7262   grep -v '^ *+' conftest.er1 >conftest.err
7263   rm -f conftest.er1
7264   cat conftest.err >&5
7265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266   (exit $ac_status); } &&
7267          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269   (eval $ac_try) 2>&5
7270   ac_status=$?
7271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272   (exit $ac_status); }; } &&
7273          { ac_try='test -s conftest.$ac_objext'
7274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275   (eval $ac_try) 2>&5
7276   ac_status=$?
7277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278   (exit $ac_status); }; }; then
7279   ac_hi=$ac_mid
7280 else
7281   echo "$as_me: failed program was:" >&5
7282 sed 's/^/| /' conftest.$ac_ext >&5
7283
7284 ac_lo=`expr '(' $ac_mid ')' + 1`
7285 fi
7286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7287 done
7288 case $ac_lo in
7289 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7290 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
7291 See \`config.log' for more details." >&5
7292 echo "$as_me: error: cannot compute sizeof (long long), 77
7293 See \`config.log' for more details." >&2;}
7294    { (exit 1); exit 1; }; } ;;
7295 esac
7296 else
7297   if test "$cross_compiling" = yes; then
7298   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7299 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7300    { (exit 1); exit 1; }; }
7301 else
7302   cat >conftest.$ac_ext <<_ACEOF
7303 /* confdefs.h.  */
7304 _ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h.  */
7308 $ac_includes_default
7309 long longval () { return (long) (sizeof (long long)); }
7310 unsigned long ulongval () { return (long) (sizeof (long long)); }
7311 #include <stdio.h>
7312 #include <stdlib.h>
7313 int
7314 main ()
7315 {
7316
7317   FILE *f = fopen ("conftest.val", "w");
7318   if (! f)
7319     exit (1);
7320   if (((long) (sizeof (long long))) < 0)
7321     {
7322       long i = longval ();
7323       if (i != ((long) (sizeof (long long))))
7324         exit (1);
7325       fprintf (f, "%ld\n", i);
7326     }
7327   else
7328     {
7329       unsigned long i = ulongval ();
7330       if (i != ((long) (sizeof (long long))))
7331         exit (1);
7332       fprintf (f, "%lu\n", i);
7333     }
7334   exit (ferror (f) || fclose (f) != 0);
7335
7336   ;
7337   return 0;
7338 }
7339 _ACEOF
7340 rm -f conftest$ac_exeext
7341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7342   (eval $ac_link) 2>&5
7343   ac_status=$?
7344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347   (eval $ac_try) 2>&5
7348   ac_status=$?
7349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350   (exit $ac_status); }; }; then
7351   ac_cv_sizeof_long_long=`cat conftest.val`
7352 else
7353   echo "$as_me: program exited with status $ac_status" >&5
7354 echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.$ac_ext >&5
7356
7357 ( exit $ac_status )
7358 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
7359 See \`config.log' for more details." >&5
7360 echo "$as_me: error: cannot compute sizeof (long long), 77
7361 See \`config.log' for more details." >&2;}
7362    { (exit 1); exit 1; }; }
7363 fi
7364 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7365 fi
7366 fi
7367 rm -f conftest.val
7368 else
7369   ac_cv_sizeof_long_long=0
7370 fi
7371 fi
7372 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7373 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
7374 cat >>confdefs.h <<_ACEOF
7375 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7376 _ACEOF
7377
7378
7379 if test "$ac_cv_sizeof_int" = 2 ; then
7380   echo "$as_me:$LINENO: checking for int16_t" >&5
7381 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
7382 if test "${ac_cv_type_int16_t+set}" = set; then
7383   echo $ECHO_N "(cached) $ECHO_C" >&6
7384 else
7385   cat >conftest.$ac_ext <<_ACEOF
7386 /* confdefs.h.  */
7387 _ACEOF
7388 cat confdefs.h >>conftest.$ac_ext
7389 cat >>conftest.$ac_ext <<_ACEOF
7390 /* end confdefs.h.  */
7391 $ac_includes_default
7392 int
7393 main ()
7394 {
7395 if ((int16_t *) 0)
7396   return 0;
7397 if (sizeof (int16_t))
7398   return 0;
7399   ;
7400   return 0;
7401 }
7402 _ACEOF
7403 rm -f conftest.$ac_objext
7404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7405   (eval $ac_compile) 2>conftest.er1
7406   ac_status=$?
7407   grep -v '^ *+' conftest.er1 >conftest.err
7408   rm -f conftest.er1
7409   cat conftest.err >&5
7410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411   (exit $ac_status); } &&
7412          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7414   (eval $ac_try) 2>&5
7415   ac_status=$?
7416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417   (exit $ac_status); }; } &&
7418          { ac_try='test -s conftest.$ac_objext'
7419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7420   (eval $ac_try) 2>&5
7421   ac_status=$?
7422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423   (exit $ac_status); }; }; then
7424   ac_cv_type_int16_t=yes
7425 else
7426   echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.$ac_ext >&5
7428
7429 ac_cv_type_int16_t=no
7430 fi
7431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7432 fi
7433 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7434 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
7435 if test $ac_cv_type_int16_t = yes; then
7436   :
7437 else
7438
7439 cat >>confdefs.h <<_ACEOF
7440 #define int16_t int
7441 _ACEOF
7442
7443 fi
7444
7445   echo "$as_me:$LINENO: checking for uint16_t" >&5
7446 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7447 if test "${ac_cv_type_uint16_t+set}" = set; then
7448   echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450   cat >conftest.$ac_ext <<_ACEOF
7451 /* confdefs.h.  */
7452 _ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h.  */
7456 $ac_includes_default
7457 int
7458 main ()
7459 {
7460 if ((uint16_t *) 0)
7461   return 0;
7462 if (sizeof (uint16_t))
7463   return 0;
7464   ;
7465   return 0;
7466 }
7467 _ACEOF
7468 rm -f conftest.$ac_objext
7469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7470   (eval $ac_compile) 2>conftest.er1
7471   ac_status=$?
7472   grep -v '^ *+' conftest.er1 >conftest.err
7473   rm -f conftest.er1
7474   cat conftest.err >&5
7475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476   (exit $ac_status); } &&
7477          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479   (eval $ac_try) 2>&5
7480   ac_status=$?
7481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482   (exit $ac_status); }; } &&
7483          { ac_try='test -s conftest.$ac_objext'
7484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7485   (eval $ac_try) 2>&5
7486   ac_status=$?
7487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488   (exit $ac_status); }; }; then
7489   ac_cv_type_uint16_t=yes
7490 else
7491   echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7493
7494 ac_cv_type_uint16_t=no
7495 fi
7496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7497 fi
7498 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7499 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7500 if test $ac_cv_type_uint16_t = yes; then
7501   :
7502 else
7503
7504 cat >>confdefs.h <<_ACEOF
7505 #define uint16_t unsigned int
7506 _ACEOF
7507
7508 fi
7509
7510 elif test "$ac_cv_sizeof_short" = 2 ; then
7511   echo "$as_me:$LINENO: checking for int16_t" >&5
7512 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
7513 if test "${ac_cv_type_int16_t+set}" = set; then
7514   echo $ECHO_N "(cached) $ECHO_C" >&6
7515 else
7516   cat >conftest.$ac_ext <<_ACEOF
7517 /* confdefs.h.  */
7518 _ACEOF
7519 cat confdefs.h >>conftest.$ac_ext
7520 cat >>conftest.$ac_ext <<_ACEOF
7521 /* end confdefs.h.  */
7522 $ac_includes_default
7523 int
7524 main ()
7525 {
7526 if ((int16_t *) 0)
7527   return 0;
7528 if (sizeof (int16_t))
7529   return 0;
7530   ;
7531   return 0;
7532 }
7533 _ACEOF
7534 rm -f conftest.$ac_objext
7535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7536   (eval $ac_compile) 2>conftest.er1
7537   ac_status=$?
7538   grep -v '^ *+' conftest.er1 >conftest.err
7539   rm -f conftest.er1
7540   cat conftest.err >&5
7541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542   (exit $ac_status); } &&
7543          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545   (eval $ac_try) 2>&5
7546   ac_status=$?
7547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548   (exit $ac_status); }; } &&
7549          { ac_try='test -s conftest.$ac_objext'
7550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7551   (eval $ac_try) 2>&5
7552   ac_status=$?
7553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554   (exit $ac_status); }; }; then
7555   ac_cv_type_int16_t=yes
7556 else
7557   echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7559
7560 ac_cv_type_int16_t=no
7561 fi
7562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7563 fi
7564 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7565 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
7566 if test $ac_cv_type_int16_t = yes; then
7567   :
7568 else
7569
7570 cat >>confdefs.h <<_ACEOF
7571 #define int16_t short
7572 _ACEOF
7573
7574 fi
7575
7576   echo "$as_me:$LINENO: checking for uint16_t" >&5
7577 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7578 if test "${ac_cv_type_uint16_t+set}" = set; then
7579   echo $ECHO_N "(cached) $ECHO_C" >&6
7580 else
7581   cat >conftest.$ac_ext <<_ACEOF
7582 /* confdefs.h.  */
7583 _ACEOF
7584 cat confdefs.h >>conftest.$ac_ext
7585 cat >>conftest.$ac_ext <<_ACEOF
7586 /* end confdefs.h.  */
7587 $ac_includes_default
7588 int
7589 main ()
7590 {
7591 if ((uint16_t *) 0)
7592   return 0;
7593 if (sizeof (uint16_t))
7594   return 0;
7595   ;
7596   return 0;
7597 }
7598 _ACEOF
7599 rm -f conftest.$ac_objext
7600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7601   (eval $ac_compile) 2>conftest.er1
7602   ac_status=$?
7603   grep -v '^ *+' conftest.er1 >conftest.err
7604   rm -f conftest.er1
7605   cat conftest.err >&5
7606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607   (exit $ac_status); } &&
7608          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610   (eval $ac_try) 2>&5
7611   ac_status=$?
7612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613   (exit $ac_status); }; } &&
7614          { ac_try='test -s conftest.$ac_objext'
7615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616   (eval $ac_try) 2>&5
7617   ac_status=$?
7618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619   (exit $ac_status); }; }; then
7620   ac_cv_type_uint16_t=yes
7621 else
7622   echo "$as_me: failed program was:" >&5
7623 sed 's/^/| /' conftest.$ac_ext >&5
7624
7625 ac_cv_type_uint16_t=no
7626 fi
7627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7628 fi
7629 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7630 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7631 if test $ac_cv_type_uint16_t = yes; then
7632   :
7633 else
7634
7635 cat >>confdefs.h <<_ACEOF
7636 #define uint16_t unsigned short
7637 _ACEOF
7638
7639 fi
7640
7641 else
7642   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
7643 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
7644    { (exit 1); exit 1; }; }
7645 fi
7646 if test "$ac_cv_sizeof_int" = 4 ; then
7647   echo "$as_me:$LINENO: checking for int32_t" >&5
7648 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7649 if test "${ac_cv_type_int32_t+set}" = set; then
7650   echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652   cat >conftest.$ac_ext <<_ACEOF
7653 /* confdefs.h.  */
7654 _ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h.  */
7658 $ac_includes_default
7659 int
7660 main ()
7661 {
7662 if ((int32_t *) 0)
7663   return 0;
7664 if (sizeof (int32_t))
7665   return 0;
7666   ;
7667   return 0;
7668 }
7669 _ACEOF
7670 rm -f conftest.$ac_objext
7671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7672   (eval $ac_compile) 2>conftest.er1
7673   ac_status=$?
7674   grep -v '^ *+' conftest.er1 >conftest.err
7675   rm -f conftest.er1
7676   cat conftest.err >&5
7677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678   (exit $ac_status); } &&
7679          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7681   (eval $ac_try) 2>&5
7682   ac_status=$?
7683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684   (exit $ac_status); }; } &&
7685          { ac_try='test -s conftest.$ac_objext'
7686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687   (eval $ac_try) 2>&5
7688   ac_status=$?
7689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690   (exit $ac_status); }; }; then
7691   ac_cv_type_int32_t=yes
7692 else
7693   echo "$as_me: failed program was:" >&5
7694 sed 's/^/| /' conftest.$ac_ext >&5
7695
7696 ac_cv_type_int32_t=no
7697 fi
7698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7699 fi
7700 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7701 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7702 if test $ac_cv_type_int32_t = yes; then
7703   :
7704 else
7705
7706 cat >>confdefs.h <<_ACEOF
7707 #define int32_t int
7708 _ACEOF
7709
7710 fi
7711
7712   echo "$as_me:$LINENO: checking for uint32_t" >&5
7713 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7714 if test "${ac_cv_type_uint32_t+set}" = set; then
7715   echo $ECHO_N "(cached) $ECHO_C" >&6
7716 else
7717   cat >conftest.$ac_ext <<_ACEOF
7718 /* confdefs.h.  */
7719 _ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h.  */
7723 $ac_includes_default
7724 int
7725 main ()
7726 {
7727 if ((uint32_t *) 0)
7728   return 0;
7729 if (sizeof (uint32_t))
7730   return 0;
7731   ;
7732   return 0;
7733 }
7734 _ACEOF
7735 rm -f conftest.$ac_objext
7736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7737   (eval $ac_compile) 2>conftest.er1
7738   ac_status=$?
7739   grep -v '^ *+' conftest.er1 >conftest.err
7740   rm -f conftest.er1
7741   cat conftest.err >&5
7742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743   (exit $ac_status); } &&
7744          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7746   (eval $ac_try) 2>&5
7747   ac_status=$?
7748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749   (exit $ac_status); }; } &&
7750          { ac_try='test -s conftest.$ac_objext'
7751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752   (eval $ac_try) 2>&5
7753   ac_status=$?
7754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755   (exit $ac_status); }; }; then
7756   ac_cv_type_uint32_t=yes
7757 else
7758   echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.$ac_ext >&5
7760
7761 ac_cv_type_uint32_t=no
7762 fi
7763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7764 fi
7765 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7766 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7767 if test $ac_cv_type_uint32_t = yes; then
7768   :
7769 else
7770
7771 cat >>confdefs.h <<_ACEOF
7772 #define uint32_t unsigned int
7773 _ACEOF
7774
7775 fi
7776
7777 elif test "$ac_cv_sizeof_short" = 4 ; then
7778   echo "$as_me:$LINENO: checking for int32_t" >&5
7779 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7780 if test "${ac_cv_type_int32_t+set}" = set; then
7781   echo $ECHO_N "(cached) $ECHO_C" >&6
7782 else
7783   cat >conftest.$ac_ext <<_ACEOF
7784 /* confdefs.h.  */
7785 _ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h.  */
7789 $ac_includes_default
7790 int
7791 main ()
7792 {
7793 if ((int32_t *) 0)
7794   return 0;
7795 if (sizeof (int32_t))
7796   return 0;
7797   ;
7798   return 0;
7799 }
7800 _ACEOF
7801 rm -f conftest.$ac_objext
7802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7803   (eval $ac_compile) 2>conftest.er1
7804   ac_status=$?
7805   grep -v '^ *+' conftest.er1 >conftest.err
7806   rm -f conftest.er1
7807   cat conftest.err >&5
7808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809   (exit $ac_status); } &&
7810          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7812   (eval $ac_try) 2>&5
7813   ac_status=$?
7814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815   (exit $ac_status); }; } &&
7816          { ac_try='test -s conftest.$ac_objext'
7817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7818   (eval $ac_try) 2>&5
7819   ac_status=$?
7820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821   (exit $ac_status); }; }; then
7822   ac_cv_type_int32_t=yes
7823 else
7824   echo "$as_me: failed program was:" >&5
7825 sed 's/^/| /' conftest.$ac_ext >&5
7826
7827 ac_cv_type_int32_t=no
7828 fi
7829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7830 fi
7831 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7832 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7833 if test $ac_cv_type_int32_t = yes; then
7834   :
7835 else
7836
7837 cat >>confdefs.h <<_ACEOF
7838 #define int32_t short
7839 _ACEOF
7840
7841 fi
7842
7843   echo "$as_me:$LINENO: checking for uint32_t" >&5
7844 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7845 if test "${ac_cv_type_uint32_t+set}" = set; then
7846   echo $ECHO_N "(cached) $ECHO_C" >&6
7847 else
7848   cat >conftest.$ac_ext <<_ACEOF
7849 /* confdefs.h.  */
7850 _ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h.  */
7854 $ac_includes_default
7855 int
7856 main ()
7857 {
7858 if ((uint32_t *) 0)
7859   return 0;
7860 if (sizeof (uint32_t))
7861   return 0;
7862   ;
7863   return 0;
7864 }
7865 _ACEOF
7866 rm -f conftest.$ac_objext
7867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7868   (eval $ac_compile) 2>conftest.er1
7869   ac_status=$?
7870   grep -v '^ *+' conftest.er1 >conftest.err
7871   rm -f conftest.er1
7872   cat conftest.err >&5
7873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874   (exit $ac_status); } &&
7875          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7877   (eval $ac_try) 2>&5
7878   ac_status=$?
7879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880   (exit $ac_status); }; } &&
7881          { ac_try='test -s conftest.$ac_objext'
7882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883   (eval $ac_try) 2>&5
7884   ac_status=$?
7885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886   (exit $ac_status); }; }; then
7887   ac_cv_type_uint32_t=yes
7888 else
7889   echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7891
7892 ac_cv_type_uint32_t=no
7893 fi
7894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7895 fi
7896 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7897 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7898 if test $ac_cv_type_uint32_t = yes; then
7899   :
7900 else
7901
7902 cat >>confdefs.h <<_ACEOF
7903 #define uint32_t unsigned short
7904 _ACEOF
7905
7906 fi
7907
7908 elif test "$ac_cv_sizeof_long" = 4 ; then
7909   echo "$as_me:$LINENO: checking for int32_t" >&5
7910 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7911 if test "${ac_cv_type_int32_t+set}" = set; then
7912   echo $ECHO_N "(cached) $ECHO_C" >&6
7913 else
7914   cat >conftest.$ac_ext <<_ACEOF
7915 /* confdefs.h.  */
7916 _ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h.  */
7920 $ac_includes_default
7921 int
7922 main ()
7923 {
7924 if ((int32_t *) 0)
7925   return 0;
7926 if (sizeof (int32_t))
7927   return 0;
7928   ;
7929   return 0;
7930 }
7931 _ACEOF
7932 rm -f conftest.$ac_objext
7933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7934   (eval $ac_compile) 2>conftest.er1
7935   ac_status=$?
7936   grep -v '^ *+' conftest.er1 >conftest.err
7937   rm -f conftest.er1
7938   cat conftest.err >&5
7939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940   (exit $ac_status); } &&
7941          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7943   (eval $ac_try) 2>&5
7944   ac_status=$?
7945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946   (exit $ac_status); }; } &&
7947          { ac_try='test -s conftest.$ac_objext'
7948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949   (eval $ac_try) 2>&5
7950   ac_status=$?
7951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952   (exit $ac_status); }; }; then
7953   ac_cv_type_int32_t=yes
7954 else
7955   echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7957
7958 ac_cv_type_int32_t=no
7959 fi
7960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7961 fi
7962 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7963 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7964 if test $ac_cv_type_int32_t = yes; then
7965   :
7966 else
7967
7968 cat >>confdefs.h <<_ACEOF
7969 #define int32_t long
7970 _ACEOF
7971
7972 fi
7973
7974   echo "$as_me:$LINENO: checking for uint32_t" >&5
7975 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7976 if test "${ac_cv_type_uint32_t+set}" = set; then
7977   echo $ECHO_N "(cached) $ECHO_C" >&6
7978 else
7979   cat >conftest.$ac_ext <<_ACEOF
7980 /* confdefs.h.  */
7981 _ACEOF
7982 cat confdefs.h >>conftest.$ac_ext
7983 cat >>conftest.$ac_ext <<_ACEOF
7984 /* end confdefs.h.  */
7985 $ac_includes_default
7986 int
7987 main ()
7988 {
7989 if ((uint32_t *) 0)
7990   return 0;
7991 if (sizeof (uint32_t))
7992   return 0;
7993   ;
7994   return 0;
7995 }
7996 _ACEOF
7997 rm -f conftest.$ac_objext
7998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7999   (eval $ac_compile) 2>conftest.er1
8000   ac_status=$?
8001   grep -v '^ *+' conftest.er1 >conftest.err
8002   rm -f conftest.er1
8003   cat conftest.err >&5
8004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005   (exit $ac_status); } &&
8006          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008   (eval $ac_try) 2>&5
8009   ac_status=$?
8010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011   (exit $ac_status); }; } &&
8012          { ac_try='test -s conftest.$ac_objext'
8013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8014   (eval $ac_try) 2>&5
8015   ac_status=$?
8016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017   (exit $ac_status); }; }; then
8018   ac_cv_type_uint32_t=yes
8019 else
8020   echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8022
8023 ac_cv_type_uint32_t=no
8024 fi
8025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8026 fi
8027 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8028 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
8029 if test $ac_cv_type_uint32_t = yes; then
8030   :
8031 else
8032
8033 cat >>confdefs.h <<_ACEOF
8034 #define uint32_t unsigned long
8035 _ACEOF
8036
8037 fi
8038
8039 else
8040   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
8041 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
8042    { (exit 1); exit 1; }; }
8043 fi
8044 if test "$ac_cv_sizeof_int64_t" = 8 ; then
8045   echo "$as_me:$LINENO: checking for int64_t" >&5
8046 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
8047 if test "${ac_cv_type_int64_t+set}" = set; then
8048   echo $ECHO_N "(cached) $ECHO_C" >&6
8049 else
8050   cat >conftest.$ac_ext <<_ACEOF
8051 /* confdefs.h.  */
8052 _ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h.  */
8056 $ac_includes_default
8057 int
8058 main ()
8059 {
8060 if ((int64_t *) 0)
8061   return 0;
8062 if (sizeof (int64_t))
8063   return 0;
8064   ;
8065   return 0;
8066 }
8067 _ACEOF
8068 rm -f conftest.$ac_objext
8069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8070   (eval $ac_compile) 2>conftest.er1
8071   ac_status=$?
8072   grep -v '^ *+' conftest.er1 >conftest.err
8073   rm -f conftest.er1
8074   cat conftest.err >&5
8075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076   (exit $ac_status); } &&
8077          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079   (eval $ac_try) 2>&5
8080   ac_status=$?
8081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082   (exit $ac_status); }; } &&
8083          { ac_try='test -s conftest.$ac_objext'
8084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085   (eval $ac_try) 2>&5
8086   ac_status=$?
8087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088   (exit $ac_status); }; }; then
8089   ac_cv_type_int64_t=yes
8090 else
8091   echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8093
8094 ac_cv_type_int64_t=no
8095 fi
8096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8097 fi
8098 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8099 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
8100
8101   echo "$as_me:$LINENO: checking for uint64_t" >&5
8102 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
8103 if test "${ac_cv_type_uint64_t+set}" = set; then
8104   echo $ECHO_N "(cached) $ECHO_C" >&6
8105 else
8106   cat >conftest.$ac_ext <<_ACEOF
8107 /* confdefs.h.  */
8108 _ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h.  */
8112 $ac_includes_default
8113 int
8114 main ()
8115 {
8116 if ((uint64_t *) 0)
8117   return 0;
8118 if (sizeof (uint64_t))
8119   return 0;
8120   ;
8121   return 0;
8122 }
8123 _ACEOF
8124 rm -f conftest.$ac_objext
8125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8126   (eval $ac_compile) 2>conftest.er1
8127   ac_status=$?
8128   grep -v '^ *+' conftest.er1 >conftest.err
8129   rm -f conftest.er1
8130   cat conftest.err >&5
8131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132   (exit $ac_status); } &&
8133          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135   (eval $ac_try) 2>&5
8136   ac_status=$?
8137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); }; } &&
8139          { ac_try='test -s conftest.$ac_objext'
8140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8141   (eval $ac_try) 2>&5
8142   ac_status=$?
8143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144   (exit $ac_status); }; }; then
8145   ac_cv_type_uint64_t=yes
8146 else
8147   echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8149
8150 ac_cv_type_uint64_t=no
8151 fi
8152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8153 fi
8154 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8155 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
8156
8157 elif test "$ac_cv_sizeof_long_long" = 8 ; then
8158   echo "$as_me:$LINENO: checking for int64_t" >&5
8159 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
8160 if test "${ac_cv_type_int64_t+set}" = set; then
8161   echo $ECHO_N "(cached) $ECHO_C" >&6
8162 else
8163   cat >conftest.$ac_ext <<_ACEOF
8164 /* confdefs.h.  */
8165 _ACEOF
8166 cat confdefs.h >>conftest.$ac_ext
8167 cat >>conftest.$ac_ext <<_ACEOF
8168 /* end confdefs.h.  */
8169 $ac_includes_default
8170 int
8171 main ()
8172 {
8173 if ((int64_t *) 0)
8174   return 0;
8175 if (sizeof (int64_t))
8176   return 0;
8177   ;
8178   return 0;
8179 }
8180 _ACEOF
8181 rm -f conftest.$ac_objext
8182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8183   (eval $ac_compile) 2>conftest.er1
8184   ac_status=$?
8185   grep -v '^ *+' conftest.er1 >conftest.err
8186   rm -f conftest.er1
8187   cat conftest.err >&5
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); } &&
8190          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192   (eval $ac_try) 2>&5
8193   ac_status=$?
8194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195   (exit $ac_status); }; } &&
8196          { ac_try='test -s conftest.$ac_objext'
8197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198   (eval $ac_try) 2>&5
8199   ac_status=$?
8200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201   (exit $ac_status); }; }; then
8202   ac_cv_type_int64_t=yes
8203 else
8204   echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8206
8207 ac_cv_type_int64_t=no
8208 fi
8209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8210 fi
8211 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8212 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
8213 if test $ac_cv_type_int64_t = yes; then
8214   :
8215 else
8216
8217 cat >>confdefs.h <<_ACEOF
8218 #define int64_t long long
8219 _ACEOF
8220
8221 fi
8222
8223   echo "$as_me:$LINENO: checking for uint64_t" >&5
8224 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
8225 if test "${ac_cv_type_uint64_t+set}" = set; then
8226   echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228   cat >conftest.$ac_ext <<_ACEOF
8229 /* confdefs.h.  */
8230 _ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h.  */
8234 $ac_includes_default
8235 int
8236 main ()
8237 {
8238 if ((uint64_t *) 0)
8239   return 0;
8240 if (sizeof (uint64_t))
8241   return 0;
8242   ;
8243   return 0;
8244 }
8245 _ACEOF
8246 rm -f conftest.$ac_objext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8248   (eval $ac_compile) 2>conftest.er1
8249   ac_status=$?
8250   grep -v '^ *+' conftest.er1 >conftest.err
8251   rm -f conftest.er1
8252   cat conftest.err >&5
8253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254   (exit $ac_status); } &&
8255          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257   (eval $ac_try) 2>&5
8258   ac_status=$?
8259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260   (exit $ac_status); }; } &&
8261          { ac_try='test -s conftest.$ac_objext'
8262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263   (eval $ac_try) 2>&5
8264   ac_status=$?
8265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266   (exit $ac_status); }; }; then
8267   ac_cv_type_uint64_t=yes
8268 else
8269   echo "$as_me: failed program was:" >&5
8270 sed 's/^/| /' conftest.$ac_ext >&5
8271
8272 ac_cv_type_uint64_t=no
8273 fi
8274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8275 fi
8276 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8277 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
8278 if test $ac_cv_type_uint64_t = yes; then
8279   :
8280 else
8281
8282 cat >>confdefs.h <<_ACEOF
8283 #define uint64_t unsigned long long
8284 _ACEOF
8285
8286 fi
8287
8288 else
8289   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 64 bits" >&5
8290 echo "$as_me: error: Cannot find a type with size of 64 bits" >&2;}
8291    { (exit 1); exit 1; }; }
8292 fi
8293 echo "$as_me:$LINENO: checking for socklen_t" >&5
8294 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
8295 if test "${ac_cv_type_socklen_t+set}" = set; then
8296   echo $ECHO_N "(cached) $ECHO_C" >&6
8297 else
8298   cat >conftest.$ac_ext <<_ACEOF
8299 /* confdefs.h.  */
8300 _ACEOF
8301 cat confdefs.h >>conftest.$ac_ext
8302 cat >>conftest.$ac_ext <<_ACEOF
8303 /* end confdefs.h.  */
8304 $ac_includes_default
8305 int
8306 main ()
8307 {
8308 if ((socklen_t *) 0)
8309   return 0;
8310 if (sizeof (socklen_t))
8311   return 0;
8312   ;
8313   return 0;
8314 }
8315 _ACEOF
8316 rm -f conftest.$ac_objext
8317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8318   (eval $ac_compile) 2>conftest.er1
8319   ac_status=$?
8320   grep -v '^ *+' conftest.er1 >conftest.err
8321   rm -f conftest.er1
8322   cat conftest.err >&5
8323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324   (exit $ac_status); } &&
8325          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327   (eval $ac_try) 2>&5
8328   ac_status=$?
8329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330   (exit $ac_status); }; } &&
8331          { ac_try='test -s conftest.$ac_objext'
8332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8333   (eval $ac_try) 2>&5
8334   ac_status=$?
8335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336   (exit $ac_status); }; }; then
8337   ac_cv_type_socklen_t=yes
8338 else
8339   echo "$as_me: failed program was:" >&5
8340 sed 's/^/| /' conftest.$ac_ext >&5
8341
8342 ac_cv_type_socklen_t=no
8343 fi
8344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8345 fi
8346 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
8347 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
8348 if test $ac_cv_type_socklen_t = yes; then
8349   :
8350 else
8351
8352 cat >>confdefs.h <<_ACEOF
8353 #define socklen_t unsigned int
8354 _ACEOF
8355
8356 fi
8357
8358 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
8359 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
8360 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
8361   echo $ECHO_N "(cached) $ECHO_C" >&6
8362 else
8363   cat >conftest.$ac_ext <<_ACEOF
8364 /* confdefs.h.  */
8365 _ACEOF
8366 cat confdefs.h >>conftest.$ac_ext
8367 cat >>conftest.$ac_ext <<_ACEOF
8368 /* end confdefs.h.  */
8369 #include <sys/types.h>
8370 #include <netinet/in.h>
8371
8372 int
8373 main ()
8374 {
8375 if ((struct sockaddr_in6 *) 0)
8376   return 0;
8377 if (sizeof (struct sockaddr_in6))
8378   return 0;
8379   ;
8380   return 0;
8381 }
8382 _ACEOF
8383 rm -f conftest.$ac_objext
8384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8385   (eval $ac_compile) 2>conftest.er1
8386   ac_status=$?
8387   grep -v '^ *+' conftest.er1 >conftest.err
8388   rm -f conftest.er1
8389   cat conftest.err >&5
8390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391   (exit $ac_status); } &&
8392          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394   (eval $ac_try) 2>&5
8395   ac_status=$?
8396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397   (exit $ac_status); }; } &&
8398          { ac_try='test -s conftest.$ac_objext'
8399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8400   (eval $ac_try) 2>&5
8401   ac_status=$?
8402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403   (exit $ac_status); }; }; then
8404   ac_cv_type_struct_sockaddr_in6=yes
8405 else
8406   echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.$ac_ext >&5
8408
8409 ac_cv_type_struct_sockaddr_in6=no
8410 fi
8411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8412 fi
8413 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
8414 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
8415 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
8416   unet_have_sockaddr_in6="yes"
8417 else
8418   unet_have_sockaddr_in6="no"
8419 fi
8420
8421
8422
8423
8424
8425
8426 for ac_func in kqueue setrlimit getrusage times
8427 do
8428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8429 echo "$as_me:$LINENO: checking for $ac_func" >&5
8430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8431 if eval "test \"\${$as_ac_var+set}\" = set"; then
8432   echo $ECHO_N "(cached) $ECHO_C" >&6
8433 else
8434   cat >conftest.$ac_ext <<_ACEOF
8435 /* confdefs.h.  */
8436 _ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h.  */
8440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8441    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8442 #define $ac_func innocuous_$ac_func
8443
8444 /* System header to define __stub macros and hopefully few prototypes,
8445     which can conflict with char $ac_func (); below.
8446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8447     <limits.h> exists even on freestanding compilers.  */
8448
8449 #ifdef __STDC__
8450 # include <limits.h>
8451 #else
8452 # include <assert.h>
8453 #endif
8454
8455 #undef $ac_func
8456
8457 /* Override any gcc2 internal prototype to avoid an error.  */
8458 #ifdef __cplusplus
8459 extern "C"
8460 {
8461 #endif
8462 /* We use char because int might match the return type of a gcc2
8463    builtin and then its argument prototype would still apply.  */
8464 char $ac_func ();
8465 /* The GNU C library defines this for functions which it implements
8466     to always fail with ENOSYS.  Some functions are actually named
8467     something starting with __ and the normal name is an alias.  */
8468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8469 choke me
8470 #else
8471 char (*f) () = $ac_func;
8472 #endif
8473 #ifdef __cplusplus
8474 }
8475 #endif
8476
8477 int
8478 main ()
8479 {
8480 return f != $ac_func;
8481   ;
8482   return 0;
8483 }
8484 _ACEOF
8485 rm -f conftest.$ac_objext conftest$ac_exeext
8486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8487   (eval $ac_link) 2>conftest.er1
8488   ac_status=$?
8489   grep -v '^ *+' conftest.er1 >conftest.err
8490   rm -f conftest.er1
8491   cat conftest.err >&5
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); } &&
8494          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496   (eval $ac_try) 2>&5
8497   ac_status=$?
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); }; } &&
8500          { ac_try='test -s conftest$ac_exeext'
8501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502   (eval $ac_try) 2>&5
8503   ac_status=$?
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); }; }; then
8506   eval "$as_ac_var=yes"
8507 else
8508   echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8510
8511 eval "$as_ac_var=no"
8512 fi
8513 rm -f conftest.err conftest.$ac_objext \
8514       conftest$ac_exeext conftest.$ac_ext
8515 fi
8516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8518 if test `eval echo '${'$as_ac_var'}'` = yes; then
8519   cat >>confdefs.h <<_ACEOF
8520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8521 _ACEOF
8522
8523 fi
8524 done
8525
8526
8527 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8528 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8529 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8530   echo $ECHO_N "(cached) $ECHO_C" >&6
8531 else
8532   cat >conftest.$ac_ext <<_ACEOF
8533 /* confdefs.h.  */
8534 _ACEOF
8535 cat confdefs.h >>conftest.$ac_ext
8536 cat >>conftest.$ac_ext <<_ACEOF
8537 /* end confdefs.h.  */
8538 #include <sys/types.h>
8539 #include <sys/wait.h>
8540 #ifndef WEXITSTATUS
8541 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8542 #endif
8543 #ifndef WIFEXITED
8544 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8545 #endif
8546
8547 int
8548 main ()
8549 {
8550   int s;
8551   wait (&s);
8552   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8553   ;
8554   return 0;
8555 }
8556 _ACEOF
8557 rm -f conftest.$ac_objext
8558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8559   (eval $ac_compile) 2>conftest.er1
8560   ac_status=$?
8561   grep -v '^ *+' conftest.er1 >conftest.err
8562   rm -f conftest.er1
8563   cat conftest.err >&5
8564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565   (exit $ac_status); } &&
8566          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568   (eval $ac_try) 2>&5
8569   ac_status=$?
8570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571   (exit $ac_status); }; } &&
8572          { ac_try='test -s conftest.$ac_objext'
8573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8574   (eval $ac_try) 2>&5
8575   ac_status=$?
8576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577   (exit $ac_status); }; }; then
8578   ac_cv_header_sys_wait_h=yes
8579 else
8580   echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8582
8583 ac_cv_header_sys_wait_h=no
8584 fi
8585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8586 fi
8587 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8588 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8589 if test $ac_cv_header_sys_wait_h = yes; then
8590
8591 cat >>confdefs.h <<\_ACEOF
8592 #define HAVE_SYS_WAIT_H 1
8593 _ACEOF
8594
8595 fi
8596
8597
8598 for ac_header in unistd.h
8599 do
8600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8602   echo "$as_me:$LINENO: checking for $ac_header" >&5
8603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8605   echo $ECHO_N "(cached) $ECHO_C" >&6
8606 fi
8607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8609 else
8610   # Is the header compilable?
8611 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8612 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8613 cat >conftest.$ac_ext <<_ACEOF
8614 /* confdefs.h.  */
8615 _ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h.  */
8619 $ac_includes_default
8620 #include <$ac_header>
8621 _ACEOF
8622 rm -f conftest.$ac_objext
8623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8624   (eval $ac_compile) 2>conftest.er1
8625   ac_status=$?
8626   grep -v '^ *+' conftest.er1 >conftest.err
8627   rm -f conftest.er1
8628   cat conftest.err >&5
8629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630   (exit $ac_status); } &&
8631          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633   (eval $ac_try) 2>&5
8634   ac_status=$?
8635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636   (exit $ac_status); }; } &&
8637          { ac_try='test -s conftest.$ac_objext'
8638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8639   (eval $ac_try) 2>&5
8640   ac_status=$?
8641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642   (exit $ac_status); }; }; then
8643   ac_header_compiler=yes
8644 else
8645   echo "$as_me: failed program was:" >&5
8646 sed 's/^/| /' conftest.$ac_ext >&5
8647
8648 ac_header_compiler=no
8649 fi
8650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8652 echo "${ECHO_T}$ac_header_compiler" >&6
8653
8654 # Is the header present?
8655 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8656 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8657 cat >conftest.$ac_ext <<_ACEOF
8658 /* confdefs.h.  */
8659 _ACEOF
8660 cat confdefs.h >>conftest.$ac_ext
8661 cat >>conftest.$ac_ext <<_ACEOF
8662 /* end confdefs.h.  */
8663 #include <$ac_header>
8664 _ACEOF
8665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8666   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8667   ac_status=$?
8668   grep -v '^ *+' conftest.er1 >conftest.err
8669   rm -f conftest.er1
8670   cat conftest.err >&5
8671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672   (exit $ac_status); } >/dev/null; then
8673   if test -s conftest.err; then
8674     ac_cpp_err=$ac_c_preproc_warn_flag
8675     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8676   else
8677     ac_cpp_err=
8678   fi
8679 else
8680   ac_cpp_err=yes
8681 fi
8682 if test -z "$ac_cpp_err"; then
8683   ac_header_preproc=yes
8684 else
8685   echo "$as_me: failed program was:" >&5
8686 sed 's/^/| /' conftest.$ac_ext >&5
8687
8688   ac_header_preproc=no
8689 fi
8690 rm -f conftest.err conftest.$ac_ext
8691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8692 echo "${ECHO_T}$ac_header_preproc" >&6
8693
8694 # So?  What about this header?
8695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8696   yes:no: )
8697     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8699     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8701     ac_header_preproc=yes
8702     ;;
8703   no:yes:* )
8704     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8706     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8707 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8708     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8710     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8711 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8712     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8714     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8716     (
8717       cat <<\_ASBOX
8718 ## ------------------------------------------ ##
8719 ## Report this to the AC_PACKAGE_NAME lists.  ##
8720 ## ------------------------------------------ ##
8721 _ASBOX
8722     ) |
8723       sed "s/^/$as_me: WARNING:     /" >&2
8724     ;;
8725 esac
8726 echo "$as_me:$LINENO: checking for $ac_header" >&5
8727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8729   echo $ECHO_N "(cached) $ECHO_C" >&6
8730 else
8731   eval "$as_ac_Header=\$ac_header_preproc"
8732 fi
8733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8735
8736 fi
8737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8738   cat >>confdefs.h <<_ACEOF
8739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8740 _ACEOF
8741
8742 fi
8743
8744 done
8745
8746 echo "$as_me:$LINENO: checking for restartable system calls" >&5
8747 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
8748 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
8749   echo $ECHO_N "(cached) $ECHO_C" >&6
8750 else
8751   if test "$cross_compiling" = yes; then
8752   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8753 See \`config.log' for more details." >&5
8754 echo "$as_me: error: cannot run test program while cross compiling
8755 See \`config.log' for more details." >&2;}
8756    { (exit 1); exit 1; }; }
8757 else
8758   cat >conftest.$ac_ext <<_ACEOF
8759 /* confdefs.h.  */
8760 _ACEOF
8761 cat confdefs.h >>conftest.$ac_ext
8762 cat >>conftest.$ac_ext <<_ACEOF
8763 /* end confdefs.h.  */
8764 /* Exit 0 (true) if wait returns something other than -1,
8765    i.e. the pid of the child, which means that wait was restarted
8766    after getting the signal.  */
8767
8768 #include <sys/types.h>
8769 #include <signal.h>
8770 #if HAVE_UNISTD_H
8771 # include <unistd.h>
8772 #endif
8773 #if HAVE_SYS_WAIT_H
8774 # include <sys/wait.h>
8775 #endif
8776
8777 /* Some platforms explicitly require an extern "C" signal handler
8778    when using C++. */
8779 #ifdef __cplusplus
8780 extern "C" void ucatch (int dummy) { }
8781 #else
8782 void ucatch (dummy) int dummy; { }
8783 #endif
8784
8785 int
8786 main ()
8787 {
8788   int i = fork (), status;
8789
8790   if (i == 0)
8791     {
8792       sleep (3);
8793       kill (getppid (), SIGINT);
8794       sleep (3);
8795       exit (0);
8796     }
8797
8798   signal (SIGINT, ucatch);
8799
8800   status = wait (&i);
8801   if (status == -1)
8802     wait (&i);
8803
8804   exit (status == -1);
8805 }
8806 _ACEOF
8807 rm -f conftest$ac_exeext
8808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8809   (eval $ac_link) 2>&5
8810   ac_status=$?
8811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814   (eval $ac_try) 2>&5
8815   ac_status=$?
8816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817   (exit $ac_status); }; }; then
8818   ac_cv_sys_restartable_syscalls=yes
8819 else
8820   echo "$as_me: program exited with status $ac_status" >&5
8821 echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8823
8824 ( exit $ac_status )
8825 ac_cv_sys_restartable_syscalls=no
8826 fi
8827 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8828 fi
8829 fi
8830 echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
8831 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
8832 if test $ac_cv_sys_restartable_syscalls = yes; then
8833
8834 cat >>confdefs.h <<\_ACEOF
8835 #define HAVE_RESTARTABLE_SYSCALLS 1
8836 _ACEOF
8837
8838 fi
8839
8840
8841 echo "$as_me:$LINENO: checking for donuts" >&5
8842 echo $ECHO_N "checking for donuts... $ECHO_C" >&6
8843 echo "$as_me:$LINENO: result: yes" >&5
8844 echo "${ECHO_T}yes" >&6
8845
8846 for ac_prog in gawk mawk nawk awk
8847 do
8848   # Extract the first word of "$ac_prog", so it can be a program name with args.
8849 set dummy $ac_prog; ac_word=$2
8850 echo "$as_me:$LINENO: checking for $ac_word" >&5
8851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8852 if test "${ac_cv_prog_AWK+set}" = set; then
8853   echo $ECHO_N "(cached) $ECHO_C" >&6
8854 else
8855   if test -n "$AWK"; then
8856   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8857 else
8858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8859 for as_dir in $PATH
8860 do
8861   IFS=$as_save_IFS
8862   test -z "$as_dir" && as_dir=.
8863   for ac_exec_ext in '' $ac_executable_extensions; do
8864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8865     ac_cv_prog_AWK="$ac_prog"
8866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8867     break 2
8868   fi
8869 done
8870 done
8871
8872 fi
8873 fi
8874 AWK=$ac_cv_prog_AWK
8875 if test -n "$AWK"; then
8876   echo "$as_me:$LINENO: result: $AWK" >&5
8877 echo "${ECHO_T}$AWK" >&6
8878 else
8879   echo "$as_me:$LINENO: result: no" >&5
8880 echo "${ECHO_T}no" >&6
8881 fi
8882
8883   test -n "$AWK" && break
8884 done
8885
8886 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8887 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8888 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8889 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8890   echo $ECHO_N "(cached) $ECHO_C" >&6
8891 else
8892   cat >conftest.make <<\_ACEOF
8893 all:
8894         @echo 'ac_maketemp="$(MAKE)"'
8895 _ACEOF
8896 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8897 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8898 if test -n "$ac_maketemp"; then
8899   eval ac_cv_prog_make_${ac_make}_set=yes
8900 else
8901   eval ac_cv_prog_make_${ac_make}_set=no
8902 fi
8903 rm -f conftest.make
8904 fi
8905 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8906   echo "$as_me:$LINENO: result: yes" >&5
8907 echo "${ECHO_T}yes" >&6
8908   SET_MAKE=
8909 else
8910   echo "$as_me:$LINENO: result: no" >&5
8911 echo "${ECHO_T}no" >&6
8912   SET_MAKE="MAKE=${MAKE-make}"
8913 fi
8914
8915 # Find a good install program.  We prefer a C program (faster),
8916 # so one script is as good as another.  But avoid the broken or
8917 # incompatible versions:
8918 # SysV /etc/install, /usr/sbin/install
8919 # SunOS /usr/etc/install
8920 # IRIX /sbin/install
8921 # AIX /bin/install
8922 # AmigaOS /C/install, which installs bootblocks on floppy discs
8923 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8924 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8925 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8926 # OS/2's system install, which has a completely different semantic
8927 # ./install, which can be erroneously created by make from ./install.sh.
8928 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8929 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8930 if test -z "$INSTALL"; then
8931 if test "${ac_cv_path_install+set}" = set; then
8932   echo $ECHO_N "(cached) $ECHO_C" >&6
8933 else
8934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8935 for as_dir in $PATH
8936 do
8937   IFS=$as_save_IFS
8938   test -z "$as_dir" && as_dir=.
8939   # Account for people who put trailing slashes in PATH elements.
8940 case $as_dir/ in
8941   ./ | .// | /cC/* | \
8942   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8943   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8944   /usr/ucb/* ) ;;
8945   *)
8946     # OSF1 and SCO ODT 3.0 have their own names for install.
8947     # Don't use installbsd from OSF since it installs stuff as root
8948     # by default.
8949     for ac_prog in ginstall scoinst install; do
8950       for ac_exec_ext in '' $ac_executable_extensions; do
8951         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8952           if test $ac_prog = install &&
8953             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8954             # AIX install.  It has an incompatible calling convention.
8955             :
8956           elif test $ac_prog = install &&
8957             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8958             # program-specific install script used by HP pwplus--don't use.
8959             :
8960           else
8961             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8962             break 3
8963           fi
8964         fi
8965       done
8966     done
8967     ;;
8968 esac
8969 done
8970
8971
8972 fi
8973   if test "${ac_cv_path_install+set}" = set; then
8974     INSTALL=$ac_cv_path_install
8975   else
8976     # As a last resort, use the slow shell script.  We don't cache a
8977     # path for INSTALL within a source directory, because that will
8978     # break other packages using the cache if that directory is
8979     # removed, or if the path is relative.
8980     INSTALL=$ac_install_sh
8981   fi
8982 fi
8983 echo "$as_me:$LINENO: result: $INSTALL" >&5
8984 echo "${ECHO_T}$INSTALL" >&6
8985
8986 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8987 # It thinks the first close brace ends the variable substitution.
8988 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8989
8990 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8991
8992 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8993
8994 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8995 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8996 LN_S=$as_ln_s
8997 if test "$LN_S" = "ln -s"; then
8998   echo "$as_me:$LINENO: result: yes" >&5
8999 echo "${ECHO_T}yes" >&6
9000 else
9001   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
9002 echo "${ECHO_T}no, using $LN_S" >&6
9003 fi
9004
9005 for ac_prog in rm
9006 do
9007   # Extract the first word of "$ac_prog", so it can be a program name with args.
9008 set dummy $ac_prog; ac_word=$2
9009 echo "$as_me:$LINENO: checking for $ac_word" >&5
9010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9011 if test "${ac_cv_path_RMPROG+set}" = set; then
9012   echo $ECHO_N "(cached) $ECHO_C" >&6
9013 else
9014   case $RMPROG in
9015   [\\/]* | ?:[\\/]*)
9016   ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
9017   ;;
9018   *)
9019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9020 for as_dir in $PATH
9021 do
9022   IFS=$as_save_IFS
9023   test -z "$as_dir" && as_dir=.
9024   for ac_exec_ext in '' $ac_executable_extensions; do
9025   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9026     ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
9027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9028     break 2
9029   fi
9030 done
9031 done
9032
9033   ;;
9034 esac
9035 fi
9036 RMPROG=$ac_cv_path_RMPROG
9037
9038 if test -n "$RMPROG"; then
9039   echo "$as_me:$LINENO: result: $RMPROG" >&5
9040 echo "${ECHO_T}$RMPROG" >&6
9041 else
9042   echo "$as_me:$LINENO: result: no" >&5
9043 echo "${ECHO_T}no" >&6
9044 fi
9045
9046   test -n "$RMPROG" && break
9047 done
9048 test -n "$RMPROG" || RMPROG="/bin/rm"
9049
9050 for ac_prog in sh
9051 do
9052   # Extract the first word of "$ac_prog", so it can be a program name with args.
9053 set dummy $ac_prog; ac_word=$2
9054 echo "$as_me:$LINENO: checking for $ac_word" >&5
9055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9056 if test "${ac_cv_path_SHPROG+set}" = set; then
9057   echo $ECHO_N "(cached) $ECHO_C" >&6
9058 else
9059   case $SHPROG in
9060   [\\/]* | ?:[\\/]*)
9061   ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
9062   ;;
9063   *)
9064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9065 for as_dir in $PATH
9066 do
9067   IFS=$as_save_IFS
9068   test -z "$as_dir" && as_dir=.
9069   for ac_exec_ext in '' $ac_executable_extensions; do
9070   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9071     ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
9072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9073     break 2
9074   fi
9075 done
9076 done
9077
9078   ;;
9079 esac
9080 fi
9081 SHPROG=$ac_cv_path_SHPROG
9082
9083 if test -n "$SHPROG"; then
9084   echo "$as_me:$LINENO: result: $SHPROG" >&5
9085 echo "${ECHO_T}$SHPROG" >&6
9086 else
9087   echo "$as_me:$LINENO: result: no" >&5
9088 echo "${ECHO_T}no" >&6
9089 fi
9090
9091   test -n "$SHPROG" && break
9092 done
9093 test -n "$SHPROG" || SHPROG="/bin/sh"
9094
9095
9096 for ac_prog in flex lex
9097 do
9098   # Extract the first word of "$ac_prog", so it can be a program name with args.
9099 set dummy $ac_prog; ac_word=$2
9100 echo "$as_me:$LINENO: checking for $ac_word" >&5
9101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9102 if test "${ac_cv_prog_LEX+set}" = set; then
9103   echo $ECHO_N "(cached) $ECHO_C" >&6
9104 else
9105   if test -n "$LEX"; then
9106   ac_cv_prog_LEX="$LEX" # Let the user override the test.
9107 else
9108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9109 for as_dir in $PATH
9110 do
9111   IFS=$as_save_IFS
9112   test -z "$as_dir" && as_dir=.
9113   for ac_exec_ext in '' $ac_executable_extensions; do
9114   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9115     ac_cv_prog_LEX="$ac_prog"
9116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9117     break 2
9118   fi
9119 done
9120 done
9121
9122 fi
9123 fi
9124 LEX=$ac_cv_prog_LEX
9125 if test -n "$LEX"; then
9126   echo "$as_me:$LINENO: result: $LEX" >&5
9127 echo "${ECHO_T}$LEX" >&6
9128 else
9129   echo "$as_me:$LINENO: result: no" >&5
9130 echo "${ECHO_T}no" >&6
9131 fi
9132
9133   test -n "$LEX" && break
9134 done
9135 test -n "$LEX" || LEX=":"
9136
9137 if test -z "$LEXLIB"
9138 then
9139   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
9140 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
9141 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
9142   echo $ECHO_N "(cached) $ECHO_C" >&6
9143 else
9144   ac_check_lib_save_LIBS=$LIBS
9145 LIBS="-lfl  $LIBS"
9146 cat >conftest.$ac_ext <<_ACEOF
9147 /* confdefs.h.  */
9148 _ACEOF
9149 cat confdefs.h >>conftest.$ac_ext
9150 cat >>conftest.$ac_ext <<_ACEOF
9151 /* end confdefs.h.  */
9152
9153 /* Override any gcc2 internal prototype to avoid an error.  */
9154 #ifdef __cplusplus
9155 extern "C"
9156 #endif
9157 /* We use char because int might match the return type of a gcc2
9158    builtin and then its argument prototype would still apply.  */
9159 char yywrap ();
9160 int
9161 main ()
9162 {
9163 yywrap ();
9164   ;
9165   return 0;
9166 }
9167 _ACEOF
9168 rm -f conftest.$ac_objext conftest$ac_exeext
9169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9170   (eval $ac_link) 2>conftest.er1
9171   ac_status=$?
9172   grep -v '^ *+' conftest.er1 >conftest.err
9173   rm -f conftest.er1
9174   cat conftest.err >&5
9175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176   (exit $ac_status); } &&
9177          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9179   (eval $ac_try) 2>&5
9180   ac_status=$?
9181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182   (exit $ac_status); }; } &&
9183          { ac_try='test -s conftest$ac_exeext'
9184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9185   (eval $ac_try) 2>&5
9186   ac_status=$?
9187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188   (exit $ac_status); }; }; then
9189   ac_cv_lib_fl_yywrap=yes
9190 else
9191   echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9193
9194 ac_cv_lib_fl_yywrap=no
9195 fi
9196 rm -f conftest.err conftest.$ac_objext \
9197       conftest$ac_exeext conftest.$ac_ext
9198 LIBS=$ac_check_lib_save_LIBS
9199 fi
9200 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
9201 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
9202 if test $ac_cv_lib_fl_yywrap = yes; then
9203   LEXLIB="-lfl"
9204 else
9205   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
9206 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
9207 if test "${ac_cv_lib_l_yywrap+set}" = set; then
9208   echo $ECHO_N "(cached) $ECHO_C" >&6
9209 else
9210   ac_check_lib_save_LIBS=$LIBS
9211 LIBS="-ll  $LIBS"
9212 cat >conftest.$ac_ext <<_ACEOF
9213 /* confdefs.h.  */
9214 _ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h.  */
9218
9219 /* Override any gcc2 internal prototype to avoid an error.  */
9220 #ifdef __cplusplus
9221 extern "C"
9222 #endif
9223 /* We use char because int might match the return type of a gcc2
9224    builtin and then its argument prototype would still apply.  */
9225 char yywrap ();
9226 int
9227 main ()
9228 {
9229 yywrap ();
9230   ;
9231   return 0;
9232 }
9233 _ACEOF
9234 rm -f conftest.$ac_objext conftest$ac_exeext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236   (eval $ac_link) 2>conftest.er1
9237   ac_status=$?
9238   grep -v '^ *+' conftest.er1 >conftest.err
9239   rm -f conftest.er1
9240   cat conftest.err >&5
9241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242   (exit $ac_status); } &&
9243          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245   (eval $ac_try) 2>&5
9246   ac_status=$?
9247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248   (exit $ac_status); }; } &&
9249          { ac_try='test -s conftest$ac_exeext'
9250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251   (eval $ac_try) 2>&5
9252   ac_status=$?
9253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254   (exit $ac_status); }; }; then
9255   ac_cv_lib_l_yywrap=yes
9256 else
9257   echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.$ac_ext >&5
9259
9260 ac_cv_lib_l_yywrap=no
9261 fi
9262 rm -f conftest.err conftest.$ac_objext \
9263       conftest$ac_exeext conftest.$ac_ext
9264 LIBS=$ac_check_lib_save_LIBS
9265 fi
9266 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
9267 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
9268 if test $ac_cv_lib_l_yywrap = yes; then
9269   LEXLIB="-ll"
9270 fi
9271
9272 fi
9273
9274 fi
9275
9276 if test "x$LEX" != "x:"; then
9277   echo "$as_me:$LINENO: checking lex output file root" >&5
9278 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
9279 if test "${ac_cv_prog_lex_root+set}" = set; then
9280   echo $ECHO_N "(cached) $ECHO_C" >&6
9281 else
9282   # The minimal lex program is just a single line: %%.  But some broken lexes
9283 # (Solaris, I think it was) want two %% lines, so accommodate them.
9284 cat >conftest.l <<_ACEOF
9285 %%
9286 %%
9287 _ACEOF
9288 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
9289   (eval $LEX conftest.l) 2>&5
9290   ac_status=$?
9291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292   (exit $ac_status); }
9293 if test -f lex.yy.c; then
9294   ac_cv_prog_lex_root=lex.yy
9295 elif test -f lexyy.c; then
9296   ac_cv_prog_lex_root=lexyy
9297 else
9298   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
9299 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
9300    { (exit 1); exit 1; }; }
9301 fi
9302 fi
9303 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
9304 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
9305 rm -f conftest.l
9306 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9307
9308 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
9309 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
9310 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
9311   echo $ECHO_N "(cached) $ECHO_C" >&6
9312 else
9313   # POSIX says lex can declare yytext either as a pointer or an array; the
9314 # default is implementation-dependent. Figure out which it is, since
9315 # not all implementations provide the %pointer and %array declarations.
9316 ac_cv_prog_lex_yytext_pointer=no
9317 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
9318 ac_save_LIBS=$LIBS
9319 LIBS="$LIBS $LEXLIB"
9320 cat >conftest.$ac_ext <<_ACEOF
9321 `cat $LEX_OUTPUT_ROOT.c`
9322 _ACEOF
9323 rm -f conftest.$ac_objext conftest$ac_exeext
9324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9325   (eval $ac_link) 2>conftest.er1
9326   ac_status=$?
9327   grep -v '^ *+' conftest.er1 >conftest.err
9328   rm -f conftest.er1
9329   cat conftest.err >&5
9330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331   (exit $ac_status); } &&
9332          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334   (eval $ac_try) 2>&5
9335   ac_status=$?
9336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337   (exit $ac_status); }; } &&
9338          { ac_try='test -s conftest$ac_exeext'
9339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9340   (eval $ac_try) 2>&5
9341   ac_status=$?
9342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343   (exit $ac_status); }; }; then
9344   ac_cv_prog_lex_yytext_pointer=yes
9345 else
9346   echo "$as_me: failed program was:" >&5
9347 sed 's/^/| /' conftest.$ac_ext >&5
9348
9349 fi
9350 rm -f conftest.err conftest.$ac_objext \
9351       conftest$ac_exeext conftest.$ac_ext
9352 LIBS=$ac_save_LIBS
9353 rm -f "${LEX_OUTPUT_ROOT}.c"
9354
9355 fi
9356 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9357 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
9358 if test $ac_cv_prog_lex_yytext_pointer = yes; then
9359
9360 cat >>confdefs.h <<\_ACEOF
9361 #define YYTEXT_POINTER 1
9362 _ACEOF
9363
9364 fi
9365
9366 fi
9367 if test "$LEX" = ":" ; then
9368   { { echo "$as_me:$LINENO: error: Cannot find flex." >&5
9369 echo "$as_me: error: Cannot find flex." >&2;}
9370    { (exit 1); exit 1; }; }
9371 elif echo "" | $LEX -V -v --version > /dev/null 2>&1 ; then
9372   :
9373 else
9374   { { echo "$as_me:$LINENO: error: Cannot use $LEX as flex." >&5
9375 echo "$as_me: error: Cannot use $LEX as flex." >&2;}
9376    { (exit 1); exit 1; }; }
9377 fi
9378
9379 if test -z "$LEXLIB" ; then
9380   { { echo "$as_me:$LINENO: error: Cannot find a library with yywrap() in, but flex was found.
9381   It's possible the compiler you're using ($CC) is incompatible with the
9382   installed library.
9383 See \`config.log' for more details." >&5
9384 echo "$as_me: error: Cannot find a library with yywrap() in, but flex was found.
9385   It's possible the compiler you're using ($CC) is incompatible with the
9386   installed library.
9387 See \`config.log' for more details." >&2;}
9388    { (exit 1); exit 1; }; }
9389 fi
9390
9391 LIBS="$LEXLIB $LIBS"
9392
9393 for ac_prog in 'bison -y' byacc
9394 do
9395   # Extract the first word of "$ac_prog", so it can be a program name with args.
9396 set dummy $ac_prog; ac_word=$2
9397 echo "$as_me:$LINENO: checking for $ac_word" >&5
9398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9399 if test "${ac_cv_prog_YACC+set}" = set; then
9400   echo $ECHO_N "(cached) $ECHO_C" >&6
9401 else
9402   if test -n "$YACC"; then
9403   ac_cv_prog_YACC="$YACC" # Let the user override the test.
9404 else
9405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9406 for as_dir in $PATH
9407 do
9408   IFS=$as_save_IFS
9409   test -z "$as_dir" && as_dir=.
9410   for ac_exec_ext in '' $ac_executable_extensions; do
9411   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9412     ac_cv_prog_YACC="$ac_prog"
9413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9414     break 2
9415   fi
9416 done
9417 done
9418
9419 fi
9420 fi
9421 YACC=$ac_cv_prog_YACC
9422 if test -n "$YACC"; then
9423   echo "$as_me:$LINENO: result: $YACC" >&5
9424 echo "${ECHO_T}$YACC" >&6
9425 else
9426   echo "$as_me:$LINENO: result: no" >&5
9427 echo "${ECHO_T}no" >&6
9428 fi
9429
9430   test -n "$YACC" && break
9431 done
9432 test -n "$YACC" || YACC="yacc"
9433
9434 if test "$YACC" = ":" ; then
9435   { { echo "$as_me:$LINENO: error: Cannot find yacc." >&5
9436 echo "$as_me: error: Cannot find yacc." >&2;}
9437    { (exit 1); exit 1; }; }
9438 elif echo "" | $YACC -V -v --version > /dev/null 2>&1 ; then
9439   :
9440 else
9441   { echo "$as_me:$LINENO: WARNING: $YACC may not work as yacc." >&5
9442 echo "$as_me: WARNING: $YACC may not work as yacc." >&2;}
9443 fi
9444
9445 echo "$as_me:$LINENO: checking for posix non-blocking" >&5
9446 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6
9447 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
9448   echo $ECHO_N "(cached) $ECHO_C" >&6
9449 else
9450   if test "$cross_compiling" = yes; then
9451   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9452 See \`config.log' for more details." >&5
9453 echo "$as_me: error: cannot run test program while cross compiling
9454 See \`config.log' for more details." >&2;}
9455    { (exit 1); exit 1; }; }
9456 else
9457   cat >conftest.$ac_ext <<_ACEOF
9458 /* confdefs.h.  */
9459 _ACEOF
9460 cat confdefs.h >>conftest.$ac_ext
9461 cat >>conftest.$ac_ext <<_ACEOF
9462 /* end confdefs.h.  */
9463 #include <sys/types.h>
9464 #include <sys/socket.h>
9465 #include <fcntl.h>
9466 #include <sys/ioctl.h>
9467 #include <sys/file.h>
9468 #include <signal.h>
9469 $ac_cv_type_signal alarmed() { exit(1); }
9470 int main(void)
9471 {
9472   char b[12];
9473   struct sockaddr x;
9474   size_t l = sizeof(x);
9475   int f = socket(AF_INET, SOCK_DGRAM, 0);
9476   if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
9477   {
9478     signal(SIGALRM, alarmed);
9479     alarm(2);
9480     recvfrom(f, b, 12, 0, &x, &l);
9481     alarm(0);
9482     exit(0);
9483   }
9484   exit(1);
9485 }
9486 _ACEOF
9487 rm -f conftest$ac_exeext
9488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9489   (eval $ac_link) 2>&5
9490   ac_status=$?
9491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494   (eval $ac_try) 2>&5
9495   ac_status=$?
9496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497   (exit $ac_status); }; }; then
9498   unet_cv_sys_nonblocking_posix=yes
9499 else
9500   echo "$as_me: program exited with status $ac_status" >&5
9501 echo "$as_me: failed program was:" >&5
9502 sed 's/^/| /' conftest.$ac_ext >&5
9503
9504 ( exit $ac_status )
9505 unet_cv_sys_nonblocking_posix=no
9506 fi
9507 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9508 fi
9509 fi
9510 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
9511 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6
9512 if test $unet_cv_sys_nonblocking_posix = yes; then
9513
9514 cat >>confdefs.h <<\_ACEOF
9515 #define NBLOCK_POSIX
9516 _ACEOF
9517
9518 else
9519 echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
9520 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6
9521 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
9522   echo $ECHO_N "(cached) $ECHO_C" >&6
9523 else
9524   if test "$cross_compiling" = yes; then
9525   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9526 See \`config.log' for more details." >&5
9527 echo "$as_me: error: cannot run test program while cross compiling
9528 See \`config.log' for more details." >&2;}
9529    { (exit 1); exit 1; }; }
9530 else
9531   cat >conftest.$ac_ext <<_ACEOF
9532 /* confdefs.h.  */
9533 _ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h.  */
9537 #include <sys/types.h>
9538 #include <sys/socket.h>
9539 #include <fcntl.h>
9540 #include <sys/ioctl.h>
9541 #include <sys/file.h>
9542 #include <signal.h>
9543 $ac_cv_type_signal alarmed() { exit(1); }
9544 int main(void)
9545 {
9546   char b[12];
9547   struct sockaddr x;
9548   size_t l = sizeof(x);
9549   int f = socket(AF_INET, SOCK_DGRAM, 0);
9550   if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
9551   {
9552     signal(SIGALRM, alarmed);
9553     alarm(2);
9554     recvfrom(f, b, 12, 0, &x, &l);
9555     alarm(0);
9556     exit(0);
9557   }
9558   exit(1);
9559 }
9560 _ACEOF
9561 rm -f conftest$ac_exeext
9562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9563   (eval $ac_link) 2>&5
9564   ac_status=$?
9565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568   (eval $ac_try) 2>&5
9569   ac_status=$?
9570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571   (exit $ac_status); }; }; then
9572   unet_cv_sys_nonblocking_bsd=yes
9573 else
9574   echo "$as_me: program exited with status $ac_status" >&5
9575 echo "$as_me: failed program was:" >&5
9576 sed 's/^/| /' conftest.$ac_ext >&5
9577
9578 ( exit $ac_status )
9579 unet_cv_sys_nonblocking_bsd=no
9580 fi
9581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9582 fi
9583 fi
9584 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
9585 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6
9586 if test $unet_cv_sys_nonblocking_bsd = yes; then
9587
9588 cat >>confdefs.h <<\_ACEOF
9589 #define NBLOCK_BSD
9590 _ACEOF
9591
9592 else
9593
9594 cat >>confdefs.h <<\_ACEOF
9595 #define NBLOCK_SYSV
9596 _ACEOF
9597
9598 fi
9599 fi
9600 echo "$as_me:$LINENO: checking for posix signals" >&5
9601 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6
9602 if test "${unet_cv_sys_signal_posix+set}" = set; then
9603   echo $ECHO_N "(cached) $ECHO_C" >&6
9604 else
9605   cat >conftest.$ac_ext <<_ACEOF
9606 /* confdefs.h.  */
9607 _ACEOF
9608 cat confdefs.h >>conftest.$ac_ext
9609 cat >>conftest.$ac_ext <<_ACEOF
9610 /* end confdefs.h.  */
9611 #include <signal.h>
9612 int
9613 main ()
9614 {
9615 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
9616   ;
9617   return 0;
9618 }
9619 _ACEOF
9620 rm -f conftest.$ac_objext
9621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9622   (eval $ac_compile) 2>conftest.er1
9623   ac_status=$?
9624   grep -v '^ *+' conftest.er1 >conftest.err
9625   rm -f conftest.er1
9626   cat conftest.err >&5
9627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628   (exit $ac_status); } &&
9629          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631   (eval $ac_try) 2>&5
9632   ac_status=$?
9633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634   (exit $ac_status); }; } &&
9635          { ac_try='test -s conftest.$ac_objext'
9636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637   (eval $ac_try) 2>&5
9638   ac_status=$?
9639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640   (exit $ac_status); }; }; then
9641   unet_cv_sys_signal_posix=yes
9642 else
9643   echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9645
9646 unet_cv_sys_signal_posix=no
9647 fi
9648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9649 fi
9650 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
9651 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6
9652 if test $unet_cv_sys_signal_posix = yes; then
9653
9654 cat >>confdefs.h <<\_ACEOF
9655 #define POSIX_SIGNALS
9656 _ACEOF
9657
9658 else
9659 echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
9660 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6
9661 if test "${unet_cv_sys_signal_bsd+set}" = set; then
9662   echo $ECHO_N "(cached) $ECHO_C" >&6
9663 else
9664   if test "$cross_compiling" = yes; then
9665   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9666 See \`config.log' for more details." >&5
9667 echo "$as_me: error: cannot run test program while cross compiling
9668 See \`config.log' for more details." >&2;}
9669    { (exit 1); exit 1; }; }
9670 else
9671   cat >conftest.$ac_ext <<_ACEOF
9672 /* confdefs.h.  */
9673 _ACEOF
9674 cat confdefs.h >>conftest.$ac_ext
9675 cat >>conftest.$ac_ext <<_ACEOF
9676 /* end confdefs.h.  */
9677 #include <signal.h>
9678 int calls = 0;
9679 $ac_cv_type_signal handler()
9680 {
9681   if (calls) return;
9682   calls++;
9683   kill(getpid(), SIGTERM);
9684   sleep(1);
9685 }
9686 int main(void)
9687 {
9688   signal(SIGTERM, handler);
9689   kill(getpid(), SIGTERM);
9690   exit (0);
9691 }
9692 _ACEOF
9693 rm -f conftest$ac_exeext
9694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9695   (eval $ac_link) 2>&5
9696   ac_status=$?
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700   (eval $ac_try) 2>&5
9701   ac_status=$?
9702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703   (exit $ac_status); }; }; then
9704   unet_cv_sys_signal_bsd=yes
9705 else
9706   echo "$as_me: program exited with status $ac_status" >&5
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9709
9710 ( exit $ac_status )
9711 unet_cv_sys_signal_bsd=no
9712 fi
9713 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9714 fi
9715 fi
9716 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
9717 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6
9718 if test $unet_cv_sys_signal_bsd = yes; then
9719
9720 cat >>confdefs.h <<\_ACEOF
9721 #define BSD_RELIABLE_SIGNALS
9722 _ACEOF
9723
9724 else
9725
9726 cat >>confdefs.h <<\_ACEOF
9727 #define SYSV_UNRELIABLE_SIGNALS
9728 _ACEOF
9729
9730 fi
9731 fi
9732
9733 echo "$as_me:$LINENO: checking for OS-dependent information" >&5
9734 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6
9735 case "$host" in
9736     *-linux*)
9737         echo "$as_me:$LINENO: result: Linux ($host) found." >&5
9738 echo "${ECHO_T}Linux ($host) found." >&6
9739         unet_poll_syscall=yes
9740         ;;
9741
9742     *-solaris*)
9743         echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9744 echo "${ECHO_T}Solaris ($host) found." >&6
9745         if test x"$ac_cv_header_poll_h" = xyes; then
9746             unet_poll_syscall=yes
9747         else
9748             unet_poll_syscall=no
9749         fi
9750         ;;
9751
9752     *-sunos*)
9753         echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9754 echo "${ECHO_T}Solaris ($host) found." >&6
9755         unet_poll_syscall=no
9756         ;;
9757
9758     *-openbsd*)
9759         echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
9760 echo "${ECHO_T}OpenBSD ($host) found." >&6
9761         if test x"$ac_cv_header_poll_h" = xyes; then
9762             unet_poll_syscall=yes
9763         else
9764             unet_poll_syscall=no
9765         fi
9766         ;;
9767
9768     *-*bsd*)
9769         echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
9770 echo "${ECHO_T}Generic BSD ($host) found." >&6
9771         if test x"$ac_cv_header_poll_h" = xyes; then
9772             unet_poll_syscall=yes
9773         else
9774             unet_poll_syscall=no
9775         fi
9776         ;;
9777
9778     *-darwin*)
9779         echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
9780 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6
9781         unet_poll_syscall=no
9782         ;;
9783
9784     *)
9785         echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
9786 echo "${ECHO_T}Unknown system type $host found." >&6
9787         { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
9788 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
9789         unet_poll_syscall=no
9790         ;;
9791 esac
9792
9793 echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
9794 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6
9795 # Check whether --enable-poll or --disable-poll was given.
9796 if test "${enable_poll+set}" = set; then
9797   enableval="$enable_poll"
9798   unet_cv_enable_poll=$enable_poll
9799 else
9800   if test "${unet_cv_enable_poll+set}" = set; then
9801   echo $ECHO_N "(cached) $ECHO_C" >&6
9802 else
9803   unet_cv_enable_poll=$unet_poll_syscall
9804 fi
9805
9806 fi;
9807
9808 # Force poll to be disabled if there is no poll.h
9809 if test x"$ac_cv_header_poll_h" != xyes; then
9810     unet_cv_enable_poll=no
9811 fi
9812
9813 echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
9814 echo "${ECHO_T}$unet_cv_enable_poll" >&6
9815
9816 if test x"$unet_cv_enable_poll" = xyes; then
9817
9818 cat >>confdefs.h <<\_ACEOF
9819 #define USE_POLL 1
9820 _ACEOF
9821
9822     ENGINE_C=engine_poll.c
9823 else
9824     ENGINE_C=engine_select.c
9825 fi
9826
9827
9828 echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
9829 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6
9830 # Check whether --enable-debug or --disable-debug was given.
9831 if test "${enable_debug+set}" = set; then
9832   enableval="$enable_debug"
9833   unet_cv_enable_debug=$enable_debug
9834 else
9835   if test "${unet_cv_enable_debug+set}" = set; then
9836   echo $ECHO_N "(cached) $ECHO_C" >&6
9837 else
9838   unet_cv_enable_debug=no
9839 fi
9840
9841 fi;
9842 echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
9843 echo "${ECHO_T}$unet_cv_enable_debug" >&6
9844
9845 if test x"$unet_cv_enable_debug" = xyes; then
9846
9847 cat >>confdefs.h <<\_ACEOF
9848 #define DEBUGMODE 1
9849 _ACEOF
9850
9851 fi
9852
9853 echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
9854 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6
9855
9856 # Check whether --with-leak-detect or --without-leak-detect was given.
9857 if test "${with_leak_detect+set}" = set; then
9858   withval="$with_leak_detect"
9859   unet_cv_with_leak_detect=$with_leak_detect
9860 else
9861   if test "${unet_cv_with_leak_detect+set}" = set; then
9862   echo $ECHO_N "(cached) $ECHO_C" >&6
9863 else
9864   unet_cv_with_leak_detect=no
9865 fi
9866
9867 fi;
9868 echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
9869 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6
9870
9871 if test x"$unet_cv_with_leak_detect" != xno; then
9872     LIBS="-lgc $LIBS"
9873     CFLAGS="-DMDEBUG $CFLAGS"
9874     if test x"$unet_cv_with_leak_detect" != xyes; then
9875        LIBS="-L$unet_cv_with_leak_detect $LIBS"
9876     fi
9877 fi
9878
9879
9880 # Check whether --with-ipv6 or --without-ipv6 was given.
9881 if test "${with_ipv6+set}" = set; then
9882   withval="$with_ipv6"
9883   ac_cv_use_ipv6=$withval
9884 else
9885   ac_cv_use_ipv6=$unet_have_sockaddr_in6
9886 fi;
9887 echo "$as_me:$LINENO: checking whether to use IPv6" >&5
9888 echo $ECHO_N "checking whether to use IPv6... $ECHO_C" >&6
9889 if test "${ac_cv_use_ipv6+set}" = set; then
9890   echo $ECHO_N "(cached) $ECHO_C" >&6
9891 else
9892   ac_cv_use_ipv6=no
9893 fi
9894 echo "$as_me:$LINENO: result: $ac_cv_use_ipv6" >&5
9895 echo "${ECHO_T}$ac_cv_use_ipv6" >&6
9896 if test x"$ac_cv_use_ipv6" != "xno" ; then
9897
9898 cat >>confdefs.h <<\_ACEOF
9899 #define IPV6 1
9900 _ACEOF
9901
9902 fi
9903
9904 echo "$as_me:$LINENO: checking whether to enable asserts" >&5
9905 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6
9906 # Check whether --enable-asserts or --disable-asserts was given.
9907 if test "${enable_asserts+set}" = set; then
9908   enableval="$enable_asserts"
9909   unet_cv_enable_asserts=$enable_asserts
9910 else
9911   if test "${unet_cv_enable_asserts+set}" = set; then
9912   echo $ECHO_N "(cached) $ECHO_C" >&6
9913 else
9914   unet_cv_enable_asserts=yes
9915 fi
9916
9917 fi;
9918 echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
9919 echo "${ECHO_T}$unet_cv_enable_asserts" >&6
9920
9921 if test x"$unet_cv_enable_asserts" = xno; then
9922
9923 cat >>confdefs.h <<\_ACEOF
9924 #define NDEBUG 1
9925 _ACEOF
9926
9927 fi
9928
9929 echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
9930 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
9931 # Check whether --enable-profile or --disable-profile was given.
9932 if test "${enable_profile+set}" = set; then
9933   enableval="$enable_profile"
9934   unet_cv_enable_profile=$enable_profile
9935 else
9936   if test "${unet_cv_enable_profile+set}" = set; then
9937   echo $ECHO_N "(cached) $ECHO_C" >&6
9938 else
9939   unet_cv_enable_profile=no
9940 fi
9941
9942 fi;
9943 echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
9944 echo "${ECHO_T}$unet_cv_enable_profile" >&6
9945
9946 if test x"$unet_cv_enable_profile" = xyes; then
9947     CFLAGS="-pg $CFLAGS"
9948     LDFLAGS="-pg $LDFLAGS"
9949 fi
9950
9951 echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
9952 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6
9953 # Check whether --enable-pedantic or --disable-pedantic was given.
9954 if test "${enable_pedantic+set}" = set; then
9955   enableval="$enable_pedantic"
9956   unet_cv_enable_pedantic=$enable_pedantic
9957 else
9958   if test "${unet_cv_enable_pedantic+set}" = set; then
9959   echo $ECHO_N "(cached) $ECHO_C" >&6
9960 else
9961   unet_cv_enable_pedantic=no
9962 fi
9963
9964 fi;
9965 echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
9966 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6
9967
9968 if test x"$unet_cv_enable_pedantic" = xyes; then
9969     CFLAGS="-pedantic $CFLAGS"
9970 fi
9971
9972 echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
9973 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6
9974 # Check whether --enable-warnings or --disable-warnings was given.
9975 if test "${enable_warnings+set}" = set; then
9976   enableval="$enable_warnings"
9977   unet_cv_enable_warnings=$enable_warnings
9978 else
9979   if test "${unet_cv_enable_warnings+set}" = set; then
9980   echo $ECHO_N "(cached) $ECHO_C" >&6
9981 else
9982   unet_cv_enable_warnings=no
9983 fi
9984
9985 fi;
9986 echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
9987 echo "${ECHO_T}$unet_cv_enable_warnings" >&6
9988
9989 if test x"$unet_cv_enable_warnings" = xyes; then
9990     CFLAGS="-Wall $CFLAGS"
9991 fi
9992
9993 echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
9994 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6
9995 # Check whether --enable-inlines or --disable-inlines was given.
9996 if test "${enable_inlines+set}" = set; then
9997   enableval="$enable_inlines"
9998   unet_cv_enable_inlines=$enable_inlines
9999 else
10000   if test "${unet_cv_enable_inlines+set}" = set; then
10001   echo $ECHO_N "(cached) $ECHO_C" >&6
10002 else
10003   unet_cv_enable_inlines=yes
10004 fi
10005
10006 fi;
10007 echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
10008 echo "${ECHO_T}$unet_cv_enable_inlines" >&6
10009
10010 if test x"$unet_cv_enable_inlines" = xyes; then
10011
10012 cat >>confdefs.h <<\_ACEOF
10013 #define FORCEINLINE 1
10014 _ACEOF
10015
10016 fi
10017
10018 echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
10019 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6
10020 # Check whether --enable-devpoll or --disable-devpoll was given.
10021 if test "${enable_devpoll+set}" = set; then
10022   enableval="$enable_devpoll"
10023   unet_cv_enable_devpoll=$enable_devpoll
10024 else
10025   if test "${unet_cv_enable_devpoll+set}" = set; then
10026   echo $ECHO_N "(cached) $ECHO_C" >&6
10027 else
10028   unet_cv_enable_devpoll=yes
10029 fi
10030
10031 fi;
10032
10033 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
10034     unet_cv_enable_devpoll=no
10035 fi
10036
10037 echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
10038 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
10039
10040 if test x"$unet_cv_enable_devpoll" != xno; then
10041
10042 cat >>confdefs.h <<\_ACEOF
10043 #define USE_DEVPOLL 1
10044 _ACEOF
10045
10046     ENGINE_C="engine_devpoll.c $ENGINE_C"
10047 fi
10048
10049 echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
10050 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6
10051 # Check whether --enable-kqueue or --disable-kqueue was given.
10052 if test "${enable_kqueue+set}" = set; then
10053   enableval="$enable_kqueue"
10054   unet_cv_enable_kqueue=$enable_kqueue
10055 else
10056   if test "${unet_cv_enable_kqueue+set}" = set; then
10057   echo $ECHO_N "(cached) $ECHO_C" >&6
10058 else
10059   unet_cv_enable_kqueue=yes
10060 fi
10061
10062 fi;
10063
10064 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
10065     unet_cv_enable_kqueue=no
10066 fi
10067
10068 echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
10069 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
10070
10071 if test x"$unet_cv_enable_kqueue" != xno; then
10072
10073 cat >>confdefs.h <<\_ACEOF
10074 #define USE_KQUEUE 1
10075 _ACEOF
10076
10077     ENGINE_C="engine_kqueue.c $ENGINE_C"
10078 fi
10079
10080 echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
10081 echo $ECHO_N "checking whether to enable the epoll event engine... $ECHO_C" >&6
10082 # Check whether --enable-epoll or --disable-epoll was given.
10083 if test "${enable_epoll+set}" = set; then
10084   enableval="$enable_epoll"
10085   unet_cv_enable_epoll=$enable_epoll
10086 else
10087   if test "${unet_cv_enable_epoll+set}" = set; then
10088   echo $ECHO_N "(cached) $ECHO_C" >&6
10089 else
10090   unet_cv_enable_epoll=yes
10091 fi
10092
10093 fi;
10094
10095 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
10096     unet_cv_enable_epoll=no
10097 fi
10098
10099 echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
10100 echo "${ECHO_T}$unet_cv_enable_epoll" >&6
10101
10102 if test x"$unet_cv_enable_epoll" != xno; then
10103     echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
10104 echo $ECHO_N "checking whether epoll functions are properly defined... $ECHO_C" >&6
10105     cat >conftest.$ac_ext <<_ACEOF
10106 /* confdefs.h.  */
10107 _ACEOF
10108 cat confdefs.h >>conftest.$ac_ext
10109 cat >>conftest.$ac_ext <<_ACEOF
10110 /* end confdefs.h.  */
10111 #include <sys/epoll.h>
10112 int
10113 main ()
10114 {
10115 epoll_create(10);
10116   ;
10117   return 0;
10118 }
10119 _ACEOF
10120 rm -f conftest.$ac_objext conftest$ac_exeext
10121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10122   (eval $ac_link) 2>conftest.er1
10123   ac_status=$?
10124   grep -v '^ *+' conftest.er1 >conftest.err
10125   rm -f conftest.er1
10126   cat conftest.err >&5
10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128   (exit $ac_status); } &&
10129          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131   (eval $ac_try) 2>&5
10132   ac_status=$?
10133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134   (exit $ac_status); }; } &&
10135          { ac_try='test -s conftest$ac_exeext'
10136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137   (eval $ac_try) 2>&5
10138   ac_status=$?
10139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140   (exit $ac_status); }; }; then
10141   echo "$as_me:$LINENO: result: yes" >&5
10142 echo "${ECHO_T}yes" >&6
10143 else
10144   echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10146
10147 echo "$as_me:$LINENO: result: no" >&5
10148 echo "${ECHO_T}no" >&6
10149
10150 cat >>confdefs.h <<\_ACEOF
10151 #define EPOLL_NEED_BODY 1
10152 _ACEOF
10153
10154 fi
10155 rm -f conftest.err conftest.$ac_objext \
10156       conftest$ac_exeext conftest.$ac_ext
10157
10158 cat >>confdefs.h <<\_ACEOF
10159 #define USE_EPOLL 1
10160 _ACEOF
10161
10162     ENGINE_C="engine_epoll.c $ENGINE_C"
10163 fi
10164
10165 echo "$as_me:$LINENO: checking for va_copy" >&5
10166 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10167 if test "${unet_cv_c_va_copy+set}" = set; then
10168   echo $ECHO_N "(cached) $ECHO_C" >&6
10169 else
10170   cat >conftest.$ac_ext <<_ACEOF
10171 /* confdefs.h.  */
10172 _ACEOF
10173 cat confdefs.h >>conftest.$ac_ext
10174 cat >>conftest.$ac_ext <<_ACEOF
10175 /* end confdefs.h.  */
10176 #include <stdarg.h>
10177 int
10178 main ()
10179 {
10180 va_list ap1, ap2; va_copy(ap1, ap2);
10181   ;
10182   return 0;
10183 }
10184 _ACEOF
10185 rm -f conftest.$ac_objext conftest$ac_exeext
10186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10187   (eval $ac_link) 2>conftest.er1
10188   ac_status=$?
10189   grep -v '^ *+' conftest.er1 >conftest.err
10190   rm -f conftest.er1
10191   cat conftest.err >&5
10192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193   (exit $ac_status); } &&
10194          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196   (eval $ac_try) 2>&5
10197   ac_status=$?
10198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199   (exit $ac_status); }; } &&
10200          { ac_try='test -s conftest$ac_exeext'
10201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202   (eval $ac_try) 2>&5
10203   ac_status=$?
10204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205   (exit $ac_status); }; }; then
10206   unet_cv_c_va_copy="yes"
10207 else
10208   echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.$ac_ext >&5
10210
10211 unet_cv_c_va_copy="no"
10212
10213 fi
10214 rm -f conftest.err conftest.$ac_objext \
10215       conftest$ac_exeext conftest.$ac_ext
10216 fi
10217 echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
10218 echo "${ECHO_T}$unet_cv_c_va_copy" >&6
10219 if test "$unet_cv_c_va_copy" = "yes" ; then
10220
10221 cat >>confdefs.h <<\_ACEOF
10222 #define HAVE_VA_COPY 1
10223 _ACEOF
10224
10225 fi
10226
10227 echo "$as_me:$LINENO: checking for __va_copy" >&5
10228 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10229 if test "${unet_cv_c___va_copy+set}" = set; then
10230   echo $ECHO_N "(cached) $ECHO_C" >&6
10231 else
10232   cat >conftest.$ac_ext <<_ACEOF
10233 /* confdefs.h.  */
10234 _ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h.  */
10238 #include <stdarg.h>
10239 int
10240 main ()
10241 {
10242 va_list ap1, ap2; __va_copy(ap1, ap2);
10243   ;
10244   return 0;
10245 }
10246 _ACEOF
10247 rm -f conftest.$ac_objext conftest$ac_exeext
10248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10249   (eval $ac_link) 2>conftest.er1
10250   ac_status=$?
10251   grep -v '^ *+' conftest.er1 >conftest.err
10252   rm -f conftest.er1
10253   cat conftest.err >&5
10254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255   (exit $ac_status); } &&
10256          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258   (eval $ac_try) 2>&5
10259   ac_status=$?
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); }; } &&
10262          { ac_try='test -s conftest$ac_exeext'
10263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10264   (eval $ac_try) 2>&5
10265   ac_status=$?
10266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267   (exit $ac_status); }; }; then
10268   unet_cv_c___va_copy="yes"
10269 else
10270   echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.$ac_ext >&5
10272
10273 unet_cv_c___va_copy="no"
10274
10275 fi
10276 rm -f conftest.err conftest.$ac_objext \
10277       conftest$ac_exeext conftest.$ac_ext
10278 fi
10279 echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
10280 echo "${ECHO_T}$unet_cv_c___va_copy" >&6
10281 if test "$unet_cv_c___va_copy" = "yes" ; then
10282
10283 cat >>confdefs.h <<\_ACEOF
10284 #define HAVE___VA_COPY 1
10285 _ACEOF
10286
10287 fi
10288
10289 echo "$as_me:$LINENO: checking what name to give the symlink" >&5
10290 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6
10291
10292 # Check whether --with-symlink or --without-symlink was given.
10293 if test "${with_symlink+set}" = set; then
10294   withval="$with_symlink"
10295   unet_cv_with_symlink=$with_symlink
10296 else
10297   if test "${unet_cv_with_symlink+set}" = set; then
10298   echo $ECHO_N "(cached) $ECHO_C" >&6
10299 else
10300   unet_cv_with_symlink="ircd"
10301 fi
10302
10303 fi;
10304
10305 if test x"$unet_cv_with_symlink" = xyes; then
10306     unet_cv_with_symlink="ircd"
10307 fi
10308
10309 echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
10310 echo "${ECHO_T}$unet_cv_with_symlink" >&6
10311
10312 if test x"$unet_cv_with_symlink" = xno; then
10313     INSTALL_RULE=install-no-symlink
10314     SYMLINK=
10315 else
10316     INSTALL_RULE=install-with-symlink
10317     SYMLINK=$unet_cv_with_symlink
10318 fi
10319
10320
10321
10322 echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
10323 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6
10324
10325 # Check whether --with-mode or --without-mode was given.
10326 if test "${with_mode+set}" = set; then
10327   withval="$with_mode"
10328   unet_cv_with_mode=$with_mode
10329 else
10330   if test "${unet_cv_with_mode+set}" = set; then
10331   echo $ECHO_N "(cached) $ECHO_C" >&6
10332 else
10333   unet_cv_with_mode=711
10334 fi
10335
10336 fi;
10337
10338 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
10339     unet_cv_with_mode=711
10340 fi
10341
10342 echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
10343 echo "${ECHO_T}$unet_cv_with_mode" >&6
10344
10345 IRCDMODE=$unet_cv_with_mode
10346
10347
10348 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10349 echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
10350 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6
10351
10352 # Check whether --with-owner or --without-owner was given.
10353 if test "${with_owner+set}" = set; then
10354   withval="$with_owner"
10355   unet_cv_with_owner=$with_owner
10356 else
10357   if test "${unet_cv_with_owner+set}" = set; then
10358   echo $ECHO_N "(cached) $ECHO_C" >&6
10359 else
10360   unet_cv_with_owner=$unet_uid
10361 fi
10362
10363 fi;
10364
10365 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
10366     unet_cv_with_owner=$unet_uid
10367 fi
10368
10369 echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
10370 echo "${ECHO_T}$unet_cv_with_owner" >&6
10371
10372 IRCDOWN=$unet_cv_with_owner
10373
10374
10375 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10376 echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
10377 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6
10378
10379 # Check whether --with-group or --without-group was given.
10380 if test "${with_group+set}" = set; then
10381   withval="$with_group"
10382   unet_cv_with_group=$with_group
10383 else
10384   if test "${unet_cv_with_group+set}" = set; then
10385   echo $ECHO_N "(cached) $ECHO_C" >&6
10386 else
10387   unet_cv_with_group=$unet_gid
10388 fi
10389
10390 fi;
10391
10392 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
10393     unet_cv_with_group=$unet_gid
10394 fi
10395
10396 echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
10397 echo "${ECHO_T}$unet_cv_with_group" >&6
10398
10399 IRCDGRP=$unet_cv_with_group
10400
10401
10402 unet_domain=
10403 if test -f /etc/resolv.conf; then
10404     unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
10405     if test x"$unet_domain" = x; then
10406         unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
10407     fi
10408 fi
10409 echo "$as_me:$LINENO: checking for site domain name" >&5
10410 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6
10411
10412 # Check whether --with-domain or --without-domain was given.
10413 if test "${with_domain+set}" = set; then
10414   withval="$with_domain"
10415   unet_cv_with_domain=$with_domain
10416 else
10417   if test "${unet_cv_with_domain+set}" = set; then
10418   echo $ECHO_N "(cached) $ECHO_C" >&6
10419 else
10420   unet_cv_with_domain=$unet_domain
10421 fi
10422
10423 fi;
10424
10425 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
10426     unet_cv_with_domain=$unet_domain
10427 fi
10428 if test x"$unet_cv_with_domain" = xno; then
10429     { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
10430 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
10431    { (exit 1); exit 1; }; }
10432 fi
10433
10434 echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
10435 echo "${ECHO_T}$unet_cv_with_domain" >&6
10436
10437
10438 cat >>confdefs.h <<_ACEOF
10439 #define DOMAINNAME "*$unet_cv_with_domain"
10440 _ACEOF
10441
10442
10443 echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
10444 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6
10445
10446 # Check whether --with-chroot or --without-chroot was given.
10447 if test "${with_chroot+set}" = set; then
10448   withval="$with_chroot"
10449   unet_cv_with_chroot=$with_chroot
10450 else
10451   if test "${unet_cv_with_chroot+set}" = set; then
10452   echo $ECHO_N "(cached) $ECHO_C" >&6
10453 else
10454   unet_cv_with_chroot=no
10455 fi
10456
10457 fi;
10458
10459 if test x"$unet_cv_with_chroot" = xyes; then
10460     { { echo "$as_me:$LINENO: error: --with-chroot given with no directory.  See doc/readme.chroot." >&5
10461 echo "$as_me: error: --with-chroot given with no directory.  See doc/readme.chroot." >&2;}
10462    { (exit 1); exit 1; }; }
10463 fi
10464
10465 # Ensure there are no trailing /'s to mess us up
10466 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
10467
10468 echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
10469 echo "${ECHO_T}$unet_cv_with_chroot" >&6
10470
10471 # Deal with the annoying value "NONE" here
10472 unet_save_prefix=$prefix
10473 if test x"$prefix" = xNONE; then
10474     prefix=$ac_default_prefix
10475 else
10476     prefix=$prefix
10477 fi
10478
10479 unet_save_exec_prefix=$exec_prefix
10480 if test x"$exec_prefix" = xNONE; then
10481     exec_prefix=$prefix
10482 else
10483     exec_prefix=$exec_prefix
10484 fi
10485
10486 # Obtain the actual interesting directories
10487 unet_bindir=`eval echo "$bindir"`
10488 unet_libdir=`eval echo "$libdir"`
10489
10490 # Restore the original settings of $prefix and $exec_prefix
10491 prefix=$unet_save_prefix
10492 exec_prefix=$unet_save_exec_prefix
10493
10494 echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
10495 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6
10496 if test x"$unet_cv_with_symlink" = xno; then
10497     unet_spath="$unet_bindir/ircd"
10498 else
10499     unet_spath="$unet_bindir/$unet_cv_with_symlink"
10500 fi
10501 echo "$as_me:$LINENO: result: $unet_spath" >&5
10502 echo "${ECHO_T}$unet_spath" >&6
10503
10504 if test x"$unet_cv_with_chroot" != xno; then
10505     if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10506         unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
10507     else
10508         { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
10509 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
10510     fi
10511 fi
10512
10513
10514 cat >>confdefs.h <<_ACEOF
10515 #define SPATH "$unet_spath"
10516 _ACEOF
10517
10518
10519 echo "$as_me:$LINENO: checking what the data directory should be" >&5
10520 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6
10521
10522 # Check whether --with-dpath or --without-dpath was given.
10523 if test "${with_dpath+set}" = set; then
10524   withval="$with_dpath"
10525   unet_cv_with_dpath=$with_dpath
10526 else
10527   if test "${unet_cv_with_dpath+set}" = set; then
10528   echo $ECHO_N "(cached) $ECHO_C" >&6
10529 else
10530   unet_cv_with_dpath=$unet_libdir
10531 fi
10532
10533 fi;
10534
10535 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
10536     unet_cv_with_dpath=$unet_libdir
10537 fi
10538
10539 # Ensure there are no trailing /'s to mess us up
10540 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
10541
10542 echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
10543 echo "${ECHO_T}$unet_cv_with_dpath" >&6
10544
10545 if test x"$unet_cv_with_chroot" != xno; then
10546     if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10547         unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
10548     else
10549         { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
10550 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
10551    { (exit 1); exit 1; }; }
10552     fi
10553 else
10554     unet_dpath=$unet_cv_with_dpath
10555 fi
10556
10557
10558 cat >>confdefs.h <<_ACEOF
10559 #define DPATH "$unet_dpath"
10560 _ACEOF
10561
10562
10563 DPATH=$unet_cv_with_dpath
10564
10565
10566 echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
10567 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6
10568
10569 # Check whether --with-cpath or --without-cpath was given.
10570 if test "${with_cpath+set}" = set; then
10571   withval="$with_cpath"
10572   unet_cv_with_cpath=$with_cpath
10573 else
10574   if test "${unet_cv_with_cpath+set}" = set; then
10575   echo $ECHO_N "(cached) $ECHO_C" >&6
10576 else
10577   unet_cv_with_cpath="ircd.conf"
10578 fi
10579
10580 fi;
10581
10582 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
10583     unet_cv_with_cpath="ircd.conf"
10584 fi
10585
10586 echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
10587 echo "${ECHO_T}$unet_cv_with_cpath" >&6
10588
10589 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
10590     # Absolute path; check against chroot stuff
10591     if test x"$unet_cv_with_chroot" != xno; then
10592         if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10593             unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
10594         else
10595             { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
10596 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
10597    { (exit 1); exit 1; }; }
10598         fi
10599     else
10600         unet_cpath=$unet_cv_with_cpath
10601     fi
10602 else
10603     unet_cpath=$unet_cv_with_cpath
10604 fi
10605
10606
10607 cat >>confdefs.h <<_ACEOF
10608 #define CPATH "$unet_cpath"
10609 _ACEOF
10610
10611
10612 echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
10613 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6
10614
10615 # Check whether --with-lpath or --without-lpath was given.
10616 if test "${with_lpath+set}" = set; then
10617   withval="$with_lpath"
10618   unet_cv_with_lpath=$with_lpath
10619 else
10620   if test "${unet_cv_with_lpath+set}" = set; then
10621   echo $ECHO_N "(cached) $ECHO_C" >&6
10622 else
10623   unet_cv_with_lpath="ircd.log"
10624 fi
10625
10626 fi;
10627
10628 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
10629     unet_cv_with_lpath="ircd.log"
10630 fi
10631
10632 echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
10633 echo "${ECHO_T}$unet_cv_with_lpath" >&6
10634
10635 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
10636     # Absolute path; check against chroot stuff
10637     if test x"$unet_cv_with_chroot" != xno; then
10638         if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10639             unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
10640         else
10641             { echo "$as_me:$LINENO: WARNING: Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead" >&5
10642 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;}
10643             unet_cv_with_lpath="ircd.log"
10644             unet_lpath="ircd.log"
10645         fi
10646     else
10647         unet_lpath=$unet_cv_with_lpath
10648     fi
10649 else
10650     unet_lpath=$unet_cv_with_lpath
10651 fi
10652
10653
10654 cat >>confdefs.h <<_ACEOF
10655 #define LPATH "$unet_lpath"
10656 _ACEOF
10657
10658
10659 unet_maxcon=`ulimit -Hn`
10660 if test x"$unet_maxcon" = xunlimited; then
10661     unet_maxcon=`ulimit -Sn`
10662 fi
10663 unet_maxcon=`expr $unet_maxcon - 4`
10664 echo "$as_me:$LINENO: checking max connections" >&5
10665 echo $ECHO_N "checking max connections... $ECHO_C" >&6
10666
10667 # Check whether --with-maxcon or --without-maxcon was given.
10668 if test "${with_maxcon+set}" = set; then
10669   withval="$with_maxcon"
10670   unet_cv_with_maxcon=$with_maxcon
10671 else
10672   if test "${unet_cv_with_maxcon+set}" = set; then
10673   echo $ECHO_N "(cached) $ECHO_C" >&6
10674 else
10675   unet_cv_with_maxcon=$unet_maxcon
10676 fi
10677
10678 fi;
10679
10680 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
10681     unet_cv_with_maxcon=$unet_maxcon
10682 fi
10683
10684 echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
10685 echo "${ECHO_T}$unet_cv_with_maxcon" >&6
10686
10687
10688 cat >>confdefs.h <<_ACEOF
10689 #define MAXCONNECTIONS $unet_cv_with_maxcon
10690 _ACEOF
10691
10692
10693                                         ac_config_files="$ac_config_files Makefile ircd/Makefile ircd/test/Makefile doc/Makefile"
10694           ac_config_commands="$ac_config_commands default"
10695 cat >confcache <<\_ACEOF
10696 # This file is a shell script that caches the results of configure
10697 # tests run on this system so they can be shared between configure
10698 # scripts and configure runs, see configure's option --config-cache.
10699 # It is not useful on other systems.  If it contains results you don't
10700 # want to keep, you may remove or edit it.
10701 #
10702 # config.status only pays attention to the cache file if you give it
10703 # the --recheck option to rerun configure.
10704 #
10705 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10706 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10707 # following values.
10708
10709 _ACEOF
10710
10711 # The following way of writing the cache mishandles newlines in values,
10712 # but we know of no workaround that is simple, portable, and efficient.
10713 # So, don't put newlines in cache variables' values.
10714 # Ultrix sh set writes to stderr and can't be redirected directly,
10715 # and sets the high bit in the cache file unless we assign to the vars.
10716 {
10717   (set) 2>&1 |
10718     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10719     *ac_space=\ *)
10720       # `set' does not quote correctly, so add quotes (double-quote
10721       # substitution turns \\\\ into \\, and sed turns \\ into \).
10722       sed -n \
10723         "s/'/'\\\\''/g;
10724           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10725       ;;
10726     *)
10727       # `set' quotes correctly as required by POSIX, so do not add quotes.
10728       sed -n \
10729         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10730       ;;
10731     esac;
10732 } |
10733   sed '
10734      t clear
10735      : clear
10736      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10737      t end
10738      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10739      : end' >>confcache
10740 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10741   if test -w $cache_file; then
10742     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10743     cat confcache >$cache_file
10744   else
10745     echo "not updating unwritable cache $cache_file"
10746   fi
10747 fi
10748 rm -f confcache
10749
10750 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10751 # Let make expand exec_prefix.
10752 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10753
10754 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10755 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10756 # trailing colons and then remove the whole line if VPATH becomes empty
10757 # (actually we leave an empty line to preserve line numbers).
10758 if test "x$srcdir" = x.; then
10759   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10760 s/:*\$(srcdir):*/:/;
10761 s/:*\${srcdir}:*/:/;
10762 s/:*@srcdir@:*/:/;
10763 s/^\([^=]*=[     ]*\):*/\1/;
10764 s/:*$//;
10765 s/^[^=]*=[       ]*$//;
10766 }'
10767 fi
10768
10769 DEFS=-DHAVE_CONFIG_H
10770
10771 ac_libobjs=
10772 ac_ltlibobjs=
10773 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10774   # 1. Remove the extension, and $U if already installed.
10775   ac_i=`echo "$ac_i" |
10776          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10777   # 2. Add them.
10778   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10779   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10780 done
10781 LIBOBJS=$ac_libobjs
10782
10783 LTLIBOBJS=$ac_ltlibobjs
10784
10785
10786
10787 : ${CONFIG_STATUS=./config.status}
10788 ac_clean_files_save=$ac_clean_files
10789 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10790 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10791 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10792 cat >$CONFIG_STATUS <<_ACEOF
10793 #! $SHELL
10794 # Generated by $as_me.
10795 # Run this file to recreate the current configuration.
10796 # Compiler output produced by configure, useful for debugging
10797 # configure, is in config.log if it exists.
10798
10799 debug=false
10800 ac_cs_recheck=false
10801 ac_cs_silent=false
10802 SHELL=\${CONFIG_SHELL-$SHELL}
10803 _ACEOF
10804
10805 cat >>$CONFIG_STATUS <<\_ACEOF
10806 ## --------------------- ##
10807 ## M4sh Initialization.  ##
10808 ## --------------------- ##
10809
10810 # Be Bourne compatible
10811 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10812   emulate sh
10813   NULLCMD=:
10814   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10815   # is contrary to our usage.  Disable this feature.
10816   alias -g '${1+"$@"}'='"$@"'
10817 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10818   set -o posix
10819 fi
10820 DUALCASE=1; export DUALCASE # for MKS sh
10821
10822 # Support unset when possible.
10823 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10824   as_unset=unset
10825 else
10826   as_unset=false
10827 fi
10828
10829
10830 # Work around bugs in pre-3.0 UWIN ksh.
10831 $as_unset ENV MAIL MAILPATH
10832 PS1='$ '
10833 PS2='> '
10834 PS4='+ '
10835
10836 # NLS nuisances.
10837 for as_var in \
10838   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10839   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10840   LC_TELEPHONE LC_TIME
10841 do
10842   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10843     eval $as_var=C; export $as_var
10844   else
10845     $as_unset $as_var
10846   fi
10847 done
10848
10849 # Required to use basename.
10850 if expr a : '\(a\)' >/dev/null 2>&1; then
10851   as_expr=expr
10852 else
10853   as_expr=false
10854 fi
10855
10856 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10857   as_basename=basename
10858 else
10859   as_basename=false
10860 fi
10861
10862
10863 # Name of the executable.
10864 as_me=`$as_basename "$0" ||
10865 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10866          X"$0" : 'X\(//\)$' \| \
10867          X"$0" : 'X\(/\)$' \| \
10868          .     : '\(.\)' 2>/dev/null ||
10869 echo X/"$0" |
10870     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10871           /^X\/\(\/\/\)$/{ s//\1/; q; }
10872           /^X\/\(\/\).*/{ s//\1/; q; }
10873           s/.*/./; q'`
10874
10875
10876 # PATH needs CR, and LINENO needs CR and PATH.
10877 # Avoid depending upon Character Ranges.
10878 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10879 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10880 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10881 as_cr_digits='0123456789'
10882 as_cr_alnum=$as_cr_Letters$as_cr_digits
10883
10884 # The user is always right.
10885 if test "${PATH_SEPARATOR+set}" != set; then
10886   echo "#! /bin/sh" >conf$$.sh
10887   echo  "exit 0"   >>conf$$.sh
10888   chmod +x conf$$.sh
10889   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10890     PATH_SEPARATOR=';'
10891   else
10892     PATH_SEPARATOR=:
10893   fi
10894   rm -f conf$$.sh
10895 fi
10896
10897
10898   as_lineno_1=$LINENO
10899   as_lineno_2=$LINENO
10900   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10901   test "x$as_lineno_1" != "x$as_lineno_2" &&
10902   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10903   # Find who we are.  Look in the path if we contain no path at all
10904   # relative or not.
10905   case $0 in
10906     *[\\/]* ) as_myself=$0 ;;
10907     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10908 for as_dir in $PATH
10909 do
10910   IFS=$as_save_IFS
10911   test -z "$as_dir" && as_dir=.
10912   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10913 done
10914
10915        ;;
10916   esac
10917   # We did not find ourselves, most probably we were run as `sh COMMAND'
10918   # in which case we are not to be found in the path.
10919   if test "x$as_myself" = x; then
10920     as_myself=$0
10921   fi
10922   if test ! -f "$as_myself"; then
10923     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10924 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10925    { (exit 1); exit 1; }; }
10926   fi
10927   case $CONFIG_SHELL in
10928   '')
10929     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10930 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10931 do
10932   IFS=$as_save_IFS
10933   test -z "$as_dir" && as_dir=.
10934   for as_base in sh bash ksh sh5; do
10935          case $as_dir in
10936          /*)
10937            if ("$as_dir/$as_base" -c '
10938   as_lineno_1=$LINENO
10939   as_lineno_2=$LINENO
10940   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10941   test "x$as_lineno_1" != "x$as_lineno_2" &&
10942   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10943              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10944              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10945              CONFIG_SHELL=$as_dir/$as_base
10946              export CONFIG_SHELL
10947              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10948            fi;;
10949          esac
10950        done
10951 done
10952 ;;
10953   esac
10954
10955   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10956   # uniformly replaced by the line number.  The first 'sed' inserts a
10957   # line-number line before each line; the second 'sed' does the real
10958   # work.  The second script uses 'N' to pair each line-number line
10959   # with the numbered line, and appends trailing '-' during
10960   # substitution so that $LINENO is not a special case at line end.
10961   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10962   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10963   sed '=' <$as_myself |
10964     sed '
10965       N
10966       s,$,-,
10967       : loop
10968       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10969       t loop
10970       s,-$,,
10971       s,^['$as_cr_digits']*\n,,
10972     ' >$as_me.lineno &&
10973   chmod +x $as_me.lineno ||
10974     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10975 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10976    { (exit 1); exit 1; }; }
10977
10978   # Don't try to exec as it changes $[0], causing all sort of problems
10979   # (the dirname of $[0] is not the place where we might find the
10980   # original and so on.  Autoconf is especially sensible to this).
10981   . ./$as_me.lineno
10982   # Exit status is that of the last command.
10983   exit
10984 }
10985
10986
10987 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10988   *c*,-n*) ECHO_N= ECHO_C='
10989 ' ECHO_T='      ' ;;
10990   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10991   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10992 esac
10993
10994 if expr a : '\(a\)' >/dev/null 2>&1; then
10995   as_expr=expr
10996 else
10997   as_expr=false
10998 fi
10999
11000 rm -f conf$$ conf$$.exe conf$$.file
11001 echo >conf$$.file
11002 if ln -s conf$$.file conf$$ 2>/dev/null; then
11003   # We could just check for DJGPP; but this test a) works b) is more generic
11004   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11005   if test -f conf$$.exe; then
11006     # Don't use ln at all; we don't have any links
11007     as_ln_s='cp -p'
11008   else
11009     as_ln_s='ln -s'
11010   fi
11011 elif ln conf$$.file conf$$ 2>/dev/null; then
11012   as_ln_s=ln
11013 else
11014   as_ln_s='cp -p'
11015 fi
11016 rm -f conf$$ conf$$.exe conf$$.file
11017
11018 if mkdir -p . 2>/dev/null; then
11019   as_mkdir_p=:
11020 else
11021   test -d ./-p && rmdir ./-p
11022   as_mkdir_p=false
11023 fi
11024
11025 as_executable_p="test -f"
11026
11027 # Sed expression to map a string onto a valid CPP name.
11028 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11029
11030 # Sed expression to map a string onto a valid variable name.
11031 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11032
11033
11034 # IFS
11035 # We need space, tab and new line, in precisely that order.
11036 as_nl='
11037 '
11038 IFS="   $as_nl"
11039
11040 # CDPATH.
11041 $as_unset CDPATH
11042
11043 exec 6>&1
11044
11045 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11046 # report actual input values of CONFIG_FILES etc. instead of their
11047 # values after options handling.  Logging --version etc. is OK.
11048 exec 5>>config.log
11049 {
11050   echo
11051   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11052 ## Running $as_me. ##
11053 _ASBOX
11054 } >&5
11055 cat >&5 <<_CSEOF
11056
11057 This file was extended by $as_me, which was
11058 generated by GNU Autoconf 2.59.  Invocation command line was
11059
11060   CONFIG_FILES    = $CONFIG_FILES
11061   CONFIG_HEADERS  = $CONFIG_HEADERS
11062   CONFIG_LINKS    = $CONFIG_LINKS
11063   CONFIG_COMMANDS = $CONFIG_COMMANDS
11064   $ $0 $@
11065
11066 _CSEOF
11067 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11068 echo >&5
11069 _ACEOF
11070
11071 # Files that config.status was made for.
11072 if test -n "$ac_config_files"; then
11073   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11074 fi
11075
11076 if test -n "$ac_config_headers"; then
11077   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11078 fi
11079
11080 if test -n "$ac_config_links"; then
11081   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11082 fi
11083
11084 if test -n "$ac_config_commands"; then
11085   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11086 fi
11087
11088 cat >>$CONFIG_STATUS <<\_ACEOF
11089
11090 ac_cs_usage="\
11091 \`$as_me' instantiates files from templates according to the
11092 current configuration.
11093
11094 Usage: $0 [OPTIONS] [FILE]...
11095
11096   -h, --help       print this help, then exit
11097   -V, --version    print version number, then exit
11098   -q, --quiet      do not print progress messages
11099   -d, --debug      don't remove temporary files
11100       --recheck    update $as_me by reconfiguring in the same conditions
11101   --file=FILE[:TEMPLATE]
11102                    instantiate the configuration file FILE
11103   --header=FILE[:TEMPLATE]
11104                    instantiate the configuration header FILE
11105
11106 Configuration files:
11107 $config_files
11108
11109 Configuration headers:
11110 $config_headers
11111
11112 Configuration commands:
11113 $config_commands
11114
11115 Report bugs to <bug-autoconf@gnu.org>."
11116 _ACEOF
11117
11118 cat >>$CONFIG_STATUS <<_ACEOF
11119 ac_cs_version="\\
11120 config.status
11121 configured by $0, generated by GNU Autoconf 2.59,
11122   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11123
11124 Copyright (C) 2003 Free Software Foundation, Inc.
11125 This config.status script is free software; the Free Software Foundation
11126 gives unlimited permission to copy, distribute and modify it."
11127 srcdir=$srcdir
11128 INSTALL="$INSTALL"
11129 _ACEOF
11130
11131 cat >>$CONFIG_STATUS <<\_ACEOF
11132 # If no file are specified by the user, then we need to provide default
11133 # value.  By we need to know if files were specified by the user.
11134 ac_need_defaults=:
11135 while test $# != 0
11136 do
11137   case $1 in
11138   --*=*)
11139     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11140     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11141     ac_shift=:
11142     ;;
11143   -*)
11144     ac_option=$1
11145     ac_optarg=$2
11146     ac_shift=shift
11147     ;;
11148   *) # This is not an option, so the user has probably given explicit
11149      # arguments.
11150      ac_option=$1
11151      ac_need_defaults=false;;
11152   esac
11153
11154   case $ac_option in
11155   # Handling of the options.
11156 _ACEOF
11157 cat >>$CONFIG_STATUS <<\_ACEOF
11158   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11159     ac_cs_recheck=: ;;
11160   --version | --vers* | -V )
11161     echo "$ac_cs_version"; exit 0 ;;
11162   --he | --h)
11163     # Conflict between --help and --header
11164     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11165 Try \`$0 --help' for more information." >&5
11166 echo "$as_me: error: ambiguous option: $1
11167 Try \`$0 --help' for more information." >&2;}
11168    { (exit 1); exit 1; }; };;
11169   --help | --hel | -h )
11170     echo "$ac_cs_usage"; exit 0 ;;
11171   --debug | --d* | -d )
11172     debug=: ;;
11173   --file | --fil | --fi | --f )
11174     $ac_shift
11175     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11176     ac_need_defaults=false;;
11177   --header | --heade | --head | --hea )
11178     $ac_shift
11179     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11180     ac_need_defaults=false;;
11181   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11182   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11183     ac_cs_silent=: ;;
11184
11185   # This is an error.
11186   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11187 Try \`$0 --help' for more information." >&5
11188 echo "$as_me: error: unrecognized option: $1
11189 Try \`$0 --help' for more information." >&2;}
11190    { (exit 1); exit 1; }; } ;;
11191
11192   *) ac_config_targets="$ac_config_targets $1" ;;
11193
11194   esac
11195   shift
11196 done
11197
11198 ac_configure_extra_args=
11199
11200 if $ac_cs_silent; then
11201   exec 6>/dev/null
11202   ac_configure_extra_args="$ac_configure_extra_args --silent"
11203 fi
11204
11205 _ACEOF
11206 cat >>$CONFIG_STATUS <<_ACEOF
11207 if \$ac_cs_recheck; then
11208   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11209   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11210 fi
11211
11212 _ACEOF
11213
11214
11215
11216
11217
11218 cat >>$CONFIG_STATUS <<\_ACEOF
11219 for ac_config_target in $ac_config_targets
11220 do
11221   case "$ac_config_target" in
11222   # Handling of arguments.
11223   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11224   "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
11225   "ircd/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/test/Makefile" ;;
11226   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11227   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11228   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11229   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11230 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11231    { (exit 1); exit 1; }; };;
11232   esac
11233 done
11234
11235 # If the user did not use the arguments to specify the items to instantiate,
11236 # then the envvar interface is used.  Set only those that are not.
11237 # We use the long form for the default assignment because of an extremely
11238 # bizarre bug on SunOS 4.1.3.
11239 if $ac_need_defaults; then
11240   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11241   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11242   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11243 fi
11244
11245 # Have a temporary directory for convenience.  Make it in the build tree
11246 # simply because there is no reason to put it here, and in addition,
11247 # creating and moving files from /tmp can sometimes cause problems.
11248 # Create a temporary directory, and hook for its removal unless debugging.
11249 $debug ||
11250 {
11251   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11252   trap '{ (exit 1); exit 1; }' 1 2 13 15
11253 }
11254
11255 # Create a (secure) tmp directory for tmp files.
11256
11257 {
11258   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11259   test -n "$tmp" && test -d "$tmp"
11260 }  ||
11261 {
11262   tmp=./confstat$$-$RANDOM
11263   (umask 077 && mkdir $tmp)
11264 } ||
11265 {
11266    echo "$me: cannot create a temporary directory in ." >&2
11267    { (exit 1); exit 1; }
11268 }
11269
11270 _ACEOF
11271
11272 cat >>$CONFIG_STATUS <<_ACEOF
11273
11274 #
11275 # CONFIG_FILES section.
11276 #
11277
11278 # No need to generate the scripts if there are no CONFIG_FILES.
11279 # This happens for instance when ./config.status config.h
11280 if test -n "\$CONFIG_FILES"; then
11281   # Protect against being on the right side of a sed subst in config.status.
11282   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11283    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11284 s,@SHELL@,$SHELL,;t t
11285 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11286 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11287 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11288 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11289 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11290 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11291 s,@exec_prefix@,$exec_prefix,;t t
11292 s,@prefix@,$prefix,;t t
11293 s,@program_transform_name@,$program_transform_name,;t t
11294 s,@bindir@,$bindir,;t t
11295 s,@sbindir@,$sbindir,;t t
11296 s,@libexecdir@,$libexecdir,;t t
11297 s,@datadir@,$datadir,;t t
11298 s,@sysconfdir@,$sysconfdir,;t t
11299 s,@sharedstatedir@,$sharedstatedir,;t t
11300 s,@localstatedir@,$localstatedir,;t t
11301 s,@libdir@,$libdir,;t t
11302 s,@includedir@,$includedir,;t t
11303 s,@oldincludedir@,$oldincludedir,;t t
11304 s,@infodir@,$infodir,;t t
11305 s,@mandir@,$mandir,;t t
11306 s,@build_alias@,$build_alias,;t t
11307 s,@host_alias@,$host_alias,;t t
11308 s,@target_alias@,$target_alias,;t t
11309 s,@DEFS@,$DEFS,;t t
11310 s,@ECHO_C@,$ECHO_C,;t t
11311 s,@ECHO_N@,$ECHO_N,;t t
11312 s,@ECHO_T@,$ECHO_T,;t t
11313 s,@LIBS@,$LIBS,;t t
11314 s,@build@,$build,;t t
11315 s,@build_cpu@,$build_cpu,;t t
11316 s,@build_vendor@,$build_vendor,;t t
11317 s,@build_os@,$build_os,;t t
11318 s,@host@,$host,;t t
11319 s,@host_cpu@,$host_cpu,;t t
11320 s,@host_vendor@,$host_vendor,;t t
11321 s,@host_os@,$host_os,;t t
11322 s,@CC@,$CC,;t t
11323 s,@CFLAGS@,$CFLAGS,;t t
11324 s,@LDFLAGS@,$LDFLAGS,;t t
11325 s,@CPPFLAGS@,$CPPFLAGS,;t t
11326 s,@ac_ct_CC@,$ac_ct_CC,;t t
11327 s,@EXEEXT@,$EXEEXT,;t t
11328 s,@OBJEXT@,$OBJEXT,;t t
11329 s,@CPP@,$CPP,;t t
11330 s,@EGREP@,$EGREP,;t t
11331 s,@AWK@,$AWK,;t t
11332 s,@SET_MAKE@,$SET_MAKE,;t t
11333 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11334 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11335 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11336 s,@LN_S@,$LN_S,;t t
11337 s,@RMPROG@,$RMPROG,;t t
11338 s,@SHPROG@,$SHPROG,;t t
11339 s,@LEX@,$LEX,;t t
11340 s,@LEXLIB@,$LEXLIB,;t t
11341 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11342 s,@YACC@,$YACC,;t t
11343 s,@ENGINE_C@,$ENGINE_C,;t t
11344 s,@INSTALL_RULE@,$INSTALL_RULE,;t t
11345 s,@SYMLINK@,$SYMLINK,;t t
11346 s,@IRCDMODE@,$IRCDMODE,;t t
11347 s,@IRCDOWN@,$IRCDOWN,;t t
11348 s,@IRCDGRP@,$IRCDGRP,;t t
11349 s,@DPATH@,$DPATH,;t t
11350 s,@LIBOBJS@,$LIBOBJS,;t t
11351 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11352 CEOF
11353
11354 _ACEOF
11355
11356   cat >>$CONFIG_STATUS <<\_ACEOF
11357   # Split the substitutions into bite-sized pieces for seds with
11358   # small command number limits, like on Digital OSF/1 and HP-UX.
11359   ac_max_sed_lines=48
11360   ac_sed_frag=1 # Number of current file.
11361   ac_beg=1 # First line for current file.
11362   ac_end=$ac_max_sed_lines # Line after last line for current file.
11363   ac_more_lines=:
11364   ac_sed_cmds=
11365   while $ac_more_lines; do
11366     if test $ac_beg -gt 1; then
11367       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11368     else
11369       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11370     fi
11371     if test ! -s $tmp/subs.frag; then
11372       ac_more_lines=false
11373     else
11374       # The purpose of the label and of the branching condition is to
11375       # speed up the sed processing (if there are no `@' at all, there
11376       # is no need to browse any of the substitutions).
11377       # These are the two extra sed commands mentioned above.
11378       (echo ':t
11379   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11380       if test -z "$ac_sed_cmds"; then
11381         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11382       else
11383         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11384       fi
11385       ac_sed_frag=`expr $ac_sed_frag + 1`
11386       ac_beg=$ac_end
11387       ac_end=`expr $ac_end + $ac_max_sed_lines`
11388     fi
11389   done
11390   if test -z "$ac_sed_cmds"; then
11391     ac_sed_cmds=cat
11392   fi
11393 fi # test -n "$CONFIG_FILES"
11394
11395 _ACEOF
11396 cat >>$CONFIG_STATUS <<\_ACEOF
11397 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11398   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11399   case $ac_file in
11400   - | *:- | *:-:* ) # input from stdin
11401         cat >$tmp/stdin
11402         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11403         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11404   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11405         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11406   * )   ac_file_in=$ac_file.in ;;
11407   esac
11408
11409   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11410   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11411 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11412          X"$ac_file" : 'X\(//\)[^/]' \| \
11413          X"$ac_file" : 'X\(//\)$' \| \
11414          X"$ac_file" : 'X\(/\)' \| \
11415          .     : '\(.\)' 2>/dev/null ||
11416 echo X"$ac_file" |
11417     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11418           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11419           /^X\(\/\/\)$/{ s//\1/; q; }
11420           /^X\(\/\).*/{ s//\1/; q; }
11421           s/.*/./; q'`
11422   { if $as_mkdir_p; then
11423     mkdir -p "$ac_dir"
11424   else
11425     as_dir="$ac_dir"
11426     as_dirs=
11427     while test ! -d "$as_dir"; do
11428       as_dirs="$as_dir $as_dirs"
11429       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11430 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11431          X"$as_dir" : 'X\(//\)[^/]' \| \
11432          X"$as_dir" : 'X\(//\)$' \| \
11433          X"$as_dir" : 'X\(/\)' \| \
11434          .     : '\(.\)' 2>/dev/null ||
11435 echo X"$as_dir" |
11436     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11437           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11438           /^X\(\/\/\)$/{ s//\1/; q; }
11439           /^X\(\/\).*/{ s//\1/; q; }
11440           s/.*/./; q'`
11441     done
11442     test ! -n "$as_dirs" || mkdir $as_dirs
11443   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11444 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11445    { (exit 1); exit 1; }; }; }
11446
11447   ac_builddir=.
11448
11449 if test "$ac_dir" != .; then
11450   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11451   # A "../" for each directory in $ac_dir_suffix.
11452   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11453 else
11454   ac_dir_suffix= ac_top_builddir=
11455 fi
11456
11457 case $srcdir in
11458   .)  # No --srcdir option.  We are building in place.
11459     ac_srcdir=.
11460     if test -z "$ac_top_builddir"; then
11461        ac_top_srcdir=.
11462     else
11463        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11464     fi ;;
11465   [\\/]* | ?:[\\/]* )  # Absolute path.
11466     ac_srcdir=$srcdir$ac_dir_suffix;
11467     ac_top_srcdir=$srcdir ;;
11468   *) # Relative path.
11469     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11470     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11471 esac
11472
11473 # Do not use `cd foo && pwd` to compute absolute paths, because
11474 # the directories may not exist.
11475 case `pwd` in
11476 .) ac_abs_builddir="$ac_dir";;
11477 *)
11478   case "$ac_dir" in
11479   .) ac_abs_builddir=`pwd`;;
11480   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11481   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11482   esac;;
11483 esac
11484 case $ac_abs_builddir in
11485 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11486 *)
11487   case ${ac_top_builddir}. in
11488   .) ac_abs_top_builddir=$ac_abs_builddir;;
11489   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11490   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11491   esac;;
11492 esac
11493 case $ac_abs_builddir in
11494 .) ac_abs_srcdir=$ac_srcdir;;
11495 *)
11496   case $ac_srcdir in
11497   .) ac_abs_srcdir=$ac_abs_builddir;;
11498   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11499   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11500   esac;;
11501 esac
11502 case $ac_abs_builddir in
11503 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11504 *)
11505   case $ac_top_srcdir in
11506   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11507   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11508   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11509   esac;;
11510 esac
11511
11512
11513   case $INSTALL in
11514   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11515   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11516   esac
11517
11518   # Let's still pretend it is `configure' which instantiates (i.e., don't
11519   # use $as_me), people would be surprised to read:
11520   #    /* config.h.  Generated by config.status.  */
11521   if test x"$ac_file" = x-; then
11522     configure_input=
11523   else
11524     configure_input="$ac_file.  "
11525   fi
11526   configure_input=$configure_input"Generated from `echo $ac_file_in |
11527                                      sed 's,.*/,,'` by configure."
11528
11529   # First look for the input files in the build tree, otherwise in the
11530   # src tree.
11531   ac_file_inputs=`IFS=:
11532     for f in $ac_file_in; do
11533       case $f in
11534       -) echo $tmp/stdin ;;
11535       [\\/$]*)
11536          # Absolute (can't be DOS-style, as IFS=:)
11537          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11538 echo "$as_me: error: cannot find input file: $f" >&2;}
11539    { (exit 1); exit 1; }; }
11540          echo "$f";;
11541       *) # Relative
11542          if test -f "$f"; then
11543            # Build tree
11544            echo "$f"
11545          elif test -f "$srcdir/$f"; then
11546            # Source tree
11547            echo "$srcdir/$f"
11548          else
11549            # /dev/null tree
11550            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11551 echo "$as_me: error: cannot find input file: $f" >&2;}
11552    { (exit 1); exit 1; }; }
11553          fi;;
11554       esac
11555     done` || { (exit 1); exit 1; }
11556
11557   if test x"$ac_file" != x-; then
11558     { echo "$as_me:$LINENO: creating $ac_file" >&5
11559 echo "$as_me: creating $ac_file" >&6;}
11560     rm -f "$ac_file"
11561   fi
11562 _ACEOF
11563 cat >>$CONFIG_STATUS <<_ACEOF
11564   sed "$ac_vpsub
11565 $extrasub
11566 _ACEOF
11567 cat >>$CONFIG_STATUS <<\_ACEOF
11568 :t
11569 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11570 s,@configure_input@,$configure_input,;t t
11571 s,@srcdir@,$ac_srcdir,;t t
11572 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11573 s,@top_srcdir@,$ac_top_srcdir,;t t
11574 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11575 s,@builddir@,$ac_builddir,;t t
11576 s,@abs_builddir@,$ac_abs_builddir,;t t
11577 s,@top_builddir@,$ac_top_builddir,;t t
11578 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11579 s,@INSTALL@,$ac_INSTALL,;t t
11580 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11581   rm -f $tmp/stdin
11582   if test x"$ac_file" != x-; then
11583     mv $tmp/out $ac_file
11584   else
11585     cat $tmp/out
11586     rm -f $tmp/out
11587   fi
11588
11589 done
11590 _ACEOF
11591 cat >>$CONFIG_STATUS <<\_ACEOF
11592
11593 #
11594 # CONFIG_HEADER section.
11595 #
11596
11597 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11598 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11599 #
11600 # ac_d sets the value in "#define NAME VALUE" lines.
11601 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11602 ac_dB='[         ].*$,\1#\2'
11603 ac_dC=' '
11604 ac_dD=',;t'
11605 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11606 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11607 ac_uB='$,\1#\2define\3'
11608 ac_uC=' '
11609 ac_uD=',;t'
11610
11611 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11612   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11613   case $ac_file in
11614   - | *:- | *:-:* ) # input from stdin
11615         cat >$tmp/stdin
11616         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11617         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11618   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11619         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11620   * )   ac_file_in=$ac_file.in ;;
11621   esac
11622
11623   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11624 echo "$as_me: creating $ac_file" >&6;}
11625
11626   # First look for the input files in the build tree, otherwise in the
11627   # src tree.
11628   ac_file_inputs=`IFS=:
11629     for f in $ac_file_in; do
11630       case $f in
11631       -) echo $tmp/stdin ;;
11632       [\\/$]*)
11633          # Absolute (can't be DOS-style, as IFS=:)
11634          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11635 echo "$as_me: error: cannot find input file: $f" >&2;}
11636    { (exit 1); exit 1; }; }
11637          # Do quote $f, to prevent DOS paths from being IFS'd.
11638          echo "$f";;
11639       *) # Relative
11640          if test -f "$f"; then
11641            # Build tree
11642            echo "$f"
11643          elif test -f "$srcdir/$f"; then
11644            # Source tree
11645            echo "$srcdir/$f"
11646          else
11647            # /dev/null tree
11648            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11649 echo "$as_me: error: cannot find input file: $f" >&2;}
11650    { (exit 1); exit 1; }; }
11651          fi;;
11652       esac
11653     done` || { (exit 1); exit 1; }
11654   # Remove the trailing spaces.
11655   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11656
11657 _ACEOF
11658
11659 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11660 # `conftest.undefs', that substitutes the proper values into
11661 # config.h.in to produce config.h.  The first handles `#define'
11662 # templates, and the second `#undef' templates.
11663 # And first: Protect against being on the right side of a sed subst in
11664 # config.status.  Protect against being in an unquoted here document
11665 # in config.status.
11666 rm -f conftest.defines conftest.undefs
11667 # Using a here document instead of a string reduces the quoting nightmare.
11668 # Putting comments in sed scripts is not portable.
11669 #
11670 # `end' is used to avoid that the second main sed command (meant for
11671 # 0-ary CPP macros) applies to n-ary macro definitions.
11672 # See the Autoconf documentation for `clear'.
11673 cat >confdef2sed.sed <<\_ACEOF
11674 s/[\\&,]/\\&/g
11675 s,[\\$`],\\&,g
11676 t clear
11677 : clear
11678 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11679 t end
11680 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11681 : end
11682 _ACEOF
11683 # If some macros were called several times there might be several times
11684 # the same #defines, which is useless.  Nevertheless, we may not want to
11685 # sort them, since we want the *last* AC-DEFINE to be honored.
11686 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11687 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11688 rm -f confdef2sed.sed
11689
11690 # This sed command replaces #undef with comments.  This is necessary, for
11691 # example, in the case of _POSIX_SOURCE, which is predefined and required
11692 # on some systems where configure will not decide to define it.
11693 cat >>conftest.undefs <<\_ACEOF
11694 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11695 _ACEOF
11696
11697 # Break up conftest.defines because some shells have a limit on the size
11698 # of here documents, and old seds have small limits too (100 cmds).
11699 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11700 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11701 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11702 echo '  :' >>$CONFIG_STATUS
11703 rm -f conftest.tail
11704 while grep . conftest.defines >/dev/null
11705 do
11706   # Write a limited-size here document to $tmp/defines.sed.
11707   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11708   # Speed up: don't consider the non `#define' lines.
11709   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11710   # Work around the forget-to-reset-the-flag bug.
11711   echo 't clr' >>$CONFIG_STATUS
11712   echo ': clr' >>$CONFIG_STATUS
11713   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11714   echo 'CEOF
11715   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11716   rm -f $tmp/in
11717   mv $tmp/out $tmp/in
11718 ' >>$CONFIG_STATUS
11719   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11720   rm -f conftest.defines
11721   mv conftest.tail conftest.defines
11722 done
11723 rm -f conftest.defines
11724 echo '  fi # grep' >>$CONFIG_STATUS
11725 echo >>$CONFIG_STATUS
11726
11727 # Break up conftest.undefs because some shells have a limit on the size
11728 # of here documents, and old seds have small limits too (100 cmds).
11729 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11730 rm -f conftest.tail
11731 while grep . conftest.undefs >/dev/null
11732 do
11733   # Write a limited-size here document to $tmp/undefs.sed.
11734   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11735   # Speed up: don't consider the non `#undef'
11736   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11737   # Work around the forget-to-reset-the-flag bug.
11738   echo 't clr' >>$CONFIG_STATUS
11739   echo ': clr' >>$CONFIG_STATUS
11740   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11741   echo 'CEOF
11742   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11743   rm -f $tmp/in
11744   mv $tmp/out $tmp/in
11745 ' >>$CONFIG_STATUS
11746   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11747   rm -f conftest.undefs
11748   mv conftest.tail conftest.undefs
11749 done
11750 rm -f conftest.undefs
11751
11752 cat >>$CONFIG_STATUS <<\_ACEOF
11753   # Let's still pretend it is `configure' which instantiates (i.e., don't
11754   # use $as_me), people would be surprised to read:
11755   #    /* config.h.  Generated by config.status.  */
11756   if test x"$ac_file" = x-; then
11757     echo "/* Generated by configure.  */" >$tmp/config.h
11758   else
11759     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11760   fi
11761   cat $tmp/in >>$tmp/config.h
11762   rm -f $tmp/in
11763   if test x"$ac_file" != x-; then
11764     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11765       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11766 echo "$as_me: $ac_file is unchanged" >&6;}
11767     else
11768       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11769 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11770          X"$ac_file" : 'X\(//\)[^/]' \| \
11771          X"$ac_file" : 'X\(//\)$' \| \
11772          X"$ac_file" : 'X\(/\)' \| \
11773          .     : '\(.\)' 2>/dev/null ||
11774 echo X"$ac_file" |
11775     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11776           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11777           /^X\(\/\/\)$/{ s//\1/; q; }
11778           /^X\(\/\).*/{ s//\1/; q; }
11779           s/.*/./; q'`
11780       { if $as_mkdir_p; then
11781     mkdir -p "$ac_dir"
11782   else
11783     as_dir="$ac_dir"
11784     as_dirs=
11785     while test ! -d "$as_dir"; do
11786       as_dirs="$as_dir $as_dirs"
11787       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11788 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11789          X"$as_dir" : 'X\(//\)[^/]' \| \
11790          X"$as_dir" : 'X\(//\)$' \| \
11791          X"$as_dir" : 'X\(/\)' \| \
11792          .     : '\(.\)' 2>/dev/null ||
11793 echo X"$as_dir" |
11794     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11795           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11796           /^X\(\/\/\)$/{ s//\1/; q; }
11797           /^X\(\/\).*/{ s//\1/; q; }
11798           s/.*/./; q'`
11799     done
11800     test ! -n "$as_dirs" || mkdir $as_dirs
11801   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11802 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11803    { (exit 1); exit 1; }; }; }
11804
11805       rm -f $ac_file
11806       mv $tmp/config.h $ac_file
11807     fi
11808   else
11809     cat $tmp/config.h
11810     rm -f $tmp/config.h
11811   fi
11812 done
11813 _ACEOF
11814 cat >>$CONFIG_STATUS <<\_ACEOF
11815
11816 #
11817 # CONFIG_COMMANDS section.
11818 #
11819 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11820   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11821   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11822   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11823 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11824          X"$ac_dest" : 'X\(//\)[^/]' \| \
11825          X"$ac_dest" : 'X\(//\)$' \| \
11826          X"$ac_dest" : 'X\(/\)' \| \
11827          .     : '\(.\)' 2>/dev/null ||
11828 echo X"$ac_dest" |
11829     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11830           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11831           /^X\(\/\/\)$/{ s//\1/; q; }
11832           /^X\(\/\).*/{ s//\1/; q; }
11833           s/.*/./; q'`
11834   { if $as_mkdir_p; then
11835     mkdir -p "$ac_dir"
11836   else
11837     as_dir="$ac_dir"
11838     as_dirs=
11839     while test ! -d "$as_dir"; do
11840       as_dirs="$as_dir $as_dirs"
11841       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11842 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11843          X"$as_dir" : 'X\(//\)[^/]' \| \
11844          X"$as_dir" : 'X\(//\)$' \| \
11845          X"$as_dir" : 'X\(/\)' \| \
11846          .     : '\(.\)' 2>/dev/null ||
11847 echo X"$as_dir" |
11848     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11849           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11850           /^X\(\/\/\)$/{ s//\1/; q; }
11851           /^X\(\/\).*/{ s//\1/; q; }
11852           s/.*/./; q'`
11853     done
11854     test ! -n "$as_dirs" || mkdir $as_dirs
11855   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11856 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11857    { (exit 1); exit 1; }; }; }
11858
11859   ac_builddir=.
11860
11861 if test "$ac_dir" != .; then
11862   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11863   # A "../" for each directory in $ac_dir_suffix.
11864   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11865 else
11866   ac_dir_suffix= ac_top_builddir=
11867 fi
11868
11869 case $srcdir in
11870   .)  # No --srcdir option.  We are building in place.
11871     ac_srcdir=.
11872     if test -z "$ac_top_builddir"; then
11873        ac_top_srcdir=.
11874     else
11875        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11876     fi ;;
11877   [\\/]* | ?:[\\/]* )  # Absolute path.
11878     ac_srcdir=$srcdir$ac_dir_suffix;
11879     ac_top_srcdir=$srcdir ;;
11880   *) # Relative path.
11881     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11882     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11883 esac
11884
11885 # Do not use `cd foo && pwd` to compute absolute paths, because
11886 # the directories may not exist.
11887 case `pwd` in
11888 .) ac_abs_builddir="$ac_dir";;
11889 *)
11890   case "$ac_dir" in
11891   .) ac_abs_builddir=`pwd`;;
11892   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11893   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11894   esac;;
11895 esac
11896 case $ac_abs_builddir in
11897 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11898 *)
11899   case ${ac_top_builddir}. in
11900   .) ac_abs_top_builddir=$ac_abs_builddir;;
11901   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11902   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11903   esac;;
11904 esac
11905 case $ac_abs_builddir in
11906 .) ac_abs_srcdir=$ac_srcdir;;
11907 *)
11908   case $ac_srcdir in
11909   .) ac_abs_srcdir=$ac_abs_builddir;;
11910   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11911   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11912   esac;;
11913 esac
11914 case $ac_abs_builddir in
11915 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11916 *)
11917   case $ac_top_srcdir in
11918   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11919   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11920   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11921   esac;;
11922 esac
11923
11924
11925   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11926 echo "$as_me: executing $ac_dest commands" >&6;}
11927   case $ac_dest in
11928     default ) echo timestamp > stamp-h ;;
11929   esac
11930 done
11931 _ACEOF
11932
11933 cat >>$CONFIG_STATUS <<\_ACEOF
11934
11935 { (exit 0); exit 0; }
11936 _ACEOF
11937 chmod +x $CONFIG_STATUS
11938 ac_clean_files=$ac_clean_files_save
11939
11940
11941 # configure is writing to config.log, and then calls config.status.
11942 # config.status does its own redirection, appending to config.log.
11943 # Unfortunately, on DOS this fails, as config.log is still kept open
11944 # by configure, so config.status won't be able to write to it; its
11945 # output is simply discarded.  So we exec the FD to /dev/null,
11946 # effectively closing config.log, so it can be properly (re)opened and
11947 # appended to by config.status.  When coming back to configure, we
11948 # need to make the FD available again.
11949 if test "$no_create" != yes; then
11950   ac_cs_success=:
11951   ac_config_status_args=
11952   test "$silent" = yes &&
11953     ac_config_status_args="$ac_config_status_args --quiet"
11954   exec 5>/dev/null
11955   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11956   exec 5>>config.log
11957   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11958   # would make configure fail if this is the last instruction.
11959   $ac_cs_success || { (exit 1); exit 1; }
11960 fi
11961
11962
11963           ac_config_commands="$ac_config_commands default-1"
11964