Regenerate configure for the last commit to configure.in.
[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   --disable-symbols       Disable debugging symbols (remove -g from CFLAGS)
853   --enable-profile        Enable profiling support (add -pg to CFLAGS)
854   --enable-pedantic       Enable pedantic warnings (add -pedantic to CFLAGS)
855   --enable-warnings       Enable warnings (add -Wall to CFLAGS)
856   --disable-inlines       Disable inlining for a few critical functions
857   --disable-devpoll       Disable the /dev/poll-based engine
858   --disable-kqueue        Disable the kqueue-based engine
859   --disable-epoll         Disable the epoll-based engine
860
861 Optional Packages:
862   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
863   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
864   --with-optimization=-O2 Explicitly set the compiler optimization flags
865                           (default: -O3)
866   --with-leak-detect          Turn on the leak detector(requires patched boehm)
867   --without-ipv6          disable IPv6 support (default is autodetect)
868   --with-symlink=name     Name to give the symlink; if name is "no," no
869                           symlink will be created.
870   --with-mode=mode        Permissions (in octal) to give the binary
871   --with-owner=owner      Specify owner of the installed binary
872   --with-group=group      Specify group owner of the installed binary
873   --with-domain=domain    Domain name to use in local statistics gathering
874   --with-chroot=dir       Specify that the server will be operated under
875                           a different root directory given by dir.  See
876                           doc/readme.chroot for more information.
877   --with-dpath=dir        Directory for all server data files
878   --with-cpath=file       Set server configuration file
879   --with-lpath=file       Set the debugging log file
880   --with-maxcon=maxcon    Maximum number of connections server will accept
881
882 Some influential environment variables:
883   CC          C compiler command
884   CFLAGS      C compiler flags
885   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
886               nonstandard directory <lib dir>
887   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
888               headers in a nonstandard directory <include dir>
889   CPP         C preprocessor
890
891 Use these variables to override the choices made by `configure' or to help
892 it to find libraries and programs with nonstandard names/locations.
893
894 _ACEOF
895 fi
896
897 if test "$ac_init_help" = "recursive"; then
898   # If there are subdirs, report their specific --help.
899   ac_popdir=`pwd`
900   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
901     test -d $ac_dir || continue
902     ac_builddir=.
903
904 if test "$ac_dir" != .; then
905   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
906   # A "../" for each directory in $ac_dir_suffix.
907   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
908 else
909   ac_dir_suffix= ac_top_builddir=
910 fi
911
912 case $srcdir in
913   .)  # No --srcdir option.  We are building in place.
914     ac_srcdir=.
915     if test -z "$ac_top_builddir"; then
916        ac_top_srcdir=.
917     else
918        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
919     fi ;;
920   [\\/]* | ?:[\\/]* )  # Absolute path.
921     ac_srcdir=$srcdir$ac_dir_suffix;
922     ac_top_srcdir=$srcdir ;;
923   *) # Relative path.
924     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
925     ac_top_srcdir=$ac_top_builddir$srcdir ;;
926 esac
927
928 # Do not use `cd foo && pwd` to compute absolute paths, because
929 # the directories may not exist.
930 case `pwd` in
931 .) ac_abs_builddir="$ac_dir";;
932 *)
933   case "$ac_dir" in
934   .) ac_abs_builddir=`pwd`;;
935   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
936   *) ac_abs_builddir=`pwd`/"$ac_dir";;
937   esac;;
938 esac
939 case $ac_abs_builddir in
940 .) ac_abs_top_builddir=${ac_top_builddir}.;;
941 *)
942   case ${ac_top_builddir}. in
943   .) ac_abs_top_builddir=$ac_abs_builddir;;
944   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
945   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
946   esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_srcdir=$ac_srcdir;;
950 *)
951   case $ac_srcdir in
952   .) ac_abs_srcdir=$ac_abs_builddir;;
953   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
954   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
955   esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_top_srcdir=$ac_top_srcdir;;
959 *)
960   case $ac_top_srcdir in
961   .) ac_abs_top_srcdir=$ac_abs_builddir;;
962   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
963   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
964   esac;;
965 esac
966
967     cd $ac_dir
968     # Check for guested configure; otherwise get Cygnus style configure.
969     if test -f $ac_srcdir/configure.gnu; then
970       echo
971       $SHELL $ac_srcdir/configure.gnu  --help=recursive
972     elif test -f $ac_srcdir/configure; then
973       echo
974       $SHELL $ac_srcdir/configure  --help=recursive
975     elif test -f $ac_srcdir/configure.ac ||
976            test -f $ac_srcdir/configure.in; then
977       echo
978       $ac_configure --help
979     else
980       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
981     fi
982     cd "$ac_popdir"
983   done
984 fi
985
986 test -n "$ac_init_help" && exit 0
987 if $ac_init_version; then
988   cat <<\_ACEOF
989
990 Copyright (C) 2003 Free Software Foundation, Inc.
991 This configure script is free software; the Free Software Foundation
992 gives unlimited permission to copy, distribute and modify it.
993 _ACEOF
994   exit 0
995 fi
996 exec 5>config.log
997 cat >&5 <<_ACEOF
998 This file contains any messages produced by compilers while
999 running configure, to aid debugging if configure makes a mistake.
1000
1001 It was created by $as_me, which was
1002 generated by GNU Autoconf 2.59.  Invocation command line was
1003
1004   $ $0 $@
1005
1006 _ACEOF
1007 {
1008 cat <<_ASUNAME
1009 ## --------- ##
1010 ## Platform. ##
1011 ## --------- ##
1012
1013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1018
1019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1020 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1021
1022 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1023 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1025 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1026 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1027 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1028 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1029
1030 _ASUNAME
1031
1032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1033 for as_dir in $PATH
1034 do
1035   IFS=$as_save_IFS
1036   test -z "$as_dir" && as_dir=.
1037   echo "PATH: $as_dir"
1038 done
1039
1040 } >&5
1041
1042 cat >&5 <<_ACEOF
1043
1044
1045 ## ----------- ##
1046 ## Core tests. ##
1047 ## ----------- ##
1048
1049 _ACEOF
1050
1051
1052 # Keep a trace of the command line.
1053 # Strip out --no-create and --no-recursion so they do not pile up.
1054 # Strip out --silent because we don't want to record it for future runs.
1055 # Also quote any args containing shell meta-characters.
1056 # Make two passes to allow for proper duplicate-argument suppression.
1057 ac_configure_args=
1058 ac_configure_args0=
1059 ac_configure_args1=
1060 ac_sep=
1061 ac_must_keep_next=false
1062 for ac_pass in 1 2
1063 do
1064   for ac_arg
1065   do
1066     case $ac_arg in
1067     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1068     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069     | -silent | --silent | --silen | --sile | --sil)
1070       continue ;;
1071     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1072       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1073     esac
1074     case $ac_pass in
1075     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1076     2)
1077       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1078       if test $ac_must_keep_next = true; then
1079         ac_must_keep_next=false # Got value, back to normal.
1080       else
1081         case $ac_arg in
1082           *=* | --config-cache | -C | -disable-* | --disable-* \
1083           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1084           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1085           | -with-* | --with-* | -without-* | --without-* | --x)
1086             case "$ac_configure_args0 " in
1087               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1088             esac
1089             ;;
1090           -* ) ac_must_keep_next=true ;;
1091         esac
1092       fi
1093       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1094       # Get rid of the leading space.
1095       ac_sep=" "
1096       ;;
1097     esac
1098   done
1099 done
1100 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1101 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1102
1103 # When interrupted or exit'd, cleanup temporary files, and complete
1104 # config.log.  We remove comments because anyway the quotes in there
1105 # would cause problems or look ugly.
1106 # WARNING: Be sure not to use single quotes in there, as some shells,
1107 # such as our DU 5.0 friend, will then `close' the trap.
1108 trap 'exit_status=$?
1109   # Save into config.log some information that might help in debugging.
1110   {
1111     echo
1112
1113     cat <<\_ASBOX
1114 ## ---------------- ##
1115 ## Cache variables. ##
1116 ## ---------------- ##
1117 _ASBOX
1118     echo
1119     # The following way of writing the cache mishandles newlines in values,
1120 {
1121   (set) 2>&1 |
1122     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1123     *ac_space=\ *)
1124       sed -n \
1125         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1126           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1127       ;;
1128     *)
1129       sed -n \
1130         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1131       ;;
1132     esac;
1133 }
1134     echo
1135
1136     cat <<\_ASBOX
1137 ## ----------------- ##
1138 ## Output variables. ##
1139 ## ----------------- ##
1140 _ASBOX
1141     echo
1142     for ac_var in $ac_subst_vars
1143     do
1144       eval ac_val=$`echo $ac_var`
1145       echo "$ac_var='"'"'$ac_val'"'"'"
1146     done | sort
1147     echo
1148
1149     if test -n "$ac_subst_files"; then
1150       cat <<\_ASBOX
1151 ## ------------- ##
1152 ## Output files. ##
1153 ## ------------- ##
1154 _ASBOX
1155       echo
1156       for ac_var in $ac_subst_files
1157       do
1158         eval ac_val=$`echo $ac_var`
1159         echo "$ac_var='"'"'$ac_val'"'"'"
1160       done | sort
1161       echo
1162     fi
1163
1164     if test -s confdefs.h; then
1165       cat <<\_ASBOX
1166 ## ----------- ##
1167 ## confdefs.h. ##
1168 ## ----------- ##
1169 _ASBOX
1170       echo
1171       sed "/^$/d" confdefs.h | sort
1172       echo
1173     fi
1174     test "$ac_signal" != 0 &&
1175       echo "$as_me: caught signal $ac_signal"
1176     echo "$as_me: exit $exit_status"
1177   } >&5
1178   rm -f core *.core &&
1179   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1180     exit $exit_status
1181      ' 0
1182 for ac_signal in 1 2 13 15; do
1183   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1184 done
1185 ac_signal=0
1186
1187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1188 rm -rf conftest* confdefs.h
1189 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1190 echo >confdefs.h
1191
1192 # Predefined preprocessor variables.
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_NAME "$PACKAGE_NAME"
1196 _ACEOF
1197
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_STRING "$PACKAGE_STRING"
1211 _ACEOF
1212
1213
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1216 _ACEOF
1217
1218
1219 # Let the site file select an alternate cache file if it wants to.
1220 # Prefer explicitly selected file to automatically selected ones.
1221 if test -z "$CONFIG_SITE"; then
1222   if test "x$prefix" != xNONE; then
1223     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1224   else
1225     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1226   fi
1227 fi
1228 for ac_site_file in $CONFIG_SITE; do
1229   if test -r "$ac_site_file"; then
1230     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1231 echo "$as_me: loading site script $ac_site_file" >&6;}
1232     sed 's/^/| /' "$ac_site_file" >&5
1233     . "$ac_site_file"
1234   fi
1235 done
1236
1237 if test -r "$cache_file"; then
1238   # Some versions of bash will fail to source /dev/null (special
1239   # files actually), so we avoid doing that.
1240   if test -f "$cache_file"; then
1241     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1242 echo "$as_me: loading cache $cache_file" >&6;}
1243     case $cache_file in
1244       [\\/]* | ?:[\\/]* ) . $cache_file;;
1245       *)                      . ./$cache_file;;
1246     esac
1247   fi
1248 else
1249   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1250 echo "$as_me: creating cache $cache_file" >&6;}
1251   >$cache_file
1252 fi
1253
1254 # Check that the precious variables saved in the cache have kept the same
1255 # value.
1256 ac_cache_corrupted=false
1257 for ac_var in `(set) 2>&1 |
1258                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1259   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1260   eval ac_new_set=\$ac_env_${ac_var}_set
1261   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1262   eval ac_new_val="\$ac_env_${ac_var}_value"
1263   case $ac_old_set,$ac_new_set in
1264     set,)
1265       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1267       ac_cache_corrupted=: ;;
1268     ,set)
1269       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1271       ac_cache_corrupted=: ;;
1272     ,);;
1273     *)
1274       if test "x$ac_old_val" != "x$ac_new_val"; then
1275         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1276 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1277         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1278 echo "$as_me:   former value:  $ac_old_val" >&2;}
1279         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1280 echo "$as_me:   current value: $ac_new_val" >&2;}
1281         ac_cache_corrupted=:
1282       fi;;
1283   esac
1284   # Pass precious variables to config.status.
1285   if test "$ac_new_set" = set; then
1286     case $ac_new_val in
1287     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1289     *) ac_arg=$ac_var=$ac_new_val ;;
1290     esac
1291     case " $ac_configure_args " in
1292       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1293       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1294     esac
1295   fi
1296 done
1297 if $ac_cache_corrupted; then
1298   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1299 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1300   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1301 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1302    { (exit 1); exit 1; }; }
1303 fi
1304
1305 ac_ext=c
1306 ac_cpp='$CPP $CPPFLAGS'
1307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331 echo "$as_me:$LINENO: checking for installation prefix" >&5
1332 echo $ECHO_N "checking for installation prefix... $ECHO_C" >&6
1333 if test "${unet_cv_prefix+set}" = set; then
1334   echo $ECHO_N "(cached) $ECHO_C" >&6
1335 else
1336   unet_cv_prefix=$HOME
1337 fi
1338
1339 if test x"$prefix" != xNONE; then
1340     unet_cv_prefix=$prefix
1341 fi
1342 echo "$as_me:$LINENO: result: $unet_cv_prefix" >&5
1343 echo "${ECHO_T}$unet_cv_prefix" >&6
1344 ac_default_prefix=$unet_cv_prefix
1345
1346           ac_config_headers="$ac_config_headers config.h"
1347
1348
1349
1350
1351 ac_aux_dir=
1352 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1353   if test -f $ac_dir/install-sh; then
1354     ac_aux_dir=$ac_dir
1355     ac_install_sh="$ac_aux_dir/install-sh -c"
1356     break
1357   elif test -f $ac_dir/install.sh; then
1358     ac_aux_dir=$ac_dir
1359     ac_install_sh="$ac_aux_dir/install.sh -c"
1360     break
1361   elif test -f $ac_dir/shtool; then
1362     ac_aux_dir=$ac_dir
1363     ac_install_sh="$ac_aux_dir/shtool install -c"
1364     break
1365   fi
1366 done
1367 if test -z "$ac_aux_dir"; then
1368   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1369 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1370    { (exit 1); exit 1; }; }
1371 fi
1372 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1373 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1374 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1375
1376 # Make sure we can run config.sub.
1377 $ac_config_sub sun4 >/dev/null 2>&1 ||
1378   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1379 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1380    { (exit 1); exit 1; }; }
1381
1382 echo "$as_me:$LINENO: checking build system type" >&5
1383 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1384 if test "${ac_cv_build+set}" = set; then
1385   echo $ECHO_N "(cached) $ECHO_C" >&6
1386 else
1387   ac_cv_build_alias=$build_alias
1388 test -z "$ac_cv_build_alias" &&
1389   ac_cv_build_alias=`$ac_config_guess`
1390 test -z "$ac_cv_build_alias" &&
1391   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1392 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1393    { (exit 1); exit 1; }; }
1394 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1395   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1396 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1397    { (exit 1); exit 1; }; }
1398
1399 fi
1400 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1401 echo "${ECHO_T}$ac_cv_build" >&6
1402 build=$ac_cv_build
1403 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1404 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1405 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1406
1407
1408 echo "$as_me:$LINENO: checking host system type" >&5
1409 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1410 if test "${ac_cv_host+set}" = set; then
1411   echo $ECHO_N "(cached) $ECHO_C" >&6
1412 else
1413   ac_cv_host_alias=$host_alias
1414 test -z "$ac_cv_host_alias" &&
1415   ac_cv_host_alias=$ac_cv_build_alias
1416 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1417   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1418 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1419    { (exit 1); exit 1; }; }
1420
1421 fi
1422 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1423 echo "${ECHO_T}$ac_cv_host" >&6
1424 host=$ac_cv_host
1425 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428
1429
1430
1431 ac_ext=c
1432 ac_cpp='$CPP $CPPFLAGS'
1433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1436 if test -n "$ac_tool_prefix"; then
1437   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1438 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1439 echo "$as_me:$LINENO: checking for $ac_word" >&5
1440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1441 if test "${ac_cv_prog_CC+set}" = set; then
1442   echo $ECHO_N "(cached) $ECHO_C" >&6
1443 else
1444   if test -n "$CC"; then
1445   ac_cv_prog_CC="$CC" # Let the user override the test.
1446 else
1447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1448 for as_dir in $PATH
1449 do
1450   IFS=$as_save_IFS
1451   test -z "$as_dir" && as_dir=.
1452   for ac_exec_ext in '' $ac_executable_extensions; do
1453   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1454     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1456     break 2
1457   fi
1458 done
1459 done
1460
1461 fi
1462 fi
1463 CC=$ac_cv_prog_CC
1464 if test -n "$CC"; then
1465   echo "$as_me:$LINENO: result: $CC" >&5
1466 echo "${ECHO_T}$CC" >&6
1467 else
1468   echo "$as_me:$LINENO: result: no" >&5
1469 echo "${ECHO_T}no" >&6
1470 fi
1471
1472 fi
1473 if test -z "$ac_cv_prog_CC"; then
1474   ac_ct_CC=$CC
1475   # Extract the first word of "gcc", so it can be a program name with args.
1476 set dummy gcc; ac_word=$2
1477 echo "$as_me:$LINENO: checking for $ac_word" >&5
1478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1480   echo $ECHO_N "(cached) $ECHO_C" >&6
1481 else
1482   if test -n "$ac_ct_CC"; then
1483   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1484 else
1485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 for as_dir in $PATH
1487 do
1488   IFS=$as_save_IFS
1489   test -z "$as_dir" && as_dir=.
1490   for ac_exec_ext in '' $ac_executable_extensions; do
1491   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492     ac_cv_prog_ac_ct_CC="gcc"
1493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1494     break 2
1495   fi
1496 done
1497 done
1498
1499 fi
1500 fi
1501 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1502 if test -n "$ac_ct_CC"; then
1503   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1504 echo "${ECHO_T}$ac_ct_CC" >&6
1505 else
1506   echo "$as_me:$LINENO: result: no" >&5
1507 echo "${ECHO_T}no" >&6
1508 fi
1509
1510   CC=$ac_ct_CC
1511 else
1512   CC="$ac_cv_prog_CC"
1513 fi
1514
1515 if test -z "$CC"; then
1516   if test -n "$ac_tool_prefix"; then
1517   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1518 set dummy ${ac_tool_prefix}cc; ac_word=$2
1519 echo "$as_me:$LINENO: checking for $ac_word" >&5
1520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521 if test "${ac_cv_prog_CC+set}" = set; then
1522   echo $ECHO_N "(cached) $ECHO_C" >&6
1523 else
1524   if test -n "$CC"; then
1525   ac_cv_prog_CC="$CC" # Let the user override the test.
1526 else
1527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528 for as_dir in $PATH
1529 do
1530   IFS=$as_save_IFS
1531   test -z "$as_dir" && as_dir=.
1532   for ac_exec_ext in '' $ac_executable_extensions; do
1533   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534     ac_cv_prog_CC="${ac_tool_prefix}cc"
1535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1536     break 2
1537   fi
1538 done
1539 done
1540
1541 fi
1542 fi
1543 CC=$ac_cv_prog_CC
1544 if test -n "$CC"; then
1545   echo "$as_me:$LINENO: result: $CC" >&5
1546 echo "${ECHO_T}$CC" >&6
1547 else
1548   echo "$as_me:$LINENO: result: no" >&5
1549 echo "${ECHO_T}no" >&6
1550 fi
1551
1552 fi
1553 if test -z "$ac_cv_prog_CC"; then
1554   ac_ct_CC=$CC
1555   # Extract the first word of "cc", so it can be a program name with args.
1556 set dummy cc; ac_word=$2
1557 echo "$as_me:$LINENO: checking for $ac_word" >&5
1558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1560   echo $ECHO_N "(cached) $ECHO_C" >&6
1561 else
1562   if test -n "$ac_ct_CC"; then
1563   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1564 else
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566 for as_dir in $PATH
1567 do
1568   IFS=$as_save_IFS
1569   test -z "$as_dir" && as_dir=.
1570   for ac_exec_ext in '' $ac_executable_extensions; do
1571   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1572     ac_cv_prog_ac_ct_CC="cc"
1573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1574     break 2
1575   fi
1576 done
1577 done
1578
1579 fi
1580 fi
1581 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1582 if test -n "$ac_ct_CC"; then
1583   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1584 echo "${ECHO_T}$ac_ct_CC" >&6
1585 else
1586   echo "$as_me:$LINENO: result: no" >&5
1587 echo "${ECHO_T}no" >&6
1588 fi
1589
1590   CC=$ac_ct_CC
1591 else
1592   CC="$ac_cv_prog_CC"
1593 fi
1594
1595 fi
1596 if test -z "$CC"; then
1597   # Extract the first word of "cc", so it can be a program name with args.
1598 set dummy cc; ac_word=$2
1599 echo "$as_me:$LINENO: checking for $ac_word" >&5
1600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601 if test "${ac_cv_prog_CC+set}" = set; then
1602   echo $ECHO_N "(cached) $ECHO_C" >&6
1603 else
1604   if test -n "$CC"; then
1605   ac_cv_prog_CC="$CC" # Let the user override the test.
1606 else
1607   ac_prog_rejected=no
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609 for as_dir in $PATH
1610 do
1611   IFS=$as_save_IFS
1612   test -z "$as_dir" && as_dir=.
1613   for ac_exec_ext in '' $ac_executable_extensions; do
1614   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1616        ac_prog_rejected=yes
1617        continue
1618      fi
1619     ac_cv_prog_CC="cc"
1620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1621     break 2
1622   fi
1623 done
1624 done
1625
1626 if test $ac_prog_rejected = yes; then
1627   # We found a bogon in the path, so make sure we never use it.
1628   set dummy $ac_cv_prog_CC
1629   shift
1630   if test $# != 0; then
1631     # We chose a different compiler from the bogus one.
1632     # However, it has the same basename, so the bogon will be chosen
1633     # first if we set CC to just the basename; use the full file name.
1634     shift
1635     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1636   fi
1637 fi
1638 fi
1639 fi
1640 CC=$ac_cv_prog_CC
1641 if test -n "$CC"; then
1642   echo "$as_me:$LINENO: result: $CC" >&5
1643 echo "${ECHO_T}$CC" >&6
1644 else
1645   echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1647 fi
1648
1649 fi
1650 if test -z "$CC"; then
1651   if test -n "$ac_tool_prefix"; then
1652   for ac_prog in cl
1653   do
1654     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1656 echo "$as_me:$LINENO: checking for $ac_word" >&5
1657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658 if test "${ac_cv_prog_CC+set}" = set; then
1659   echo $ECHO_N "(cached) $ECHO_C" >&6
1660 else
1661   if test -n "$CC"; then
1662   ac_cv_prog_CC="$CC" # Let the user override the test.
1663 else
1664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665 for as_dir in $PATH
1666 do
1667   IFS=$as_save_IFS
1668   test -z "$as_dir" && as_dir=.
1669   for ac_exec_ext in '' $ac_executable_extensions; do
1670   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1671     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673     break 2
1674   fi
1675 done
1676 done
1677
1678 fi
1679 fi
1680 CC=$ac_cv_prog_CC
1681 if test -n "$CC"; then
1682   echo "$as_me:$LINENO: result: $CC" >&5
1683 echo "${ECHO_T}$CC" >&6
1684 else
1685   echo "$as_me:$LINENO: result: no" >&5
1686 echo "${ECHO_T}no" >&6
1687 fi
1688
1689     test -n "$CC" && break
1690   done
1691 fi
1692 if test -z "$CC"; then
1693   ac_ct_CC=$CC
1694   for ac_prog in cl
1695 do
1696   # Extract the first word of "$ac_prog", so it can be a program name with args.
1697 set dummy $ac_prog; ac_word=$2
1698 echo "$as_me:$LINENO: checking for $ac_word" >&5
1699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1701   echo $ECHO_N "(cached) $ECHO_C" >&6
1702 else
1703   if test -n "$ac_ct_CC"; then
1704   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1705 else
1706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707 for as_dir in $PATH
1708 do
1709   IFS=$as_save_IFS
1710   test -z "$as_dir" && as_dir=.
1711   for ac_exec_ext in '' $ac_executable_extensions; do
1712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1713     ac_cv_prog_ac_ct_CC="$ac_prog"
1714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715     break 2
1716   fi
1717 done
1718 done
1719
1720 fi
1721 fi
1722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1723 if test -n "$ac_ct_CC"; then
1724   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1725 echo "${ECHO_T}$ac_ct_CC" >&6
1726 else
1727   echo "$as_me:$LINENO: result: no" >&5
1728 echo "${ECHO_T}no" >&6
1729 fi
1730
1731   test -n "$ac_ct_CC" && break
1732 done
1733
1734   CC=$ac_ct_CC
1735 fi
1736
1737 fi
1738
1739
1740 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1741 See \`config.log' for more details." >&5
1742 echo "$as_me: error: no acceptable C compiler found in \$PATH
1743 See \`config.log' for more details." >&2;}
1744    { (exit 1); exit 1; }; }
1745
1746 # Provide some information about the compiler.
1747 echo "$as_me:$LINENO:" \
1748      "checking for C compiler version" >&5
1749 ac_compiler=`set X $ac_compile; echo $2`
1750 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1751   (eval $ac_compiler --version </dev/null >&5) 2>&5
1752   ac_status=$?
1753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1754   (exit $ac_status); }
1755 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1756   (eval $ac_compiler -v </dev/null >&5) 2>&5
1757   ac_status=$?
1758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759   (exit $ac_status); }
1760 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1761   (eval $ac_compiler -V </dev/null >&5) 2>&5
1762   ac_status=$?
1763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764   (exit $ac_status); }
1765
1766 cat >conftest.$ac_ext <<_ACEOF
1767 /* confdefs.h.  */
1768 _ACEOF
1769 cat confdefs.h >>conftest.$ac_ext
1770 cat >>conftest.$ac_ext <<_ACEOF
1771 /* end confdefs.h.  */
1772
1773 int
1774 main ()
1775 {
1776
1777   ;
1778   return 0;
1779 }
1780 _ACEOF
1781 ac_clean_files_save=$ac_clean_files
1782 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1783 # Try to create an executable without -o first, disregard a.out.
1784 # It will help us diagnose broken compilers, and finding out an intuition
1785 # of exeext.
1786 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1787 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1788 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1789 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1790   (eval $ac_link_default) 2>&5
1791   ac_status=$?
1792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793   (exit $ac_status); }; then
1794   # Find the output, starting from the most likely.  This scheme is
1795 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1796 # resort.
1797
1798 # Be careful to initialize this variable, since it used to be cached.
1799 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1800 ac_cv_exeext=
1801 # b.out is created by i960 compilers.
1802 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1803 do
1804   test -f "$ac_file" || continue
1805   case $ac_file in
1806     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1807         ;;
1808     conftest.$ac_ext )
1809         # This is the source file.
1810         ;;
1811     [ab].out )
1812         # We found the default executable, but exeext='' is most
1813         # certainly right.
1814         break;;
1815     *.* )
1816         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1817         # FIXME: I believe we export ac_cv_exeext for Libtool,
1818         # but it would be cool to find out if it's true.  Does anybody
1819         # maintain Libtool? --akim.
1820         export ac_cv_exeext
1821         break;;
1822     * )
1823         break;;
1824   esac
1825 done
1826 else
1827   echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1829
1830 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1831 See \`config.log' for more details." >&5
1832 echo "$as_me: error: C compiler cannot create executables
1833 See \`config.log' for more details." >&2;}
1834    { (exit 77); exit 77; }; }
1835 fi
1836
1837 ac_exeext=$ac_cv_exeext
1838 echo "$as_me:$LINENO: result: $ac_file" >&5
1839 echo "${ECHO_T}$ac_file" >&6
1840
1841 # Check the compiler produces executables we can run.  If not, either
1842 # the compiler is broken, or we cross compile.
1843 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1844 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1845 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1846 # If not cross compiling, check that we can run a simple program.
1847 if test "$cross_compiling" != yes; then
1848   if { ac_try='./$ac_file'
1849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1850   (eval $ac_try) 2>&5
1851   ac_status=$?
1852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853   (exit $ac_status); }; }; then
1854     cross_compiling=no
1855   else
1856     if test "$cross_compiling" = maybe; then
1857         cross_compiling=yes
1858     else
1859         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1860 If you meant to cross compile, use \`--host'.
1861 See \`config.log' for more details." >&5
1862 echo "$as_me: error: cannot run C compiled programs.
1863 If you meant to cross compile, use \`--host'.
1864 See \`config.log' for more details." >&2;}
1865    { (exit 1); exit 1; }; }
1866     fi
1867   fi
1868 fi
1869 echo "$as_me:$LINENO: result: yes" >&5
1870 echo "${ECHO_T}yes" >&6
1871
1872 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1873 ac_clean_files=$ac_clean_files_save
1874 # Check the compiler produces executables we can run.  If not, either
1875 # the compiler is broken, or we cross compile.
1876 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1877 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1878 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1879 echo "${ECHO_T}$cross_compiling" >&6
1880
1881 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1882 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1884   (eval $ac_link) 2>&5
1885   ac_status=$?
1886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887   (exit $ac_status); }; then
1888   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1889 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1890 # work properly (i.e., refer to `conftest.exe'), while it won't with
1891 # `rm'.
1892 for ac_file in conftest.exe conftest conftest.*; do
1893   test -f "$ac_file" || continue
1894   case $ac_file in
1895     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1896     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1897           export ac_cv_exeext
1898           break;;
1899     * ) break;;
1900   esac
1901 done
1902 else
1903   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1904 See \`config.log' for more details." >&5
1905 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1906 See \`config.log' for more details." >&2;}
1907    { (exit 1); exit 1; }; }
1908 fi
1909
1910 rm -f conftest$ac_cv_exeext
1911 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1912 echo "${ECHO_T}$ac_cv_exeext" >&6
1913
1914 rm -f conftest.$ac_ext
1915 EXEEXT=$ac_cv_exeext
1916 ac_exeext=$EXEEXT
1917 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1918 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1919 if test "${ac_cv_objext+set}" = set; then
1920   echo $ECHO_N "(cached) $ECHO_C" >&6
1921 else
1922   cat >conftest.$ac_ext <<_ACEOF
1923 /* confdefs.h.  */
1924 _ACEOF
1925 cat confdefs.h >>conftest.$ac_ext
1926 cat >>conftest.$ac_ext <<_ACEOF
1927 /* end confdefs.h.  */
1928
1929 int
1930 main ()
1931 {
1932
1933   ;
1934   return 0;
1935 }
1936 _ACEOF
1937 rm -f conftest.o conftest.obj
1938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1939   (eval $ac_compile) 2>&5
1940   ac_status=$?
1941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942   (exit $ac_status); }; then
1943   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1944   case $ac_file in
1945     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1946     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1947        break;;
1948   esac
1949 done
1950 else
1951   echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1953
1954 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1955 See \`config.log' for more details." >&5
1956 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1957 See \`config.log' for more details." >&2;}
1958    { (exit 1); exit 1; }; }
1959 fi
1960
1961 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1962 fi
1963 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1964 echo "${ECHO_T}$ac_cv_objext" >&6
1965 OBJEXT=$ac_cv_objext
1966 ac_objext=$OBJEXT
1967 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1968 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1969 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1970   echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972   cat >conftest.$ac_ext <<_ACEOF
1973 /* confdefs.h.  */
1974 _ACEOF
1975 cat confdefs.h >>conftest.$ac_ext
1976 cat >>conftest.$ac_ext <<_ACEOF
1977 /* end confdefs.h.  */
1978
1979 int
1980 main ()
1981 {
1982 #ifndef __GNUC__
1983        choke me
1984 #endif
1985
1986   ;
1987   return 0;
1988 }
1989 _ACEOF
1990 rm -f conftest.$ac_objext
1991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1992   (eval $ac_compile) 2>conftest.er1
1993   ac_status=$?
1994   grep -v '^ *+' conftest.er1 >conftest.err
1995   rm -f conftest.er1
1996   cat conftest.err >&5
1997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998   (exit $ac_status); } &&
1999          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001   (eval $ac_try) 2>&5
2002   ac_status=$?
2003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004   (exit $ac_status); }; } &&
2005          { ac_try='test -s conftest.$ac_objext'
2006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007   (eval $ac_try) 2>&5
2008   ac_status=$?
2009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010   (exit $ac_status); }; }; then
2011   ac_compiler_gnu=yes
2012 else
2013   echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2015
2016 ac_compiler_gnu=no
2017 fi
2018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2019 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2020
2021 fi
2022 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2023 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2024 GCC=`test $ac_compiler_gnu = yes && echo yes`
2025 ac_test_CFLAGS=${CFLAGS+set}
2026 ac_save_CFLAGS=$CFLAGS
2027 CFLAGS="-g"
2028 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2029 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2030 if test "${ac_cv_prog_cc_g+set}" = set; then
2031   echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033   cat >conftest.$ac_ext <<_ACEOF
2034 /* confdefs.h.  */
2035 _ACEOF
2036 cat confdefs.h >>conftest.$ac_ext
2037 cat >>conftest.$ac_ext <<_ACEOF
2038 /* end confdefs.h.  */
2039
2040 int
2041 main ()
2042 {
2043
2044   ;
2045   return 0;
2046 }
2047 _ACEOF
2048 rm -f conftest.$ac_objext
2049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2050   (eval $ac_compile) 2>conftest.er1
2051   ac_status=$?
2052   grep -v '^ *+' conftest.er1 >conftest.err
2053   rm -f conftest.er1
2054   cat conftest.err >&5
2055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056   (exit $ac_status); } &&
2057          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059   (eval $ac_try) 2>&5
2060   ac_status=$?
2061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062   (exit $ac_status); }; } &&
2063          { ac_try='test -s conftest.$ac_objext'
2064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065   (eval $ac_try) 2>&5
2066   ac_status=$?
2067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068   (exit $ac_status); }; }; then
2069   ac_cv_prog_cc_g=yes
2070 else
2071   echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2073
2074 ac_cv_prog_cc_g=no
2075 fi
2076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2077 fi
2078 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2079 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2080 if test "$ac_test_CFLAGS" = set; then
2081   CFLAGS=$ac_save_CFLAGS
2082 elif test $ac_cv_prog_cc_g = yes; then
2083   if test "$GCC" = yes; then
2084     CFLAGS="-g -O2"
2085   else
2086     CFLAGS="-g"
2087   fi
2088 else
2089   if test "$GCC" = yes; then
2090     CFLAGS="-O2"
2091   else
2092     CFLAGS=
2093   fi
2094 fi
2095 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2096 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2097 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2098   echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100   ac_cv_prog_cc_stdc=no
2101 ac_save_CC=$CC
2102 cat >conftest.$ac_ext <<_ACEOF
2103 /* confdefs.h.  */
2104 _ACEOF
2105 cat confdefs.h >>conftest.$ac_ext
2106 cat >>conftest.$ac_ext <<_ACEOF
2107 /* end confdefs.h.  */
2108 #include <stdarg.h>
2109 #include <stdio.h>
2110 #include <sys/types.h>
2111 #include <sys/stat.h>
2112 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2113 struct buf { int x; };
2114 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2115 static char *e (p, i)
2116      char **p;
2117      int i;
2118 {
2119   return p[i];
2120 }
2121 static char *f (char * (*g) (char **, int), char **p, ...)
2122 {
2123   char *s;
2124   va_list v;
2125   va_start (v,p);
2126   s = g (p, va_arg (v,int));
2127   va_end (v);
2128   return s;
2129 }
2130
2131 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2132    function prototypes and stuff, but not '\xHH' hex character constants.
2133    These don't provoke an error unfortunately, instead are silently treated
2134    as 'x'.  The following induces an error, until -std1 is added to get
2135    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2136    array size at least.  It's necessary to write '\x00'==0 to get something
2137    that's true only with -std1.  */
2138 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2139
2140 int test (int i, double x);
2141 struct s1 {int (*f) (int a);};
2142 struct s2 {int (*f) (double a);};
2143 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2144 int argc;
2145 char **argv;
2146 int
2147 main ()
2148 {
2149 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2150   ;
2151   return 0;
2152 }
2153 _ACEOF
2154 # Don't try gcc -ansi; that turns off useful extensions and
2155 # breaks some systems' header files.
2156 # AIX                   -qlanglvl=ansi
2157 # Ultrix and OSF/1      -std1
2158 # HP-UX 10.20 and later -Ae
2159 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2160 # SVR4                  -Xc -D__EXTENSIONS__
2161 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2162 do
2163   CC="$ac_save_CC $ac_arg"
2164   rm -f conftest.$ac_objext
2165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2166   (eval $ac_compile) 2>conftest.er1
2167   ac_status=$?
2168   grep -v '^ *+' conftest.er1 >conftest.err
2169   rm -f conftest.er1
2170   cat conftest.err >&5
2171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172   (exit $ac_status); } &&
2173          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175   (eval $ac_try) 2>&5
2176   ac_status=$?
2177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178   (exit $ac_status); }; } &&
2179          { ac_try='test -s conftest.$ac_objext'
2180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181   (eval $ac_try) 2>&5
2182   ac_status=$?
2183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184   (exit $ac_status); }; }; then
2185   ac_cv_prog_cc_stdc=$ac_arg
2186 break
2187 else
2188   echo "$as_me: failed program was:" >&5
2189 sed 's/^/| /' conftest.$ac_ext >&5
2190
2191 fi
2192 rm -f conftest.err conftest.$ac_objext
2193 done
2194 rm -f conftest.$ac_ext conftest.$ac_objext
2195 CC=$ac_save_CC
2196
2197 fi
2198
2199 case "x$ac_cv_prog_cc_stdc" in
2200   x|xno)
2201     echo "$as_me:$LINENO: result: none needed" >&5
2202 echo "${ECHO_T}none needed" >&6 ;;
2203   *)
2204     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2205 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2206     CC="$CC $ac_cv_prog_cc_stdc" ;;
2207 esac
2208
2209 # Some people use a C++ compiler to compile C.  Since we use `exit',
2210 # in C++ we need to declare it.  In case someone uses the same compiler
2211 # for both compiling C and C++ we need to have the C++ compiler decide
2212 # the declaration of exit, since it's the most demanding environment.
2213 cat >conftest.$ac_ext <<_ACEOF
2214 #ifndef __cplusplus
2215   choke me
2216 #endif
2217 _ACEOF
2218 rm -f conftest.$ac_objext
2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220   (eval $ac_compile) 2>conftest.er1
2221   ac_status=$?
2222   grep -v '^ *+' conftest.er1 >conftest.err
2223   rm -f conftest.er1
2224   cat conftest.err >&5
2225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226   (exit $ac_status); } &&
2227          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229   (eval $ac_try) 2>&5
2230   ac_status=$?
2231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232   (exit $ac_status); }; } &&
2233          { ac_try='test -s conftest.$ac_objext'
2234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235   (eval $ac_try) 2>&5
2236   ac_status=$?
2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238   (exit $ac_status); }; }; then
2239   for ac_declaration in \
2240    '' \
2241    'extern "C" void std::exit (int) throw (); using std::exit;' \
2242    'extern "C" void std::exit (int); using std::exit;' \
2243    'extern "C" void exit (int) throw ();' \
2244    'extern "C" void exit (int);' \
2245    'void exit (int);'
2246 do
2247   cat >conftest.$ac_ext <<_ACEOF
2248 /* confdefs.h.  */
2249 _ACEOF
2250 cat confdefs.h >>conftest.$ac_ext
2251 cat >>conftest.$ac_ext <<_ACEOF
2252 /* end confdefs.h.  */
2253 $ac_declaration
2254 #include <stdlib.h>
2255 int
2256 main ()
2257 {
2258 exit (42);
2259   ;
2260   return 0;
2261 }
2262 _ACEOF
2263 rm -f conftest.$ac_objext
2264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2265   (eval $ac_compile) 2>conftest.er1
2266   ac_status=$?
2267   grep -v '^ *+' conftest.er1 >conftest.err
2268   rm -f conftest.er1
2269   cat conftest.err >&5
2270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271   (exit $ac_status); } &&
2272          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274   (eval $ac_try) 2>&5
2275   ac_status=$?
2276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277   (exit $ac_status); }; } &&
2278          { ac_try='test -s conftest.$ac_objext'
2279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280   (eval $ac_try) 2>&5
2281   ac_status=$?
2282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283   (exit $ac_status); }; }; then
2284   :
2285 else
2286   echo "$as_me: failed program was:" >&5
2287 sed 's/^/| /' conftest.$ac_ext >&5
2288
2289 continue
2290 fi
2291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2292   cat >conftest.$ac_ext <<_ACEOF
2293 /* confdefs.h.  */
2294 _ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h.  */
2298 $ac_declaration
2299 int
2300 main ()
2301 {
2302 exit (42);
2303   ;
2304   return 0;
2305 }
2306 _ACEOF
2307 rm -f conftest.$ac_objext
2308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309   (eval $ac_compile) 2>conftest.er1
2310   ac_status=$?
2311   grep -v '^ *+' conftest.er1 >conftest.err
2312   rm -f conftest.er1
2313   cat conftest.err >&5
2314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315   (exit $ac_status); } &&
2316          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318   (eval $ac_try) 2>&5
2319   ac_status=$?
2320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321   (exit $ac_status); }; } &&
2322          { ac_try='test -s conftest.$ac_objext'
2323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324   (eval $ac_try) 2>&5
2325   ac_status=$?
2326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327   (exit $ac_status); }; }; then
2328   break
2329 else
2330   echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.$ac_ext >&5
2332
2333 fi
2334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2335 done
2336 rm -f conftest*
2337 if test -n "$ac_declaration"; then
2338   echo '#ifdef __cplusplus' >>confdefs.h
2339   echo $ac_declaration      >>confdefs.h
2340   echo '#endif'             >>confdefs.h
2341 fi
2342
2343 else
2344   echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2346
2347 fi
2348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2349 ac_ext=c
2350 ac_cpp='$CPP $CPPFLAGS'
2351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2354
2355
2356
2357
2358
2359
2360 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2361 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2362 if test "${am_cv_prog_cc_stdc+set}" = set; then
2363   echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365   am_cv_prog_cc_stdc=no
2366 ac_save_CC="$CC"
2367 # Don't try gcc -ansi; that turns off useful extensions and
2368 # breaks some systems' header files.
2369 # AIX                   -qlanglvl=ansi
2370 # Ultrix and OSF/1      -std1
2371 # HP-UX 10.20 and later -Ae
2372 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2373 # SVR4                  -Xc -D__EXTENSIONS__
2374 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2375 do
2376   CC="$ac_save_CC $ac_arg"
2377   cat >conftest.$ac_ext <<_ACEOF
2378 /* confdefs.h.  */
2379 _ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h.  */
2383 #include <stdarg.h>
2384 #include <stdio.h>
2385 #include <sys/types.h>
2386 #include <sys/stat.h>
2387 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2388 struct buf { int x; };
2389 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2390 static char *e (p, i)
2391      char **p;
2392      int i;
2393 {
2394   return p[i];
2395 }
2396 static char *f (char * (*g) (char **, int), char **p, ...)
2397 {
2398   char *s;
2399   va_list v;
2400   va_start (v,p);
2401   s = g (p, va_arg (v,int));
2402   va_end (v);
2403   return s;
2404 }
2405 int test (int i, double x);
2406 struct s1 {int (*f) (int a);};
2407 struct s2 {int (*f) (double a);};
2408 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2409 int argc;
2410 char **argv;
2411
2412 int
2413 main ()
2414 {
2415
2416 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2417
2418   ;
2419   return 0;
2420 }
2421 _ACEOF
2422 rm -f conftest.$ac_objext
2423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424   (eval $ac_compile) 2>conftest.er1
2425   ac_status=$?
2426   grep -v '^ *+' conftest.er1 >conftest.err
2427   rm -f conftest.er1
2428   cat conftest.err >&5
2429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); } &&
2431          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433   (eval $ac_try) 2>&5
2434   ac_status=$?
2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436   (exit $ac_status); }; } &&
2437          { ac_try='test -s conftest.$ac_objext'
2438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439   (eval $ac_try) 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }; }; then
2443   am_cv_prog_cc_stdc="$ac_arg"; break
2444 else
2445   echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2447
2448 fi
2449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2450 done
2451 CC="$ac_save_CC"
2452
2453 fi
2454
2455 if test -z "$am_cv_prog_cc_stdc"; then
2456   echo "$as_me:$LINENO: result: none needed" >&5
2457 echo "${ECHO_T}none needed" >&6
2458 else
2459   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2460 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2461 fi
2462 case "x$am_cv_prog_cc_stdc" in
2463   x|xno) ;;
2464   *) CC="$CC $am_cv_prog_cc_stdc" ;;
2465 esac
2466
2467
2468 # Check whether --with-optimization or --without-optimization was given.
2469 if test "${with_optimization+set}" = set; then
2470   withval="$with_optimization"
2471   unet_cv_optimization=$withval
2472 else
2473   unet_cv_optimization='-O3'
2474 fi;
2475 echo "$as_me:$LINENO: checking optimization level" >&5
2476 echo $ECHO_N "checking optimization level... $ECHO_C" >&6
2477 if test "${unet_cv_optimization+set}" = set; then
2478   echo $ECHO_N "(cached) $ECHO_C" >&6
2479 else
2480   unet_cv_optimization='-O3'
2481 fi
2482 echo "$as_me:$LINENO: result: $unet_cv_optimization" >&5
2483 echo "${ECHO_T}$unet_cv_optimization" >&6
2484 if test "x$unet_cv_optimization" = "xno" ; then
2485     unet_cv_optimization=""
2486 fi
2487 if test x"$CFLAGS" != x; then
2488     CFLAGS=`echo "$CFLAGS" | sed -e s/-O2/$unet_cv_optimization/`
2489 fi
2490 if test x"$CFLAGS" != x; then
2491     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pipe//g'`
2492 fi
2493 if test x"$CFLAGS" != x; then
2494     unet_old_cflags=$CFLAGS
2495     CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
2496 fi
2497 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2498     # If -g was already there, force symbols to be enabled
2499     unet_cv_enable_symbols=yes
2500 fi
2501 if test x"$CFLAGS" != x; then
2502     unet_old_cflags=$CFLAGS
2503     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
2504 fi
2505 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2506     # If -pg was already there, force profiling to be enabled
2507     unet_cv_enable_profile=yes
2508 fi
2509 if test x"$CFLAGS" != x; then
2510     unet_old_cflags=$CFLAGS
2511     CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wall//g'`
2512 fi
2513 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2514     # If -Wall was already there, force warnings to be enabled
2515     unet_cv_enable_warnings=yes
2516 fi
2517 if test x"$CFLAGS" != x; then
2518     unet_old_cflags=$CFLAGS
2519     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pedantic//g'`
2520 fi
2521 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2522     # If -pedantic was already there, force pedatic to be enabled
2523     unet_cv_enable_pedantic=yes
2524 fi
2525
2526
2527 echo "$as_me:$LINENO: checking for library containing crypt" >&5
2528 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
2529 if test "${ac_cv_search_crypt+set}" = set; then
2530   echo $ECHO_N "(cached) $ECHO_C" >&6
2531 else
2532   ac_func_search_save_LIBS=$LIBS
2533 ac_cv_search_crypt=no
2534 cat >conftest.$ac_ext <<_ACEOF
2535 /* confdefs.h.  */
2536 _ACEOF
2537 cat confdefs.h >>conftest.$ac_ext
2538 cat >>conftest.$ac_ext <<_ACEOF
2539 /* end confdefs.h.  */
2540
2541 /* Override any gcc2 internal prototype to avoid an error.  */
2542 #ifdef __cplusplus
2543 extern "C"
2544 #endif
2545 /* We use char because int might match the return type of a gcc2
2546    builtin and then its argument prototype would still apply.  */
2547 char crypt ();
2548 int
2549 main ()
2550 {
2551 crypt ();
2552   ;
2553   return 0;
2554 }
2555 _ACEOF
2556 rm -f conftest.$ac_objext conftest$ac_exeext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2558   (eval $ac_link) 2>conftest.er1
2559   ac_status=$?
2560   grep -v '^ *+' conftest.er1 >conftest.err
2561   rm -f conftest.er1
2562   cat conftest.err >&5
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); } &&
2565          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567   (eval $ac_try) 2>&5
2568   ac_status=$?
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); }; } &&
2571          { ac_try='test -s conftest$ac_exeext'
2572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573   (eval $ac_try) 2>&5
2574   ac_status=$?
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); }; }; then
2577   ac_cv_search_crypt="none required"
2578 else
2579   echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2581
2582 fi
2583 rm -f conftest.err conftest.$ac_objext \
2584       conftest$ac_exeext conftest.$ac_ext
2585 if test "$ac_cv_search_crypt" = no; then
2586   for ac_lib in descrypt crypt; do
2587     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2588     cat >conftest.$ac_ext <<_ACEOF
2589 /* confdefs.h.  */
2590 _ACEOF
2591 cat confdefs.h >>conftest.$ac_ext
2592 cat >>conftest.$ac_ext <<_ACEOF
2593 /* end confdefs.h.  */
2594
2595 /* Override any gcc2 internal prototype to avoid an error.  */
2596 #ifdef __cplusplus
2597 extern "C"
2598 #endif
2599 /* We use char because int might match the return type of a gcc2
2600    builtin and then its argument prototype would still apply.  */
2601 char crypt ();
2602 int
2603 main ()
2604 {
2605 crypt ();
2606   ;
2607   return 0;
2608 }
2609 _ACEOF
2610 rm -f conftest.$ac_objext conftest$ac_exeext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2612   (eval $ac_link) 2>conftest.er1
2613   ac_status=$?
2614   grep -v '^ *+' conftest.er1 >conftest.err
2615   rm -f conftest.er1
2616   cat conftest.err >&5
2617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618   (exit $ac_status); } &&
2619          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621   (eval $ac_try) 2>&5
2622   ac_status=$?
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); }; } &&
2625          { ac_try='test -s conftest$ac_exeext'
2626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627   (eval $ac_try) 2>&5
2628   ac_status=$?
2629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630   (exit $ac_status); }; }; then
2631   ac_cv_search_crypt="-l$ac_lib"
2632 break
2633 else
2634   echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2636
2637 fi
2638 rm -f conftest.err conftest.$ac_objext \
2639       conftest$ac_exeext conftest.$ac_ext
2640   done
2641 fi
2642 LIBS=$ac_func_search_save_LIBS
2643 fi
2644 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
2645 echo "${ECHO_T}$ac_cv_search_crypt" >&6
2646 if test "$ac_cv_search_crypt" != no; then
2647   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
2648
2649 else
2650   { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
2651 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
2652    { (exit 1); exit 1; }; }
2653 fi
2654
2655
2656
2657    # Most operating systems have gethostbyname() in the default searched
2658    # libraries (i.e. libc):
2659    echo "$as_me:$LINENO: checking for gethostbyname" >&5
2660 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2661 if test "${ac_cv_func_gethostbyname+set}" = set; then
2662   echo $ECHO_N "(cached) $ECHO_C" >&6
2663 else
2664   cat >conftest.$ac_ext <<_ACEOF
2665 /* confdefs.h.  */
2666 _ACEOF
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h.  */
2670 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
2671    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2672 #define gethostbyname innocuous_gethostbyname
2673
2674 /* System header to define __stub macros and hopefully few prototypes,
2675     which can conflict with char gethostbyname (); below.
2676     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2677     <limits.h> exists even on freestanding compilers.  */
2678
2679 #ifdef __STDC__
2680 # include <limits.h>
2681 #else
2682 # include <assert.h>
2683 #endif
2684
2685 #undef gethostbyname
2686
2687 /* Override any gcc2 internal prototype to avoid an error.  */
2688 #ifdef __cplusplus
2689 extern "C"
2690 {
2691 #endif
2692 /* We use char because int might match the return type of a gcc2
2693    builtin and then its argument prototype would still apply.  */
2694 char gethostbyname ();
2695 /* The GNU C library defines this for functions which it implements
2696     to always fail with ENOSYS.  Some functions are actually named
2697     something starting with __ and the normal name is an alias.  */
2698 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2699 choke me
2700 #else
2701 char (*f) () = gethostbyname;
2702 #endif
2703 #ifdef __cplusplus
2704 }
2705 #endif
2706
2707 int
2708 main ()
2709 {
2710 return f != gethostbyname;
2711   ;
2712   return 0;
2713 }
2714 _ACEOF
2715 rm -f conftest.$ac_objext conftest$ac_exeext
2716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2717   (eval $ac_link) 2>conftest.er1
2718   ac_status=$?
2719   grep -v '^ *+' conftest.er1 >conftest.err
2720   rm -f conftest.er1
2721   cat conftest.err >&5
2722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723   (exit $ac_status); } &&
2724          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726   (eval $ac_try) 2>&5
2727   ac_status=$?
2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729   (exit $ac_status); }; } &&
2730          { ac_try='test -s conftest$ac_exeext'
2731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732   (eval $ac_try) 2>&5
2733   ac_status=$?
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); }; }; then
2736   ac_cv_func_gethostbyname=yes
2737 else
2738   echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.$ac_ext >&5
2740
2741 ac_cv_func_gethostbyname=no
2742 fi
2743 rm -f conftest.err conftest.$ac_objext \
2744       conftest$ac_exeext conftest.$ac_ext
2745 fi
2746 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2747 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2748 if test $ac_cv_func_gethostbyname = yes; then
2749   :
2750 else
2751   # Some OSes (eg. Solaris) place it in libnsl:
2752
2753 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2754 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2755 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2756   echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758   ac_check_lib_save_LIBS=$LIBS
2759 LIBS="-lnsl  $LIBS"
2760 cat >conftest.$ac_ext <<_ACEOF
2761 /* confdefs.h.  */
2762 _ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h.  */
2766
2767 /* Override any gcc2 internal prototype to avoid an error.  */
2768 #ifdef __cplusplus
2769 extern "C"
2770 #endif
2771 /* We use char because int might match the return type of a gcc2
2772    builtin and then its argument prototype would still apply.  */
2773 char gethostbyname ();
2774 int
2775 main ()
2776 {
2777 gethostbyname ();
2778   ;
2779   return 0;
2780 }
2781 _ACEOF
2782 rm -f conftest.$ac_objext conftest$ac_exeext
2783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2784   (eval $ac_link) 2>conftest.er1
2785   ac_status=$?
2786   grep -v '^ *+' conftest.er1 >conftest.err
2787   rm -f conftest.er1
2788   cat conftest.err >&5
2789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790   (exit $ac_status); } &&
2791          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793   (eval $ac_try) 2>&5
2794   ac_status=$?
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); }; } &&
2797          { ac_try='test -s conftest$ac_exeext'
2798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799   (eval $ac_try) 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }; }; then
2803   ac_cv_lib_nsl_gethostbyname=yes
2804 else
2805   echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2807
2808 ac_cv_lib_nsl_gethostbyname=no
2809 fi
2810 rm -f conftest.err conftest.$ac_objext \
2811       conftest$ac_exeext conftest.$ac_ext
2812 LIBS=$ac_check_lib_save_LIBS
2813 fi
2814 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
2815 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2816 if test $ac_cv_lib_nsl_gethostbyname = yes; then
2817   cat >>confdefs.h <<_ACEOF
2818 #define HAVE_LIBNSL 1
2819 _ACEOF
2820
2821   LIBS="-lnsl $LIBS"
2822
2823 else
2824   # Some strange OSes (SINIX) have it in libsocket:
2825
2826 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2827 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2828 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2829   echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831   ac_check_lib_save_LIBS=$LIBS
2832 LIBS="-lsocket  $LIBS"
2833 cat >conftest.$ac_ext <<_ACEOF
2834 /* confdefs.h.  */
2835 _ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h.  */
2839
2840 /* Override any gcc2 internal prototype to avoid an error.  */
2841 #ifdef __cplusplus
2842 extern "C"
2843 #endif
2844 /* We use char because int might match the return type of a gcc2
2845    builtin and then its argument prototype would still apply.  */
2846 char gethostbyname ();
2847 int
2848 main ()
2849 {
2850 gethostbyname ();
2851   ;
2852   return 0;
2853 }
2854 _ACEOF
2855 rm -f conftest.$ac_objext conftest$ac_exeext
2856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2857   (eval $ac_link) 2>conftest.er1
2858   ac_status=$?
2859   grep -v '^ *+' conftest.er1 >conftest.err
2860   rm -f conftest.er1
2861   cat conftest.err >&5
2862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863   (exit $ac_status); } &&
2864          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866   (eval $ac_try) 2>&5
2867   ac_status=$?
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); }; } &&
2870          { ac_try='test -s conftest$ac_exeext'
2871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872   (eval $ac_try) 2>&5
2873   ac_status=$?
2874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875   (exit $ac_status); }; }; then
2876   ac_cv_lib_socket_gethostbyname=yes
2877 else
2878   echo "$as_me: failed program was:" >&5
2879 sed 's/^/| /' conftest.$ac_ext >&5
2880
2881 ac_cv_lib_socket_gethostbyname=no
2882 fi
2883 rm -f conftest.err conftest.$ac_objext \
2884       conftest$ac_exeext conftest.$ac_ext
2885 LIBS=$ac_check_lib_save_LIBS
2886 fi
2887 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2888 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2889 if test $ac_cv_lib_socket_gethostbyname = yes; then
2890   cat >>confdefs.h <<_ACEOF
2891 #define HAVE_LIBSOCKET 1
2892 _ACEOF
2893
2894   LIBS="-lsocket $LIBS"
2895
2896 else
2897   # Unfortunately libsocket sometimes depends on libnsl.
2898           # AC_CHECK_LIB's API is essentially broken so the following
2899           # ugliness is necessary:
2900           echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2901 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2902 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2903   echo $ECHO_N "(cached) $ECHO_C" >&6
2904 else
2905   ac_check_lib_save_LIBS=$LIBS
2906 LIBS="-lsocket -lnsl $LIBS"
2907 cat >conftest.$ac_ext <<_ACEOF
2908 /* confdefs.h.  */
2909 _ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h.  */
2913
2914 /* Override any gcc2 internal prototype to avoid an error.  */
2915 #ifdef __cplusplus
2916 extern "C"
2917 #endif
2918 /* We use char because int might match the return type of a gcc2
2919    builtin and then its argument prototype would still apply.  */
2920 char gethostbyname ();
2921 int
2922 main ()
2923 {
2924 gethostbyname ();
2925   ;
2926   return 0;
2927 }
2928 _ACEOF
2929 rm -f conftest.$ac_objext conftest$ac_exeext
2930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2931   (eval $ac_link) 2>conftest.er1
2932   ac_status=$?
2933   grep -v '^ *+' conftest.er1 >conftest.err
2934   rm -f conftest.er1
2935   cat conftest.err >&5
2936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937   (exit $ac_status); } &&
2938          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940   (eval $ac_try) 2>&5
2941   ac_status=$?
2942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943   (exit $ac_status); }; } &&
2944          { ac_try='test -s conftest$ac_exeext'
2945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946   (eval $ac_try) 2>&5
2947   ac_status=$?
2948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949   (exit $ac_status); }; }; then
2950   ac_cv_lib_socket_gethostbyname=yes
2951 else
2952   echo "$as_me: failed program was:" >&5
2953 sed 's/^/| /' conftest.$ac_ext >&5
2954
2955 ac_cv_lib_socket_gethostbyname=no
2956 fi
2957 rm -f conftest.err conftest.$ac_objext \
2958       conftest$ac_exeext conftest.$ac_ext
2959 LIBS=$ac_check_lib_save_LIBS
2960 fi
2961 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2962 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2963 if test $ac_cv_lib_socket_gethostbyname = yes; then
2964   LIBS="-lsocket -lnsl $LIBS"
2965 else
2966
2967 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
2968 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
2969 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
2970   echo $ECHO_N "(cached) $ECHO_C" >&6
2971 else
2972   ac_check_lib_save_LIBS=$LIBS
2973 LIBS="-lresolv  $LIBS"
2974 cat >conftest.$ac_ext <<_ACEOF
2975 /* confdefs.h.  */
2976 _ACEOF
2977 cat confdefs.h >>conftest.$ac_ext
2978 cat >>conftest.$ac_ext <<_ACEOF
2979 /* end confdefs.h.  */
2980
2981 /* Override any gcc2 internal prototype to avoid an error.  */
2982 #ifdef __cplusplus
2983 extern "C"
2984 #endif
2985 /* We use char because int might match the return type of a gcc2
2986    builtin and then its argument prototype would still apply.  */
2987 char gethostbyname ();
2988 int
2989 main ()
2990 {
2991 gethostbyname ();
2992   ;
2993   return 0;
2994 }
2995 _ACEOF
2996 rm -f conftest.$ac_objext conftest$ac_exeext
2997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2998   (eval $ac_link) 2>conftest.er1
2999   ac_status=$?
3000   grep -v '^ *+' conftest.er1 >conftest.err
3001   rm -f conftest.er1
3002   cat conftest.err >&5
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); } &&
3005          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007   (eval $ac_try) 2>&5
3008   ac_status=$?
3009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010   (exit $ac_status); }; } &&
3011          { ac_try='test -s conftest$ac_exeext'
3012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013   (eval $ac_try) 2>&5
3014   ac_status=$?
3015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016   (exit $ac_status); }; }; then
3017   ac_cv_lib_resolv_gethostbyname=yes
3018 else
3019   echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3021
3022 ac_cv_lib_resolv_gethostbyname=no
3023 fi
3024 rm -f conftest.err conftest.$ac_objext \
3025       conftest$ac_exeext conftest.$ac_ext
3026 LIBS=$ac_check_lib_save_LIBS
3027 fi
3028 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3029 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3030 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3031   cat >>confdefs.h <<_ACEOF
3032 #define HAVE_LIBRESOLV 1
3033 _ACEOF
3034
3035   LIBS="-lresolv $LIBS"
3036
3037 fi
3038
3039 fi
3040
3041
3042 fi
3043
3044
3045 fi
3046
3047
3048 fi
3049
3050   echo "$as_me:$LINENO: checking for socket" >&5
3051 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3052 if test "${ac_cv_func_socket+set}" = set; then
3053   echo $ECHO_N "(cached) $ECHO_C" >&6
3054 else
3055   cat >conftest.$ac_ext <<_ACEOF
3056 /* confdefs.h.  */
3057 _ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h.  */
3061 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3062    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3063 #define socket innocuous_socket
3064
3065 /* System header to define __stub macros and hopefully few prototypes,
3066     which can conflict with char socket (); below.
3067     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3068     <limits.h> exists even on freestanding compilers.  */
3069
3070 #ifdef __STDC__
3071 # include <limits.h>
3072 #else
3073 # include <assert.h>
3074 #endif
3075
3076 #undef socket
3077
3078 /* Override any gcc2 internal prototype to avoid an error.  */
3079 #ifdef __cplusplus
3080 extern "C"
3081 {
3082 #endif
3083 /* We use char because int might match the return type of a gcc2
3084    builtin and then its argument prototype would still apply.  */
3085 char socket ();
3086 /* The GNU C library defines this for functions which it implements
3087     to always fail with ENOSYS.  Some functions are actually named
3088     something starting with __ and the normal name is an alias.  */
3089 #if defined (__stub_socket) || defined (__stub___socket)
3090 choke me
3091 #else
3092 char (*f) () = socket;
3093 #endif
3094 #ifdef __cplusplus
3095 }
3096 #endif
3097
3098 int
3099 main ()
3100 {
3101 return f != socket;
3102   ;
3103   return 0;
3104 }
3105 _ACEOF
3106 rm -f conftest.$ac_objext conftest$ac_exeext
3107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3108   (eval $ac_link) 2>conftest.er1
3109   ac_status=$?
3110   grep -v '^ *+' conftest.er1 >conftest.err
3111   rm -f conftest.er1
3112   cat conftest.err >&5
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); } &&
3115          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3117   (eval $ac_try) 2>&5
3118   ac_status=$?
3119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); }; } &&
3121          { ac_try='test -s conftest$ac_exeext'
3122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123   (eval $ac_try) 2>&5
3124   ac_status=$?
3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); }; }; then
3127   ac_cv_func_socket=yes
3128 else
3129   echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3131
3132 ac_cv_func_socket=no
3133 fi
3134 rm -f conftest.err conftest.$ac_objext \
3135       conftest$ac_exeext conftest.$ac_ext
3136 fi
3137 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3138 echo "${ECHO_T}$ac_cv_func_socket" >&6
3139 if test $ac_cv_func_socket = yes; then
3140   :
3141 else
3142
3143 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3144 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3145 if test "${ac_cv_lib_socket_socket+set}" = set; then
3146   echo $ECHO_N "(cached) $ECHO_C" >&6
3147 else
3148   ac_check_lib_save_LIBS=$LIBS
3149 LIBS="-lsocket  $LIBS"
3150 cat >conftest.$ac_ext <<_ACEOF
3151 /* confdefs.h.  */
3152 _ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h.  */
3156
3157 /* Override any gcc2 internal prototype to avoid an error.  */
3158 #ifdef __cplusplus
3159 extern "C"
3160 #endif
3161 /* We use char because int might match the return type of a gcc2
3162    builtin and then its argument prototype would still apply.  */
3163 char socket ();
3164 int
3165 main ()
3166 {
3167 socket ();
3168   ;
3169   return 0;
3170 }
3171 _ACEOF
3172 rm -f conftest.$ac_objext conftest$ac_exeext
3173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3174   (eval $ac_link) 2>conftest.er1
3175   ac_status=$?
3176   grep -v '^ *+' conftest.er1 >conftest.err
3177   rm -f conftest.er1
3178   cat conftest.err >&5
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); } &&
3181          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3183   (eval $ac_try) 2>&5
3184   ac_status=$?
3185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186   (exit $ac_status); }; } &&
3187          { ac_try='test -s conftest$ac_exeext'
3188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189   (eval $ac_try) 2>&5
3190   ac_status=$?
3191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192   (exit $ac_status); }; }; then
3193   ac_cv_lib_socket_socket=yes
3194 else
3195   echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198 ac_cv_lib_socket_socket=no
3199 fi
3200 rm -f conftest.err conftest.$ac_objext \
3201       conftest$ac_exeext conftest.$ac_ext
3202 LIBS=$ac_check_lib_save_LIBS
3203 fi
3204 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3205 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3206 if test $ac_cv_lib_socket_socket = yes; then
3207   cat >>confdefs.h <<_ACEOF
3208 #define HAVE_LIBSOCKET 1
3209 _ACEOF
3210
3211   LIBS="-lsocket $LIBS"
3212
3213 else
3214   echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3215 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3216 if test "${ac_cv_lib_socket_socket+set}" = set; then
3217   echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219   ac_check_lib_save_LIBS=$LIBS
3220 LIBS="-lsocket -lnsl $LIBS"
3221 cat >conftest.$ac_ext <<_ACEOF
3222 /* confdefs.h.  */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h.  */
3227
3228 /* Override any gcc2 internal prototype to avoid an error.  */
3229 #ifdef __cplusplus
3230 extern "C"
3231 #endif
3232 /* We use char because int might match the return type of a gcc2
3233    builtin and then its argument prototype would still apply.  */
3234 char socket ();
3235 int
3236 main ()
3237 {
3238 socket ();
3239   ;
3240   return 0;
3241 }
3242 _ACEOF
3243 rm -f conftest.$ac_objext conftest$ac_exeext
3244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3245   (eval $ac_link) 2>conftest.er1
3246   ac_status=$?
3247   grep -v '^ *+' conftest.er1 >conftest.err
3248   rm -f conftest.er1
3249   cat conftest.err >&5
3250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251   (exit $ac_status); } &&
3252          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254   (eval $ac_try) 2>&5
3255   ac_status=$?
3256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257   (exit $ac_status); }; } &&
3258          { ac_try='test -s conftest$ac_exeext'
3259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260   (eval $ac_try) 2>&5
3261   ac_status=$?
3262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263   (exit $ac_status); }; }; then
3264   ac_cv_lib_socket_socket=yes
3265 else
3266   echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3268
3269 ac_cv_lib_socket_socket=no
3270 fi
3271 rm -f conftest.err conftest.$ac_objext \
3272       conftest$ac_exeext conftest.$ac_ext
3273 LIBS=$ac_check_lib_save_LIBS
3274 fi
3275 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3276 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3277 if test $ac_cv_lib_socket_socket = yes; then
3278   LIBS="-lsocket -lnsl $LIBS"
3279 fi
3280
3281 fi
3282
3283 fi
3284
3285
3286
3287 ac_ext=c
3288 ac_cpp='$CPP $CPPFLAGS'
3289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3292 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3293 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3294 # On Suns, sometimes $CPP names a directory.
3295 if test -n "$CPP" && test -d "$CPP"; then
3296   CPP=
3297 fi
3298 if test -z "$CPP"; then
3299   if test "${ac_cv_prog_CPP+set}" = set; then
3300   echo $ECHO_N "(cached) $ECHO_C" >&6
3301 else
3302       # Double quotes because CPP needs to be expanded
3303     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3304     do
3305       ac_preproc_ok=false
3306 for ac_c_preproc_warn_flag in '' yes
3307 do
3308   # Use a header file that comes with gcc, so configuring glibc
3309   # with a fresh cross-compiler works.
3310   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3311   # <limits.h> exists even on freestanding compilers.
3312   # On the NeXT, cc -E runs the code through the compiler's parser,
3313   # not just through cpp. "Syntax error" is here to catch this case.
3314   cat >conftest.$ac_ext <<_ACEOF
3315 /* confdefs.h.  */
3316 _ACEOF
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h.  */
3320 #ifdef __STDC__
3321 # include <limits.h>
3322 #else
3323 # include <assert.h>
3324 #endif
3325                      Syntax error
3326 _ACEOF
3327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3328   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3329   ac_status=$?
3330   grep -v '^ *+' conftest.er1 >conftest.err
3331   rm -f conftest.er1
3332   cat conftest.err >&5
3333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334   (exit $ac_status); } >/dev/null; then
3335   if test -s conftest.err; then
3336     ac_cpp_err=$ac_c_preproc_warn_flag
3337     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3338   else
3339     ac_cpp_err=
3340   fi
3341 else
3342   ac_cpp_err=yes
3343 fi
3344 if test -z "$ac_cpp_err"; then
3345   :
3346 else
3347   echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3349
3350   # Broken: fails on valid input.
3351 continue
3352 fi
3353 rm -f conftest.err conftest.$ac_ext
3354
3355   # OK, works on sane cases.  Now check whether non-existent headers
3356   # can be detected and how.
3357   cat >conftest.$ac_ext <<_ACEOF
3358 /* confdefs.h.  */
3359 _ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h.  */
3363 #include <ac_nonexistent.h>
3364 _ACEOF
3365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3366   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3367   ac_status=$?
3368   grep -v '^ *+' conftest.er1 >conftest.err
3369   rm -f conftest.er1
3370   cat conftest.err >&5
3371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372   (exit $ac_status); } >/dev/null; then
3373   if test -s conftest.err; then
3374     ac_cpp_err=$ac_c_preproc_warn_flag
3375     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3376   else
3377     ac_cpp_err=
3378   fi
3379 else
3380   ac_cpp_err=yes
3381 fi
3382 if test -z "$ac_cpp_err"; then
3383   # Broken: success on invalid input.
3384 continue
3385 else
3386   echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3388
3389   # Passes both tests.
3390 ac_preproc_ok=:
3391 break
3392 fi
3393 rm -f conftest.err conftest.$ac_ext
3394
3395 done
3396 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3397 rm -f conftest.err conftest.$ac_ext
3398 if $ac_preproc_ok; then
3399   break
3400 fi
3401
3402     done
3403     ac_cv_prog_CPP=$CPP
3404
3405 fi
3406   CPP=$ac_cv_prog_CPP
3407 else
3408   ac_cv_prog_CPP=$CPP
3409 fi
3410 echo "$as_me:$LINENO: result: $CPP" >&5
3411 echo "${ECHO_T}$CPP" >&6
3412 ac_preproc_ok=false
3413 for ac_c_preproc_warn_flag in '' yes
3414 do
3415   # Use a header file that comes with gcc, so configuring glibc
3416   # with a fresh cross-compiler works.
3417   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3418   # <limits.h> exists even on freestanding compilers.
3419   # On the NeXT, cc -E runs the code through the compiler's parser,
3420   # not just through cpp. "Syntax error" is here to catch this case.
3421   cat >conftest.$ac_ext <<_ACEOF
3422 /* confdefs.h.  */
3423 _ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h.  */
3427 #ifdef __STDC__
3428 # include <limits.h>
3429 #else
3430 # include <assert.h>
3431 #endif
3432                      Syntax error
3433 _ACEOF
3434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3435   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3436   ac_status=$?
3437   grep -v '^ *+' conftest.er1 >conftest.err
3438   rm -f conftest.er1
3439   cat conftest.err >&5
3440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441   (exit $ac_status); } >/dev/null; then
3442   if test -s conftest.err; then
3443     ac_cpp_err=$ac_c_preproc_warn_flag
3444     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3445   else
3446     ac_cpp_err=
3447   fi
3448 else
3449   ac_cpp_err=yes
3450 fi
3451 if test -z "$ac_cpp_err"; then
3452   :
3453 else
3454   echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3456
3457   # Broken: fails on valid input.
3458 continue
3459 fi
3460 rm -f conftest.err conftest.$ac_ext
3461
3462   # OK, works on sane cases.  Now check whether non-existent headers
3463   # can be detected and how.
3464   cat >conftest.$ac_ext <<_ACEOF
3465 /* confdefs.h.  */
3466 _ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h.  */
3470 #include <ac_nonexistent.h>
3471 _ACEOF
3472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3473   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3474   ac_status=$?
3475   grep -v '^ *+' conftest.er1 >conftest.err
3476   rm -f conftest.er1
3477   cat conftest.err >&5
3478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479   (exit $ac_status); } >/dev/null; then
3480   if test -s conftest.err; then
3481     ac_cpp_err=$ac_c_preproc_warn_flag
3482     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3483   else
3484     ac_cpp_err=
3485   fi
3486 else
3487   ac_cpp_err=yes
3488 fi
3489 if test -z "$ac_cpp_err"; then
3490   # Broken: success on invalid input.
3491 continue
3492 else
3493   echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3495
3496   # Passes both tests.
3497 ac_preproc_ok=:
3498 break
3499 fi
3500 rm -f conftest.err conftest.$ac_ext
3501
3502 done
3503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3504 rm -f conftest.err conftest.$ac_ext
3505 if $ac_preproc_ok; then
3506   :
3507 else
3508   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3509 See \`config.log' for more details." >&5
3510 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3511 See \`config.log' for more details." >&2;}
3512    { (exit 1); exit 1; }; }
3513 fi
3514
3515 ac_ext=c
3516 ac_cpp='$CPP $CPPFLAGS'
3517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3520
3521
3522 echo "$as_me:$LINENO: checking for egrep" >&5
3523 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3524 if test "${ac_cv_prog_egrep+set}" = set; then
3525   echo $ECHO_N "(cached) $ECHO_C" >&6
3526 else
3527   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3528     then ac_cv_prog_egrep='grep -E'
3529     else ac_cv_prog_egrep='egrep'
3530     fi
3531 fi
3532 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3533 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3534  EGREP=$ac_cv_prog_egrep
3535
3536
3537 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3538 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3539 if test "${ac_cv_header_stdc+set}" = set; then
3540   echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542   cat >conftest.$ac_ext <<_ACEOF
3543 /* confdefs.h.  */
3544 _ACEOF
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h.  */
3548 #include <stdlib.h>
3549 #include <stdarg.h>
3550 #include <string.h>
3551 #include <float.h>
3552
3553 int
3554 main ()
3555 {
3556
3557   ;
3558   return 0;
3559 }
3560 _ACEOF
3561 rm -f conftest.$ac_objext
3562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3563   (eval $ac_compile) 2>conftest.er1
3564   ac_status=$?
3565   grep -v '^ *+' conftest.er1 >conftest.err
3566   rm -f conftest.er1
3567   cat conftest.err >&5
3568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569   (exit $ac_status); } &&
3570          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572   (eval $ac_try) 2>&5
3573   ac_status=$?
3574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575   (exit $ac_status); }; } &&
3576          { ac_try='test -s conftest.$ac_objext'
3577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578   (eval $ac_try) 2>&5
3579   ac_status=$?
3580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581   (exit $ac_status); }; }; then
3582   ac_cv_header_stdc=yes
3583 else
3584   echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3586
3587 ac_cv_header_stdc=no
3588 fi
3589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3590
3591 if test $ac_cv_header_stdc = yes; then
3592   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3593   cat >conftest.$ac_ext <<_ACEOF
3594 /* confdefs.h.  */
3595 _ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h.  */
3599 #include <string.h>
3600
3601 _ACEOF
3602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3603   $EGREP "memchr" >/dev/null 2>&1; then
3604   :
3605 else
3606   ac_cv_header_stdc=no
3607 fi
3608 rm -f conftest*
3609
3610 fi
3611
3612 if test $ac_cv_header_stdc = yes; then
3613   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3614   cat >conftest.$ac_ext <<_ACEOF
3615 /* confdefs.h.  */
3616 _ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h.  */
3620 #include <stdlib.h>
3621
3622 _ACEOF
3623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3624   $EGREP "free" >/dev/null 2>&1; then
3625   :
3626 else
3627   ac_cv_header_stdc=no
3628 fi
3629 rm -f conftest*
3630
3631 fi
3632
3633 if test $ac_cv_header_stdc = yes; then
3634   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3635   if test "$cross_compiling" = yes; then
3636   :
3637 else
3638   cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h.  */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h.  */
3644 #include <ctype.h>
3645 #if ((' ' & 0x0FF) == 0x020)
3646 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3647 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3648 #else
3649 # define ISLOWER(c) \
3650                    (('a' <= (c) && (c) <= 'i') \
3651                      || ('j' <= (c) && (c) <= 'r') \
3652                      || ('s' <= (c) && (c) <= 'z'))
3653 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3654 #endif
3655
3656 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3657 int
3658 main ()
3659 {
3660   int i;
3661   for (i = 0; i < 256; i++)
3662     if (XOR (islower (i), ISLOWER (i))
3663         || toupper (i) != TOUPPER (i))
3664       exit(2);
3665   exit (0);
3666 }
3667 _ACEOF
3668 rm -f conftest$ac_exeext
3669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3670   (eval $ac_link) 2>&5
3671   ac_status=$?
3672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675   (eval $ac_try) 2>&5
3676   ac_status=$?
3677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678   (exit $ac_status); }; }; then
3679   :
3680 else
3681   echo "$as_me: program exited with status $ac_status" >&5
3682 echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3684
3685 ( exit $ac_status )
3686 ac_cv_header_stdc=no
3687 fi
3688 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3689 fi
3690 fi
3691 fi
3692 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3693 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3694 if test $ac_cv_header_stdc = yes; then
3695
3696 cat >>confdefs.h <<\_ACEOF
3697 #define STDC_HEADERS 1
3698 _ACEOF
3699
3700 fi
3701
3702 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3713                   inttypes.h stdint.h unistd.h
3714 do
3715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3716 echo "$as_me:$LINENO: checking for $ac_header" >&5
3717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3719   echo $ECHO_N "(cached) $ECHO_C" >&6
3720 else
3721   cat >conftest.$ac_ext <<_ACEOF
3722 /* confdefs.h.  */
3723 _ACEOF
3724 cat confdefs.h >>conftest.$ac_ext
3725 cat >>conftest.$ac_ext <<_ACEOF
3726 /* end confdefs.h.  */
3727 $ac_includes_default
3728
3729 #include <$ac_header>
3730 _ACEOF
3731 rm -f conftest.$ac_objext
3732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3733   (eval $ac_compile) 2>conftest.er1
3734   ac_status=$?
3735   grep -v '^ *+' conftest.er1 >conftest.err
3736   rm -f conftest.er1
3737   cat conftest.err >&5
3738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739   (exit $ac_status); } &&
3740          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742   (eval $ac_try) 2>&5
3743   ac_status=$?
3744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745   (exit $ac_status); }; } &&
3746          { ac_try='test -s conftest.$ac_objext'
3747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748   (eval $ac_try) 2>&5
3749   ac_status=$?
3750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751   (exit $ac_status); }; }; then
3752   eval "$as_ac_Header=yes"
3753 else
3754   echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3756
3757 eval "$as_ac_Header=no"
3758 fi
3759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3760 fi
3761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3764   cat >>confdefs.h <<_ACEOF
3765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3766 _ACEOF
3767
3768 fi
3769
3770 done
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782 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/socket.h
3783 do
3784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3786   echo "$as_me:$LINENO: checking for $ac_header" >&5
3787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3789   echo $ECHO_N "(cached) $ECHO_C" >&6
3790 fi
3791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3793 else
3794   # Is the header compilable?
3795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3797 cat >conftest.$ac_ext <<_ACEOF
3798 /* confdefs.h.  */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h.  */
3803 $ac_includes_default
3804 #include <$ac_header>
3805 _ACEOF
3806 rm -f conftest.$ac_objext
3807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3808   (eval $ac_compile) 2>conftest.er1
3809   ac_status=$?
3810   grep -v '^ *+' conftest.er1 >conftest.err
3811   rm -f conftest.er1
3812   cat conftest.err >&5
3813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814   (exit $ac_status); } &&
3815          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817   (eval $ac_try) 2>&5
3818   ac_status=$?
3819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820   (exit $ac_status); }; } &&
3821          { ac_try='test -s conftest.$ac_objext'
3822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823   (eval $ac_try) 2>&5
3824   ac_status=$?
3825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826   (exit $ac_status); }; }; then
3827   ac_header_compiler=yes
3828 else
3829   echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3831
3832 ac_header_compiler=no
3833 fi
3834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3836 echo "${ECHO_T}$ac_header_compiler" >&6
3837
3838 # Is the header present?
3839 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3841 cat >conftest.$ac_ext <<_ACEOF
3842 /* confdefs.h.  */
3843 _ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h.  */
3847 #include <$ac_header>
3848 _ACEOF
3849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3850   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3851   ac_status=$?
3852   grep -v '^ *+' conftest.er1 >conftest.err
3853   rm -f conftest.er1
3854   cat conftest.err >&5
3855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856   (exit $ac_status); } >/dev/null; then
3857   if test -s conftest.err; then
3858     ac_cpp_err=$ac_c_preproc_warn_flag
3859     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3860   else
3861     ac_cpp_err=
3862   fi
3863 else
3864   ac_cpp_err=yes
3865 fi
3866 if test -z "$ac_cpp_err"; then
3867   ac_header_preproc=yes
3868 else
3869   echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872   ac_header_preproc=no
3873 fi
3874 rm -f conftest.err conftest.$ac_ext
3875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3876 echo "${ECHO_T}$ac_header_preproc" >&6
3877
3878 # So?  What about this header?
3879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3880   yes:no: )
3881     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3883     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3885     ac_header_preproc=yes
3886     ;;
3887   no:yes:* )
3888     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3890     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3891 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3892     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3894     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3895 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3896     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3898     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3900     (
3901       cat <<\_ASBOX
3902 ## ------------------------------------------ ##
3903 ## Report this to the AC_PACKAGE_NAME lists.  ##
3904 ## ------------------------------------------ ##
3905 _ASBOX
3906     ) |
3907       sed "s/^/$as_me: WARNING:     /" >&2
3908     ;;
3909 esac
3910 echo "$as_me:$LINENO: checking for $ac_header" >&5
3911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3913   echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915   eval "$as_ac_Header=\$ac_header_preproc"
3916 fi
3917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3919
3920 fi
3921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3922   cat >>confdefs.h <<_ACEOF
3923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3924 _ACEOF
3925
3926 fi
3927
3928 done
3929
3930
3931 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3932 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3933 if test "${ac_cv_c_bigendian+set}" = set; then
3934   echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936   # See if sys/param.h defines the BYTE_ORDER macro.
3937 cat >conftest.$ac_ext <<_ACEOF
3938 /* confdefs.h.  */
3939 _ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h.  */
3943 #include <sys/types.h>
3944 #include <sys/param.h>
3945
3946 int
3947 main ()
3948 {
3949 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3950  bogus endian macros
3951 #endif
3952
3953   ;
3954   return 0;
3955 }
3956 _ACEOF
3957 rm -f conftest.$ac_objext
3958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3959   (eval $ac_compile) 2>conftest.er1
3960   ac_status=$?
3961   grep -v '^ *+' conftest.er1 >conftest.err
3962   rm -f conftest.er1
3963   cat conftest.err >&5
3964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965   (exit $ac_status); } &&
3966          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968   (eval $ac_try) 2>&5
3969   ac_status=$?
3970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971   (exit $ac_status); }; } &&
3972          { ac_try='test -s conftest.$ac_objext'
3973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974   (eval $ac_try) 2>&5
3975   ac_status=$?
3976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977   (exit $ac_status); }; }; then
3978   # It does; now see whether it defined to BIG_ENDIAN or not.
3979 cat >conftest.$ac_ext <<_ACEOF
3980 /* confdefs.h.  */
3981 _ACEOF
3982 cat confdefs.h >>conftest.$ac_ext
3983 cat >>conftest.$ac_ext <<_ACEOF
3984 /* end confdefs.h.  */
3985 #include <sys/types.h>
3986 #include <sys/param.h>
3987
3988 int
3989 main ()
3990 {
3991 #if BYTE_ORDER != BIG_ENDIAN
3992  not big endian
3993 #endif
3994
3995   ;
3996   return 0;
3997 }
3998 _ACEOF
3999 rm -f conftest.$ac_objext
4000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4001   (eval $ac_compile) 2>conftest.er1
4002   ac_status=$?
4003   grep -v '^ *+' conftest.er1 >conftest.err
4004   rm -f conftest.er1
4005   cat conftest.err >&5
4006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007   (exit $ac_status); } &&
4008          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4010   (eval $ac_try) 2>&5
4011   ac_status=$?
4012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013   (exit $ac_status); }; } &&
4014          { ac_try='test -s conftest.$ac_objext'
4015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016   (eval $ac_try) 2>&5
4017   ac_status=$?
4018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019   (exit $ac_status); }; }; then
4020   ac_cv_c_bigendian=yes
4021 else
4022   echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4024
4025 ac_cv_c_bigendian=no
4026 fi
4027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4028 else
4029   echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4031
4032 # It does not; compile a test program.
4033 if test "$cross_compiling" = yes; then
4034   # try to guess the endianness by grepping values into an object file
4035   ac_cv_c_bigendian=unknown
4036   cat >conftest.$ac_ext <<_ACEOF
4037 /* confdefs.h.  */
4038 _ACEOF
4039 cat confdefs.h >>conftest.$ac_ext
4040 cat >>conftest.$ac_ext <<_ACEOF
4041 /* end confdefs.h.  */
4042 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4043 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4044 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4045 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4046 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4047 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4048 int
4049 main ()
4050 {
4051  _ascii (); _ebcdic ();
4052   ;
4053   return 0;
4054 }
4055 _ACEOF
4056 rm -f conftest.$ac_objext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058   (eval $ac_compile) 2>conftest.er1
4059   ac_status=$?
4060   grep -v '^ *+' conftest.er1 >conftest.err
4061   rm -f conftest.er1
4062   cat conftest.err >&5
4063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064   (exit $ac_status); } &&
4065          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067   (eval $ac_try) 2>&5
4068   ac_status=$?
4069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070   (exit $ac_status); }; } &&
4071          { ac_try='test -s conftest.$ac_objext'
4072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073   (eval $ac_try) 2>&5
4074   ac_status=$?
4075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076   (exit $ac_status); }; }; then
4077   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4078   ac_cv_c_bigendian=yes
4079 fi
4080 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4081   if test "$ac_cv_c_bigendian" = unknown; then
4082     ac_cv_c_bigendian=no
4083   else
4084     # finding both strings is unlikely to happen, but who knows?
4085     ac_cv_c_bigendian=unknown
4086   fi
4087 fi
4088 else
4089   echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4091
4092 fi
4093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4094 else
4095   cat >conftest.$ac_ext <<_ACEOF
4096 /* confdefs.h.  */
4097 _ACEOF
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h.  */
4101 int
4102 main ()
4103 {
4104   /* Are we little or big endian?  From Harbison&Steele.  */
4105   union
4106   {
4107     long l;
4108     char c[sizeof (long)];
4109   } u;
4110   u.l = 1;
4111   exit (u.c[sizeof (long) - 1] == 1);
4112 }
4113 _ACEOF
4114 rm -f conftest$ac_exeext
4115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4116   (eval $ac_link) 2>&5
4117   ac_status=$?
4118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121   (eval $ac_try) 2>&5
4122   ac_status=$?
4123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124   (exit $ac_status); }; }; then
4125   ac_cv_c_bigendian=no
4126 else
4127   echo "$as_me: program exited with status $ac_status" >&5
4128 echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4130
4131 ( exit $ac_status )
4132 ac_cv_c_bigendian=yes
4133 fi
4134 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4135 fi
4136 fi
4137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4138 fi
4139 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4140 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4141 case $ac_cv_c_bigendian in
4142   yes)
4143
4144 cat >>confdefs.h <<\_ACEOF
4145 #define WORDS_BIGENDIAN 1
4146 _ACEOF
4147  ;;
4148   no)
4149      ;;
4150   *)
4151     { { echo "$as_me:$LINENO: error: unknown endianness
4152 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4153 echo "$as_me: error: unknown endianness
4154 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4155    { (exit 1); exit 1; }; } ;;
4156 esac
4157
4158 echo "$as_me:$LINENO: checking for size_t" >&5
4159 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4160 if test "${ac_cv_type_size_t+set}" = set; then
4161   echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163   cat >conftest.$ac_ext <<_ACEOF
4164 /* confdefs.h.  */
4165 _ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h.  */
4169 $ac_includes_default
4170 int
4171 main ()
4172 {
4173 if ((size_t *) 0)
4174   return 0;
4175 if (sizeof (size_t))
4176   return 0;
4177   ;
4178   return 0;
4179 }
4180 _ACEOF
4181 rm -f conftest.$ac_objext
4182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4183   (eval $ac_compile) 2>conftest.er1
4184   ac_status=$?
4185   grep -v '^ *+' conftest.er1 >conftest.err
4186   rm -f conftest.er1
4187   cat conftest.err >&5
4188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189   (exit $ac_status); } &&
4190          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192   (eval $ac_try) 2>&5
4193   ac_status=$?
4194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195   (exit $ac_status); }; } &&
4196          { ac_try='test -s conftest.$ac_objext'
4197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198   (eval $ac_try) 2>&5
4199   ac_status=$?
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); }; }; then
4202   ac_cv_type_size_t=yes
4203 else
4204   echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4206
4207 ac_cv_type_size_t=no
4208 fi
4209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4210 fi
4211 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4212 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4213 if test $ac_cv_type_size_t = yes; then
4214   :
4215 else
4216
4217 cat >>confdefs.h <<_ACEOF
4218 #define size_t unsigned
4219 _ACEOF
4220
4221 fi
4222
4223 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4224 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4225 if test "${ac_cv_header_time+set}" = set; then
4226   echo $ECHO_N "(cached) $ECHO_C" >&6
4227 else
4228   cat >conftest.$ac_ext <<_ACEOF
4229 /* confdefs.h.  */
4230 _ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h.  */
4234 #include <sys/types.h>
4235 #include <sys/time.h>
4236 #include <time.h>
4237
4238 int
4239 main ()
4240 {
4241 if ((struct tm *) 0)
4242 return 0;
4243   ;
4244   return 0;
4245 }
4246 _ACEOF
4247 rm -f conftest.$ac_objext
4248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4249   (eval $ac_compile) 2>conftest.er1
4250   ac_status=$?
4251   grep -v '^ *+' conftest.er1 >conftest.err
4252   rm -f conftest.er1
4253   cat conftest.err >&5
4254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255   (exit $ac_status); } &&
4256          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258   (eval $ac_try) 2>&5
4259   ac_status=$?
4260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261   (exit $ac_status); }; } &&
4262          { ac_try='test -s conftest.$ac_objext'
4263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264   (eval $ac_try) 2>&5
4265   ac_status=$?
4266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267   (exit $ac_status); }; }; then
4268   ac_cv_header_time=yes
4269 else
4270   echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4272
4273 ac_cv_header_time=no
4274 fi
4275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4276 fi
4277 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4278 echo "${ECHO_T}$ac_cv_header_time" >&6
4279 if test $ac_cv_header_time = yes; then
4280
4281 cat >>confdefs.h <<\_ACEOF
4282 #define TIME_WITH_SYS_TIME 1
4283 _ACEOF
4284
4285 fi
4286
4287 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4288 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4289 if test "${ac_cv_struct_tm+set}" = set; then
4290   echo $ECHO_N "(cached) $ECHO_C" >&6
4291 else
4292   cat >conftest.$ac_ext <<_ACEOF
4293 /* confdefs.h.  */
4294 _ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h.  */
4298 #include <sys/types.h>
4299 #include <time.h>
4300
4301 int
4302 main ()
4303 {
4304 struct tm *tp; tp->tm_sec;
4305   ;
4306   return 0;
4307 }
4308 _ACEOF
4309 rm -f conftest.$ac_objext
4310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4311   (eval $ac_compile) 2>conftest.er1
4312   ac_status=$?
4313   grep -v '^ *+' conftest.er1 >conftest.err
4314   rm -f conftest.er1
4315   cat conftest.err >&5
4316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317   (exit $ac_status); } &&
4318          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4320   (eval $ac_try) 2>&5
4321   ac_status=$?
4322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323   (exit $ac_status); }; } &&
4324          { ac_try='test -s conftest.$ac_objext'
4325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4326   (eval $ac_try) 2>&5
4327   ac_status=$?
4328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329   (exit $ac_status); }; }; then
4330   ac_cv_struct_tm=time.h
4331 else
4332   echo "$as_me: failed program was:" >&5
4333 sed 's/^/| /' conftest.$ac_ext >&5
4334
4335 ac_cv_struct_tm=sys/time.h
4336 fi
4337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4338 fi
4339 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4340 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4341 if test $ac_cv_struct_tm = sys/time.h; then
4342
4343 cat >>confdefs.h <<\_ACEOF
4344 #define TM_IN_SYS_TIME 1
4345 _ACEOF
4346
4347 fi
4348
4349 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4350 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4351 if test "${ac_cv_type_uid_t+set}" = set; then
4352   echo $ECHO_N "(cached) $ECHO_C" >&6
4353 else
4354   cat >conftest.$ac_ext <<_ACEOF
4355 /* confdefs.h.  */
4356 _ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h.  */
4360 #include <sys/types.h>
4361
4362 _ACEOF
4363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4364   $EGREP "uid_t" >/dev/null 2>&1; then
4365   ac_cv_type_uid_t=yes
4366 else
4367   ac_cv_type_uid_t=no
4368 fi
4369 rm -f conftest*
4370
4371 fi
4372 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4373 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4374 if test $ac_cv_type_uid_t = no; then
4375
4376 cat >>confdefs.h <<\_ACEOF
4377 #define uid_t int
4378 _ACEOF
4379
4380
4381 cat >>confdefs.h <<\_ACEOF
4382 #define gid_t int
4383 _ACEOF
4384
4385 fi
4386
4387 echo "$as_me:$LINENO: checking for short" >&5
4388 echo $ECHO_N "checking for short... $ECHO_C" >&6
4389 if test "${ac_cv_type_short+set}" = set; then
4390   echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392   cat >conftest.$ac_ext <<_ACEOF
4393 /* confdefs.h.  */
4394 _ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h.  */
4398 $ac_includes_default
4399 int
4400 main ()
4401 {
4402 if ((short *) 0)
4403   return 0;
4404 if (sizeof (short))
4405   return 0;
4406   ;
4407   return 0;
4408 }
4409 _ACEOF
4410 rm -f conftest.$ac_objext
4411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4412   (eval $ac_compile) 2>conftest.er1
4413   ac_status=$?
4414   grep -v '^ *+' conftest.er1 >conftest.err
4415   rm -f conftest.er1
4416   cat conftest.err >&5
4417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418   (exit $ac_status); } &&
4419          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421   (eval $ac_try) 2>&5
4422   ac_status=$?
4423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424   (exit $ac_status); }; } &&
4425          { ac_try='test -s conftest.$ac_objext'
4426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427   (eval $ac_try) 2>&5
4428   ac_status=$?
4429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); }; }; then
4431   ac_cv_type_short=yes
4432 else
4433   echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4435
4436 ac_cv_type_short=no
4437 fi
4438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4439 fi
4440 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4441 echo "${ECHO_T}$ac_cv_type_short" >&6
4442
4443 echo "$as_me:$LINENO: checking size of short" >&5
4444 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4445 if test "${ac_cv_sizeof_short+set}" = set; then
4446   echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448   if test "$ac_cv_type_short" = yes; then
4449   # The cast to unsigned long works around a bug in the HP C Compiler
4450   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4451   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4452   # This bug is HP SR number 8606223364.
4453   if test "$cross_compiling" = yes; then
4454   # Depending upon the size, compute the lo and hi bounds.
4455 cat >conftest.$ac_ext <<_ACEOF
4456 /* confdefs.h.  */
4457 _ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h.  */
4461 $ac_includes_default
4462 int
4463 main ()
4464 {
4465 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4466 test_array [0] = 0
4467
4468   ;
4469   return 0;
4470 }
4471 _ACEOF
4472 rm -f conftest.$ac_objext
4473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4474   (eval $ac_compile) 2>conftest.er1
4475   ac_status=$?
4476   grep -v '^ *+' conftest.er1 >conftest.err
4477   rm -f conftest.er1
4478   cat conftest.err >&5
4479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480   (exit $ac_status); } &&
4481          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4483   (eval $ac_try) 2>&5
4484   ac_status=$?
4485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486   (exit $ac_status); }; } &&
4487          { ac_try='test -s conftest.$ac_objext'
4488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489   (eval $ac_try) 2>&5
4490   ac_status=$?
4491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492   (exit $ac_status); }; }; then
4493   ac_lo=0 ac_mid=0
4494   while :; do
4495     cat >conftest.$ac_ext <<_ACEOF
4496 /* confdefs.h.  */
4497 _ACEOF
4498 cat confdefs.h >>conftest.$ac_ext
4499 cat >>conftest.$ac_ext <<_ACEOF
4500 /* end confdefs.h.  */
4501 $ac_includes_default
4502 int
4503 main ()
4504 {
4505 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4506 test_array [0] = 0
4507
4508   ;
4509   return 0;
4510 }
4511 _ACEOF
4512 rm -f conftest.$ac_objext
4513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4514   (eval $ac_compile) 2>conftest.er1
4515   ac_status=$?
4516   grep -v '^ *+' conftest.er1 >conftest.err
4517   rm -f conftest.er1
4518   cat conftest.err >&5
4519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520   (exit $ac_status); } &&
4521          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523   (eval $ac_try) 2>&5
4524   ac_status=$?
4525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526   (exit $ac_status); }; } &&
4527          { ac_try='test -s conftest.$ac_objext'
4528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529   (eval $ac_try) 2>&5
4530   ac_status=$?
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); }; }; then
4533   ac_hi=$ac_mid; break
4534 else
4535   echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4537
4538 ac_lo=`expr $ac_mid + 1`
4539                     if test $ac_lo -le $ac_mid; then
4540                       ac_lo= ac_hi=
4541                       break
4542                     fi
4543                     ac_mid=`expr 2 '*' $ac_mid + 1`
4544 fi
4545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4546   done
4547 else
4548   echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4550
4551 cat >conftest.$ac_ext <<_ACEOF
4552 /* confdefs.h.  */
4553 _ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h.  */
4557 $ac_includes_default
4558 int
4559 main ()
4560 {
4561 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4562 test_array [0] = 0
4563
4564   ;
4565   return 0;
4566 }
4567 _ACEOF
4568 rm -f conftest.$ac_objext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4570   (eval $ac_compile) 2>conftest.er1
4571   ac_status=$?
4572   grep -v '^ *+' conftest.er1 >conftest.err
4573   rm -f conftest.er1
4574   cat conftest.err >&5
4575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576   (exit $ac_status); } &&
4577          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579   (eval $ac_try) 2>&5
4580   ac_status=$?
4581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582   (exit $ac_status); }; } &&
4583          { ac_try='test -s conftest.$ac_objext'
4584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585   (eval $ac_try) 2>&5
4586   ac_status=$?
4587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588   (exit $ac_status); }; }; then
4589   ac_hi=-1 ac_mid=-1
4590   while :; do
4591     cat >conftest.$ac_ext <<_ACEOF
4592 /* confdefs.h.  */
4593 _ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h.  */
4597 $ac_includes_default
4598 int
4599 main ()
4600 {
4601 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4602 test_array [0] = 0
4603
4604   ;
4605   return 0;
4606 }
4607 _ACEOF
4608 rm -f conftest.$ac_objext
4609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4610   (eval $ac_compile) 2>conftest.er1
4611   ac_status=$?
4612   grep -v '^ *+' conftest.er1 >conftest.err
4613   rm -f conftest.er1
4614   cat conftest.err >&5
4615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616   (exit $ac_status); } &&
4617          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619   (eval $ac_try) 2>&5
4620   ac_status=$?
4621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622   (exit $ac_status); }; } &&
4623          { ac_try='test -s conftest.$ac_objext'
4624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625   (eval $ac_try) 2>&5
4626   ac_status=$?
4627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628   (exit $ac_status); }; }; then
4629   ac_lo=$ac_mid; break
4630 else
4631   echo "$as_me: failed program was:" >&5
4632 sed 's/^/| /' conftest.$ac_ext >&5
4633
4634 ac_hi=`expr '(' $ac_mid ')' - 1`
4635                        if test $ac_mid -le $ac_hi; then
4636                          ac_lo= ac_hi=
4637                          break
4638                        fi
4639                        ac_mid=`expr 2 '*' $ac_mid`
4640 fi
4641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4642   done
4643 else
4644   echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.$ac_ext >&5
4646
4647 ac_lo= ac_hi=
4648 fi
4649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4650 fi
4651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4652 # Binary search between lo and hi bounds.
4653 while test "x$ac_lo" != "x$ac_hi"; do
4654   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4655   cat >conftest.$ac_ext <<_ACEOF
4656 /* confdefs.h.  */
4657 _ACEOF
4658 cat confdefs.h >>conftest.$ac_ext
4659 cat >>conftest.$ac_ext <<_ACEOF
4660 /* end confdefs.h.  */
4661 $ac_includes_default
4662 int
4663 main ()
4664 {
4665 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4666 test_array [0] = 0
4667
4668   ;
4669   return 0;
4670 }
4671 _ACEOF
4672 rm -f conftest.$ac_objext
4673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4674   (eval $ac_compile) 2>conftest.er1
4675   ac_status=$?
4676   grep -v '^ *+' conftest.er1 >conftest.err
4677   rm -f conftest.er1
4678   cat conftest.err >&5
4679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680   (exit $ac_status); } &&
4681          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683   (eval $ac_try) 2>&5
4684   ac_status=$?
4685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686   (exit $ac_status); }; } &&
4687          { ac_try='test -s conftest.$ac_objext'
4688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689   (eval $ac_try) 2>&5
4690   ac_status=$?
4691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692   (exit $ac_status); }; }; then
4693   ac_hi=$ac_mid
4694 else
4695   echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4697
4698 ac_lo=`expr '(' $ac_mid ')' + 1`
4699 fi
4700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4701 done
4702 case $ac_lo in
4703 ?*) ac_cv_sizeof_short=$ac_lo;;
4704 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4705 See \`config.log' for more details." >&5
4706 echo "$as_me: error: cannot compute sizeof (short), 77
4707 See \`config.log' for more details." >&2;}
4708    { (exit 1); exit 1; }; } ;;
4709 esac
4710 else
4711   if test "$cross_compiling" = yes; then
4712   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4713 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4714    { (exit 1); exit 1; }; }
4715 else
4716   cat >conftest.$ac_ext <<_ACEOF
4717 /* confdefs.h.  */
4718 _ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h.  */
4722 $ac_includes_default
4723 long longval () { return (long) (sizeof (short)); }
4724 unsigned long ulongval () { return (long) (sizeof (short)); }
4725 #include <stdio.h>
4726 #include <stdlib.h>
4727 int
4728 main ()
4729 {
4730
4731   FILE *f = fopen ("conftest.val", "w");
4732   if (! f)
4733     exit (1);
4734   if (((long) (sizeof (short))) < 0)
4735     {
4736       long i = longval ();
4737       if (i != ((long) (sizeof (short))))
4738         exit (1);
4739       fprintf (f, "%ld\n", i);
4740     }
4741   else
4742     {
4743       unsigned long i = ulongval ();
4744       if (i != ((long) (sizeof (short))))
4745         exit (1);
4746       fprintf (f, "%lu\n", i);
4747     }
4748   exit (ferror (f) || fclose (f) != 0);
4749
4750   ;
4751   return 0;
4752 }
4753 _ACEOF
4754 rm -f conftest$ac_exeext
4755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4756   (eval $ac_link) 2>&5
4757   ac_status=$?
4758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4761   (eval $ac_try) 2>&5
4762   ac_status=$?
4763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764   (exit $ac_status); }; }; then
4765   ac_cv_sizeof_short=`cat conftest.val`
4766 else
4767   echo "$as_me: program exited with status $ac_status" >&5
4768 echo "$as_me: failed program was:" >&5
4769 sed 's/^/| /' conftest.$ac_ext >&5
4770
4771 ( exit $ac_status )
4772 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4773 See \`config.log' for more details." >&5
4774 echo "$as_me: error: cannot compute sizeof (short), 77
4775 See \`config.log' for more details." >&2;}
4776    { (exit 1); exit 1; }; }
4777 fi
4778 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4779 fi
4780 fi
4781 rm -f conftest.val
4782 else
4783   ac_cv_sizeof_short=0
4784 fi
4785 fi
4786 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4787 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4788 cat >>confdefs.h <<_ACEOF
4789 #define SIZEOF_SHORT $ac_cv_sizeof_short
4790 _ACEOF
4791
4792
4793 echo "$as_me:$LINENO: checking for int" >&5
4794 echo $ECHO_N "checking for int... $ECHO_C" >&6
4795 if test "${ac_cv_type_int+set}" = set; then
4796   echo $ECHO_N "(cached) $ECHO_C" >&6
4797 else
4798   cat >conftest.$ac_ext <<_ACEOF
4799 /* confdefs.h.  */
4800 _ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h.  */
4804 $ac_includes_default
4805 int
4806 main ()
4807 {
4808 if ((int *) 0)
4809   return 0;
4810 if (sizeof (int))
4811   return 0;
4812   ;
4813   return 0;
4814 }
4815 _ACEOF
4816 rm -f conftest.$ac_objext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4818   (eval $ac_compile) 2>conftest.er1
4819   ac_status=$?
4820   grep -v '^ *+' conftest.er1 >conftest.err
4821   rm -f conftest.er1
4822   cat conftest.err >&5
4823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824   (exit $ac_status); } &&
4825          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827   (eval $ac_try) 2>&5
4828   ac_status=$?
4829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830   (exit $ac_status); }; } &&
4831          { ac_try='test -s conftest.$ac_objext'
4832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833   (eval $ac_try) 2>&5
4834   ac_status=$?
4835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836   (exit $ac_status); }; }; then
4837   ac_cv_type_int=yes
4838 else
4839   echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4841
4842 ac_cv_type_int=no
4843 fi
4844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4845 fi
4846 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4847 echo "${ECHO_T}$ac_cv_type_int" >&6
4848
4849 echo "$as_me:$LINENO: checking size of int" >&5
4850 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4851 if test "${ac_cv_sizeof_int+set}" = set; then
4852   echo $ECHO_N "(cached) $ECHO_C" >&6
4853 else
4854   if test "$ac_cv_type_int" = yes; then
4855   # The cast to unsigned long works around a bug in the HP C Compiler
4856   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4857   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4858   # This bug is HP SR number 8606223364.
4859   if test "$cross_compiling" = yes; then
4860   # Depending upon the size, compute the lo and hi bounds.
4861 cat >conftest.$ac_ext <<_ACEOF
4862 /* confdefs.h.  */
4863 _ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h.  */
4867 $ac_includes_default
4868 int
4869 main ()
4870 {
4871 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4872 test_array [0] = 0
4873
4874   ;
4875   return 0;
4876 }
4877 _ACEOF
4878 rm -f conftest.$ac_objext
4879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4880   (eval $ac_compile) 2>conftest.er1
4881   ac_status=$?
4882   grep -v '^ *+' conftest.er1 >conftest.err
4883   rm -f conftest.er1
4884   cat conftest.err >&5
4885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886   (exit $ac_status); } &&
4887          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889   (eval $ac_try) 2>&5
4890   ac_status=$?
4891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892   (exit $ac_status); }; } &&
4893          { ac_try='test -s conftest.$ac_objext'
4894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895   (eval $ac_try) 2>&5
4896   ac_status=$?
4897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898   (exit $ac_status); }; }; then
4899   ac_lo=0 ac_mid=0
4900   while :; do
4901     cat >conftest.$ac_ext <<_ACEOF
4902 /* confdefs.h.  */
4903 _ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h.  */
4907 $ac_includes_default
4908 int
4909 main ()
4910 {
4911 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4912 test_array [0] = 0
4913
4914   ;
4915   return 0;
4916 }
4917 _ACEOF
4918 rm -f conftest.$ac_objext
4919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920   (eval $ac_compile) 2>conftest.er1
4921   ac_status=$?
4922   grep -v '^ *+' conftest.er1 >conftest.err
4923   rm -f conftest.er1
4924   cat conftest.err >&5
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); } &&
4927          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929   (eval $ac_try) 2>&5
4930   ac_status=$?
4931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932   (exit $ac_status); }; } &&
4933          { ac_try='test -s conftest.$ac_objext'
4934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935   (eval $ac_try) 2>&5
4936   ac_status=$?
4937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938   (exit $ac_status); }; }; then
4939   ac_hi=$ac_mid; break
4940 else
4941   echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4943
4944 ac_lo=`expr $ac_mid + 1`
4945                     if test $ac_lo -le $ac_mid; then
4946                       ac_lo= ac_hi=
4947                       break
4948                     fi
4949                     ac_mid=`expr 2 '*' $ac_mid + 1`
4950 fi
4951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4952   done
4953 else
4954   echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4956
4957 cat >conftest.$ac_ext <<_ACEOF
4958 /* confdefs.h.  */
4959 _ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h.  */
4963 $ac_includes_default
4964 int
4965 main ()
4966 {
4967 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4968 test_array [0] = 0
4969
4970   ;
4971   return 0;
4972 }
4973 _ACEOF
4974 rm -f conftest.$ac_objext
4975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4976   (eval $ac_compile) 2>conftest.er1
4977   ac_status=$?
4978   grep -v '^ *+' conftest.er1 >conftest.err
4979   rm -f conftest.er1
4980   cat conftest.err >&5
4981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982   (exit $ac_status); } &&
4983          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985   (eval $ac_try) 2>&5
4986   ac_status=$?
4987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988   (exit $ac_status); }; } &&
4989          { ac_try='test -s conftest.$ac_objext'
4990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991   (eval $ac_try) 2>&5
4992   ac_status=$?
4993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994   (exit $ac_status); }; }; then
4995   ac_hi=-1 ac_mid=-1
4996   while :; do
4997     cat >conftest.$ac_ext <<_ACEOF
4998 /* confdefs.h.  */
4999 _ACEOF
5000 cat confdefs.h >>conftest.$ac_ext
5001 cat >>conftest.$ac_ext <<_ACEOF
5002 /* end confdefs.h.  */
5003 $ac_includes_default
5004 int
5005 main ()
5006 {
5007 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5008 test_array [0] = 0
5009
5010   ;
5011   return 0;
5012 }
5013 _ACEOF
5014 rm -f conftest.$ac_objext
5015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5016   (eval $ac_compile) 2>conftest.er1
5017   ac_status=$?
5018   grep -v '^ *+' conftest.er1 >conftest.err
5019   rm -f conftest.er1
5020   cat conftest.err >&5
5021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022   (exit $ac_status); } &&
5023          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025   (eval $ac_try) 2>&5
5026   ac_status=$?
5027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028   (exit $ac_status); }; } &&
5029          { ac_try='test -s conftest.$ac_objext'
5030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031   (eval $ac_try) 2>&5
5032   ac_status=$?
5033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); }; }; then
5035   ac_lo=$ac_mid; break
5036 else
5037   echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5039
5040 ac_hi=`expr '(' $ac_mid ')' - 1`
5041                        if test $ac_mid -le $ac_hi; then
5042                          ac_lo= ac_hi=
5043                          break
5044                        fi
5045                        ac_mid=`expr 2 '*' $ac_mid`
5046 fi
5047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5048   done
5049 else
5050   echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.$ac_ext >&5
5052
5053 ac_lo= ac_hi=
5054 fi
5055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5056 fi
5057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5058 # Binary search between lo and hi bounds.
5059 while test "x$ac_lo" != "x$ac_hi"; do
5060   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5061   cat >conftest.$ac_ext <<_ACEOF
5062 /* confdefs.h.  */
5063 _ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h.  */
5067 $ac_includes_default
5068 int
5069 main ()
5070 {
5071 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5072 test_array [0] = 0
5073
5074   ;
5075   return 0;
5076 }
5077 _ACEOF
5078 rm -f conftest.$ac_objext
5079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5080   (eval $ac_compile) 2>conftest.er1
5081   ac_status=$?
5082   grep -v '^ *+' conftest.er1 >conftest.err
5083   rm -f conftest.er1
5084   cat conftest.err >&5
5085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086   (exit $ac_status); } &&
5087          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089   (eval $ac_try) 2>&5
5090   ac_status=$?
5091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092   (exit $ac_status); }; } &&
5093          { ac_try='test -s conftest.$ac_objext'
5094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095   (eval $ac_try) 2>&5
5096   ac_status=$?
5097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098   (exit $ac_status); }; }; then
5099   ac_hi=$ac_mid
5100 else
5101   echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5103
5104 ac_lo=`expr '(' $ac_mid ')' + 1`
5105 fi
5106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5107 done
5108 case $ac_lo in
5109 ?*) ac_cv_sizeof_int=$ac_lo;;
5110 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5111 See \`config.log' for more details." >&5
5112 echo "$as_me: error: cannot compute sizeof (int), 77
5113 See \`config.log' for more details." >&2;}
5114    { (exit 1); exit 1; }; } ;;
5115 esac
5116 else
5117   if test "$cross_compiling" = yes; then
5118   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5119 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5120    { (exit 1); exit 1; }; }
5121 else
5122   cat >conftest.$ac_ext <<_ACEOF
5123 /* confdefs.h.  */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h.  */
5128 $ac_includes_default
5129 long longval () { return (long) (sizeof (int)); }
5130 unsigned long ulongval () { return (long) (sizeof (int)); }
5131 #include <stdio.h>
5132 #include <stdlib.h>
5133 int
5134 main ()
5135 {
5136
5137   FILE *f = fopen ("conftest.val", "w");
5138   if (! f)
5139     exit (1);
5140   if (((long) (sizeof (int))) < 0)
5141     {
5142       long i = longval ();
5143       if (i != ((long) (sizeof (int))))
5144         exit (1);
5145       fprintf (f, "%ld\n", i);
5146     }
5147   else
5148     {
5149       unsigned long i = ulongval ();
5150       if (i != ((long) (sizeof (int))))
5151         exit (1);
5152       fprintf (f, "%lu\n", i);
5153     }
5154   exit (ferror (f) || fclose (f) != 0);
5155
5156   ;
5157   return 0;
5158 }
5159 _ACEOF
5160 rm -f conftest$ac_exeext
5161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5162   (eval $ac_link) 2>&5
5163   ac_status=$?
5164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167   (eval $ac_try) 2>&5
5168   ac_status=$?
5169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170   (exit $ac_status); }; }; then
5171   ac_cv_sizeof_int=`cat conftest.val`
5172 else
5173   echo "$as_me: program exited with status $ac_status" >&5
5174 echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.$ac_ext >&5
5176
5177 ( exit $ac_status )
5178 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5179 See \`config.log' for more details." >&5
5180 echo "$as_me: error: cannot compute sizeof (int), 77
5181 See \`config.log' for more details." >&2;}
5182    { (exit 1); exit 1; }; }
5183 fi
5184 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5185 fi
5186 fi
5187 rm -f conftest.val
5188 else
5189   ac_cv_sizeof_int=0
5190 fi
5191 fi
5192 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5193 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5194 cat >>confdefs.h <<_ACEOF
5195 #define SIZEOF_INT $ac_cv_sizeof_int
5196 _ACEOF
5197
5198
5199 echo "$as_me:$LINENO: checking for long" >&5
5200 echo $ECHO_N "checking for long... $ECHO_C" >&6
5201 if test "${ac_cv_type_long+set}" = set; then
5202   echo $ECHO_N "(cached) $ECHO_C" >&6
5203 else
5204   cat >conftest.$ac_ext <<_ACEOF
5205 /* confdefs.h.  */
5206 _ACEOF
5207 cat confdefs.h >>conftest.$ac_ext
5208 cat >>conftest.$ac_ext <<_ACEOF
5209 /* end confdefs.h.  */
5210 $ac_includes_default
5211 int
5212 main ()
5213 {
5214 if ((long *) 0)
5215   return 0;
5216 if (sizeof (long))
5217   return 0;
5218   ;
5219   return 0;
5220 }
5221 _ACEOF
5222 rm -f conftest.$ac_objext
5223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5224   (eval $ac_compile) 2>conftest.er1
5225   ac_status=$?
5226   grep -v '^ *+' conftest.er1 >conftest.err
5227   rm -f conftest.er1
5228   cat conftest.err >&5
5229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230   (exit $ac_status); } &&
5231          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5233   (eval $ac_try) 2>&5
5234   ac_status=$?
5235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236   (exit $ac_status); }; } &&
5237          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5243   ac_cv_type_long=yes
5244 else
5245   echo "$as_me: failed program was:" >&5
5246 sed 's/^/| /' conftest.$ac_ext >&5
5247
5248 ac_cv_type_long=no
5249 fi
5250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5251 fi
5252 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5253 echo "${ECHO_T}$ac_cv_type_long" >&6
5254
5255 echo "$as_me:$LINENO: checking size of long" >&5
5256 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5257 if test "${ac_cv_sizeof_long+set}" = set; then
5258   echo $ECHO_N "(cached) $ECHO_C" >&6
5259 else
5260   if test "$ac_cv_type_long" = yes; then
5261   # The cast to unsigned long works around a bug in the HP C Compiler
5262   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5263   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5264   # This bug is HP SR number 8606223364.
5265   if test "$cross_compiling" = yes; then
5266   # Depending upon the size, compute the lo and hi bounds.
5267 cat >conftest.$ac_ext <<_ACEOF
5268 /* confdefs.h.  */
5269 _ACEOF
5270 cat confdefs.h >>conftest.$ac_ext
5271 cat >>conftest.$ac_ext <<_ACEOF
5272 /* end confdefs.h.  */
5273 $ac_includes_default
5274 int
5275 main ()
5276 {
5277 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5278 test_array [0] = 0
5279
5280   ;
5281   return 0;
5282 }
5283 _ACEOF
5284 rm -f conftest.$ac_objext
5285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5286   (eval $ac_compile) 2>conftest.er1
5287   ac_status=$?
5288   grep -v '^ *+' conftest.er1 >conftest.err
5289   rm -f conftest.er1
5290   cat conftest.err >&5
5291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292   (exit $ac_status); } &&
5293          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295   (eval $ac_try) 2>&5
5296   ac_status=$?
5297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298   (exit $ac_status); }; } &&
5299          { ac_try='test -s conftest.$ac_objext'
5300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301   (eval $ac_try) 2>&5
5302   ac_status=$?
5303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304   (exit $ac_status); }; }; then
5305   ac_lo=0 ac_mid=0
5306   while :; do
5307     cat >conftest.$ac_ext <<_ACEOF
5308 /* confdefs.h.  */
5309 _ACEOF
5310 cat confdefs.h >>conftest.$ac_ext
5311 cat >>conftest.$ac_ext <<_ACEOF
5312 /* end confdefs.h.  */
5313 $ac_includes_default
5314 int
5315 main ()
5316 {
5317 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5318 test_array [0] = 0
5319
5320   ;
5321   return 0;
5322 }
5323 _ACEOF
5324 rm -f conftest.$ac_objext
5325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5326   (eval $ac_compile) 2>conftest.er1
5327   ac_status=$?
5328   grep -v '^ *+' conftest.er1 >conftest.err
5329   rm -f conftest.er1
5330   cat conftest.err >&5
5331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332   (exit $ac_status); } &&
5333          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5335   (eval $ac_try) 2>&5
5336   ac_status=$?
5337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338   (exit $ac_status); }; } &&
5339          { ac_try='test -s conftest.$ac_objext'
5340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5341   (eval $ac_try) 2>&5
5342   ac_status=$?
5343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344   (exit $ac_status); }; }; then
5345   ac_hi=$ac_mid; break
5346 else
5347   echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5349
5350 ac_lo=`expr $ac_mid + 1`
5351                     if test $ac_lo -le $ac_mid; then
5352                       ac_lo= ac_hi=
5353                       break
5354                     fi
5355                     ac_mid=`expr 2 '*' $ac_mid + 1`
5356 fi
5357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5358   done
5359 else
5360   echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5362
5363 cat >conftest.$ac_ext <<_ACEOF
5364 /* confdefs.h.  */
5365 _ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h.  */
5369 $ac_includes_default
5370 int
5371 main ()
5372 {
5373 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5374 test_array [0] = 0
5375
5376   ;
5377   return 0;
5378 }
5379 _ACEOF
5380 rm -f conftest.$ac_objext
5381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5382   (eval $ac_compile) 2>conftest.er1
5383   ac_status=$?
5384   grep -v '^ *+' conftest.er1 >conftest.err
5385   rm -f conftest.er1
5386   cat conftest.err >&5
5387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388   (exit $ac_status); } &&
5389          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391   (eval $ac_try) 2>&5
5392   ac_status=$?
5393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394   (exit $ac_status); }; } &&
5395          { ac_try='test -s conftest.$ac_objext'
5396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397   (eval $ac_try) 2>&5
5398   ac_status=$?
5399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400   (exit $ac_status); }; }; then
5401   ac_hi=-1 ac_mid=-1
5402   while :; do
5403     cat >conftest.$ac_ext <<_ACEOF
5404 /* confdefs.h.  */
5405 _ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h.  */
5409 $ac_includes_default
5410 int
5411 main ()
5412 {
5413 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5414 test_array [0] = 0
5415
5416   ;
5417   return 0;
5418 }
5419 _ACEOF
5420 rm -f conftest.$ac_objext
5421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5422   (eval $ac_compile) 2>conftest.er1
5423   ac_status=$?
5424   grep -v '^ *+' conftest.er1 >conftest.err
5425   rm -f conftest.er1
5426   cat conftest.err >&5
5427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428   (exit $ac_status); } &&
5429          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431   (eval $ac_try) 2>&5
5432   ac_status=$?
5433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434   (exit $ac_status); }; } &&
5435          { ac_try='test -s conftest.$ac_objext'
5436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437   (eval $ac_try) 2>&5
5438   ac_status=$?
5439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440   (exit $ac_status); }; }; then
5441   ac_lo=$ac_mid; break
5442 else
5443   echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5445
5446 ac_hi=`expr '(' $ac_mid ')' - 1`
5447                        if test $ac_mid -le $ac_hi; then
5448                          ac_lo= ac_hi=
5449                          break
5450                        fi
5451                        ac_mid=`expr 2 '*' $ac_mid`
5452 fi
5453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5454   done
5455 else
5456   echo "$as_me: failed program was:" >&5
5457 sed 's/^/| /' conftest.$ac_ext >&5
5458
5459 ac_lo= ac_hi=
5460 fi
5461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5462 fi
5463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5464 # Binary search between lo and hi bounds.
5465 while test "x$ac_lo" != "x$ac_hi"; do
5466   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5467   cat >conftest.$ac_ext <<_ACEOF
5468 /* confdefs.h.  */
5469 _ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h.  */
5473 $ac_includes_default
5474 int
5475 main ()
5476 {
5477 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5478 test_array [0] = 0
5479
5480   ;
5481   return 0;
5482 }
5483 _ACEOF
5484 rm -f conftest.$ac_objext
5485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5486   (eval $ac_compile) 2>conftest.er1
5487   ac_status=$?
5488   grep -v '^ *+' conftest.er1 >conftest.err
5489   rm -f conftest.er1
5490   cat conftest.err >&5
5491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492   (exit $ac_status); } &&
5493          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495   (eval $ac_try) 2>&5
5496   ac_status=$?
5497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498   (exit $ac_status); }; } &&
5499          { ac_try='test -s conftest.$ac_objext'
5500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501   (eval $ac_try) 2>&5
5502   ac_status=$?
5503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504   (exit $ac_status); }; }; then
5505   ac_hi=$ac_mid
5506 else
5507   echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5509
5510 ac_lo=`expr '(' $ac_mid ')' + 1`
5511 fi
5512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5513 done
5514 case $ac_lo in
5515 ?*) ac_cv_sizeof_long=$ac_lo;;
5516 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5517 See \`config.log' for more details." >&5
5518 echo "$as_me: error: cannot compute sizeof (long), 77
5519 See \`config.log' for more details." >&2;}
5520    { (exit 1); exit 1; }; } ;;
5521 esac
5522 else
5523   if test "$cross_compiling" = yes; then
5524   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5525 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5526    { (exit 1); exit 1; }; }
5527 else
5528   cat >conftest.$ac_ext <<_ACEOF
5529 /* confdefs.h.  */
5530 _ACEOF
5531 cat confdefs.h >>conftest.$ac_ext
5532 cat >>conftest.$ac_ext <<_ACEOF
5533 /* end confdefs.h.  */
5534 $ac_includes_default
5535 long longval () { return (long) (sizeof (long)); }
5536 unsigned long ulongval () { return (long) (sizeof (long)); }
5537 #include <stdio.h>
5538 #include <stdlib.h>
5539 int
5540 main ()
5541 {
5542
5543   FILE *f = fopen ("conftest.val", "w");
5544   if (! f)
5545     exit (1);
5546   if (((long) (sizeof (long))) < 0)
5547     {
5548       long i = longval ();
5549       if (i != ((long) (sizeof (long))))
5550         exit (1);
5551       fprintf (f, "%ld\n", i);
5552     }
5553   else
5554     {
5555       unsigned long i = ulongval ();
5556       if (i != ((long) (sizeof (long))))
5557         exit (1);
5558       fprintf (f, "%lu\n", i);
5559     }
5560   exit (ferror (f) || fclose (f) != 0);
5561
5562   ;
5563   return 0;
5564 }
5565 _ACEOF
5566 rm -f conftest$ac_exeext
5567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5568   (eval $ac_link) 2>&5
5569   ac_status=$?
5570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573   (eval $ac_try) 2>&5
5574   ac_status=$?
5575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576   (exit $ac_status); }; }; then
5577   ac_cv_sizeof_long=`cat conftest.val`
5578 else
5579   echo "$as_me: program exited with status $ac_status" >&5
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5582
5583 ( exit $ac_status )
5584 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5585 See \`config.log' for more details." >&5
5586 echo "$as_me: error: cannot compute sizeof (long), 77
5587 See \`config.log' for more details." >&2;}
5588    { (exit 1); exit 1; }; }
5589 fi
5590 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5591 fi
5592 fi
5593 rm -f conftest.val
5594 else
5595   ac_cv_sizeof_long=0
5596 fi
5597 fi
5598 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5599 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5600 cat >>confdefs.h <<_ACEOF
5601 #define SIZEOF_LONG $ac_cv_sizeof_long
5602 _ACEOF
5603
5604
5605 echo "$as_me:$LINENO: checking for void *" >&5
5606 echo $ECHO_N "checking for void *... $ECHO_C" >&6
5607 if test "${ac_cv_type_void_p+set}" = set; then
5608   echo $ECHO_N "(cached) $ECHO_C" >&6
5609 else
5610   cat >conftest.$ac_ext <<_ACEOF
5611 /* confdefs.h.  */
5612 _ACEOF
5613 cat confdefs.h >>conftest.$ac_ext
5614 cat >>conftest.$ac_ext <<_ACEOF
5615 /* end confdefs.h.  */
5616 $ac_includes_default
5617 int
5618 main ()
5619 {
5620 if ((void * *) 0)
5621   return 0;
5622 if (sizeof (void *))
5623   return 0;
5624   ;
5625   return 0;
5626 }
5627 _ACEOF
5628 rm -f conftest.$ac_objext
5629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5630   (eval $ac_compile) 2>conftest.er1
5631   ac_status=$?
5632   grep -v '^ *+' conftest.er1 >conftest.err
5633   rm -f conftest.er1
5634   cat conftest.err >&5
5635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636   (exit $ac_status); } &&
5637          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639   (eval $ac_try) 2>&5
5640   ac_status=$?
5641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642   (exit $ac_status); }; } &&
5643          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5649   ac_cv_type_void_p=yes
5650 else
5651   echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5653
5654 ac_cv_type_void_p=no
5655 fi
5656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5657 fi
5658 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
5659 echo "${ECHO_T}$ac_cv_type_void_p" >&6
5660
5661 echo "$as_me:$LINENO: checking size of void *" >&5
5662 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
5663 if test "${ac_cv_sizeof_void_p+set}" = set; then
5664   echo $ECHO_N "(cached) $ECHO_C" >&6
5665 else
5666   if test "$ac_cv_type_void_p" = yes; then
5667   # The cast to unsigned long works around a bug in the HP C Compiler
5668   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5669   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5670   # This bug is HP SR number 8606223364.
5671   if test "$cross_compiling" = yes; then
5672   # Depending upon the size, compute the lo and hi bounds.
5673 cat >conftest.$ac_ext <<_ACEOF
5674 /* confdefs.h.  */
5675 _ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h.  */
5679 $ac_includes_default
5680 int
5681 main ()
5682 {
5683 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
5684 test_array [0] = 0
5685
5686   ;
5687   return 0;
5688 }
5689 _ACEOF
5690 rm -f conftest.$ac_objext
5691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5692   (eval $ac_compile) 2>conftest.er1
5693   ac_status=$?
5694   grep -v '^ *+' conftest.er1 >conftest.err
5695   rm -f conftest.er1
5696   cat conftest.err >&5
5697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698   (exit $ac_status); } &&
5699          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701   (eval $ac_try) 2>&5
5702   ac_status=$?
5703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704   (exit $ac_status); }; } &&
5705          { ac_try='test -s conftest.$ac_objext'
5706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707   (eval $ac_try) 2>&5
5708   ac_status=$?
5709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710   (exit $ac_status); }; }; then
5711   ac_lo=0 ac_mid=0
5712   while :; do
5713     cat >conftest.$ac_ext <<_ACEOF
5714 /* confdefs.h.  */
5715 _ACEOF
5716 cat confdefs.h >>conftest.$ac_ext
5717 cat >>conftest.$ac_ext <<_ACEOF
5718 /* end confdefs.h.  */
5719 $ac_includes_default
5720 int
5721 main ()
5722 {
5723 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5724 test_array [0] = 0
5725
5726   ;
5727   return 0;
5728 }
5729 _ACEOF
5730 rm -f conftest.$ac_objext
5731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5732   (eval $ac_compile) 2>conftest.er1
5733   ac_status=$?
5734   grep -v '^ *+' conftest.er1 >conftest.err
5735   rm -f conftest.er1
5736   cat conftest.err >&5
5737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738   (exit $ac_status); } &&
5739          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741   (eval $ac_try) 2>&5
5742   ac_status=$?
5743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744   (exit $ac_status); }; } &&
5745          { ac_try='test -s conftest.$ac_objext'
5746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747   (eval $ac_try) 2>&5
5748   ac_status=$?
5749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750   (exit $ac_status); }; }; then
5751   ac_hi=$ac_mid; break
5752 else
5753   echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5755
5756 ac_lo=`expr $ac_mid + 1`
5757                     if test $ac_lo -le $ac_mid; then
5758                       ac_lo= ac_hi=
5759                       break
5760                     fi
5761                     ac_mid=`expr 2 '*' $ac_mid + 1`
5762 fi
5763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5764   done
5765 else
5766   echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5768
5769 cat >conftest.$ac_ext <<_ACEOF
5770 /* confdefs.h.  */
5771 _ACEOF
5772 cat confdefs.h >>conftest.$ac_ext
5773 cat >>conftest.$ac_ext <<_ACEOF
5774 /* end confdefs.h.  */
5775 $ac_includes_default
5776 int
5777 main ()
5778 {
5779 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
5780 test_array [0] = 0
5781
5782   ;
5783   return 0;
5784 }
5785 _ACEOF
5786 rm -f conftest.$ac_objext
5787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5788   (eval $ac_compile) 2>conftest.er1
5789   ac_status=$?
5790   grep -v '^ *+' conftest.er1 >conftest.err
5791   rm -f conftest.er1
5792   cat conftest.err >&5
5793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794   (exit $ac_status); } &&
5795          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797   (eval $ac_try) 2>&5
5798   ac_status=$?
5799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800   (exit $ac_status); }; } &&
5801          { ac_try='test -s conftest.$ac_objext'
5802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5803   (eval $ac_try) 2>&5
5804   ac_status=$?
5805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806   (exit $ac_status); }; }; then
5807   ac_hi=-1 ac_mid=-1
5808   while :; do
5809     cat >conftest.$ac_ext <<_ACEOF
5810 /* confdefs.h.  */
5811 _ACEOF
5812 cat confdefs.h >>conftest.$ac_ext
5813 cat >>conftest.$ac_ext <<_ACEOF
5814 /* end confdefs.h.  */
5815 $ac_includes_default
5816 int
5817 main ()
5818 {
5819 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
5820 test_array [0] = 0
5821
5822   ;
5823   return 0;
5824 }
5825 _ACEOF
5826 rm -f conftest.$ac_objext
5827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5828   (eval $ac_compile) 2>conftest.er1
5829   ac_status=$?
5830   grep -v '^ *+' conftest.er1 >conftest.err
5831   rm -f conftest.er1
5832   cat conftest.err >&5
5833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834   (exit $ac_status); } &&
5835          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837   (eval $ac_try) 2>&5
5838   ac_status=$?
5839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840   (exit $ac_status); }; } &&
5841          { ac_try='test -s conftest.$ac_objext'
5842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843   (eval $ac_try) 2>&5
5844   ac_status=$?
5845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846   (exit $ac_status); }; }; then
5847   ac_lo=$ac_mid; break
5848 else
5849   echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5851
5852 ac_hi=`expr '(' $ac_mid ')' - 1`
5853                        if test $ac_mid -le $ac_hi; then
5854                          ac_lo= ac_hi=
5855                          break
5856                        fi
5857                        ac_mid=`expr 2 '*' $ac_mid`
5858 fi
5859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5860   done
5861 else
5862   echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5864
5865 ac_lo= ac_hi=
5866 fi
5867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5868 fi
5869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5870 # Binary search between lo and hi bounds.
5871 while test "x$ac_lo" != "x$ac_hi"; do
5872   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5873   cat >conftest.$ac_ext <<_ACEOF
5874 /* confdefs.h.  */
5875 _ACEOF
5876 cat confdefs.h >>conftest.$ac_ext
5877 cat >>conftest.$ac_ext <<_ACEOF
5878 /* end confdefs.h.  */
5879 $ac_includes_default
5880 int
5881 main ()
5882 {
5883 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5884 test_array [0] = 0
5885
5886   ;
5887   return 0;
5888 }
5889 _ACEOF
5890 rm -f conftest.$ac_objext
5891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5892   (eval $ac_compile) 2>conftest.er1
5893   ac_status=$?
5894   grep -v '^ *+' conftest.er1 >conftest.err
5895   rm -f conftest.er1
5896   cat conftest.err >&5
5897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898   (exit $ac_status); } &&
5899          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5901   (eval $ac_try) 2>&5
5902   ac_status=$?
5903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904   (exit $ac_status); }; } &&
5905          { ac_try='test -s conftest.$ac_objext'
5906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907   (eval $ac_try) 2>&5
5908   ac_status=$?
5909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910   (exit $ac_status); }; }; then
5911   ac_hi=$ac_mid
5912 else
5913   echo "$as_me: failed program was:" >&5
5914 sed 's/^/| /' conftest.$ac_ext >&5
5915
5916 ac_lo=`expr '(' $ac_mid ')' + 1`
5917 fi
5918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5919 done
5920 case $ac_lo in
5921 ?*) ac_cv_sizeof_void_p=$ac_lo;;
5922 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5923 See \`config.log' for more details." >&5
5924 echo "$as_me: error: cannot compute sizeof (void *), 77
5925 See \`config.log' for more details." >&2;}
5926    { (exit 1); exit 1; }; } ;;
5927 esac
5928 else
5929   if test "$cross_compiling" = yes; then
5930   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5931 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5932    { (exit 1); exit 1; }; }
5933 else
5934   cat >conftest.$ac_ext <<_ACEOF
5935 /* confdefs.h.  */
5936 _ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h.  */
5940 $ac_includes_default
5941 long longval () { return (long) (sizeof (void *)); }
5942 unsigned long ulongval () { return (long) (sizeof (void *)); }
5943 #include <stdio.h>
5944 #include <stdlib.h>
5945 int
5946 main ()
5947 {
5948
5949   FILE *f = fopen ("conftest.val", "w");
5950   if (! f)
5951     exit (1);
5952   if (((long) (sizeof (void *))) < 0)
5953     {
5954       long i = longval ();
5955       if (i != ((long) (sizeof (void *))))
5956         exit (1);
5957       fprintf (f, "%ld\n", i);
5958     }
5959   else
5960     {
5961       unsigned long i = ulongval ();
5962       if (i != ((long) (sizeof (void *))))
5963         exit (1);
5964       fprintf (f, "%lu\n", i);
5965     }
5966   exit (ferror (f) || fclose (f) != 0);
5967
5968   ;
5969   return 0;
5970 }
5971 _ACEOF
5972 rm -f conftest$ac_exeext
5973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5974   (eval $ac_link) 2>&5
5975   ac_status=$?
5976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979   (eval $ac_try) 2>&5
5980   ac_status=$?
5981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982   (exit $ac_status); }; }; then
5983   ac_cv_sizeof_void_p=`cat conftest.val`
5984 else
5985   echo "$as_me: program exited with status $ac_status" >&5
5986 echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5988
5989 ( exit $ac_status )
5990 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5991 See \`config.log' for more details." >&5
5992 echo "$as_me: error: cannot compute sizeof (void *), 77
5993 See \`config.log' for more details." >&2;}
5994    { (exit 1); exit 1; }; }
5995 fi
5996 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5997 fi
5998 fi
5999 rm -f conftest.val
6000 else
6001   ac_cv_sizeof_void_p=0
6002 fi
6003 fi
6004 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6005 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6006 cat >>confdefs.h <<_ACEOF
6007 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6008 _ACEOF
6009
6010
6011 echo "$as_me:$LINENO: checking for int64_t" >&5
6012 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
6013 if test "${ac_cv_type_int64_t+set}" = set; then
6014   echo $ECHO_N "(cached) $ECHO_C" >&6
6015 else
6016   cat >conftest.$ac_ext <<_ACEOF
6017 /* confdefs.h.  */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h.  */
6022 $ac_includes_default
6023 int
6024 main ()
6025 {
6026 if ((int64_t *) 0)
6027   return 0;
6028 if (sizeof (int64_t))
6029   return 0;
6030   ;
6031   return 0;
6032 }
6033 _ACEOF
6034 rm -f conftest.$ac_objext
6035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6036   (eval $ac_compile) 2>conftest.er1
6037   ac_status=$?
6038   grep -v '^ *+' conftest.er1 >conftest.err
6039   rm -f conftest.er1
6040   cat conftest.err >&5
6041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042   (exit $ac_status); } &&
6043          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045   (eval $ac_try) 2>&5
6046   ac_status=$?
6047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048   (exit $ac_status); }; } &&
6049          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6055   ac_cv_type_int64_t=yes
6056 else
6057   echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6059
6060 ac_cv_type_int64_t=no
6061 fi
6062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6063 fi
6064 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6065 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
6066
6067 echo "$as_me:$LINENO: checking size of int64_t" >&5
6068 echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6
6069 if test "${ac_cv_sizeof_int64_t+set}" = set; then
6070   echo $ECHO_N "(cached) $ECHO_C" >&6
6071 else
6072   if test "$ac_cv_type_int64_t" = yes; then
6073   # The cast to unsigned long works around a bug in the HP C Compiler
6074   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6075   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6076   # This bug is HP SR number 8606223364.
6077   if test "$cross_compiling" = yes; then
6078   # Depending upon the size, compute the lo and hi bounds.
6079 cat >conftest.$ac_ext <<_ACEOF
6080 /* confdefs.h.  */
6081 _ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h.  */
6085 $ac_includes_default
6086 int
6087 main ()
6088 {
6089 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= 0)];
6090 test_array [0] = 0
6091
6092   ;
6093   return 0;
6094 }
6095 _ACEOF
6096 rm -f conftest.$ac_objext
6097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6098   (eval $ac_compile) 2>conftest.er1
6099   ac_status=$?
6100   grep -v '^ *+' conftest.er1 >conftest.err
6101   rm -f conftest.er1
6102   cat conftest.err >&5
6103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104   (exit $ac_status); } &&
6105          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6107   (eval $ac_try) 2>&5
6108   ac_status=$?
6109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110   (exit $ac_status); }; } &&
6111          { ac_try='test -s conftest.$ac_objext'
6112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113   (eval $ac_try) 2>&5
6114   ac_status=$?
6115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116   (exit $ac_status); }; }; then
6117   ac_lo=0 ac_mid=0
6118   while :; do
6119     cat >conftest.$ac_ext <<_ACEOF
6120 /* confdefs.h.  */
6121 _ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h.  */
6125 $ac_includes_default
6126 int
6127 main ()
6128 {
6129 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6130 test_array [0] = 0
6131
6132   ;
6133   return 0;
6134 }
6135 _ACEOF
6136 rm -f conftest.$ac_objext
6137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6138   (eval $ac_compile) 2>conftest.er1
6139   ac_status=$?
6140   grep -v '^ *+' conftest.er1 >conftest.err
6141   rm -f conftest.er1
6142   cat conftest.err >&5
6143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144   (exit $ac_status); } &&
6145          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147   (eval $ac_try) 2>&5
6148   ac_status=$?
6149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150   (exit $ac_status); }; } &&
6151          { ac_try='test -s conftest.$ac_objext'
6152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153   (eval $ac_try) 2>&5
6154   ac_status=$?
6155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156   (exit $ac_status); }; }; then
6157   ac_hi=$ac_mid; break
6158 else
6159   echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6161
6162 ac_lo=`expr $ac_mid + 1`
6163                     if test $ac_lo -le $ac_mid; then
6164                       ac_lo= ac_hi=
6165                       break
6166                     fi
6167                     ac_mid=`expr 2 '*' $ac_mid + 1`
6168 fi
6169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6170   done
6171 else
6172   echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.$ac_ext >&5
6174
6175 cat >conftest.$ac_ext <<_ACEOF
6176 /* confdefs.h.  */
6177 _ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h.  */
6181 $ac_includes_default
6182 int
6183 main ()
6184 {
6185 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) < 0)];
6186 test_array [0] = 0
6187
6188   ;
6189   return 0;
6190 }
6191 _ACEOF
6192 rm -f conftest.$ac_objext
6193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6194   (eval $ac_compile) 2>conftest.er1
6195   ac_status=$?
6196   grep -v '^ *+' conftest.er1 >conftest.err
6197   rm -f conftest.er1
6198   cat conftest.err >&5
6199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200   (exit $ac_status); } &&
6201          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203   (eval $ac_try) 2>&5
6204   ac_status=$?
6205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206   (exit $ac_status); }; } &&
6207          { ac_try='test -s conftest.$ac_objext'
6208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209   (eval $ac_try) 2>&5
6210   ac_status=$?
6211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212   (exit $ac_status); }; }; then
6213   ac_hi=-1 ac_mid=-1
6214   while :; do
6215     cat >conftest.$ac_ext <<_ACEOF
6216 /* confdefs.h.  */
6217 _ACEOF
6218 cat confdefs.h >>conftest.$ac_ext
6219 cat >>conftest.$ac_ext <<_ACEOF
6220 /* end confdefs.h.  */
6221 $ac_includes_default
6222 int
6223 main ()
6224 {
6225 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= $ac_mid)];
6226 test_array [0] = 0
6227
6228   ;
6229   return 0;
6230 }
6231 _ACEOF
6232 rm -f conftest.$ac_objext
6233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6234   (eval $ac_compile) 2>conftest.er1
6235   ac_status=$?
6236   grep -v '^ *+' conftest.er1 >conftest.err
6237   rm -f conftest.er1
6238   cat conftest.err >&5
6239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240   (exit $ac_status); } &&
6241          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243   (eval $ac_try) 2>&5
6244   ac_status=$?
6245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246   (exit $ac_status); }; } &&
6247          { ac_try='test -s conftest.$ac_objext'
6248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249   (eval $ac_try) 2>&5
6250   ac_status=$?
6251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252   (exit $ac_status); }; }; then
6253   ac_lo=$ac_mid; break
6254 else
6255   echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.$ac_ext >&5
6257
6258 ac_hi=`expr '(' $ac_mid ')' - 1`
6259                        if test $ac_mid -le $ac_hi; then
6260                          ac_lo= ac_hi=
6261                          break
6262                        fi
6263                        ac_mid=`expr 2 '*' $ac_mid`
6264 fi
6265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6266   done
6267 else
6268   echo "$as_me: failed program was:" >&5
6269 sed 's/^/| /' conftest.$ac_ext >&5
6270
6271 ac_lo= ac_hi=
6272 fi
6273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6274 fi
6275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6276 # Binary search between lo and hi bounds.
6277 while test "x$ac_lo" != "x$ac_hi"; do
6278   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6279   cat >conftest.$ac_ext <<_ACEOF
6280 /* confdefs.h.  */
6281 _ACEOF
6282 cat confdefs.h >>conftest.$ac_ext
6283 cat >>conftest.$ac_ext <<_ACEOF
6284 /* end confdefs.h.  */
6285 $ac_includes_default
6286 int
6287 main ()
6288 {
6289 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6290 test_array [0] = 0
6291
6292   ;
6293   return 0;
6294 }
6295 _ACEOF
6296 rm -f conftest.$ac_objext
6297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6298   (eval $ac_compile) 2>conftest.er1
6299   ac_status=$?
6300   grep -v '^ *+' conftest.er1 >conftest.err
6301   rm -f conftest.er1
6302   cat conftest.err >&5
6303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304   (exit $ac_status); } &&
6305          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307   (eval $ac_try) 2>&5
6308   ac_status=$?
6309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310   (exit $ac_status); }; } &&
6311          { ac_try='test -s conftest.$ac_objext'
6312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313   (eval $ac_try) 2>&5
6314   ac_status=$?
6315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316   (exit $ac_status); }; }; then
6317   ac_hi=$ac_mid
6318 else
6319   echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6321
6322 ac_lo=`expr '(' $ac_mid ')' + 1`
6323 fi
6324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6325 done
6326 case $ac_lo in
6327 ?*) ac_cv_sizeof_int64_t=$ac_lo;;
6328 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
6329 See \`config.log' for more details." >&5
6330 echo "$as_me: error: cannot compute sizeof (int64_t), 77
6331 See \`config.log' for more details." >&2;}
6332    { (exit 1); exit 1; }; } ;;
6333 esac
6334 else
6335   if test "$cross_compiling" = yes; then
6336   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6337 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6338    { (exit 1); exit 1; }; }
6339 else
6340   cat >conftest.$ac_ext <<_ACEOF
6341 /* confdefs.h.  */
6342 _ACEOF
6343 cat confdefs.h >>conftest.$ac_ext
6344 cat >>conftest.$ac_ext <<_ACEOF
6345 /* end confdefs.h.  */
6346 $ac_includes_default
6347 long longval () { return (long) (sizeof (int64_t)); }
6348 unsigned long ulongval () { return (long) (sizeof (int64_t)); }
6349 #include <stdio.h>
6350 #include <stdlib.h>
6351 int
6352 main ()
6353 {
6354
6355   FILE *f = fopen ("conftest.val", "w");
6356   if (! f)
6357     exit (1);
6358   if (((long) (sizeof (int64_t))) < 0)
6359     {
6360       long i = longval ();
6361       if (i != ((long) (sizeof (int64_t))))
6362         exit (1);
6363       fprintf (f, "%ld\n", i);
6364     }
6365   else
6366     {
6367       unsigned long i = ulongval ();
6368       if (i != ((long) (sizeof (int64_t))))
6369         exit (1);
6370       fprintf (f, "%lu\n", i);
6371     }
6372   exit (ferror (f) || fclose (f) != 0);
6373
6374   ;
6375   return 0;
6376 }
6377 _ACEOF
6378 rm -f conftest$ac_exeext
6379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6380   (eval $ac_link) 2>&5
6381   ac_status=$?
6382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385   (eval $ac_try) 2>&5
6386   ac_status=$?
6387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388   (exit $ac_status); }; }; then
6389   ac_cv_sizeof_int64_t=`cat conftest.val`
6390 else
6391   echo "$as_me: program exited with status $ac_status" >&5
6392 echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6394
6395 ( exit $ac_status )
6396 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
6397 See \`config.log' for more details." >&5
6398 echo "$as_me: error: cannot compute sizeof (int64_t), 77
6399 See \`config.log' for more details." >&2;}
6400    { (exit 1); exit 1; }; }
6401 fi
6402 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6403 fi
6404 fi
6405 rm -f conftest.val
6406 else
6407   ac_cv_sizeof_int64_t=0
6408 fi
6409 fi
6410 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
6411 echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6
6412 cat >>confdefs.h <<_ACEOF
6413 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
6414 _ACEOF
6415
6416
6417 echo "$as_me:$LINENO: checking for long long" >&5
6418 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6419 if test "${ac_cv_type_long_long+set}" = set; then
6420   echo $ECHO_N "(cached) $ECHO_C" >&6
6421 else
6422   cat >conftest.$ac_ext <<_ACEOF
6423 /* confdefs.h.  */
6424 _ACEOF
6425 cat confdefs.h >>conftest.$ac_ext
6426 cat >>conftest.$ac_ext <<_ACEOF
6427 /* end confdefs.h.  */
6428 $ac_includes_default
6429 int
6430 main ()
6431 {
6432 if ((long long *) 0)
6433   return 0;
6434 if (sizeof (long long))
6435   return 0;
6436   ;
6437   return 0;
6438 }
6439 _ACEOF
6440 rm -f conftest.$ac_objext
6441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6442   (eval $ac_compile) 2>conftest.er1
6443   ac_status=$?
6444   grep -v '^ *+' conftest.er1 >conftest.err
6445   rm -f conftest.er1
6446   cat conftest.err >&5
6447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448   (exit $ac_status); } &&
6449          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451   (eval $ac_try) 2>&5
6452   ac_status=$?
6453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454   (exit $ac_status); }; } &&
6455          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6461   ac_cv_type_long_long=yes
6462 else
6463   echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.$ac_ext >&5
6465
6466 ac_cv_type_long_long=no
6467 fi
6468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6469 fi
6470 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6471 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6472
6473 echo "$as_me:$LINENO: checking size of long long" >&5
6474 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6475 if test "${ac_cv_sizeof_long_long+set}" = set; then
6476   echo $ECHO_N "(cached) $ECHO_C" >&6
6477 else
6478   if test "$ac_cv_type_long_long" = yes; then
6479   # The cast to unsigned long works around a bug in the HP C Compiler
6480   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6481   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6482   # This bug is HP SR number 8606223364.
6483   if test "$cross_compiling" = yes; then
6484   # Depending upon the size, compute the lo and hi bounds.
6485 cat >conftest.$ac_ext <<_ACEOF
6486 /* confdefs.h.  */
6487 _ACEOF
6488 cat confdefs.h >>conftest.$ac_ext
6489 cat >>conftest.$ac_ext <<_ACEOF
6490 /* end confdefs.h.  */
6491 $ac_includes_default
6492 int
6493 main ()
6494 {
6495 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6496 test_array [0] = 0
6497
6498   ;
6499   return 0;
6500 }
6501 _ACEOF
6502 rm -f conftest.$ac_objext
6503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6504   (eval $ac_compile) 2>conftest.er1
6505   ac_status=$?
6506   grep -v '^ *+' conftest.er1 >conftest.err
6507   rm -f conftest.er1
6508   cat conftest.err >&5
6509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510   (exit $ac_status); } &&
6511          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513   (eval $ac_try) 2>&5
6514   ac_status=$?
6515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516   (exit $ac_status); }; } &&
6517          { ac_try='test -s conftest.$ac_objext'
6518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519   (eval $ac_try) 2>&5
6520   ac_status=$?
6521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522   (exit $ac_status); }; }; then
6523   ac_lo=0 ac_mid=0
6524   while :; do
6525     cat >conftest.$ac_ext <<_ACEOF
6526 /* confdefs.h.  */
6527 _ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h.  */
6531 $ac_includes_default
6532 int
6533 main ()
6534 {
6535 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6536 test_array [0] = 0
6537
6538   ;
6539   return 0;
6540 }
6541 _ACEOF
6542 rm -f conftest.$ac_objext
6543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6544   (eval $ac_compile) 2>conftest.er1
6545   ac_status=$?
6546   grep -v '^ *+' conftest.er1 >conftest.err
6547   rm -f conftest.er1
6548   cat conftest.err >&5
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); } &&
6551          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553   (eval $ac_try) 2>&5
6554   ac_status=$?
6555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556   (exit $ac_status); }; } &&
6557          { ac_try='test -s conftest.$ac_objext'
6558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559   (eval $ac_try) 2>&5
6560   ac_status=$?
6561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562   (exit $ac_status); }; }; then
6563   ac_hi=$ac_mid; break
6564 else
6565   echo "$as_me: failed program was:" >&5
6566 sed 's/^/| /' conftest.$ac_ext >&5
6567
6568 ac_lo=`expr $ac_mid + 1`
6569                     if test $ac_lo -le $ac_mid; then
6570                       ac_lo= ac_hi=
6571                       break
6572                     fi
6573                     ac_mid=`expr 2 '*' $ac_mid + 1`
6574 fi
6575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6576   done
6577 else
6578   echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6580
6581 cat >conftest.$ac_ext <<_ACEOF
6582 /* confdefs.h.  */
6583 _ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h.  */
6587 $ac_includes_default
6588 int
6589 main ()
6590 {
6591 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6592 test_array [0] = 0
6593
6594   ;
6595   return 0;
6596 }
6597 _ACEOF
6598 rm -f conftest.$ac_objext
6599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6600   (eval $ac_compile) 2>conftest.er1
6601   ac_status=$?
6602   grep -v '^ *+' conftest.er1 >conftest.err
6603   rm -f conftest.er1
6604   cat conftest.err >&5
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); } &&
6607          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609   (eval $ac_try) 2>&5
6610   ac_status=$?
6611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612   (exit $ac_status); }; } &&
6613          { ac_try='test -s conftest.$ac_objext'
6614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615   (eval $ac_try) 2>&5
6616   ac_status=$?
6617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618   (exit $ac_status); }; }; then
6619   ac_hi=-1 ac_mid=-1
6620   while :; do
6621     cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h.  */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h.  */
6627 $ac_includes_default
6628 int
6629 main ()
6630 {
6631 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6632 test_array [0] = 0
6633
6634   ;
6635   return 0;
6636 }
6637 _ACEOF
6638 rm -f conftest.$ac_objext
6639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6640   (eval $ac_compile) 2>conftest.er1
6641   ac_status=$?
6642   grep -v '^ *+' conftest.er1 >conftest.err
6643   rm -f conftest.er1
6644   cat conftest.err >&5
6645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646   (exit $ac_status); } &&
6647          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6649   (eval $ac_try) 2>&5
6650   ac_status=$?
6651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652   (exit $ac_status); }; } &&
6653          { ac_try='test -s conftest.$ac_objext'
6654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655   (eval $ac_try) 2>&5
6656   ac_status=$?
6657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658   (exit $ac_status); }; }; then
6659   ac_lo=$ac_mid; break
6660 else
6661   echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.$ac_ext >&5
6663
6664 ac_hi=`expr '(' $ac_mid ')' - 1`
6665                        if test $ac_mid -le $ac_hi; then
6666                          ac_lo= ac_hi=
6667                          break
6668                        fi
6669                        ac_mid=`expr 2 '*' $ac_mid`
6670 fi
6671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6672   done
6673 else
6674   echo "$as_me: failed program was:" >&5
6675 sed 's/^/| /' conftest.$ac_ext >&5
6676
6677 ac_lo= ac_hi=
6678 fi
6679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6680 fi
6681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6682 # Binary search between lo and hi bounds.
6683 while test "x$ac_lo" != "x$ac_hi"; do
6684   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6685   cat >conftest.$ac_ext <<_ACEOF
6686 /* confdefs.h.  */
6687 _ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h.  */
6691 $ac_includes_default
6692 int
6693 main ()
6694 {
6695 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6696 test_array [0] = 0
6697
6698   ;
6699   return 0;
6700 }
6701 _ACEOF
6702 rm -f conftest.$ac_objext
6703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6704   (eval $ac_compile) 2>conftest.er1
6705   ac_status=$?
6706   grep -v '^ *+' conftest.er1 >conftest.err
6707   rm -f conftest.er1
6708   cat conftest.err >&5
6709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710   (exit $ac_status); } &&
6711          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713   (eval $ac_try) 2>&5
6714   ac_status=$?
6715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716   (exit $ac_status); }; } &&
6717          { ac_try='test -s conftest.$ac_objext'
6718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719   (eval $ac_try) 2>&5
6720   ac_status=$?
6721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722   (exit $ac_status); }; }; then
6723   ac_hi=$ac_mid
6724 else
6725   echo "$as_me: failed program was:" >&5
6726 sed 's/^/| /' conftest.$ac_ext >&5
6727
6728 ac_lo=`expr '(' $ac_mid ')' + 1`
6729 fi
6730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6731 done
6732 case $ac_lo in
6733 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6734 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6735 See \`config.log' for more details." >&5
6736 echo "$as_me: error: cannot compute sizeof (long long), 77
6737 See \`config.log' for more details." >&2;}
6738    { (exit 1); exit 1; }; } ;;
6739 esac
6740 else
6741   if test "$cross_compiling" = yes; then
6742   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6743 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6744    { (exit 1); exit 1; }; }
6745 else
6746   cat >conftest.$ac_ext <<_ACEOF
6747 /* confdefs.h.  */
6748 _ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h.  */
6752 $ac_includes_default
6753 long longval () { return (long) (sizeof (long long)); }
6754 unsigned long ulongval () { return (long) (sizeof (long long)); }
6755 #include <stdio.h>
6756 #include <stdlib.h>
6757 int
6758 main ()
6759 {
6760
6761   FILE *f = fopen ("conftest.val", "w");
6762   if (! f)
6763     exit (1);
6764   if (((long) (sizeof (long long))) < 0)
6765     {
6766       long i = longval ();
6767       if (i != ((long) (sizeof (long long))))
6768         exit (1);
6769       fprintf (f, "%ld\n", i);
6770     }
6771   else
6772     {
6773       unsigned long i = ulongval ();
6774       if (i != ((long) (sizeof (long long))))
6775         exit (1);
6776       fprintf (f, "%lu\n", i);
6777     }
6778   exit (ferror (f) || fclose (f) != 0);
6779
6780   ;
6781   return 0;
6782 }
6783 _ACEOF
6784 rm -f conftest$ac_exeext
6785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6786   (eval $ac_link) 2>&5
6787   ac_status=$?
6788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791   (eval $ac_try) 2>&5
6792   ac_status=$?
6793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794   (exit $ac_status); }; }; then
6795   ac_cv_sizeof_long_long=`cat conftest.val`
6796 else
6797   echo "$as_me: program exited with status $ac_status" >&5
6798 echo "$as_me: failed program was:" >&5
6799 sed 's/^/| /' conftest.$ac_ext >&5
6800
6801 ( exit $ac_status )
6802 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6803 See \`config.log' for more details." >&5
6804 echo "$as_me: error: cannot compute sizeof (long long), 77
6805 See \`config.log' for more details." >&2;}
6806    { (exit 1); exit 1; }; }
6807 fi
6808 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6809 fi
6810 fi
6811 rm -f conftest.val
6812 else
6813   ac_cv_sizeof_long_long=0
6814 fi
6815 fi
6816 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6817 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6818 cat >>confdefs.h <<_ACEOF
6819 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6820 _ACEOF
6821
6822
6823 if test "$ac_cv_sizeof_int" = 2 ; then
6824   echo "$as_me:$LINENO: checking for int16_t" >&5
6825 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
6826 if test "${ac_cv_type_int16_t+set}" = set; then
6827   echo $ECHO_N "(cached) $ECHO_C" >&6
6828 else
6829   cat >conftest.$ac_ext <<_ACEOF
6830 /* confdefs.h.  */
6831 _ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h.  */
6835 $ac_includes_default
6836 int
6837 main ()
6838 {
6839 if ((int16_t *) 0)
6840   return 0;
6841 if (sizeof (int16_t))
6842   return 0;
6843   ;
6844   return 0;
6845 }
6846 _ACEOF
6847 rm -f conftest.$ac_objext
6848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6849   (eval $ac_compile) 2>conftest.er1
6850   ac_status=$?
6851   grep -v '^ *+' conftest.er1 >conftest.err
6852   rm -f conftest.er1
6853   cat conftest.err >&5
6854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855   (exit $ac_status); } &&
6856          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858   (eval $ac_try) 2>&5
6859   ac_status=$?
6860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861   (exit $ac_status); }; } &&
6862          { ac_try='test -s conftest.$ac_objext'
6863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6864   (eval $ac_try) 2>&5
6865   ac_status=$?
6866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867   (exit $ac_status); }; }; then
6868   ac_cv_type_int16_t=yes
6869 else
6870   echo "$as_me: failed program was:" >&5
6871 sed 's/^/| /' conftest.$ac_ext >&5
6872
6873 ac_cv_type_int16_t=no
6874 fi
6875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6876 fi
6877 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6878 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
6879 if test $ac_cv_type_int16_t = yes; then
6880   :
6881 else
6882
6883 cat >>confdefs.h <<_ACEOF
6884 #define int16_t int
6885 _ACEOF
6886
6887 fi
6888
6889   echo "$as_me:$LINENO: checking for uint16_t" >&5
6890 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
6891 if test "${ac_cv_type_uint16_t+set}" = set; then
6892   echo $ECHO_N "(cached) $ECHO_C" >&6
6893 else
6894   cat >conftest.$ac_ext <<_ACEOF
6895 /* confdefs.h.  */
6896 _ACEOF
6897 cat confdefs.h >>conftest.$ac_ext
6898 cat >>conftest.$ac_ext <<_ACEOF
6899 /* end confdefs.h.  */
6900 $ac_includes_default
6901 int
6902 main ()
6903 {
6904 if ((uint16_t *) 0)
6905   return 0;
6906 if (sizeof (uint16_t))
6907   return 0;
6908   ;
6909   return 0;
6910 }
6911 _ACEOF
6912 rm -f conftest.$ac_objext
6913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6914   (eval $ac_compile) 2>conftest.er1
6915   ac_status=$?
6916   grep -v '^ *+' conftest.er1 >conftest.err
6917   rm -f conftest.er1
6918   cat conftest.err >&5
6919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920   (exit $ac_status); } &&
6921          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923   (eval $ac_try) 2>&5
6924   ac_status=$?
6925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926   (exit $ac_status); }; } &&
6927          { ac_try='test -s conftest.$ac_objext'
6928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929   (eval $ac_try) 2>&5
6930   ac_status=$?
6931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932   (exit $ac_status); }; }; then
6933   ac_cv_type_uint16_t=yes
6934 else
6935   echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6937
6938 ac_cv_type_uint16_t=no
6939 fi
6940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6941 fi
6942 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
6943 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
6944 if test $ac_cv_type_uint16_t = yes; then
6945   :
6946 else
6947
6948 cat >>confdefs.h <<_ACEOF
6949 #define uint16_t unsigned int
6950 _ACEOF
6951
6952 fi
6953
6954 elif test "$ac_cv_sizeof_short" = 2 ; then
6955   echo "$as_me:$LINENO: checking for int16_t" >&5
6956 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
6957 if test "${ac_cv_type_int16_t+set}" = set; then
6958   echo $ECHO_N "(cached) $ECHO_C" >&6
6959 else
6960   cat >conftest.$ac_ext <<_ACEOF
6961 /* confdefs.h.  */
6962 _ACEOF
6963 cat confdefs.h >>conftest.$ac_ext
6964 cat >>conftest.$ac_ext <<_ACEOF
6965 /* end confdefs.h.  */
6966 $ac_includes_default
6967 int
6968 main ()
6969 {
6970 if ((int16_t *) 0)
6971   return 0;
6972 if (sizeof (int16_t))
6973   return 0;
6974   ;
6975   return 0;
6976 }
6977 _ACEOF
6978 rm -f conftest.$ac_objext
6979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6980   (eval $ac_compile) 2>conftest.er1
6981   ac_status=$?
6982   grep -v '^ *+' conftest.er1 >conftest.err
6983   rm -f conftest.er1
6984   cat conftest.err >&5
6985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986   (exit $ac_status); } &&
6987          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989   (eval $ac_try) 2>&5
6990   ac_status=$?
6991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992   (exit $ac_status); }; } &&
6993          { ac_try='test -s conftest.$ac_objext'
6994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995   (eval $ac_try) 2>&5
6996   ac_status=$?
6997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998   (exit $ac_status); }; }; then
6999   ac_cv_type_int16_t=yes
7000 else
7001   echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7003
7004 ac_cv_type_int16_t=no
7005 fi
7006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7007 fi
7008 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7009 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
7010 if test $ac_cv_type_int16_t = yes; then
7011   :
7012 else
7013
7014 cat >>confdefs.h <<_ACEOF
7015 #define int16_t short
7016 _ACEOF
7017
7018 fi
7019
7020   echo "$as_me:$LINENO: checking for uint16_t" >&5
7021 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7022 if test "${ac_cv_type_uint16_t+set}" = set; then
7023   echo $ECHO_N "(cached) $ECHO_C" >&6
7024 else
7025   cat >conftest.$ac_ext <<_ACEOF
7026 /* confdefs.h.  */
7027 _ACEOF
7028 cat confdefs.h >>conftest.$ac_ext
7029 cat >>conftest.$ac_ext <<_ACEOF
7030 /* end confdefs.h.  */
7031 $ac_includes_default
7032 int
7033 main ()
7034 {
7035 if ((uint16_t *) 0)
7036   return 0;
7037 if (sizeof (uint16_t))
7038   return 0;
7039   ;
7040   return 0;
7041 }
7042 _ACEOF
7043 rm -f conftest.$ac_objext
7044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7045   (eval $ac_compile) 2>conftest.er1
7046   ac_status=$?
7047   grep -v '^ *+' conftest.er1 >conftest.err
7048   rm -f conftest.er1
7049   cat conftest.err >&5
7050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051   (exit $ac_status); } &&
7052          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054   (eval $ac_try) 2>&5
7055   ac_status=$?
7056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057   (exit $ac_status); }; } &&
7058          { ac_try='test -s conftest.$ac_objext'
7059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060   (eval $ac_try) 2>&5
7061   ac_status=$?
7062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063   (exit $ac_status); }; }; then
7064   ac_cv_type_uint16_t=yes
7065 else
7066   echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7068
7069 ac_cv_type_uint16_t=no
7070 fi
7071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7072 fi
7073 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7074 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7075 if test $ac_cv_type_uint16_t = yes; then
7076   :
7077 else
7078
7079 cat >>confdefs.h <<_ACEOF
7080 #define uint16_t unsigned short
7081 _ACEOF
7082
7083 fi
7084
7085 else
7086   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
7087 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
7088    { (exit 1); exit 1; }; }
7089 fi
7090 if test "$ac_cv_sizeof_int" = 4 ; then
7091   echo "$as_me:$LINENO: checking for int32_t" >&5
7092 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7093 if test "${ac_cv_type_int32_t+set}" = set; then
7094   echo $ECHO_N "(cached) $ECHO_C" >&6
7095 else
7096   cat >conftest.$ac_ext <<_ACEOF
7097 /* confdefs.h.  */
7098 _ACEOF
7099 cat confdefs.h >>conftest.$ac_ext
7100 cat >>conftest.$ac_ext <<_ACEOF
7101 /* end confdefs.h.  */
7102 $ac_includes_default
7103 int
7104 main ()
7105 {
7106 if ((int32_t *) 0)
7107   return 0;
7108 if (sizeof (int32_t))
7109   return 0;
7110   ;
7111   return 0;
7112 }
7113 _ACEOF
7114 rm -f conftest.$ac_objext
7115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7116   (eval $ac_compile) 2>conftest.er1
7117   ac_status=$?
7118   grep -v '^ *+' conftest.er1 >conftest.err
7119   rm -f conftest.er1
7120   cat conftest.err >&5
7121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122   (exit $ac_status); } &&
7123          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125   (eval $ac_try) 2>&5
7126   ac_status=$?
7127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128   (exit $ac_status); }; } &&
7129          { ac_try='test -s conftest.$ac_objext'
7130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131   (eval $ac_try) 2>&5
7132   ac_status=$?
7133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134   (exit $ac_status); }; }; then
7135   ac_cv_type_int32_t=yes
7136 else
7137   echo "$as_me: failed program was:" >&5
7138 sed 's/^/| /' conftest.$ac_ext >&5
7139
7140 ac_cv_type_int32_t=no
7141 fi
7142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7143 fi
7144 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7145 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7146 if test $ac_cv_type_int32_t = yes; then
7147   :
7148 else
7149
7150 cat >>confdefs.h <<_ACEOF
7151 #define int32_t int
7152 _ACEOF
7153
7154 fi
7155
7156   echo "$as_me:$LINENO: checking for uint32_t" >&5
7157 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7158 if test "${ac_cv_type_uint32_t+set}" = set; then
7159   echo $ECHO_N "(cached) $ECHO_C" >&6
7160 else
7161   cat >conftest.$ac_ext <<_ACEOF
7162 /* confdefs.h.  */
7163 _ACEOF
7164 cat confdefs.h >>conftest.$ac_ext
7165 cat >>conftest.$ac_ext <<_ACEOF
7166 /* end confdefs.h.  */
7167 $ac_includes_default
7168 int
7169 main ()
7170 {
7171 if ((uint32_t *) 0)
7172   return 0;
7173 if (sizeof (uint32_t))
7174   return 0;
7175   ;
7176   return 0;
7177 }
7178 _ACEOF
7179 rm -f conftest.$ac_objext
7180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7181   (eval $ac_compile) 2>conftest.er1
7182   ac_status=$?
7183   grep -v '^ *+' conftest.er1 >conftest.err
7184   rm -f conftest.er1
7185   cat conftest.err >&5
7186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187   (exit $ac_status); } &&
7188          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190   (eval $ac_try) 2>&5
7191   ac_status=$?
7192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193   (exit $ac_status); }; } &&
7194          { ac_try='test -s conftest.$ac_objext'
7195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196   (eval $ac_try) 2>&5
7197   ac_status=$?
7198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199   (exit $ac_status); }; }; then
7200   ac_cv_type_uint32_t=yes
7201 else
7202   echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.$ac_ext >&5
7204
7205 ac_cv_type_uint32_t=no
7206 fi
7207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7208 fi
7209 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7210 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7211 if test $ac_cv_type_uint32_t = yes; then
7212   :
7213 else
7214
7215 cat >>confdefs.h <<_ACEOF
7216 #define uint32_t unsigned int
7217 _ACEOF
7218
7219 fi
7220
7221 elif test "$ac_cv_sizeof_short" = 4 ; then
7222   echo "$as_me:$LINENO: checking for int32_t" >&5
7223 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7224 if test "${ac_cv_type_int32_t+set}" = set; then
7225   echo $ECHO_N "(cached) $ECHO_C" >&6
7226 else
7227   cat >conftest.$ac_ext <<_ACEOF
7228 /* confdefs.h.  */
7229 _ACEOF
7230 cat confdefs.h >>conftest.$ac_ext
7231 cat >>conftest.$ac_ext <<_ACEOF
7232 /* end confdefs.h.  */
7233 $ac_includes_default
7234 int
7235 main ()
7236 {
7237 if ((int32_t *) 0)
7238   return 0;
7239 if (sizeof (int32_t))
7240   return 0;
7241   ;
7242   return 0;
7243 }
7244 _ACEOF
7245 rm -f conftest.$ac_objext
7246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7247   (eval $ac_compile) 2>conftest.er1
7248   ac_status=$?
7249   grep -v '^ *+' conftest.er1 >conftest.err
7250   rm -f conftest.er1
7251   cat conftest.err >&5
7252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253   (exit $ac_status); } &&
7254          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256   (eval $ac_try) 2>&5
7257   ac_status=$?
7258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259   (exit $ac_status); }; } &&
7260          { ac_try='test -s conftest.$ac_objext'
7261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262   (eval $ac_try) 2>&5
7263   ac_status=$?
7264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265   (exit $ac_status); }; }; then
7266   ac_cv_type_int32_t=yes
7267 else
7268   echo "$as_me: failed program was:" >&5
7269 sed 's/^/| /' conftest.$ac_ext >&5
7270
7271 ac_cv_type_int32_t=no
7272 fi
7273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7274 fi
7275 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7276 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7277 if test $ac_cv_type_int32_t = yes; then
7278   :
7279 else
7280
7281 cat >>confdefs.h <<_ACEOF
7282 #define int32_t short
7283 _ACEOF
7284
7285 fi
7286
7287   echo "$as_me:$LINENO: checking for uint32_t" >&5
7288 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7289 if test "${ac_cv_type_uint32_t+set}" = set; then
7290   echo $ECHO_N "(cached) $ECHO_C" >&6
7291 else
7292   cat >conftest.$ac_ext <<_ACEOF
7293 /* confdefs.h.  */
7294 _ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h.  */
7298 $ac_includes_default
7299 int
7300 main ()
7301 {
7302 if ((uint32_t *) 0)
7303   return 0;
7304 if (sizeof (uint32_t))
7305   return 0;
7306   ;
7307   return 0;
7308 }
7309 _ACEOF
7310 rm -f conftest.$ac_objext
7311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7312   (eval $ac_compile) 2>conftest.er1
7313   ac_status=$?
7314   grep -v '^ *+' conftest.er1 >conftest.err
7315   rm -f conftest.er1
7316   cat conftest.err >&5
7317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318   (exit $ac_status); } &&
7319          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7321   (eval $ac_try) 2>&5
7322   ac_status=$?
7323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324   (exit $ac_status); }; } &&
7325          { ac_try='test -s conftest.$ac_objext'
7326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7327   (eval $ac_try) 2>&5
7328   ac_status=$?
7329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330   (exit $ac_status); }; }; then
7331   ac_cv_type_uint32_t=yes
7332 else
7333   echo "$as_me: failed program was:" >&5
7334 sed 's/^/| /' conftest.$ac_ext >&5
7335
7336 ac_cv_type_uint32_t=no
7337 fi
7338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7339 fi
7340 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7341 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7342 if test $ac_cv_type_uint32_t = yes; then
7343   :
7344 else
7345
7346 cat >>confdefs.h <<_ACEOF
7347 #define uint32_t unsigned short
7348 _ACEOF
7349
7350 fi
7351
7352 elif test "$ac_cv_sizeof_long" = 4 ; then
7353   echo "$as_me:$LINENO: checking for int32_t" >&5
7354 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7355 if test "${ac_cv_type_int32_t+set}" = set; then
7356   echo $ECHO_N "(cached) $ECHO_C" >&6
7357 else
7358   cat >conftest.$ac_ext <<_ACEOF
7359 /* confdefs.h.  */
7360 _ACEOF
7361 cat confdefs.h >>conftest.$ac_ext
7362 cat >>conftest.$ac_ext <<_ACEOF
7363 /* end confdefs.h.  */
7364 $ac_includes_default
7365 int
7366 main ()
7367 {
7368 if ((int32_t *) 0)
7369   return 0;
7370 if (sizeof (int32_t))
7371   return 0;
7372   ;
7373   return 0;
7374 }
7375 _ACEOF
7376 rm -f conftest.$ac_objext
7377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7378   (eval $ac_compile) 2>conftest.er1
7379   ac_status=$?
7380   grep -v '^ *+' conftest.er1 >conftest.err
7381   rm -f conftest.er1
7382   cat conftest.err >&5
7383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384   (exit $ac_status); } &&
7385          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387   (eval $ac_try) 2>&5
7388   ac_status=$?
7389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390   (exit $ac_status); }; } &&
7391          { ac_try='test -s conftest.$ac_objext'
7392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393   (eval $ac_try) 2>&5
7394   ac_status=$?
7395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396   (exit $ac_status); }; }; then
7397   ac_cv_type_int32_t=yes
7398 else
7399   echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7401
7402 ac_cv_type_int32_t=no
7403 fi
7404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7405 fi
7406 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7407 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7408 if test $ac_cv_type_int32_t = yes; then
7409   :
7410 else
7411
7412 cat >>confdefs.h <<_ACEOF
7413 #define int32_t long
7414 _ACEOF
7415
7416 fi
7417
7418   echo "$as_me:$LINENO: checking for uint32_t" >&5
7419 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7420 if test "${ac_cv_type_uint32_t+set}" = set; then
7421   echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423   cat >conftest.$ac_ext <<_ACEOF
7424 /* confdefs.h.  */
7425 _ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h.  */
7429 $ac_includes_default
7430 int
7431 main ()
7432 {
7433 if ((uint32_t *) 0)
7434   return 0;
7435 if (sizeof (uint32_t))
7436   return 0;
7437   ;
7438   return 0;
7439 }
7440 _ACEOF
7441 rm -f conftest.$ac_objext
7442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7443   (eval $ac_compile) 2>conftest.er1
7444   ac_status=$?
7445   grep -v '^ *+' conftest.er1 >conftest.err
7446   rm -f conftest.er1
7447   cat conftest.err >&5
7448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449   (exit $ac_status); } &&
7450          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452   (eval $ac_try) 2>&5
7453   ac_status=$?
7454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455   (exit $ac_status); }; } &&
7456          { ac_try='test -s conftest.$ac_objext'
7457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458   (eval $ac_try) 2>&5
7459   ac_status=$?
7460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461   (exit $ac_status); }; }; then
7462   ac_cv_type_uint32_t=yes
7463 else
7464   echo "$as_me: failed program was:" >&5
7465 sed 's/^/| /' conftest.$ac_ext >&5
7466
7467 ac_cv_type_uint32_t=no
7468 fi
7469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7470 fi
7471 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7472 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7473 if test $ac_cv_type_uint32_t = yes; then
7474   :
7475 else
7476
7477 cat >>confdefs.h <<_ACEOF
7478 #define uint32_t unsigned long
7479 _ACEOF
7480
7481 fi
7482
7483 else
7484   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
7485 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
7486    { (exit 1); exit 1; }; }
7487 fi
7488 if test "$ac_cv_sizeof_int64_t" = 8 ; then
7489   echo "$as_me:$LINENO: checking for int64_t" >&5
7490 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
7491 if test "${ac_cv_type_int64_t+set}" = set; then
7492   echo $ECHO_N "(cached) $ECHO_C" >&6
7493 else
7494   cat >conftest.$ac_ext <<_ACEOF
7495 /* confdefs.h.  */
7496 _ACEOF
7497 cat confdefs.h >>conftest.$ac_ext
7498 cat >>conftest.$ac_ext <<_ACEOF
7499 /* end confdefs.h.  */
7500 $ac_includes_default
7501 int
7502 main ()
7503 {
7504 if ((int64_t *) 0)
7505   return 0;
7506 if (sizeof (int64_t))
7507   return 0;
7508   ;
7509   return 0;
7510 }
7511 _ACEOF
7512 rm -f conftest.$ac_objext
7513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7514   (eval $ac_compile) 2>conftest.er1
7515   ac_status=$?
7516   grep -v '^ *+' conftest.er1 >conftest.err
7517   rm -f conftest.er1
7518   cat conftest.err >&5
7519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520   (exit $ac_status); } &&
7521          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523   (eval $ac_try) 2>&5
7524   ac_status=$?
7525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526   (exit $ac_status); }; } &&
7527          { ac_try='test -s conftest.$ac_objext'
7528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529   (eval $ac_try) 2>&5
7530   ac_status=$?
7531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532   (exit $ac_status); }; }; then
7533   ac_cv_type_int64_t=yes
7534 else
7535   echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7537
7538 ac_cv_type_int64_t=no
7539 fi
7540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7541 fi
7542 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
7543 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
7544
7545   echo "$as_me:$LINENO: checking for uint64_t" >&5
7546 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
7547 if test "${ac_cv_type_uint64_t+set}" = set; then
7548   echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550   cat >conftest.$ac_ext <<_ACEOF
7551 /* confdefs.h.  */
7552 _ACEOF
7553 cat confdefs.h >>conftest.$ac_ext
7554 cat >>conftest.$ac_ext <<_ACEOF
7555 /* end confdefs.h.  */
7556 $ac_includes_default
7557 int
7558 main ()
7559 {
7560 if ((uint64_t *) 0)
7561   return 0;
7562 if (sizeof (uint64_t))
7563   return 0;
7564   ;
7565   return 0;
7566 }
7567 _ACEOF
7568 rm -f conftest.$ac_objext
7569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7570   (eval $ac_compile) 2>conftest.er1
7571   ac_status=$?
7572   grep -v '^ *+' conftest.er1 >conftest.err
7573   rm -f conftest.er1
7574   cat conftest.err >&5
7575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576   (exit $ac_status); } &&
7577          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579   (eval $ac_try) 2>&5
7580   ac_status=$?
7581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582   (exit $ac_status); }; } &&
7583          { ac_try='test -s conftest.$ac_objext'
7584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7585   (eval $ac_try) 2>&5
7586   ac_status=$?
7587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588   (exit $ac_status); }; }; then
7589   ac_cv_type_uint64_t=yes
7590 else
7591   echo "$as_me: failed program was:" >&5
7592 sed 's/^/| /' conftest.$ac_ext >&5
7593
7594 ac_cv_type_uint64_t=no
7595 fi
7596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7597 fi
7598 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
7599 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
7600
7601 elif test "$ac_cv_sizeof_long_long" = 8 ; then
7602   echo "$as_me:$LINENO: checking for int64_t" >&5
7603 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
7604 if test "${ac_cv_type_int64_t+set}" = set; then
7605   echo $ECHO_N "(cached) $ECHO_C" >&6
7606 else
7607   cat >conftest.$ac_ext <<_ACEOF
7608 /* confdefs.h.  */
7609 _ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h.  */
7613 $ac_includes_default
7614 int
7615 main ()
7616 {
7617 if ((int64_t *) 0)
7618   return 0;
7619 if (sizeof (int64_t))
7620   return 0;
7621   ;
7622   return 0;
7623 }
7624 _ACEOF
7625 rm -f conftest.$ac_objext
7626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7627   (eval $ac_compile) 2>conftest.er1
7628   ac_status=$?
7629   grep -v '^ *+' conftest.er1 >conftest.err
7630   rm -f conftest.er1
7631   cat conftest.err >&5
7632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633   (exit $ac_status); } &&
7634          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636   (eval $ac_try) 2>&5
7637   ac_status=$?
7638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639   (exit $ac_status); }; } &&
7640          { ac_try='test -s conftest.$ac_objext'
7641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642   (eval $ac_try) 2>&5
7643   ac_status=$?
7644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645   (exit $ac_status); }; }; then
7646   ac_cv_type_int64_t=yes
7647 else
7648   echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.$ac_ext >&5
7650
7651 ac_cv_type_int64_t=no
7652 fi
7653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7654 fi
7655 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
7656 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
7657 if test $ac_cv_type_int64_t = yes; then
7658   :
7659 else
7660
7661 cat >>confdefs.h <<_ACEOF
7662 #define int64_t long long
7663 _ACEOF
7664
7665 fi
7666
7667   echo "$as_me:$LINENO: checking for uint64_t" >&5
7668 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
7669 if test "${ac_cv_type_uint64_t+set}" = set; then
7670   echo $ECHO_N "(cached) $ECHO_C" >&6
7671 else
7672   cat >conftest.$ac_ext <<_ACEOF
7673 /* confdefs.h.  */
7674 _ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h.  */
7678 $ac_includes_default
7679 int
7680 main ()
7681 {
7682 if ((uint64_t *) 0)
7683   return 0;
7684 if (sizeof (uint64_t))
7685   return 0;
7686   ;
7687   return 0;
7688 }
7689 _ACEOF
7690 rm -f conftest.$ac_objext
7691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7692   (eval $ac_compile) 2>conftest.er1
7693   ac_status=$?
7694   grep -v '^ *+' conftest.er1 >conftest.err
7695   rm -f conftest.er1
7696   cat conftest.err >&5
7697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698   (exit $ac_status); } &&
7699          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701   (eval $ac_try) 2>&5
7702   ac_status=$?
7703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704   (exit $ac_status); }; } &&
7705          { ac_try='test -s conftest.$ac_objext'
7706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707   (eval $ac_try) 2>&5
7708   ac_status=$?
7709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710   (exit $ac_status); }; }; then
7711   ac_cv_type_uint64_t=yes
7712 else
7713   echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.$ac_ext >&5
7715
7716 ac_cv_type_uint64_t=no
7717 fi
7718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7719 fi
7720 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
7721 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
7722 if test $ac_cv_type_uint64_t = yes; then
7723   :
7724 else
7725
7726 cat >>confdefs.h <<_ACEOF
7727 #define uint64_t unsigned long long
7728 _ACEOF
7729
7730 fi
7731
7732 else
7733   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 64 bits" >&5
7734 echo "$as_me: error: Cannot find a type with size of 64 bits" >&2;}
7735    { (exit 1); exit 1; }; }
7736 fi
7737 echo "$as_me:$LINENO: checking for socklen_t" >&5
7738 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
7739 if test "${ac_cv_type_socklen_t+set}" = set; then
7740   echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742   cat >conftest.$ac_ext <<_ACEOF
7743 /* confdefs.h.  */
7744 _ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h.  */
7748 $ac_includes_default
7749 int
7750 main ()
7751 {
7752 if ((socklen_t *) 0)
7753   return 0;
7754 if (sizeof (socklen_t))
7755   return 0;
7756   ;
7757   return 0;
7758 }
7759 _ACEOF
7760 rm -f conftest.$ac_objext
7761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7762   (eval $ac_compile) 2>conftest.er1
7763   ac_status=$?
7764   grep -v '^ *+' conftest.er1 >conftest.err
7765   rm -f conftest.er1
7766   cat conftest.err >&5
7767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768   (exit $ac_status); } &&
7769          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771   (eval $ac_try) 2>&5
7772   ac_status=$?
7773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774   (exit $ac_status); }; } &&
7775          { ac_try='test -s conftest.$ac_objext'
7776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777   (eval $ac_try) 2>&5
7778   ac_status=$?
7779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780   (exit $ac_status); }; }; then
7781   ac_cv_type_socklen_t=yes
7782 else
7783   echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7785
7786 ac_cv_type_socklen_t=no
7787 fi
7788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7789 fi
7790 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
7791 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
7792 if test $ac_cv_type_socklen_t = yes; then
7793   :
7794 else
7795
7796 cat >>confdefs.h <<_ACEOF
7797 #define socklen_t unsigned int
7798 _ACEOF
7799
7800 fi
7801
7802 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
7803 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
7804 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
7805   echo $ECHO_N "(cached) $ECHO_C" >&6
7806 else
7807   cat >conftest.$ac_ext <<_ACEOF
7808 /* confdefs.h.  */
7809 _ACEOF
7810 cat confdefs.h >>conftest.$ac_ext
7811 cat >>conftest.$ac_ext <<_ACEOF
7812 /* end confdefs.h.  */
7813 #include <sys/types.h>
7814 #include <netinet/in.h>
7815
7816 int
7817 main ()
7818 {
7819 if ((struct sockaddr_in6 *) 0)
7820   return 0;
7821 if (sizeof (struct sockaddr_in6))
7822   return 0;
7823   ;
7824   return 0;
7825 }
7826 _ACEOF
7827 rm -f conftest.$ac_objext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7829   (eval $ac_compile) 2>conftest.er1
7830   ac_status=$?
7831   grep -v '^ *+' conftest.er1 >conftest.err
7832   rm -f conftest.er1
7833   cat conftest.err >&5
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); } &&
7836          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838   (eval $ac_try) 2>&5
7839   ac_status=$?
7840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841   (exit $ac_status); }; } &&
7842          { ac_try='test -s conftest.$ac_objext'
7843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844   (eval $ac_try) 2>&5
7845   ac_status=$?
7846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847   (exit $ac_status); }; }; then
7848   ac_cv_type_struct_sockaddr_in6=yes
7849 else
7850   echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7852
7853 ac_cv_type_struct_sockaddr_in6=no
7854 fi
7855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7856 fi
7857 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
7858 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
7859 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
7860   unet_have_sockaddr_in6="yes"
7861 else
7862   unet_have_sockaddr_in6="no"
7863 fi
7864
7865
7866
7867
7868
7869
7870 for ac_func in kqueue setrlimit getrusage times
7871 do
7872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7873 echo "$as_me:$LINENO: checking for $ac_func" >&5
7874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7875 if eval "test \"\${$as_ac_var+set}\" = set"; then
7876   echo $ECHO_N "(cached) $ECHO_C" >&6
7877 else
7878   cat >conftest.$ac_ext <<_ACEOF
7879 /* confdefs.h.  */
7880 _ACEOF
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h.  */
7884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7886 #define $ac_func innocuous_$ac_func
7887
7888 /* System header to define __stub macros and hopefully few prototypes,
7889     which can conflict with char $ac_func (); below.
7890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7891     <limits.h> exists even on freestanding compilers.  */
7892
7893 #ifdef __STDC__
7894 # include <limits.h>
7895 #else
7896 # include <assert.h>
7897 #endif
7898
7899 #undef $ac_func
7900
7901 /* Override any gcc2 internal prototype to avoid an error.  */
7902 #ifdef __cplusplus
7903 extern "C"
7904 {
7905 #endif
7906 /* We use char because int might match the return type of a gcc2
7907    builtin and then its argument prototype would still apply.  */
7908 char $ac_func ();
7909 /* The GNU C library defines this for functions which it implements
7910     to always fail with ENOSYS.  Some functions are actually named
7911     something starting with __ and the normal name is an alias.  */
7912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7913 choke me
7914 #else
7915 char (*f) () = $ac_func;
7916 #endif
7917 #ifdef __cplusplus
7918 }
7919 #endif
7920
7921 int
7922 main ()
7923 {
7924 return f != $ac_func;
7925   ;
7926   return 0;
7927 }
7928 _ACEOF
7929 rm -f conftest.$ac_objext conftest$ac_exeext
7930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7931   (eval $ac_link) 2>conftest.er1
7932   ac_status=$?
7933   grep -v '^ *+' conftest.er1 >conftest.err
7934   rm -f conftest.er1
7935   cat conftest.err >&5
7936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937   (exit $ac_status); } &&
7938          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7940   (eval $ac_try) 2>&5
7941   ac_status=$?
7942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943   (exit $ac_status); }; } &&
7944          { ac_try='test -s conftest$ac_exeext'
7945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7946   (eval $ac_try) 2>&5
7947   ac_status=$?
7948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949   (exit $ac_status); }; }; then
7950   eval "$as_ac_var=yes"
7951 else
7952   echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.$ac_ext >&5
7954
7955 eval "$as_ac_var=no"
7956 fi
7957 rm -f conftest.err conftest.$ac_objext \
7958       conftest$ac_exeext conftest.$ac_ext
7959 fi
7960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7962 if test `eval echo '${'$as_ac_var'}'` = yes; then
7963   cat >>confdefs.h <<_ACEOF
7964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7965 _ACEOF
7966
7967 fi
7968 done
7969
7970
7971 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7972 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7973 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7974   echo $ECHO_N "(cached) $ECHO_C" >&6
7975 else
7976   cat >conftest.$ac_ext <<_ACEOF
7977 /* confdefs.h.  */
7978 _ACEOF
7979 cat confdefs.h >>conftest.$ac_ext
7980 cat >>conftest.$ac_ext <<_ACEOF
7981 /* end confdefs.h.  */
7982 #include <sys/types.h>
7983 #include <sys/wait.h>
7984 #ifndef WEXITSTATUS
7985 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7986 #endif
7987 #ifndef WIFEXITED
7988 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7989 #endif
7990
7991 int
7992 main ()
7993 {
7994   int s;
7995   wait (&s);
7996   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7997   ;
7998   return 0;
7999 }
8000 _ACEOF
8001 rm -f conftest.$ac_objext
8002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8003   (eval $ac_compile) 2>conftest.er1
8004   ac_status=$?
8005   grep -v '^ *+' conftest.er1 >conftest.err
8006   rm -f conftest.er1
8007   cat conftest.err >&5
8008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009   (exit $ac_status); } &&
8010          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012   (eval $ac_try) 2>&5
8013   ac_status=$?
8014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015   (exit $ac_status); }; } &&
8016          { ac_try='test -s conftest.$ac_objext'
8017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018   (eval $ac_try) 2>&5
8019   ac_status=$?
8020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021   (exit $ac_status); }; }; then
8022   ac_cv_header_sys_wait_h=yes
8023 else
8024   echo "$as_me: failed program was:" >&5
8025 sed 's/^/| /' conftest.$ac_ext >&5
8026
8027 ac_cv_header_sys_wait_h=no
8028 fi
8029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8030 fi
8031 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8032 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8033 if test $ac_cv_header_sys_wait_h = yes; then
8034
8035 cat >>confdefs.h <<\_ACEOF
8036 #define HAVE_SYS_WAIT_H 1
8037 _ACEOF
8038
8039 fi
8040
8041
8042 for ac_header in unistd.h
8043 do
8044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8046   echo "$as_me:$LINENO: checking for $ac_header" >&5
8047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8049   echo $ECHO_N "(cached) $ECHO_C" >&6
8050 fi
8051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8053 else
8054   # Is the header compilable?
8055 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8057 cat >conftest.$ac_ext <<_ACEOF
8058 /* confdefs.h.  */
8059 _ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h.  */
8063 $ac_includes_default
8064 #include <$ac_header>
8065 _ACEOF
8066 rm -f conftest.$ac_objext
8067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8068   (eval $ac_compile) 2>conftest.er1
8069   ac_status=$?
8070   grep -v '^ *+' conftest.er1 >conftest.err
8071   rm -f conftest.er1
8072   cat conftest.err >&5
8073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074   (exit $ac_status); } &&
8075          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077   (eval $ac_try) 2>&5
8078   ac_status=$?
8079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080   (exit $ac_status); }; } &&
8081          { ac_try='test -s conftest.$ac_objext'
8082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083   (eval $ac_try) 2>&5
8084   ac_status=$?
8085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086   (exit $ac_status); }; }; then
8087   ac_header_compiler=yes
8088 else
8089   echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8091
8092 ac_header_compiler=no
8093 fi
8094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8096 echo "${ECHO_T}$ac_header_compiler" >&6
8097
8098 # Is the header present?
8099 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8101 cat >conftest.$ac_ext <<_ACEOF
8102 /* confdefs.h.  */
8103 _ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h.  */
8107 #include <$ac_header>
8108 _ACEOF
8109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8110   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8111   ac_status=$?
8112   grep -v '^ *+' conftest.er1 >conftest.err
8113   rm -f conftest.er1
8114   cat conftest.err >&5
8115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116   (exit $ac_status); } >/dev/null; then
8117   if test -s conftest.err; then
8118     ac_cpp_err=$ac_c_preproc_warn_flag
8119     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8120   else
8121     ac_cpp_err=
8122   fi
8123 else
8124   ac_cpp_err=yes
8125 fi
8126 if test -z "$ac_cpp_err"; then
8127   ac_header_preproc=yes
8128 else
8129   echo "$as_me: failed program was:" >&5
8130 sed 's/^/| /' conftest.$ac_ext >&5
8131
8132   ac_header_preproc=no
8133 fi
8134 rm -f conftest.err conftest.$ac_ext
8135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8136 echo "${ECHO_T}$ac_header_preproc" >&6
8137
8138 # So?  What about this header?
8139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8140   yes:no: )
8141     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8143     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8145     ac_header_preproc=yes
8146     ;;
8147   no:yes:* )
8148     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8150     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8151 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8152     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8153 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8154     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8155 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8156     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8158     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8159 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8160     (
8161       cat <<\_ASBOX
8162 ## ------------------------------------------ ##
8163 ## Report this to the AC_PACKAGE_NAME lists.  ##
8164 ## ------------------------------------------ ##
8165 _ASBOX
8166     ) |
8167       sed "s/^/$as_me: WARNING:     /" >&2
8168     ;;
8169 esac
8170 echo "$as_me:$LINENO: checking for $ac_header" >&5
8171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8173   echo $ECHO_N "(cached) $ECHO_C" >&6
8174 else
8175   eval "$as_ac_Header=\$ac_header_preproc"
8176 fi
8177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8179
8180 fi
8181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8182   cat >>confdefs.h <<_ACEOF
8183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8184 _ACEOF
8185
8186 fi
8187
8188 done
8189
8190 echo "$as_me:$LINENO: checking for restartable system calls" >&5
8191 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
8192 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
8193   echo $ECHO_N "(cached) $ECHO_C" >&6
8194 else
8195   if test "$cross_compiling" = yes; then
8196   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8197 See \`config.log' for more details." >&5
8198 echo "$as_me: error: cannot run test program while cross compiling
8199 See \`config.log' for more details." >&2;}
8200    { (exit 1); exit 1; }; }
8201 else
8202   cat >conftest.$ac_ext <<_ACEOF
8203 /* confdefs.h.  */
8204 _ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h.  */
8208 /* Exit 0 (true) if wait returns something other than -1,
8209    i.e. the pid of the child, which means that wait was restarted
8210    after getting the signal.  */
8211
8212 #include <sys/types.h>
8213 #include <signal.h>
8214 #if HAVE_UNISTD_H
8215 # include <unistd.h>
8216 #endif
8217 #if HAVE_SYS_WAIT_H
8218 # include <sys/wait.h>
8219 #endif
8220
8221 /* Some platforms explicitly require an extern "C" signal handler
8222    when using C++. */
8223 #ifdef __cplusplus
8224 extern "C" void ucatch (int dummy) { }
8225 #else
8226 void ucatch (dummy) int dummy; { }
8227 #endif
8228
8229 int
8230 main ()
8231 {
8232   int i = fork (), status;
8233
8234   if (i == 0)
8235     {
8236       sleep (3);
8237       kill (getppid (), SIGINT);
8238       sleep (3);
8239       exit (0);
8240     }
8241
8242   signal (SIGINT, ucatch);
8243
8244   status = wait (&i);
8245   if (status == -1)
8246     wait (&i);
8247
8248   exit (status == -1);
8249 }
8250 _ACEOF
8251 rm -f conftest$ac_exeext
8252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8253   (eval $ac_link) 2>&5
8254   ac_status=$?
8255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258   (eval $ac_try) 2>&5
8259   ac_status=$?
8260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261   (exit $ac_status); }; }; then
8262   ac_cv_sys_restartable_syscalls=yes
8263 else
8264   echo "$as_me: program exited with status $ac_status" >&5
8265 echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8267
8268 ( exit $ac_status )
8269 ac_cv_sys_restartable_syscalls=no
8270 fi
8271 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8272 fi
8273 fi
8274 echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
8275 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
8276 if test $ac_cv_sys_restartable_syscalls = yes; then
8277
8278 cat >>confdefs.h <<\_ACEOF
8279 #define HAVE_RESTARTABLE_SYSCALLS 1
8280 _ACEOF
8281
8282 fi
8283
8284
8285 echo "$as_me:$LINENO: checking for donuts" >&5
8286 echo $ECHO_N "checking for donuts... $ECHO_C" >&6
8287 echo "$as_me:$LINENO: result: yes" >&5
8288 echo "${ECHO_T}yes" >&6
8289
8290 for ac_prog in gawk mawk nawk awk
8291 do
8292   # Extract the first word of "$ac_prog", so it can be a program name with args.
8293 set dummy $ac_prog; ac_word=$2
8294 echo "$as_me:$LINENO: checking for $ac_word" >&5
8295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8296 if test "${ac_cv_prog_AWK+set}" = set; then
8297   echo $ECHO_N "(cached) $ECHO_C" >&6
8298 else
8299   if test -n "$AWK"; then
8300   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8301 else
8302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303 for as_dir in $PATH
8304 do
8305   IFS=$as_save_IFS
8306   test -z "$as_dir" && as_dir=.
8307   for ac_exec_ext in '' $ac_executable_extensions; do
8308   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8309     ac_cv_prog_AWK="$ac_prog"
8310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8311     break 2
8312   fi
8313 done
8314 done
8315
8316 fi
8317 fi
8318 AWK=$ac_cv_prog_AWK
8319 if test -n "$AWK"; then
8320   echo "$as_me:$LINENO: result: $AWK" >&5
8321 echo "${ECHO_T}$AWK" >&6
8322 else
8323   echo "$as_me:$LINENO: result: no" >&5
8324 echo "${ECHO_T}no" >&6
8325 fi
8326
8327   test -n "$AWK" && break
8328 done
8329
8330 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8331 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8332 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8333 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8334   echo $ECHO_N "(cached) $ECHO_C" >&6
8335 else
8336   cat >conftest.make <<\_ACEOF
8337 all:
8338         @echo 'ac_maketemp="$(MAKE)"'
8339 _ACEOF
8340 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8341 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8342 if test -n "$ac_maketemp"; then
8343   eval ac_cv_prog_make_${ac_make}_set=yes
8344 else
8345   eval ac_cv_prog_make_${ac_make}_set=no
8346 fi
8347 rm -f conftest.make
8348 fi
8349 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8350   echo "$as_me:$LINENO: result: yes" >&5
8351 echo "${ECHO_T}yes" >&6
8352   SET_MAKE=
8353 else
8354   echo "$as_me:$LINENO: result: no" >&5
8355 echo "${ECHO_T}no" >&6
8356   SET_MAKE="MAKE=${MAKE-make}"
8357 fi
8358
8359 # Find a good install program.  We prefer a C program (faster),
8360 # so one script is as good as another.  But avoid the broken or
8361 # incompatible versions:
8362 # SysV /etc/install, /usr/sbin/install
8363 # SunOS /usr/etc/install
8364 # IRIX /sbin/install
8365 # AIX /bin/install
8366 # AmigaOS /C/install, which installs bootblocks on floppy discs
8367 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8368 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8369 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8370 # OS/2's system install, which has a completely different semantic
8371 # ./install, which can be erroneously created by make from ./install.sh.
8372 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8373 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8374 if test -z "$INSTALL"; then
8375 if test "${ac_cv_path_install+set}" = set; then
8376   echo $ECHO_N "(cached) $ECHO_C" >&6
8377 else
8378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379 for as_dir in $PATH
8380 do
8381   IFS=$as_save_IFS
8382   test -z "$as_dir" && as_dir=.
8383   # Account for people who put trailing slashes in PATH elements.
8384 case $as_dir/ in
8385   ./ | .// | /cC/* | \
8386   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8387   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8388   /usr/ucb/* ) ;;
8389   *)
8390     # OSF1 and SCO ODT 3.0 have their own names for install.
8391     # Don't use installbsd from OSF since it installs stuff as root
8392     # by default.
8393     for ac_prog in ginstall scoinst install; do
8394       for ac_exec_ext in '' $ac_executable_extensions; do
8395         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8396           if test $ac_prog = install &&
8397             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8398             # AIX install.  It has an incompatible calling convention.
8399             :
8400           elif test $ac_prog = install &&
8401             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8402             # program-specific install script used by HP pwplus--don't use.
8403             :
8404           else
8405             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8406             break 3
8407           fi
8408         fi
8409       done
8410     done
8411     ;;
8412 esac
8413 done
8414
8415
8416 fi
8417   if test "${ac_cv_path_install+set}" = set; then
8418     INSTALL=$ac_cv_path_install
8419   else
8420     # As a last resort, use the slow shell script.  We don't cache a
8421     # path for INSTALL within a source directory, because that will
8422     # break other packages using the cache if that directory is
8423     # removed, or if the path is relative.
8424     INSTALL=$ac_install_sh
8425   fi
8426 fi
8427 echo "$as_me:$LINENO: result: $INSTALL" >&5
8428 echo "${ECHO_T}$INSTALL" >&6
8429
8430 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8431 # It thinks the first close brace ends the variable substitution.
8432 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8433
8434 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8435
8436 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8437
8438 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8439 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8440 LN_S=$as_ln_s
8441 if test "$LN_S" = "ln -s"; then
8442   echo "$as_me:$LINENO: result: yes" >&5
8443 echo "${ECHO_T}yes" >&6
8444 else
8445   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8446 echo "${ECHO_T}no, using $LN_S" >&6
8447 fi
8448
8449 for ac_prog in rm
8450 do
8451   # Extract the first word of "$ac_prog", so it can be a program name with args.
8452 set dummy $ac_prog; ac_word=$2
8453 echo "$as_me:$LINENO: checking for $ac_word" >&5
8454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8455 if test "${ac_cv_path_RMPROG+set}" = set; then
8456   echo $ECHO_N "(cached) $ECHO_C" >&6
8457 else
8458   case $RMPROG in
8459   [\\/]* | ?:[\\/]*)
8460   ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
8461   ;;
8462   *)
8463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464 for as_dir in $PATH
8465 do
8466   IFS=$as_save_IFS
8467   test -z "$as_dir" && as_dir=.
8468   for ac_exec_ext in '' $ac_executable_extensions; do
8469   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8470     ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
8471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8472     break 2
8473   fi
8474 done
8475 done
8476
8477   ;;
8478 esac
8479 fi
8480 RMPROG=$ac_cv_path_RMPROG
8481
8482 if test -n "$RMPROG"; then
8483   echo "$as_me:$LINENO: result: $RMPROG" >&5
8484 echo "${ECHO_T}$RMPROG" >&6
8485 else
8486   echo "$as_me:$LINENO: result: no" >&5
8487 echo "${ECHO_T}no" >&6
8488 fi
8489
8490   test -n "$RMPROG" && break
8491 done
8492 test -n "$RMPROG" || RMPROG="/bin/rm"
8493
8494 for ac_prog in sh
8495 do
8496   # Extract the first word of "$ac_prog", so it can be a program name with args.
8497 set dummy $ac_prog; ac_word=$2
8498 echo "$as_me:$LINENO: checking for $ac_word" >&5
8499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8500 if test "${ac_cv_path_SHPROG+set}" = set; then
8501   echo $ECHO_N "(cached) $ECHO_C" >&6
8502 else
8503   case $SHPROG in
8504   [\\/]* | ?:[\\/]*)
8505   ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
8506   ;;
8507   *)
8508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 for as_dir in $PATH
8510 do
8511   IFS=$as_save_IFS
8512   test -z "$as_dir" && as_dir=.
8513   for ac_exec_ext in '' $ac_executable_extensions; do
8514   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8515     ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
8516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8517     break 2
8518   fi
8519 done
8520 done
8521
8522   ;;
8523 esac
8524 fi
8525 SHPROG=$ac_cv_path_SHPROG
8526
8527 if test -n "$SHPROG"; then
8528   echo "$as_me:$LINENO: result: $SHPROG" >&5
8529 echo "${ECHO_T}$SHPROG" >&6
8530 else
8531   echo "$as_me:$LINENO: result: no" >&5
8532 echo "${ECHO_T}no" >&6
8533 fi
8534
8535   test -n "$SHPROG" && break
8536 done
8537 test -n "$SHPROG" || SHPROG="/bin/sh"
8538
8539
8540 for ac_prog in flex lex
8541 do
8542   # Extract the first word of "$ac_prog", so it can be a program name with args.
8543 set dummy $ac_prog; ac_word=$2
8544 echo "$as_me:$LINENO: checking for $ac_word" >&5
8545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8546 if test "${ac_cv_prog_LEX+set}" = set; then
8547   echo $ECHO_N "(cached) $ECHO_C" >&6
8548 else
8549   if test -n "$LEX"; then
8550   ac_cv_prog_LEX="$LEX" # Let the user override the test.
8551 else
8552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8553 for as_dir in $PATH
8554 do
8555   IFS=$as_save_IFS
8556   test -z "$as_dir" && as_dir=.
8557   for ac_exec_ext in '' $ac_executable_extensions; do
8558   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8559     ac_cv_prog_LEX="$ac_prog"
8560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8561     break 2
8562   fi
8563 done
8564 done
8565
8566 fi
8567 fi
8568 LEX=$ac_cv_prog_LEX
8569 if test -n "$LEX"; then
8570   echo "$as_me:$LINENO: result: $LEX" >&5
8571 echo "${ECHO_T}$LEX" >&6
8572 else
8573   echo "$as_me:$LINENO: result: no" >&5
8574 echo "${ECHO_T}no" >&6
8575 fi
8576
8577   test -n "$LEX" && break
8578 done
8579 test -n "$LEX" || LEX=":"
8580
8581 if test -z "$LEXLIB"
8582 then
8583   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
8584 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
8585 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
8586   echo $ECHO_N "(cached) $ECHO_C" >&6
8587 else
8588   ac_check_lib_save_LIBS=$LIBS
8589 LIBS="-lfl  $LIBS"
8590 cat >conftest.$ac_ext <<_ACEOF
8591 /* confdefs.h.  */
8592 _ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h.  */
8596
8597 /* Override any gcc2 internal prototype to avoid an error.  */
8598 #ifdef __cplusplus
8599 extern "C"
8600 #endif
8601 /* We use char because int might match the return type of a gcc2
8602    builtin and then its argument prototype would still apply.  */
8603 char yywrap ();
8604 int
8605 main ()
8606 {
8607 yywrap ();
8608   ;
8609   return 0;
8610 }
8611 _ACEOF
8612 rm -f conftest.$ac_objext conftest$ac_exeext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8614   (eval $ac_link) 2>conftest.er1
8615   ac_status=$?
8616   grep -v '^ *+' conftest.er1 >conftest.err
8617   rm -f conftest.er1
8618   cat conftest.err >&5
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); } &&
8621          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623   (eval $ac_try) 2>&5
8624   ac_status=$?
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   (exit $ac_status); }; } &&
8627          { ac_try='test -s conftest$ac_exeext'
8628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629   (eval $ac_try) 2>&5
8630   ac_status=$?
8631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632   (exit $ac_status); }; }; then
8633   ac_cv_lib_fl_yywrap=yes
8634 else
8635   echo "$as_me: failed program was:" >&5
8636 sed 's/^/| /' conftest.$ac_ext >&5
8637
8638 ac_cv_lib_fl_yywrap=no
8639 fi
8640 rm -f conftest.err conftest.$ac_objext \
8641       conftest$ac_exeext conftest.$ac_ext
8642 LIBS=$ac_check_lib_save_LIBS
8643 fi
8644 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
8645 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
8646 if test $ac_cv_lib_fl_yywrap = yes; then
8647   LEXLIB="-lfl"
8648 else
8649   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
8650 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
8651 if test "${ac_cv_lib_l_yywrap+set}" = set; then
8652   echo $ECHO_N "(cached) $ECHO_C" >&6
8653 else
8654   ac_check_lib_save_LIBS=$LIBS
8655 LIBS="-ll  $LIBS"
8656 cat >conftest.$ac_ext <<_ACEOF
8657 /* confdefs.h.  */
8658 _ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h.  */
8662
8663 /* Override any gcc2 internal prototype to avoid an error.  */
8664 #ifdef __cplusplus
8665 extern "C"
8666 #endif
8667 /* We use char because int might match the return type of a gcc2
8668    builtin and then its argument prototype would still apply.  */
8669 char yywrap ();
8670 int
8671 main ()
8672 {
8673 yywrap ();
8674   ;
8675   return 0;
8676 }
8677 _ACEOF
8678 rm -f conftest.$ac_objext conftest$ac_exeext
8679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8680   (eval $ac_link) 2>conftest.er1
8681   ac_status=$?
8682   grep -v '^ *+' conftest.er1 >conftest.err
8683   rm -f conftest.er1
8684   cat conftest.err >&5
8685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686   (exit $ac_status); } &&
8687          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689   (eval $ac_try) 2>&5
8690   ac_status=$?
8691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692   (exit $ac_status); }; } &&
8693          { ac_try='test -s conftest$ac_exeext'
8694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695   (eval $ac_try) 2>&5
8696   ac_status=$?
8697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698   (exit $ac_status); }; }; then
8699   ac_cv_lib_l_yywrap=yes
8700 else
8701   echo "$as_me: failed program was:" >&5
8702 sed 's/^/| /' conftest.$ac_ext >&5
8703
8704 ac_cv_lib_l_yywrap=no
8705 fi
8706 rm -f conftest.err conftest.$ac_objext \
8707       conftest$ac_exeext conftest.$ac_ext
8708 LIBS=$ac_check_lib_save_LIBS
8709 fi
8710 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
8711 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
8712 if test $ac_cv_lib_l_yywrap = yes; then
8713   LEXLIB="-ll"
8714 fi
8715
8716 fi
8717
8718 fi
8719
8720 if test "x$LEX" != "x:"; then
8721   echo "$as_me:$LINENO: checking lex output file root" >&5
8722 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
8723 if test "${ac_cv_prog_lex_root+set}" = set; then
8724   echo $ECHO_N "(cached) $ECHO_C" >&6
8725 else
8726   # The minimal lex program is just a single line: %%.  But some broken lexes
8727 # (Solaris, I think it was) want two %% lines, so accommodate them.
8728 cat >conftest.l <<_ACEOF
8729 %%
8730 %%
8731 _ACEOF
8732 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
8733   (eval $LEX conftest.l) 2>&5
8734   ac_status=$?
8735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736   (exit $ac_status); }
8737 if test -f lex.yy.c; then
8738   ac_cv_prog_lex_root=lex.yy
8739 elif test -f lexyy.c; then
8740   ac_cv_prog_lex_root=lexyy
8741 else
8742   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
8743 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
8744    { (exit 1); exit 1; }; }
8745 fi
8746 fi
8747 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
8748 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
8749 rm -f conftest.l
8750 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
8751
8752 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
8753 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
8754 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
8755   echo $ECHO_N "(cached) $ECHO_C" >&6
8756 else
8757   # POSIX says lex can declare yytext either as a pointer or an array; the
8758 # default is implementation-dependent. Figure out which it is, since
8759 # not all implementations provide the %pointer and %array declarations.
8760 ac_cv_prog_lex_yytext_pointer=no
8761 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
8762 ac_save_LIBS=$LIBS
8763 LIBS="$LIBS $LEXLIB"
8764 cat >conftest.$ac_ext <<_ACEOF
8765 `cat $LEX_OUTPUT_ROOT.c`
8766 _ACEOF
8767 rm -f conftest.$ac_objext conftest$ac_exeext
8768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8769   (eval $ac_link) 2>conftest.er1
8770   ac_status=$?
8771   grep -v '^ *+' conftest.er1 >conftest.err
8772   rm -f conftest.er1
8773   cat conftest.err >&5
8774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775   (exit $ac_status); } &&
8776          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778   (eval $ac_try) 2>&5
8779   ac_status=$?
8780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781   (exit $ac_status); }; } &&
8782          { ac_try='test -s conftest$ac_exeext'
8783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8784   (eval $ac_try) 2>&5
8785   ac_status=$?
8786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787   (exit $ac_status); }; }; then
8788   ac_cv_prog_lex_yytext_pointer=yes
8789 else
8790   echo "$as_me: failed program was:" >&5
8791 sed 's/^/| /' conftest.$ac_ext >&5
8792
8793 fi
8794 rm -f conftest.err conftest.$ac_objext \
8795       conftest$ac_exeext conftest.$ac_ext
8796 LIBS=$ac_save_LIBS
8797 rm -f "${LEX_OUTPUT_ROOT}.c"
8798
8799 fi
8800 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
8801 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
8802 if test $ac_cv_prog_lex_yytext_pointer = yes; then
8803
8804 cat >>confdefs.h <<\_ACEOF
8805 #define YYTEXT_POINTER 1
8806 _ACEOF
8807
8808 fi
8809
8810 fi
8811 if test "$LEX" = ":" ; then
8812   { { echo "$as_me:$LINENO: error: Cannot find flex." >&5
8813 echo "$as_me: error: Cannot find flex." >&2;}
8814    { (exit 1); exit 1; }; }
8815 elif echo "" | $LEX -V -v --version > /dev/null 2>&1 ; then
8816   :
8817 else
8818   { { echo "$as_me:$LINENO: error: Cannot use $LEX as flex." >&5
8819 echo "$as_me: error: Cannot use $LEX as flex." >&2;}
8820    { (exit 1); exit 1; }; }
8821 fi
8822
8823 if test -z "$LEXLIB" ; then
8824   { { echo "$as_me:$LINENO: error: Cannot find a library with yywrap() in, but flex was found.
8825   It's possible the compiler you're using ($CC) is incompatible with the
8826   installed library.
8827 See \`config.log' for more details." >&5
8828 echo "$as_me: error: Cannot find a library with yywrap() in, but flex was found.
8829   It's possible the compiler you're using ($CC) is incompatible with the
8830   installed library.
8831 See \`config.log' for more details." >&2;}
8832    { (exit 1); exit 1; }; }
8833 fi
8834
8835 LIBS="$LEXLIB $LIBS"
8836
8837 for ac_prog in 'bison -y' byacc
8838 do
8839   # Extract the first word of "$ac_prog", so it can be a program name with args.
8840 set dummy $ac_prog; ac_word=$2
8841 echo "$as_me:$LINENO: checking for $ac_word" >&5
8842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8843 if test "${ac_cv_prog_YACC+set}" = set; then
8844   echo $ECHO_N "(cached) $ECHO_C" >&6
8845 else
8846   if test -n "$YACC"; then
8847   ac_cv_prog_YACC="$YACC" # Let the user override the test.
8848 else
8849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8850 for as_dir in $PATH
8851 do
8852   IFS=$as_save_IFS
8853   test -z "$as_dir" && as_dir=.
8854   for ac_exec_ext in '' $ac_executable_extensions; do
8855   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8856     ac_cv_prog_YACC="$ac_prog"
8857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8858     break 2
8859   fi
8860 done
8861 done
8862
8863 fi
8864 fi
8865 YACC=$ac_cv_prog_YACC
8866 if test -n "$YACC"; then
8867   echo "$as_me:$LINENO: result: $YACC" >&5
8868 echo "${ECHO_T}$YACC" >&6
8869 else
8870   echo "$as_me:$LINENO: result: no" >&5
8871 echo "${ECHO_T}no" >&6
8872 fi
8873
8874   test -n "$YACC" && break
8875 done
8876 test -n "$YACC" || YACC="yacc"
8877
8878 if test "$YACC" = ":" ; then
8879   { { echo "$as_me:$LINENO: error: Cannot find yacc." >&5
8880 echo "$as_me: error: Cannot find yacc." >&2;}
8881    { (exit 1); exit 1; }; }
8882 elif echo "" | $YACC -V -v --version > /dev/null 2>&1 ; then
8883   :
8884 else
8885   { echo "$as_me:$LINENO: WARNING: $YACC may not work as yacc." >&5
8886 echo "$as_me: WARNING: $YACC may not work as yacc." >&2;}
8887 fi
8888
8889
8890 echo "$as_me:$LINENO: checking for posix non-blocking" >&5
8891 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6
8892 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
8893   echo $ECHO_N "(cached) $ECHO_C" >&6
8894 else
8895   if test "$cross_compiling" = yes; then
8896   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8897 See \`config.log' for more details." >&5
8898 echo "$as_me: error: cannot run test program while cross compiling
8899 See \`config.log' for more details." >&2;}
8900    { (exit 1); exit 1; }; }
8901 else
8902   cat >conftest.$ac_ext <<_ACEOF
8903 /* confdefs.h.  */
8904 _ACEOF
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h.  */
8908 #include <sys/types.h>
8909 #include <sys/socket.h>
8910 #include <fcntl.h>
8911 #include <sys/ioctl.h>
8912 #include <sys/file.h>
8913 #include <signal.h>
8914 $ac_cv_type_signal alarmed() { exit(1); }
8915 int main(void)
8916 {
8917   char b[12];
8918   struct sockaddr x;
8919   size_t l = sizeof(x);
8920   int f = socket(AF_INET, SOCK_DGRAM, 0);
8921   if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
8922   {
8923     signal(SIGALRM, alarmed);
8924     alarm(2);
8925     recvfrom(f, b, 12, 0, &x, &l);
8926     alarm(0);
8927     exit(0);
8928   }
8929   exit(1);
8930 }
8931 _ACEOF
8932 rm -f conftest$ac_exeext
8933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8934   (eval $ac_link) 2>&5
8935   ac_status=$?
8936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939   (eval $ac_try) 2>&5
8940   ac_status=$?
8941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942   (exit $ac_status); }; }; then
8943   unet_cv_sys_nonblocking_posix=yes
8944 else
8945   echo "$as_me: program exited with status $ac_status" >&5
8946 echo "$as_me: failed program was:" >&5
8947 sed 's/^/| /' conftest.$ac_ext >&5
8948
8949 ( exit $ac_status )
8950 unet_cv_sys_nonblocking_posix=no
8951 fi
8952 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8953 fi
8954 fi
8955 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
8956 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6
8957 if test $unet_cv_sys_nonblocking_posix = yes; then
8958
8959 cat >>confdefs.h <<\_ACEOF
8960 #define NBLOCK_POSIX
8961 _ACEOF
8962
8963 else
8964 echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
8965 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6
8966 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
8967   echo $ECHO_N "(cached) $ECHO_C" >&6
8968 else
8969   if test "$cross_compiling" = yes; then
8970   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8971 See \`config.log' for more details." >&5
8972 echo "$as_me: error: cannot run test program while cross compiling
8973 See \`config.log' for more details." >&2;}
8974    { (exit 1); exit 1; }; }
8975 else
8976   cat >conftest.$ac_ext <<_ACEOF
8977 /* confdefs.h.  */
8978 _ACEOF
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h.  */
8982 #include <sys/types.h>
8983 #include <sys/socket.h>
8984 #include <fcntl.h>
8985 #include <sys/ioctl.h>
8986 #include <sys/file.h>
8987 #include <signal.h>
8988 $ac_cv_type_signal alarmed() { exit(1); }
8989 int main(void)
8990 {
8991   char b[12];
8992   struct sockaddr x;
8993   size_t l = sizeof(x);
8994   int f = socket(AF_INET, SOCK_DGRAM, 0);
8995   if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
8996   {
8997     signal(SIGALRM, alarmed);
8998     alarm(2);
8999     recvfrom(f, b, 12, 0, &x, &l);
9000     alarm(0);
9001     exit(0);
9002   }
9003   exit(1);
9004 }
9005 _ACEOF
9006 rm -f conftest$ac_exeext
9007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9008   (eval $ac_link) 2>&5
9009   ac_status=$?
9010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013   (eval $ac_try) 2>&5
9014   ac_status=$?
9015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016   (exit $ac_status); }; }; then
9017   unet_cv_sys_nonblocking_bsd=yes
9018 else
9019   echo "$as_me: program exited with status $ac_status" >&5
9020 echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.$ac_ext >&5
9022
9023 ( exit $ac_status )
9024 unet_cv_sys_nonblocking_bsd=no
9025 fi
9026 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9027 fi
9028 fi
9029 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
9030 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6
9031 if test $unet_cv_sys_nonblocking_bsd = yes; then
9032
9033 cat >>confdefs.h <<\_ACEOF
9034 #define NBLOCK_BSD
9035 _ACEOF
9036
9037 else
9038
9039 cat >>confdefs.h <<\_ACEOF
9040 #define NBLOCK_SYSV
9041 _ACEOF
9042
9043 fi
9044 fi
9045 echo "$as_me:$LINENO: checking for posix signals" >&5
9046 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6
9047 if test "${unet_cv_sys_signal_posix+set}" = set; then
9048   echo $ECHO_N "(cached) $ECHO_C" >&6
9049 else
9050   cat >conftest.$ac_ext <<_ACEOF
9051 /* confdefs.h.  */
9052 _ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h.  */
9056 #include <signal.h>
9057 int
9058 main ()
9059 {
9060 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
9061   ;
9062   return 0;
9063 }
9064 _ACEOF
9065 rm -f conftest.$ac_objext
9066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9067   (eval $ac_compile) 2>conftest.er1
9068   ac_status=$?
9069   grep -v '^ *+' conftest.er1 >conftest.err
9070   rm -f conftest.er1
9071   cat conftest.err >&5
9072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073   (exit $ac_status); } &&
9074          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076   (eval $ac_try) 2>&5
9077   ac_status=$?
9078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079   (exit $ac_status); }; } &&
9080          { ac_try='test -s conftest.$ac_objext'
9081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082   (eval $ac_try) 2>&5
9083   ac_status=$?
9084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085   (exit $ac_status); }; }; then
9086   unet_cv_sys_signal_posix=yes
9087 else
9088   echo "$as_me: failed program was:" >&5
9089 sed 's/^/| /' conftest.$ac_ext >&5
9090
9091 unet_cv_sys_signal_posix=no
9092 fi
9093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9094 fi
9095 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
9096 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6
9097 if test $unet_cv_sys_signal_posix = yes; then
9098
9099 cat >>confdefs.h <<\_ACEOF
9100 #define POSIX_SIGNALS
9101 _ACEOF
9102
9103 else
9104 echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
9105 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6
9106 if test "${unet_cv_sys_signal_bsd+set}" = set; then
9107   echo $ECHO_N "(cached) $ECHO_C" >&6
9108 else
9109   if test "$cross_compiling" = yes; then
9110   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9111 See \`config.log' for more details." >&5
9112 echo "$as_me: error: cannot run test program while cross compiling
9113 See \`config.log' for more details." >&2;}
9114    { (exit 1); exit 1; }; }
9115 else
9116   cat >conftest.$ac_ext <<_ACEOF
9117 /* confdefs.h.  */
9118 _ACEOF
9119 cat confdefs.h >>conftest.$ac_ext
9120 cat >>conftest.$ac_ext <<_ACEOF
9121 /* end confdefs.h.  */
9122 #include <signal.h>
9123 int calls = 0;
9124 $ac_cv_type_signal handler()
9125 {
9126   if (calls) return;
9127   calls++;
9128   kill(getpid(), SIGTERM);
9129   sleep(1);
9130 }
9131 int main(void)
9132 {
9133   signal(SIGTERM, handler);
9134   kill(getpid(), SIGTERM);
9135   exit (0);
9136 }
9137 _ACEOF
9138 rm -f conftest$ac_exeext
9139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9140   (eval $ac_link) 2>&5
9141   ac_status=$?
9142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9145   (eval $ac_try) 2>&5
9146   ac_status=$?
9147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148   (exit $ac_status); }; }; then
9149   unet_cv_sys_signal_bsd=yes
9150 else
9151   echo "$as_me: program exited with status $ac_status" >&5
9152 echo "$as_me: failed program was:" >&5
9153 sed 's/^/| /' conftest.$ac_ext >&5
9154
9155 ( exit $ac_status )
9156 unet_cv_sys_signal_bsd=no
9157 fi
9158 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9159 fi
9160 fi
9161 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
9162 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6
9163 if test $unet_cv_sys_signal_bsd = yes; then
9164
9165 cat >>confdefs.h <<\_ACEOF
9166 #define BSD_RELIABLE_SIGNALS
9167 _ACEOF
9168
9169 else
9170
9171 cat >>confdefs.h <<\_ACEOF
9172 #define SYSV_UNRELIABLE_SIGNALS
9173 _ACEOF
9174
9175 fi
9176 fi
9177
9178 echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5
9179 echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6
9180 unet_cv_pipe_flags="$ac_cv_c_compiler_gnu"
9181 if test "$ac_cv_c_compiler_gnu" = no; then
9182   OLDCFLAGS="$CFLAGS"
9183   CFLAGS="$CFLAGS -pipe"
9184   cat >conftest.$ac_ext <<_ACEOF
9185 /* confdefs.h.  */
9186 _ACEOF
9187 cat confdefs.h >>conftest.$ac_ext
9188 cat >>conftest.$ac_ext <<_ACEOF
9189 /* end confdefs.h.  */
9190
9191 int
9192 main ()
9193 {
9194
9195   ;
9196   return 0;
9197 }
9198 _ACEOF
9199 rm -f conftest.$ac_objext
9200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9201   (eval $ac_compile) 2>conftest.er1
9202   ac_status=$?
9203   grep -v '^ *+' conftest.er1 >conftest.err
9204   rm -f conftest.er1
9205   cat conftest.err >&5
9206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); } &&
9208          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210   (eval $ac_try) 2>&5
9211   ac_status=$?
9212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213   (exit $ac_status); }; } &&
9214          { ac_try='test -s conftest.$ac_objext'
9215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9216   (eval $ac_try) 2>&5
9217   ac_status=$?
9218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219   (exit $ac_status); }; }; then
9220   unet_cv_pipe_flags=yes
9221 else
9222   echo "$as_me: failed program was:" >&5
9223 sed 's/^/| /' conftest.$ac_ext >&5
9224
9225 fi
9226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9227   CFLAGS="$OLDCFLAGS"
9228 fi
9229 echo "$as_me:$LINENO: result: $unet_cv_pipe_flags" >&5
9230 echo "${ECHO_T}$unet_cv_pipe_flags" >&6
9231 if test "$unet_cv_pipe_flags" = yes ; then
9232   x=`echo $CFLAGS | grep 'pipe' 2>/dev/null`
9233   if test "$x" = "" ; then
9234     CFLAGS="$CFLAGS -pipe"
9235   fi
9236 fi
9237
9238
9239 echo "$as_me:$LINENO: checking for OS-dependent information" >&5
9240 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6
9241 case "$host" in
9242     *-linux*)
9243         echo "$as_me:$LINENO: result: Linux ($host) found." >&5
9244 echo "${ECHO_T}Linux ($host) found." >&6
9245         unet_poll_syscall=yes
9246         ;;
9247
9248     *-solaris*)
9249         echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9250 echo "${ECHO_T}Solaris ($host) found." >&6
9251         if test x"$ac_cv_header_poll_h" = xyes; then
9252             unet_poll_syscall=yes
9253         else
9254             unet_poll_syscall=no
9255         fi
9256         ;;
9257
9258     *-sunos*)
9259         echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9260 echo "${ECHO_T}Solaris ($host) found." >&6
9261         unet_poll_syscall=no
9262         ;;
9263
9264     *-openbsd*)
9265         echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
9266 echo "${ECHO_T}OpenBSD ($host) found." >&6
9267         if test x"$ac_cv_header_poll_h" = xyes; then
9268             unet_poll_syscall=yes
9269         else
9270             unet_poll_syscall=no
9271         fi
9272         ;;
9273
9274     *-*bsd*)
9275         echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
9276 echo "${ECHO_T}Generic BSD ($host) found." >&6
9277         if test x"$ac_cv_header_poll_h" = xyes; then
9278             unet_poll_syscall=yes
9279         else
9280             unet_poll_syscall=no
9281         fi
9282         ;;
9283
9284     *-darwin*)
9285         echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
9286 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6
9287         unet_poll_syscall=no
9288         ;;
9289
9290     *)
9291         echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
9292 echo "${ECHO_T}Unknown system type $host found." >&6
9293         { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
9294 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
9295         unet_poll_syscall=no
9296         ;;
9297 esac
9298
9299 echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
9300 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6
9301 # Check whether --enable-poll or --disable-poll was given.
9302 if test "${enable_poll+set}" = set; then
9303   enableval="$enable_poll"
9304   unet_cv_enable_poll=$enable_poll
9305 else
9306   if test "${unet_cv_enable_poll+set}" = set; then
9307   echo $ECHO_N "(cached) $ECHO_C" >&6
9308 else
9309   unet_cv_enable_poll=$unet_poll_syscall
9310 fi
9311
9312 fi;
9313
9314 # Force poll to be disabled if there is no poll.h
9315 if test x"$ac_cv_header_poll_h" != xyes; then
9316     unet_cv_enable_poll=no
9317 fi
9318
9319 echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
9320 echo "${ECHO_T}$unet_cv_enable_poll" >&6
9321
9322 if test x"$unet_cv_enable_poll" = xyes; then
9323
9324 cat >>confdefs.h <<\_ACEOF
9325 #define USE_POLL 1
9326 _ACEOF
9327
9328     ENGINE_C=engine_poll.c
9329 else
9330     ENGINE_C=engine_select.c
9331 fi
9332
9333
9334 echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
9335 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6
9336 # Check whether --enable-debug or --disable-debug was given.
9337 if test "${enable_debug+set}" = set; then
9338   enableval="$enable_debug"
9339   unet_cv_enable_debug=$enable_debug
9340 else
9341   if test "${unet_cv_enable_debug+set}" = set; then
9342   echo $ECHO_N "(cached) $ECHO_C" >&6
9343 else
9344   unet_cv_enable_debug=no
9345 fi
9346
9347 fi;
9348 echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
9349 echo "${ECHO_T}$unet_cv_enable_debug" >&6
9350
9351 if test x"$unet_cv_enable_debug" = xyes; then
9352
9353 cat >>confdefs.h <<\_ACEOF
9354 #define DEBUGMODE 1
9355 _ACEOF
9356
9357 fi
9358
9359 echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
9360 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6
9361
9362 # Check whether --with-leak-detect or --without-leak-detect was given.
9363 if test "${with_leak_detect+set}" = set; then
9364   withval="$with_leak_detect"
9365   unet_cv_with_leak_detect=$with_leak_detect
9366 else
9367   if test "${unet_cv_with_leak_detect+set}" = set; then
9368   echo $ECHO_N "(cached) $ECHO_C" >&6
9369 else
9370   unet_cv_with_leak_detect=no
9371 fi
9372
9373 fi;
9374 echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
9375 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6
9376
9377 if test x"$unet_cv_with_leak_detect" != xno; then
9378     LIBS="-lgc $LIBS"
9379     CFLAGS="-DMDEBUG $CFLAGS"
9380     if test x"$unet_cv_with_leak_detect" != xyes; then
9381        LIBS="-L$unet_cv_with_leak_detect $LIBS"
9382     fi
9383 fi
9384
9385
9386 # Check whether --with-ipv6 or --without-ipv6 was given.
9387 if test "${with_ipv6+set}" = set; then
9388   withval="$with_ipv6"
9389   ac_cv_use_ipv6=$withval
9390 else
9391   ac_cv_use_ipv6=$unet_have_sockaddr_in6
9392 fi;
9393 echo "$as_me:$LINENO: checking whether to use IPv6" >&5
9394 echo $ECHO_N "checking whether to use IPv6... $ECHO_C" >&6
9395 if test "${ac_cv_use_ipv6+set}" = set; then
9396   echo $ECHO_N "(cached) $ECHO_C" >&6
9397 else
9398   ac_cv_use_ipv6=no
9399 fi
9400 echo "$as_me:$LINENO: result: $ac_cv_use_ipv6" >&5
9401 echo "${ECHO_T}$ac_cv_use_ipv6" >&6
9402 if test x"$ac_cv_use_ipv6" != "xno" ; then
9403
9404 cat >>confdefs.h <<\_ACEOF
9405 #define IPV6 1
9406 _ACEOF
9407
9408 fi
9409
9410 echo "$as_me:$LINENO: checking whether to enable asserts" >&5
9411 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6
9412 # Check whether --enable-asserts or --disable-asserts was given.
9413 if test "${enable_asserts+set}" = set; then
9414   enableval="$enable_asserts"
9415   unet_cv_enable_asserts=$enable_asserts
9416 else
9417   if test "${unet_cv_enable_asserts+set}" = set; then
9418   echo $ECHO_N "(cached) $ECHO_C" >&6
9419 else
9420   unet_cv_enable_asserts=yes
9421 fi
9422
9423 fi;
9424 echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
9425 echo "${ECHO_T}$unet_cv_enable_asserts" >&6
9426
9427 if test x"$unet_cv_enable_asserts" = xno; then
9428
9429 cat >>confdefs.h <<\_ACEOF
9430 #define NDEBUG 1
9431 _ACEOF
9432
9433 fi
9434
9435 echo "$as_me:$LINENO: checking whether to enable debugging symbols" >&5
9436 echo $ECHO_N "checking whether to enable debugging symbols... $ECHO_C" >&6
9437 # Check whether --enable-symbols or --disable-symbols was given.
9438 if test "${enable_symbols+set}" = set; then
9439   enableval="$enable_symbols"
9440   unet_cv_enable_symbols=$enable_symbols
9441 else
9442   if test "${unet_cv_enable_symbols+set}" = set; then
9443   echo $ECHO_N "(cached) $ECHO_C" >&6
9444 else
9445   unet_cv_enable_symbols=yes
9446 fi
9447
9448 fi;
9449 echo "$as_me:$LINENO: result: $unet_cv_enable_symbols" >&5
9450 echo "${ECHO_T}$unet_cv_enable_symbols" >&6
9451
9452 if test x"$unet_cv_enable_symbols" = xyes; then
9453     CFLAGS="-g $CFLAGS"
9454 fi
9455
9456 echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
9457 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
9458 # Check whether --enable-profile or --disable-profile was given.
9459 if test "${enable_profile+set}" = set; then
9460   enableval="$enable_profile"
9461   unet_cv_enable_profile=$enable_profile
9462 else
9463   if test "${unet_cv_enable_profile+set}" = set; then
9464   echo $ECHO_N "(cached) $ECHO_C" >&6
9465 else
9466   unet_cv_enable_profile=no
9467 fi
9468
9469 fi;
9470 echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
9471 echo "${ECHO_T}$unet_cv_enable_profile" >&6
9472
9473 if test x"$unet_cv_enable_profile" = xyes; then
9474     CFLAGS="-pg $CFLAGS"
9475 fi
9476
9477 echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
9478 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6
9479 # Check whether --enable-pedantic or --disable-pedantic was given.
9480 if test "${enable_pedantic+set}" = set; then
9481   enableval="$enable_pedantic"
9482   unet_cv_enable_pedantic=$enable_pedantic
9483 else
9484   if test "${unet_cv_enable_pedantic+set}" = set; then
9485   echo $ECHO_N "(cached) $ECHO_C" >&6
9486 else
9487   unet_cv_enable_pedantic=no
9488 fi
9489
9490 fi;
9491 echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
9492 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6
9493
9494 if test x"$unet_cv_enable_pedantic" = xyes; then
9495     CFLAGS="-pedantic $CFLAGS"
9496 fi
9497
9498 echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
9499 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6
9500 # Check whether --enable-warnings or --disable-warnings was given.
9501 if test "${enable_warnings+set}" = set; then
9502   enableval="$enable_warnings"
9503   unet_cv_enable_warnings=$enable_warnings
9504 else
9505   if test "${unet_cv_enable_warnings+set}" = set; then
9506   echo $ECHO_N "(cached) $ECHO_C" >&6
9507 else
9508   unet_cv_enable_warnings=no
9509 fi
9510
9511 fi;
9512 echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
9513 echo "${ECHO_T}$unet_cv_enable_warnings" >&6
9514
9515 if test x"$unet_cv_enable_warnings" = xyes; then
9516     CFLAGS="-Wall $CFLAGS"
9517 fi
9518
9519 echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
9520 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6
9521 # Check whether --enable-inlines or --disable-inlines was given.
9522 if test "${enable_inlines+set}" = set; then
9523   enableval="$enable_inlines"
9524   unet_cv_enable_inlines=$enable_inlines
9525 else
9526   if test "${unet_cv_enable_inlines+set}" = set; then
9527   echo $ECHO_N "(cached) $ECHO_C" >&6
9528 else
9529   unet_cv_enable_inlines=yes
9530 fi
9531
9532 fi;
9533 echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
9534 echo "${ECHO_T}$unet_cv_enable_inlines" >&6
9535
9536 if test x"$unet_cv_enable_inlines" = xyes; then
9537
9538 cat >>confdefs.h <<\_ACEOF
9539 #define FORCEINLINE 1
9540 _ACEOF
9541
9542 fi
9543
9544 echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
9545 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6
9546 # Check whether --enable-devpoll or --disable-devpoll was given.
9547 if test "${enable_devpoll+set}" = set; then
9548   enableval="$enable_devpoll"
9549   unet_cv_enable_devpoll=$enable_devpoll
9550 else
9551   if test "${unet_cv_enable_devpoll+set}" = set; then
9552   echo $ECHO_N "(cached) $ECHO_C" >&6
9553 else
9554   unet_cv_enable_devpoll=yes
9555 fi
9556
9557 fi;
9558
9559 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
9560     unet_cv_enable_devpoll=no
9561 fi
9562
9563 echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
9564 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
9565
9566 if test x"$unet_cv_enable_devpoll" != xno; then
9567
9568 cat >>confdefs.h <<\_ACEOF
9569 #define USE_DEVPOLL 1
9570 _ACEOF
9571
9572     ENGINE_C="engine_devpoll.c $ENGINE_C"
9573 fi
9574
9575 echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
9576 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6
9577 # Check whether --enable-kqueue or --disable-kqueue was given.
9578 if test "${enable_kqueue+set}" = set; then
9579   enableval="$enable_kqueue"
9580   unet_cv_enable_kqueue=$enable_kqueue
9581 else
9582   if test "${unet_cv_enable_kqueue+set}" = set; then
9583   echo $ECHO_N "(cached) $ECHO_C" >&6
9584 else
9585   unet_cv_enable_kqueue=yes
9586 fi
9587
9588 fi;
9589
9590 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
9591     unet_cv_enable_kqueue=no
9592 fi
9593
9594 echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
9595 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
9596
9597 if test x"$unet_cv_enable_kqueue" != xno; then
9598
9599 cat >>confdefs.h <<\_ACEOF
9600 #define USE_KQUEUE 1
9601 _ACEOF
9602
9603     ENGINE_C="engine_kqueue.c $ENGINE_C"
9604 fi
9605
9606 echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
9607 echo $ECHO_N "checking whether to enable the epoll event engine... $ECHO_C" >&6
9608 # Check whether --enable-epoll or --disable-epoll was given.
9609 if test "${enable_epoll+set}" = set; then
9610   enableval="$enable_epoll"
9611   unet_cv_enable_epoll=$enable_epoll
9612 else
9613   if test "${unet_cv_enable_epoll+set}" = set; then
9614   echo $ECHO_N "(cached) $ECHO_C" >&6
9615 else
9616   unet_cv_enable_epoll=yes
9617 fi
9618
9619 fi;
9620
9621 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
9622     unet_cv_enable_epoll=no
9623 fi
9624
9625 echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
9626 echo "${ECHO_T}$unet_cv_enable_epoll" >&6
9627
9628 if test x"$unet_cv_enable_epoll" != xno; then
9629     echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
9630 echo $ECHO_N "checking whether epoll functions are properly defined... $ECHO_C" >&6
9631     cat >conftest.$ac_ext <<_ACEOF
9632 /* confdefs.h.  */
9633 _ACEOF
9634 cat confdefs.h >>conftest.$ac_ext
9635 cat >>conftest.$ac_ext <<_ACEOF
9636 /* end confdefs.h.  */
9637 #include <sys/epoll.h>
9638 int
9639 main ()
9640 {
9641 epoll_create(10);
9642   ;
9643   return 0;
9644 }
9645 _ACEOF
9646 rm -f conftest.$ac_objext conftest$ac_exeext
9647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9648   (eval $ac_link) 2>conftest.er1
9649   ac_status=$?
9650   grep -v '^ *+' conftest.er1 >conftest.err
9651   rm -f conftest.er1
9652   cat conftest.err >&5
9653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654   (exit $ac_status); } &&
9655          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657   (eval $ac_try) 2>&5
9658   ac_status=$?
9659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660   (exit $ac_status); }; } &&
9661          { ac_try='test -s conftest$ac_exeext'
9662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9663   (eval $ac_try) 2>&5
9664   ac_status=$?
9665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666   (exit $ac_status); }; }; then
9667   echo "$as_me:$LINENO: result: yes" >&5
9668 echo "${ECHO_T}yes" >&6
9669 else
9670   echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9672
9673 echo "$as_me:$LINENO: result: no" >&5
9674 echo "${ECHO_T}no" >&6
9675
9676 cat >>confdefs.h <<\_ACEOF
9677 #define EPOLL_NEED_BODY 1
9678 _ACEOF
9679
9680 fi
9681 rm -f conftest.err conftest.$ac_objext \
9682       conftest$ac_exeext conftest.$ac_ext
9683
9684 cat >>confdefs.h <<\_ACEOF
9685 #define USE_EPOLL 1
9686 _ACEOF
9687
9688     ENGINE_C="engine_epoll.c $ENGINE_C"
9689 fi
9690
9691 echo "$as_me:$LINENO: checking for va_copy" >&5
9692 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
9693 if test "${unet_cv_c_va_copy+set}" = set; then
9694   echo $ECHO_N "(cached) $ECHO_C" >&6
9695 else
9696   cat >conftest.$ac_ext <<_ACEOF
9697 /* confdefs.h.  */
9698 _ACEOF
9699 cat confdefs.h >>conftest.$ac_ext
9700 cat >>conftest.$ac_ext <<_ACEOF
9701 /* end confdefs.h.  */
9702 #include <stdarg.h>
9703 int
9704 main ()
9705 {
9706 va_list ap1, ap2; va_copy(ap1, ap2);
9707   ;
9708   return 0;
9709 }
9710 _ACEOF
9711 rm -f conftest.$ac_objext conftest$ac_exeext
9712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9713   (eval $ac_link) 2>conftest.er1
9714   ac_status=$?
9715   grep -v '^ *+' conftest.er1 >conftest.err
9716   rm -f conftest.er1
9717   cat conftest.err >&5
9718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719   (exit $ac_status); } &&
9720          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722   (eval $ac_try) 2>&5
9723   ac_status=$?
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); }; } &&
9726          { ac_try='test -s conftest$ac_exeext'
9727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728   (eval $ac_try) 2>&5
9729   ac_status=$?
9730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); }; }; then
9732   unet_cv_c_va_copy="yes"
9733 else
9734   echo "$as_me: failed program was:" >&5
9735 sed 's/^/| /' conftest.$ac_ext >&5
9736
9737 unet_cv_c_va_copy="no"
9738
9739 fi
9740 rm -f conftest.err conftest.$ac_objext \
9741       conftest$ac_exeext conftest.$ac_ext
9742 fi
9743 echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
9744 echo "${ECHO_T}$unet_cv_c_va_copy" >&6
9745 if test "$unet_cv_c_va_copy" = "yes" ; then
9746
9747 cat >>confdefs.h <<\_ACEOF
9748 #define HAVE_VA_COPY 1
9749 _ACEOF
9750
9751 fi
9752
9753 echo "$as_me:$LINENO: checking for __va_copy" >&5
9754 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
9755 if test "${unet_cv_c___va_copy+set}" = set; then
9756   echo $ECHO_N "(cached) $ECHO_C" >&6
9757 else
9758   cat >conftest.$ac_ext <<_ACEOF
9759 /* confdefs.h.  */
9760 _ACEOF
9761 cat confdefs.h >>conftest.$ac_ext
9762 cat >>conftest.$ac_ext <<_ACEOF
9763 /* end confdefs.h.  */
9764 #include <stdarg.h>
9765 int
9766 main ()
9767 {
9768 va_list ap1, ap2; __va_copy(ap1, ap2);
9769   ;
9770   return 0;
9771 }
9772 _ACEOF
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9775   (eval $ac_link) 2>conftest.er1
9776   ac_status=$?
9777   grep -v '^ *+' conftest.er1 >conftest.err
9778   rm -f conftest.er1
9779   cat conftest.err >&5
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); } &&
9782          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784   (eval $ac_try) 2>&5
9785   ac_status=$?
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); }; } &&
9788          { ac_try='test -s conftest$ac_exeext'
9789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790   (eval $ac_try) 2>&5
9791   ac_status=$?
9792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793   (exit $ac_status); }; }; then
9794   unet_cv_c___va_copy="yes"
9795 else
9796   echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9798
9799 unet_cv_c___va_copy="no"
9800
9801 fi
9802 rm -f conftest.err conftest.$ac_objext \
9803       conftest$ac_exeext conftest.$ac_ext
9804 fi
9805 echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
9806 echo "${ECHO_T}$unet_cv_c___va_copy" >&6
9807 if test "$unet_cv_c___va_copy" = "yes" ; then
9808
9809 cat >>confdefs.h <<\_ACEOF
9810 #define HAVE___VA_COPY 1
9811 _ACEOF
9812
9813 fi
9814
9815 echo "$as_me:$LINENO: checking what name to give the symlink" >&5
9816 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6
9817
9818 # Check whether --with-symlink or --without-symlink was given.
9819 if test "${with_symlink+set}" = set; then
9820   withval="$with_symlink"
9821   unet_cv_with_symlink=$with_symlink
9822 else
9823   if test "${unet_cv_with_symlink+set}" = set; then
9824   echo $ECHO_N "(cached) $ECHO_C" >&6
9825 else
9826   unet_cv_with_symlink="ircd"
9827 fi
9828
9829 fi;
9830
9831 if test x"$unet_cv_with_symlink" = xyes; then
9832     unet_cv_with_symlink="ircd"
9833 fi
9834
9835 echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
9836 echo "${ECHO_T}$unet_cv_with_symlink" >&6
9837
9838 if test x"$unet_cv_with_symlink" = xno; then
9839     INSTALL_RULE=install-no-symlink
9840     SYMLINK=
9841 else
9842     INSTALL_RULE=install-with-symlink
9843     SYMLINK=$unet_cv_with_symlink
9844 fi
9845
9846
9847
9848 echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
9849 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6
9850
9851 # Check whether --with-mode or --without-mode was given.
9852 if test "${with_mode+set}" = set; then
9853   withval="$with_mode"
9854   unet_cv_with_mode=$with_mode
9855 else
9856   if test "${unet_cv_with_mode+set}" = set; then
9857   echo $ECHO_N "(cached) $ECHO_C" >&6
9858 else
9859   unet_cv_with_mode=711
9860 fi
9861
9862 fi;
9863
9864 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
9865     unet_cv_with_mode=711
9866 fi
9867
9868 echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
9869 echo "${ECHO_T}$unet_cv_with_mode" >&6
9870
9871 IRCDMODE=$unet_cv_with_mode
9872
9873
9874 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
9875 echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
9876 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6
9877
9878 # Check whether --with-owner or --without-owner was given.
9879 if test "${with_owner+set}" = set; then
9880   withval="$with_owner"
9881   unet_cv_with_owner=$with_owner
9882 else
9883   if test "${unet_cv_with_owner+set}" = set; then
9884   echo $ECHO_N "(cached) $ECHO_C" >&6
9885 else
9886   unet_cv_with_owner=$unet_uid
9887 fi
9888
9889 fi;
9890
9891 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
9892     unet_cv_with_owner=$unet_uid
9893 fi
9894
9895 echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
9896 echo "${ECHO_T}$unet_cv_with_owner" >&6
9897
9898 IRCDOWN=$unet_cv_with_owner
9899
9900
9901 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
9902 echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
9903 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6
9904
9905 # Check whether --with-group or --without-group was given.
9906 if test "${with_group+set}" = set; then
9907   withval="$with_group"
9908   unet_cv_with_group=$with_group
9909 else
9910   if test "${unet_cv_with_group+set}" = set; then
9911   echo $ECHO_N "(cached) $ECHO_C" >&6
9912 else
9913   unet_cv_with_group=$unet_gid
9914 fi
9915
9916 fi;
9917
9918 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
9919     unet_cv_with_group=$unet_gid
9920 fi
9921
9922 echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
9923 echo "${ECHO_T}$unet_cv_with_group" >&6
9924
9925 IRCDGRP=$unet_cv_with_group
9926
9927
9928 unet_domain=
9929 if test -f /etc/resolv.conf; then
9930     unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
9931     if test x"$unet_domain" = x; then
9932         unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
9933     fi
9934 fi
9935 echo "$as_me:$LINENO: checking for site domain name" >&5
9936 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6
9937
9938 # Check whether --with-domain or --without-domain was given.
9939 if test "${with_domain+set}" = set; then
9940   withval="$with_domain"
9941   unet_cv_with_domain=$with_domain
9942 else
9943   if test "${unet_cv_with_domain+set}" = set; then
9944   echo $ECHO_N "(cached) $ECHO_C" >&6
9945 else
9946   unet_cv_with_domain=$unet_domain
9947 fi
9948
9949 fi;
9950
9951 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
9952     unet_cv_with_domain=$unet_domain
9953 fi
9954 if test x"$unet_cv_with_domain" = xno; then
9955     { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
9956 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
9957    { (exit 1); exit 1; }; }
9958 fi
9959
9960 echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
9961 echo "${ECHO_T}$unet_cv_with_domain" >&6
9962
9963
9964 cat >>confdefs.h <<_ACEOF
9965 #define DOMAINNAME "*$unet_cv_with_domain"
9966 _ACEOF
9967
9968
9969 echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
9970 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6
9971
9972 # Check whether --with-chroot or --without-chroot was given.
9973 if test "${with_chroot+set}" = set; then
9974   withval="$with_chroot"
9975   unet_cv_with_chroot=$with_chroot
9976 else
9977   if test "${unet_cv_with_chroot+set}" = set; then
9978   echo $ECHO_N "(cached) $ECHO_C" >&6
9979 else
9980   unet_cv_with_chroot=no
9981 fi
9982
9983 fi;
9984
9985 if test x"$unet_cv_with_chroot" = xyes; then
9986     { { echo "$as_me:$LINENO: error: --with-chroot given with no directory.  See doc/readme.chroot." >&5
9987 echo "$as_me: error: --with-chroot given with no directory.  See doc/readme.chroot." >&2;}
9988    { (exit 1); exit 1; }; }
9989 fi
9990
9991 # Ensure there are no trailing /'s to mess us up
9992 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
9993
9994 echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
9995 echo "${ECHO_T}$unet_cv_with_chroot" >&6
9996
9997 # Deal with the annoying value "NONE" here
9998 unet_save_prefix=$prefix
9999 if test x"$prefix" = xNONE; then
10000     prefix=$ac_default_prefix
10001 else
10002     prefix=$prefix
10003 fi
10004
10005 unet_save_exec_prefix=$exec_prefix
10006 if test x"$exec_prefix" = xNONE; then
10007     exec_prefix=$prefix
10008 else
10009     exec_prefix=$exec_prefix
10010 fi
10011
10012 # Obtain the actual interesting directories
10013 unet_bindir=`eval echo "$bindir"`
10014 unet_libdir=`eval echo "$libdir"`
10015
10016 # Restore the original settings of $prefix and $exec_prefix
10017 prefix=$unet_save_prefix
10018 exec_prefix=$unet_save_exec_prefix
10019
10020 echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
10021 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6
10022 if test x"$unet_cv_with_symlink" = xno; then
10023     unet_spath="$unet_bindir/ircd"
10024 else
10025     unet_spath="$unet_bindir/$unet_cv_with_symlink"
10026 fi
10027 echo "$as_me:$LINENO: result: $unet_spath" >&5
10028 echo "${ECHO_T}$unet_spath" >&6
10029
10030 if test x"$unet_cv_with_chroot" != xno; then
10031     if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10032         unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
10033     else
10034         { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
10035 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
10036     fi
10037 fi
10038
10039
10040 cat >>confdefs.h <<_ACEOF
10041 #define SPATH "$unet_spath"
10042 _ACEOF
10043
10044
10045 echo "$as_me:$LINENO: checking what the data directory should be" >&5
10046 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6
10047
10048 # Check whether --with-dpath or --without-dpath was given.
10049 if test "${with_dpath+set}" = set; then
10050   withval="$with_dpath"
10051   unet_cv_with_dpath=$with_dpath
10052 else
10053   if test "${unet_cv_with_dpath+set}" = set; then
10054   echo $ECHO_N "(cached) $ECHO_C" >&6
10055 else
10056   unet_cv_with_dpath=$unet_libdir
10057 fi
10058
10059 fi;
10060
10061 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
10062     unet_cv_with_dpath=$unet_libdir
10063 fi
10064
10065 # Ensure there are no trailing /'s to mess us up
10066 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
10067
10068 echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
10069 echo "${ECHO_T}$unet_cv_with_dpath" >&6
10070
10071 if test x"$unet_cv_with_chroot" != xno; then
10072     if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10073         unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
10074     else
10075         { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
10076 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
10077    { (exit 1); exit 1; }; }
10078     fi
10079 else
10080     unet_dpath=$unet_cv_with_dpath
10081 fi
10082
10083
10084 cat >>confdefs.h <<_ACEOF
10085 #define DPATH "$unet_dpath"
10086 _ACEOF
10087
10088
10089 DPATH=$unet_cv_with_dpath
10090
10091
10092 echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
10093 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6
10094
10095 # Check whether --with-cpath or --without-cpath was given.
10096 if test "${with_cpath+set}" = set; then
10097   withval="$with_cpath"
10098   unet_cv_with_cpath=$with_cpath
10099 else
10100   if test "${unet_cv_with_cpath+set}" = set; then
10101   echo $ECHO_N "(cached) $ECHO_C" >&6
10102 else
10103   unet_cv_with_cpath="ircd.conf"
10104 fi
10105
10106 fi;
10107
10108 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
10109     unet_cv_with_cpath="ircd.conf"
10110 fi
10111
10112 echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
10113 echo "${ECHO_T}$unet_cv_with_cpath" >&6
10114
10115 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
10116     # Absolute path; check against chroot stuff
10117     if test x"$unet_cv_with_chroot" != xno; then
10118         if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10119             unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
10120         else
10121             { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
10122 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
10123    { (exit 1); exit 1; }; }
10124         fi
10125     else
10126         unet_cpath=$unet_cv_with_cpath
10127     fi
10128 else
10129     unet_cpath=$unet_cv_with_cpath
10130 fi
10131
10132
10133 cat >>confdefs.h <<_ACEOF
10134 #define CPATH "$unet_cpath"
10135 _ACEOF
10136
10137
10138 echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
10139 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6
10140
10141 # Check whether --with-lpath or --without-lpath was given.
10142 if test "${with_lpath+set}" = set; then
10143   withval="$with_lpath"
10144   unet_cv_with_lpath=$with_lpath
10145 else
10146   if test "${unet_cv_with_lpath+set}" = set; then
10147   echo $ECHO_N "(cached) $ECHO_C" >&6
10148 else
10149   unet_cv_with_lpath="ircd.log"
10150 fi
10151
10152 fi;
10153
10154 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
10155     unet_cv_with_lpath="ircd.log"
10156 fi
10157
10158 echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
10159 echo "${ECHO_T}$unet_cv_with_lpath" >&6
10160
10161 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
10162     # Absolute path; check against chroot stuff
10163     if test x"$unet_cv_with_chroot" != xno; then
10164         if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10165             unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
10166         else
10167             { 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
10168 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;}
10169             unet_cv_with_lpath="ircd.log"
10170             unet_lpath="ircd.log"
10171         fi
10172     else
10173         unet_lpath=$unet_cv_with_lpath
10174     fi
10175 else
10176     unet_lpath=$unet_cv_with_lpath
10177 fi
10178
10179
10180 cat >>confdefs.h <<_ACEOF
10181 #define LPATH "$unet_lpath"
10182 _ACEOF
10183
10184
10185 unet_maxcon=`ulimit -Hn`
10186 if test x"$unet_maxcon" = xunlimited; then
10187     unet_maxcon=`ulimit -Sn`
10188 fi
10189 unet_maxcon=`expr $unet_maxcon - 4`
10190 echo "$as_me:$LINENO: checking max connections" >&5
10191 echo $ECHO_N "checking max connections... $ECHO_C" >&6
10192
10193 # Check whether --with-maxcon or --without-maxcon was given.
10194 if test "${with_maxcon+set}" = set; then
10195   withval="$with_maxcon"
10196   unet_cv_with_maxcon=$with_maxcon
10197 else
10198   if test "${unet_cv_with_maxcon+set}" = set; then
10199   echo $ECHO_N "(cached) $ECHO_C" >&6
10200 else
10201   unet_cv_with_maxcon=$unet_maxcon
10202 fi
10203
10204 fi;
10205
10206 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
10207     unet_cv_with_maxcon=$unet_maxcon
10208 fi
10209
10210 echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
10211 echo "${ECHO_T}$unet_cv_with_maxcon" >&6
10212
10213
10214 cat >>confdefs.h <<_ACEOF
10215 #define MAXCONNECTIONS $unet_cv_with_maxcon
10216 _ACEOF
10217
10218
10219                                         ac_config_files="$ac_config_files Makefile ircd/Makefile ircd/test/Makefile doc/Makefile"
10220           ac_config_commands="$ac_config_commands default"
10221 cat >confcache <<\_ACEOF
10222 # This file is a shell script that caches the results of configure
10223 # tests run on this system so they can be shared between configure
10224 # scripts and configure runs, see configure's option --config-cache.
10225 # It is not useful on other systems.  If it contains results you don't
10226 # want to keep, you may remove or edit it.
10227 #
10228 # config.status only pays attention to the cache file if you give it
10229 # the --recheck option to rerun configure.
10230 #
10231 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10232 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10233 # following values.
10234
10235 _ACEOF
10236
10237 # The following way of writing the cache mishandles newlines in values,
10238 # but we know of no workaround that is simple, portable, and efficient.
10239 # So, don't put newlines in cache variables' values.
10240 # Ultrix sh set writes to stderr and can't be redirected directly,
10241 # and sets the high bit in the cache file unless we assign to the vars.
10242 {
10243   (set) 2>&1 |
10244     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10245     *ac_space=\ *)
10246       # `set' does not quote correctly, so add quotes (double-quote
10247       # substitution turns \\\\ into \\, and sed turns \\ into \).
10248       sed -n \
10249         "s/'/'\\\\''/g;
10250           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10251       ;;
10252     *)
10253       # `set' quotes correctly as required by POSIX, so do not add quotes.
10254       sed -n \
10255         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10256       ;;
10257     esac;
10258 } |
10259   sed '
10260      t clear
10261      : clear
10262      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10263      t end
10264      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10265      : end' >>confcache
10266 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10267   if test -w $cache_file; then
10268     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10269     cat confcache >$cache_file
10270   else
10271     echo "not updating unwritable cache $cache_file"
10272   fi
10273 fi
10274 rm -f confcache
10275
10276 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10277 # Let make expand exec_prefix.
10278 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10279
10280 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10281 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10282 # trailing colons and then remove the whole line if VPATH becomes empty
10283 # (actually we leave an empty line to preserve line numbers).
10284 if test "x$srcdir" = x.; then
10285   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10286 s/:*\$(srcdir):*/:/;
10287 s/:*\${srcdir}:*/:/;
10288 s/:*@srcdir@:*/:/;
10289 s/^\([^=]*=[     ]*\):*/\1/;
10290 s/:*$//;
10291 s/^[^=]*=[       ]*$//;
10292 }'
10293 fi
10294
10295 DEFS=-DHAVE_CONFIG_H
10296
10297 ac_libobjs=
10298 ac_ltlibobjs=
10299 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10300   # 1. Remove the extension, and $U if already installed.
10301   ac_i=`echo "$ac_i" |
10302          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10303   # 2. Add them.
10304   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10305   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10306 done
10307 LIBOBJS=$ac_libobjs
10308
10309 LTLIBOBJS=$ac_ltlibobjs
10310
10311
10312
10313 : ${CONFIG_STATUS=./config.status}
10314 ac_clean_files_save=$ac_clean_files
10315 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10316 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10317 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10318 cat >$CONFIG_STATUS <<_ACEOF
10319 #! $SHELL
10320 # Generated by $as_me.
10321 # Run this file to recreate the current configuration.
10322 # Compiler output produced by configure, useful for debugging
10323 # configure, is in config.log if it exists.
10324
10325 debug=false
10326 ac_cs_recheck=false
10327 ac_cs_silent=false
10328 SHELL=\${CONFIG_SHELL-$SHELL}
10329 _ACEOF
10330
10331 cat >>$CONFIG_STATUS <<\_ACEOF
10332 ## --------------------- ##
10333 ## M4sh Initialization.  ##
10334 ## --------------------- ##
10335
10336 # Be Bourne compatible
10337 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10338   emulate sh
10339   NULLCMD=:
10340   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10341   # is contrary to our usage.  Disable this feature.
10342   alias -g '${1+"$@"}'='"$@"'
10343 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10344   set -o posix
10345 fi
10346 DUALCASE=1; export DUALCASE # for MKS sh
10347
10348 # Support unset when possible.
10349 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10350   as_unset=unset
10351 else
10352   as_unset=false
10353 fi
10354
10355
10356 # Work around bugs in pre-3.0 UWIN ksh.
10357 $as_unset ENV MAIL MAILPATH
10358 PS1='$ '
10359 PS2='> '
10360 PS4='+ '
10361
10362 # NLS nuisances.
10363 for as_var in \
10364   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10365   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10366   LC_TELEPHONE LC_TIME
10367 do
10368   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10369     eval $as_var=C; export $as_var
10370   else
10371     $as_unset $as_var
10372   fi
10373 done
10374
10375 # Required to use basename.
10376 if expr a : '\(a\)' >/dev/null 2>&1; then
10377   as_expr=expr
10378 else
10379   as_expr=false
10380 fi
10381
10382 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10383   as_basename=basename
10384 else
10385   as_basename=false
10386 fi
10387
10388
10389 # Name of the executable.
10390 as_me=`$as_basename "$0" ||
10391 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10392          X"$0" : 'X\(//\)$' \| \
10393          X"$0" : 'X\(/\)$' \| \
10394          .     : '\(.\)' 2>/dev/null ||
10395 echo X/"$0" |
10396     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10397           /^X\/\(\/\/\)$/{ s//\1/; q; }
10398           /^X\/\(\/\).*/{ s//\1/; q; }
10399           s/.*/./; q'`
10400
10401
10402 # PATH needs CR, and LINENO needs CR and PATH.
10403 # Avoid depending upon Character Ranges.
10404 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10405 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10406 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10407 as_cr_digits='0123456789'
10408 as_cr_alnum=$as_cr_Letters$as_cr_digits
10409
10410 # The user is always right.
10411 if test "${PATH_SEPARATOR+set}" != set; then
10412   echo "#! /bin/sh" >conf$$.sh
10413   echo  "exit 0"   >>conf$$.sh
10414   chmod +x conf$$.sh
10415   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10416     PATH_SEPARATOR=';'
10417   else
10418     PATH_SEPARATOR=:
10419   fi
10420   rm -f conf$$.sh
10421 fi
10422
10423
10424   as_lineno_1=$LINENO
10425   as_lineno_2=$LINENO
10426   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10427   test "x$as_lineno_1" != "x$as_lineno_2" &&
10428   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10429   # Find who we are.  Look in the path if we contain no path at all
10430   # relative or not.
10431   case $0 in
10432     *[\\/]* ) as_myself=$0 ;;
10433     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10434 for as_dir in $PATH
10435 do
10436   IFS=$as_save_IFS
10437   test -z "$as_dir" && as_dir=.
10438   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10439 done
10440
10441        ;;
10442   esac
10443   # We did not find ourselves, most probably we were run as `sh COMMAND'
10444   # in which case we are not to be found in the path.
10445   if test "x$as_myself" = x; then
10446     as_myself=$0
10447   fi
10448   if test ! -f "$as_myself"; then
10449     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10450 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10451    { (exit 1); exit 1; }; }
10452   fi
10453   case $CONFIG_SHELL in
10454   '')
10455     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10456 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10457 do
10458   IFS=$as_save_IFS
10459   test -z "$as_dir" && as_dir=.
10460   for as_base in sh bash ksh sh5; do
10461          case $as_dir in
10462          /*)
10463            if ("$as_dir/$as_base" -c '
10464   as_lineno_1=$LINENO
10465   as_lineno_2=$LINENO
10466   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10467   test "x$as_lineno_1" != "x$as_lineno_2" &&
10468   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10469              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10470              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10471              CONFIG_SHELL=$as_dir/$as_base
10472              export CONFIG_SHELL
10473              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10474            fi;;
10475          esac
10476        done
10477 done
10478 ;;
10479   esac
10480
10481   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10482   # uniformly replaced by the line number.  The first 'sed' inserts a
10483   # line-number line before each line; the second 'sed' does the real
10484   # work.  The second script uses 'N' to pair each line-number line
10485   # with the numbered line, and appends trailing '-' during
10486   # substitution so that $LINENO is not a special case at line end.
10487   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10488   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10489   sed '=' <$as_myself |
10490     sed '
10491       N
10492       s,$,-,
10493       : loop
10494       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10495       t loop
10496       s,-$,,
10497       s,^['$as_cr_digits']*\n,,
10498     ' >$as_me.lineno &&
10499   chmod +x $as_me.lineno ||
10500     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10501 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10502    { (exit 1); exit 1; }; }
10503
10504   # Don't try to exec as it changes $[0], causing all sort of problems
10505   # (the dirname of $[0] is not the place where we might find the
10506   # original and so on.  Autoconf is especially sensible to this).
10507   . ./$as_me.lineno
10508   # Exit status is that of the last command.
10509   exit
10510 }
10511
10512
10513 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10514   *c*,-n*) ECHO_N= ECHO_C='
10515 ' ECHO_T='      ' ;;
10516   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10517   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10518 esac
10519
10520 if expr a : '\(a\)' >/dev/null 2>&1; then
10521   as_expr=expr
10522 else
10523   as_expr=false
10524 fi
10525
10526 rm -f conf$$ conf$$.exe conf$$.file
10527 echo >conf$$.file
10528 if ln -s conf$$.file conf$$ 2>/dev/null; then
10529   # We could just check for DJGPP; but this test a) works b) is more generic
10530   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10531   if test -f conf$$.exe; then
10532     # Don't use ln at all; we don't have any links
10533     as_ln_s='cp -p'
10534   else
10535     as_ln_s='ln -s'
10536   fi
10537 elif ln conf$$.file conf$$ 2>/dev/null; then
10538   as_ln_s=ln
10539 else
10540   as_ln_s='cp -p'
10541 fi
10542 rm -f conf$$ conf$$.exe conf$$.file
10543
10544 if mkdir -p . 2>/dev/null; then
10545   as_mkdir_p=:
10546 else
10547   test -d ./-p && rmdir ./-p
10548   as_mkdir_p=false
10549 fi
10550
10551 as_executable_p="test -f"
10552
10553 # Sed expression to map a string onto a valid CPP name.
10554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10555
10556 # Sed expression to map a string onto a valid variable name.
10557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10558
10559
10560 # IFS
10561 # We need space, tab and new line, in precisely that order.
10562 as_nl='
10563 '
10564 IFS="   $as_nl"
10565
10566 # CDPATH.
10567 $as_unset CDPATH
10568
10569 exec 6>&1
10570
10571 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10572 # report actual input values of CONFIG_FILES etc. instead of their
10573 # values after options handling.  Logging --version etc. is OK.
10574 exec 5>>config.log
10575 {
10576   echo
10577   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10578 ## Running $as_me. ##
10579 _ASBOX
10580 } >&5
10581 cat >&5 <<_CSEOF
10582
10583 This file was extended by $as_me, which was
10584 generated by GNU Autoconf 2.59.  Invocation command line was
10585
10586   CONFIG_FILES    = $CONFIG_FILES
10587   CONFIG_HEADERS  = $CONFIG_HEADERS
10588   CONFIG_LINKS    = $CONFIG_LINKS
10589   CONFIG_COMMANDS = $CONFIG_COMMANDS
10590   $ $0 $@
10591
10592 _CSEOF
10593 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10594 echo >&5
10595 _ACEOF
10596
10597 # Files that config.status was made for.
10598 if test -n "$ac_config_files"; then
10599   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10600 fi
10601
10602 if test -n "$ac_config_headers"; then
10603   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10604 fi
10605
10606 if test -n "$ac_config_links"; then
10607   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10608 fi
10609
10610 if test -n "$ac_config_commands"; then
10611   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10612 fi
10613
10614 cat >>$CONFIG_STATUS <<\_ACEOF
10615
10616 ac_cs_usage="\
10617 \`$as_me' instantiates files from templates according to the
10618 current configuration.
10619
10620 Usage: $0 [OPTIONS] [FILE]...
10621
10622   -h, --help       print this help, then exit
10623   -V, --version    print version number, then exit
10624   -q, --quiet      do not print progress messages
10625   -d, --debug      don't remove temporary files
10626       --recheck    update $as_me by reconfiguring in the same conditions
10627   --file=FILE[:TEMPLATE]
10628                    instantiate the configuration file FILE
10629   --header=FILE[:TEMPLATE]
10630                    instantiate the configuration header FILE
10631
10632 Configuration files:
10633 $config_files
10634
10635 Configuration headers:
10636 $config_headers
10637
10638 Configuration commands:
10639 $config_commands
10640
10641 Report bugs to <bug-autoconf@gnu.org>."
10642 _ACEOF
10643
10644 cat >>$CONFIG_STATUS <<_ACEOF
10645 ac_cs_version="\\
10646 config.status
10647 configured by $0, generated by GNU Autoconf 2.59,
10648   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10649
10650 Copyright (C) 2003 Free Software Foundation, Inc.
10651 This config.status script is free software; the Free Software Foundation
10652 gives unlimited permission to copy, distribute and modify it."
10653 srcdir=$srcdir
10654 INSTALL="$INSTALL"
10655 _ACEOF
10656
10657 cat >>$CONFIG_STATUS <<\_ACEOF
10658 # If no file are specified by the user, then we need to provide default
10659 # value.  By we need to know if files were specified by the user.
10660 ac_need_defaults=:
10661 while test $# != 0
10662 do
10663   case $1 in
10664   --*=*)
10665     ac_option=`expr "x$1" : 'x\([^=]*\)='`
10666     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10667     ac_shift=:
10668     ;;
10669   -*)
10670     ac_option=$1
10671     ac_optarg=$2
10672     ac_shift=shift
10673     ;;
10674   *) # This is not an option, so the user has probably given explicit
10675      # arguments.
10676      ac_option=$1
10677      ac_need_defaults=false;;
10678   esac
10679
10680   case $ac_option in
10681   # Handling of the options.
10682 _ACEOF
10683 cat >>$CONFIG_STATUS <<\_ACEOF
10684   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10685     ac_cs_recheck=: ;;
10686   --version | --vers* | -V )
10687     echo "$ac_cs_version"; exit 0 ;;
10688   --he | --h)
10689     # Conflict between --help and --header
10690     { { echo "$as_me:$LINENO: error: ambiguous option: $1
10691 Try \`$0 --help' for more information." >&5
10692 echo "$as_me: error: ambiguous option: $1
10693 Try \`$0 --help' for more information." >&2;}
10694    { (exit 1); exit 1; }; };;
10695   --help | --hel | -h )
10696     echo "$ac_cs_usage"; exit 0 ;;
10697   --debug | --d* | -d )
10698     debug=: ;;
10699   --file | --fil | --fi | --f )
10700     $ac_shift
10701     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10702     ac_need_defaults=false;;
10703   --header | --heade | --head | --hea )
10704     $ac_shift
10705     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10706     ac_need_defaults=false;;
10707   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10708   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10709     ac_cs_silent=: ;;
10710
10711   # This is an error.
10712   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10713 Try \`$0 --help' for more information." >&5
10714 echo "$as_me: error: unrecognized option: $1
10715 Try \`$0 --help' for more information." >&2;}
10716    { (exit 1); exit 1; }; } ;;
10717
10718   *) ac_config_targets="$ac_config_targets $1" ;;
10719
10720   esac
10721   shift
10722 done
10723
10724 ac_configure_extra_args=
10725
10726 if $ac_cs_silent; then
10727   exec 6>/dev/null
10728   ac_configure_extra_args="$ac_configure_extra_args --silent"
10729 fi
10730
10731 _ACEOF
10732 cat >>$CONFIG_STATUS <<_ACEOF
10733 if \$ac_cs_recheck; then
10734   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10735   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10736 fi
10737
10738 _ACEOF
10739
10740
10741
10742
10743
10744 cat >>$CONFIG_STATUS <<\_ACEOF
10745 for ac_config_target in $ac_config_targets
10746 do
10747   case "$ac_config_target" in
10748   # Handling of arguments.
10749   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10750   "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
10751   "ircd/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/test/Makefile" ;;
10752   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10753   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10754   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10755   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10756 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10757    { (exit 1); exit 1; }; };;
10758   esac
10759 done
10760
10761 # If the user did not use the arguments to specify the items to instantiate,
10762 # then the envvar interface is used.  Set only those that are not.
10763 # We use the long form for the default assignment because of an extremely
10764 # bizarre bug on SunOS 4.1.3.
10765 if $ac_need_defaults; then
10766   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10767   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10768   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10769 fi
10770
10771 # Have a temporary directory for convenience.  Make it in the build tree
10772 # simply because there is no reason to put it here, and in addition,
10773 # creating and moving files from /tmp can sometimes cause problems.
10774 # Create a temporary directory, and hook for its removal unless debugging.
10775 $debug ||
10776 {
10777   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10778   trap '{ (exit 1); exit 1; }' 1 2 13 15
10779 }
10780
10781 # Create a (secure) tmp directory for tmp files.
10782
10783 {
10784   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10785   test -n "$tmp" && test -d "$tmp"
10786 }  ||
10787 {
10788   tmp=./confstat$$-$RANDOM
10789   (umask 077 && mkdir $tmp)
10790 } ||
10791 {
10792    echo "$me: cannot create a temporary directory in ." >&2
10793    { (exit 1); exit 1; }
10794 }
10795
10796 _ACEOF
10797
10798 cat >>$CONFIG_STATUS <<_ACEOF
10799
10800 #
10801 # CONFIG_FILES section.
10802 #
10803
10804 # No need to generate the scripts if there are no CONFIG_FILES.
10805 # This happens for instance when ./config.status config.h
10806 if test -n "\$CONFIG_FILES"; then
10807   # Protect against being on the right side of a sed subst in config.status.
10808   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10809    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10810 s,@SHELL@,$SHELL,;t t
10811 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10812 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10813 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10814 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10815 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10816 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10817 s,@exec_prefix@,$exec_prefix,;t t
10818 s,@prefix@,$prefix,;t t
10819 s,@program_transform_name@,$program_transform_name,;t t
10820 s,@bindir@,$bindir,;t t
10821 s,@sbindir@,$sbindir,;t t
10822 s,@libexecdir@,$libexecdir,;t t
10823 s,@datadir@,$datadir,;t t
10824 s,@sysconfdir@,$sysconfdir,;t t
10825 s,@sharedstatedir@,$sharedstatedir,;t t
10826 s,@localstatedir@,$localstatedir,;t t
10827 s,@libdir@,$libdir,;t t
10828 s,@includedir@,$includedir,;t t
10829 s,@oldincludedir@,$oldincludedir,;t t
10830 s,@infodir@,$infodir,;t t
10831 s,@mandir@,$mandir,;t t
10832 s,@build_alias@,$build_alias,;t t
10833 s,@host_alias@,$host_alias,;t t
10834 s,@target_alias@,$target_alias,;t t
10835 s,@DEFS@,$DEFS,;t t
10836 s,@ECHO_C@,$ECHO_C,;t t
10837 s,@ECHO_N@,$ECHO_N,;t t
10838 s,@ECHO_T@,$ECHO_T,;t t
10839 s,@LIBS@,$LIBS,;t t
10840 s,@build@,$build,;t t
10841 s,@build_cpu@,$build_cpu,;t t
10842 s,@build_vendor@,$build_vendor,;t t
10843 s,@build_os@,$build_os,;t t
10844 s,@host@,$host,;t t
10845 s,@host_cpu@,$host_cpu,;t t
10846 s,@host_vendor@,$host_vendor,;t t
10847 s,@host_os@,$host_os,;t t
10848 s,@CC@,$CC,;t t
10849 s,@CFLAGS@,$CFLAGS,;t t
10850 s,@LDFLAGS@,$LDFLAGS,;t t
10851 s,@CPPFLAGS@,$CPPFLAGS,;t t
10852 s,@ac_ct_CC@,$ac_ct_CC,;t t
10853 s,@EXEEXT@,$EXEEXT,;t t
10854 s,@OBJEXT@,$OBJEXT,;t t
10855 s,@CPP@,$CPP,;t t
10856 s,@EGREP@,$EGREP,;t t
10857 s,@AWK@,$AWK,;t t
10858 s,@SET_MAKE@,$SET_MAKE,;t t
10859 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10860 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10861 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10862 s,@LN_S@,$LN_S,;t t
10863 s,@RMPROG@,$RMPROG,;t t
10864 s,@SHPROG@,$SHPROG,;t t
10865 s,@LEX@,$LEX,;t t
10866 s,@LEXLIB@,$LEXLIB,;t t
10867 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
10868 s,@YACC@,$YACC,;t t
10869 s,@ENGINE_C@,$ENGINE_C,;t t
10870 s,@INSTALL_RULE@,$INSTALL_RULE,;t t
10871 s,@SYMLINK@,$SYMLINK,;t t
10872 s,@IRCDMODE@,$IRCDMODE,;t t
10873 s,@IRCDOWN@,$IRCDOWN,;t t
10874 s,@IRCDGRP@,$IRCDGRP,;t t
10875 s,@DPATH@,$DPATH,;t t
10876 s,@LIBOBJS@,$LIBOBJS,;t t
10877 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10878 CEOF
10879
10880 _ACEOF
10881
10882   cat >>$CONFIG_STATUS <<\_ACEOF
10883   # Split the substitutions into bite-sized pieces for seds with
10884   # small command number limits, like on Digital OSF/1 and HP-UX.
10885   ac_max_sed_lines=48
10886   ac_sed_frag=1 # Number of current file.
10887   ac_beg=1 # First line for current file.
10888   ac_end=$ac_max_sed_lines # Line after last line for current file.
10889   ac_more_lines=:
10890   ac_sed_cmds=
10891   while $ac_more_lines; do
10892     if test $ac_beg -gt 1; then
10893       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10894     else
10895       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10896     fi
10897     if test ! -s $tmp/subs.frag; then
10898       ac_more_lines=false
10899     else
10900       # The purpose of the label and of the branching condition is to
10901       # speed up the sed processing (if there are no `@' at all, there
10902       # is no need to browse any of the substitutions).
10903       # These are the two extra sed commands mentioned above.
10904       (echo ':t
10905   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10906       if test -z "$ac_sed_cmds"; then
10907         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10908       else
10909         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10910       fi
10911       ac_sed_frag=`expr $ac_sed_frag + 1`
10912       ac_beg=$ac_end
10913       ac_end=`expr $ac_end + $ac_max_sed_lines`
10914     fi
10915   done
10916   if test -z "$ac_sed_cmds"; then
10917     ac_sed_cmds=cat
10918   fi
10919 fi # test -n "$CONFIG_FILES"
10920
10921 _ACEOF
10922 cat >>$CONFIG_STATUS <<\_ACEOF
10923 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10924   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10925   case $ac_file in
10926   - | *:- | *:-:* ) # input from stdin
10927         cat >$tmp/stdin
10928         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10929         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10930   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10931         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10932   * )   ac_file_in=$ac_file.in ;;
10933   esac
10934
10935   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10936   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10937 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10938          X"$ac_file" : 'X\(//\)[^/]' \| \
10939          X"$ac_file" : 'X\(//\)$' \| \
10940          X"$ac_file" : 'X\(/\)' \| \
10941          .     : '\(.\)' 2>/dev/null ||
10942 echo X"$ac_file" |
10943     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10944           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10945           /^X\(\/\/\)$/{ s//\1/; q; }
10946           /^X\(\/\).*/{ s//\1/; q; }
10947           s/.*/./; q'`
10948   { if $as_mkdir_p; then
10949     mkdir -p "$ac_dir"
10950   else
10951     as_dir="$ac_dir"
10952     as_dirs=
10953     while test ! -d "$as_dir"; do
10954       as_dirs="$as_dir $as_dirs"
10955       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10956 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10957          X"$as_dir" : 'X\(//\)[^/]' \| \
10958          X"$as_dir" : 'X\(//\)$' \| \
10959          X"$as_dir" : 'X\(/\)' \| \
10960          .     : '\(.\)' 2>/dev/null ||
10961 echo X"$as_dir" |
10962     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10963           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10964           /^X\(\/\/\)$/{ s//\1/; q; }
10965           /^X\(\/\).*/{ s//\1/; q; }
10966           s/.*/./; q'`
10967     done
10968     test ! -n "$as_dirs" || mkdir $as_dirs
10969   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10970 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10971    { (exit 1); exit 1; }; }; }
10972
10973   ac_builddir=.
10974
10975 if test "$ac_dir" != .; then
10976   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10977   # A "../" for each directory in $ac_dir_suffix.
10978   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10979 else
10980   ac_dir_suffix= ac_top_builddir=
10981 fi
10982
10983 case $srcdir in
10984   .)  # No --srcdir option.  We are building in place.
10985     ac_srcdir=.
10986     if test -z "$ac_top_builddir"; then
10987        ac_top_srcdir=.
10988     else
10989        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10990     fi ;;
10991   [\\/]* | ?:[\\/]* )  # Absolute path.
10992     ac_srcdir=$srcdir$ac_dir_suffix;
10993     ac_top_srcdir=$srcdir ;;
10994   *) # Relative path.
10995     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10996     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10997 esac
10998
10999 # Do not use `cd foo && pwd` to compute absolute paths, because
11000 # the directories may not exist.
11001 case `pwd` in
11002 .) ac_abs_builddir="$ac_dir";;
11003 *)
11004   case "$ac_dir" in
11005   .) ac_abs_builddir=`pwd`;;
11006   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11007   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11008   esac;;
11009 esac
11010 case $ac_abs_builddir in
11011 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11012 *)
11013   case ${ac_top_builddir}. in
11014   .) ac_abs_top_builddir=$ac_abs_builddir;;
11015   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11016   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11017   esac;;
11018 esac
11019 case $ac_abs_builddir in
11020 .) ac_abs_srcdir=$ac_srcdir;;
11021 *)
11022   case $ac_srcdir in
11023   .) ac_abs_srcdir=$ac_abs_builddir;;
11024   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11025   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11026   esac;;
11027 esac
11028 case $ac_abs_builddir in
11029 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11030 *)
11031   case $ac_top_srcdir in
11032   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11033   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11034   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11035   esac;;
11036 esac
11037
11038
11039   case $INSTALL in
11040   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11041   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11042   esac
11043
11044   # Let's still pretend it is `configure' which instantiates (i.e., don't
11045   # use $as_me), people would be surprised to read:
11046   #    /* config.h.  Generated by config.status.  */
11047   if test x"$ac_file" = x-; then
11048     configure_input=
11049   else
11050     configure_input="$ac_file.  "
11051   fi
11052   configure_input=$configure_input"Generated from `echo $ac_file_in |
11053                                      sed 's,.*/,,'` by configure."
11054
11055   # First look for the input files in the build tree, otherwise in the
11056   # src tree.
11057   ac_file_inputs=`IFS=:
11058     for f in $ac_file_in; do
11059       case $f in
11060       -) echo $tmp/stdin ;;
11061       [\\/$]*)
11062          # Absolute (can't be DOS-style, as IFS=:)
11063          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11064 echo "$as_me: error: cannot find input file: $f" >&2;}
11065    { (exit 1); exit 1; }; }
11066          echo "$f";;
11067       *) # Relative
11068          if test -f "$f"; then
11069            # Build tree
11070            echo "$f"
11071          elif test -f "$srcdir/$f"; then
11072            # Source tree
11073            echo "$srcdir/$f"
11074          else
11075            # /dev/null tree
11076            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11077 echo "$as_me: error: cannot find input file: $f" >&2;}
11078    { (exit 1); exit 1; }; }
11079          fi;;
11080       esac
11081     done` || { (exit 1); exit 1; }
11082
11083   if test x"$ac_file" != x-; then
11084     { echo "$as_me:$LINENO: creating $ac_file" >&5
11085 echo "$as_me: creating $ac_file" >&6;}
11086     rm -f "$ac_file"
11087   fi
11088 _ACEOF
11089 cat >>$CONFIG_STATUS <<_ACEOF
11090   sed "$ac_vpsub
11091 $extrasub
11092 _ACEOF
11093 cat >>$CONFIG_STATUS <<\_ACEOF
11094 :t
11095 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11096 s,@configure_input@,$configure_input,;t t
11097 s,@srcdir@,$ac_srcdir,;t t
11098 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11099 s,@top_srcdir@,$ac_top_srcdir,;t t
11100 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11101 s,@builddir@,$ac_builddir,;t t
11102 s,@abs_builddir@,$ac_abs_builddir,;t t
11103 s,@top_builddir@,$ac_top_builddir,;t t
11104 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11105 s,@INSTALL@,$ac_INSTALL,;t t
11106 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11107   rm -f $tmp/stdin
11108   if test x"$ac_file" != x-; then
11109     mv $tmp/out $ac_file
11110   else
11111     cat $tmp/out
11112     rm -f $tmp/out
11113   fi
11114
11115 done
11116 _ACEOF
11117 cat >>$CONFIG_STATUS <<\_ACEOF
11118
11119 #
11120 # CONFIG_HEADER section.
11121 #
11122
11123 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11124 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11125 #
11126 # ac_d sets the value in "#define NAME VALUE" lines.
11127 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11128 ac_dB='[         ].*$,\1#\2'
11129 ac_dC=' '
11130 ac_dD=',;t'
11131 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11132 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11133 ac_uB='$,\1#\2define\3'
11134 ac_uC=' '
11135 ac_uD=',;t'
11136
11137 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11138   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11139   case $ac_file in
11140   - | *:- | *:-:* ) # input from stdin
11141         cat >$tmp/stdin
11142         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11143         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11144   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11145         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11146   * )   ac_file_in=$ac_file.in ;;
11147   esac
11148
11149   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11150 echo "$as_me: creating $ac_file" >&6;}
11151
11152   # First look for the input files in the build tree, otherwise in the
11153   # src tree.
11154   ac_file_inputs=`IFS=:
11155     for f in $ac_file_in; do
11156       case $f in
11157       -) echo $tmp/stdin ;;
11158       [\\/$]*)
11159          # Absolute (can't be DOS-style, as IFS=:)
11160          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11161 echo "$as_me: error: cannot find input file: $f" >&2;}
11162    { (exit 1); exit 1; }; }
11163          # Do quote $f, to prevent DOS paths from being IFS'd.
11164          echo "$f";;
11165       *) # Relative
11166          if test -f "$f"; then
11167            # Build tree
11168            echo "$f"
11169          elif test -f "$srcdir/$f"; then
11170            # Source tree
11171            echo "$srcdir/$f"
11172          else
11173            # /dev/null tree
11174            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11175 echo "$as_me: error: cannot find input file: $f" >&2;}
11176    { (exit 1); exit 1; }; }
11177          fi;;
11178       esac
11179     done` || { (exit 1); exit 1; }
11180   # Remove the trailing spaces.
11181   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11182
11183 _ACEOF
11184
11185 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11186 # `conftest.undefs', that substitutes the proper values into
11187 # config.h.in to produce config.h.  The first handles `#define'
11188 # templates, and the second `#undef' templates.
11189 # And first: Protect against being on the right side of a sed subst in
11190 # config.status.  Protect against being in an unquoted here document
11191 # in config.status.
11192 rm -f conftest.defines conftest.undefs
11193 # Using a here document instead of a string reduces the quoting nightmare.
11194 # Putting comments in sed scripts is not portable.
11195 #
11196 # `end' is used to avoid that the second main sed command (meant for
11197 # 0-ary CPP macros) applies to n-ary macro definitions.
11198 # See the Autoconf documentation for `clear'.
11199 cat >confdef2sed.sed <<\_ACEOF
11200 s/[\\&,]/\\&/g
11201 s,[\\$`],\\&,g
11202 t clear
11203 : clear
11204 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11205 t end
11206 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11207 : end
11208 _ACEOF
11209 # If some macros were called several times there might be several times
11210 # the same #defines, which is useless.  Nevertheless, we may not want to
11211 # sort them, since we want the *last* AC-DEFINE to be honored.
11212 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11213 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11214 rm -f confdef2sed.sed
11215
11216 # This sed command replaces #undef with comments.  This is necessary, for
11217 # example, in the case of _POSIX_SOURCE, which is predefined and required
11218 # on some systems where configure will not decide to define it.
11219 cat >>conftest.undefs <<\_ACEOF
11220 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11221 _ACEOF
11222
11223 # Break up conftest.defines because some shells have a limit on the size
11224 # of here documents, and old seds have small limits too (100 cmds).
11225 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11226 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11227 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11228 echo '  :' >>$CONFIG_STATUS
11229 rm -f conftest.tail
11230 while grep . conftest.defines >/dev/null
11231 do
11232   # Write a limited-size here document to $tmp/defines.sed.
11233   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11234   # Speed up: don't consider the non `#define' lines.
11235   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11236   # Work around the forget-to-reset-the-flag bug.
11237   echo 't clr' >>$CONFIG_STATUS
11238   echo ': clr' >>$CONFIG_STATUS
11239   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11240   echo 'CEOF
11241   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11242   rm -f $tmp/in
11243   mv $tmp/out $tmp/in
11244 ' >>$CONFIG_STATUS
11245   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11246   rm -f conftest.defines
11247   mv conftest.tail conftest.defines
11248 done
11249 rm -f conftest.defines
11250 echo '  fi # grep' >>$CONFIG_STATUS
11251 echo >>$CONFIG_STATUS
11252
11253 # Break up conftest.undefs because some shells have a limit on the size
11254 # of here documents, and old seds have small limits too (100 cmds).
11255 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11256 rm -f conftest.tail
11257 while grep . conftest.undefs >/dev/null
11258 do
11259   # Write a limited-size here document to $tmp/undefs.sed.
11260   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11261   # Speed up: don't consider the non `#undef'
11262   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11263   # Work around the forget-to-reset-the-flag bug.
11264   echo 't clr' >>$CONFIG_STATUS
11265   echo ': clr' >>$CONFIG_STATUS
11266   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11267   echo 'CEOF
11268   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11269   rm -f $tmp/in
11270   mv $tmp/out $tmp/in
11271 ' >>$CONFIG_STATUS
11272   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11273   rm -f conftest.undefs
11274   mv conftest.tail conftest.undefs
11275 done
11276 rm -f conftest.undefs
11277
11278 cat >>$CONFIG_STATUS <<\_ACEOF
11279   # Let's still pretend it is `configure' which instantiates (i.e., don't
11280   # use $as_me), people would be surprised to read:
11281   #    /* config.h.  Generated by config.status.  */
11282   if test x"$ac_file" = x-; then
11283     echo "/* Generated by configure.  */" >$tmp/config.h
11284   else
11285     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11286   fi
11287   cat $tmp/in >>$tmp/config.h
11288   rm -f $tmp/in
11289   if test x"$ac_file" != x-; then
11290     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11291       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11292 echo "$as_me: $ac_file is unchanged" >&6;}
11293     else
11294       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11295 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11296          X"$ac_file" : 'X\(//\)[^/]' \| \
11297          X"$ac_file" : 'X\(//\)$' \| \
11298          X"$ac_file" : 'X\(/\)' \| \
11299          .     : '\(.\)' 2>/dev/null ||
11300 echo X"$ac_file" |
11301     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11302           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11303           /^X\(\/\/\)$/{ s//\1/; q; }
11304           /^X\(\/\).*/{ s//\1/; q; }
11305           s/.*/./; q'`
11306       { if $as_mkdir_p; then
11307     mkdir -p "$ac_dir"
11308   else
11309     as_dir="$ac_dir"
11310     as_dirs=
11311     while test ! -d "$as_dir"; do
11312       as_dirs="$as_dir $as_dirs"
11313       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11315          X"$as_dir" : 'X\(//\)[^/]' \| \
11316          X"$as_dir" : 'X\(//\)$' \| \
11317          X"$as_dir" : 'X\(/\)' \| \
11318          .     : '\(.\)' 2>/dev/null ||
11319 echo X"$as_dir" |
11320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11321           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11322           /^X\(\/\/\)$/{ s//\1/; q; }
11323           /^X\(\/\).*/{ s//\1/; q; }
11324           s/.*/./; q'`
11325     done
11326     test ! -n "$as_dirs" || mkdir $as_dirs
11327   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11328 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11329    { (exit 1); exit 1; }; }; }
11330
11331       rm -f $ac_file
11332       mv $tmp/config.h $ac_file
11333     fi
11334   else
11335     cat $tmp/config.h
11336     rm -f $tmp/config.h
11337   fi
11338 done
11339 _ACEOF
11340 cat >>$CONFIG_STATUS <<\_ACEOF
11341
11342 #
11343 # CONFIG_COMMANDS section.
11344 #
11345 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11346   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11347   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11348   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11349 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11350          X"$ac_dest" : 'X\(//\)[^/]' \| \
11351          X"$ac_dest" : 'X\(//\)$' \| \
11352          X"$ac_dest" : 'X\(/\)' \| \
11353          .     : '\(.\)' 2>/dev/null ||
11354 echo X"$ac_dest" |
11355     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11356           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11357           /^X\(\/\/\)$/{ s//\1/; q; }
11358           /^X\(\/\).*/{ s//\1/; q; }
11359           s/.*/./; q'`
11360   { if $as_mkdir_p; then
11361     mkdir -p "$ac_dir"
11362   else
11363     as_dir="$ac_dir"
11364     as_dirs=
11365     while test ! -d "$as_dir"; do
11366       as_dirs="$as_dir $as_dirs"
11367       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11368 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11369          X"$as_dir" : 'X\(//\)[^/]' \| \
11370          X"$as_dir" : 'X\(//\)$' \| \
11371          X"$as_dir" : 'X\(/\)' \| \
11372          .     : '\(.\)' 2>/dev/null ||
11373 echo X"$as_dir" |
11374     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11375           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11376           /^X\(\/\/\)$/{ s//\1/; q; }
11377           /^X\(\/\).*/{ s//\1/; q; }
11378           s/.*/./; q'`
11379     done
11380     test ! -n "$as_dirs" || mkdir $as_dirs
11381   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11382 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11383    { (exit 1); exit 1; }; }; }
11384
11385   ac_builddir=.
11386
11387 if test "$ac_dir" != .; then
11388   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11389   # A "../" for each directory in $ac_dir_suffix.
11390   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11391 else
11392   ac_dir_suffix= ac_top_builddir=
11393 fi
11394
11395 case $srcdir in
11396   .)  # No --srcdir option.  We are building in place.
11397     ac_srcdir=.
11398     if test -z "$ac_top_builddir"; then
11399        ac_top_srcdir=.
11400     else
11401        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11402     fi ;;
11403   [\\/]* | ?:[\\/]* )  # Absolute path.
11404     ac_srcdir=$srcdir$ac_dir_suffix;
11405     ac_top_srcdir=$srcdir ;;
11406   *) # Relative path.
11407     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11408     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11409 esac
11410
11411 # Do not use `cd foo && pwd` to compute absolute paths, because
11412 # the directories may not exist.
11413 case `pwd` in
11414 .) ac_abs_builddir="$ac_dir";;
11415 *)
11416   case "$ac_dir" in
11417   .) ac_abs_builddir=`pwd`;;
11418   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11419   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11420   esac;;
11421 esac
11422 case $ac_abs_builddir in
11423 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11424 *)
11425   case ${ac_top_builddir}. in
11426   .) ac_abs_top_builddir=$ac_abs_builddir;;
11427   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11428   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11429   esac;;
11430 esac
11431 case $ac_abs_builddir in
11432 .) ac_abs_srcdir=$ac_srcdir;;
11433 *)
11434   case $ac_srcdir in
11435   .) ac_abs_srcdir=$ac_abs_builddir;;
11436   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11437   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11438   esac;;
11439 esac
11440 case $ac_abs_builddir in
11441 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11442 *)
11443   case $ac_top_srcdir in
11444   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11445   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11446   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11447   esac;;
11448 esac
11449
11450
11451   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11452 echo "$as_me: executing $ac_dest commands" >&6;}
11453   case $ac_dest in
11454     default ) echo timestamp > stamp-h ;;
11455   esac
11456 done
11457 _ACEOF
11458
11459 cat >>$CONFIG_STATUS <<\_ACEOF
11460
11461 { (exit 0); exit 0; }
11462 _ACEOF
11463 chmod +x $CONFIG_STATUS
11464 ac_clean_files=$ac_clean_files_save
11465
11466
11467 # configure is writing to config.log, and then calls config.status.
11468 # config.status does its own redirection, appending to config.log.
11469 # Unfortunately, on DOS this fails, as config.log is still kept open
11470 # by configure, so config.status won't be able to write to it; its
11471 # output is simply discarded.  So we exec the FD to /dev/null,
11472 # effectively closing config.log, so it can be properly (re)opened and
11473 # appended to by config.status.  When coming back to configure, we
11474 # need to make the FD available again.
11475 if test "$no_create" != yes; then
11476   ac_cs_success=:
11477   ac_config_status_args=
11478   test "$silent" = yes &&
11479     ac_config_status_args="$ac_config_status_args --quiet"
11480   exec 5>/dev/null
11481   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11482   exec 5>>config.log
11483   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11484   # would make configure fail if this is the last instruction.
11485   $ac_cs_success || { (exit 1); exit 1; }
11486 fi
11487
11488
11489           ac_config_commands="$ac_config_commands default-1"
11490