Author: hikari <hikari@undernet.org>
[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-leak-detect          Turn on the leak detector(requires patched boehm)
865   --without-ipv6          disable IPv6 support (default is autodetect)
866   --with-symlink=name     Name to give the symlink; if name is "no," no
867                           symlink will be created.
868   --with-mode=mode        Permissions (in octal) to give the binary
869   --with-owner=owner      Specify owner of the installed binary
870   --with-group=group      Specify group owner of the installed binary
871   --with-domain=domain    Domain name to use in local statistics gathering
872   --with-chroot=dir       Specify that the server will be operated under
873                           a different root directory given by dir.  See
874                           doc/readme.chroot for more information.
875   --with-dpath=dir        Directory for all server data files
876   --with-cpath=file       Set server configuration file
877   --with-lpath=file       Set the debugging log file
878   --with-maxcon=maxcon    Maximum number of connections server will accept
879
880 Some influential environment variables:
881   CC          C compiler command
882   CFLAGS      C compiler flags
883   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
884               nonstandard directory <lib dir>
885   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
886               headers in a nonstandard directory <include dir>
887   CPP         C preprocessor
888
889 Use these variables to override the choices made by `configure' or to help
890 it to find libraries and programs with nonstandard names/locations.
891
892 _ACEOF
893 fi
894
895 if test "$ac_init_help" = "recursive"; then
896   # If there are subdirs, report their specific --help.
897   ac_popdir=`pwd`
898   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899     test -d $ac_dir || continue
900     ac_builddir=.
901
902 if test "$ac_dir" != .; then
903   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904   # A "../" for each directory in $ac_dir_suffix.
905   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906 else
907   ac_dir_suffix= ac_top_builddir=
908 fi
909
910 case $srcdir in
911   .)  # No --srcdir option.  We are building in place.
912     ac_srcdir=.
913     if test -z "$ac_top_builddir"; then
914        ac_top_srcdir=.
915     else
916        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917     fi ;;
918   [\\/]* | ?:[\\/]* )  # Absolute path.
919     ac_srcdir=$srcdir$ac_dir_suffix;
920     ac_top_srcdir=$srcdir ;;
921   *) # Relative path.
922     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923     ac_top_srcdir=$ac_top_builddir$srcdir ;;
924 esac
925
926 # Do not use `cd foo && pwd` to compute absolute paths, because
927 # the directories may not exist.
928 case `pwd` in
929 .) ac_abs_builddir="$ac_dir";;
930 *)
931   case "$ac_dir" in
932   .) ac_abs_builddir=`pwd`;;
933   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
934   *) ac_abs_builddir=`pwd`/"$ac_dir";;
935   esac;;
936 esac
937 case $ac_abs_builddir in
938 .) ac_abs_top_builddir=${ac_top_builddir}.;;
939 *)
940   case ${ac_top_builddir}. in
941   .) ac_abs_top_builddir=$ac_abs_builddir;;
942   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
943   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
944   esac;;
945 esac
946 case $ac_abs_builddir in
947 .) ac_abs_srcdir=$ac_srcdir;;
948 *)
949   case $ac_srcdir in
950   .) ac_abs_srcdir=$ac_abs_builddir;;
951   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
952   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
953   esac;;
954 esac
955 case $ac_abs_builddir in
956 .) ac_abs_top_srcdir=$ac_top_srcdir;;
957 *)
958   case $ac_top_srcdir in
959   .) ac_abs_top_srcdir=$ac_abs_builddir;;
960   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
961   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
962   esac;;
963 esac
964
965     cd $ac_dir
966     # Check for guested configure; otherwise get Cygnus style configure.
967     if test -f $ac_srcdir/configure.gnu; then
968       echo
969       $SHELL $ac_srcdir/configure.gnu  --help=recursive
970     elif test -f $ac_srcdir/configure; then
971       echo
972       $SHELL $ac_srcdir/configure  --help=recursive
973     elif test -f $ac_srcdir/configure.ac ||
974            test -f $ac_srcdir/configure.in; then
975       echo
976       $ac_configure --help
977     else
978       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979     fi
980     cd "$ac_popdir"
981   done
982 fi
983
984 test -n "$ac_init_help" && exit 0
985 if $ac_init_version; then
986   cat <<\_ACEOF
987
988 Copyright (C) 2003 Free Software Foundation, Inc.
989 This configure script is free software; the Free Software Foundation
990 gives unlimited permission to copy, distribute and modify it.
991 _ACEOF
992   exit 0
993 fi
994 exec 5>config.log
995 cat >&5 <<_ACEOF
996 This file contains any messages produced by compilers while
997 running configure, to aid debugging if configure makes a mistake.
998
999 It was created by $as_me, which was
1000 generated by GNU Autoconf 2.59.  Invocation command line was
1001
1002   $ $0 $@
1003
1004 _ACEOF
1005 {
1006 cat <<_ASUNAME
1007 ## --------- ##
1008 ## Platform. ##
1009 ## --------- ##
1010
1011 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1012 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1013 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1014 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1015 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1016
1017 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1018 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1019
1020 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1021 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1022 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1023 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1024 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1025 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1026 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1027
1028 _ASUNAME
1029
1030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031 for as_dir in $PATH
1032 do
1033   IFS=$as_save_IFS
1034   test -z "$as_dir" && as_dir=.
1035   echo "PATH: $as_dir"
1036 done
1037
1038 } >&5
1039
1040 cat >&5 <<_ACEOF
1041
1042
1043 ## ----------- ##
1044 ## Core tests. ##
1045 ## ----------- ##
1046
1047 _ACEOF
1048
1049
1050 # Keep a trace of the command line.
1051 # Strip out --no-create and --no-recursion so they do not pile up.
1052 # Strip out --silent because we don't want to record it for future runs.
1053 # Also quote any args containing shell meta-characters.
1054 # Make two passes to allow for proper duplicate-argument suppression.
1055 ac_configure_args=
1056 ac_configure_args0=
1057 ac_configure_args1=
1058 ac_sep=
1059 ac_must_keep_next=false
1060 for ac_pass in 1 2
1061 do
1062   for ac_arg
1063   do
1064     case $ac_arg in
1065     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1066     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067     | -silent | --silent | --silen | --sile | --sil)
1068       continue ;;
1069     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1070       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1071     esac
1072     case $ac_pass in
1073     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1074     2)
1075       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1076       if test $ac_must_keep_next = true; then
1077         ac_must_keep_next=false # Got value, back to normal.
1078       else
1079         case $ac_arg in
1080           *=* | --config-cache | -C | -disable-* | --disable-* \
1081           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1082           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1083           | -with-* | --with-* | -without-* | --without-* | --x)
1084             case "$ac_configure_args0 " in
1085               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1086             esac
1087             ;;
1088           -* ) ac_must_keep_next=true ;;
1089         esac
1090       fi
1091       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1092       # Get rid of the leading space.
1093       ac_sep=" "
1094       ;;
1095     esac
1096   done
1097 done
1098 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1099 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1100
1101 # When interrupted or exit'd, cleanup temporary files, and complete
1102 # config.log.  We remove comments because anyway the quotes in there
1103 # would cause problems or look ugly.
1104 # WARNING: Be sure not to use single quotes in there, as some shells,
1105 # such as our DU 5.0 friend, will then `close' the trap.
1106 trap 'exit_status=$?
1107   # Save into config.log some information that might help in debugging.
1108   {
1109     echo
1110
1111     cat <<\_ASBOX
1112 ## ---------------- ##
1113 ## Cache variables. ##
1114 ## ---------------- ##
1115 _ASBOX
1116     echo
1117     # The following way of writing the cache mishandles newlines in values,
1118 {
1119   (set) 2>&1 |
1120     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1121     *ac_space=\ *)
1122       sed -n \
1123         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1124           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1125       ;;
1126     *)
1127       sed -n \
1128         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1129       ;;
1130     esac;
1131 }
1132     echo
1133
1134     cat <<\_ASBOX
1135 ## ----------------- ##
1136 ## Output variables. ##
1137 ## ----------------- ##
1138 _ASBOX
1139     echo
1140     for ac_var in $ac_subst_vars
1141     do
1142       eval ac_val=$`echo $ac_var`
1143       echo "$ac_var='"'"'$ac_val'"'"'"
1144     done | sort
1145     echo
1146
1147     if test -n "$ac_subst_files"; then
1148       cat <<\_ASBOX
1149 ## ------------- ##
1150 ## Output files. ##
1151 ## ------------- ##
1152 _ASBOX
1153       echo
1154       for ac_var in $ac_subst_files
1155       do
1156         eval ac_val=$`echo $ac_var`
1157         echo "$ac_var='"'"'$ac_val'"'"'"
1158       done | sort
1159       echo
1160     fi
1161
1162     if test -s confdefs.h; then
1163       cat <<\_ASBOX
1164 ## ----------- ##
1165 ## confdefs.h. ##
1166 ## ----------- ##
1167 _ASBOX
1168       echo
1169       sed "/^$/d" confdefs.h | sort
1170       echo
1171     fi
1172     test "$ac_signal" != 0 &&
1173       echo "$as_me: caught signal $ac_signal"
1174     echo "$as_me: exit $exit_status"
1175   } >&5
1176   rm -f core *.core &&
1177   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1178     exit $exit_status
1179      ' 0
1180 for ac_signal in 1 2 13 15; do
1181   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1182 done
1183 ac_signal=0
1184
1185 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1186 rm -rf conftest* confdefs.h
1187 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1188 echo >confdefs.h
1189
1190 # Predefined preprocessor variables.
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_NAME "$PACKAGE_NAME"
1194 _ACEOF
1195
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_STRING "$PACKAGE_STRING"
1209 _ACEOF
1210
1211
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1214 _ACEOF
1215
1216
1217 # Let the site file select an alternate cache file if it wants to.
1218 # Prefer explicitly selected file to automatically selected ones.
1219 if test -z "$CONFIG_SITE"; then
1220   if test "x$prefix" != xNONE; then
1221     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1222   else
1223     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1224   fi
1225 fi
1226 for ac_site_file in $CONFIG_SITE; do
1227   if test -r "$ac_site_file"; then
1228     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1229 echo "$as_me: loading site script $ac_site_file" >&6;}
1230     sed 's/^/| /' "$ac_site_file" >&5
1231     . "$ac_site_file"
1232   fi
1233 done
1234
1235 if test -r "$cache_file"; then
1236   # Some versions of bash will fail to source /dev/null (special
1237   # files actually), so we avoid doing that.
1238   if test -f "$cache_file"; then
1239     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1240 echo "$as_me: loading cache $cache_file" >&6;}
1241     case $cache_file in
1242       [\\/]* | ?:[\\/]* ) . $cache_file;;
1243       *)                      . ./$cache_file;;
1244     esac
1245   fi
1246 else
1247   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1248 echo "$as_me: creating cache $cache_file" >&6;}
1249   >$cache_file
1250 fi
1251
1252 # Check that the precious variables saved in the cache have kept the same
1253 # value.
1254 ac_cache_corrupted=false
1255 for ac_var in `(set) 2>&1 |
1256                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1257   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1258   eval ac_new_set=\$ac_env_${ac_var}_set
1259   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1260   eval ac_new_val="\$ac_env_${ac_var}_value"
1261   case $ac_old_set,$ac_new_set in
1262     set,)
1263       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1265       ac_cache_corrupted=: ;;
1266     ,set)
1267       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1269       ac_cache_corrupted=: ;;
1270     ,);;
1271     *)
1272       if test "x$ac_old_val" != "x$ac_new_val"; then
1273         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1274 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1275         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1276 echo "$as_me:   former value:  $ac_old_val" >&2;}
1277         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1278 echo "$as_me:   current value: $ac_new_val" >&2;}
1279         ac_cache_corrupted=:
1280       fi;;
1281   esac
1282   # Pass precious variables to config.status.
1283   if test "$ac_new_set" = set; then
1284     case $ac_new_val in
1285     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1287     *) ac_arg=$ac_var=$ac_new_val ;;
1288     esac
1289     case " $ac_configure_args " in
1290       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1291       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1292     esac
1293   fi
1294 done
1295 if $ac_cache_corrupted; then
1296   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1297 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1298   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1299 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1300    { (exit 1); exit 1; }; }
1301 fi
1302
1303 ac_ext=c
1304 ac_cpp='$CPP $CPPFLAGS'
1305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329 echo "$as_me:$LINENO: checking for installation prefix" >&5
1330 echo $ECHO_N "checking for installation prefix... $ECHO_C" >&6
1331 if test "${unet_cv_prefix+set}" = set; then
1332   echo $ECHO_N "(cached) $ECHO_C" >&6
1333 else
1334   unet_cv_prefix=$HOME
1335 fi
1336
1337 if test x"$prefix" != xNONE; then
1338     unet_cv_prefix=$prefix
1339 fi
1340 echo "$as_me:$LINENO: result: $unet_cv_prefix" >&5
1341 echo "${ECHO_T}$unet_cv_prefix" >&6
1342 ac_default_prefix=$unet_cv_prefix
1343
1344           ac_config_headers="$ac_config_headers config.h"
1345
1346
1347
1348
1349 ac_aux_dir=
1350 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1351   if test -f $ac_dir/install-sh; then
1352     ac_aux_dir=$ac_dir
1353     ac_install_sh="$ac_aux_dir/install-sh -c"
1354     break
1355   elif test -f $ac_dir/install.sh; then
1356     ac_aux_dir=$ac_dir
1357     ac_install_sh="$ac_aux_dir/install.sh -c"
1358     break
1359   elif test -f $ac_dir/shtool; then
1360     ac_aux_dir=$ac_dir
1361     ac_install_sh="$ac_aux_dir/shtool install -c"
1362     break
1363   fi
1364 done
1365 if test -z "$ac_aux_dir"; then
1366   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1367 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1368    { (exit 1); exit 1; }; }
1369 fi
1370 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1371 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1372 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1373
1374 # Make sure we can run config.sub.
1375 $ac_config_sub sun4 >/dev/null 2>&1 ||
1376   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1377 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1378    { (exit 1); exit 1; }; }
1379
1380 echo "$as_me:$LINENO: checking build system type" >&5
1381 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1382 if test "${ac_cv_build+set}" = set; then
1383   echo $ECHO_N "(cached) $ECHO_C" >&6
1384 else
1385   ac_cv_build_alias=$build_alias
1386 test -z "$ac_cv_build_alias" &&
1387   ac_cv_build_alias=`$ac_config_guess`
1388 test -z "$ac_cv_build_alias" &&
1389   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1390 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1391    { (exit 1); exit 1; }; }
1392 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1393   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1394 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1395    { (exit 1); exit 1; }; }
1396
1397 fi
1398 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1399 echo "${ECHO_T}$ac_cv_build" >&6
1400 build=$ac_cv_build
1401 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1402 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1403 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1404
1405
1406 echo "$as_me:$LINENO: checking host system type" >&5
1407 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1408 if test "${ac_cv_host+set}" = set; then
1409   echo $ECHO_N "(cached) $ECHO_C" >&6
1410 else
1411   ac_cv_host_alias=$host_alias
1412 test -z "$ac_cv_host_alias" &&
1413   ac_cv_host_alias=$ac_cv_build_alias
1414 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1415   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1416 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1417    { (exit 1); exit 1; }; }
1418
1419 fi
1420 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1421 echo "${ECHO_T}$ac_cv_host" >&6
1422 host=$ac_cv_host
1423 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1426
1427
1428
1429 ac_ext=c
1430 ac_cpp='$CPP $CPPFLAGS'
1431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1434 if test -n "$ac_tool_prefix"; then
1435   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1437 echo "$as_me:$LINENO: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_prog_CC+set}" = set; then
1440   echo $ECHO_N "(cached) $ECHO_C" >&6
1441 else
1442   if test -n "$CC"; then
1443   ac_cv_prog_CC="$CC" # Let the user override the test.
1444 else
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1446 for as_dir in $PATH
1447 do
1448   IFS=$as_save_IFS
1449   test -z "$as_dir" && as_dir=.
1450   for ac_exec_ext in '' $ac_executable_extensions; do
1451   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454     break 2
1455   fi
1456 done
1457 done
1458
1459 fi
1460 fi
1461 CC=$ac_cv_prog_CC
1462 if test -n "$CC"; then
1463   echo "$as_me:$LINENO: result: $CC" >&5
1464 echo "${ECHO_T}$CC" >&6
1465 else
1466   echo "$as_me:$LINENO: result: no" >&5
1467 echo "${ECHO_T}no" >&6
1468 fi
1469
1470 fi
1471 if test -z "$ac_cv_prog_CC"; then
1472   ac_ct_CC=$CC
1473   # Extract the first word of "gcc", so it can be a program name with args.
1474 set dummy gcc; ac_word=$2
1475 echo "$as_me:$LINENO: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1478   echo $ECHO_N "(cached) $ECHO_C" >&6
1479 else
1480   if test -n "$ac_ct_CC"; then
1481   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1482 else
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484 for as_dir in $PATH
1485 do
1486   IFS=$as_save_IFS
1487   test -z "$as_dir" && as_dir=.
1488   for ac_exec_ext in '' $ac_executable_extensions; do
1489   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490     ac_cv_prog_ac_ct_CC="gcc"
1491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1492     break 2
1493   fi
1494 done
1495 done
1496
1497 fi
1498 fi
1499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1500 if test -n "$ac_ct_CC"; then
1501   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1502 echo "${ECHO_T}$ac_ct_CC" >&6
1503 else
1504   echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1506 fi
1507
1508   CC=$ac_ct_CC
1509 else
1510   CC="$ac_cv_prog_CC"
1511 fi
1512
1513 if test -z "$CC"; then
1514   if test -n "$ac_tool_prefix"; then
1515   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1516 set dummy ${ac_tool_prefix}cc; ac_word=$2
1517 echo "$as_me:$LINENO: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_prog_CC+set}" = set; then
1520   echo $ECHO_N "(cached) $ECHO_C" >&6
1521 else
1522   if test -n "$CC"; then
1523   ac_cv_prog_CC="$CC" # Let the user override the test.
1524 else
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 for as_dir in $PATH
1527 do
1528   IFS=$as_save_IFS
1529   test -z "$as_dir" && as_dir=.
1530   for ac_exec_ext in '' $ac_executable_extensions; do
1531   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532     ac_cv_prog_CC="${ac_tool_prefix}cc"
1533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534     break 2
1535   fi
1536 done
1537 done
1538
1539 fi
1540 fi
1541 CC=$ac_cv_prog_CC
1542 if test -n "$CC"; then
1543   echo "$as_me:$LINENO: result: $CC" >&5
1544 echo "${ECHO_T}$CC" >&6
1545 else
1546   echo "$as_me:$LINENO: result: no" >&5
1547 echo "${ECHO_T}no" >&6
1548 fi
1549
1550 fi
1551 if test -z "$ac_cv_prog_CC"; then
1552   ac_ct_CC=$CC
1553   # Extract the first word of "cc", so it can be a program name with args.
1554 set dummy cc; ac_word=$2
1555 echo "$as_me:$LINENO: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1558   echo $ECHO_N "(cached) $ECHO_C" >&6
1559 else
1560   if test -n "$ac_ct_CC"; then
1561   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1562 else
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 for as_dir in $PATH
1565 do
1566   IFS=$as_save_IFS
1567   test -z "$as_dir" && as_dir=.
1568   for ac_exec_ext in '' $ac_executable_extensions; do
1569   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570     ac_cv_prog_ac_ct_CC="cc"
1571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572     break 2
1573   fi
1574 done
1575 done
1576
1577 fi
1578 fi
1579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1580 if test -n "$ac_ct_CC"; then
1581   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1582 echo "${ECHO_T}$ac_ct_CC" >&6
1583 else
1584   echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1586 fi
1587
1588   CC=$ac_ct_CC
1589 else
1590   CC="$ac_cv_prog_CC"
1591 fi
1592
1593 fi
1594 if test -z "$CC"; then
1595   # Extract the first word of "cc", so it can be a program name with args.
1596 set dummy cc; ac_word=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_CC+set}" = set; then
1600   echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602   if test -n "$CC"; then
1603   ac_cv_prog_CC="$CC" # Let the user override the test.
1604 else
1605   ac_prog_rejected=no
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1608 do
1609   IFS=$as_save_IFS
1610   test -z "$as_dir" && as_dir=.
1611   for ac_exec_ext in '' $ac_executable_extensions; do
1612   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1614        ac_prog_rejected=yes
1615        continue
1616      fi
1617     ac_cv_prog_CC="cc"
1618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619     break 2
1620   fi
1621 done
1622 done
1623
1624 if test $ac_prog_rejected = yes; then
1625   # We found a bogon in the path, so make sure we never use it.
1626   set dummy $ac_cv_prog_CC
1627   shift
1628   if test $# != 0; then
1629     # We chose a different compiler from the bogus one.
1630     # However, it has the same basename, so the bogon will be chosen
1631     # first if we set CC to just the basename; use the full file name.
1632     shift
1633     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1634   fi
1635 fi
1636 fi
1637 fi
1638 CC=$ac_cv_prog_CC
1639 if test -n "$CC"; then
1640   echo "$as_me:$LINENO: result: $CC" >&5
1641 echo "${ECHO_T}$CC" >&6
1642 else
1643   echo "$as_me:$LINENO: result: no" >&5
1644 echo "${ECHO_T}no" >&6
1645 fi
1646
1647 fi
1648 if test -z "$CC"; then
1649   if test -n "$ac_tool_prefix"; then
1650   for ac_prog in cl
1651   do
1652     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1654 echo "$as_me:$LINENO: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_CC+set}" = set; then
1657   echo $ECHO_N "(cached) $ECHO_C" >&6
1658 else
1659   if test -n "$CC"; then
1660   ac_cv_prog_CC="$CC" # Let the user override the test.
1661 else
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 for as_dir in $PATH
1664 do
1665   IFS=$as_save_IFS
1666   test -z "$as_dir" && as_dir=.
1667   for ac_exec_ext in '' $ac_executable_extensions; do
1668   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671     break 2
1672   fi
1673 done
1674 done
1675
1676 fi
1677 fi
1678 CC=$ac_cv_prog_CC
1679 if test -n "$CC"; then
1680   echo "$as_me:$LINENO: result: $CC" >&5
1681 echo "${ECHO_T}$CC" >&6
1682 else
1683   echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1685 fi
1686
1687     test -n "$CC" && break
1688   done
1689 fi
1690 if test -z "$CC"; then
1691   ac_ct_CC=$CC
1692   for ac_prog in cl
1693 do
1694   # Extract the first word of "$ac_prog", so it can be a program name with args.
1695 set dummy $ac_prog; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1699   echo $ECHO_N "(cached) $ECHO_C" >&6
1700 else
1701   if test -n "$ac_ct_CC"; then
1702   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1703 else
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 for as_dir in $PATH
1706 do
1707   IFS=$as_save_IFS
1708   test -z "$as_dir" && as_dir=.
1709   for ac_exec_ext in '' $ac_executable_extensions; do
1710   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711     ac_cv_prog_ac_ct_CC="$ac_prog"
1712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713     break 2
1714   fi
1715 done
1716 done
1717
1718 fi
1719 fi
1720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1721 if test -n "$ac_ct_CC"; then
1722   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1723 echo "${ECHO_T}$ac_ct_CC" >&6
1724 else
1725   echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1727 fi
1728
1729   test -n "$ac_ct_CC" && break
1730 done
1731
1732   CC=$ac_ct_CC
1733 fi
1734
1735 fi
1736
1737
1738 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1739 See \`config.log' for more details." >&5
1740 echo "$as_me: error: no acceptable C compiler found in \$PATH
1741 See \`config.log' for more details." >&2;}
1742    { (exit 1); exit 1; }; }
1743
1744 # Provide some information about the compiler.
1745 echo "$as_me:$LINENO:" \
1746      "checking for C compiler version" >&5
1747 ac_compiler=`set X $ac_compile; echo $2`
1748 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1749   (eval $ac_compiler --version </dev/null >&5) 2>&5
1750   ac_status=$?
1751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1752   (exit $ac_status); }
1753 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1754   (eval $ac_compiler -v </dev/null >&5) 2>&5
1755   ac_status=$?
1756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757   (exit $ac_status); }
1758 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1759   (eval $ac_compiler -V </dev/null >&5) 2>&5
1760   ac_status=$?
1761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762   (exit $ac_status); }
1763
1764 cat >conftest.$ac_ext <<_ACEOF
1765 /* confdefs.h.  */
1766 _ACEOF
1767 cat confdefs.h >>conftest.$ac_ext
1768 cat >>conftest.$ac_ext <<_ACEOF
1769 /* end confdefs.h.  */
1770
1771 int
1772 main ()
1773 {
1774
1775   ;
1776   return 0;
1777 }
1778 _ACEOF
1779 ac_clean_files_save=$ac_clean_files
1780 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1781 # Try to create an executable without -o first, disregard a.out.
1782 # It will help us diagnose broken compilers, and finding out an intuition
1783 # of exeext.
1784 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1785 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1786 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1787 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1788   (eval $ac_link_default) 2>&5
1789   ac_status=$?
1790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791   (exit $ac_status); }; then
1792   # Find the output, starting from the most likely.  This scheme is
1793 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1794 # resort.
1795
1796 # Be careful to initialize this variable, since it used to be cached.
1797 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1798 ac_cv_exeext=
1799 # b.out is created by i960 compilers.
1800 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1801 do
1802   test -f "$ac_file" || continue
1803   case $ac_file in
1804     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1805         ;;
1806     conftest.$ac_ext )
1807         # This is the source file.
1808         ;;
1809     [ab].out )
1810         # We found the default executable, but exeext='' is most
1811         # certainly right.
1812         break;;
1813     *.* )
1814         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1815         # FIXME: I believe we export ac_cv_exeext for Libtool,
1816         # but it would be cool to find out if it's true.  Does anybody
1817         # maintain Libtool? --akim.
1818         export ac_cv_exeext
1819         break;;
1820     * )
1821         break;;
1822   esac
1823 done
1824 else
1825   echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: C compiler cannot create executables
1831 See \`config.log' for more details." >&2;}
1832    { (exit 77); exit 77; }; }
1833 fi
1834
1835 ac_exeext=$ac_cv_exeext
1836 echo "$as_me:$LINENO: result: $ac_file" >&5
1837 echo "${ECHO_T}$ac_file" >&6
1838
1839 # Check the compiler produces executables we can run.  If not, either
1840 # the compiler is broken, or we cross compile.
1841 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1842 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1843 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1844 # If not cross compiling, check that we can run a simple program.
1845 if test "$cross_compiling" != yes; then
1846   if { ac_try='./$ac_file'
1847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1848   (eval $ac_try) 2>&5
1849   ac_status=$?
1850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851   (exit $ac_status); }; }; then
1852     cross_compiling=no
1853   else
1854     if test "$cross_compiling" = maybe; then
1855         cross_compiling=yes
1856     else
1857         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1858 If you meant to cross compile, use \`--host'.
1859 See \`config.log' for more details." >&5
1860 echo "$as_me: error: cannot run C compiled programs.
1861 If you meant to cross compile, use \`--host'.
1862 See \`config.log' for more details." >&2;}
1863    { (exit 1); exit 1; }; }
1864     fi
1865   fi
1866 fi
1867 echo "$as_me:$LINENO: result: yes" >&5
1868 echo "${ECHO_T}yes" >&6
1869
1870 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1871 ac_clean_files=$ac_clean_files_save
1872 # Check the compiler produces executables we can run.  If not, either
1873 # the compiler is broken, or we cross compile.
1874 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1875 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1876 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1877 echo "${ECHO_T}$cross_compiling" >&6
1878
1879 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1880 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1882   (eval $ac_link) 2>&5
1883   ac_status=$?
1884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885   (exit $ac_status); }; then
1886   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1887 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1888 # work properly (i.e., refer to `conftest.exe'), while it won't with
1889 # `rm'.
1890 for ac_file in conftest.exe conftest conftest.*; do
1891   test -f "$ac_file" || continue
1892   case $ac_file in
1893     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1894     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1895           export ac_cv_exeext
1896           break;;
1897     * ) break;;
1898   esac
1899 done
1900 else
1901   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1902 See \`config.log' for more details." >&5
1903 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1904 See \`config.log' for more details." >&2;}
1905    { (exit 1); exit 1; }; }
1906 fi
1907
1908 rm -f conftest$ac_cv_exeext
1909 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1910 echo "${ECHO_T}$ac_cv_exeext" >&6
1911
1912 rm -f conftest.$ac_ext
1913 EXEEXT=$ac_cv_exeext
1914 ac_exeext=$EXEEXT
1915 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1916 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1917 if test "${ac_cv_objext+set}" = set; then
1918   echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920   cat >conftest.$ac_ext <<_ACEOF
1921 /* confdefs.h.  */
1922 _ACEOF
1923 cat confdefs.h >>conftest.$ac_ext
1924 cat >>conftest.$ac_ext <<_ACEOF
1925 /* end confdefs.h.  */
1926
1927 int
1928 main ()
1929 {
1930
1931   ;
1932   return 0;
1933 }
1934 _ACEOF
1935 rm -f conftest.o conftest.obj
1936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1937   (eval $ac_compile) 2>&5
1938   ac_status=$?
1939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940   (exit $ac_status); }; then
1941   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1942   case $ac_file in
1943     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1944     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1945        break;;
1946   esac
1947 done
1948 else
1949   echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1951
1952 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1955 See \`config.log' for more details." >&2;}
1956    { (exit 1); exit 1; }; }
1957 fi
1958
1959 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1960 fi
1961 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1962 echo "${ECHO_T}$ac_cv_objext" >&6
1963 OBJEXT=$ac_cv_objext
1964 ac_objext=$OBJEXT
1965 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1966 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1967 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1968   echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970   cat >conftest.$ac_ext <<_ACEOF
1971 /* confdefs.h.  */
1972 _ACEOF
1973 cat confdefs.h >>conftest.$ac_ext
1974 cat >>conftest.$ac_ext <<_ACEOF
1975 /* end confdefs.h.  */
1976
1977 int
1978 main ()
1979 {
1980 #ifndef __GNUC__
1981        choke me
1982 #endif
1983
1984   ;
1985   return 0;
1986 }
1987 _ACEOF
1988 rm -f conftest.$ac_objext
1989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1990   (eval $ac_compile) 2>conftest.er1
1991   ac_status=$?
1992   grep -v '^ *+' conftest.er1 >conftest.err
1993   rm -f conftest.er1
1994   cat conftest.err >&5
1995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996   (exit $ac_status); } &&
1997          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999   (eval $ac_try) 2>&5
2000   ac_status=$?
2001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002   (exit $ac_status); }; } &&
2003          { ac_try='test -s conftest.$ac_objext'
2004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005   (eval $ac_try) 2>&5
2006   ac_status=$?
2007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008   (exit $ac_status); }; }; then
2009   ac_compiler_gnu=yes
2010 else
2011   echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2013
2014 ac_compiler_gnu=no
2015 fi
2016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2018
2019 fi
2020 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2021 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2022 GCC=`test $ac_compiler_gnu = yes && echo yes`
2023 ac_test_CFLAGS=${CFLAGS+set}
2024 ac_save_CFLAGS=$CFLAGS
2025 CFLAGS="-g"
2026 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2027 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2028 if test "${ac_cv_prog_cc_g+set}" = set; then
2029   echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031   cat >conftest.$ac_ext <<_ACEOF
2032 /* confdefs.h.  */
2033 _ACEOF
2034 cat confdefs.h >>conftest.$ac_ext
2035 cat >>conftest.$ac_ext <<_ACEOF
2036 /* end confdefs.h.  */
2037
2038 int
2039 main ()
2040 {
2041
2042   ;
2043   return 0;
2044 }
2045 _ACEOF
2046 rm -f conftest.$ac_objext
2047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2048   (eval $ac_compile) 2>conftest.er1
2049   ac_status=$?
2050   grep -v '^ *+' conftest.er1 >conftest.err
2051   rm -f conftest.er1
2052   cat conftest.err >&5
2053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054   (exit $ac_status); } &&
2055          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2057   (eval $ac_try) 2>&5
2058   ac_status=$?
2059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060   (exit $ac_status); }; } &&
2061          { ac_try='test -s conftest.$ac_objext'
2062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063   (eval $ac_try) 2>&5
2064   ac_status=$?
2065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066   (exit $ac_status); }; }; then
2067   ac_cv_prog_cc_g=yes
2068 else
2069   echo "$as_me: failed program was:" >&5
2070 sed 's/^/| /' conftest.$ac_ext >&5
2071
2072 ac_cv_prog_cc_g=no
2073 fi
2074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2075 fi
2076 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2077 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2078 if test "$ac_test_CFLAGS" = set; then
2079   CFLAGS=$ac_save_CFLAGS
2080 elif test $ac_cv_prog_cc_g = yes; then
2081   if test "$GCC" = yes; then
2082     CFLAGS="-g -O2"
2083   else
2084     CFLAGS="-g"
2085   fi
2086 else
2087   if test "$GCC" = yes; then
2088     CFLAGS="-O2"
2089   else
2090     CFLAGS=
2091   fi
2092 fi
2093 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2094 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2095 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2096   echo $ECHO_N "(cached) $ECHO_C" >&6
2097 else
2098   ac_cv_prog_cc_stdc=no
2099 ac_save_CC=$CC
2100 cat >conftest.$ac_ext <<_ACEOF
2101 /* confdefs.h.  */
2102 _ACEOF
2103 cat confdefs.h >>conftest.$ac_ext
2104 cat >>conftest.$ac_ext <<_ACEOF
2105 /* end confdefs.h.  */
2106 #include <stdarg.h>
2107 #include <stdio.h>
2108 #include <sys/types.h>
2109 #include <sys/stat.h>
2110 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2111 struct buf { int x; };
2112 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2113 static char *e (p, i)
2114      char **p;
2115      int i;
2116 {
2117   return p[i];
2118 }
2119 static char *f (char * (*g) (char **, int), char **p, ...)
2120 {
2121   char *s;
2122   va_list v;
2123   va_start (v,p);
2124   s = g (p, va_arg (v,int));
2125   va_end (v);
2126   return s;
2127 }
2128
2129 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2130    function prototypes and stuff, but not '\xHH' hex character constants.
2131    These don't provoke an error unfortunately, instead are silently treated
2132    as 'x'.  The following induces an error, until -std1 is added to get
2133    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2134    array size at least.  It's necessary to write '\x00'==0 to get something
2135    that's true only with -std1.  */
2136 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2137
2138 int test (int i, double x);
2139 struct s1 {int (*f) (int a);};
2140 struct s2 {int (*f) (double a);};
2141 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2142 int argc;
2143 char **argv;
2144 int
2145 main ()
2146 {
2147 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2148   ;
2149   return 0;
2150 }
2151 _ACEOF
2152 # Don't try gcc -ansi; that turns off useful extensions and
2153 # breaks some systems' header files.
2154 # AIX                   -qlanglvl=ansi
2155 # Ultrix and OSF/1      -std1
2156 # HP-UX 10.20 and later -Ae
2157 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2158 # SVR4                  -Xc -D__EXTENSIONS__
2159 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2160 do
2161   CC="$ac_save_CC $ac_arg"
2162   rm -f conftest.$ac_objext
2163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2164   (eval $ac_compile) 2>conftest.er1
2165   ac_status=$?
2166   grep -v '^ *+' conftest.er1 >conftest.err
2167   rm -f conftest.er1
2168   cat conftest.err >&5
2169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170   (exit $ac_status); } &&
2171          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173   (eval $ac_try) 2>&5
2174   ac_status=$?
2175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176   (exit $ac_status); }; } &&
2177          { ac_try='test -s conftest.$ac_objext'
2178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179   (eval $ac_try) 2>&5
2180   ac_status=$?
2181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182   (exit $ac_status); }; }; then
2183   ac_cv_prog_cc_stdc=$ac_arg
2184 break
2185 else
2186   echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2188
2189 fi
2190 rm -f conftest.err conftest.$ac_objext
2191 done
2192 rm -f conftest.$ac_ext conftest.$ac_objext
2193 CC=$ac_save_CC
2194
2195 fi
2196
2197 case "x$ac_cv_prog_cc_stdc" in
2198   x|xno)
2199     echo "$as_me:$LINENO: result: none needed" >&5
2200 echo "${ECHO_T}none needed" >&6 ;;
2201   *)
2202     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2203 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2204     CC="$CC $ac_cv_prog_cc_stdc" ;;
2205 esac
2206
2207 # Some people use a C++ compiler to compile C.  Since we use `exit',
2208 # in C++ we need to declare it.  In case someone uses the same compiler
2209 # for both compiling C and C++ we need to have the C++ compiler decide
2210 # the declaration of exit, since it's the most demanding environment.
2211 cat >conftest.$ac_ext <<_ACEOF
2212 #ifndef __cplusplus
2213   choke me
2214 #endif
2215 _ACEOF
2216 rm -f conftest.$ac_objext
2217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218   (eval $ac_compile) 2>conftest.er1
2219   ac_status=$?
2220   grep -v '^ *+' conftest.er1 >conftest.err
2221   rm -f conftest.er1
2222   cat conftest.err >&5
2223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224   (exit $ac_status); } &&
2225          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227   (eval $ac_try) 2>&5
2228   ac_status=$?
2229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230   (exit $ac_status); }; } &&
2231          { ac_try='test -s conftest.$ac_objext'
2232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233   (eval $ac_try) 2>&5
2234   ac_status=$?
2235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236   (exit $ac_status); }; }; then
2237   for ac_declaration in \
2238    '' \
2239    'extern "C" void std::exit (int) throw (); using std::exit;' \
2240    'extern "C" void std::exit (int); using std::exit;' \
2241    'extern "C" void exit (int) throw ();' \
2242    'extern "C" void exit (int);' \
2243    'void exit (int);'
2244 do
2245   cat >conftest.$ac_ext <<_ACEOF
2246 /* confdefs.h.  */
2247 _ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h.  */
2251 $ac_declaration
2252 #include <stdlib.h>
2253 int
2254 main ()
2255 {
2256 exit (42);
2257   ;
2258   return 0;
2259 }
2260 _ACEOF
2261 rm -f conftest.$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263   (eval $ac_compile) 2>conftest.er1
2264   ac_status=$?
2265   grep -v '^ *+' conftest.er1 >conftest.err
2266   rm -f conftest.er1
2267   cat conftest.err >&5
2268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269   (exit $ac_status); } &&
2270          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272   (eval $ac_try) 2>&5
2273   ac_status=$?
2274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275   (exit $ac_status); }; } &&
2276          { ac_try='test -s conftest.$ac_objext'
2277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278   (eval $ac_try) 2>&5
2279   ac_status=$?
2280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281   (exit $ac_status); }; }; then
2282   :
2283 else
2284   echo "$as_me: failed program was:" >&5
2285 sed 's/^/| /' conftest.$ac_ext >&5
2286
2287 continue
2288 fi
2289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2290   cat >conftest.$ac_ext <<_ACEOF
2291 /* confdefs.h.  */
2292 _ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h.  */
2296 $ac_declaration
2297 int
2298 main ()
2299 {
2300 exit (42);
2301   ;
2302   return 0;
2303 }
2304 _ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307   (eval $ac_compile) 2>conftest.er1
2308   ac_status=$?
2309   grep -v '^ *+' conftest.er1 >conftest.err
2310   rm -f conftest.er1
2311   cat conftest.err >&5
2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313   (exit $ac_status); } &&
2314          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316   (eval $ac_try) 2>&5
2317   ac_status=$?
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); }; } &&
2320          { ac_try='test -s conftest.$ac_objext'
2321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322   (eval $ac_try) 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); }; }; then
2326   break
2327 else
2328   echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2330
2331 fi
2332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2333 done
2334 rm -f conftest*
2335 if test -n "$ac_declaration"; then
2336   echo '#ifdef __cplusplus' >>confdefs.h
2337   echo $ac_declaration      >>confdefs.h
2338   echo '#endif'             >>confdefs.h
2339 fi
2340
2341 else
2342   echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2344
2345 fi
2346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2347 ac_ext=c
2348 ac_cpp='$CPP $CPPFLAGS'
2349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2352
2353
2354
2355
2356
2357
2358 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2359 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2360 if test "${am_cv_prog_cc_stdc+set}" = set; then
2361   echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363   am_cv_prog_cc_stdc=no
2364 ac_save_CC="$CC"
2365 # Don't try gcc -ansi; that turns off useful extensions and
2366 # breaks some systems' header files.
2367 # AIX                   -qlanglvl=ansi
2368 # Ultrix and OSF/1      -std1
2369 # HP-UX                 -Aa -D_HPUX_SOURCE
2370 # SVR4                  -Xc -D__EXTENSIONS__
2371 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2372 do
2373   CC="$ac_save_CC $ac_arg"
2374   cat >conftest.$ac_ext <<_ACEOF
2375 /* confdefs.h.  */
2376 _ACEOF
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h.  */
2380 #include <stdarg.h>
2381 #include <stdio.h>
2382 #include <sys/types.h>
2383 #include <sys/stat.h>
2384 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2385 struct buf { int x; };
2386 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2387 static char *e (p, i)
2388      char **p;
2389      int i;
2390 {
2391   return p[i];
2392 }
2393 static char *f (char * (*g) (char **, int), char **p, ...)
2394 {
2395   char *s;
2396   va_list v;
2397   va_start (v,p);
2398   s = g (p, va_arg (v,int));
2399   va_end (v);
2400   return s;
2401 }
2402 int test (int i, double x);
2403 struct s1 {int (*f) (int a);};
2404 struct s2 {int (*f) (double a);};
2405 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2406 int argc;
2407 char **argv;
2408
2409 int
2410 main ()
2411 {
2412
2413 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2414
2415   ;
2416   return 0;
2417 }
2418 _ACEOF
2419 rm -f conftest.$ac_objext
2420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2421   (eval $ac_compile) 2>conftest.er1
2422   ac_status=$?
2423   grep -v '^ *+' conftest.er1 >conftest.err
2424   rm -f conftest.er1
2425   cat conftest.err >&5
2426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427   (exit $ac_status); } &&
2428          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430   (eval $ac_try) 2>&5
2431   ac_status=$?
2432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433   (exit $ac_status); }; } &&
2434          { ac_try='test -s conftest.$ac_objext'
2435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436   (eval $ac_try) 2>&5
2437   ac_status=$?
2438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439   (exit $ac_status); }; }; then
2440   am_cv_prog_cc_stdc="$ac_arg"; break
2441 else
2442   echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2444
2445 fi
2446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2447 done
2448 CC="$ac_save_CC"
2449
2450 fi
2451
2452 if test -z "$am_cv_prog_cc_stdc"; then
2453   echo "$as_me:$LINENO: result: none needed" >&5
2454 echo "${ECHO_T}none needed" >&6
2455 else
2456   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2457 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2458 fi
2459 case "x$am_cv_prog_cc_stdc" in
2460   x|xno) ;;
2461   *) CC="$CC $am_cv_prog_cc_stdc" ;;
2462 esac
2463
2464 if test x"$CFLAGS" != x; then
2465     CFLAGS=`echo "$CFLAGS" | sed -e 's/-O2/-O3/'`
2466 fi
2467 if test x"$CFLAGS" != x; then
2468     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pipe//g'`
2469 fi
2470 if test x"$CFLAGS" != x; then
2471     unet_old_cflags=$CFLAGS
2472     CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
2473 fi
2474 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2475     # If -g was already there, force symbols to be enabled
2476     unet_cv_enable_symbols=yes
2477 fi
2478 if test x"$CFLAGS" != x; then
2479     unet_old_cflags=$CFLAGS
2480     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
2481 fi
2482 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2483     # If -pg was already there, force profiling to be enabled
2484     unet_cv_enable_profile=yes
2485 fi
2486 if test x"$CFLAGS" != x; then
2487     unet_old_cflags=$CFLAGS
2488     CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wall//g'`
2489 fi
2490 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2491     # If -Wall was already there, force warnings to be enabled
2492     unet_cv_enable_warnings=yes
2493 fi
2494 if test x"$CFLAGS" != x; then
2495     unet_old_cflags=$CFLAGS
2496     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pedantic//g'`
2497 fi
2498 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2499     # If -pedantic was already there, force pedatic to be enabled
2500     unet_cv_enable_pedantic=yes
2501 fi
2502
2503
2504 echo "$as_me:$LINENO: checking for library containing crypt" >&5
2505 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
2506 if test "${ac_cv_search_crypt+set}" = set; then
2507   echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509   ac_func_search_save_LIBS=$LIBS
2510 ac_cv_search_crypt=no
2511 cat >conftest.$ac_ext <<_ACEOF
2512 /* confdefs.h.  */
2513 _ACEOF
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h.  */
2517
2518 /* Override any gcc2 internal prototype to avoid an error.  */
2519 #ifdef __cplusplus
2520 extern "C"
2521 #endif
2522 /* We use char because int might match the return type of a gcc2
2523    builtin and then its argument prototype would still apply.  */
2524 char crypt ();
2525 int
2526 main ()
2527 {
2528 crypt ();
2529   ;
2530   return 0;
2531 }
2532 _ACEOF
2533 rm -f conftest.$ac_objext conftest$ac_exeext
2534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2535   (eval $ac_link) 2>conftest.er1
2536   ac_status=$?
2537   grep -v '^ *+' conftest.er1 >conftest.err
2538   rm -f conftest.er1
2539   cat conftest.err >&5
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); } &&
2542          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544   (eval $ac_try) 2>&5
2545   ac_status=$?
2546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547   (exit $ac_status); }; } &&
2548          { ac_try='test -s conftest$ac_exeext'
2549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2550   (eval $ac_try) 2>&5
2551   ac_status=$?
2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553   (exit $ac_status); }; }; then
2554   ac_cv_search_crypt="none required"
2555 else
2556   echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.$ac_ext >&5
2558
2559 fi
2560 rm -f conftest.err conftest.$ac_objext \
2561       conftest$ac_exeext conftest.$ac_ext
2562 if test "$ac_cv_search_crypt" = no; then
2563   for ac_lib in descrypt crypt; do
2564     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2565     cat >conftest.$ac_ext <<_ACEOF
2566 /* confdefs.h.  */
2567 _ACEOF
2568 cat confdefs.h >>conftest.$ac_ext
2569 cat >>conftest.$ac_ext <<_ACEOF
2570 /* end confdefs.h.  */
2571
2572 /* Override any gcc2 internal prototype to avoid an error.  */
2573 #ifdef __cplusplus
2574 extern "C"
2575 #endif
2576 /* We use char because int might match the return type of a gcc2
2577    builtin and then its argument prototype would still apply.  */
2578 char crypt ();
2579 int
2580 main ()
2581 {
2582 crypt ();
2583   ;
2584   return 0;
2585 }
2586 _ACEOF
2587 rm -f conftest.$ac_objext conftest$ac_exeext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2589   (eval $ac_link) 2>conftest.er1
2590   ac_status=$?
2591   grep -v '^ *+' conftest.er1 >conftest.err
2592   rm -f conftest.er1
2593   cat conftest.err >&5
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); } &&
2596          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598   (eval $ac_try) 2>&5
2599   ac_status=$?
2600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601   (exit $ac_status); }; } &&
2602          { ac_try='test -s conftest$ac_exeext'
2603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604   (eval $ac_try) 2>&5
2605   ac_status=$?
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); }; }; then
2608   ac_cv_search_crypt="-l$ac_lib"
2609 break
2610 else
2611   echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2613
2614 fi
2615 rm -f conftest.err conftest.$ac_objext \
2616       conftest$ac_exeext conftest.$ac_ext
2617   done
2618 fi
2619 LIBS=$ac_func_search_save_LIBS
2620 fi
2621 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
2622 echo "${ECHO_T}$ac_cv_search_crypt" >&6
2623 if test "$ac_cv_search_crypt" != no; then
2624   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
2625
2626 else
2627   { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
2628 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
2629    { (exit 1); exit 1; }; }
2630 fi
2631
2632
2633
2634    # Most operating systems have gethostbyname() in the default searched
2635    # libraries (i.e. libc):
2636    echo "$as_me:$LINENO: checking for gethostbyname" >&5
2637 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2638 if test "${ac_cv_func_gethostbyname+set}" = set; then
2639   echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641   cat >conftest.$ac_ext <<_ACEOF
2642 /* confdefs.h.  */
2643 _ACEOF
2644 cat confdefs.h >>conftest.$ac_ext
2645 cat >>conftest.$ac_ext <<_ACEOF
2646 /* end confdefs.h.  */
2647 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
2648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2649 #define gethostbyname innocuous_gethostbyname
2650
2651 /* System header to define __stub macros and hopefully few prototypes,
2652     which can conflict with char gethostbyname (); below.
2653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2654     <limits.h> exists even on freestanding compilers.  */
2655
2656 #ifdef __STDC__
2657 # include <limits.h>
2658 #else
2659 # include <assert.h>
2660 #endif
2661
2662 #undef gethostbyname
2663
2664 /* Override any gcc2 internal prototype to avoid an error.  */
2665 #ifdef __cplusplus
2666 extern "C"
2667 {
2668 #endif
2669 /* We use char because int might match the return type of a gcc2
2670    builtin and then its argument prototype would still apply.  */
2671 char gethostbyname ();
2672 /* The GNU C library defines this for functions which it implements
2673     to always fail with ENOSYS.  Some functions are actually named
2674     something starting with __ and the normal name is an alias.  */
2675 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2676 choke me
2677 #else
2678 char (*f) () = gethostbyname;
2679 #endif
2680 #ifdef __cplusplus
2681 }
2682 #endif
2683
2684 int
2685 main ()
2686 {
2687 return f != gethostbyname;
2688   ;
2689   return 0;
2690 }
2691 _ACEOF
2692 rm -f conftest.$ac_objext conftest$ac_exeext
2693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2694   (eval $ac_link) 2>conftest.er1
2695   ac_status=$?
2696   grep -v '^ *+' conftest.er1 >conftest.err
2697   rm -f conftest.er1
2698   cat conftest.err >&5
2699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700   (exit $ac_status); } &&
2701          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703   (eval $ac_try) 2>&5
2704   ac_status=$?
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); }; } &&
2707          { ac_try='test -s conftest$ac_exeext'
2708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709   (eval $ac_try) 2>&5
2710   ac_status=$?
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); }; }; then
2713   ac_cv_func_gethostbyname=yes
2714 else
2715   echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2717
2718 ac_cv_func_gethostbyname=no
2719 fi
2720 rm -f conftest.err conftest.$ac_objext \
2721       conftest$ac_exeext conftest.$ac_ext
2722 fi
2723 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2724 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2725 if test $ac_cv_func_gethostbyname = yes; then
2726   :
2727 else
2728   # Some OSes (eg. Solaris) place it in libnsl:
2729
2730 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2731 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2732 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2733   echo $ECHO_N "(cached) $ECHO_C" >&6
2734 else
2735   ac_check_lib_save_LIBS=$LIBS
2736 LIBS="-lnsl  $LIBS"
2737 cat >conftest.$ac_ext <<_ACEOF
2738 /* confdefs.h.  */
2739 _ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h.  */
2743
2744 /* Override any gcc2 internal prototype to avoid an error.  */
2745 #ifdef __cplusplus
2746 extern "C"
2747 #endif
2748 /* We use char because int might match the return type of a gcc2
2749    builtin and then its argument prototype would still apply.  */
2750 char gethostbyname ();
2751 int
2752 main ()
2753 {
2754 gethostbyname ();
2755   ;
2756   return 0;
2757 }
2758 _ACEOF
2759 rm -f conftest.$ac_objext conftest$ac_exeext
2760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2761   (eval $ac_link) 2>conftest.er1
2762   ac_status=$?
2763   grep -v '^ *+' conftest.er1 >conftest.err
2764   rm -f conftest.er1
2765   cat conftest.err >&5
2766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); } &&
2768          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770   (eval $ac_try) 2>&5
2771   ac_status=$?
2772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773   (exit $ac_status); }; } &&
2774          { ac_try='test -s conftest$ac_exeext'
2775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776   (eval $ac_try) 2>&5
2777   ac_status=$?
2778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779   (exit $ac_status); }; }; then
2780   ac_cv_lib_nsl_gethostbyname=yes
2781 else
2782   echo "$as_me: failed program was:" >&5
2783 sed 's/^/| /' conftest.$ac_ext >&5
2784
2785 ac_cv_lib_nsl_gethostbyname=no
2786 fi
2787 rm -f conftest.err conftest.$ac_objext \
2788       conftest$ac_exeext conftest.$ac_ext
2789 LIBS=$ac_check_lib_save_LIBS
2790 fi
2791 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
2792 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2793 if test $ac_cv_lib_nsl_gethostbyname = yes; then
2794   cat >>confdefs.h <<_ACEOF
2795 #define HAVE_LIBNSL 1
2796 _ACEOF
2797
2798   LIBS="-lnsl $LIBS"
2799
2800 else
2801   # Some strange OSes (SINIX) have it in libsocket:
2802
2803 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2804 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2805 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2806   echo $ECHO_N "(cached) $ECHO_C" >&6
2807 else
2808   ac_check_lib_save_LIBS=$LIBS
2809 LIBS="-lsocket  $LIBS"
2810 cat >conftest.$ac_ext <<_ACEOF
2811 /* confdefs.h.  */
2812 _ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h.  */
2816
2817 /* Override any gcc2 internal prototype to avoid an error.  */
2818 #ifdef __cplusplus
2819 extern "C"
2820 #endif
2821 /* We use char because int might match the return type of a gcc2
2822    builtin and then its argument prototype would still apply.  */
2823 char gethostbyname ();
2824 int
2825 main ()
2826 {
2827 gethostbyname ();
2828   ;
2829   return 0;
2830 }
2831 _ACEOF
2832 rm -f conftest.$ac_objext conftest$ac_exeext
2833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2834   (eval $ac_link) 2>conftest.er1
2835   ac_status=$?
2836   grep -v '^ *+' conftest.er1 >conftest.err
2837   rm -f conftest.er1
2838   cat conftest.err >&5
2839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840   (exit $ac_status); } &&
2841          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843   (eval $ac_try) 2>&5
2844   ac_status=$?
2845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846   (exit $ac_status); }; } &&
2847          { ac_try='test -s conftest$ac_exeext'
2848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849   (eval $ac_try) 2>&5
2850   ac_status=$?
2851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852   (exit $ac_status); }; }; then
2853   ac_cv_lib_socket_gethostbyname=yes
2854 else
2855   echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2857
2858 ac_cv_lib_socket_gethostbyname=no
2859 fi
2860 rm -f conftest.err conftest.$ac_objext \
2861       conftest$ac_exeext conftest.$ac_ext
2862 LIBS=$ac_check_lib_save_LIBS
2863 fi
2864 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2865 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2866 if test $ac_cv_lib_socket_gethostbyname = yes; then
2867   cat >>confdefs.h <<_ACEOF
2868 #define HAVE_LIBSOCKET 1
2869 _ACEOF
2870
2871   LIBS="-lsocket $LIBS"
2872
2873 else
2874   # Unfortunately libsocket sometimes depends on libnsl.
2875           # AC_CHECK_LIB's API is essentially broken so the following
2876           # ugliness is necessary:
2877           echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2878 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2879 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2880   echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882   ac_check_lib_save_LIBS=$LIBS
2883 LIBS="-lsocket -lnsl $LIBS"
2884 cat >conftest.$ac_ext <<_ACEOF
2885 /* confdefs.h.  */
2886 _ACEOF
2887 cat confdefs.h >>conftest.$ac_ext
2888 cat >>conftest.$ac_ext <<_ACEOF
2889 /* end confdefs.h.  */
2890
2891 /* Override any gcc2 internal prototype to avoid an error.  */
2892 #ifdef __cplusplus
2893 extern "C"
2894 #endif
2895 /* We use char because int might match the return type of a gcc2
2896    builtin and then its argument prototype would still apply.  */
2897 char gethostbyname ();
2898 int
2899 main ()
2900 {
2901 gethostbyname ();
2902   ;
2903   return 0;
2904 }
2905 _ACEOF
2906 rm -f conftest.$ac_objext conftest$ac_exeext
2907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2908   (eval $ac_link) 2>conftest.er1
2909   ac_status=$?
2910   grep -v '^ *+' conftest.er1 >conftest.err
2911   rm -f conftest.er1
2912   cat conftest.err >&5
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); } &&
2915          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917   (eval $ac_try) 2>&5
2918   ac_status=$?
2919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920   (exit $ac_status); }; } &&
2921          { ac_try='test -s conftest$ac_exeext'
2922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923   (eval $ac_try) 2>&5
2924   ac_status=$?
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); }; }; then
2927   ac_cv_lib_socket_gethostbyname=yes
2928 else
2929   echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2931
2932 ac_cv_lib_socket_gethostbyname=no
2933 fi
2934 rm -f conftest.err conftest.$ac_objext \
2935       conftest$ac_exeext conftest.$ac_ext
2936 LIBS=$ac_check_lib_save_LIBS
2937 fi
2938 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2939 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2940 if test $ac_cv_lib_socket_gethostbyname = yes; then
2941   LIBS="-lsocket -lnsl $LIBS"
2942 else
2943
2944 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
2945 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
2946 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
2947   echo $ECHO_N "(cached) $ECHO_C" >&6
2948 else
2949   ac_check_lib_save_LIBS=$LIBS
2950 LIBS="-lresolv  $LIBS"
2951 cat >conftest.$ac_ext <<_ACEOF
2952 /* confdefs.h.  */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h.  */
2957
2958 /* Override any gcc2 internal prototype to avoid an error.  */
2959 #ifdef __cplusplus
2960 extern "C"
2961 #endif
2962 /* We use char because int might match the return type of a gcc2
2963    builtin and then its argument prototype would still apply.  */
2964 char gethostbyname ();
2965 int
2966 main ()
2967 {
2968 gethostbyname ();
2969   ;
2970   return 0;
2971 }
2972 _ACEOF
2973 rm -f conftest.$ac_objext conftest$ac_exeext
2974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2975   (eval $ac_link) 2>conftest.er1
2976   ac_status=$?
2977   grep -v '^ *+' conftest.er1 >conftest.err
2978   rm -f conftest.er1
2979   cat conftest.err >&5
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); } &&
2982          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984   (eval $ac_try) 2>&5
2985   ac_status=$?
2986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987   (exit $ac_status); }; } &&
2988          { ac_try='test -s conftest$ac_exeext'
2989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990   (eval $ac_try) 2>&5
2991   ac_status=$?
2992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993   (exit $ac_status); }; }; then
2994   ac_cv_lib_resolv_gethostbyname=yes
2995 else
2996   echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
2998
2999 ac_cv_lib_resolv_gethostbyname=no
3000 fi
3001 rm -f conftest.err conftest.$ac_objext \
3002       conftest$ac_exeext conftest.$ac_ext
3003 LIBS=$ac_check_lib_save_LIBS
3004 fi
3005 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3006 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3007 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3008   cat >>confdefs.h <<_ACEOF
3009 #define HAVE_LIBRESOLV 1
3010 _ACEOF
3011
3012   LIBS="-lresolv $LIBS"
3013
3014 fi
3015
3016 fi
3017
3018
3019 fi
3020
3021
3022 fi
3023
3024
3025 fi
3026
3027   echo "$as_me:$LINENO: checking for socket" >&5
3028 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3029 if test "${ac_cv_func_socket+set}" = set; then
3030   echo $ECHO_N "(cached) $ECHO_C" >&6
3031 else
3032   cat >conftest.$ac_ext <<_ACEOF
3033 /* confdefs.h.  */
3034 _ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h.  */
3038 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3040 #define socket innocuous_socket
3041
3042 /* System header to define __stub macros and hopefully few prototypes,
3043     which can conflict with char socket (); below.
3044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3045     <limits.h> exists even on freestanding compilers.  */
3046
3047 #ifdef __STDC__
3048 # include <limits.h>
3049 #else
3050 # include <assert.h>
3051 #endif
3052
3053 #undef socket
3054
3055 /* Override any gcc2 internal prototype to avoid an error.  */
3056 #ifdef __cplusplus
3057 extern "C"
3058 {
3059 #endif
3060 /* We use char because int might match the return type of a gcc2
3061    builtin and then its argument prototype would still apply.  */
3062 char socket ();
3063 /* The GNU C library defines this for functions which it implements
3064     to always fail with ENOSYS.  Some functions are actually named
3065     something starting with __ and the normal name is an alias.  */
3066 #if defined (__stub_socket) || defined (__stub___socket)
3067 choke me
3068 #else
3069 char (*f) () = socket;
3070 #endif
3071 #ifdef __cplusplus
3072 }
3073 #endif
3074
3075 int
3076 main ()
3077 {
3078 return f != socket;
3079   ;
3080   return 0;
3081 }
3082 _ACEOF
3083 rm -f conftest.$ac_objext conftest$ac_exeext
3084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3085   (eval $ac_link) 2>conftest.er1
3086   ac_status=$?
3087   grep -v '^ *+' conftest.er1 >conftest.err
3088   rm -f conftest.er1
3089   cat conftest.err >&5
3090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091   (exit $ac_status); } &&
3092          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094   (eval $ac_try) 2>&5
3095   ac_status=$?
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); }; } &&
3098          { ac_try='test -s conftest$ac_exeext'
3099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100   (eval $ac_try) 2>&5
3101   ac_status=$?
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); }; }; then
3104   ac_cv_func_socket=yes
3105 else
3106   echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3108
3109 ac_cv_func_socket=no
3110 fi
3111 rm -f conftest.err conftest.$ac_objext \
3112       conftest$ac_exeext conftest.$ac_ext
3113 fi
3114 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3115 echo "${ECHO_T}$ac_cv_func_socket" >&6
3116 if test $ac_cv_func_socket = yes; then
3117   :
3118 else
3119
3120 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3121 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3122 if test "${ac_cv_lib_socket_socket+set}" = set; then
3123   echo $ECHO_N "(cached) $ECHO_C" >&6
3124 else
3125   ac_check_lib_save_LIBS=$LIBS
3126 LIBS="-lsocket  $LIBS"
3127 cat >conftest.$ac_ext <<_ACEOF
3128 /* confdefs.h.  */
3129 _ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h.  */
3133
3134 /* Override any gcc2 internal prototype to avoid an error.  */
3135 #ifdef __cplusplus
3136 extern "C"
3137 #endif
3138 /* We use char because int might match the return type of a gcc2
3139    builtin and then its argument prototype would still apply.  */
3140 char socket ();
3141 int
3142 main ()
3143 {
3144 socket ();
3145   ;
3146   return 0;
3147 }
3148 _ACEOF
3149 rm -f conftest.$ac_objext conftest$ac_exeext
3150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3151   (eval $ac_link) 2>conftest.er1
3152   ac_status=$?
3153   grep -v '^ *+' conftest.er1 >conftest.err
3154   rm -f conftest.er1
3155   cat conftest.err >&5
3156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157   (exit $ac_status); } &&
3158          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160   (eval $ac_try) 2>&5
3161   ac_status=$?
3162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163   (exit $ac_status); }; } &&
3164          { ac_try='test -s conftest$ac_exeext'
3165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3166   (eval $ac_try) 2>&5
3167   ac_status=$?
3168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169   (exit $ac_status); }; }; then
3170   ac_cv_lib_socket_socket=yes
3171 else
3172   echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3174
3175 ac_cv_lib_socket_socket=no
3176 fi
3177 rm -f conftest.err conftest.$ac_objext \
3178       conftest$ac_exeext conftest.$ac_ext
3179 LIBS=$ac_check_lib_save_LIBS
3180 fi
3181 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3182 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3183 if test $ac_cv_lib_socket_socket = yes; then
3184   cat >>confdefs.h <<_ACEOF
3185 #define HAVE_LIBSOCKET 1
3186 _ACEOF
3187
3188   LIBS="-lsocket $LIBS"
3189
3190 else
3191   echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3192 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3193 if test "${ac_cv_lib_socket_socket+set}" = set; then
3194   echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196   ac_check_lib_save_LIBS=$LIBS
3197 LIBS="-lsocket -lnsl $LIBS"
3198 cat >conftest.$ac_ext <<_ACEOF
3199 /* confdefs.h.  */
3200 _ACEOF
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h.  */
3204
3205 /* Override any gcc2 internal prototype to avoid an error.  */
3206 #ifdef __cplusplus
3207 extern "C"
3208 #endif
3209 /* We use char because int might match the return type of a gcc2
3210    builtin and then its argument prototype would still apply.  */
3211 char socket ();
3212 int
3213 main ()
3214 {
3215 socket ();
3216   ;
3217   return 0;
3218 }
3219 _ACEOF
3220 rm -f conftest.$ac_objext conftest$ac_exeext
3221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3222   (eval $ac_link) 2>conftest.er1
3223   ac_status=$?
3224   grep -v '^ *+' conftest.er1 >conftest.err
3225   rm -f conftest.er1
3226   cat conftest.err >&5
3227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228   (exit $ac_status); } &&
3229          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3231   (eval $ac_try) 2>&5
3232   ac_status=$?
3233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234   (exit $ac_status); }; } &&
3235          { ac_try='test -s conftest$ac_exeext'
3236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237   (eval $ac_try) 2>&5
3238   ac_status=$?
3239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240   (exit $ac_status); }; }; then
3241   ac_cv_lib_socket_socket=yes
3242 else
3243   echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3245
3246 ac_cv_lib_socket_socket=no
3247 fi
3248 rm -f conftest.err conftest.$ac_objext \
3249       conftest$ac_exeext conftest.$ac_ext
3250 LIBS=$ac_check_lib_save_LIBS
3251 fi
3252 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3253 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3254 if test $ac_cv_lib_socket_socket = yes; then
3255   LIBS="-lsocket -lnsl $LIBS"
3256 fi
3257
3258 fi
3259
3260 fi
3261
3262
3263
3264 ac_ext=c
3265 ac_cpp='$CPP $CPPFLAGS'
3266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3269 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3270 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3271 # On Suns, sometimes $CPP names a directory.
3272 if test -n "$CPP" && test -d "$CPP"; then
3273   CPP=
3274 fi
3275 if test -z "$CPP"; then
3276   if test "${ac_cv_prog_CPP+set}" = set; then
3277   echo $ECHO_N "(cached) $ECHO_C" >&6
3278 else
3279       # Double quotes because CPP needs to be expanded
3280     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3281     do
3282       ac_preproc_ok=false
3283 for ac_c_preproc_warn_flag in '' yes
3284 do
3285   # Use a header file that comes with gcc, so configuring glibc
3286   # with a fresh cross-compiler works.
3287   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3288   # <limits.h> exists even on freestanding compilers.
3289   # On the NeXT, cc -E runs the code through the compiler's parser,
3290   # not just through cpp. "Syntax error" is here to catch this case.
3291   cat >conftest.$ac_ext <<_ACEOF
3292 /* confdefs.h.  */
3293 _ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h.  */
3297 #ifdef __STDC__
3298 # include <limits.h>
3299 #else
3300 # include <assert.h>
3301 #endif
3302                      Syntax error
3303 _ACEOF
3304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3305   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3306   ac_status=$?
3307   grep -v '^ *+' conftest.er1 >conftest.err
3308   rm -f conftest.er1
3309   cat conftest.err >&5
3310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311   (exit $ac_status); } >/dev/null; then
3312   if test -s conftest.err; then
3313     ac_cpp_err=$ac_c_preproc_warn_flag
3314     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3315   else
3316     ac_cpp_err=
3317   fi
3318 else
3319   ac_cpp_err=yes
3320 fi
3321 if test -z "$ac_cpp_err"; then
3322   :
3323 else
3324   echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3326
3327   # Broken: fails on valid input.
3328 continue
3329 fi
3330 rm -f conftest.err conftest.$ac_ext
3331
3332   # OK, works on sane cases.  Now check whether non-existent headers
3333   # can be detected and how.
3334   cat >conftest.$ac_ext <<_ACEOF
3335 /* confdefs.h.  */
3336 _ACEOF
3337 cat confdefs.h >>conftest.$ac_ext
3338 cat >>conftest.$ac_ext <<_ACEOF
3339 /* end confdefs.h.  */
3340 #include <ac_nonexistent.h>
3341 _ACEOF
3342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3343   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3344   ac_status=$?
3345   grep -v '^ *+' conftest.er1 >conftest.err
3346   rm -f conftest.er1
3347   cat conftest.err >&5
3348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349   (exit $ac_status); } >/dev/null; then
3350   if test -s conftest.err; then
3351     ac_cpp_err=$ac_c_preproc_warn_flag
3352     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3353   else
3354     ac_cpp_err=
3355   fi
3356 else
3357   ac_cpp_err=yes
3358 fi
3359 if test -z "$ac_cpp_err"; then
3360   # Broken: success on invalid input.
3361 continue
3362 else
3363   echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3365
3366   # Passes both tests.
3367 ac_preproc_ok=:
3368 break
3369 fi
3370 rm -f conftest.err conftest.$ac_ext
3371
3372 done
3373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3374 rm -f conftest.err conftest.$ac_ext
3375 if $ac_preproc_ok; then
3376   break
3377 fi
3378
3379     done
3380     ac_cv_prog_CPP=$CPP
3381
3382 fi
3383   CPP=$ac_cv_prog_CPP
3384 else
3385   ac_cv_prog_CPP=$CPP
3386 fi
3387 echo "$as_me:$LINENO: result: $CPP" >&5
3388 echo "${ECHO_T}$CPP" >&6
3389 ac_preproc_ok=false
3390 for ac_c_preproc_warn_flag in '' yes
3391 do
3392   # Use a header file that comes with gcc, so configuring glibc
3393   # with a fresh cross-compiler works.
3394   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3395   # <limits.h> exists even on freestanding compilers.
3396   # On the NeXT, cc -E runs the code through the compiler's parser,
3397   # not just through cpp. "Syntax error" is here to catch this case.
3398   cat >conftest.$ac_ext <<_ACEOF
3399 /* confdefs.h.  */
3400 _ACEOF
3401 cat confdefs.h >>conftest.$ac_ext
3402 cat >>conftest.$ac_ext <<_ACEOF
3403 /* end confdefs.h.  */
3404 #ifdef __STDC__
3405 # include <limits.h>
3406 #else
3407 # include <assert.h>
3408 #endif
3409                      Syntax error
3410 _ACEOF
3411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3412   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3413   ac_status=$?
3414   grep -v '^ *+' conftest.er1 >conftest.err
3415   rm -f conftest.er1
3416   cat conftest.err >&5
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); } >/dev/null; then
3419   if test -s conftest.err; then
3420     ac_cpp_err=$ac_c_preproc_warn_flag
3421     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3422   else
3423     ac_cpp_err=
3424   fi
3425 else
3426   ac_cpp_err=yes
3427 fi
3428 if test -z "$ac_cpp_err"; then
3429   :
3430 else
3431   echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3433
3434   # Broken: fails on valid input.
3435 continue
3436 fi
3437 rm -f conftest.err conftest.$ac_ext
3438
3439   # OK, works on sane cases.  Now check whether non-existent headers
3440   # can be detected and how.
3441   cat >conftest.$ac_ext <<_ACEOF
3442 /* confdefs.h.  */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h.  */
3447 #include <ac_nonexistent.h>
3448 _ACEOF
3449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3450   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3451   ac_status=$?
3452   grep -v '^ *+' conftest.er1 >conftest.err
3453   rm -f conftest.er1
3454   cat conftest.err >&5
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); } >/dev/null; then
3457   if test -s conftest.err; then
3458     ac_cpp_err=$ac_c_preproc_warn_flag
3459     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3460   else
3461     ac_cpp_err=
3462   fi
3463 else
3464   ac_cpp_err=yes
3465 fi
3466 if test -z "$ac_cpp_err"; then
3467   # Broken: success on invalid input.
3468 continue
3469 else
3470   echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3472
3473   # Passes both tests.
3474 ac_preproc_ok=:
3475 break
3476 fi
3477 rm -f conftest.err conftest.$ac_ext
3478
3479 done
3480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3481 rm -f conftest.err conftest.$ac_ext
3482 if $ac_preproc_ok; then
3483   :
3484 else
3485   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3486 See \`config.log' for more details." >&5
3487 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3488 See \`config.log' for more details." >&2;}
3489    { (exit 1); exit 1; }; }
3490 fi
3491
3492 ac_ext=c
3493 ac_cpp='$CPP $CPPFLAGS'
3494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3497
3498
3499 echo "$as_me:$LINENO: checking for egrep" >&5
3500 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3501 if test "${ac_cv_prog_egrep+set}" = set; then
3502   echo $ECHO_N "(cached) $ECHO_C" >&6
3503 else
3504   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3505     then ac_cv_prog_egrep='grep -E'
3506     else ac_cv_prog_egrep='egrep'
3507     fi
3508 fi
3509 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3510 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3511  EGREP=$ac_cv_prog_egrep
3512
3513
3514 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3515 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3516 if test "${ac_cv_header_stdc+set}" = set; then
3517   echo $ECHO_N "(cached) $ECHO_C" >&6
3518 else
3519   cat >conftest.$ac_ext <<_ACEOF
3520 /* confdefs.h.  */
3521 _ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h.  */
3525 #include <stdlib.h>
3526 #include <stdarg.h>
3527 #include <string.h>
3528 #include <float.h>
3529
3530 int
3531 main ()
3532 {
3533
3534   ;
3535   return 0;
3536 }
3537 _ACEOF
3538 rm -f conftest.$ac_objext
3539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3540   (eval $ac_compile) 2>conftest.er1
3541   ac_status=$?
3542   grep -v '^ *+' conftest.er1 >conftest.err
3543   rm -f conftest.er1
3544   cat conftest.err >&5
3545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546   (exit $ac_status); } &&
3547          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549   (eval $ac_try) 2>&5
3550   ac_status=$?
3551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552   (exit $ac_status); }; } &&
3553          { ac_try='test -s conftest.$ac_objext'
3554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555   (eval $ac_try) 2>&5
3556   ac_status=$?
3557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558   (exit $ac_status); }; }; then
3559   ac_cv_header_stdc=yes
3560 else
3561   echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3563
3564 ac_cv_header_stdc=no
3565 fi
3566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3567
3568 if test $ac_cv_header_stdc = yes; then
3569   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3570   cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h.  */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h.  */
3576 #include <string.h>
3577
3578 _ACEOF
3579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3580   $EGREP "memchr" >/dev/null 2>&1; then
3581   :
3582 else
3583   ac_cv_header_stdc=no
3584 fi
3585 rm -f conftest*
3586
3587 fi
3588
3589 if test $ac_cv_header_stdc = yes; then
3590   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3591   cat >conftest.$ac_ext <<_ACEOF
3592 /* confdefs.h.  */
3593 _ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h.  */
3597 #include <stdlib.h>
3598
3599 _ACEOF
3600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3601   $EGREP "free" >/dev/null 2>&1; then
3602   :
3603 else
3604   ac_cv_header_stdc=no
3605 fi
3606 rm -f conftest*
3607
3608 fi
3609
3610 if test $ac_cv_header_stdc = yes; then
3611   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3612   if test "$cross_compiling" = yes; then
3613   :
3614 else
3615   cat >conftest.$ac_ext <<_ACEOF
3616 /* confdefs.h.  */
3617 _ACEOF
3618 cat confdefs.h >>conftest.$ac_ext
3619 cat >>conftest.$ac_ext <<_ACEOF
3620 /* end confdefs.h.  */
3621 #include <ctype.h>
3622 #if ((' ' & 0x0FF) == 0x020)
3623 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3624 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3625 #else
3626 # define ISLOWER(c) \
3627                    (('a' <= (c) && (c) <= 'i') \
3628                      || ('j' <= (c) && (c) <= 'r') \
3629                      || ('s' <= (c) && (c) <= 'z'))
3630 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3631 #endif
3632
3633 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3634 int
3635 main ()
3636 {
3637   int i;
3638   for (i = 0; i < 256; i++)
3639     if (XOR (islower (i), ISLOWER (i))
3640         || toupper (i) != TOUPPER (i))
3641       exit(2);
3642   exit (0);
3643 }
3644 _ACEOF
3645 rm -f conftest$ac_exeext
3646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3647   (eval $ac_link) 2>&5
3648   ac_status=$?
3649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652   (eval $ac_try) 2>&5
3653   ac_status=$?
3654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655   (exit $ac_status); }; }; then
3656   :
3657 else
3658   echo "$as_me: program exited with status $ac_status" >&5
3659 echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3661
3662 ( exit $ac_status )
3663 ac_cv_header_stdc=no
3664 fi
3665 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3666 fi
3667 fi
3668 fi
3669 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3670 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3671 if test $ac_cv_header_stdc = yes; then
3672
3673 cat >>confdefs.h <<\_ACEOF
3674 #define STDC_HEADERS 1
3675 _ACEOF
3676
3677 fi
3678
3679 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3690                   inttypes.h stdint.h unistd.h
3691 do
3692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3693 echo "$as_me:$LINENO: checking for $ac_header" >&5
3694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3696   echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698   cat >conftest.$ac_ext <<_ACEOF
3699 /* confdefs.h.  */
3700 _ACEOF
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h.  */
3704 $ac_includes_default
3705
3706 #include <$ac_header>
3707 _ACEOF
3708 rm -f conftest.$ac_objext
3709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3710   (eval $ac_compile) 2>conftest.er1
3711   ac_status=$?
3712   grep -v '^ *+' conftest.er1 >conftest.err
3713   rm -f conftest.er1
3714   cat conftest.err >&5
3715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716   (exit $ac_status); } &&
3717          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719   (eval $ac_try) 2>&5
3720   ac_status=$?
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); }; } &&
3723          { ac_try='test -s conftest.$ac_objext'
3724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725   (eval $ac_try) 2>&5
3726   ac_status=$?
3727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728   (exit $ac_status); }; }; then
3729   eval "$as_ac_Header=yes"
3730 else
3731   echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3733
3734 eval "$as_ac_Header=no"
3735 fi
3736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3737 fi
3738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3741   cat >>confdefs.h <<_ACEOF
3742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3743 _ACEOF
3744
3745 fi
3746
3747 done
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758 for ac_header in crypt.h poll.h stdint.h sys/devpoll.h sys/epoll.h sys/event.h sys/param.h sys/socket.h
3759 do
3760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3762   echo "$as_me:$LINENO: checking for $ac_header" >&5
3763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3765   echo $ECHO_N "(cached) $ECHO_C" >&6
3766 fi
3767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3769 else
3770   # Is the header compilable?
3771 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3773 cat >conftest.$ac_ext <<_ACEOF
3774 /* confdefs.h.  */
3775 _ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h.  */
3779 $ac_includes_default
3780 #include <$ac_header>
3781 _ACEOF
3782 rm -f conftest.$ac_objext
3783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3784   (eval $ac_compile) 2>conftest.er1
3785   ac_status=$?
3786   grep -v '^ *+' conftest.er1 >conftest.err
3787   rm -f conftest.er1
3788   cat conftest.err >&5
3789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790   (exit $ac_status); } &&
3791          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793   (eval $ac_try) 2>&5
3794   ac_status=$?
3795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796   (exit $ac_status); }; } &&
3797          { ac_try='test -s conftest.$ac_objext'
3798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799   (eval $ac_try) 2>&5
3800   ac_status=$?
3801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802   (exit $ac_status); }; }; then
3803   ac_header_compiler=yes
3804 else
3805   echo "$as_me: failed program was:" >&5
3806 sed 's/^/| /' conftest.$ac_ext >&5
3807
3808 ac_header_compiler=no
3809 fi
3810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3811 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3812 echo "${ECHO_T}$ac_header_compiler" >&6
3813
3814 # Is the header present?
3815 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3817 cat >conftest.$ac_ext <<_ACEOF
3818 /* confdefs.h.  */
3819 _ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h.  */
3823 #include <$ac_header>
3824 _ACEOF
3825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3826   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3827   ac_status=$?
3828   grep -v '^ *+' conftest.er1 >conftest.err
3829   rm -f conftest.er1
3830   cat conftest.err >&5
3831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832   (exit $ac_status); } >/dev/null; then
3833   if test -s conftest.err; then
3834     ac_cpp_err=$ac_c_preproc_warn_flag
3835     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3836   else
3837     ac_cpp_err=
3838   fi
3839 else
3840   ac_cpp_err=yes
3841 fi
3842 if test -z "$ac_cpp_err"; then
3843   ac_header_preproc=yes
3844 else
3845   echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3847
3848   ac_header_preproc=no
3849 fi
3850 rm -f conftest.err conftest.$ac_ext
3851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3852 echo "${ECHO_T}$ac_header_preproc" >&6
3853
3854 # So?  What about this header?
3855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3856   yes:no: )
3857     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3861     ac_header_preproc=yes
3862     ;;
3863   no:yes:* )
3864     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3866     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3867 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3868     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3870     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3871 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3872     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3874     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3876     (
3877       cat <<\_ASBOX
3878 ## ------------------------------------------ ##
3879 ## Report this to the AC_PACKAGE_NAME lists.  ##
3880 ## ------------------------------------------ ##
3881 _ASBOX
3882     ) |
3883       sed "s/^/$as_me: WARNING:     /" >&2
3884     ;;
3885 esac
3886 echo "$as_me:$LINENO: checking for $ac_header" >&5
3887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3889   echo $ECHO_N "(cached) $ECHO_C" >&6
3890 else
3891   eval "$as_ac_Header=\$ac_header_preproc"
3892 fi
3893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3895
3896 fi
3897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3898   cat >>confdefs.h <<_ACEOF
3899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3900 _ACEOF
3901
3902 fi
3903
3904 done
3905
3906
3907 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3908 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3909 if test "${ac_cv_c_bigendian+set}" = set; then
3910   echo $ECHO_N "(cached) $ECHO_C" >&6
3911 else
3912   # See if sys/param.h defines the BYTE_ORDER macro.
3913 cat >conftest.$ac_ext <<_ACEOF
3914 /* confdefs.h.  */
3915 _ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h.  */
3919 #include <sys/types.h>
3920 #include <sys/param.h>
3921
3922 int
3923 main ()
3924 {
3925 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3926  bogus endian macros
3927 #endif
3928
3929   ;
3930   return 0;
3931 }
3932 _ACEOF
3933 rm -f conftest.$ac_objext
3934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3935   (eval $ac_compile) 2>conftest.er1
3936   ac_status=$?
3937   grep -v '^ *+' conftest.er1 >conftest.err
3938   rm -f conftest.er1
3939   cat conftest.err >&5
3940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941   (exit $ac_status); } &&
3942          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944   (eval $ac_try) 2>&5
3945   ac_status=$?
3946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947   (exit $ac_status); }; } &&
3948          { ac_try='test -s conftest.$ac_objext'
3949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950   (eval $ac_try) 2>&5
3951   ac_status=$?
3952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953   (exit $ac_status); }; }; then
3954   # It does; now see whether it defined to BIG_ENDIAN or not.
3955 cat >conftest.$ac_ext <<_ACEOF
3956 /* confdefs.h.  */
3957 _ACEOF
3958 cat confdefs.h >>conftest.$ac_ext
3959 cat >>conftest.$ac_ext <<_ACEOF
3960 /* end confdefs.h.  */
3961 #include <sys/types.h>
3962 #include <sys/param.h>
3963
3964 int
3965 main ()
3966 {
3967 #if BYTE_ORDER != BIG_ENDIAN
3968  not big endian
3969 #endif
3970
3971   ;
3972   return 0;
3973 }
3974 _ACEOF
3975 rm -f conftest.$ac_objext
3976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3977   (eval $ac_compile) 2>conftest.er1
3978   ac_status=$?
3979   grep -v '^ *+' conftest.er1 >conftest.err
3980   rm -f conftest.er1
3981   cat conftest.err >&5
3982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983   (exit $ac_status); } &&
3984          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986   (eval $ac_try) 2>&5
3987   ac_status=$?
3988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989   (exit $ac_status); }; } &&
3990          { ac_try='test -s conftest.$ac_objext'
3991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992   (eval $ac_try) 2>&5
3993   ac_status=$?
3994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995   (exit $ac_status); }; }; then
3996   ac_cv_c_bigendian=yes
3997 else
3998   echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4000
4001 ac_cv_c_bigendian=no
4002 fi
4003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4004 else
4005   echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4007
4008 # It does not; compile a test program.
4009 if test "$cross_compiling" = yes; then
4010   # try to guess the endianness by grepping values into an object file
4011   ac_cv_c_bigendian=unknown
4012   cat >conftest.$ac_ext <<_ACEOF
4013 /* confdefs.h.  */
4014 _ACEOF
4015 cat confdefs.h >>conftest.$ac_ext
4016 cat >>conftest.$ac_ext <<_ACEOF
4017 /* end confdefs.h.  */
4018 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4019 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4020 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4021 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4022 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4023 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4024 int
4025 main ()
4026 {
4027  _ascii (); _ebcdic ();
4028   ;
4029   return 0;
4030 }
4031 _ACEOF
4032 rm -f conftest.$ac_objext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034   (eval $ac_compile) 2>conftest.er1
4035   ac_status=$?
4036   grep -v '^ *+' conftest.er1 >conftest.err
4037   rm -f conftest.er1
4038   cat conftest.err >&5
4039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040   (exit $ac_status); } &&
4041          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043   (eval $ac_try) 2>&5
4044   ac_status=$?
4045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046   (exit $ac_status); }; } &&
4047          { ac_try='test -s conftest.$ac_objext'
4048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049   (eval $ac_try) 2>&5
4050   ac_status=$?
4051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052   (exit $ac_status); }; }; then
4053   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4054   ac_cv_c_bigendian=yes
4055 fi
4056 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4057   if test "$ac_cv_c_bigendian" = unknown; then
4058     ac_cv_c_bigendian=no
4059   else
4060     # finding both strings is unlikely to happen, but who knows?
4061     ac_cv_c_bigendian=unknown
4062   fi
4063 fi
4064 else
4065   echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4067
4068 fi
4069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4070 else
4071   cat >conftest.$ac_ext <<_ACEOF
4072 /* confdefs.h.  */
4073 _ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h.  */
4077 int
4078 main ()
4079 {
4080   /* Are we little or big endian?  From Harbison&Steele.  */
4081   union
4082   {
4083     long l;
4084     char c[sizeof (long)];
4085   } u;
4086   u.l = 1;
4087   exit (u.c[sizeof (long) - 1] == 1);
4088 }
4089 _ACEOF
4090 rm -f conftest$ac_exeext
4091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4092   (eval $ac_link) 2>&5
4093   ac_status=$?
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097   (eval $ac_try) 2>&5
4098   ac_status=$?
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); }; }; then
4101   ac_cv_c_bigendian=no
4102 else
4103   echo "$as_me: program exited with status $ac_status" >&5
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4106
4107 ( exit $ac_status )
4108 ac_cv_c_bigendian=yes
4109 fi
4110 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4111 fi
4112 fi
4113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4114 fi
4115 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4116 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4117 case $ac_cv_c_bigendian in
4118   yes)
4119
4120 cat >>confdefs.h <<\_ACEOF
4121 #define WORDS_BIGENDIAN 1
4122 _ACEOF
4123  ;;
4124   no)
4125      ;;
4126   *)
4127     { { echo "$as_me:$LINENO: error: unknown endianness
4128 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4129 echo "$as_me: error: unknown endianness
4130 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4131    { (exit 1); exit 1; }; } ;;
4132 esac
4133
4134 echo "$as_me:$LINENO: checking for size_t" >&5
4135 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4136 if test "${ac_cv_type_size_t+set}" = set; then
4137   echo $ECHO_N "(cached) $ECHO_C" >&6
4138 else
4139   cat >conftest.$ac_ext <<_ACEOF
4140 /* confdefs.h.  */
4141 _ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h.  */
4145 $ac_includes_default
4146 int
4147 main ()
4148 {
4149 if ((size_t *) 0)
4150   return 0;
4151 if (sizeof (size_t))
4152   return 0;
4153   ;
4154   return 0;
4155 }
4156 _ACEOF
4157 rm -f conftest.$ac_objext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4159   (eval $ac_compile) 2>conftest.er1
4160   ac_status=$?
4161   grep -v '^ *+' conftest.er1 >conftest.err
4162   rm -f conftest.er1
4163   cat conftest.err >&5
4164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165   (exit $ac_status); } &&
4166          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168   (eval $ac_try) 2>&5
4169   ac_status=$?
4170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171   (exit $ac_status); }; } &&
4172          { ac_try='test -s conftest.$ac_objext'
4173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174   (eval $ac_try) 2>&5
4175   ac_status=$?
4176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177   (exit $ac_status); }; }; then
4178   ac_cv_type_size_t=yes
4179 else
4180   echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4182
4183 ac_cv_type_size_t=no
4184 fi
4185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4186 fi
4187 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4188 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4189 if test $ac_cv_type_size_t = yes; then
4190   :
4191 else
4192
4193 cat >>confdefs.h <<_ACEOF
4194 #define size_t unsigned
4195 _ACEOF
4196
4197 fi
4198
4199 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4200 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4201 if test "${ac_cv_header_time+set}" = set; then
4202   echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204   cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h.  */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h.  */
4210 #include <sys/types.h>
4211 #include <sys/time.h>
4212 #include <time.h>
4213
4214 int
4215 main ()
4216 {
4217 if ((struct tm *) 0)
4218 return 0;
4219   ;
4220   return 0;
4221 }
4222 _ACEOF
4223 rm -f conftest.$ac_objext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4225   (eval $ac_compile) 2>conftest.er1
4226   ac_status=$?
4227   grep -v '^ *+' conftest.er1 >conftest.err
4228   rm -f conftest.er1
4229   cat conftest.err >&5
4230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231   (exit $ac_status); } &&
4232          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234   (eval $ac_try) 2>&5
4235   ac_status=$?
4236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237   (exit $ac_status); }; } &&
4238          { ac_try='test -s conftest.$ac_objext'
4239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240   (eval $ac_try) 2>&5
4241   ac_status=$?
4242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243   (exit $ac_status); }; }; then
4244   ac_cv_header_time=yes
4245 else
4246   echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4248
4249 ac_cv_header_time=no
4250 fi
4251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4252 fi
4253 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4254 echo "${ECHO_T}$ac_cv_header_time" >&6
4255 if test $ac_cv_header_time = yes; then
4256
4257 cat >>confdefs.h <<\_ACEOF
4258 #define TIME_WITH_SYS_TIME 1
4259 _ACEOF
4260
4261 fi
4262
4263 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4264 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4265 if test "${ac_cv_struct_tm+set}" = set; then
4266   echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268   cat >conftest.$ac_ext <<_ACEOF
4269 /* confdefs.h.  */
4270 _ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h.  */
4274 #include <sys/types.h>
4275 #include <time.h>
4276
4277 int
4278 main ()
4279 {
4280 struct tm *tp; tp->tm_sec;
4281   ;
4282   return 0;
4283 }
4284 _ACEOF
4285 rm -f conftest.$ac_objext
4286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4287   (eval $ac_compile) 2>conftest.er1
4288   ac_status=$?
4289   grep -v '^ *+' conftest.er1 >conftest.err
4290   rm -f conftest.er1
4291   cat conftest.err >&5
4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293   (exit $ac_status); } &&
4294          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296   (eval $ac_try) 2>&5
4297   ac_status=$?
4298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299   (exit $ac_status); }; } &&
4300          { ac_try='test -s conftest.$ac_objext'
4301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302   (eval $ac_try) 2>&5
4303   ac_status=$?
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); }; }; then
4306   ac_cv_struct_tm=time.h
4307 else
4308   echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4310
4311 ac_cv_struct_tm=sys/time.h
4312 fi
4313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4314 fi
4315 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4316 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4317 if test $ac_cv_struct_tm = sys/time.h; then
4318
4319 cat >>confdefs.h <<\_ACEOF
4320 #define TM_IN_SYS_TIME 1
4321 _ACEOF
4322
4323 fi
4324
4325 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4326 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4327 if test "${ac_cv_type_uid_t+set}" = set; then
4328   echo $ECHO_N "(cached) $ECHO_C" >&6
4329 else
4330   cat >conftest.$ac_ext <<_ACEOF
4331 /* confdefs.h.  */
4332 _ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h.  */
4336 #include <sys/types.h>
4337
4338 _ACEOF
4339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4340   $EGREP "uid_t" >/dev/null 2>&1; then
4341   ac_cv_type_uid_t=yes
4342 else
4343   ac_cv_type_uid_t=no
4344 fi
4345 rm -f conftest*
4346
4347 fi
4348 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4349 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4350 if test $ac_cv_type_uid_t = no; then
4351
4352 cat >>confdefs.h <<\_ACEOF
4353 #define uid_t int
4354 _ACEOF
4355
4356
4357 cat >>confdefs.h <<\_ACEOF
4358 #define gid_t int
4359 _ACEOF
4360
4361 fi
4362
4363 echo "$as_me:$LINENO: checking for short" >&5
4364 echo $ECHO_N "checking for short... $ECHO_C" >&6
4365 if test "${ac_cv_type_short+set}" = set; then
4366   echo $ECHO_N "(cached) $ECHO_C" >&6
4367 else
4368   cat >conftest.$ac_ext <<_ACEOF
4369 /* confdefs.h.  */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h.  */
4374 $ac_includes_default
4375 int
4376 main ()
4377 {
4378 if ((short *) 0)
4379   return 0;
4380 if (sizeof (short))
4381   return 0;
4382   ;
4383   return 0;
4384 }
4385 _ACEOF
4386 rm -f conftest.$ac_objext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388   (eval $ac_compile) 2>conftest.er1
4389   ac_status=$?
4390   grep -v '^ *+' conftest.er1 >conftest.err
4391   rm -f conftest.er1
4392   cat conftest.err >&5
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); } &&
4395          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397   (eval $ac_try) 2>&5
4398   ac_status=$?
4399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400   (exit $ac_status); }; } &&
4401          { ac_try='test -s conftest.$ac_objext'
4402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403   (eval $ac_try) 2>&5
4404   ac_status=$?
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); }; }; then
4407   ac_cv_type_short=yes
4408 else
4409   echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4411
4412 ac_cv_type_short=no
4413 fi
4414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4415 fi
4416 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4417 echo "${ECHO_T}$ac_cv_type_short" >&6
4418
4419 echo "$as_me:$LINENO: checking size of short" >&5
4420 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4421 if test "${ac_cv_sizeof_short+set}" = set; then
4422   echo $ECHO_N "(cached) $ECHO_C" >&6
4423 else
4424   if test "$ac_cv_type_short" = yes; then
4425   # The cast to unsigned long works around a bug in the HP C Compiler
4426   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4427   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4428   # This bug is HP SR number 8606223364.
4429   if test "$cross_compiling" = yes; then
4430   # Depending upon the size, compute the lo and hi bounds.
4431 cat >conftest.$ac_ext <<_ACEOF
4432 /* confdefs.h.  */
4433 _ACEOF
4434 cat confdefs.h >>conftest.$ac_ext
4435 cat >>conftest.$ac_ext <<_ACEOF
4436 /* end confdefs.h.  */
4437 $ac_includes_default
4438 int
4439 main ()
4440 {
4441 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4442 test_array [0] = 0
4443
4444   ;
4445   return 0;
4446 }
4447 _ACEOF
4448 rm -f conftest.$ac_objext
4449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4450   (eval $ac_compile) 2>conftest.er1
4451   ac_status=$?
4452   grep -v '^ *+' conftest.er1 >conftest.err
4453   rm -f conftest.er1
4454   cat conftest.err >&5
4455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456   (exit $ac_status); } &&
4457          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459   (eval $ac_try) 2>&5
4460   ac_status=$?
4461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462   (exit $ac_status); }; } &&
4463          { ac_try='test -s conftest.$ac_objext'
4464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465   (eval $ac_try) 2>&5
4466   ac_status=$?
4467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468   (exit $ac_status); }; }; then
4469   ac_lo=0 ac_mid=0
4470   while :; do
4471     cat >conftest.$ac_ext <<_ACEOF
4472 /* confdefs.h.  */
4473 _ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h.  */
4477 $ac_includes_default
4478 int
4479 main ()
4480 {
4481 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4482 test_array [0] = 0
4483
4484   ;
4485   return 0;
4486 }
4487 _ACEOF
4488 rm -f conftest.$ac_objext
4489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4490   (eval $ac_compile) 2>conftest.er1
4491   ac_status=$?
4492   grep -v '^ *+' conftest.er1 >conftest.err
4493   rm -f conftest.er1
4494   cat conftest.err >&5
4495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496   (exit $ac_status); } &&
4497          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499   (eval $ac_try) 2>&5
4500   ac_status=$?
4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502   (exit $ac_status); }; } &&
4503          { ac_try='test -s conftest.$ac_objext'
4504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4505   (eval $ac_try) 2>&5
4506   ac_status=$?
4507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508   (exit $ac_status); }; }; then
4509   ac_hi=$ac_mid; break
4510 else
4511   echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4513
4514 ac_lo=`expr $ac_mid + 1`
4515                     if test $ac_lo -le $ac_mid; then
4516                       ac_lo= ac_hi=
4517                       break
4518                     fi
4519                     ac_mid=`expr 2 '*' $ac_mid + 1`
4520 fi
4521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4522   done
4523 else
4524   echo "$as_me: failed program was:" >&5
4525 sed 's/^/| /' conftest.$ac_ext >&5
4526
4527 cat >conftest.$ac_ext <<_ACEOF
4528 /* confdefs.h.  */
4529 _ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h.  */
4533 $ac_includes_default
4534 int
4535 main ()
4536 {
4537 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4538 test_array [0] = 0
4539
4540   ;
4541   return 0;
4542 }
4543 _ACEOF
4544 rm -f conftest.$ac_objext
4545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4546   (eval $ac_compile) 2>conftest.er1
4547   ac_status=$?
4548   grep -v '^ *+' conftest.er1 >conftest.err
4549   rm -f conftest.er1
4550   cat conftest.err >&5
4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552   (exit $ac_status); } &&
4553          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555   (eval $ac_try) 2>&5
4556   ac_status=$?
4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558   (exit $ac_status); }; } &&
4559          { ac_try='test -s conftest.$ac_objext'
4560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561   (eval $ac_try) 2>&5
4562   ac_status=$?
4563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564   (exit $ac_status); }; }; then
4565   ac_hi=-1 ac_mid=-1
4566   while :; do
4567     cat >conftest.$ac_ext <<_ACEOF
4568 /* confdefs.h.  */
4569 _ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h.  */
4573 $ac_includes_default
4574 int
4575 main ()
4576 {
4577 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4578 test_array [0] = 0
4579
4580   ;
4581   return 0;
4582 }
4583 _ACEOF
4584 rm -f conftest.$ac_objext
4585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4586   (eval $ac_compile) 2>conftest.er1
4587   ac_status=$?
4588   grep -v '^ *+' conftest.er1 >conftest.err
4589   rm -f conftest.er1
4590   cat conftest.err >&5
4591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592   (exit $ac_status); } &&
4593          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595   (eval $ac_try) 2>&5
4596   ac_status=$?
4597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598   (exit $ac_status); }; } &&
4599          { ac_try='test -s conftest.$ac_objext'
4600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601   (eval $ac_try) 2>&5
4602   ac_status=$?
4603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604   (exit $ac_status); }; }; then
4605   ac_lo=$ac_mid; break
4606 else
4607   echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4609
4610 ac_hi=`expr '(' $ac_mid ')' - 1`
4611                        if test $ac_mid -le $ac_hi; then
4612                          ac_lo= ac_hi=
4613                          break
4614                        fi
4615                        ac_mid=`expr 2 '*' $ac_mid`
4616 fi
4617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4618   done
4619 else
4620   echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4622
4623 ac_lo= ac_hi=
4624 fi
4625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4626 fi
4627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4628 # Binary search between lo and hi bounds.
4629 while test "x$ac_lo" != "x$ac_hi"; do
4630   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4631   cat >conftest.$ac_ext <<_ACEOF
4632 /* confdefs.h.  */
4633 _ACEOF
4634 cat confdefs.h >>conftest.$ac_ext
4635 cat >>conftest.$ac_ext <<_ACEOF
4636 /* end confdefs.h.  */
4637 $ac_includes_default
4638 int
4639 main ()
4640 {
4641 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4642 test_array [0] = 0
4643
4644   ;
4645   return 0;
4646 }
4647 _ACEOF
4648 rm -f conftest.$ac_objext
4649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4650   (eval $ac_compile) 2>conftest.er1
4651   ac_status=$?
4652   grep -v '^ *+' conftest.er1 >conftest.err
4653   rm -f conftest.er1
4654   cat conftest.err >&5
4655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656   (exit $ac_status); } &&
4657          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659   (eval $ac_try) 2>&5
4660   ac_status=$?
4661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662   (exit $ac_status); }; } &&
4663          { ac_try='test -s conftest.$ac_objext'
4664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665   (eval $ac_try) 2>&5
4666   ac_status=$?
4667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668   (exit $ac_status); }; }; then
4669   ac_hi=$ac_mid
4670 else
4671   echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.$ac_ext >&5
4673
4674 ac_lo=`expr '(' $ac_mid ')' + 1`
4675 fi
4676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4677 done
4678 case $ac_lo in
4679 ?*) ac_cv_sizeof_short=$ac_lo;;
4680 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4681 See \`config.log' for more details." >&5
4682 echo "$as_me: error: cannot compute sizeof (short), 77
4683 See \`config.log' for more details." >&2;}
4684    { (exit 1); exit 1; }; } ;;
4685 esac
4686 else
4687   if test "$cross_compiling" = yes; then
4688   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4689 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4690    { (exit 1); exit 1; }; }
4691 else
4692   cat >conftest.$ac_ext <<_ACEOF
4693 /* confdefs.h.  */
4694 _ACEOF
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h.  */
4698 $ac_includes_default
4699 long longval () { return (long) (sizeof (short)); }
4700 unsigned long ulongval () { return (long) (sizeof (short)); }
4701 #include <stdio.h>
4702 #include <stdlib.h>
4703 int
4704 main ()
4705 {
4706
4707   FILE *f = fopen ("conftest.val", "w");
4708   if (! f)
4709     exit (1);
4710   if (((long) (sizeof (short))) < 0)
4711     {
4712       long i = longval ();
4713       if (i != ((long) (sizeof (short))))
4714         exit (1);
4715       fprintf (f, "%ld\n", i);
4716     }
4717   else
4718     {
4719       unsigned long i = ulongval ();
4720       if (i != ((long) (sizeof (short))))
4721         exit (1);
4722       fprintf (f, "%lu\n", i);
4723     }
4724   exit (ferror (f) || fclose (f) != 0);
4725
4726   ;
4727   return 0;
4728 }
4729 _ACEOF
4730 rm -f conftest$ac_exeext
4731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4732   (eval $ac_link) 2>&5
4733   ac_status=$?
4734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737   (eval $ac_try) 2>&5
4738   ac_status=$?
4739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740   (exit $ac_status); }; }; then
4741   ac_cv_sizeof_short=`cat conftest.val`
4742 else
4743   echo "$as_me: program exited with status $ac_status" >&5
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4746
4747 ( exit $ac_status )
4748 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4749 See \`config.log' for more details." >&5
4750 echo "$as_me: error: cannot compute sizeof (short), 77
4751 See \`config.log' for more details." >&2;}
4752    { (exit 1); exit 1; }; }
4753 fi
4754 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4755 fi
4756 fi
4757 rm -f conftest.val
4758 else
4759   ac_cv_sizeof_short=0
4760 fi
4761 fi
4762 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4763 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4764 cat >>confdefs.h <<_ACEOF
4765 #define SIZEOF_SHORT $ac_cv_sizeof_short
4766 _ACEOF
4767
4768
4769 echo "$as_me:$LINENO: checking for int" >&5
4770 echo $ECHO_N "checking for int... $ECHO_C" >&6
4771 if test "${ac_cv_type_int+set}" = set; then
4772   echo $ECHO_N "(cached) $ECHO_C" >&6
4773 else
4774   cat >conftest.$ac_ext <<_ACEOF
4775 /* confdefs.h.  */
4776 _ACEOF
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h.  */
4780 $ac_includes_default
4781 int
4782 main ()
4783 {
4784 if ((int *) 0)
4785   return 0;
4786 if (sizeof (int))
4787   return 0;
4788   ;
4789   return 0;
4790 }
4791 _ACEOF
4792 rm -f conftest.$ac_objext
4793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4794   (eval $ac_compile) 2>conftest.er1
4795   ac_status=$?
4796   grep -v '^ *+' conftest.er1 >conftest.err
4797   rm -f conftest.er1
4798   cat conftest.err >&5
4799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800   (exit $ac_status); } &&
4801          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803   (eval $ac_try) 2>&5
4804   ac_status=$?
4805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806   (exit $ac_status); }; } &&
4807          { ac_try='test -s conftest.$ac_objext'
4808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809   (eval $ac_try) 2>&5
4810   ac_status=$?
4811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812   (exit $ac_status); }; }; then
4813   ac_cv_type_int=yes
4814 else
4815   echo "$as_me: failed program was:" >&5
4816 sed 's/^/| /' conftest.$ac_ext >&5
4817
4818 ac_cv_type_int=no
4819 fi
4820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4821 fi
4822 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4823 echo "${ECHO_T}$ac_cv_type_int" >&6
4824
4825 echo "$as_me:$LINENO: checking size of int" >&5
4826 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4827 if test "${ac_cv_sizeof_int+set}" = set; then
4828   echo $ECHO_N "(cached) $ECHO_C" >&6
4829 else
4830   if test "$ac_cv_type_int" = yes; then
4831   # The cast to unsigned long works around a bug in the HP C Compiler
4832   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4833   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4834   # This bug is HP SR number 8606223364.
4835   if test "$cross_compiling" = yes; then
4836   # Depending upon the size, compute the lo and hi bounds.
4837 cat >conftest.$ac_ext <<_ACEOF
4838 /* confdefs.h.  */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h.  */
4843 $ac_includes_default
4844 int
4845 main ()
4846 {
4847 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4848 test_array [0] = 0
4849
4850   ;
4851   return 0;
4852 }
4853 _ACEOF
4854 rm -f conftest.$ac_objext
4855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4856   (eval $ac_compile) 2>conftest.er1
4857   ac_status=$?
4858   grep -v '^ *+' conftest.er1 >conftest.err
4859   rm -f conftest.er1
4860   cat conftest.err >&5
4861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862   (exit $ac_status); } &&
4863          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865   (eval $ac_try) 2>&5
4866   ac_status=$?
4867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868   (exit $ac_status); }; } &&
4869          { ac_try='test -s conftest.$ac_objext'
4870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871   (eval $ac_try) 2>&5
4872   ac_status=$?
4873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874   (exit $ac_status); }; }; then
4875   ac_lo=0 ac_mid=0
4876   while :; do
4877     cat >conftest.$ac_ext <<_ACEOF
4878 /* confdefs.h.  */
4879 _ACEOF
4880 cat confdefs.h >>conftest.$ac_ext
4881 cat >>conftest.$ac_ext <<_ACEOF
4882 /* end confdefs.h.  */
4883 $ac_includes_default
4884 int
4885 main ()
4886 {
4887 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4888 test_array [0] = 0
4889
4890   ;
4891   return 0;
4892 }
4893 _ACEOF
4894 rm -f conftest.$ac_objext
4895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4896   (eval $ac_compile) 2>conftest.er1
4897   ac_status=$?
4898   grep -v '^ *+' conftest.er1 >conftest.err
4899   rm -f conftest.er1
4900   cat conftest.err >&5
4901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902   (exit $ac_status); } &&
4903          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905   (eval $ac_try) 2>&5
4906   ac_status=$?
4907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908   (exit $ac_status); }; } &&
4909          { ac_try='test -s conftest.$ac_objext'
4910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911   (eval $ac_try) 2>&5
4912   ac_status=$?
4913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914   (exit $ac_status); }; }; then
4915   ac_hi=$ac_mid; break
4916 else
4917   echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4919
4920 ac_lo=`expr $ac_mid + 1`
4921                     if test $ac_lo -le $ac_mid; then
4922                       ac_lo= ac_hi=
4923                       break
4924                     fi
4925                     ac_mid=`expr 2 '*' $ac_mid + 1`
4926 fi
4927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4928   done
4929 else
4930   echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4932
4933 cat >conftest.$ac_ext <<_ACEOF
4934 /* confdefs.h.  */
4935 _ACEOF
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h.  */
4939 $ac_includes_default
4940 int
4941 main ()
4942 {
4943 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4944 test_array [0] = 0
4945
4946   ;
4947   return 0;
4948 }
4949 _ACEOF
4950 rm -f conftest.$ac_objext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952   (eval $ac_compile) 2>conftest.er1
4953   ac_status=$?
4954   grep -v '^ *+' conftest.er1 >conftest.err
4955   rm -f conftest.er1
4956   cat conftest.err >&5
4957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958   (exit $ac_status); } &&
4959          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961   (eval $ac_try) 2>&5
4962   ac_status=$?
4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964   (exit $ac_status); }; } &&
4965          { ac_try='test -s conftest.$ac_objext'
4966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967   (eval $ac_try) 2>&5
4968   ac_status=$?
4969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970   (exit $ac_status); }; }; then
4971   ac_hi=-1 ac_mid=-1
4972   while :; do
4973     cat >conftest.$ac_ext <<_ACEOF
4974 /* confdefs.h.  */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h.  */
4979 $ac_includes_default
4980 int
4981 main ()
4982 {
4983 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4984 test_array [0] = 0
4985
4986   ;
4987   return 0;
4988 }
4989 _ACEOF
4990 rm -f conftest.$ac_objext
4991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4992   (eval $ac_compile) 2>conftest.er1
4993   ac_status=$?
4994   grep -v '^ *+' conftest.er1 >conftest.err
4995   rm -f conftest.er1
4996   cat conftest.err >&5
4997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998   (exit $ac_status); } &&
4999          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001   (eval $ac_try) 2>&5
5002   ac_status=$?
5003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004   (exit $ac_status); }; } &&
5005          { ac_try='test -s conftest.$ac_objext'
5006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007   (eval $ac_try) 2>&5
5008   ac_status=$?
5009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010   (exit $ac_status); }; }; then
5011   ac_lo=$ac_mid; break
5012 else
5013   echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5015
5016 ac_hi=`expr '(' $ac_mid ')' - 1`
5017                        if test $ac_mid -le $ac_hi; then
5018                          ac_lo= ac_hi=
5019                          break
5020                        fi
5021                        ac_mid=`expr 2 '*' $ac_mid`
5022 fi
5023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5024   done
5025 else
5026   echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5028
5029 ac_lo= ac_hi=
5030 fi
5031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5032 fi
5033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5034 # Binary search between lo and hi bounds.
5035 while test "x$ac_lo" != "x$ac_hi"; do
5036   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5037   cat >conftest.$ac_ext <<_ACEOF
5038 /* confdefs.h.  */
5039 _ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h.  */
5043 $ac_includes_default
5044 int
5045 main ()
5046 {
5047 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5048 test_array [0] = 0
5049
5050   ;
5051   return 0;
5052 }
5053 _ACEOF
5054 rm -f conftest.$ac_objext
5055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5056   (eval $ac_compile) 2>conftest.er1
5057   ac_status=$?
5058   grep -v '^ *+' conftest.er1 >conftest.err
5059   rm -f conftest.er1
5060   cat conftest.err >&5
5061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062   (exit $ac_status); } &&
5063          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065   (eval $ac_try) 2>&5
5066   ac_status=$?
5067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068   (exit $ac_status); }; } &&
5069          { ac_try='test -s conftest.$ac_objext'
5070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071   (eval $ac_try) 2>&5
5072   ac_status=$?
5073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074   (exit $ac_status); }; }; then
5075   ac_hi=$ac_mid
5076 else
5077   echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5079
5080 ac_lo=`expr '(' $ac_mid ')' + 1`
5081 fi
5082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5083 done
5084 case $ac_lo in
5085 ?*) ac_cv_sizeof_int=$ac_lo;;
5086 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5087 See \`config.log' for more details." >&5
5088 echo "$as_me: error: cannot compute sizeof (int), 77
5089 See \`config.log' for more details." >&2;}
5090    { (exit 1); exit 1; }; } ;;
5091 esac
5092 else
5093   if test "$cross_compiling" = yes; then
5094   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5095 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5096    { (exit 1); exit 1; }; }
5097 else
5098   cat >conftest.$ac_ext <<_ACEOF
5099 /* confdefs.h.  */
5100 _ACEOF
5101 cat confdefs.h >>conftest.$ac_ext
5102 cat >>conftest.$ac_ext <<_ACEOF
5103 /* end confdefs.h.  */
5104 $ac_includes_default
5105 long longval () { return (long) (sizeof (int)); }
5106 unsigned long ulongval () { return (long) (sizeof (int)); }
5107 #include <stdio.h>
5108 #include <stdlib.h>
5109 int
5110 main ()
5111 {
5112
5113   FILE *f = fopen ("conftest.val", "w");
5114   if (! f)
5115     exit (1);
5116   if (((long) (sizeof (int))) < 0)
5117     {
5118       long i = longval ();
5119       if (i != ((long) (sizeof (int))))
5120         exit (1);
5121       fprintf (f, "%ld\n", i);
5122     }
5123   else
5124     {
5125       unsigned long i = ulongval ();
5126       if (i != ((long) (sizeof (int))))
5127         exit (1);
5128       fprintf (f, "%lu\n", i);
5129     }
5130   exit (ferror (f) || fclose (f) != 0);
5131
5132   ;
5133   return 0;
5134 }
5135 _ACEOF
5136 rm -f conftest$ac_exeext
5137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5138   (eval $ac_link) 2>&5
5139   ac_status=$?
5140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5143   (eval $ac_try) 2>&5
5144   ac_status=$?
5145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146   (exit $ac_status); }; }; then
5147   ac_cv_sizeof_int=`cat conftest.val`
5148 else
5149   echo "$as_me: program exited with status $ac_status" >&5
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5152
5153 ( exit $ac_status )
5154 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5155 See \`config.log' for more details." >&5
5156 echo "$as_me: error: cannot compute sizeof (int), 77
5157 See \`config.log' for more details." >&2;}
5158    { (exit 1); exit 1; }; }
5159 fi
5160 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5161 fi
5162 fi
5163 rm -f conftest.val
5164 else
5165   ac_cv_sizeof_int=0
5166 fi
5167 fi
5168 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5169 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5170 cat >>confdefs.h <<_ACEOF
5171 #define SIZEOF_INT $ac_cv_sizeof_int
5172 _ACEOF
5173
5174
5175 echo "$as_me:$LINENO: checking for long" >&5
5176 echo $ECHO_N "checking for long... $ECHO_C" >&6
5177 if test "${ac_cv_type_long+set}" = set; then
5178   echo $ECHO_N "(cached) $ECHO_C" >&6
5179 else
5180   cat >conftest.$ac_ext <<_ACEOF
5181 /* confdefs.h.  */
5182 _ACEOF
5183 cat confdefs.h >>conftest.$ac_ext
5184 cat >>conftest.$ac_ext <<_ACEOF
5185 /* end confdefs.h.  */
5186 $ac_includes_default
5187 int
5188 main ()
5189 {
5190 if ((long *) 0)
5191   return 0;
5192 if (sizeof (long))
5193   return 0;
5194   ;
5195   return 0;
5196 }
5197 _ACEOF
5198 rm -f conftest.$ac_objext
5199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5200   (eval $ac_compile) 2>conftest.er1
5201   ac_status=$?
5202   grep -v '^ *+' conftest.er1 >conftest.err
5203   rm -f conftest.er1
5204   cat conftest.err >&5
5205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206   (exit $ac_status); } &&
5207          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209   (eval $ac_try) 2>&5
5210   ac_status=$?
5211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212   (exit $ac_status); }; } &&
5213          { ac_try='test -s conftest.$ac_objext'
5214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5215   (eval $ac_try) 2>&5
5216   ac_status=$?
5217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218   (exit $ac_status); }; }; then
5219   ac_cv_type_long=yes
5220 else
5221   echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5223
5224 ac_cv_type_long=no
5225 fi
5226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5227 fi
5228 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5229 echo "${ECHO_T}$ac_cv_type_long" >&6
5230
5231 echo "$as_me:$LINENO: checking size of long" >&5
5232 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5233 if test "${ac_cv_sizeof_long+set}" = set; then
5234   echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236   if test "$ac_cv_type_long" = yes; then
5237   # The cast to unsigned long works around a bug in the HP C Compiler
5238   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5239   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5240   # This bug is HP SR number 8606223364.
5241   if test "$cross_compiling" = yes; then
5242   # Depending upon the size, compute the lo and hi bounds.
5243 cat >conftest.$ac_ext <<_ACEOF
5244 /* confdefs.h.  */
5245 _ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h.  */
5249 $ac_includes_default
5250 int
5251 main ()
5252 {
5253 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5254 test_array [0] = 0
5255
5256   ;
5257   return 0;
5258 }
5259 _ACEOF
5260 rm -f conftest.$ac_objext
5261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5262   (eval $ac_compile) 2>conftest.er1
5263   ac_status=$?
5264   grep -v '^ *+' conftest.er1 >conftest.err
5265   rm -f conftest.er1
5266   cat conftest.err >&5
5267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268   (exit $ac_status); } &&
5269          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271   (eval $ac_try) 2>&5
5272   ac_status=$?
5273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274   (exit $ac_status); }; } &&
5275          { ac_try='test -s conftest.$ac_objext'
5276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277   (eval $ac_try) 2>&5
5278   ac_status=$?
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); }; }; then
5281   ac_lo=0 ac_mid=0
5282   while :; do
5283     cat >conftest.$ac_ext <<_ACEOF
5284 /* confdefs.h.  */
5285 _ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h.  */
5289 $ac_includes_default
5290 int
5291 main ()
5292 {
5293 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5294 test_array [0] = 0
5295
5296   ;
5297   return 0;
5298 }
5299 _ACEOF
5300 rm -f conftest.$ac_objext
5301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5302   (eval $ac_compile) 2>conftest.er1
5303   ac_status=$?
5304   grep -v '^ *+' conftest.er1 >conftest.err
5305   rm -f conftest.er1
5306   cat conftest.err >&5
5307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308   (exit $ac_status); } &&
5309          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311   (eval $ac_try) 2>&5
5312   ac_status=$?
5313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314   (exit $ac_status); }; } &&
5315          { ac_try='test -s conftest.$ac_objext'
5316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317   (eval $ac_try) 2>&5
5318   ac_status=$?
5319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320   (exit $ac_status); }; }; then
5321   ac_hi=$ac_mid; break
5322 else
5323   echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5325
5326 ac_lo=`expr $ac_mid + 1`
5327                     if test $ac_lo -le $ac_mid; then
5328                       ac_lo= ac_hi=
5329                       break
5330                     fi
5331                     ac_mid=`expr 2 '*' $ac_mid + 1`
5332 fi
5333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5334   done
5335 else
5336   echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5338
5339 cat >conftest.$ac_ext <<_ACEOF
5340 /* confdefs.h.  */
5341 _ACEOF
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h.  */
5345 $ac_includes_default
5346 int
5347 main ()
5348 {
5349 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5350 test_array [0] = 0
5351
5352   ;
5353   return 0;
5354 }
5355 _ACEOF
5356 rm -f conftest.$ac_objext
5357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5358   (eval $ac_compile) 2>conftest.er1
5359   ac_status=$?
5360   grep -v '^ *+' conftest.er1 >conftest.err
5361   rm -f conftest.er1
5362   cat conftest.err >&5
5363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364   (exit $ac_status); } &&
5365          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367   (eval $ac_try) 2>&5
5368   ac_status=$?
5369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370   (exit $ac_status); }; } &&
5371          { ac_try='test -s conftest.$ac_objext'
5372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373   (eval $ac_try) 2>&5
5374   ac_status=$?
5375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376   (exit $ac_status); }; }; then
5377   ac_hi=-1 ac_mid=-1
5378   while :; do
5379     cat >conftest.$ac_ext <<_ACEOF
5380 /* confdefs.h.  */
5381 _ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h.  */
5385 $ac_includes_default
5386 int
5387 main ()
5388 {
5389 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5390 test_array [0] = 0
5391
5392   ;
5393   return 0;
5394 }
5395 _ACEOF
5396 rm -f conftest.$ac_objext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5398   (eval $ac_compile) 2>conftest.er1
5399   ac_status=$?
5400   grep -v '^ *+' conftest.er1 >conftest.err
5401   rm -f conftest.er1
5402   cat conftest.err >&5
5403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404   (exit $ac_status); } &&
5405          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407   (eval $ac_try) 2>&5
5408   ac_status=$?
5409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410   (exit $ac_status); }; } &&
5411          { ac_try='test -s conftest.$ac_objext'
5412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413   (eval $ac_try) 2>&5
5414   ac_status=$?
5415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416   (exit $ac_status); }; }; then
5417   ac_lo=$ac_mid; break
5418 else
5419   echo "$as_me: failed program was:" >&5
5420 sed 's/^/| /' conftest.$ac_ext >&5
5421
5422 ac_hi=`expr '(' $ac_mid ')' - 1`
5423                        if test $ac_mid -le $ac_hi; then
5424                          ac_lo= ac_hi=
5425                          break
5426                        fi
5427                        ac_mid=`expr 2 '*' $ac_mid`
5428 fi
5429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5430   done
5431 else
5432   echo "$as_me: failed program was:" >&5
5433 sed 's/^/| /' conftest.$ac_ext >&5
5434
5435 ac_lo= ac_hi=
5436 fi
5437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5438 fi
5439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5440 # Binary search between lo and hi bounds.
5441 while test "x$ac_lo" != "x$ac_hi"; do
5442   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5443   cat >conftest.$ac_ext <<_ACEOF
5444 /* confdefs.h.  */
5445 _ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h.  */
5449 $ac_includes_default
5450 int
5451 main ()
5452 {
5453 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5454 test_array [0] = 0
5455
5456   ;
5457   return 0;
5458 }
5459 _ACEOF
5460 rm -f conftest.$ac_objext
5461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5462   (eval $ac_compile) 2>conftest.er1
5463   ac_status=$?
5464   grep -v '^ *+' conftest.er1 >conftest.err
5465   rm -f conftest.er1
5466   cat conftest.err >&5
5467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468   (exit $ac_status); } &&
5469          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471   (eval $ac_try) 2>&5
5472   ac_status=$?
5473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474   (exit $ac_status); }; } &&
5475          { ac_try='test -s conftest.$ac_objext'
5476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5477   (eval $ac_try) 2>&5
5478   ac_status=$?
5479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480   (exit $ac_status); }; }; then
5481   ac_hi=$ac_mid
5482 else
5483   echo "$as_me: failed program was:" >&5
5484 sed 's/^/| /' conftest.$ac_ext >&5
5485
5486 ac_lo=`expr '(' $ac_mid ')' + 1`
5487 fi
5488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5489 done
5490 case $ac_lo in
5491 ?*) ac_cv_sizeof_long=$ac_lo;;
5492 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5493 See \`config.log' for more details." >&5
5494 echo "$as_me: error: cannot compute sizeof (long), 77
5495 See \`config.log' for more details." >&2;}
5496    { (exit 1); exit 1; }; } ;;
5497 esac
5498 else
5499   if test "$cross_compiling" = yes; then
5500   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5501 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5502    { (exit 1); exit 1; }; }
5503 else
5504   cat >conftest.$ac_ext <<_ACEOF
5505 /* confdefs.h.  */
5506 _ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h.  */
5510 $ac_includes_default
5511 long longval () { return (long) (sizeof (long)); }
5512 unsigned long ulongval () { return (long) (sizeof (long)); }
5513 #include <stdio.h>
5514 #include <stdlib.h>
5515 int
5516 main ()
5517 {
5518
5519   FILE *f = fopen ("conftest.val", "w");
5520   if (! f)
5521     exit (1);
5522   if (((long) (sizeof (long))) < 0)
5523     {
5524       long i = longval ();
5525       if (i != ((long) (sizeof (long))))
5526         exit (1);
5527       fprintf (f, "%ld\n", i);
5528     }
5529   else
5530     {
5531       unsigned long i = ulongval ();
5532       if (i != ((long) (sizeof (long))))
5533         exit (1);
5534       fprintf (f, "%lu\n", i);
5535     }
5536   exit (ferror (f) || fclose (f) != 0);
5537
5538   ;
5539   return 0;
5540 }
5541 _ACEOF
5542 rm -f conftest$ac_exeext
5543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5544   (eval $ac_link) 2>&5
5545   ac_status=$?
5546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549   (eval $ac_try) 2>&5
5550   ac_status=$?
5551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552   (exit $ac_status); }; }; then
5553   ac_cv_sizeof_long=`cat conftest.val`
5554 else
5555   echo "$as_me: program exited with status $ac_status" >&5
5556 echo "$as_me: failed program was:" >&5
5557 sed 's/^/| /' conftest.$ac_ext >&5
5558
5559 ( exit $ac_status )
5560 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5561 See \`config.log' for more details." >&5
5562 echo "$as_me: error: cannot compute sizeof (long), 77
5563 See \`config.log' for more details." >&2;}
5564    { (exit 1); exit 1; }; }
5565 fi
5566 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5567 fi
5568 fi
5569 rm -f conftest.val
5570 else
5571   ac_cv_sizeof_long=0
5572 fi
5573 fi
5574 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5575 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5576 cat >>confdefs.h <<_ACEOF
5577 #define SIZEOF_LONG $ac_cv_sizeof_long
5578 _ACEOF
5579
5580
5581 echo "$as_me:$LINENO: checking for void *" >&5
5582 echo $ECHO_N "checking for void *... $ECHO_C" >&6
5583 if test "${ac_cv_type_void_p+set}" = set; then
5584   echo $ECHO_N "(cached) $ECHO_C" >&6
5585 else
5586   cat >conftest.$ac_ext <<_ACEOF
5587 /* confdefs.h.  */
5588 _ACEOF
5589 cat confdefs.h >>conftest.$ac_ext
5590 cat >>conftest.$ac_ext <<_ACEOF
5591 /* end confdefs.h.  */
5592 $ac_includes_default
5593 int
5594 main ()
5595 {
5596 if ((void * *) 0)
5597   return 0;
5598 if (sizeof (void *))
5599   return 0;
5600   ;
5601   return 0;
5602 }
5603 _ACEOF
5604 rm -f conftest.$ac_objext
5605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5606   (eval $ac_compile) 2>conftest.er1
5607   ac_status=$?
5608   grep -v '^ *+' conftest.er1 >conftest.err
5609   rm -f conftest.er1
5610   cat conftest.err >&5
5611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612   (exit $ac_status); } &&
5613          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615   (eval $ac_try) 2>&5
5616   ac_status=$?
5617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618   (exit $ac_status); }; } &&
5619          { ac_try='test -s conftest.$ac_objext'
5620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621   (eval $ac_try) 2>&5
5622   ac_status=$?
5623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624   (exit $ac_status); }; }; then
5625   ac_cv_type_void_p=yes
5626 else
5627   echo "$as_me: failed program was:" >&5
5628 sed 's/^/| /' conftest.$ac_ext >&5
5629
5630 ac_cv_type_void_p=no
5631 fi
5632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5633 fi
5634 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
5635 echo "${ECHO_T}$ac_cv_type_void_p" >&6
5636
5637 echo "$as_me:$LINENO: checking size of void *" >&5
5638 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
5639 if test "${ac_cv_sizeof_void_p+set}" = set; then
5640   echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642   if test "$ac_cv_type_void_p" = yes; then
5643   # The cast to unsigned long works around a bug in the HP C Compiler
5644   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5645   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5646   # This bug is HP SR number 8606223364.
5647   if test "$cross_compiling" = yes; then
5648   # Depending upon the size, compute the lo and hi bounds.
5649 cat >conftest.$ac_ext <<_ACEOF
5650 /* confdefs.h.  */
5651 _ACEOF
5652 cat confdefs.h >>conftest.$ac_ext
5653 cat >>conftest.$ac_ext <<_ACEOF
5654 /* end confdefs.h.  */
5655 $ac_includes_default
5656 int
5657 main ()
5658 {
5659 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
5660 test_array [0] = 0
5661
5662   ;
5663   return 0;
5664 }
5665 _ACEOF
5666 rm -f conftest.$ac_objext
5667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5668   (eval $ac_compile) 2>conftest.er1
5669   ac_status=$?
5670   grep -v '^ *+' conftest.er1 >conftest.err
5671   rm -f conftest.er1
5672   cat conftest.err >&5
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); } &&
5675          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677   (eval $ac_try) 2>&5
5678   ac_status=$?
5679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680   (exit $ac_status); }; } &&
5681          { ac_try='test -s conftest.$ac_objext'
5682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683   (eval $ac_try) 2>&5
5684   ac_status=$?
5685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686   (exit $ac_status); }; }; then
5687   ac_lo=0 ac_mid=0
5688   while :; do
5689     cat >conftest.$ac_ext <<_ACEOF
5690 /* confdefs.h.  */
5691 _ACEOF
5692 cat confdefs.h >>conftest.$ac_ext
5693 cat >>conftest.$ac_ext <<_ACEOF
5694 /* end confdefs.h.  */
5695 $ac_includes_default
5696 int
5697 main ()
5698 {
5699 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5700 test_array [0] = 0
5701
5702   ;
5703   return 0;
5704 }
5705 _ACEOF
5706 rm -f conftest.$ac_objext
5707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5708   (eval $ac_compile) 2>conftest.er1
5709   ac_status=$?
5710   grep -v '^ *+' conftest.er1 >conftest.err
5711   rm -f conftest.er1
5712   cat conftest.err >&5
5713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714   (exit $ac_status); } &&
5715          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717   (eval $ac_try) 2>&5
5718   ac_status=$?
5719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720   (exit $ac_status); }; } &&
5721          { ac_try='test -s conftest.$ac_objext'
5722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723   (eval $ac_try) 2>&5
5724   ac_status=$?
5725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726   (exit $ac_status); }; }; then
5727   ac_hi=$ac_mid; break
5728 else
5729   echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5731
5732 ac_lo=`expr $ac_mid + 1`
5733                     if test $ac_lo -le $ac_mid; then
5734                       ac_lo= ac_hi=
5735                       break
5736                     fi
5737                     ac_mid=`expr 2 '*' $ac_mid + 1`
5738 fi
5739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5740   done
5741 else
5742   echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5744
5745 cat >conftest.$ac_ext <<_ACEOF
5746 /* confdefs.h.  */
5747 _ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h.  */
5751 $ac_includes_default
5752 int
5753 main ()
5754 {
5755 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
5756 test_array [0] = 0
5757
5758   ;
5759   return 0;
5760 }
5761 _ACEOF
5762 rm -f conftest.$ac_objext
5763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5764   (eval $ac_compile) 2>conftest.er1
5765   ac_status=$?
5766   grep -v '^ *+' conftest.er1 >conftest.err
5767   rm -f conftest.er1
5768   cat conftest.err >&5
5769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770   (exit $ac_status); } &&
5771          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773   (eval $ac_try) 2>&5
5774   ac_status=$?
5775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776   (exit $ac_status); }; } &&
5777          { ac_try='test -s conftest.$ac_objext'
5778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779   (eval $ac_try) 2>&5
5780   ac_status=$?
5781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782   (exit $ac_status); }; }; then
5783   ac_hi=-1 ac_mid=-1
5784   while :; do
5785     cat >conftest.$ac_ext <<_ACEOF
5786 /* confdefs.h.  */
5787 _ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h.  */
5791 $ac_includes_default
5792 int
5793 main ()
5794 {
5795 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
5796 test_array [0] = 0
5797
5798   ;
5799   return 0;
5800 }
5801 _ACEOF
5802 rm -f conftest.$ac_objext
5803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5804   (eval $ac_compile) 2>conftest.er1
5805   ac_status=$?
5806   grep -v '^ *+' conftest.er1 >conftest.err
5807   rm -f conftest.er1
5808   cat conftest.err >&5
5809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810   (exit $ac_status); } &&
5811          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813   (eval $ac_try) 2>&5
5814   ac_status=$?
5815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816   (exit $ac_status); }; } &&
5817          { ac_try='test -s conftest.$ac_objext'
5818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819   (eval $ac_try) 2>&5
5820   ac_status=$?
5821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822   (exit $ac_status); }; }; then
5823   ac_lo=$ac_mid; break
5824 else
5825   echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5827
5828 ac_hi=`expr '(' $ac_mid ')' - 1`
5829                        if test $ac_mid -le $ac_hi; then
5830                          ac_lo= ac_hi=
5831                          break
5832                        fi
5833                        ac_mid=`expr 2 '*' $ac_mid`
5834 fi
5835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5836   done
5837 else
5838   echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5840
5841 ac_lo= ac_hi=
5842 fi
5843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5844 fi
5845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5846 # Binary search between lo and hi bounds.
5847 while test "x$ac_lo" != "x$ac_hi"; do
5848   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5849   cat >conftest.$ac_ext <<_ACEOF
5850 /* confdefs.h.  */
5851 _ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h.  */
5855 $ac_includes_default
5856 int
5857 main ()
5858 {
5859 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5860 test_array [0] = 0
5861
5862   ;
5863   return 0;
5864 }
5865 _ACEOF
5866 rm -f conftest.$ac_objext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5868   (eval $ac_compile) 2>conftest.er1
5869   ac_status=$?
5870   grep -v '^ *+' conftest.er1 >conftest.err
5871   rm -f conftest.er1
5872   cat conftest.err >&5
5873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874   (exit $ac_status); } &&
5875          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877   (eval $ac_try) 2>&5
5878   ac_status=$?
5879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880   (exit $ac_status); }; } &&
5881          { ac_try='test -s conftest.$ac_objext'
5882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883   (eval $ac_try) 2>&5
5884   ac_status=$?
5885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886   (exit $ac_status); }; }; then
5887   ac_hi=$ac_mid
5888 else
5889   echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5891
5892 ac_lo=`expr '(' $ac_mid ')' + 1`
5893 fi
5894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5895 done
5896 case $ac_lo in
5897 ?*) ac_cv_sizeof_void_p=$ac_lo;;
5898 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5899 See \`config.log' for more details." >&5
5900 echo "$as_me: error: cannot compute sizeof (void *), 77
5901 See \`config.log' for more details." >&2;}
5902    { (exit 1); exit 1; }; } ;;
5903 esac
5904 else
5905   if test "$cross_compiling" = yes; then
5906   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5907 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5908    { (exit 1); exit 1; }; }
5909 else
5910   cat >conftest.$ac_ext <<_ACEOF
5911 /* confdefs.h.  */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h.  */
5916 $ac_includes_default
5917 long longval () { return (long) (sizeof (void *)); }
5918 unsigned long ulongval () { return (long) (sizeof (void *)); }
5919 #include <stdio.h>
5920 #include <stdlib.h>
5921 int
5922 main ()
5923 {
5924
5925   FILE *f = fopen ("conftest.val", "w");
5926   if (! f)
5927     exit (1);
5928   if (((long) (sizeof (void *))) < 0)
5929     {
5930       long i = longval ();
5931       if (i != ((long) (sizeof (void *))))
5932         exit (1);
5933       fprintf (f, "%ld\n", i);
5934     }
5935   else
5936     {
5937       unsigned long i = ulongval ();
5938       if (i != ((long) (sizeof (void *))))
5939         exit (1);
5940       fprintf (f, "%lu\n", i);
5941     }
5942   exit (ferror (f) || fclose (f) != 0);
5943
5944   ;
5945   return 0;
5946 }
5947 _ACEOF
5948 rm -f conftest$ac_exeext
5949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5950   (eval $ac_link) 2>&5
5951   ac_status=$?
5952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955   (eval $ac_try) 2>&5
5956   ac_status=$?
5957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958   (exit $ac_status); }; }; then
5959   ac_cv_sizeof_void_p=`cat conftest.val`
5960 else
5961   echo "$as_me: program exited with status $ac_status" >&5
5962 echo "$as_me: failed program was:" >&5
5963 sed 's/^/| /' conftest.$ac_ext >&5
5964
5965 ( exit $ac_status )
5966 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5967 See \`config.log' for more details." >&5
5968 echo "$as_me: error: cannot compute sizeof (void *), 77
5969 See \`config.log' for more details." >&2;}
5970    { (exit 1); exit 1; }; }
5971 fi
5972 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5973 fi
5974 fi
5975 rm -f conftest.val
5976 else
5977   ac_cv_sizeof_void_p=0
5978 fi
5979 fi
5980 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
5981 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
5982 cat >>confdefs.h <<_ACEOF
5983 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5984 _ACEOF
5985
5986
5987 if test "$ac_cv_sizeof_int" = 2 ; then
5988   echo "$as_me:$LINENO: checking for int16_t" >&5
5989 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
5990 if test "${ac_cv_type_int16_t+set}" = set; then
5991   echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993   cat >conftest.$ac_ext <<_ACEOF
5994 /* confdefs.h.  */
5995 _ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h.  */
5999 $ac_includes_default
6000 int
6001 main ()
6002 {
6003 if ((int16_t *) 0)
6004   return 0;
6005 if (sizeof (int16_t))
6006   return 0;
6007   ;
6008   return 0;
6009 }
6010 _ACEOF
6011 rm -f conftest.$ac_objext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6013   (eval $ac_compile) 2>conftest.er1
6014   ac_status=$?
6015   grep -v '^ *+' conftest.er1 >conftest.err
6016   rm -f conftest.er1
6017   cat conftest.err >&5
6018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); } &&
6020          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022   (eval $ac_try) 2>&5
6023   ac_status=$?
6024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025   (exit $ac_status); }; } &&
6026          { ac_try='test -s conftest.$ac_objext'
6027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028   (eval $ac_try) 2>&5
6029   ac_status=$?
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); }; }; then
6032   ac_cv_type_int16_t=yes
6033 else
6034   echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6036
6037 ac_cv_type_int16_t=no
6038 fi
6039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6040 fi
6041 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6042 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
6043 if test $ac_cv_type_int16_t = yes; then
6044   :
6045 else
6046
6047 cat >>confdefs.h <<_ACEOF
6048 #define int16_t int
6049 _ACEOF
6050
6051 fi
6052
6053   echo "$as_me:$LINENO: checking for u_int16_t" >&5
6054 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
6055 if test "${ac_cv_type_u_int16_t+set}" = set; then
6056   echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058   cat >conftest.$ac_ext <<_ACEOF
6059 /* confdefs.h.  */
6060 _ACEOF
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h.  */
6064 $ac_includes_default
6065 int
6066 main ()
6067 {
6068 if ((u_int16_t *) 0)
6069   return 0;
6070 if (sizeof (u_int16_t))
6071   return 0;
6072   ;
6073   return 0;
6074 }
6075 _ACEOF
6076 rm -f conftest.$ac_objext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078   (eval $ac_compile) 2>conftest.er1
6079   ac_status=$?
6080   grep -v '^ *+' conftest.er1 >conftest.err
6081   rm -f conftest.er1
6082   cat conftest.err >&5
6083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084   (exit $ac_status); } &&
6085          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087   (eval $ac_try) 2>&5
6088   ac_status=$?
6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090   (exit $ac_status); }; } &&
6091          { ac_try='test -s conftest.$ac_objext'
6092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093   (eval $ac_try) 2>&5
6094   ac_status=$?
6095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096   (exit $ac_status); }; }; then
6097   ac_cv_type_u_int16_t=yes
6098 else
6099   echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6101
6102 ac_cv_type_u_int16_t=no
6103 fi
6104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6105 fi
6106 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
6107 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
6108 if test $ac_cv_type_u_int16_t = yes; then
6109   :
6110 else
6111
6112 cat >>confdefs.h <<_ACEOF
6113 #define u_int16_t unsigned int
6114 _ACEOF
6115
6116 fi
6117
6118 elif test "$ac_cv_sizeof_short" = 2 ; then
6119   echo "$as_me:$LINENO: checking for int16_t" >&5
6120 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
6121 if test "${ac_cv_type_int16_t+set}" = set; then
6122   echo $ECHO_N "(cached) $ECHO_C" >&6
6123 else
6124   cat >conftest.$ac_ext <<_ACEOF
6125 /* confdefs.h.  */
6126 _ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h.  */
6130 $ac_includes_default
6131 int
6132 main ()
6133 {
6134 if ((int16_t *) 0)
6135   return 0;
6136 if (sizeof (int16_t))
6137   return 0;
6138   ;
6139   return 0;
6140 }
6141 _ACEOF
6142 rm -f conftest.$ac_objext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6144   (eval $ac_compile) 2>conftest.er1
6145   ac_status=$?
6146   grep -v '^ *+' conftest.er1 >conftest.err
6147   rm -f conftest.er1
6148   cat conftest.err >&5
6149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150   (exit $ac_status); } &&
6151          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
6157          { ac_try='test -s conftest.$ac_objext'
6158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159   (eval $ac_try) 2>&5
6160   ac_status=$?
6161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162   (exit $ac_status); }; }; then
6163   ac_cv_type_int16_t=yes
6164 else
6165   echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6167
6168 ac_cv_type_int16_t=no
6169 fi
6170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6171 fi
6172 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6173 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
6174 if test $ac_cv_type_int16_t = yes; then
6175   :
6176 else
6177
6178 cat >>confdefs.h <<_ACEOF
6179 #define int16_t short
6180 _ACEOF
6181
6182 fi
6183
6184   echo "$as_me:$LINENO: checking for u_int16_t" >&5
6185 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
6186 if test "${ac_cv_type_u_int16_t+set}" = set; then
6187   echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189   cat >conftest.$ac_ext <<_ACEOF
6190 /* confdefs.h.  */
6191 _ACEOF
6192 cat confdefs.h >>conftest.$ac_ext
6193 cat >>conftest.$ac_ext <<_ACEOF
6194 /* end confdefs.h.  */
6195 $ac_includes_default
6196 int
6197 main ()
6198 {
6199 if ((u_int16_t *) 0)
6200   return 0;
6201 if (sizeof (u_int16_t))
6202   return 0;
6203   ;
6204   return 0;
6205 }
6206 _ACEOF
6207 rm -f conftest.$ac_objext
6208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6209   (eval $ac_compile) 2>conftest.er1
6210   ac_status=$?
6211   grep -v '^ *+' conftest.er1 >conftest.err
6212   rm -f conftest.er1
6213   cat conftest.err >&5
6214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215   (exit $ac_status); } &&
6216          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218   (eval $ac_try) 2>&5
6219   ac_status=$?
6220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221   (exit $ac_status); }; } &&
6222          { ac_try='test -s conftest.$ac_objext'
6223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224   (eval $ac_try) 2>&5
6225   ac_status=$?
6226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227   (exit $ac_status); }; }; then
6228   ac_cv_type_u_int16_t=yes
6229 else
6230   echo "$as_me: failed program was:" >&5
6231 sed 's/^/| /' conftest.$ac_ext >&5
6232
6233 ac_cv_type_u_int16_t=no
6234 fi
6235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6236 fi
6237 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
6238 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
6239 if test $ac_cv_type_u_int16_t = yes; then
6240   :
6241 else
6242
6243 cat >>confdefs.h <<_ACEOF
6244 #define u_int16_t unsigned short
6245 _ACEOF
6246
6247 fi
6248
6249 else
6250   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
6251 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
6252    { (exit 1); exit 1; }; }
6253 fi
6254 if test "$ac_cv_sizeof_int" = 4 ; then
6255   echo "$as_me:$LINENO: checking for int32_t" >&5
6256 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6257 if test "${ac_cv_type_int32_t+set}" = set; then
6258   echo $ECHO_N "(cached) $ECHO_C" >&6
6259 else
6260   cat >conftest.$ac_ext <<_ACEOF
6261 /* confdefs.h.  */
6262 _ACEOF
6263 cat confdefs.h >>conftest.$ac_ext
6264 cat >>conftest.$ac_ext <<_ACEOF
6265 /* end confdefs.h.  */
6266 $ac_includes_default
6267 int
6268 main ()
6269 {
6270 if ((int32_t *) 0)
6271   return 0;
6272 if (sizeof (int32_t))
6273   return 0;
6274   ;
6275   return 0;
6276 }
6277 _ACEOF
6278 rm -f conftest.$ac_objext
6279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6280   (eval $ac_compile) 2>conftest.er1
6281   ac_status=$?
6282   grep -v '^ *+' conftest.er1 >conftest.err
6283   rm -f conftest.er1
6284   cat conftest.err >&5
6285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); } &&
6287          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289   (eval $ac_try) 2>&5
6290   ac_status=$?
6291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292   (exit $ac_status); }; } &&
6293          { ac_try='test -s conftest.$ac_objext'
6294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295   (eval $ac_try) 2>&5
6296   ac_status=$?
6297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298   (exit $ac_status); }; }; then
6299   ac_cv_type_int32_t=yes
6300 else
6301   echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6303
6304 ac_cv_type_int32_t=no
6305 fi
6306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6307 fi
6308 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6309 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6310 if test $ac_cv_type_int32_t = yes; then
6311   :
6312 else
6313
6314 cat >>confdefs.h <<_ACEOF
6315 #define int32_t int
6316 _ACEOF
6317
6318 fi
6319
6320   echo "$as_me:$LINENO: checking for u_int32_t" >&5
6321 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6322 if test "${ac_cv_type_u_int32_t+set}" = set; then
6323   echo $ECHO_N "(cached) $ECHO_C" >&6
6324 else
6325   cat >conftest.$ac_ext <<_ACEOF
6326 /* confdefs.h.  */
6327 _ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h.  */
6331 $ac_includes_default
6332 int
6333 main ()
6334 {
6335 if ((u_int32_t *) 0)
6336   return 0;
6337 if (sizeof (u_int32_t))
6338   return 0;
6339   ;
6340   return 0;
6341 }
6342 _ACEOF
6343 rm -f conftest.$ac_objext
6344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6345   (eval $ac_compile) 2>conftest.er1
6346   ac_status=$?
6347   grep -v '^ *+' conftest.er1 >conftest.err
6348   rm -f conftest.er1
6349   cat conftest.err >&5
6350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351   (exit $ac_status); } &&
6352          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354   (eval $ac_try) 2>&5
6355   ac_status=$?
6356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357   (exit $ac_status); }; } &&
6358          { ac_try='test -s conftest.$ac_objext'
6359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360   (eval $ac_try) 2>&5
6361   ac_status=$?
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); }; }; then
6364   ac_cv_type_u_int32_t=yes
6365 else
6366   echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6368
6369 ac_cv_type_u_int32_t=no
6370 fi
6371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6372 fi
6373 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6374 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6375 if test $ac_cv_type_u_int32_t = yes; then
6376   :
6377 else
6378
6379 cat >>confdefs.h <<_ACEOF
6380 #define u_int32_t unsigned int
6381 _ACEOF
6382
6383 fi
6384
6385 elif test "$ac_cv_sizeof_short" = 4 ; then
6386   echo "$as_me:$LINENO: checking for int32_t" >&5
6387 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6388 if test "${ac_cv_type_int32_t+set}" = set; then
6389   echo $ECHO_N "(cached) $ECHO_C" >&6
6390 else
6391   cat >conftest.$ac_ext <<_ACEOF
6392 /* confdefs.h.  */
6393 _ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h.  */
6397 $ac_includes_default
6398 int
6399 main ()
6400 {
6401 if ((int32_t *) 0)
6402   return 0;
6403 if (sizeof (int32_t))
6404   return 0;
6405   ;
6406   return 0;
6407 }
6408 _ACEOF
6409 rm -f conftest.$ac_objext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6411   (eval $ac_compile) 2>conftest.er1
6412   ac_status=$?
6413   grep -v '^ *+' conftest.er1 >conftest.err
6414   rm -f conftest.er1
6415   cat conftest.err >&5
6416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417   (exit $ac_status); } &&
6418          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420   (eval $ac_try) 2>&5
6421   ac_status=$?
6422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423   (exit $ac_status); }; } &&
6424          { ac_try='test -s conftest.$ac_objext'
6425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426   (eval $ac_try) 2>&5
6427   ac_status=$?
6428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429   (exit $ac_status); }; }; then
6430   ac_cv_type_int32_t=yes
6431 else
6432   echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6434
6435 ac_cv_type_int32_t=no
6436 fi
6437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6438 fi
6439 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6440 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6441 if test $ac_cv_type_int32_t = yes; then
6442   :
6443 else
6444
6445 cat >>confdefs.h <<_ACEOF
6446 #define int32_t short
6447 _ACEOF
6448
6449 fi
6450
6451   echo "$as_me:$LINENO: checking for u_int32_t" >&5
6452 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6453 if test "${ac_cv_type_u_int32_t+set}" = set; then
6454   echo $ECHO_N "(cached) $ECHO_C" >&6
6455 else
6456   cat >conftest.$ac_ext <<_ACEOF
6457 /* confdefs.h.  */
6458 _ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h.  */
6462 $ac_includes_default
6463 int
6464 main ()
6465 {
6466 if ((u_int32_t *) 0)
6467   return 0;
6468 if (sizeof (u_int32_t))
6469   return 0;
6470   ;
6471   return 0;
6472 }
6473 _ACEOF
6474 rm -f conftest.$ac_objext
6475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6476   (eval $ac_compile) 2>conftest.er1
6477   ac_status=$?
6478   grep -v '^ *+' conftest.er1 >conftest.err
6479   rm -f conftest.er1
6480   cat conftest.err >&5
6481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482   (exit $ac_status); } &&
6483          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485   (eval $ac_try) 2>&5
6486   ac_status=$?
6487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488   (exit $ac_status); }; } &&
6489          { ac_try='test -s conftest.$ac_objext'
6490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491   (eval $ac_try) 2>&5
6492   ac_status=$?
6493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494   (exit $ac_status); }; }; then
6495   ac_cv_type_u_int32_t=yes
6496 else
6497   echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6499
6500 ac_cv_type_u_int32_t=no
6501 fi
6502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6503 fi
6504 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6505 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6506 if test $ac_cv_type_u_int32_t = yes; then
6507   :
6508 else
6509
6510 cat >>confdefs.h <<_ACEOF
6511 #define u_int32_t unsigned short
6512 _ACEOF
6513
6514 fi
6515
6516 elif test "$ac_cv_sizeof_long" = 4 ; then
6517   echo "$as_me:$LINENO: checking for int32_t" >&5
6518 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6519 if test "${ac_cv_type_int32_t+set}" = set; then
6520   echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522   cat >conftest.$ac_ext <<_ACEOF
6523 /* confdefs.h.  */
6524 _ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h.  */
6528 $ac_includes_default
6529 int
6530 main ()
6531 {
6532 if ((int32_t *) 0)
6533   return 0;
6534 if (sizeof (int32_t))
6535   return 0;
6536   ;
6537   return 0;
6538 }
6539 _ACEOF
6540 rm -f conftest.$ac_objext
6541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6542   (eval $ac_compile) 2>conftest.er1
6543   ac_status=$?
6544   grep -v '^ *+' conftest.er1 >conftest.err
6545   rm -f conftest.er1
6546   cat conftest.err >&5
6547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548   (exit $ac_status); } &&
6549          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6551   (eval $ac_try) 2>&5
6552   ac_status=$?
6553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554   (exit $ac_status); }; } &&
6555          { ac_try='test -s conftest.$ac_objext'
6556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557   (eval $ac_try) 2>&5
6558   ac_status=$?
6559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560   (exit $ac_status); }; }; then
6561   ac_cv_type_int32_t=yes
6562 else
6563   echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6565
6566 ac_cv_type_int32_t=no
6567 fi
6568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6569 fi
6570 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6571 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6572 if test $ac_cv_type_int32_t = yes; then
6573   :
6574 else
6575
6576 cat >>confdefs.h <<_ACEOF
6577 #define int32_t long
6578 _ACEOF
6579
6580 fi
6581
6582   echo "$as_me:$LINENO: checking for u_int32_t" >&5
6583 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6584 if test "${ac_cv_type_u_int32_t+set}" = set; then
6585   echo $ECHO_N "(cached) $ECHO_C" >&6
6586 else
6587   cat >conftest.$ac_ext <<_ACEOF
6588 /* confdefs.h.  */
6589 _ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h.  */
6593 $ac_includes_default
6594 int
6595 main ()
6596 {
6597 if ((u_int32_t *) 0)
6598   return 0;
6599 if (sizeof (u_int32_t))
6600   return 0;
6601   ;
6602   return 0;
6603 }
6604 _ACEOF
6605 rm -f conftest.$ac_objext
6606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6607   (eval $ac_compile) 2>conftest.er1
6608   ac_status=$?
6609   grep -v '^ *+' conftest.er1 >conftest.err
6610   rm -f conftest.er1
6611   cat conftest.err >&5
6612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613   (exit $ac_status); } &&
6614          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616   (eval $ac_try) 2>&5
6617   ac_status=$?
6618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619   (exit $ac_status); }; } &&
6620          { ac_try='test -s conftest.$ac_objext'
6621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622   (eval $ac_try) 2>&5
6623   ac_status=$?
6624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625   (exit $ac_status); }; }; then
6626   ac_cv_type_u_int32_t=yes
6627 else
6628   echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6630
6631 ac_cv_type_u_int32_t=no
6632 fi
6633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6634 fi
6635 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6636 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6637 if test $ac_cv_type_u_int32_t = yes; then
6638   :
6639 else
6640
6641 cat >>confdefs.h <<_ACEOF
6642 #define u_int32_t unsigned long
6643 _ACEOF
6644
6645 fi
6646
6647 else
6648   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
6649 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
6650    { (exit 1); exit 1; }; }
6651 fi
6652 echo "$as_me:$LINENO: checking for socklen_t" >&5
6653 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
6654 if test "${ac_cv_type_socklen_t+set}" = set; then
6655   echo $ECHO_N "(cached) $ECHO_C" >&6
6656 else
6657   cat >conftest.$ac_ext <<_ACEOF
6658 /* confdefs.h.  */
6659 _ACEOF
6660 cat confdefs.h >>conftest.$ac_ext
6661 cat >>conftest.$ac_ext <<_ACEOF
6662 /* end confdefs.h.  */
6663 $ac_includes_default
6664 int
6665 main ()
6666 {
6667 if ((socklen_t *) 0)
6668   return 0;
6669 if (sizeof (socklen_t))
6670   return 0;
6671   ;
6672   return 0;
6673 }
6674 _ACEOF
6675 rm -f conftest.$ac_objext
6676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6677   (eval $ac_compile) 2>conftest.er1
6678   ac_status=$?
6679   grep -v '^ *+' conftest.er1 >conftest.err
6680   rm -f conftest.er1
6681   cat conftest.err >&5
6682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683   (exit $ac_status); } &&
6684          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686   (eval $ac_try) 2>&5
6687   ac_status=$?
6688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689   (exit $ac_status); }; } &&
6690          { ac_try='test -s conftest.$ac_objext'
6691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692   (eval $ac_try) 2>&5
6693   ac_status=$?
6694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695   (exit $ac_status); }; }; then
6696   ac_cv_type_socklen_t=yes
6697 else
6698   echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6700
6701 ac_cv_type_socklen_t=no
6702 fi
6703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6704 fi
6705 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
6706 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
6707 if test $ac_cv_type_socklen_t = yes; then
6708   :
6709 else
6710
6711 cat >>confdefs.h <<_ACEOF
6712 #define socklen_t unsigned int
6713 _ACEOF
6714
6715 fi
6716
6717 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
6718 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
6719 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
6720   echo $ECHO_N "(cached) $ECHO_C" >&6
6721 else
6722   cat >conftest.$ac_ext <<_ACEOF
6723 /* confdefs.h.  */
6724 _ACEOF
6725 cat confdefs.h >>conftest.$ac_ext
6726 cat >>conftest.$ac_ext <<_ACEOF
6727 /* end confdefs.h.  */
6728 #include <sys/types.h>
6729 #include <netinet/in.h>
6730
6731 int
6732 main ()
6733 {
6734 if ((struct sockaddr_in6 *) 0)
6735   return 0;
6736 if (sizeof (struct sockaddr_in6))
6737   return 0;
6738   ;
6739   return 0;
6740 }
6741 _ACEOF
6742 rm -f conftest.$ac_objext
6743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6744   (eval $ac_compile) 2>conftest.er1
6745   ac_status=$?
6746   grep -v '^ *+' conftest.er1 >conftest.err
6747   rm -f conftest.er1
6748   cat conftest.err >&5
6749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750   (exit $ac_status); } &&
6751          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753   (eval $ac_try) 2>&5
6754   ac_status=$?
6755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756   (exit $ac_status); }; } &&
6757          { ac_try='test -s conftest.$ac_objext'
6758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759   (eval $ac_try) 2>&5
6760   ac_status=$?
6761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762   (exit $ac_status); }; }; then
6763   ac_cv_type_struct_sockaddr_in6=yes
6764 else
6765   echo "$as_me: failed program was:" >&5
6766 sed 's/^/| /' conftest.$ac_ext >&5
6767
6768 ac_cv_type_struct_sockaddr_in6=no
6769 fi
6770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6771 fi
6772 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
6773 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
6774 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
6775   unet_have_sockaddr_in6="yes"
6776 else
6777   unet_have_sockaddr_in6="no"
6778 fi
6779
6780
6781
6782
6783
6784
6785 for ac_func in kqueue setrlimit getrusage times
6786 do
6787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6788 echo "$as_me:$LINENO: checking for $ac_func" >&5
6789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6790 if eval "test \"\${$as_ac_var+set}\" = set"; then
6791   echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793   cat >conftest.$ac_ext <<_ACEOF
6794 /* confdefs.h.  */
6795 _ACEOF
6796 cat confdefs.h >>conftest.$ac_ext
6797 cat >>conftest.$ac_ext <<_ACEOF
6798 /* end confdefs.h.  */
6799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6800    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6801 #define $ac_func innocuous_$ac_func
6802
6803 /* System header to define __stub macros and hopefully few prototypes,
6804     which can conflict with char $ac_func (); below.
6805     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6806     <limits.h> exists even on freestanding compilers.  */
6807
6808 #ifdef __STDC__
6809 # include <limits.h>
6810 #else
6811 # include <assert.h>
6812 #endif
6813
6814 #undef $ac_func
6815
6816 /* Override any gcc2 internal prototype to avoid an error.  */
6817 #ifdef __cplusplus
6818 extern "C"
6819 {
6820 #endif
6821 /* We use char because int might match the return type of a gcc2
6822    builtin and then its argument prototype would still apply.  */
6823 char $ac_func ();
6824 /* The GNU C library defines this for functions which it implements
6825     to always fail with ENOSYS.  Some functions are actually named
6826     something starting with __ and the normal name is an alias.  */
6827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6828 choke me
6829 #else
6830 char (*f) () = $ac_func;
6831 #endif
6832 #ifdef __cplusplus
6833 }
6834 #endif
6835
6836 int
6837 main ()
6838 {
6839 return f != $ac_func;
6840   ;
6841   return 0;
6842 }
6843 _ACEOF
6844 rm -f conftest.$ac_objext conftest$ac_exeext
6845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6846   (eval $ac_link) 2>conftest.er1
6847   ac_status=$?
6848   grep -v '^ *+' conftest.er1 >conftest.err
6849   rm -f conftest.er1
6850   cat conftest.err >&5
6851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852   (exit $ac_status); } &&
6853          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855   (eval $ac_try) 2>&5
6856   ac_status=$?
6857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858   (exit $ac_status); }; } &&
6859          { ac_try='test -s conftest$ac_exeext'
6860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6861   (eval $ac_try) 2>&5
6862   ac_status=$?
6863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864   (exit $ac_status); }; }; then
6865   eval "$as_ac_var=yes"
6866 else
6867   echo "$as_me: failed program was:" >&5
6868 sed 's/^/| /' conftest.$ac_ext >&5
6869
6870 eval "$as_ac_var=no"
6871 fi
6872 rm -f conftest.err conftest.$ac_objext \
6873       conftest$ac_exeext conftest.$ac_ext
6874 fi
6875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6877 if test `eval echo '${'$as_ac_var'}'` = yes; then
6878   cat >>confdefs.h <<_ACEOF
6879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6880 _ACEOF
6881
6882 fi
6883 done
6884
6885
6886 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6887 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6888 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6889   echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891   cat >conftest.$ac_ext <<_ACEOF
6892 /* confdefs.h.  */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h.  */
6897 #include <sys/types.h>
6898 #include <sys/wait.h>
6899 #ifndef WEXITSTATUS
6900 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6901 #endif
6902 #ifndef WIFEXITED
6903 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6904 #endif
6905
6906 int
6907 main ()
6908 {
6909   int s;
6910   wait (&s);
6911   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6912   ;
6913   return 0;
6914 }
6915 _ACEOF
6916 rm -f conftest.$ac_objext
6917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6918   (eval $ac_compile) 2>conftest.er1
6919   ac_status=$?
6920   grep -v '^ *+' conftest.er1 >conftest.err
6921   rm -f conftest.er1
6922   cat conftest.err >&5
6923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924   (exit $ac_status); } &&
6925          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6927   (eval $ac_try) 2>&5
6928   ac_status=$?
6929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930   (exit $ac_status); }; } &&
6931          { ac_try='test -s conftest.$ac_objext'
6932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6933   (eval $ac_try) 2>&5
6934   ac_status=$?
6935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936   (exit $ac_status); }; }; then
6937   ac_cv_header_sys_wait_h=yes
6938 else
6939   echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.$ac_ext >&5
6941
6942 ac_cv_header_sys_wait_h=no
6943 fi
6944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6945 fi
6946 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6947 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6948 if test $ac_cv_header_sys_wait_h = yes; then
6949
6950 cat >>confdefs.h <<\_ACEOF
6951 #define HAVE_SYS_WAIT_H 1
6952 _ACEOF
6953
6954 fi
6955
6956
6957 for ac_header in unistd.h
6958 do
6959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6961   echo "$as_me:$LINENO: checking for $ac_header" >&5
6962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6964   echo $ECHO_N "(cached) $ECHO_C" >&6
6965 fi
6966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6968 else
6969   # Is the header compilable?
6970 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6972 cat >conftest.$ac_ext <<_ACEOF
6973 /* confdefs.h.  */
6974 _ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h.  */
6978 $ac_includes_default
6979 #include <$ac_header>
6980 _ACEOF
6981 rm -f conftest.$ac_objext
6982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6983   (eval $ac_compile) 2>conftest.er1
6984   ac_status=$?
6985   grep -v '^ *+' conftest.er1 >conftest.err
6986   rm -f conftest.er1
6987   cat conftest.err >&5
6988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989   (exit $ac_status); } &&
6990          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6992   (eval $ac_try) 2>&5
6993   ac_status=$?
6994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995   (exit $ac_status); }; } &&
6996          { ac_try='test -s conftest.$ac_objext'
6997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998   (eval $ac_try) 2>&5
6999   ac_status=$?
7000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001   (exit $ac_status); }; }; then
7002   ac_header_compiler=yes
7003 else
7004   echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7006
7007 ac_header_compiler=no
7008 fi
7009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7010 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7011 echo "${ECHO_T}$ac_header_compiler" >&6
7012
7013 # Is the header present?
7014 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7015 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7016 cat >conftest.$ac_ext <<_ACEOF
7017 /* confdefs.h.  */
7018 _ACEOF
7019 cat confdefs.h >>conftest.$ac_ext
7020 cat >>conftest.$ac_ext <<_ACEOF
7021 /* end confdefs.h.  */
7022 #include <$ac_header>
7023 _ACEOF
7024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7025   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7026   ac_status=$?
7027   grep -v '^ *+' conftest.er1 >conftest.err
7028   rm -f conftest.er1
7029   cat conftest.err >&5
7030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031   (exit $ac_status); } >/dev/null; then
7032   if test -s conftest.err; then
7033     ac_cpp_err=$ac_c_preproc_warn_flag
7034     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7035   else
7036     ac_cpp_err=
7037   fi
7038 else
7039   ac_cpp_err=yes
7040 fi
7041 if test -z "$ac_cpp_err"; then
7042   ac_header_preproc=yes
7043 else
7044   echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.$ac_ext >&5
7046
7047   ac_header_preproc=no
7048 fi
7049 rm -f conftest.err conftest.$ac_ext
7050 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7051 echo "${ECHO_T}$ac_header_preproc" >&6
7052
7053 # So?  What about this header?
7054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7055   yes:no: )
7056     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7058     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7060     ac_header_preproc=yes
7061     ;;
7062   no:yes:* )
7063     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7065     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7066 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7067     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7069     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7070 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7073     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7075     (
7076       cat <<\_ASBOX
7077 ## ------------------------------------------ ##
7078 ## Report this to the AC_PACKAGE_NAME lists.  ##
7079 ## ------------------------------------------ ##
7080 _ASBOX
7081     ) |
7082       sed "s/^/$as_me: WARNING:     /" >&2
7083     ;;
7084 esac
7085 echo "$as_me:$LINENO: checking for $ac_header" >&5
7086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7088   echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090   eval "$as_ac_Header=\$ac_header_preproc"
7091 fi
7092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7094
7095 fi
7096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7097   cat >>confdefs.h <<_ACEOF
7098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7099 _ACEOF
7100
7101 fi
7102
7103 done
7104
7105 echo "$as_me:$LINENO: checking for restartable system calls" >&5
7106 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
7107 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
7108   echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110   if test "$cross_compiling" = yes; then
7111   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7112 See \`config.log' for more details." >&5
7113 echo "$as_me: error: cannot run test program while cross compiling
7114 See \`config.log' for more details." >&2;}
7115    { (exit 1); exit 1; }; }
7116 else
7117   cat >conftest.$ac_ext <<_ACEOF
7118 /* confdefs.h.  */
7119 _ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h.  */
7123 /* Exit 0 (true) if wait returns something other than -1,
7124    i.e. the pid of the child, which means that wait was restarted
7125    after getting the signal.  */
7126
7127 #include <sys/types.h>
7128 #include <signal.h>
7129 #if HAVE_UNISTD_H
7130 # include <unistd.h>
7131 #endif
7132 #if HAVE_SYS_WAIT_H
7133 # include <sys/wait.h>
7134 #endif
7135
7136 /* Some platforms explicitly require an extern "C" signal handler
7137    when using C++. */
7138 #ifdef __cplusplus
7139 extern "C" void ucatch (int dummy) { }
7140 #else
7141 void ucatch (dummy) int dummy; { }
7142 #endif
7143
7144 int
7145 main ()
7146 {
7147   int i = fork (), status;
7148
7149   if (i == 0)
7150     {
7151       sleep (3);
7152       kill (getppid (), SIGINT);
7153       sleep (3);
7154       exit (0);
7155     }
7156
7157   signal (SIGINT, ucatch);
7158
7159   status = wait (&i);
7160   if (status == -1)
7161     wait (&i);
7162
7163   exit (status == -1);
7164 }
7165 _ACEOF
7166 rm -f conftest$ac_exeext
7167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7168   (eval $ac_link) 2>&5
7169   ac_status=$?
7170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173   (eval $ac_try) 2>&5
7174   ac_status=$?
7175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176   (exit $ac_status); }; }; then
7177   ac_cv_sys_restartable_syscalls=yes
7178 else
7179   echo "$as_me: program exited with status $ac_status" >&5
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7182
7183 ( exit $ac_status )
7184 ac_cv_sys_restartable_syscalls=no
7185 fi
7186 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7187 fi
7188 fi
7189 echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
7190 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
7191 if test $ac_cv_sys_restartable_syscalls = yes; then
7192
7193 cat >>confdefs.h <<\_ACEOF
7194 #define HAVE_RESTARTABLE_SYSCALLS 1
7195 _ACEOF
7196
7197 fi
7198
7199
7200 echo "$as_me:$LINENO: checking for donuts" >&5
7201 echo $ECHO_N "checking for donuts... $ECHO_C" >&6
7202 echo "$as_me:$LINENO: result: yes" >&5
7203 echo "${ECHO_T}yes" >&6
7204
7205 for ac_prog in gawk mawk nawk awk
7206 do
7207   # Extract the first word of "$ac_prog", so it can be a program name with args.
7208 set dummy $ac_prog; ac_word=$2
7209 echo "$as_me:$LINENO: checking for $ac_word" >&5
7210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7211 if test "${ac_cv_prog_AWK+set}" = set; then
7212   echo $ECHO_N "(cached) $ECHO_C" >&6
7213 else
7214   if test -n "$AWK"; then
7215   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7216 else
7217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 for as_dir in $PATH
7219 do
7220   IFS=$as_save_IFS
7221   test -z "$as_dir" && as_dir=.
7222   for ac_exec_ext in '' $ac_executable_extensions; do
7223   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7224     ac_cv_prog_AWK="$ac_prog"
7225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7226     break 2
7227   fi
7228 done
7229 done
7230
7231 fi
7232 fi
7233 AWK=$ac_cv_prog_AWK
7234 if test -n "$AWK"; then
7235   echo "$as_me:$LINENO: result: $AWK" >&5
7236 echo "${ECHO_T}$AWK" >&6
7237 else
7238   echo "$as_me:$LINENO: result: no" >&5
7239 echo "${ECHO_T}no" >&6
7240 fi
7241
7242   test -n "$AWK" && break
7243 done
7244
7245 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7246 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7247 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7248 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7249   echo $ECHO_N "(cached) $ECHO_C" >&6
7250 else
7251   cat >conftest.make <<\_ACEOF
7252 all:
7253         @echo 'ac_maketemp="$(MAKE)"'
7254 _ACEOF
7255 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7256 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7257 if test -n "$ac_maketemp"; then
7258   eval ac_cv_prog_make_${ac_make}_set=yes
7259 else
7260   eval ac_cv_prog_make_${ac_make}_set=no
7261 fi
7262 rm -f conftest.make
7263 fi
7264 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7265   echo "$as_me:$LINENO: result: yes" >&5
7266 echo "${ECHO_T}yes" >&6
7267   SET_MAKE=
7268 else
7269   echo "$as_me:$LINENO: result: no" >&5
7270 echo "${ECHO_T}no" >&6
7271   SET_MAKE="MAKE=${MAKE-make}"
7272 fi
7273
7274 # Find a good install program.  We prefer a C program (faster),
7275 # so one script is as good as another.  But avoid the broken or
7276 # incompatible versions:
7277 # SysV /etc/install, /usr/sbin/install
7278 # SunOS /usr/etc/install
7279 # IRIX /sbin/install
7280 # AIX /bin/install
7281 # AmigaOS /C/install, which installs bootblocks on floppy discs
7282 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7283 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7284 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7285 # OS/2's system install, which has a completely different semantic
7286 # ./install, which can be erroneously created by make from ./install.sh.
7287 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7288 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7289 if test -z "$INSTALL"; then
7290 if test "${ac_cv_path_install+set}" = set; then
7291   echo $ECHO_N "(cached) $ECHO_C" >&6
7292 else
7293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 for as_dir in $PATH
7295 do
7296   IFS=$as_save_IFS
7297   test -z "$as_dir" && as_dir=.
7298   # Account for people who put trailing slashes in PATH elements.
7299 case $as_dir/ in
7300   ./ | .// | /cC/* | \
7301   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7302   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7303   /usr/ucb/* ) ;;
7304   *)
7305     # OSF1 and SCO ODT 3.0 have their own names for install.
7306     # Don't use installbsd from OSF since it installs stuff as root
7307     # by default.
7308     for ac_prog in ginstall scoinst install; do
7309       for ac_exec_ext in '' $ac_executable_extensions; do
7310         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7311           if test $ac_prog = install &&
7312             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7313             # AIX install.  It has an incompatible calling convention.
7314             :
7315           elif test $ac_prog = install &&
7316             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7317             # program-specific install script used by HP pwplus--don't use.
7318             :
7319           else
7320             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7321             break 3
7322           fi
7323         fi
7324       done
7325     done
7326     ;;
7327 esac
7328 done
7329
7330
7331 fi
7332   if test "${ac_cv_path_install+set}" = set; then
7333     INSTALL=$ac_cv_path_install
7334   else
7335     # As a last resort, use the slow shell script.  We don't cache a
7336     # path for INSTALL within a source directory, because that will
7337     # break other packages using the cache if that directory is
7338     # removed, or if the path is relative.
7339     INSTALL=$ac_install_sh
7340   fi
7341 fi
7342 echo "$as_me:$LINENO: result: $INSTALL" >&5
7343 echo "${ECHO_T}$INSTALL" >&6
7344
7345 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7346 # It thinks the first close brace ends the variable substitution.
7347 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7348
7349 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7350
7351 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7352
7353 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7354 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7355 LN_S=$as_ln_s
7356 if test "$LN_S" = "ln -s"; then
7357   echo "$as_me:$LINENO: result: yes" >&5
7358 echo "${ECHO_T}yes" >&6
7359 else
7360   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7361 echo "${ECHO_T}no, using $LN_S" >&6
7362 fi
7363
7364 for ac_prog in rm
7365 do
7366   # Extract the first word of "$ac_prog", so it can be a program name with args.
7367 set dummy $ac_prog; ac_word=$2
7368 echo "$as_me:$LINENO: checking for $ac_word" >&5
7369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7370 if test "${ac_cv_path_RMPROG+set}" = set; then
7371   echo $ECHO_N "(cached) $ECHO_C" >&6
7372 else
7373   case $RMPROG in
7374   [\\/]* | ?:[\\/]*)
7375   ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
7376   ;;
7377   *)
7378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 for as_dir in $PATH
7380 do
7381   IFS=$as_save_IFS
7382   test -z "$as_dir" && as_dir=.
7383   for ac_exec_ext in '' $ac_executable_extensions; do
7384   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7385     ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
7386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7387     break 2
7388   fi
7389 done
7390 done
7391
7392   ;;
7393 esac
7394 fi
7395 RMPROG=$ac_cv_path_RMPROG
7396
7397 if test -n "$RMPROG"; then
7398   echo "$as_me:$LINENO: result: $RMPROG" >&5
7399 echo "${ECHO_T}$RMPROG" >&6
7400 else
7401   echo "$as_me:$LINENO: result: no" >&5
7402 echo "${ECHO_T}no" >&6
7403 fi
7404
7405   test -n "$RMPROG" && break
7406 done
7407 test -n "$RMPROG" || RMPROG="/bin/rm"
7408
7409 for ac_prog in sh
7410 do
7411   # Extract the first word of "$ac_prog", so it can be a program name with args.
7412 set dummy $ac_prog; ac_word=$2
7413 echo "$as_me:$LINENO: checking for $ac_word" >&5
7414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7415 if test "${ac_cv_path_SHPROG+set}" = set; then
7416   echo $ECHO_N "(cached) $ECHO_C" >&6
7417 else
7418   case $SHPROG in
7419   [\\/]* | ?:[\\/]*)
7420   ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
7421   ;;
7422   *)
7423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 for as_dir in $PATH
7425 do
7426   IFS=$as_save_IFS
7427   test -z "$as_dir" && as_dir=.
7428   for ac_exec_ext in '' $ac_executable_extensions; do
7429   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7430     ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
7431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7432     break 2
7433   fi
7434 done
7435 done
7436
7437   ;;
7438 esac
7439 fi
7440 SHPROG=$ac_cv_path_SHPROG
7441
7442 if test -n "$SHPROG"; then
7443   echo "$as_me:$LINENO: result: $SHPROG" >&5
7444 echo "${ECHO_T}$SHPROG" >&6
7445 else
7446   echo "$as_me:$LINENO: result: no" >&5
7447 echo "${ECHO_T}no" >&6
7448 fi
7449
7450   test -n "$SHPROG" && break
7451 done
7452 test -n "$SHPROG" || SHPROG="/bin/sh"
7453
7454
7455 for ac_prog in flex lex
7456 do
7457   # Extract the first word of "$ac_prog", so it can be a program name with args.
7458 set dummy $ac_prog; ac_word=$2
7459 echo "$as_me:$LINENO: checking for $ac_word" >&5
7460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7461 if test "${ac_cv_prog_LEX+set}" = set; then
7462   echo $ECHO_N "(cached) $ECHO_C" >&6
7463 else
7464   if test -n "$LEX"; then
7465   ac_cv_prog_LEX="$LEX" # Let the user override the test.
7466 else
7467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 for as_dir in $PATH
7469 do
7470   IFS=$as_save_IFS
7471   test -z "$as_dir" && as_dir=.
7472   for ac_exec_ext in '' $ac_executable_extensions; do
7473   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7474     ac_cv_prog_LEX="$ac_prog"
7475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7476     break 2
7477   fi
7478 done
7479 done
7480
7481 fi
7482 fi
7483 LEX=$ac_cv_prog_LEX
7484 if test -n "$LEX"; then
7485   echo "$as_me:$LINENO: result: $LEX" >&5
7486 echo "${ECHO_T}$LEX" >&6
7487 else
7488   echo "$as_me:$LINENO: result: no" >&5
7489 echo "${ECHO_T}no" >&6
7490 fi
7491
7492   test -n "$LEX" && break
7493 done
7494 test -n "$LEX" || LEX=":"
7495
7496 if test -z "$LEXLIB"
7497 then
7498   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
7499 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
7500 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
7501   echo $ECHO_N "(cached) $ECHO_C" >&6
7502 else
7503   ac_check_lib_save_LIBS=$LIBS
7504 LIBS="-lfl  $LIBS"
7505 cat >conftest.$ac_ext <<_ACEOF
7506 /* confdefs.h.  */
7507 _ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h.  */
7511
7512 /* Override any gcc2 internal prototype to avoid an error.  */
7513 #ifdef __cplusplus
7514 extern "C"
7515 #endif
7516 /* We use char because int might match the return type of a gcc2
7517    builtin and then its argument prototype would still apply.  */
7518 char yywrap ();
7519 int
7520 main ()
7521 {
7522 yywrap ();
7523   ;
7524   return 0;
7525 }
7526 _ACEOF
7527 rm -f conftest.$ac_objext conftest$ac_exeext
7528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7529   (eval $ac_link) 2>conftest.er1
7530   ac_status=$?
7531   grep -v '^ *+' conftest.er1 >conftest.err
7532   rm -f conftest.er1
7533   cat conftest.err >&5
7534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535   (exit $ac_status); } &&
7536          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7538   (eval $ac_try) 2>&5
7539   ac_status=$?
7540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541   (exit $ac_status); }; } &&
7542          { ac_try='test -s conftest$ac_exeext'
7543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544   (eval $ac_try) 2>&5
7545   ac_status=$?
7546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547   (exit $ac_status); }; }; then
7548   ac_cv_lib_fl_yywrap=yes
7549 else
7550   echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7552
7553 ac_cv_lib_fl_yywrap=no
7554 fi
7555 rm -f conftest.err conftest.$ac_objext \
7556       conftest$ac_exeext conftest.$ac_ext
7557 LIBS=$ac_check_lib_save_LIBS
7558 fi
7559 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
7560 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
7561 if test $ac_cv_lib_fl_yywrap = yes; then
7562   LEXLIB="-lfl"
7563 else
7564   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
7565 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
7566 if test "${ac_cv_lib_l_yywrap+set}" = set; then
7567   echo $ECHO_N "(cached) $ECHO_C" >&6
7568 else
7569   ac_check_lib_save_LIBS=$LIBS
7570 LIBS="-ll  $LIBS"
7571 cat >conftest.$ac_ext <<_ACEOF
7572 /* confdefs.h.  */
7573 _ACEOF
7574 cat confdefs.h >>conftest.$ac_ext
7575 cat >>conftest.$ac_ext <<_ACEOF
7576 /* end confdefs.h.  */
7577
7578 /* Override any gcc2 internal prototype to avoid an error.  */
7579 #ifdef __cplusplus
7580 extern "C"
7581 #endif
7582 /* We use char because int might match the return type of a gcc2
7583    builtin and then its argument prototype would still apply.  */
7584 char yywrap ();
7585 int
7586 main ()
7587 {
7588 yywrap ();
7589   ;
7590   return 0;
7591 }
7592 _ACEOF
7593 rm -f conftest.$ac_objext conftest$ac_exeext
7594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7595   (eval $ac_link) 2>conftest.er1
7596   ac_status=$?
7597   grep -v '^ *+' conftest.er1 >conftest.err
7598   rm -f conftest.er1
7599   cat conftest.err >&5
7600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601   (exit $ac_status); } &&
7602          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604   (eval $ac_try) 2>&5
7605   ac_status=$?
7606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607   (exit $ac_status); }; } &&
7608          { ac_try='test -s conftest$ac_exeext'
7609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610   (eval $ac_try) 2>&5
7611   ac_status=$?
7612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613   (exit $ac_status); }; }; then
7614   ac_cv_lib_l_yywrap=yes
7615 else
7616   echo "$as_me: failed program was:" >&5
7617 sed 's/^/| /' conftest.$ac_ext >&5
7618
7619 ac_cv_lib_l_yywrap=no
7620 fi
7621 rm -f conftest.err conftest.$ac_objext \
7622       conftest$ac_exeext conftest.$ac_ext
7623 LIBS=$ac_check_lib_save_LIBS
7624 fi
7625 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
7626 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
7627 if test $ac_cv_lib_l_yywrap = yes; then
7628   LEXLIB="-ll"
7629 fi
7630
7631 fi
7632
7633 fi
7634
7635 if test "x$LEX" != "x:"; then
7636   echo "$as_me:$LINENO: checking lex output file root" >&5
7637 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
7638 if test "${ac_cv_prog_lex_root+set}" = set; then
7639   echo $ECHO_N "(cached) $ECHO_C" >&6
7640 else
7641   # The minimal lex program is just a single line: %%.  But some broken lexes
7642 # (Solaris, I think it was) want two %% lines, so accommodate them.
7643 cat >conftest.l <<_ACEOF
7644 %%
7645 %%
7646 _ACEOF
7647 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
7648   (eval $LEX conftest.l) 2>&5
7649   ac_status=$?
7650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651   (exit $ac_status); }
7652 if test -f lex.yy.c; then
7653   ac_cv_prog_lex_root=lex.yy
7654 elif test -f lexyy.c; then
7655   ac_cv_prog_lex_root=lexyy
7656 else
7657   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
7658 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
7659    { (exit 1); exit 1; }; }
7660 fi
7661 fi
7662 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
7663 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
7664 rm -f conftest.l
7665 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7666
7667 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
7668 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
7669 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
7670   echo $ECHO_N "(cached) $ECHO_C" >&6
7671 else
7672   # POSIX says lex can declare yytext either as a pointer or an array; the
7673 # default is implementation-dependent. Figure out which it is, since
7674 # not all implementations provide the %pointer and %array declarations.
7675 ac_cv_prog_lex_yytext_pointer=no
7676 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
7677 ac_save_LIBS=$LIBS
7678 LIBS="$LIBS $LEXLIB"
7679 cat >conftest.$ac_ext <<_ACEOF
7680 `cat $LEX_OUTPUT_ROOT.c`
7681 _ACEOF
7682 rm -f conftest.$ac_objext conftest$ac_exeext
7683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7684   (eval $ac_link) 2>conftest.er1
7685   ac_status=$?
7686   grep -v '^ *+' conftest.er1 >conftest.err
7687   rm -f conftest.er1
7688   cat conftest.err >&5
7689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690   (exit $ac_status); } &&
7691          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693   (eval $ac_try) 2>&5
7694   ac_status=$?
7695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696   (exit $ac_status); }; } &&
7697          { ac_try='test -s conftest$ac_exeext'
7698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699   (eval $ac_try) 2>&5
7700   ac_status=$?
7701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702   (exit $ac_status); }; }; then
7703   ac_cv_prog_lex_yytext_pointer=yes
7704 else
7705   echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.$ac_ext >&5
7707
7708 fi
7709 rm -f conftest.err conftest.$ac_objext \
7710       conftest$ac_exeext conftest.$ac_ext
7711 LIBS=$ac_save_LIBS
7712 rm -f "${LEX_OUTPUT_ROOT}.c"
7713
7714 fi
7715 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
7716 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
7717 if test $ac_cv_prog_lex_yytext_pointer = yes; then
7718
7719 cat >>confdefs.h <<\_ACEOF
7720 #define YYTEXT_POINTER 1
7721 _ACEOF
7722
7723 fi
7724
7725 fi
7726 if test -x "$LEX"
7727 then
7728   { { echo "$as_me:$LINENO: error: Cannot find flex." >&5
7729 echo "$as_me: error: Cannot find flex." >&2;}
7730    { (exit 1); exit 1; }; }
7731 fi
7732
7733 if test -z "$LEXLIB"
7734 then
7735   { { echo "$as_me:$LINENO: error:
7736   Cannot find a library with yywrap() in, but flex was found.
7737   It's possible the compiler you're using ($CC) is incompatible with the
7738   installed library.
7739 See \`config.log' for more details." >&5
7740 echo "$as_me: error:
7741   Cannot find a library with yywrap() in, but flex was found.
7742   It's possible the compiler you're using ($CC) is incompatible with the
7743   installed library.
7744 See \`config.log' for more details." >&2;}
7745    { (exit 1); exit 1; }; }
7746 fi
7747
7748 LIBS="$LEXLIB $LIBS"
7749
7750 for ac_prog in 'bison -y' byacc
7751 do
7752   # Extract the first word of "$ac_prog", so it can be a program name with args.
7753 set dummy $ac_prog; ac_word=$2
7754 echo "$as_me:$LINENO: checking for $ac_word" >&5
7755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7756 if test "${ac_cv_prog_YACC+set}" = set; then
7757   echo $ECHO_N "(cached) $ECHO_C" >&6
7758 else
7759   if test -n "$YACC"; then
7760   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7761 else
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7764 do
7765   IFS=$as_save_IFS
7766   test -z "$as_dir" && as_dir=.
7767   for ac_exec_ext in '' $ac_executable_extensions; do
7768   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7769     ac_cv_prog_YACC="$ac_prog"
7770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771     break 2
7772   fi
7773 done
7774 done
7775
7776 fi
7777 fi
7778 YACC=$ac_cv_prog_YACC
7779 if test -n "$YACC"; then
7780   echo "$as_me:$LINENO: result: $YACC" >&5
7781 echo "${ECHO_T}$YACC" >&6
7782 else
7783   echo "$as_me:$LINENO: result: no" >&5
7784 echo "${ECHO_T}no" >&6
7785 fi
7786
7787   test -n "$YACC" && break
7788 done
7789 test -n "$YACC" || YACC="yacc"
7790
7791 if test -z "$YACC"
7792 then
7793   { { echo "$as_me:$LINENO: error: Cannot find yacc." >&5
7794 echo "$as_me: error: Cannot find yacc." >&2;}
7795    { (exit 1); exit 1; }; }
7796 fi
7797
7798
7799 echo "$as_me:$LINENO: checking for posix non-blocking" >&5
7800 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6
7801 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
7802   echo $ECHO_N "(cached) $ECHO_C" >&6
7803 else
7804   if test "$cross_compiling" = yes; then
7805   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7806 See \`config.log' for more details." >&5
7807 echo "$as_me: error: cannot run test program while cross compiling
7808 See \`config.log' for more details." >&2;}
7809    { (exit 1); exit 1; }; }
7810 else
7811   cat >conftest.$ac_ext <<_ACEOF
7812 /* confdefs.h.  */
7813 _ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h.  */
7817 #include <sys/types.h>
7818 #include <sys/socket.h>
7819 #include <fcntl.h>
7820 #include <sys/ioctl.h>
7821 #include <sys/file.h>
7822 #include <signal.h>
7823 $ac_cv_type_signal alarmed() { exit(1); }
7824 int main(void)
7825 {
7826   char b[12];
7827   struct sockaddr x;
7828   size_t l = sizeof(x);
7829   int f = socket(AF_INET, SOCK_DGRAM, 0);
7830   if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
7831   {
7832     signal(SIGALRM, alarmed);
7833     alarm(2);
7834     recvfrom(f, b, 12, 0, &x, &l);
7835     alarm(0);
7836     exit(0);
7837   }
7838   exit(1);
7839 }
7840 _ACEOF
7841 rm -f conftest$ac_exeext
7842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7843   (eval $ac_link) 2>&5
7844   ac_status=$?
7845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7848   (eval $ac_try) 2>&5
7849   ac_status=$?
7850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851   (exit $ac_status); }; }; then
7852   unet_cv_sys_nonblocking_posix=yes
7853 else
7854   echo "$as_me: program exited with status $ac_status" >&5
7855 echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.$ac_ext >&5
7857
7858 ( exit $ac_status )
7859 unet_cv_sys_nonblocking_posix=no
7860 fi
7861 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7862 fi
7863 fi
7864 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
7865 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6
7866 if test $unet_cv_sys_nonblocking_posix = yes; then
7867   cat >>confdefs.h <<\_ACEOF
7868 #define NBLOCK_POSIX 1
7869 _ACEOF
7870
7871 else
7872 echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
7873 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6
7874 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
7875   echo $ECHO_N "(cached) $ECHO_C" >&6
7876 else
7877   if test "$cross_compiling" = yes; then
7878   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7879 See \`config.log' for more details." >&5
7880 echo "$as_me: error: cannot run test program while cross compiling
7881 See \`config.log' for more details." >&2;}
7882    { (exit 1); exit 1; }; }
7883 else
7884   cat >conftest.$ac_ext <<_ACEOF
7885 /* confdefs.h.  */
7886 _ACEOF
7887 cat confdefs.h >>conftest.$ac_ext
7888 cat >>conftest.$ac_ext <<_ACEOF
7889 /* end confdefs.h.  */
7890 #include <sys/types.h>
7891 #include <sys/socket.h>
7892 #include <fcntl.h>
7893 #include <sys/ioctl.h>
7894 #include <sys/file.h>
7895 #include <signal.h>
7896 $ac_cv_type_signal alarmed() { exit(1); }
7897 int main(void)
7898 {
7899   char b[12];
7900   struct sockaddr x;
7901   size_t l = sizeof(x);
7902   int f = socket(AF_INET, SOCK_DGRAM, 0);
7903   if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
7904   {
7905     signal(SIGALRM, alarmed);
7906     alarm(2);
7907     recvfrom(f, b, 12, 0, &x, &l);
7908     alarm(0);
7909     exit(0);
7910   }
7911   exit(1);
7912 }
7913 _ACEOF
7914 rm -f conftest$ac_exeext
7915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7916   (eval $ac_link) 2>&5
7917   ac_status=$?
7918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7921   (eval $ac_try) 2>&5
7922   ac_status=$?
7923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924   (exit $ac_status); }; }; then
7925   unet_cv_sys_nonblocking_bsd=yes
7926 else
7927   echo "$as_me: program exited with status $ac_status" >&5
7928 echo "$as_me: failed program was:" >&5
7929 sed 's/^/| /' conftest.$ac_ext >&5
7930
7931 ( exit $ac_status )
7932 unet_cv_sys_nonblocking_bsd=no
7933 fi
7934 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7935 fi
7936 fi
7937 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
7938 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6
7939 if test $unet_cv_sys_nonblocking_bsd = yes; then
7940   cat >>confdefs.h <<\_ACEOF
7941 #define NBLOCK_BSD 1
7942 _ACEOF
7943
7944 else
7945   cat >>confdefs.h <<\_ACEOF
7946 #define NBLOCK_SYSV 1
7947 _ACEOF
7948
7949 fi
7950 fi
7951 echo "$as_me:$LINENO: checking for posix signals" >&5
7952 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6
7953 if test "${unet_cv_sys_signal_posix+set}" = set; then
7954   echo $ECHO_N "(cached) $ECHO_C" >&6
7955 else
7956   cat >conftest.$ac_ext <<_ACEOF
7957 /* confdefs.h.  */
7958 _ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h.  */
7962 #include <signal.h>
7963 int
7964 main ()
7965 {
7966 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
7967   ;
7968   return 0;
7969 }
7970 _ACEOF
7971 rm -f conftest.$ac_objext
7972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7973   (eval $ac_compile) 2>conftest.er1
7974   ac_status=$?
7975   grep -v '^ *+' conftest.er1 >conftest.err
7976   rm -f conftest.er1
7977   cat conftest.err >&5
7978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979   (exit $ac_status); } &&
7980          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982   (eval $ac_try) 2>&5
7983   ac_status=$?
7984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985   (exit $ac_status); }; } &&
7986          { ac_try='test -s conftest.$ac_objext'
7987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988   (eval $ac_try) 2>&5
7989   ac_status=$?
7990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991   (exit $ac_status); }; }; then
7992   unet_cv_sys_signal_posix=yes
7993 else
7994   echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7996
7997 unet_cv_sys_signal_posix=no
7998 fi
7999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8000 fi
8001 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
8002 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6
8003 if test $unet_cv_sys_signal_posix = yes; then
8004   cat >>confdefs.h <<\_ACEOF
8005 #define POSIX_SIGNALS 1
8006 _ACEOF
8007
8008 else
8009 echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
8010 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6
8011 if test "${unet_cv_sys_signal_bsd+set}" = set; then
8012   echo $ECHO_N "(cached) $ECHO_C" >&6
8013 else
8014   if test "$cross_compiling" = yes; then
8015   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8016 See \`config.log' for more details." >&5
8017 echo "$as_me: error: cannot run test program while cross compiling
8018 See \`config.log' for more details." >&2;}
8019    { (exit 1); exit 1; }; }
8020 else
8021   cat >conftest.$ac_ext <<_ACEOF
8022 /* confdefs.h.  */
8023 _ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h.  */
8027 #include <signal.h>
8028 int calls = 0;
8029 $ac_cv_type_signal handler()
8030 {
8031   if (calls) return;
8032   calls++;
8033   kill(getpid(), SIGTERM);
8034   sleep(1);
8035 }
8036 int main(void)
8037 {
8038   signal(SIGTERM, handler);
8039   kill(getpid(), SIGTERM);
8040   exit (0);
8041 }
8042 _ACEOF
8043 rm -f conftest$ac_exeext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8045   (eval $ac_link) 2>&5
8046   ac_status=$?
8047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050   (eval $ac_try) 2>&5
8051   ac_status=$?
8052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053   (exit $ac_status); }; }; then
8054   unet_cv_sys_signal_bsd=yes
8055 else
8056   echo "$as_me: program exited with status $ac_status" >&5
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8059
8060 ( exit $ac_status )
8061 unet_cv_sys_signal_bsd=no
8062 fi
8063 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8064 fi
8065 fi
8066 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
8067 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6
8068 if test $unet_cv_sys_signal_bsd = yes; then
8069   cat >>confdefs.h <<\_ACEOF
8070 #define BSD_RELIABLE_SIGNALS 1
8071 _ACEOF
8072
8073 else
8074   cat >>confdefs.h <<\_ACEOF
8075 #define SYSV_UNRELIABLE_SIGNALS 1
8076 _ACEOF
8077
8078 fi
8079 fi
8080
8081 echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5
8082 echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6
8083 unet_cv_pipe_flags="$ac_cv_c_compiler_gnu"
8084 if test "$ac_cv_c_compiler_gnu" = no; then
8085   OLDCFLAGS="$CFLAGS"
8086   CFLAGS="$CFLAGS -pipe"
8087   cat >conftest.$ac_ext <<_ACEOF
8088 /* confdefs.h.  */
8089 _ACEOF
8090 cat confdefs.h >>conftest.$ac_ext
8091 cat >>conftest.$ac_ext <<_ACEOF
8092 /* end confdefs.h.  */
8093
8094 int
8095 main ()
8096 {
8097
8098   ;
8099   return 0;
8100 }
8101 _ACEOF
8102 rm -f conftest.$ac_objext
8103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8104   (eval $ac_compile) 2>conftest.er1
8105   ac_status=$?
8106   grep -v '^ *+' conftest.er1 >conftest.err
8107   rm -f conftest.er1
8108   cat conftest.err >&5
8109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110   (exit $ac_status); } &&
8111          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8113   (eval $ac_try) 2>&5
8114   ac_status=$?
8115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116   (exit $ac_status); }; } &&
8117          { ac_try='test -s conftest.$ac_objext'
8118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8119   (eval $ac_try) 2>&5
8120   ac_status=$?
8121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122   (exit $ac_status); }; }; then
8123   unet_cv_pipe_flags=yes
8124 else
8125   echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8127
8128 fi
8129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8130   CFLAGS="$OLDCFLAGS"
8131 fi
8132 echo "$as_me:$LINENO: result: $unet_cv_pipe_flags" >&5
8133 echo "${ECHO_T}$unet_cv_pipe_flags" >&6
8134 if test "$unet_cv_pipe_flags" = yes ; then
8135   x=`echo $CFLAGS | grep 'pipe' 2>/dev/null`
8136   if test "$x" = "" ; then
8137     CFLAGS="$CFLAGS -pipe"
8138   fi
8139 fi
8140
8141
8142 echo "$as_me:$LINENO: checking for OS-dependent information" >&5
8143 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6
8144 case "$host" in
8145     *-linux*)
8146         echo "$as_me:$LINENO: result: Linux ($host) found." >&5
8147 echo "${ECHO_T}Linux ($host) found." >&6
8148         unet_poll_syscall=yes
8149         ;;
8150
8151     *-solaris*)
8152         echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
8153 echo "${ECHO_T}Solaris ($host) found." >&6
8154         if test x"$ac_cv_header_poll_h" = xyes; then
8155             unet_poll_syscall=yes
8156         else
8157             unet_poll_syscall=no
8158         fi
8159         ;;
8160
8161     *-sunos*)
8162         echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
8163 echo "${ECHO_T}Solaris ($host) found." >&6
8164         unet_poll_syscall=no
8165         ;;
8166
8167     *-openbsd*)
8168         echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
8169 echo "${ECHO_T}OpenBSD ($host) found." >&6
8170         if test x"$ac_cv_header_poll_h" = xyes; then
8171             unet_poll_syscall=yes
8172         else
8173             unet_poll_syscall=no
8174         fi
8175         ;;
8176
8177     *-*bsd*)
8178         echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
8179 echo "${ECHO_T}Generic BSD ($host) found." >&6
8180         if test x"$ac_cv_header_poll_h" = xyes; then
8181             unet_poll_syscall=yes
8182         else
8183             unet_poll_syscall=no
8184         fi
8185         ;;
8186
8187     *-darwin*)
8188         echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
8189 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6
8190         unet_poll_syscall=no
8191         ;;
8192
8193     *)
8194         echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
8195 echo "${ECHO_T}Unknown system type $host found." >&6
8196         { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
8197 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
8198         unet_poll_syscall=no
8199         ;;
8200 esac
8201
8202 echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
8203 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6
8204 # Check whether --enable-poll or --disable-poll was given.
8205 if test "${enable_poll+set}" = set; then
8206   enableval="$enable_poll"
8207   unet_cv_enable_poll=$enable_poll
8208 else
8209   if test "${unet_cv_enable_poll+set}" = set; then
8210   echo $ECHO_N "(cached) $ECHO_C" >&6
8211 else
8212   unet_cv_enable_poll=$unet_poll_syscall
8213 fi
8214
8215 fi;
8216
8217 # Force poll to be disabled if there is no poll.h
8218 if test x"$ac_cv_header_poll_h" != xyes; then
8219     unet_cv_enable_poll=no
8220 fi
8221
8222 echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
8223 echo "${ECHO_T}$unet_cv_enable_poll" >&6
8224
8225 if test x"$unet_cv_enable_poll" = xyes; then
8226
8227 cat >>confdefs.h <<\_ACEOF
8228 #define USE_POLL
8229 _ACEOF
8230
8231     ENGINE_C=engine_poll.c
8232 else
8233     ENGINE_C=engine_select.c
8234 fi
8235
8236
8237 echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
8238 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6
8239 # Check whether --enable-debug or --disable-debug was given.
8240 if test "${enable_debug+set}" = set; then
8241   enableval="$enable_debug"
8242   unet_cv_enable_debug=$enable_debug
8243 else
8244   if test "${unet_cv_enable_debug+set}" = set; then
8245   echo $ECHO_N "(cached) $ECHO_C" >&6
8246 else
8247   unet_cv_enable_debug=no
8248 fi
8249
8250 fi;
8251 echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
8252 echo "${ECHO_T}$unet_cv_enable_debug" >&6
8253
8254 if test x"$unet_cv_enable_debug" = xyes; then
8255
8256 cat >>confdefs.h <<\_ACEOF
8257 #define DEBUGMODE
8258 _ACEOF
8259
8260 fi
8261
8262 echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
8263 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6
8264
8265 # Check whether --with-leak-detect or --without-leak-detect was given.
8266 if test "${with_leak_detect+set}" = set; then
8267   withval="$with_leak_detect"
8268   unet_cv_with_leak_detect=$with_leak_detect
8269 else
8270   if test "${unet_cv_with_leak_detect+set}" = set; then
8271   echo $ECHO_N "(cached) $ECHO_C" >&6
8272 else
8273   unet_cv_with_leak_detect=no
8274 fi
8275
8276 fi;
8277 echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
8278 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6
8279
8280 if test x"$unet_cv_with_leak_detect" != xno; then
8281     LIBS="-lgc $LIBS"
8282     CFLAGS="-DMDEBUG $CFLAGS"
8283     if test x"$unet_cv_with_leak_detect" != xyes; then
8284        LIBS="-L$unet_cv_with_leak_detect $LIBS"
8285     fi
8286 fi
8287
8288
8289 # Check whether --with-ipv6 or --without-ipv6 was given.
8290 if test "${with_ipv6+set}" = set; then
8291   withval="$with_ipv6"
8292   ac_cv_use_ipv6=$withval
8293 else
8294   ac_cv_use_ipv6=$unet_have_sockaddr_in6
8295 fi;
8296 echo "$as_me:$LINENO: checking whether to use IPv6" >&5
8297 echo $ECHO_N "checking whether to use IPv6... $ECHO_C" >&6
8298 if test "${ac_cv_use_ipv6+set}" = set; then
8299   echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301   ac_cv_use_ipv6=no
8302 fi
8303 echo "$as_me:$LINENO: result: $ac_cv_use_ipv6" >&5
8304 echo "${ECHO_T}$ac_cv_use_ipv6" >&6
8305 if test x"$ac_cv_use_ipv6" != "xno" ; then
8306
8307 cat >>confdefs.h <<\_ACEOF
8308 #define IPV6
8309 _ACEOF
8310
8311 fi
8312
8313 echo "$as_me:$LINENO: checking whether to enable asserts" >&5
8314 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6
8315 # Check whether --enable-asserts or --disable-asserts was given.
8316 if test "${enable_asserts+set}" = set; then
8317   enableval="$enable_asserts"
8318   unet_cv_enable_asserts=$enable_asserts
8319 else
8320   if test "${unet_cv_enable_asserts+set}" = set; then
8321   echo $ECHO_N "(cached) $ECHO_C" >&6
8322 else
8323   unet_cv_enable_asserts=yes
8324 fi
8325
8326 fi;
8327 echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
8328 echo "${ECHO_T}$unet_cv_enable_asserts" >&6
8329
8330 if test x"$unet_cv_enable_asserts" = xno; then
8331
8332 cat >>confdefs.h <<\_ACEOF
8333 #define NDEBUG
8334 _ACEOF
8335
8336 fi
8337
8338 echo "$as_me:$LINENO: checking whether to enable debugging symbols" >&5
8339 echo $ECHO_N "checking whether to enable debugging symbols... $ECHO_C" >&6
8340 # Check whether --enable-symbols or --disable-symbols was given.
8341 if test "${enable_symbols+set}" = set; then
8342   enableval="$enable_symbols"
8343   unet_cv_enable_symbols=$enable_symbols
8344 else
8345   if test "${unet_cv_enable_symbols+set}" = set; then
8346   echo $ECHO_N "(cached) $ECHO_C" >&6
8347 else
8348   unet_cv_enable_symbols=yes
8349 fi
8350
8351 fi;
8352 echo "$as_me:$LINENO: result: $unet_cv_enable_symbols" >&5
8353 echo "${ECHO_T}$unet_cv_enable_symbols" >&6
8354
8355 if test x"$unet_cv_enable_symbols" = xyes; then
8356     CFLAGS="-g $CFLAGS"
8357 fi
8358
8359 echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
8360 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
8361 # Check whether --enable-profile or --disable-profile was given.
8362 if test "${enable_profile+set}" = set; then
8363   enableval="$enable_profile"
8364   unet_cv_enable_profile=$enable_profile
8365 else
8366   if test "${unet_cv_enable_profile+set}" = set; then
8367   echo $ECHO_N "(cached) $ECHO_C" >&6
8368 else
8369   unet_cv_enable_profile=no
8370 fi
8371
8372 fi;
8373 echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
8374 echo "${ECHO_T}$unet_cv_enable_profile" >&6
8375
8376 if test x"$unet_cv_enable_profile" = xyes; then
8377     CFLAGS="-pg $CFLAGS"
8378 fi
8379
8380 echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
8381 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6
8382 # Check whether --enable-pedantic or --disable-pedantic was given.
8383 if test "${enable_pedantic+set}" = set; then
8384   enableval="$enable_pedantic"
8385   unet_cv_enable_pedantic=$enable_pedantic
8386 else
8387   if test "${unet_cv_enable_pedantic+set}" = set; then
8388   echo $ECHO_N "(cached) $ECHO_C" >&6
8389 else
8390   unet_cv_enable_pedantic=no
8391 fi
8392
8393 fi;
8394 echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
8395 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6
8396
8397 if test x"$unet_cv_enable_pedantic" = xyes; then
8398     CFLAGS="-pedantic $CFLAGS"
8399 fi
8400
8401 echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
8402 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6
8403 # Check whether --enable-warnings or --disable-warnings was given.
8404 if test "${enable_warnings+set}" = set; then
8405   enableval="$enable_warnings"
8406   unet_cv_enable_warnings=$enable_warnings
8407 else
8408   if test "${unet_cv_enable_warnings+set}" = set; then
8409   echo $ECHO_N "(cached) $ECHO_C" >&6
8410 else
8411   unet_cv_enable_warnings=no
8412 fi
8413
8414 fi;
8415 echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
8416 echo "${ECHO_T}$unet_cv_enable_warnings" >&6
8417
8418 if test x"$unet_cv_enable_warnings" = xyes; then
8419     CFLAGS="-Wall $CFLAGS"
8420 fi
8421
8422 echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
8423 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6
8424 # Check whether --enable-inlines or --disable-inlines was given.
8425 if test "${enable_inlines+set}" = set; then
8426   enableval="$enable_inlines"
8427   unet_cv_enable_inlines=$enable_inlines
8428 else
8429   if test "${unet_cv_enable_inlines+set}" = set; then
8430   echo $ECHO_N "(cached) $ECHO_C" >&6
8431 else
8432   unet_cv_enable_inlines=yes
8433 fi
8434
8435 fi;
8436 echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
8437 echo "${ECHO_T}$unet_cv_enable_inlines" >&6
8438
8439 if test x"$unet_cv_enable_inlines" = xyes; then
8440
8441 cat >>confdefs.h <<\_ACEOF
8442 #define FORCEINLINE
8443 _ACEOF
8444
8445 fi
8446
8447 echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
8448 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6
8449 # Check whether --enable-devpoll or --disable-devpoll was given.
8450 if test "${enable_devpoll+set}" = set; then
8451   enableval="$enable_devpoll"
8452   unet_cv_enable_devpoll=$enable_devpoll
8453 else
8454   if test "${unet_cv_enable_devpoll+set}" = set; then
8455   echo $ECHO_N "(cached) $ECHO_C" >&6
8456 else
8457   unet_cv_enable_devpoll=yes
8458 fi
8459
8460 fi;
8461
8462 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
8463     unet_cv_enable_devpoll=no
8464 fi
8465
8466 echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
8467 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
8468
8469 if test x"$unet_cv_enable_devpoll" != xno; then
8470
8471 cat >>confdefs.h <<\_ACEOF
8472 #define USE_DEVPOLL
8473 _ACEOF
8474
8475     ENGINE_C="engine_devpoll.c $ENGINE_C"
8476 fi
8477
8478 echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
8479 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6
8480 # Check whether --enable-kqueue or --disable-kqueue was given.
8481 if test "${enable_kqueue+set}" = set; then
8482   enableval="$enable_kqueue"
8483   unet_cv_enable_kqueue=$enable_kqueue
8484 else
8485   if test "${unet_cv_enable_kqueue+set}" = set; then
8486   echo $ECHO_N "(cached) $ECHO_C" >&6
8487 else
8488   unet_cv_enable_kqueue=yes
8489 fi
8490
8491 fi;
8492
8493 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
8494     unet_cv_enable_kqueue=no
8495 fi
8496
8497 echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
8498 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
8499
8500 if test x"$unet_cv_enable_kqueue" != xno; then
8501
8502 cat >>confdefs.h <<\_ACEOF
8503 #define USE_KQUEUE
8504 _ACEOF
8505
8506     ENGINE_C="engine_kqueue.c $ENGINE_C"
8507 fi
8508
8509 echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
8510 echo $ECHO_N "checking whether to enable the epoll event engine... $ECHO_C" >&6
8511 # Check whether --enable-epoll or --disable-epoll was given.
8512 if test "${enable_epoll+set}" = set; then
8513   enableval="$enable_epoll"
8514   unet_cv_enable_epoll=$enable_epoll
8515 else
8516   if test "${unet_cv_enable_epoll+set}" = set; then
8517   echo $ECHO_N "(cached) $ECHO_C" >&6
8518 else
8519   unet_cv_enable_epoll=yes
8520 fi
8521
8522 fi;
8523
8524 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
8525     unet_cv_enable_epoll=no
8526 fi
8527
8528 echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
8529 echo "${ECHO_T}$unet_cv_enable_epoll" >&6
8530
8531 if test x"$unet_cv_enable_epoll" != xno; then
8532     echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
8533 echo $ECHO_N "checking whether epoll functions are properly defined... $ECHO_C" >&6
8534     cat >conftest.$ac_ext <<_ACEOF
8535 /* confdefs.h.  */
8536 _ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h.  */
8540 #include <sys/epoll.h>
8541 int
8542 main ()
8543 {
8544 epoll_create(10);
8545   ;
8546   return 0;
8547 }
8548 _ACEOF
8549 rm -f conftest.$ac_objext conftest$ac_exeext
8550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8551   (eval $ac_link) 2>conftest.er1
8552   ac_status=$?
8553   grep -v '^ *+' conftest.er1 >conftest.err
8554   rm -f conftest.er1
8555   cat conftest.err >&5
8556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557   (exit $ac_status); } &&
8558          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560   (eval $ac_try) 2>&5
8561   ac_status=$?
8562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563   (exit $ac_status); }; } &&
8564          { ac_try='test -s conftest$ac_exeext'
8565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8566   (eval $ac_try) 2>&5
8567   ac_status=$?
8568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569   (exit $ac_status); }; }; then
8570   echo "$as_me:$LINENO: result: yes" >&5
8571 echo "${ECHO_T}yes" >&6
8572 else
8573   echo "$as_me: failed program was:" >&5
8574 sed 's/^/| /' conftest.$ac_ext >&5
8575
8576 echo "$as_me:$LINENO: result: no" >&5
8577 echo "${ECHO_T}no" >&6
8578
8579 cat >>confdefs.h <<\_ACEOF
8580 #define EPOLL_NEED_BODY
8581 _ACEOF
8582
8583 fi
8584 rm -f conftest.err conftest.$ac_objext \
8585       conftest$ac_exeext conftest.$ac_ext
8586
8587 cat >>confdefs.h <<\_ACEOF
8588 #define USE_EPOLL
8589 _ACEOF
8590
8591     ENGINE_C="engine_epoll.c $ENGINE_C"
8592 fi
8593
8594 echo "$as_me:$LINENO: checking for va_copy" >&5
8595 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
8596 if test "${unet_cv_c_va_copy+set}" = set; then
8597   echo $ECHO_N "(cached) $ECHO_C" >&6
8598 else
8599   cat >conftest.$ac_ext <<_ACEOF
8600 /* confdefs.h.  */
8601 _ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h.  */
8605 #include <stdarg.h>
8606 int
8607 main ()
8608 {
8609 va_list ap1, ap2; va_copy(ap1, ap2);
8610   ;
8611   return 0;
8612 }
8613 _ACEOF
8614 rm -f conftest.$ac_objext conftest$ac_exeext
8615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8616   (eval $ac_link) 2>conftest.er1
8617   ac_status=$?
8618   grep -v '^ *+' conftest.er1 >conftest.err
8619   rm -f conftest.er1
8620   cat conftest.err >&5
8621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622   (exit $ac_status); } &&
8623          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625   (eval $ac_try) 2>&5
8626   ac_status=$?
8627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628   (exit $ac_status); }; } &&
8629          { ac_try='test -s conftest$ac_exeext'
8630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631   (eval $ac_try) 2>&5
8632   ac_status=$?
8633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634   (exit $ac_status); }; }; then
8635   unet_cv_c_va_copy="yes"
8636 else
8637   echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8639
8640 unet_cv_c_va_copy="no"
8641
8642 fi
8643 rm -f conftest.err conftest.$ac_objext \
8644       conftest$ac_exeext conftest.$ac_ext
8645 fi
8646 echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
8647 echo "${ECHO_T}$unet_cv_c_va_copy" >&6
8648 if test "$unet_cv_c_va_copy" = "yes" ; then
8649
8650 cat >>confdefs.h <<\_ACEOF
8651 #define HAVE_VA_COPY 1
8652 _ACEOF
8653
8654 fi
8655
8656 echo "$as_me:$LINENO: checking for __va_copy" >&5
8657 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
8658 if test "${unet_cv_c___va_copy+set}" = set; then
8659   echo $ECHO_N "(cached) $ECHO_C" >&6
8660 else
8661   cat >conftest.$ac_ext <<_ACEOF
8662 /* confdefs.h.  */
8663 _ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h.  */
8667 #include <stdarg.h>
8668 int
8669 main ()
8670 {
8671 va_list ap1, ap2; __va_copy(ap1, ap2);
8672   ;
8673   return 0;
8674 }
8675 _ACEOF
8676 rm -f conftest.$ac_objext conftest$ac_exeext
8677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8678   (eval $ac_link) 2>conftest.er1
8679   ac_status=$?
8680   grep -v '^ *+' conftest.er1 >conftest.err
8681   rm -f conftest.er1
8682   cat conftest.err >&5
8683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684   (exit $ac_status); } &&
8685          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687   (eval $ac_try) 2>&5
8688   ac_status=$?
8689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690   (exit $ac_status); }; } &&
8691          { ac_try='test -s conftest$ac_exeext'
8692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693   (eval $ac_try) 2>&5
8694   ac_status=$?
8695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696   (exit $ac_status); }; }; then
8697   unet_cv_c___va_copy="yes"
8698 else
8699   echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8701
8702 unet_cv_c___va_copy="no"
8703
8704 fi
8705 rm -f conftest.err conftest.$ac_objext \
8706       conftest$ac_exeext conftest.$ac_ext
8707 fi
8708 echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
8709 echo "${ECHO_T}$unet_cv_c___va_copy" >&6
8710 if test "$unet_cv_c___va_copy" = "yes" ; then
8711
8712 cat >>confdefs.h <<\_ACEOF
8713 #define HAVE___VA_COPY 1
8714 _ACEOF
8715
8716 fi
8717
8718 echo "$as_me:$LINENO: checking what name to give the symlink" >&5
8719 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6
8720
8721 # Check whether --with-symlink or --without-symlink was given.
8722 if test "${with_symlink+set}" = set; then
8723   withval="$with_symlink"
8724   unet_cv_with_symlink=$with_symlink
8725 else
8726   if test "${unet_cv_with_symlink+set}" = set; then
8727   echo $ECHO_N "(cached) $ECHO_C" >&6
8728 else
8729   unet_cv_with_symlink="ircd"
8730 fi
8731
8732 fi;
8733
8734 if test x"$unet_cv_with_symlink" = xyes; then
8735     unet_cv_with_symlink="ircd"
8736 fi
8737
8738 echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
8739 echo "${ECHO_T}$unet_cv_with_symlink" >&6
8740
8741 if test x"$unet_cv_with_symlink" = xno; then
8742     INSTALL_RULE=install-no-symlink
8743     SYMLINK=
8744 else
8745     INSTALL_RULE=install-with-symlink
8746     SYMLINK=$unet_cv_with_symlink
8747 fi
8748
8749
8750
8751 echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
8752 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6
8753
8754 # Check whether --with-mode or --without-mode was given.
8755 if test "${with_mode+set}" = set; then
8756   withval="$with_mode"
8757   unet_cv_with_mode=$with_mode
8758 else
8759   if test "${unet_cv_with_mode+set}" = set; then
8760   echo $ECHO_N "(cached) $ECHO_C" >&6
8761 else
8762   unet_cv_with_mode=711
8763 fi
8764
8765 fi;
8766
8767 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
8768     unet_cv_with_mode=711
8769 fi
8770
8771 echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
8772 echo "${ECHO_T}$unet_cv_with_mode" >&6
8773
8774 IRCDMODE=$unet_cv_with_mode
8775
8776
8777 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
8778 echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
8779 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6
8780
8781 # Check whether --with-owner or --without-owner was given.
8782 if test "${with_owner+set}" = set; then
8783   withval="$with_owner"
8784   unet_cv_with_owner=$with_owner
8785 else
8786   if test "${unet_cv_with_owner+set}" = set; then
8787   echo $ECHO_N "(cached) $ECHO_C" >&6
8788 else
8789   unet_cv_with_owner=$unet_uid
8790 fi
8791
8792 fi;
8793
8794 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
8795     unet_cv_with_owner=$unet_uid
8796 fi
8797
8798 echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
8799 echo "${ECHO_T}$unet_cv_with_owner" >&6
8800
8801 IRCDOWN=$unet_cv_with_owner
8802
8803
8804 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
8805 echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
8806 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6
8807
8808 # Check whether --with-group or --without-group was given.
8809 if test "${with_group+set}" = set; then
8810   withval="$with_group"
8811   unet_cv_with_group=$with_group
8812 else
8813   if test "${unet_cv_with_group+set}" = set; then
8814   echo $ECHO_N "(cached) $ECHO_C" >&6
8815 else
8816   unet_cv_with_group=$unet_gid
8817 fi
8818
8819 fi;
8820
8821 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
8822     unet_cv_with_group=$unet_gid
8823 fi
8824
8825 echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
8826 echo "${ECHO_T}$unet_cv_with_group" >&6
8827
8828 IRCDGRP=$unet_cv_with_group
8829
8830
8831 unet_domain=
8832 if test -f /etc/resolv.conf; then
8833     unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
8834     if test x"$unet_domain" = x; then
8835         unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
8836     fi
8837 fi
8838 echo "$as_me:$LINENO: checking for site domain name" >&5
8839 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6
8840
8841 # Check whether --with-domain or --without-domain was given.
8842 if test "${with_domain+set}" = set; then
8843   withval="$with_domain"
8844   unet_cv_with_domain=$with_domain
8845 else
8846   if test "${unet_cv_with_domain+set}" = set; then
8847   echo $ECHO_N "(cached) $ECHO_C" >&6
8848 else
8849   unet_cv_with_domain=$unet_domain
8850 fi
8851
8852 fi;
8853
8854 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
8855     unet_cv_with_domain=$unet_domain
8856 fi
8857 if test x"$unet_cv_with_domain" = xno; then
8858     { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
8859 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
8860    { (exit 1); exit 1; }; }
8861 fi
8862
8863 echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
8864 echo "${ECHO_T}$unet_cv_with_domain" >&6
8865
8866
8867 cat >>confdefs.h <<_ACEOF
8868 #define DOMAINNAME "*$unet_cv_with_domain"
8869 _ACEOF
8870
8871
8872 echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
8873 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6
8874
8875 # Check whether --with-chroot or --without-chroot was given.
8876 if test "${with_chroot+set}" = set; then
8877   withval="$with_chroot"
8878   unet_cv_with_chroot=$with_chroot
8879 else
8880   if test "${unet_cv_with_chroot+set}" = set; then
8881   echo $ECHO_N "(cached) $ECHO_C" >&6
8882 else
8883   unet_cv_with_chroot=no
8884 fi
8885
8886 fi;
8887
8888 if test x"$unet_cv_with_chroot" = xyes; then
8889     { { echo "$as_me:$LINENO: error: --with-chroot given with no directory.  See doc/readme.chroot." >&5
8890 echo "$as_me: error: --with-chroot given with no directory.  See doc/readme.chroot." >&2;}
8891    { (exit 1); exit 1; }; }
8892 fi
8893
8894 # Ensure there are no trailing /'s to mess us up
8895 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
8896
8897 echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
8898 echo "${ECHO_T}$unet_cv_with_chroot" >&6
8899
8900 # Deal with the annoying value "NONE" here
8901 unet_save_prefix=$prefix
8902 if test x"$prefix" = xNONE; then
8903     prefix=$ac_default_prefix
8904 else
8905     prefix=$prefix
8906 fi
8907
8908 unet_save_exec_prefix=$exec_prefix
8909 if test x"$exec_prefix" = xNONE; then
8910     exec_prefix=$prefix
8911 else
8912     exec_prefix=$exec_prefix
8913 fi
8914
8915 # Obtain the actual interesting directories
8916 unet_bindir=`eval echo "$bindir"`
8917 unet_libdir=`eval echo "$libdir"`
8918
8919 # Restore the original settings of $prefix and $exec_prefix
8920 prefix=$unet_save_prefix
8921 exec_prefix=$unet_save_exec_prefix
8922
8923 echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
8924 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6
8925 if test x"$unet_cv_with_symlink" = xno; then
8926     unet_spath="$unet_bindir/ircd"
8927 else
8928     unet_spath="$unet_bindir/$unet_cv_with_symlink"
8929 fi
8930 echo "$as_me:$LINENO: result: $unet_spath" >&5
8931 echo "${ECHO_T}$unet_spath" >&6
8932
8933 if test x"$unet_cv_with_chroot" != xno; then
8934     if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
8935         unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
8936     else
8937         { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
8938 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
8939     fi
8940 fi
8941
8942
8943 cat >>confdefs.h <<_ACEOF
8944 #define SPATH "$unet_spath"
8945 _ACEOF
8946
8947
8948 echo "$as_me:$LINENO: checking what the data directory should be" >&5
8949 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6
8950
8951 # Check whether --with-dpath or --without-dpath was given.
8952 if test "${with_dpath+set}" = set; then
8953   withval="$with_dpath"
8954   unet_cv_with_dpath=$with_dpath
8955 else
8956   if test "${unet_cv_with_dpath+set}" = set; then
8957   echo $ECHO_N "(cached) $ECHO_C" >&6
8958 else
8959   unet_cv_with_dpath=$unet_libdir
8960 fi
8961
8962 fi;
8963
8964 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
8965     unet_cv_with_dpath=$unet_libdir
8966 fi
8967
8968 # Ensure there are no trailing /'s to mess us up
8969 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
8970
8971 echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
8972 echo "${ECHO_T}$unet_cv_with_dpath" >&6
8973
8974 if test x"$unet_cv_with_chroot" != xno; then
8975     if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
8976         unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
8977     else
8978         { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
8979 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
8980    { (exit 1); exit 1; }; }
8981     fi
8982 else
8983     unet_dpath=$unet_cv_with_dpath
8984 fi
8985
8986
8987 cat >>confdefs.h <<_ACEOF
8988 #define DPATH "$unet_dpath"
8989 _ACEOF
8990
8991
8992 DPATH=$unet_cv_with_dpath
8993
8994
8995 echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
8996 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6
8997
8998 # Check whether --with-cpath or --without-cpath was given.
8999 if test "${with_cpath+set}" = set; then
9000   withval="$with_cpath"
9001   unet_cv_with_cpath=$with_cpath
9002 else
9003   if test "${unet_cv_with_cpath+set}" = set; then
9004   echo $ECHO_N "(cached) $ECHO_C" >&6
9005 else
9006   unet_cv_with_cpath="ircd.conf"
9007 fi
9008
9009 fi;
9010
9011 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
9012     unet_cv_with_cpath="ircd.conf"
9013 fi
9014
9015 echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
9016 echo "${ECHO_T}$unet_cv_with_cpath" >&6
9017
9018 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
9019     # Absolute path; check against chroot stuff
9020     if test x"$unet_cv_with_chroot" != xno; then
9021         if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
9022             unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
9023         else
9024             { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
9025 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
9026    { (exit 1); exit 1; }; }
9027         fi
9028     else
9029         unet_cpath=$unet_cv_with_cpath
9030     fi
9031 else
9032     unet_cpath=$unet_cv_with_cpath
9033 fi
9034
9035
9036 cat >>confdefs.h <<_ACEOF
9037 #define CPATH "$unet_cpath"
9038 _ACEOF
9039
9040
9041 echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
9042 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6
9043
9044 # Check whether --with-lpath or --without-lpath was given.
9045 if test "${with_lpath+set}" = set; then
9046   withval="$with_lpath"
9047   unet_cv_with_lpath=$with_lpath
9048 else
9049   if test "${unet_cv_with_lpath+set}" = set; then
9050   echo $ECHO_N "(cached) $ECHO_C" >&6
9051 else
9052   unet_cv_with_lpath="ircd.log"
9053 fi
9054
9055 fi;
9056
9057 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
9058     unet_cv_with_lpath="ircd.log"
9059 fi
9060
9061 echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
9062 echo "${ECHO_T}$unet_cv_with_lpath" >&6
9063
9064 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
9065     # Absolute path; check against chroot stuff
9066     if test x"$unet_cv_with_chroot" != xno; then
9067         if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
9068             unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
9069         else
9070             { 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
9071 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;}
9072             unet_cv_with_lpath="ircd.log"
9073             unet_lpath="ircd.log"
9074         fi
9075     else
9076         unet_lpath=$unet_cv_with_lpath
9077     fi
9078 else
9079     unet_lpath=$unet_cv_with_lpath
9080 fi
9081
9082
9083 cat >>confdefs.h <<_ACEOF
9084 #define LPATH "$unet_lpath"
9085 _ACEOF
9086
9087
9088 unet_maxcon=`ulimit -Hn`
9089 if test x"$unet_maxcon" = xunlimited; then
9090     unet_maxcon=`ulimit -Sn`
9091 fi
9092 unet_maxcon=`expr $unet_maxcon - 4`
9093 echo "$as_me:$LINENO: checking max connections" >&5
9094 echo $ECHO_N "checking max connections... $ECHO_C" >&6
9095
9096 # Check whether --with-maxcon or --without-maxcon was given.
9097 if test "${with_maxcon+set}" = set; then
9098   withval="$with_maxcon"
9099   unet_cv_with_maxcon=$with_maxcon
9100 else
9101   if test "${unet_cv_with_maxcon+set}" = set; then
9102   echo $ECHO_N "(cached) $ECHO_C" >&6
9103 else
9104   unet_cv_with_maxcon=$unet_maxcon
9105 fi
9106
9107 fi;
9108
9109 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
9110     unet_cv_with_maxcon=$unet_maxcon
9111 fi
9112
9113 echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
9114 echo "${ECHO_T}$unet_cv_with_maxcon" >&6
9115
9116
9117 cat >>confdefs.h <<_ACEOF
9118 #define MAXCONNECTIONS $unet_cv_with_maxcon
9119 _ACEOF
9120
9121
9122                               ac_config_files="$ac_config_files Makefile ircd/Makefile doc/Makefile"
9123           ac_config_commands="$ac_config_commands default"
9124 cat >confcache <<\_ACEOF
9125 # This file is a shell script that caches the results of configure
9126 # tests run on this system so they can be shared between configure
9127 # scripts and configure runs, see configure's option --config-cache.
9128 # It is not useful on other systems.  If it contains results you don't
9129 # want to keep, you may remove or edit it.
9130 #
9131 # config.status only pays attention to the cache file if you give it
9132 # the --recheck option to rerun configure.
9133 #
9134 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9135 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9136 # following values.
9137
9138 _ACEOF
9139
9140 # The following way of writing the cache mishandles newlines in values,
9141 # but we know of no workaround that is simple, portable, and efficient.
9142 # So, don't put newlines in cache variables' values.
9143 # Ultrix sh set writes to stderr and can't be redirected directly,
9144 # and sets the high bit in the cache file unless we assign to the vars.
9145 {
9146   (set) 2>&1 |
9147     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9148     *ac_space=\ *)
9149       # `set' does not quote correctly, so add quotes (double-quote
9150       # substitution turns \\\\ into \\, and sed turns \\ into \).
9151       sed -n \
9152         "s/'/'\\\\''/g;
9153           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9154       ;;
9155     *)
9156       # `set' quotes correctly as required by POSIX, so do not add quotes.
9157       sed -n \
9158         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9159       ;;
9160     esac;
9161 } |
9162   sed '
9163      t clear
9164      : clear
9165      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9166      t end
9167      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9168      : end' >>confcache
9169 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9170   if test -w $cache_file; then
9171     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9172     cat confcache >$cache_file
9173   else
9174     echo "not updating unwritable cache $cache_file"
9175   fi
9176 fi
9177 rm -f confcache
9178
9179 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9180 # Let make expand exec_prefix.
9181 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9182
9183 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9184 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9185 # trailing colons and then remove the whole line if VPATH becomes empty
9186 # (actually we leave an empty line to preserve line numbers).
9187 if test "x$srcdir" = x.; then
9188   ac_vpsub='/^[  ]*VPATH[        ]*=/{
9189 s/:*\$(srcdir):*/:/;
9190 s/:*\${srcdir}:*/:/;
9191 s/:*@srcdir@:*/:/;
9192 s/^\([^=]*=[     ]*\):*/\1/;
9193 s/:*$//;
9194 s/^[^=]*=[       ]*$//;
9195 }'
9196 fi
9197
9198 DEFS=-DHAVE_CONFIG_H
9199
9200 ac_libobjs=
9201 ac_ltlibobjs=
9202 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9203   # 1. Remove the extension, and $U if already installed.
9204   ac_i=`echo "$ac_i" |
9205          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9206   # 2. Add them.
9207   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9208   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9209 done
9210 LIBOBJS=$ac_libobjs
9211
9212 LTLIBOBJS=$ac_ltlibobjs
9213
9214
9215
9216 : ${CONFIG_STATUS=./config.status}
9217 ac_clean_files_save=$ac_clean_files
9218 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9219 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9220 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9221 cat >$CONFIG_STATUS <<_ACEOF
9222 #! $SHELL
9223 # Generated by $as_me.
9224 # Run this file to recreate the current configuration.
9225 # Compiler output produced by configure, useful for debugging
9226 # configure, is in config.log if it exists.
9227
9228 debug=false
9229 ac_cs_recheck=false
9230 ac_cs_silent=false
9231 SHELL=\${CONFIG_SHELL-$SHELL}
9232 _ACEOF
9233
9234 cat >>$CONFIG_STATUS <<\_ACEOF
9235 ## --------------------- ##
9236 ## M4sh Initialization.  ##
9237 ## --------------------- ##
9238
9239 # Be Bourne compatible
9240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9241   emulate sh
9242   NULLCMD=:
9243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9244   # is contrary to our usage.  Disable this feature.
9245   alias -g '${1+"$@"}'='"$@"'
9246 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9247   set -o posix
9248 fi
9249 DUALCASE=1; export DUALCASE # for MKS sh
9250
9251 # Support unset when possible.
9252 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9253   as_unset=unset
9254 else
9255   as_unset=false
9256 fi
9257
9258
9259 # Work around bugs in pre-3.0 UWIN ksh.
9260 $as_unset ENV MAIL MAILPATH
9261 PS1='$ '
9262 PS2='> '
9263 PS4='+ '
9264
9265 # NLS nuisances.
9266 for as_var in \
9267   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9268   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9269   LC_TELEPHONE LC_TIME
9270 do
9271   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9272     eval $as_var=C; export $as_var
9273   else
9274     $as_unset $as_var
9275   fi
9276 done
9277
9278 # Required to use basename.
9279 if expr a : '\(a\)' >/dev/null 2>&1; then
9280   as_expr=expr
9281 else
9282   as_expr=false
9283 fi
9284
9285 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9286   as_basename=basename
9287 else
9288   as_basename=false
9289 fi
9290
9291
9292 # Name of the executable.
9293 as_me=`$as_basename "$0" ||
9294 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9295          X"$0" : 'X\(//\)$' \| \
9296          X"$0" : 'X\(/\)$' \| \
9297          .     : '\(.\)' 2>/dev/null ||
9298 echo X/"$0" |
9299     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9300           /^X\/\(\/\/\)$/{ s//\1/; q; }
9301           /^X\/\(\/\).*/{ s//\1/; q; }
9302           s/.*/./; q'`
9303
9304
9305 # PATH needs CR, and LINENO needs CR and PATH.
9306 # Avoid depending upon Character Ranges.
9307 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9308 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9309 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9310 as_cr_digits='0123456789'
9311 as_cr_alnum=$as_cr_Letters$as_cr_digits
9312
9313 # The user is always right.
9314 if test "${PATH_SEPARATOR+set}" != set; then
9315   echo "#! /bin/sh" >conf$$.sh
9316   echo  "exit 0"   >>conf$$.sh
9317   chmod +x conf$$.sh
9318   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9319     PATH_SEPARATOR=';'
9320   else
9321     PATH_SEPARATOR=:
9322   fi
9323   rm -f conf$$.sh
9324 fi
9325
9326
9327   as_lineno_1=$LINENO
9328   as_lineno_2=$LINENO
9329   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9330   test "x$as_lineno_1" != "x$as_lineno_2" &&
9331   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9332   # Find who we are.  Look in the path if we contain no path at all
9333   # relative or not.
9334   case $0 in
9335     *[\\/]* ) as_myself=$0 ;;
9336     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9337 for as_dir in $PATH
9338 do
9339   IFS=$as_save_IFS
9340   test -z "$as_dir" && as_dir=.
9341   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9342 done
9343
9344        ;;
9345   esac
9346   # We did not find ourselves, most probably we were run as `sh COMMAND'
9347   # in which case we are not to be found in the path.
9348   if test "x$as_myself" = x; then
9349     as_myself=$0
9350   fi
9351   if test ! -f "$as_myself"; then
9352     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9353 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9354    { (exit 1); exit 1; }; }
9355   fi
9356   case $CONFIG_SHELL in
9357   '')
9358     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9359 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9360 do
9361   IFS=$as_save_IFS
9362   test -z "$as_dir" && as_dir=.
9363   for as_base in sh bash ksh sh5; do
9364          case $as_dir in
9365          /*)
9366            if ("$as_dir/$as_base" -c '
9367   as_lineno_1=$LINENO
9368   as_lineno_2=$LINENO
9369   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9370   test "x$as_lineno_1" != "x$as_lineno_2" &&
9371   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9372              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9373              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9374              CONFIG_SHELL=$as_dir/$as_base
9375              export CONFIG_SHELL
9376              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9377            fi;;
9378          esac
9379        done
9380 done
9381 ;;
9382   esac
9383
9384   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9385   # uniformly replaced by the line number.  The first 'sed' inserts a
9386   # line-number line before each line; the second 'sed' does the real
9387   # work.  The second script uses 'N' to pair each line-number line
9388   # with the numbered line, and appends trailing '-' during
9389   # substitution so that $LINENO is not a special case at line end.
9390   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9391   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9392   sed '=' <$as_myself |
9393     sed '
9394       N
9395       s,$,-,
9396       : loop
9397       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9398       t loop
9399       s,-$,,
9400       s,^['$as_cr_digits']*\n,,
9401     ' >$as_me.lineno &&
9402   chmod +x $as_me.lineno ||
9403     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9404 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9405    { (exit 1); exit 1; }; }
9406
9407   # Don't try to exec as it changes $[0], causing all sort of problems
9408   # (the dirname of $[0] is not the place where we might find the
9409   # original and so on.  Autoconf is especially sensible to this).
9410   . ./$as_me.lineno
9411   # Exit status is that of the last command.
9412   exit
9413 }
9414
9415
9416 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9417   *c*,-n*) ECHO_N= ECHO_C='
9418 ' ECHO_T='      ' ;;
9419   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9420   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9421 esac
9422
9423 if expr a : '\(a\)' >/dev/null 2>&1; then
9424   as_expr=expr
9425 else
9426   as_expr=false
9427 fi
9428
9429 rm -f conf$$ conf$$.exe conf$$.file
9430 echo >conf$$.file
9431 if ln -s conf$$.file conf$$ 2>/dev/null; then
9432   # We could just check for DJGPP; but this test a) works b) is more generic
9433   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9434   if test -f conf$$.exe; then
9435     # Don't use ln at all; we don't have any links
9436     as_ln_s='cp -p'
9437   else
9438     as_ln_s='ln -s'
9439   fi
9440 elif ln conf$$.file conf$$ 2>/dev/null; then
9441   as_ln_s=ln
9442 else
9443   as_ln_s='cp -p'
9444 fi
9445 rm -f conf$$ conf$$.exe conf$$.file
9446
9447 if mkdir -p . 2>/dev/null; then
9448   as_mkdir_p=:
9449 else
9450   test -d ./-p && rmdir ./-p
9451   as_mkdir_p=false
9452 fi
9453
9454 as_executable_p="test -f"
9455
9456 # Sed expression to map a string onto a valid CPP name.
9457 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9458
9459 # Sed expression to map a string onto a valid variable name.
9460 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9461
9462
9463 # IFS
9464 # We need space, tab and new line, in precisely that order.
9465 as_nl='
9466 '
9467 IFS="   $as_nl"
9468
9469 # CDPATH.
9470 $as_unset CDPATH
9471
9472 exec 6>&1
9473
9474 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9475 # report actual input values of CONFIG_FILES etc. instead of their
9476 # values after options handling.  Logging --version etc. is OK.
9477 exec 5>>config.log
9478 {
9479   echo
9480   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9481 ## Running $as_me. ##
9482 _ASBOX
9483 } >&5
9484 cat >&5 <<_CSEOF
9485
9486 This file was extended by $as_me, which was
9487 generated by GNU Autoconf 2.59.  Invocation command line was
9488
9489   CONFIG_FILES    = $CONFIG_FILES
9490   CONFIG_HEADERS  = $CONFIG_HEADERS
9491   CONFIG_LINKS    = $CONFIG_LINKS
9492   CONFIG_COMMANDS = $CONFIG_COMMANDS
9493   $ $0 $@
9494
9495 _CSEOF
9496 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9497 echo >&5
9498 _ACEOF
9499
9500 # Files that config.status was made for.
9501 if test -n "$ac_config_files"; then
9502   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9503 fi
9504
9505 if test -n "$ac_config_headers"; then
9506   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9507 fi
9508
9509 if test -n "$ac_config_links"; then
9510   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9511 fi
9512
9513 if test -n "$ac_config_commands"; then
9514   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9515 fi
9516
9517 cat >>$CONFIG_STATUS <<\_ACEOF
9518
9519 ac_cs_usage="\
9520 \`$as_me' instantiates files from templates according to the
9521 current configuration.
9522
9523 Usage: $0 [OPTIONS] [FILE]...
9524
9525   -h, --help       print this help, then exit
9526   -V, --version    print version number, then exit
9527   -q, --quiet      do not print progress messages
9528   -d, --debug      don't remove temporary files
9529       --recheck    update $as_me by reconfiguring in the same conditions
9530   --file=FILE[:TEMPLATE]
9531                    instantiate the configuration file FILE
9532   --header=FILE[:TEMPLATE]
9533                    instantiate the configuration header FILE
9534
9535 Configuration files:
9536 $config_files
9537
9538 Configuration headers:
9539 $config_headers
9540
9541 Configuration commands:
9542 $config_commands
9543
9544 Report bugs to <bug-autoconf@gnu.org>."
9545 _ACEOF
9546
9547 cat >>$CONFIG_STATUS <<_ACEOF
9548 ac_cs_version="\\
9549 config.status
9550 configured by $0, generated by GNU Autoconf 2.59,
9551   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9552
9553 Copyright (C) 2003 Free Software Foundation, Inc.
9554 This config.status script is free software; the Free Software Foundation
9555 gives unlimited permission to copy, distribute and modify it."
9556 srcdir=$srcdir
9557 INSTALL="$INSTALL"
9558 _ACEOF
9559
9560 cat >>$CONFIG_STATUS <<\_ACEOF
9561 # If no file are specified by the user, then we need to provide default
9562 # value.  By we need to know if files were specified by the user.
9563 ac_need_defaults=:
9564 while test $# != 0
9565 do
9566   case $1 in
9567   --*=*)
9568     ac_option=`expr "x$1" : 'x\([^=]*\)='`
9569     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9570     ac_shift=:
9571     ;;
9572   -*)
9573     ac_option=$1
9574     ac_optarg=$2
9575     ac_shift=shift
9576     ;;
9577   *) # This is not an option, so the user has probably given explicit
9578      # arguments.
9579      ac_option=$1
9580      ac_need_defaults=false;;
9581   esac
9582
9583   case $ac_option in
9584   # Handling of the options.
9585 _ACEOF
9586 cat >>$CONFIG_STATUS <<\_ACEOF
9587   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9588     ac_cs_recheck=: ;;
9589   --version | --vers* | -V )
9590     echo "$ac_cs_version"; exit 0 ;;
9591   --he | --h)
9592     # Conflict between --help and --header
9593     { { echo "$as_me:$LINENO: error: ambiguous option: $1
9594 Try \`$0 --help' for more information." >&5
9595 echo "$as_me: error: ambiguous option: $1
9596 Try \`$0 --help' for more information." >&2;}
9597    { (exit 1); exit 1; }; };;
9598   --help | --hel | -h )
9599     echo "$ac_cs_usage"; exit 0 ;;
9600   --debug | --d* | -d )
9601     debug=: ;;
9602   --file | --fil | --fi | --f )
9603     $ac_shift
9604     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9605     ac_need_defaults=false;;
9606   --header | --heade | --head | --hea )
9607     $ac_shift
9608     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9609     ac_need_defaults=false;;
9610   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9611   | -silent | --silent | --silen | --sile | --sil | --si | --s)
9612     ac_cs_silent=: ;;
9613
9614   # This is an error.
9615   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9616 Try \`$0 --help' for more information." >&5
9617 echo "$as_me: error: unrecognized option: $1
9618 Try \`$0 --help' for more information." >&2;}
9619    { (exit 1); exit 1; }; } ;;
9620
9621   *) ac_config_targets="$ac_config_targets $1" ;;
9622
9623   esac
9624   shift
9625 done
9626
9627 ac_configure_extra_args=
9628
9629 if $ac_cs_silent; then
9630   exec 6>/dev/null
9631   ac_configure_extra_args="$ac_configure_extra_args --silent"
9632 fi
9633
9634 _ACEOF
9635 cat >>$CONFIG_STATUS <<_ACEOF
9636 if \$ac_cs_recheck; then
9637   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9638   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9639 fi
9640
9641 _ACEOF
9642
9643
9644
9645
9646
9647 cat >>$CONFIG_STATUS <<\_ACEOF
9648 for ac_config_target in $ac_config_targets
9649 do
9650   case "$ac_config_target" in
9651   # Handling of arguments.
9652   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9653   "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
9654   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9655   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9656   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9657   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9658 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9659    { (exit 1); exit 1; }; };;
9660   esac
9661 done
9662
9663 # If the user did not use the arguments to specify the items to instantiate,
9664 # then the envvar interface is used.  Set only those that are not.
9665 # We use the long form for the default assignment because of an extremely
9666 # bizarre bug on SunOS 4.1.3.
9667 if $ac_need_defaults; then
9668   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9669   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9670   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9671 fi
9672
9673 # Have a temporary directory for convenience.  Make it in the build tree
9674 # simply because there is no reason to put it here, and in addition,
9675 # creating and moving files from /tmp can sometimes cause problems.
9676 # Create a temporary directory, and hook for its removal unless debugging.
9677 $debug ||
9678 {
9679   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9680   trap '{ (exit 1); exit 1; }' 1 2 13 15
9681 }
9682
9683 # Create a (secure) tmp directory for tmp files.
9684
9685 {
9686   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9687   test -n "$tmp" && test -d "$tmp"
9688 }  ||
9689 {
9690   tmp=./confstat$$-$RANDOM
9691   (umask 077 && mkdir $tmp)
9692 } ||
9693 {
9694    echo "$me: cannot create a temporary directory in ." >&2
9695    { (exit 1); exit 1; }
9696 }
9697
9698 _ACEOF
9699
9700 cat >>$CONFIG_STATUS <<_ACEOF
9701
9702 #
9703 # CONFIG_FILES section.
9704 #
9705
9706 # No need to generate the scripts if there are no CONFIG_FILES.
9707 # This happens for instance when ./config.status config.h
9708 if test -n "\$CONFIG_FILES"; then
9709   # Protect against being on the right side of a sed subst in config.status.
9710   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9711    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9712 s,@SHELL@,$SHELL,;t t
9713 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9714 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9715 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9716 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9717 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9718 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9719 s,@exec_prefix@,$exec_prefix,;t t
9720 s,@prefix@,$prefix,;t t
9721 s,@program_transform_name@,$program_transform_name,;t t
9722 s,@bindir@,$bindir,;t t
9723 s,@sbindir@,$sbindir,;t t
9724 s,@libexecdir@,$libexecdir,;t t
9725 s,@datadir@,$datadir,;t t
9726 s,@sysconfdir@,$sysconfdir,;t t
9727 s,@sharedstatedir@,$sharedstatedir,;t t
9728 s,@localstatedir@,$localstatedir,;t t
9729 s,@libdir@,$libdir,;t t
9730 s,@includedir@,$includedir,;t t
9731 s,@oldincludedir@,$oldincludedir,;t t
9732 s,@infodir@,$infodir,;t t
9733 s,@mandir@,$mandir,;t t
9734 s,@build_alias@,$build_alias,;t t
9735 s,@host_alias@,$host_alias,;t t
9736 s,@target_alias@,$target_alias,;t t
9737 s,@DEFS@,$DEFS,;t t
9738 s,@ECHO_C@,$ECHO_C,;t t
9739 s,@ECHO_N@,$ECHO_N,;t t
9740 s,@ECHO_T@,$ECHO_T,;t t
9741 s,@LIBS@,$LIBS,;t t
9742 s,@build@,$build,;t t
9743 s,@build_cpu@,$build_cpu,;t t
9744 s,@build_vendor@,$build_vendor,;t t
9745 s,@build_os@,$build_os,;t t
9746 s,@host@,$host,;t t
9747 s,@host_cpu@,$host_cpu,;t t
9748 s,@host_vendor@,$host_vendor,;t t
9749 s,@host_os@,$host_os,;t t
9750 s,@CC@,$CC,;t t
9751 s,@CFLAGS@,$CFLAGS,;t t
9752 s,@LDFLAGS@,$LDFLAGS,;t t
9753 s,@CPPFLAGS@,$CPPFLAGS,;t t
9754 s,@ac_ct_CC@,$ac_ct_CC,;t t
9755 s,@EXEEXT@,$EXEEXT,;t t
9756 s,@OBJEXT@,$OBJEXT,;t t
9757 s,@CPP@,$CPP,;t t
9758 s,@EGREP@,$EGREP,;t t
9759 s,@AWK@,$AWK,;t t
9760 s,@SET_MAKE@,$SET_MAKE,;t t
9761 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9762 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9763 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9764 s,@LN_S@,$LN_S,;t t
9765 s,@RMPROG@,$RMPROG,;t t
9766 s,@SHPROG@,$SHPROG,;t t
9767 s,@LEX@,$LEX,;t t
9768 s,@LEXLIB@,$LEXLIB,;t t
9769 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9770 s,@YACC@,$YACC,;t t
9771 s,@ENGINE_C@,$ENGINE_C,;t t
9772 s,@INSTALL_RULE@,$INSTALL_RULE,;t t
9773 s,@SYMLINK@,$SYMLINK,;t t
9774 s,@IRCDMODE@,$IRCDMODE,;t t
9775 s,@IRCDOWN@,$IRCDOWN,;t t
9776 s,@IRCDGRP@,$IRCDGRP,;t t
9777 s,@DPATH@,$DPATH,;t t
9778 s,@LIBOBJS@,$LIBOBJS,;t t
9779 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9780 CEOF
9781
9782 _ACEOF
9783
9784   cat >>$CONFIG_STATUS <<\_ACEOF
9785   # Split the substitutions into bite-sized pieces for seds with
9786   # small command number limits, like on Digital OSF/1 and HP-UX.
9787   ac_max_sed_lines=48
9788   ac_sed_frag=1 # Number of current file.
9789   ac_beg=1 # First line for current file.
9790   ac_end=$ac_max_sed_lines # Line after last line for current file.
9791   ac_more_lines=:
9792   ac_sed_cmds=
9793   while $ac_more_lines; do
9794     if test $ac_beg -gt 1; then
9795       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9796     else
9797       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9798     fi
9799     if test ! -s $tmp/subs.frag; then
9800       ac_more_lines=false
9801     else
9802       # The purpose of the label and of the branching condition is to
9803       # speed up the sed processing (if there are no `@' at all, there
9804       # is no need to browse any of the substitutions).
9805       # These are the two extra sed commands mentioned above.
9806       (echo ':t
9807   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9808       if test -z "$ac_sed_cmds"; then
9809         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9810       else
9811         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9812       fi
9813       ac_sed_frag=`expr $ac_sed_frag + 1`
9814       ac_beg=$ac_end
9815       ac_end=`expr $ac_end + $ac_max_sed_lines`
9816     fi
9817   done
9818   if test -z "$ac_sed_cmds"; then
9819     ac_sed_cmds=cat
9820   fi
9821 fi # test -n "$CONFIG_FILES"
9822
9823 _ACEOF
9824 cat >>$CONFIG_STATUS <<\_ACEOF
9825 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9826   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9827   case $ac_file in
9828   - | *:- | *:-:* ) # input from stdin
9829         cat >$tmp/stdin
9830         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9831         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9832   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9833         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9834   * )   ac_file_in=$ac_file.in ;;
9835   esac
9836
9837   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9838   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9839 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9840          X"$ac_file" : 'X\(//\)[^/]' \| \
9841          X"$ac_file" : 'X\(//\)$' \| \
9842          X"$ac_file" : 'X\(/\)' \| \
9843          .     : '\(.\)' 2>/dev/null ||
9844 echo X"$ac_file" |
9845     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9846           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9847           /^X\(\/\/\)$/{ s//\1/; q; }
9848           /^X\(\/\).*/{ s//\1/; q; }
9849           s/.*/./; q'`
9850   { if $as_mkdir_p; then
9851     mkdir -p "$ac_dir"
9852   else
9853     as_dir="$ac_dir"
9854     as_dirs=
9855     while test ! -d "$as_dir"; do
9856       as_dirs="$as_dir $as_dirs"
9857       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9858 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9859          X"$as_dir" : 'X\(//\)[^/]' \| \
9860          X"$as_dir" : 'X\(//\)$' \| \
9861          X"$as_dir" : 'X\(/\)' \| \
9862          .     : '\(.\)' 2>/dev/null ||
9863 echo X"$as_dir" |
9864     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9865           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9866           /^X\(\/\/\)$/{ s//\1/; q; }
9867           /^X\(\/\).*/{ s//\1/; q; }
9868           s/.*/./; q'`
9869     done
9870     test ! -n "$as_dirs" || mkdir $as_dirs
9871   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9872 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9873    { (exit 1); exit 1; }; }; }
9874
9875   ac_builddir=.
9876
9877 if test "$ac_dir" != .; then
9878   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9879   # A "../" for each directory in $ac_dir_suffix.
9880   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9881 else
9882   ac_dir_suffix= ac_top_builddir=
9883 fi
9884
9885 case $srcdir in
9886   .)  # No --srcdir option.  We are building in place.
9887     ac_srcdir=.
9888     if test -z "$ac_top_builddir"; then
9889        ac_top_srcdir=.
9890     else
9891        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9892     fi ;;
9893   [\\/]* | ?:[\\/]* )  # Absolute path.
9894     ac_srcdir=$srcdir$ac_dir_suffix;
9895     ac_top_srcdir=$srcdir ;;
9896   *) # Relative path.
9897     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9898     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9899 esac
9900
9901 # Do not use `cd foo && pwd` to compute absolute paths, because
9902 # the directories may not exist.
9903 case `pwd` in
9904 .) ac_abs_builddir="$ac_dir";;
9905 *)
9906   case "$ac_dir" in
9907   .) ac_abs_builddir=`pwd`;;
9908   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9909   *) ac_abs_builddir=`pwd`/"$ac_dir";;
9910   esac;;
9911 esac
9912 case $ac_abs_builddir in
9913 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9914 *)
9915   case ${ac_top_builddir}. in
9916   .) ac_abs_top_builddir=$ac_abs_builddir;;
9917   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9918   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9919   esac;;
9920 esac
9921 case $ac_abs_builddir in
9922 .) ac_abs_srcdir=$ac_srcdir;;
9923 *)
9924   case $ac_srcdir in
9925   .) ac_abs_srcdir=$ac_abs_builddir;;
9926   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9927   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9928   esac;;
9929 esac
9930 case $ac_abs_builddir in
9931 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9932 *)
9933   case $ac_top_srcdir in
9934   .) ac_abs_top_srcdir=$ac_abs_builddir;;
9935   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9936   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9937   esac;;
9938 esac
9939
9940
9941   case $INSTALL in
9942   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9943   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9944   esac
9945
9946   # Let's still pretend it is `configure' which instantiates (i.e., don't
9947   # use $as_me), people would be surprised to read:
9948   #    /* config.h.  Generated by config.status.  */
9949   if test x"$ac_file" = x-; then
9950     configure_input=
9951   else
9952     configure_input="$ac_file.  "
9953   fi
9954   configure_input=$configure_input"Generated from `echo $ac_file_in |
9955                                      sed 's,.*/,,'` by configure."
9956
9957   # First look for the input files in the build tree, otherwise in the
9958   # src tree.
9959   ac_file_inputs=`IFS=:
9960     for f in $ac_file_in; do
9961       case $f in
9962       -) echo $tmp/stdin ;;
9963       [\\/$]*)
9964          # Absolute (can't be DOS-style, as IFS=:)
9965          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9966 echo "$as_me: error: cannot find input file: $f" >&2;}
9967    { (exit 1); exit 1; }; }
9968          echo "$f";;
9969       *) # Relative
9970          if test -f "$f"; then
9971            # Build tree
9972            echo "$f"
9973          elif test -f "$srcdir/$f"; then
9974            # Source tree
9975            echo "$srcdir/$f"
9976          else
9977            # /dev/null tree
9978            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9979 echo "$as_me: error: cannot find input file: $f" >&2;}
9980    { (exit 1); exit 1; }; }
9981          fi;;
9982       esac
9983     done` || { (exit 1); exit 1; }
9984
9985   if test x"$ac_file" != x-; then
9986     { echo "$as_me:$LINENO: creating $ac_file" >&5
9987 echo "$as_me: creating $ac_file" >&6;}
9988     rm -f "$ac_file"
9989   fi
9990 _ACEOF
9991 cat >>$CONFIG_STATUS <<_ACEOF
9992   sed "$ac_vpsub
9993 $extrasub
9994 _ACEOF
9995 cat >>$CONFIG_STATUS <<\_ACEOF
9996 :t
9997 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9998 s,@configure_input@,$configure_input,;t t
9999 s,@srcdir@,$ac_srcdir,;t t
10000 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10001 s,@top_srcdir@,$ac_top_srcdir,;t t
10002 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10003 s,@builddir@,$ac_builddir,;t t
10004 s,@abs_builddir@,$ac_abs_builddir,;t t
10005 s,@top_builddir@,$ac_top_builddir,;t t
10006 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10007 s,@INSTALL@,$ac_INSTALL,;t t
10008 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10009   rm -f $tmp/stdin
10010   if test x"$ac_file" != x-; then
10011     mv $tmp/out $ac_file
10012   else
10013     cat $tmp/out
10014     rm -f $tmp/out
10015   fi
10016
10017 done
10018 _ACEOF
10019 cat >>$CONFIG_STATUS <<\_ACEOF
10020
10021 #
10022 # CONFIG_HEADER section.
10023 #
10024
10025 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10026 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10027 #
10028 # ac_d sets the value in "#define NAME VALUE" lines.
10029 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
10030 ac_dB='[         ].*$,\1#\2'
10031 ac_dC=' '
10032 ac_dD=',;t'
10033 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10034 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10035 ac_uB='$,\1#\2define\3'
10036 ac_uC=' '
10037 ac_uD=',;t'
10038
10039 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10040   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10041   case $ac_file in
10042   - | *:- | *:-:* ) # input from stdin
10043         cat >$tmp/stdin
10044         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10045         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10046   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10047         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10048   * )   ac_file_in=$ac_file.in ;;
10049   esac
10050
10051   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10052 echo "$as_me: creating $ac_file" >&6;}
10053
10054   # First look for the input files in the build tree, otherwise in the
10055   # src tree.
10056   ac_file_inputs=`IFS=:
10057     for f in $ac_file_in; do
10058       case $f in
10059       -) echo $tmp/stdin ;;
10060       [\\/$]*)
10061          # Absolute (can't be DOS-style, as IFS=:)
10062          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10063 echo "$as_me: error: cannot find input file: $f" >&2;}
10064    { (exit 1); exit 1; }; }
10065          # Do quote $f, to prevent DOS paths from being IFS'd.
10066          echo "$f";;
10067       *) # Relative
10068          if test -f "$f"; then
10069            # Build tree
10070            echo "$f"
10071          elif test -f "$srcdir/$f"; then
10072            # Source tree
10073            echo "$srcdir/$f"
10074          else
10075            # /dev/null tree
10076            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10077 echo "$as_me: error: cannot find input file: $f" >&2;}
10078    { (exit 1); exit 1; }; }
10079          fi;;
10080       esac
10081     done` || { (exit 1); exit 1; }
10082   # Remove the trailing spaces.
10083   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
10084
10085 _ACEOF
10086
10087 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10088 # `conftest.undefs', that substitutes the proper values into
10089 # config.h.in to produce config.h.  The first handles `#define'
10090 # templates, and the second `#undef' templates.
10091 # And first: Protect against being on the right side of a sed subst in
10092 # config.status.  Protect against being in an unquoted here document
10093 # in config.status.
10094 rm -f conftest.defines conftest.undefs
10095 # Using a here document instead of a string reduces the quoting nightmare.
10096 # Putting comments in sed scripts is not portable.
10097 #
10098 # `end' is used to avoid that the second main sed command (meant for
10099 # 0-ary CPP macros) applies to n-ary macro definitions.
10100 # See the Autoconf documentation for `clear'.
10101 cat >confdef2sed.sed <<\_ACEOF
10102 s/[\\&,]/\\&/g
10103 s,[\\$`],\\&,g
10104 t clear
10105 : clear
10106 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10107 t end
10108 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10109 : end
10110 _ACEOF
10111 # If some macros were called several times there might be several times
10112 # the same #defines, which is useless.  Nevertheless, we may not want to
10113 # sort them, since we want the *last* AC-DEFINE to be honored.
10114 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10115 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10116 rm -f confdef2sed.sed
10117
10118 # This sed command replaces #undef with comments.  This is necessary, for
10119 # example, in the case of _POSIX_SOURCE, which is predefined and required
10120 # on some systems where configure will not decide to define it.
10121 cat >>conftest.undefs <<\_ACEOF
10122 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10123 _ACEOF
10124
10125 # Break up conftest.defines because some shells have a limit on the size
10126 # of here documents, and old seds have small limits too (100 cmds).
10127 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10128 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10129 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10130 echo '  :' >>$CONFIG_STATUS
10131 rm -f conftest.tail
10132 while grep . conftest.defines >/dev/null
10133 do
10134   # Write a limited-size here document to $tmp/defines.sed.
10135   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10136   # Speed up: don't consider the non `#define' lines.
10137   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
10138   # Work around the forget-to-reset-the-flag bug.
10139   echo 't clr' >>$CONFIG_STATUS
10140   echo ': clr' >>$CONFIG_STATUS
10141   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10142   echo 'CEOF
10143   sed -f $tmp/defines.sed $tmp/in >$tmp/out
10144   rm -f $tmp/in
10145   mv $tmp/out $tmp/in
10146 ' >>$CONFIG_STATUS
10147   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10148   rm -f conftest.defines
10149   mv conftest.tail conftest.defines
10150 done
10151 rm -f conftest.defines
10152 echo '  fi # grep' >>$CONFIG_STATUS
10153 echo >>$CONFIG_STATUS
10154
10155 # Break up conftest.undefs because some shells have a limit on the size
10156 # of here documents, and old seds have small limits too (100 cmds).
10157 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10158 rm -f conftest.tail
10159 while grep . conftest.undefs >/dev/null
10160 do
10161   # Write a limited-size here document to $tmp/undefs.sed.
10162   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10163   # Speed up: don't consider the non `#undef'
10164   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10165   # Work around the forget-to-reset-the-flag bug.
10166   echo 't clr' >>$CONFIG_STATUS
10167   echo ': clr' >>$CONFIG_STATUS
10168   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10169   echo 'CEOF
10170   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10171   rm -f $tmp/in
10172   mv $tmp/out $tmp/in
10173 ' >>$CONFIG_STATUS
10174   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10175   rm -f conftest.undefs
10176   mv conftest.tail conftest.undefs
10177 done
10178 rm -f conftest.undefs
10179
10180 cat >>$CONFIG_STATUS <<\_ACEOF
10181   # Let's still pretend it is `configure' which instantiates (i.e., don't
10182   # use $as_me), people would be surprised to read:
10183   #    /* config.h.  Generated by config.status.  */
10184   if test x"$ac_file" = x-; then
10185     echo "/* Generated by configure.  */" >$tmp/config.h
10186   else
10187     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10188   fi
10189   cat $tmp/in >>$tmp/config.h
10190   rm -f $tmp/in
10191   if test x"$ac_file" != x-; then
10192     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10193       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10194 echo "$as_me: $ac_file is unchanged" >&6;}
10195     else
10196       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10197 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10198          X"$ac_file" : 'X\(//\)[^/]' \| \
10199          X"$ac_file" : 'X\(//\)$' \| \
10200          X"$ac_file" : 'X\(/\)' \| \
10201          .     : '\(.\)' 2>/dev/null ||
10202 echo X"$ac_file" |
10203     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10204           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10205           /^X\(\/\/\)$/{ s//\1/; q; }
10206           /^X\(\/\).*/{ s//\1/; q; }
10207           s/.*/./; q'`
10208       { if $as_mkdir_p; then
10209     mkdir -p "$ac_dir"
10210   else
10211     as_dir="$ac_dir"
10212     as_dirs=
10213     while test ! -d "$as_dir"; do
10214       as_dirs="$as_dir $as_dirs"
10215       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10216 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10217          X"$as_dir" : 'X\(//\)[^/]' \| \
10218          X"$as_dir" : 'X\(//\)$' \| \
10219          X"$as_dir" : 'X\(/\)' \| \
10220          .     : '\(.\)' 2>/dev/null ||
10221 echo X"$as_dir" |
10222     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10223           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10224           /^X\(\/\/\)$/{ s//\1/; q; }
10225           /^X\(\/\).*/{ s//\1/; q; }
10226           s/.*/./; q'`
10227     done
10228     test ! -n "$as_dirs" || mkdir $as_dirs
10229   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10230 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10231    { (exit 1); exit 1; }; }; }
10232
10233       rm -f $ac_file
10234       mv $tmp/config.h $ac_file
10235     fi
10236   else
10237     cat $tmp/config.h
10238     rm -f $tmp/config.h
10239   fi
10240 done
10241 _ACEOF
10242 cat >>$CONFIG_STATUS <<\_ACEOF
10243
10244 #
10245 # CONFIG_COMMANDS section.
10246 #
10247 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10248   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10249   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10250   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10251 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10252          X"$ac_dest" : 'X\(//\)[^/]' \| \
10253          X"$ac_dest" : 'X\(//\)$' \| \
10254          X"$ac_dest" : 'X\(/\)' \| \
10255          .     : '\(.\)' 2>/dev/null ||
10256 echo X"$ac_dest" |
10257     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10258           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10259           /^X\(\/\/\)$/{ s//\1/; q; }
10260           /^X\(\/\).*/{ s//\1/; q; }
10261           s/.*/./; q'`
10262   { if $as_mkdir_p; then
10263     mkdir -p "$ac_dir"
10264   else
10265     as_dir="$ac_dir"
10266     as_dirs=
10267     while test ! -d "$as_dir"; do
10268       as_dirs="$as_dir $as_dirs"
10269       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10270 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10271          X"$as_dir" : 'X\(//\)[^/]' \| \
10272          X"$as_dir" : 'X\(//\)$' \| \
10273          X"$as_dir" : 'X\(/\)' \| \
10274          .     : '\(.\)' 2>/dev/null ||
10275 echo X"$as_dir" |
10276     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10277           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10278           /^X\(\/\/\)$/{ s//\1/; q; }
10279           /^X\(\/\).*/{ s//\1/; q; }
10280           s/.*/./; q'`
10281     done
10282     test ! -n "$as_dirs" || mkdir $as_dirs
10283   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10284 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10285    { (exit 1); exit 1; }; }; }
10286
10287   ac_builddir=.
10288
10289 if test "$ac_dir" != .; then
10290   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10291   # A "../" for each directory in $ac_dir_suffix.
10292   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10293 else
10294   ac_dir_suffix= ac_top_builddir=
10295 fi
10296
10297 case $srcdir in
10298   .)  # No --srcdir option.  We are building in place.
10299     ac_srcdir=.
10300     if test -z "$ac_top_builddir"; then
10301        ac_top_srcdir=.
10302     else
10303        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10304     fi ;;
10305   [\\/]* | ?:[\\/]* )  # Absolute path.
10306     ac_srcdir=$srcdir$ac_dir_suffix;
10307     ac_top_srcdir=$srcdir ;;
10308   *) # Relative path.
10309     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10310     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10311 esac
10312
10313 # Do not use `cd foo && pwd` to compute absolute paths, because
10314 # the directories may not exist.
10315 case `pwd` in
10316 .) ac_abs_builddir="$ac_dir";;
10317 *)
10318   case "$ac_dir" in
10319   .) ac_abs_builddir=`pwd`;;
10320   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10321   *) ac_abs_builddir=`pwd`/"$ac_dir";;
10322   esac;;
10323 esac
10324 case $ac_abs_builddir in
10325 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10326 *)
10327   case ${ac_top_builddir}. in
10328   .) ac_abs_top_builddir=$ac_abs_builddir;;
10329   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10330   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10331   esac;;
10332 esac
10333 case $ac_abs_builddir in
10334 .) ac_abs_srcdir=$ac_srcdir;;
10335 *)
10336   case $ac_srcdir in
10337   .) ac_abs_srcdir=$ac_abs_builddir;;
10338   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10339   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10340   esac;;
10341 esac
10342 case $ac_abs_builddir in
10343 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10344 *)
10345   case $ac_top_srcdir in
10346   .) ac_abs_top_srcdir=$ac_abs_builddir;;
10347   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10348   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10349   esac;;
10350 esac
10351
10352
10353   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10354 echo "$as_me: executing $ac_dest commands" >&6;}
10355   case $ac_dest in
10356     default ) echo timestamp > stamp-h ;;
10357   esac
10358 done
10359 _ACEOF
10360
10361 cat >>$CONFIG_STATUS <<\_ACEOF
10362
10363 { (exit 0); exit 0; }
10364 _ACEOF
10365 chmod +x $CONFIG_STATUS
10366 ac_clean_files=$ac_clean_files_save
10367
10368
10369 # configure is writing to config.log, and then calls config.status.
10370 # config.status does its own redirection, appending to config.log.
10371 # Unfortunately, on DOS this fails, as config.log is still kept open
10372 # by configure, so config.status won't be able to write to it; its
10373 # output is simply discarded.  So we exec the FD to /dev/null,
10374 # effectively closing config.log, so it can be properly (re)opened and
10375 # appended to by config.status.  When coming back to configure, we
10376 # need to make the FD available again.
10377 if test "$no_create" != yes; then
10378   ac_cs_success=:
10379   ac_config_status_args=
10380   test "$silent" = yes &&
10381     ac_config_status_args="$ac_config_status_args --quiet"
10382   exec 5>/dev/null
10383   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10384   exec 5>>config.log
10385   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10386   # would make configure fail if this is the last instruction.
10387   $ac_cs_success || { (exit 1); exit 1; }
10388 fi
10389
10390
10391           ac_config_commands="$ac_config_commands default-1"
10392