Fix bugs exposed by hikari's update to configure.in.
[ircu2.10.12-pk.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="ircd/ircd.c"
275 ac_default_prefix=$HOME
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RMPROG SHPROG LEX LEXLIB LEX_OUTPUT_ROOT YACC ENGINE_C INSTALL_RULE SYMLINK IRCDMODE IRCDOWN IRCDGRP DPATH LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779   # Omit some internal or obsolete options to make the list less imposing.
780   # This message is too long to be a string in the A/UX 3.1 sh.
781   cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792   -h, --help              display this help and exit
793       --help=short        display options specific to this package
794       --help=recursive    display the short help of all the included packages
795   -V, --version           display version information and exit
796   -q, --quiet, --silent   do not print \`checking...' messages
797       --cache-file=FILE   cache test results in FILE [disabled]
798   -C, --config-cache      alias for \`--cache-file=config.cache'
799   -n, --no-create         do not create output files
800       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804   cat <<_ACEOF
805 Installation directories:
806   --prefix=PREFIX         install architecture-independent files in PREFIX
807                           [$ac_default_prefix]
808   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809                           [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819   --bindir=DIR           user executables [EPREFIX/bin]
820   --sbindir=DIR          system admin executables [EPREFIX/sbin]
821   --libexecdir=DIR       program executables [EPREFIX/libexec]
822   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826   --libdir=DIR           object code libraries [EPREFIX/lib]
827   --includedir=DIR       C header files [PREFIX/include]
828   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829   --infodir=DIR          info documentation [PREFIX/info]
830   --mandir=DIR           man documentation [PREFIX/man]
831 _ACEOF
832
833   cat <<\_ACEOF
834
835 System types:
836   --build=BUILD     configure for building on BUILD [guessed]
837   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
838 _ACEOF
839 fi
840
841 if test -n "$ac_init_help"; then
842
843   cat <<\_ACEOF
844
845 Optional Features:
846   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
847   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
848   --enable-poll           Force poll to be used regardless of whether or not
849                           it is a system call
850   --enable-debug          Turn on debugging mode
851   --disable-asserts       Disable assertion checking
852   --disable-symbols       Disable debugging symbols (remove -g from CFLAGS)
853   --enable-profile        Enable profiling support (add -pg to CFLAGS)
854   --enable-pedantic       Enable pedantic warnings (add -pedantic to CFLAGS)
855   --enable-warnings       Enable warnings (add -Wall to CFLAGS)
856   --disable-inlines       Disable inlining for a few critical functions
857   --disable-devpoll       Disable the /dev/poll-based engine
858   --disable-kqueue        Disable the kqueue-based engine
859   --disable-epoll         Disable the epoll-based engine
860
861 Optional Packages:
862   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
863   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
864   --with-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 10.20 and later -Ae
2370 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2371 # SVR4                  -Xc -D__EXTENSIONS__
2372 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2373 do
2374   CC="$ac_save_CC $ac_arg"
2375   cat >conftest.$ac_ext <<_ACEOF
2376 /* confdefs.h.  */
2377 _ACEOF
2378 cat confdefs.h >>conftest.$ac_ext
2379 cat >>conftest.$ac_ext <<_ACEOF
2380 /* end confdefs.h.  */
2381 #include <stdarg.h>
2382 #include <stdio.h>
2383 #include <sys/types.h>
2384 #include <sys/stat.h>
2385 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2386 struct buf { int x; };
2387 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2388 static char *e (p, i)
2389      char **p;
2390      int i;
2391 {
2392   return p[i];
2393 }
2394 static char *f (char * (*g) (char **, int), char **p, ...)
2395 {
2396   char *s;
2397   va_list v;
2398   va_start (v,p);
2399   s = g (p, va_arg (v,int));
2400   va_end (v);
2401   return s;
2402 }
2403 int test (int i, double x);
2404 struct s1 {int (*f) (int a);};
2405 struct s2 {int (*f) (double a);};
2406 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2407 int argc;
2408 char **argv;
2409
2410 int
2411 main ()
2412 {
2413
2414 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2415
2416   ;
2417   return 0;
2418 }
2419 _ACEOF
2420 rm -f conftest.$ac_objext
2421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422   (eval $ac_compile) 2>conftest.er1
2423   ac_status=$?
2424   grep -v '^ *+' conftest.er1 >conftest.err
2425   rm -f conftest.er1
2426   cat conftest.err >&5
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); } &&
2429          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431   (eval $ac_try) 2>&5
2432   ac_status=$?
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); }; } &&
2435          { ac_try='test -s conftest.$ac_objext'
2436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437   (eval $ac_try) 2>&5
2438   ac_status=$?
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); }; }; then
2441   am_cv_prog_cc_stdc="$ac_arg"; break
2442 else
2443   echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2445
2446 fi
2447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2448 done
2449 CC="$ac_save_CC"
2450
2451 fi
2452
2453 if test -z "$am_cv_prog_cc_stdc"; then
2454   echo "$as_me:$LINENO: result: none needed" >&5
2455 echo "${ECHO_T}none needed" >&6
2456 else
2457   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2458 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2459 fi
2460 case "x$am_cv_prog_cc_stdc" in
2461   x|xno) ;;
2462   *) CC="$CC $am_cv_prog_cc_stdc" ;;
2463 esac
2464
2465 if test x"$CFLAGS" != x; then
2466     CFLAGS=`echo "$CFLAGS" | sed -e 's/-O2/-O3/'`
2467 fi
2468 if test x"$CFLAGS" != x; then
2469     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pipe//g'`
2470 fi
2471 if test x"$CFLAGS" != x; then
2472     unet_old_cflags=$CFLAGS
2473     CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
2474 fi
2475 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2476     # If -g was already there, force symbols to be enabled
2477     unet_cv_enable_symbols=yes
2478 fi
2479 if test x"$CFLAGS" != x; then
2480     unet_old_cflags=$CFLAGS
2481     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
2482 fi
2483 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2484     # If -pg was already there, force profiling to be enabled
2485     unet_cv_enable_profile=yes
2486 fi
2487 if test x"$CFLAGS" != x; then
2488     unet_old_cflags=$CFLAGS
2489     CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wall//g'`
2490 fi
2491 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2492     # If -Wall was already there, force warnings to be enabled
2493     unet_cv_enable_warnings=yes
2494 fi
2495 if test x"$CFLAGS" != x; then
2496     unet_old_cflags=$CFLAGS
2497     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pedantic//g'`
2498 fi
2499 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2500     # If -pedantic was already there, force pedatic to be enabled
2501     unet_cv_enable_pedantic=yes
2502 fi
2503
2504
2505 echo "$as_me:$LINENO: checking for library containing crypt" >&5
2506 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
2507 if test "${ac_cv_search_crypt+set}" = set; then
2508   echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510   ac_func_search_save_LIBS=$LIBS
2511 ac_cv_search_crypt=no
2512 cat >conftest.$ac_ext <<_ACEOF
2513 /* confdefs.h.  */
2514 _ACEOF
2515 cat confdefs.h >>conftest.$ac_ext
2516 cat >>conftest.$ac_ext <<_ACEOF
2517 /* end confdefs.h.  */
2518
2519 /* Override any gcc2 internal prototype to avoid an error.  */
2520 #ifdef __cplusplus
2521 extern "C"
2522 #endif
2523 /* We use char because int might match the return type of a gcc2
2524    builtin and then its argument prototype would still apply.  */
2525 char crypt ();
2526 int
2527 main ()
2528 {
2529 crypt ();
2530   ;
2531   return 0;
2532 }
2533 _ACEOF
2534 rm -f conftest.$ac_objext conftest$ac_exeext
2535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2536   (eval $ac_link) 2>conftest.er1
2537   ac_status=$?
2538   grep -v '^ *+' conftest.er1 >conftest.err
2539   rm -f conftest.er1
2540   cat conftest.err >&5
2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542   (exit $ac_status); } &&
2543          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545   (eval $ac_try) 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }; } &&
2549          { ac_try='test -s conftest$ac_exeext'
2550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551   (eval $ac_try) 2>&5
2552   ac_status=$?
2553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554   (exit $ac_status); }; }; then
2555   ac_cv_search_crypt="none required"
2556 else
2557   echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2559
2560 fi
2561 rm -f conftest.err conftest.$ac_objext \
2562       conftest$ac_exeext conftest.$ac_ext
2563 if test "$ac_cv_search_crypt" = no; then
2564   for ac_lib in descrypt crypt; do
2565     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2566     cat >conftest.$ac_ext <<_ACEOF
2567 /* confdefs.h.  */
2568 _ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h.  */
2572
2573 /* Override any gcc2 internal prototype to avoid an error.  */
2574 #ifdef __cplusplus
2575 extern "C"
2576 #endif
2577 /* We use char because int might match the return type of a gcc2
2578    builtin and then its argument prototype would still apply.  */
2579 char crypt ();
2580 int
2581 main ()
2582 {
2583 crypt ();
2584   ;
2585   return 0;
2586 }
2587 _ACEOF
2588 rm -f conftest.$ac_objext conftest$ac_exeext
2589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2590   (eval $ac_link) 2>conftest.er1
2591   ac_status=$?
2592   grep -v '^ *+' conftest.er1 >conftest.err
2593   rm -f conftest.er1
2594   cat conftest.err >&5
2595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596   (exit $ac_status); } &&
2597          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599   (eval $ac_try) 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); }; } &&
2603          { ac_try='test -s conftest$ac_exeext'
2604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605   (eval $ac_try) 2>&5
2606   ac_status=$?
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); }; }; then
2609   ac_cv_search_crypt="-l$ac_lib"
2610 break
2611 else
2612   echo "$as_me: failed program was:" >&5
2613 sed 's/^/| /' conftest.$ac_ext >&5
2614
2615 fi
2616 rm -f conftest.err conftest.$ac_objext \
2617       conftest$ac_exeext conftest.$ac_ext
2618   done
2619 fi
2620 LIBS=$ac_func_search_save_LIBS
2621 fi
2622 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
2623 echo "${ECHO_T}$ac_cv_search_crypt" >&6
2624 if test "$ac_cv_search_crypt" != no; then
2625   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
2626
2627 else
2628   { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
2629 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
2630    { (exit 1); exit 1; }; }
2631 fi
2632
2633
2634
2635    # Most operating systems have gethostbyname() in the default searched
2636    # libraries (i.e. libc):
2637    echo "$as_me:$LINENO: checking for gethostbyname" >&5
2638 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2639 if test "${ac_cv_func_gethostbyname+set}" = set; then
2640   echo $ECHO_N "(cached) $ECHO_C" >&6
2641 else
2642   cat >conftest.$ac_ext <<_ACEOF
2643 /* confdefs.h.  */
2644 _ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h.  */
2648 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
2649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2650 #define gethostbyname innocuous_gethostbyname
2651
2652 /* System header to define __stub macros and hopefully few prototypes,
2653     which can conflict with char gethostbyname (); below.
2654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2655     <limits.h> exists even on freestanding compilers.  */
2656
2657 #ifdef __STDC__
2658 # include <limits.h>
2659 #else
2660 # include <assert.h>
2661 #endif
2662
2663 #undef gethostbyname
2664
2665 /* Override any gcc2 internal prototype to avoid an error.  */
2666 #ifdef __cplusplus
2667 extern "C"
2668 {
2669 #endif
2670 /* We use char because int might match the return type of a gcc2
2671    builtin and then its argument prototype would still apply.  */
2672 char gethostbyname ();
2673 /* The GNU C library defines this for functions which it implements
2674     to always fail with ENOSYS.  Some functions are actually named
2675     something starting with __ and the normal name is an alias.  */
2676 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2677 choke me
2678 #else
2679 char (*f) () = gethostbyname;
2680 #endif
2681 #ifdef __cplusplus
2682 }
2683 #endif
2684
2685 int
2686 main ()
2687 {
2688 return f != gethostbyname;
2689   ;
2690   return 0;
2691 }
2692 _ACEOF
2693 rm -f conftest.$ac_objext conftest$ac_exeext
2694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2695   (eval $ac_link) 2>conftest.er1
2696   ac_status=$?
2697   grep -v '^ *+' conftest.er1 >conftest.err
2698   rm -f conftest.er1
2699   cat conftest.err >&5
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); } &&
2702          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704   (eval $ac_try) 2>&5
2705   ac_status=$?
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); }; } &&
2708          { ac_try='test -s conftest$ac_exeext'
2709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710   (eval $ac_try) 2>&5
2711   ac_status=$?
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); }; }; then
2714   ac_cv_func_gethostbyname=yes
2715 else
2716   echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2718
2719 ac_cv_func_gethostbyname=no
2720 fi
2721 rm -f conftest.err conftest.$ac_objext \
2722       conftest$ac_exeext conftest.$ac_ext
2723 fi
2724 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2725 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2726 if test $ac_cv_func_gethostbyname = yes; then
2727   :
2728 else
2729   # Some OSes (eg. Solaris) place it in libnsl:
2730
2731 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2732 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2733 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2734   echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736   ac_check_lib_save_LIBS=$LIBS
2737 LIBS="-lnsl  $LIBS"
2738 cat >conftest.$ac_ext <<_ACEOF
2739 /* confdefs.h.  */
2740 _ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h.  */
2744
2745 /* Override any gcc2 internal prototype to avoid an error.  */
2746 #ifdef __cplusplus
2747 extern "C"
2748 #endif
2749 /* We use char because int might match the return type of a gcc2
2750    builtin and then its argument prototype would still apply.  */
2751 char gethostbyname ();
2752 int
2753 main ()
2754 {
2755 gethostbyname ();
2756   ;
2757   return 0;
2758 }
2759 _ACEOF
2760 rm -f conftest.$ac_objext conftest$ac_exeext
2761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2762   (eval $ac_link) 2>conftest.er1
2763   ac_status=$?
2764   grep -v '^ *+' conftest.er1 >conftest.err
2765   rm -f conftest.er1
2766   cat conftest.err >&5
2767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768   (exit $ac_status); } &&
2769          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771   (eval $ac_try) 2>&5
2772   ac_status=$?
2773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774   (exit $ac_status); }; } &&
2775          { ac_try='test -s conftest$ac_exeext'
2776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777   (eval $ac_try) 2>&5
2778   ac_status=$?
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); }; }; then
2781   ac_cv_lib_nsl_gethostbyname=yes
2782 else
2783   echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2785
2786 ac_cv_lib_nsl_gethostbyname=no
2787 fi
2788 rm -f conftest.err conftest.$ac_objext \
2789       conftest$ac_exeext conftest.$ac_ext
2790 LIBS=$ac_check_lib_save_LIBS
2791 fi
2792 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
2793 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2794 if test $ac_cv_lib_nsl_gethostbyname = yes; then
2795   cat >>confdefs.h <<_ACEOF
2796 #define HAVE_LIBNSL 1
2797 _ACEOF
2798
2799   LIBS="-lnsl $LIBS"
2800
2801 else
2802   # Some strange OSes (SINIX) have it in libsocket:
2803
2804 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2805 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2806 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2807   echo $ECHO_N "(cached) $ECHO_C" >&6
2808 else
2809   ac_check_lib_save_LIBS=$LIBS
2810 LIBS="-lsocket  $LIBS"
2811 cat >conftest.$ac_ext <<_ACEOF
2812 /* confdefs.h.  */
2813 _ACEOF
2814 cat confdefs.h >>conftest.$ac_ext
2815 cat >>conftest.$ac_ext <<_ACEOF
2816 /* end confdefs.h.  */
2817
2818 /* Override any gcc2 internal prototype to avoid an error.  */
2819 #ifdef __cplusplus
2820 extern "C"
2821 #endif
2822 /* We use char because int might match the return type of a gcc2
2823    builtin and then its argument prototype would still apply.  */
2824 char gethostbyname ();
2825 int
2826 main ()
2827 {
2828 gethostbyname ();
2829   ;
2830   return 0;
2831 }
2832 _ACEOF
2833 rm -f conftest.$ac_objext conftest$ac_exeext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2835   (eval $ac_link) 2>conftest.er1
2836   ac_status=$?
2837   grep -v '^ *+' conftest.er1 >conftest.err
2838   rm -f conftest.er1
2839   cat conftest.err >&5
2840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841   (exit $ac_status); } &&
2842          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844   (eval $ac_try) 2>&5
2845   ac_status=$?
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); }; } &&
2848          { ac_try='test -s conftest$ac_exeext'
2849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850   (eval $ac_try) 2>&5
2851   ac_status=$?
2852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853   (exit $ac_status); }; }; then
2854   ac_cv_lib_socket_gethostbyname=yes
2855 else
2856   echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2858
2859 ac_cv_lib_socket_gethostbyname=no
2860 fi
2861 rm -f conftest.err conftest.$ac_objext \
2862       conftest$ac_exeext conftest.$ac_ext
2863 LIBS=$ac_check_lib_save_LIBS
2864 fi
2865 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2866 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2867 if test $ac_cv_lib_socket_gethostbyname = yes; then
2868   cat >>confdefs.h <<_ACEOF
2869 #define HAVE_LIBSOCKET 1
2870 _ACEOF
2871
2872   LIBS="-lsocket $LIBS"
2873
2874 else
2875   # Unfortunately libsocket sometimes depends on libnsl.
2876           # AC_CHECK_LIB's API is essentially broken so the following
2877           # ugliness is necessary:
2878           echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2879 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2880 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2881   echo $ECHO_N "(cached) $ECHO_C" >&6
2882 else
2883   ac_check_lib_save_LIBS=$LIBS
2884 LIBS="-lsocket -lnsl $LIBS"
2885 cat >conftest.$ac_ext <<_ACEOF
2886 /* confdefs.h.  */
2887 _ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h.  */
2891
2892 /* Override any gcc2 internal prototype to avoid an error.  */
2893 #ifdef __cplusplus
2894 extern "C"
2895 #endif
2896 /* We use char because int might match the return type of a gcc2
2897    builtin and then its argument prototype would still apply.  */
2898 char gethostbyname ();
2899 int
2900 main ()
2901 {
2902 gethostbyname ();
2903   ;
2904   return 0;
2905 }
2906 _ACEOF
2907 rm -f conftest.$ac_objext conftest$ac_exeext
2908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2909   (eval $ac_link) 2>conftest.er1
2910   ac_status=$?
2911   grep -v '^ *+' conftest.er1 >conftest.err
2912   rm -f conftest.er1
2913   cat conftest.err >&5
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); } &&
2916          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918   (eval $ac_try) 2>&5
2919   ac_status=$?
2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921   (exit $ac_status); }; } &&
2922          { ac_try='test -s conftest$ac_exeext'
2923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924   (eval $ac_try) 2>&5
2925   ac_status=$?
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); }; }; then
2928   ac_cv_lib_socket_gethostbyname=yes
2929 else
2930   echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2932
2933 ac_cv_lib_socket_gethostbyname=no
2934 fi
2935 rm -f conftest.err conftest.$ac_objext \
2936       conftest$ac_exeext conftest.$ac_ext
2937 LIBS=$ac_check_lib_save_LIBS
2938 fi
2939 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2940 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2941 if test $ac_cv_lib_socket_gethostbyname = yes; then
2942   LIBS="-lsocket -lnsl $LIBS"
2943 else
2944
2945 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
2946 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
2947 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
2948   echo $ECHO_N "(cached) $ECHO_C" >&6
2949 else
2950   ac_check_lib_save_LIBS=$LIBS
2951 LIBS="-lresolv  $LIBS"
2952 cat >conftest.$ac_ext <<_ACEOF
2953 /* confdefs.h.  */
2954 _ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h.  */
2958
2959 /* Override any gcc2 internal prototype to avoid an error.  */
2960 #ifdef __cplusplus
2961 extern "C"
2962 #endif
2963 /* We use char because int might match the return type of a gcc2
2964    builtin and then its argument prototype would still apply.  */
2965 char gethostbyname ();
2966 int
2967 main ()
2968 {
2969 gethostbyname ();
2970   ;
2971   return 0;
2972 }
2973 _ACEOF
2974 rm -f conftest.$ac_objext conftest$ac_exeext
2975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2976   (eval $ac_link) 2>conftest.er1
2977   ac_status=$?
2978   grep -v '^ *+' conftest.er1 >conftest.err
2979   rm -f conftest.er1
2980   cat conftest.err >&5
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); } &&
2983          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985   (eval $ac_try) 2>&5
2986   ac_status=$?
2987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988   (exit $ac_status); }; } &&
2989          { ac_try='test -s conftest$ac_exeext'
2990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991   (eval $ac_try) 2>&5
2992   ac_status=$?
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); }; }; then
2995   ac_cv_lib_resolv_gethostbyname=yes
2996 else
2997   echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
2999
3000 ac_cv_lib_resolv_gethostbyname=no
3001 fi
3002 rm -f conftest.err conftest.$ac_objext \
3003       conftest$ac_exeext conftest.$ac_ext
3004 LIBS=$ac_check_lib_save_LIBS
3005 fi
3006 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3007 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3008 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3009   cat >>confdefs.h <<_ACEOF
3010 #define HAVE_LIBRESOLV 1
3011 _ACEOF
3012
3013   LIBS="-lresolv $LIBS"
3014
3015 fi
3016
3017 fi
3018
3019
3020 fi
3021
3022
3023 fi
3024
3025
3026 fi
3027
3028   echo "$as_me:$LINENO: checking for socket" >&5
3029 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3030 if test "${ac_cv_func_socket+set}" = set; then
3031   echo $ECHO_N "(cached) $ECHO_C" >&6
3032 else
3033   cat >conftest.$ac_ext <<_ACEOF
3034 /* confdefs.h.  */
3035 _ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h.  */
3039 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3040    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3041 #define socket innocuous_socket
3042
3043 /* System header to define __stub macros and hopefully few prototypes,
3044     which can conflict with char socket (); below.
3045     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3046     <limits.h> exists even on freestanding compilers.  */
3047
3048 #ifdef __STDC__
3049 # include <limits.h>
3050 #else
3051 # include <assert.h>
3052 #endif
3053
3054 #undef socket
3055
3056 /* Override any gcc2 internal prototype to avoid an error.  */
3057 #ifdef __cplusplus
3058 extern "C"
3059 {
3060 #endif
3061 /* We use char because int might match the return type of a gcc2
3062    builtin and then its argument prototype would still apply.  */
3063 char socket ();
3064 /* The GNU C library defines this for functions which it implements
3065     to always fail with ENOSYS.  Some functions are actually named
3066     something starting with __ and the normal name is an alias.  */
3067 #if defined (__stub_socket) || defined (__stub___socket)
3068 choke me
3069 #else
3070 char (*f) () = socket;
3071 #endif
3072 #ifdef __cplusplus
3073 }
3074 #endif
3075
3076 int
3077 main ()
3078 {
3079 return f != socket;
3080   ;
3081   return 0;
3082 }
3083 _ACEOF
3084 rm -f conftest.$ac_objext conftest$ac_exeext
3085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3086   (eval $ac_link) 2>conftest.er1
3087   ac_status=$?
3088   grep -v '^ *+' conftest.er1 >conftest.err
3089   rm -f conftest.er1
3090   cat conftest.err >&5
3091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092   (exit $ac_status); } &&
3093          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3095   (eval $ac_try) 2>&5
3096   ac_status=$?
3097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098   (exit $ac_status); }; } &&
3099          { ac_try='test -s conftest$ac_exeext'
3100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101   (eval $ac_try) 2>&5
3102   ac_status=$?
3103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104   (exit $ac_status); }; }; then
3105   ac_cv_func_socket=yes
3106 else
3107   echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3109
3110 ac_cv_func_socket=no
3111 fi
3112 rm -f conftest.err conftest.$ac_objext \
3113       conftest$ac_exeext conftest.$ac_ext
3114 fi
3115 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3116 echo "${ECHO_T}$ac_cv_func_socket" >&6
3117 if test $ac_cv_func_socket = yes; then
3118   :
3119 else
3120
3121 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3122 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3123 if test "${ac_cv_lib_socket_socket+set}" = set; then
3124   echo $ECHO_N "(cached) $ECHO_C" >&6
3125 else
3126   ac_check_lib_save_LIBS=$LIBS
3127 LIBS="-lsocket  $LIBS"
3128 cat >conftest.$ac_ext <<_ACEOF
3129 /* confdefs.h.  */
3130 _ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h.  */
3134
3135 /* Override any gcc2 internal prototype to avoid an error.  */
3136 #ifdef __cplusplus
3137 extern "C"
3138 #endif
3139 /* We use char because int might match the return type of a gcc2
3140    builtin and then its argument prototype would still apply.  */
3141 char socket ();
3142 int
3143 main ()
3144 {
3145 socket ();
3146   ;
3147   return 0;
3148 }
3149 _ACEOF
3150 rm -f conftest.$ac_objext conftest$ac_exeext
3151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3152   (eval $ac_link) 2>conftest.er1
3153   ac_status=$?
3154   grep -v '^ *+' conftest.er1 >conftest.err
3155   rm -f conftest.er1
3156   cat conftest.err >&5
3157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); } &&
3159          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161   (eval $ac_try) 2>&5
3162   ac_status=$?
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); }; } &&
3165          { ac_try='test -s conftest$ac_exeext'
3166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167   (eval $ac_try) 2>&5
3168   ac_status=$?
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); }; }; then
3171   ac_cv_lib_socket_socket=yes
3172 else
3173   echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3175
3176 ac_cv_lib_socket_socket=no
3177 fi
3178 rm -f conftest.err conftest.$ac_objext \
3179       conftest$ac_exeext conftest.$ac_ext
3180 LIBS=$ac_check_lib_save_LIBS
3181 fi
3182 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3183 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3184 if test $ac_cv_lib_socket_socket = yes; then
3185   cat >>confdefs.h <<_ACEOF
3186 #define HAVE_LIBSOCKET 1
3187 _ACEOF
3188
3189   LIBS="-lsocket $LIBS"
3190
3191 else
3192   echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3193 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3194 if test "${ac_cv_lib_socket_socket+set}" = set; then
3195   echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197   ac_check_lib_save_LIBS=$LIBS
3198 LIBS="-lsocket -lnsl $LIBS"
3199 cat >conftest.$ac_ext <<_ACEOF
3200 /* confdefs.h.  */
3201 _ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h.  */
3205
3206 /* Override any gcc2 internal prototype to avoid an error.  */
3207 #ifdef __cplusplus
3208 extern "C"
3209 #endif
3210 /* We use char because int might match the return type of a gcc2
3211    builtin and then its argument prototype would still apply.  */
3212 char socket ();
3213 int
3214 main ()
3215 {
3216 socket ();
3217   ;
3218   return 0;
3219 }
3220 _ACEOF
3221 rm -f conftest.$ac_objext conftest$ac_exeext
3222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3223   (eval $ac_link) 2>conftest.er1
3224   ac_status=$?
3225   grep -v '^ *+' conftest.er1 >conftest.err
3226   rm -f conftest.er1
3227   cat conftest.err >&5
3228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229   (exit $ac_status); } &&
3230          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232   (eval $ac_try) 2>&5
3233   ac_status=$?
3234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235   (exit $ac_status); }; } &&
3236          { ac_try='test -s conftest$ac_exeext'
3237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238   (eval $ac_try) 2>&5
3239   ac_status=$?
3240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241   (exit $ac_status); }; }; then
3242   ac_cv_lib_socket_socket=yes
3243 else
3244   echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3246
3247 ac_cv_lib_socket_socket=no
3248 fi
3249 rm -f conftest.err conftest.$ac_objext \
3250       conftest$ac_exeext conftest.$ac_ext
3251 LIBS=$ac_check_lib_save_LIBS
3252 fi
3253 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3254 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3255 if test $ac_cv_lib_socket_socket = yes; then
3256   LIBS="-lsocket -lnsl $LIBS"
3257 fi
3258
3259 fi
3260
3261 fi
3262
3263
3264
3265 ac_ext=c
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3271 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3272 # On Suns, sometimes $CPP names a directory.
3273 if test -n "$CPP" && test -d "$CPP"; then
3274   CPP=
3275 fi
3276 if test -z "$CPP"; then
3277   if test "${ac_cv_prog_CPP+set}" = set; then
3278   echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280       # Double quotes because CPP needs to be expanded
3281     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3282     do
3283       ac_preproc_ok=false
3284 for ac_c_preproc_warn_flag in '' yes
3285 do
3286   # Use a header file that comes with gcc, so configuring glibc
3287   # with a fresh cross-compiler works.
3288   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3289   # <limits.h> exists even on freestanding compilers.
3290   # On the NeXT, cc -E runs the code through the compiler's parser,
3291   # not just through cpp. "Syntax error" is here to catch this case.
3292   cat >conftest.$ac_ext <<_ACEOF
3293 /* confdefs.h.  */
3294 _ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h.  */
3298 #ifdef __STDC__
3299 # include <limits.h>
3300 #else
3301 # include <assert.h>
3302 #endif
3303                      Syntax error
3304 _ACEOF
3305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3306   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3307   ac_status=$?
3308   grep -v '^ *+' conftest.er1 >conftest.err
3309   rm -f conftest.er1
3310   cat conftest.err >&5
3311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312   (exit $ac_status); } >/dev/null; then
3313   if test -s conftest.err; then
3314     ac_cpp_err=$ac_c_preproc_warn_flag
3315     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3316   else
3317     ac_cpp_err=
3318   fi
3319 else
3320   ac_cpp_err=yes
3321 fi
3322 if test -z "$ac_cpp_err"; then
3323   :
3324 else
3325   echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3327
3328   # Broken: fails on valid input.
3329 continue
3330 fi
3331 rm -f conftest.err conftest.$ac_ext
3332
3333   # OK, works on sane cases.  Now check whether non-existent headers
3334   # can be detected and how.
3335   cat >conftest.$ac_ext <<_ACEOF
3336 /* confdefs.h.  */
3337 _ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h.  */
3341 #include <ac_nonexistent.h>
3342 _ACEOF
3343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3344   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3345   ac_status=$?
3346   grep -v '^ *+' conftest.er1 >conftest.err
3347   rm -f conftest.er1
3348   cat conftest.err >&5
3349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350   (exit $ac_status); } >/dev/null; then
3351   if test -s conftest.err; then
3352     ac_cpp_err=$ac_c_preproc_warn_flag
3353     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3354   else
3355     ac_cpp_err=
3356   fi
3357 else
3358   ac_cpp_err=yes
3359 fi
3360 if test -z "$ac_cpp_err"; then
3361   # Broken: success on invalid input.
3362 continue
3363 else
3364   echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367   # Passes both tests.
3368 ac_preproc_ok=:
3369 break
3370 fi
3371 rm -f conftest.err conftest.$ac_ext
3372
3373 done
3374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3375 rm -f conftest.err conftest.$ac_ext
3376 if $ac_preproc_ok; then
3377   break
3378 fi
3379
3380     done
3381     ac_cv_prog_CPP=$CPP
3382
3383 fi
3384   CPP=$ac_cv_prog_CPP
3385 else
3386   ac_cv_prog_CPP=$CPP
3387 fi
3388 echo "$as_me:$LINENO: result: $CPP" >&5
3389 echo "${ECHO_T}$CPP" >&6
3390 ac_preproc_ok=false
3391 for ac_c_preproc_warn_flag in '' yes
3392 do
3393   # Use a header file that comes with gcc, so configuring glibc
3394   # with a fresh cross-compiler works.
3395   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3396   # <limits.h> exists even on freestanding compilers.
3397   # On the NeXT, cc -E runs the code through the compiler's parser,
3398   # not just through cpp. "Syntax error" is here to catch this case.
3399   cat >conftest.$ac_ext <<_ACEOF
3400 /* confdefs.h.  */
3401 _ACEOF
3402 cat confdefs.h >>conftest.$ac_ext
3403 cat >>conftest.$ac_ext <<_ACEOF
3404 /* end confdefs.h.  */
3405 #ifdef __STDC__
3406 # include <limits.h>
3407 #else
3408 # include <assert.h>
3409 #endif
3410                      Syntax error
3411 _ACEOF
3412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3413   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3414   ac_status=$?
3415   grep -v '^ *+' conftest.er1 >conftest.err
3416   rm -f conftest.er1
3417   cat conftest.err >&5
3418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419   (exit $ac_status); } >/dev/null; then
3420   if test -s conftest.err; then
3421     ac_cpp_err=$ac_c_preproc_warn_flag
3422     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3423   else
3424     ac_cpp_err=
3425   fi
3426 else
3427   ac_cpp_err=yes
3428 fi
3429 if test -z "$ac_cpp_err"; then
3430   :
3431 else
3432   echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3434
3435   # Broken: fails on valid input.
3436 continue
3437 fi
3438 rm -f conftest.err conftest.$ac_ext
3439
3440   # OK, works on sane cases.  Now check whether non-existent headers
3441   # can be detected and how.
3442   cat >conftest.$ac_ext <<_ACEOF
3443 /* confdefs.h.  */
3444 _ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h.  */
3448 #include <ac_nonexistent.h>
3449 _ACEOF
3450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3451   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3452   ac_status=$?
3453   grep -v '^ *+' conftest.er1 >conftest.err
3454   rm -f conftest.er1
3455   cat conftest.err >&5
3456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457   (exit $ac_status); } >/dev/null; then
3458   if test -s conftest.err; then
3459     ac_cpp_err=$ac_c_preproc_warn_flag
3460     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3461   else
3462     ac_cpp_err=
3463   fi
3464 else
3465   ac_cpp_err=yes
3466 fi
3467 if test -z "$ac_cpp_err"; then
3468   # Broken: success on invalid input.
3469 continue
3470 else
3471   echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3473
3474   # Passes both tests.
3475 ac_preproc_ok=:
3476 break
3477 fi
3478 rm -f conftest.err conftest.$ac_ext
3479
3480 done
3481 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3482 rm -f conftest.err conftest.$ac_ext
3483 if $ac_preproc_ok; then
3484   :
3485 else
3486   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3487 See \`config.log' for more details." >&5
3488 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3489 See \`config.log' for more details." >&2;}
3490    { (exit 1); exit 1; }; }
3491 fi
3492
3493 ac_ext=c
3494 ac_cpp='$CPP $CPPFLAGS'
3495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498
3499
3500 echo "$as_me:$LINENO: checking for egrep" >&5
3501 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3502 if test "${ac_cv_prog_egrep+set}" = set; then
3503   echo $ECHO_N "(cached) $ECHO_C" >&6
3504 else
3505   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3506     then ac_cv_prog_egrep='grep -E'
3507     else ac_cv_prog_egrep='egrep'
3508     fi
3509 fi
3510 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3511 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3512  EGREP=$ac_cv_prog_egrep
3513
3514
3515 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3516 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3517 if test "${ac_cv_header_stdc+set}" = set; then
3518   echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520   cat >conftest.$ac_ext <<_ACEOF
3521 /* confdefs.h.  */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h.  */
3526 #include <stdlib.h>
3527 #include <stdarg.h>
3528 #include <string.h>
3529 #include <float.h>
3530
3531 int
3532 main ()
3533 {
3534
3535   ;
3536   return 0;
3537 }
3538 _ACEOF
3539 rm -f conftest.$ac_objext
3540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3541   (eval $ac_compile) 2>conftest.er1
3542   ac_status=$?
3543   grep -v '^ *+' conftest.er1 >conftest.err
3544   rm -f conftest.er1
3545   cat conftest.err >&5
3546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547   (exit $ac_status); } &&
3548          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550   (eval $ac_try) 2>&5
3551   ac_status=$?
3552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553   (exit $ac_status); }; } &&
3554          { ac_try='test -s conftest.$ac_objext'
3555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556   (eval $ac_try) 2>&5
3557   ac_status=$?
3558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559   (exit $ac_status); }; }; then
3560   ac_cv_header_stdc=yes
3561 else
3562   echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3564
3565 ac_cv_header_stdc=no
3566 fi
3567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3568
3569 if test $ac_cv_header_stdc = yes; then
3570   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3571   cat >conftest.$ac_ext <<_ACEOF
3572 /* confdefs.h.  */
3573 _ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h.  */
3577 #include <string.h>
3578
3579 _ACEOF
3580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3581   $EGREP "memchr" >/dev/null 2>&1; then
3582   :
3583 else
3584   ac_cv_header_stdc=no
3585 fi
3586 rm -f conftest*
3587
3588 fi
3589
3590 if test $ac_cv_header_stdc = yes; then
3591   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3592   cat >conftest.$ac_ext <<_ACEOF
3593 /* confdefs.h.  */
3594 _ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h.  */
3598 #include <stdlib.h>
3599
3600 _ACEOF
3601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3602   $EGREP "free" >/dev/null 2>&1; then
3603   :
3604 else
3605   ac_cv_header_stdc=no
3606 fi
3607 rm -f conftest*
3608
3609 fi
3610
3611 if test $ac_cv_header_stdc = yes; then
3612   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3613   if test "$cross_compiling" = yes; then
3614   :
3615 else
3616   cat >conftest.$ac_ext <<_ACEOF
3617 /* confdefs.h.  */
3618 _ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h.  */
3622 #include <ctype.h>
3623 #if ((' ' & 0x0FF) == 0x020)
3624 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3625 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3626 #else
3627 # define ISLOWER(c) \
3628                    (('a' <= (c) && (c) <= 'i') \
3629                      || ('j' <= (c) && (c) <= 'r') \
3630                      || ('s' <= (c) && (c) <= 'z'))
3631 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3632 #endif
3633
3634 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3635 int
3636 main ()
3637 {
3638   int i;
3639   for (i = 0; i < 256; i++)
3640     if (XOR (islower (i), ISLOWER (i))
3641         || toupper (i) != TOUPPER (i))
3642       exit(2);
3643   exit (0);
3644 }
3645 _ACEOF
3646 rm -f conftest$ac_exeext
3647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3648   (eval $ac_link) 2>&5
3649   ac_status=$?
3650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653   (eval $ac_try) 2>&5
3654   ac_status=$?
3655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656   (exit $ac_status); }; }; then
3657   :
3658 else
3659   echo "$as_me: program exited with status $ac_status" >&5
3660 echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3662
3663 ( exit $ac_status )
3664 ac_cv_header_stdc=no
3665 fi
3666 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3667 fi
3668 fi
3669 fi
3670 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3671 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3672 if test $ac_cv_header_stdc = yes; then
3673
3674 cat >>confdefs.h <<\_ACEOF
3675 #define STDC_HEADERS 1
3676 _ACEOF
3677
3678 fi
3679
3680 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3691                   inttypes.h stdint.h unistd.h
3692 do
3693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3694 echo "$as_me:$LINENO: checking for $ac_header" >&5
3695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3697   echo $ECHO_N "(cached) $ECHO_C" >&6
3698 else
3699   cat >conftest.$ac_ext <<_ACEOF
3700 /* confdefs.h.  */
3701 _ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h.  */
3705 $ac_includes_default
3706
3707 #include <$ac_header>
3708 _ACEOF
3709 rm -f conftest.$ac_objext
3710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3711   (eval $ac_compile) 2>conftest.er1
3712   ac_status=$?
3713   grep -v '^ *+' conftest.er1 >conftest.err
3714   rm -f conftest.er1
3715   cat conftest.err >&5
3716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717   (exit $ac_status); } &&
3718          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720   (eval $ac_try) 2>&5
3721   ac_status=$?
3722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723   (exit $ac_status); }; } &&
3724          { ac_try='test -s conftest.$ac_objext'
3725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726   (eval $ac_try) 2>&5
3727   ac_status=$?
3728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729   (exit $ac_status); }; }; then
3730   eval "$as_ac_Header=yes"
3731 else
3732   echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3734
3735 eval "$as_ac_Header=no"
3736 fi
3737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3738 fi
3739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3742   cat >>confdefs.h <<_ACEOF
3743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3744 _ACEOF
3745
3746 fi
3747
3748 done
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759 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
3760 do
3761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3763   echo "$as_me:$LINENO: checking for $ac_header" >&5
3764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3766   echo $ECHO_N "(cached) $ECHO_C" >&6
3767 fi
3768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3770 else
3771   # Is the header compilable?
3772 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3774 cat >conftest.$ac_ext <<_ACEOF
3775 /* confdefs.h.  */
3776 _ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h.  */
3780 $ac_includes_default
3781 #include <$ac_header>
3782 _ACEOF
3783 rm -f conftest.$ac_objext
3784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3785   (eval $ac_compile) 2>conftest.er1
3786   ac_status=$?
3787   grep -v '^ *+' conftest.er1 >conftest.err
3788   rm -f conftest.er1
3789   cat conftest.err >&5
3790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791   (exit $ac_status); } &&
3792          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794   (eval $ac_try) 2>&5
3795   ac_status=$?
3796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797   (exit $ac_status); }; } &&
3798          { ac_try='test -s conftest.$ac_objext'
3799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800   (eval $ac_try) 2>&5
3801   ac_status=$?
3802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803   (exit $ac_status); }; }; then
3804   ac_header_compiler=yes
3805 else
3806   echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3808
3809 ac_header_compiler=no
3810 fi
3811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3813 echo "${ECHO_T}$ac_header_compiler" >&6
3814
3815 # Is the header present?
3816 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3818 cat >conftest.$ac_ext <<_ACEOF
3819 /* confdefs.h.  */
3820 _ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h.  */
3824 #include <$ac_header>
3825 _ACEOF
3826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3827   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3828   ac_status=$?
3829   grep -v '^ *+' conftest.er1 >conftest.err
3830   rm -f conftest.er1
3831   cat conftest.err >&5
3832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833   (exit $ac_status); } >/dev/null; then
3834   if test -s conftest.err; then
3835     ac_cpp_err=$ac_c_preproc_warn_flag
3836     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3837   else
3838     ac_cpp_err=
3839   fi
3840 else
3841   ac_cpp_err=yes
3842 fi
3843 if test -z "$ac_cpp_err"; then
3844   ac_header_preproc=yes
3845 else
3846   echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3848
3849   ac_header_preproc=no
3850 fi
3851 rm -f conftest.err conftest.$ac_ext
3852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3853 echo "${ECHO_T}$ac_header_preproc" >&6
3854
3855 # So?  What about this header?
3856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3857   yes:no: )
3858     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3860     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3862     ac_header_preproc=yes
3863     ;;
3864   no:yes:* )
3865     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3867     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3868 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3869     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3871     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3872 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3873     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3875     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3877     (
3878       cat <<\_ASBOX
3879 ## ------------------------------------------ ##
3880 ## Report this to the AC_PACKAGE_NAME lists.  ##
3881 ## ------------------------------------------ ##
3882 _ASBOX
3883     ) |
3884       sed "s/^/$as_me: WARNING:     /" >&2
3885     ;;
3886 esac
3887 echo "$as_me:$LINENO: checking for $ac_header" >&5
3888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3890   echo $ECHO_N "(cached) $ECHO_C" >&6
3891 else
3892   eval "$as_ac_Header=\$ac_header_preproc"
3893 fi
3894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3896
3897 fi
3898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3899   cat >>confdefs.h <<_ACEOF
3900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3901 _ACEOF
3902
3903 fi
3904
3905 done
3906
3907
3908 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3909 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3910 if test "${ac_cv_c_bigendian+set}" = set; then
3911   echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913   # See if sys/param.h defines the BYTE_ORDER macro.
3914 cat >conftest.$ac_ext <<_ACEOF
3915 /* confdefs.h.  */
3916 _ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h.  */
3920 #include <sys/types.h>
3921 #include <sys/param.h>
3922
3923 int
3924 main ()
3925 {
3926 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3927  bogus endian macros
3928 #endif
3929
3930   ;
3931   return 0;
3932 }
3933 _ACEOF
3934 rm -f conftest.$ac_objext
3935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3936   (eval $ac_compile) 2>conftest.er1
3937   ac_status=$?
3938   grep -v '^ *+' conftest.er1 >conftest.err
3939   rm -f conftest.er1
3940   cat conftest.err >&5
3941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942   (exit $ac_status); } &&
3943          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945   (eval $ac_try) 2>&5
3946   ac_status=$?
3947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948   (exit $ac_status); }; } &&
3949          { ac_try='test -s conftest.$ac_objext'
3950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951   (eval $ac_try) 2>&5
3952   ac_status=$?
3953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954   (exit $ac_status); }; }; then
3955   # It does; now see whether it defined to BIG_ENDIAN or not.
3956 cat >conftest.$ac_ext <<_ACEOF
3957 /* confdefs.h.  */
3958 _ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h.  */
3962 #include <sys/types.h>
3963 #include <sys/param.h>
3964
3965 int
3966 main ()
3967 {
3968 #if BYTE_ORDER != BIG_ENDIAN
3969  not big endian
3970 #endif
3971
3972   ;
3973   return 0;
3974 }
3975 _ACEOF
3976 rm -f conftest.$ac_objext
3977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3978   (eval $ac_compile) 2>conftest.er1
3979   ac_status=$?
3980   grep -v '^ *+' conftest.er1 >conftest.err
3981   rm -f conftest.er1
3982   cat conftest.err >&5
3983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984   (exit $ac_status); } &&
3985          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3987   (eval $ac_try) 2>&5
3988   ac_status=$?
3989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990   (exit $ac_status); }; } &&
3991          { ac_try='test -s conftest.$ac_objext'
3992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993   (eval $ac_try) 2>&5
3994   ac_status=$?
3995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996   (exit $ac_status); }; }; then
3997   ac_cv_c_bigendian=yes
3998 else
3999   echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4001
4002 ac_cv_c_bigendian=no
4003 fi
4004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4005 else
4006   echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4008
4009 # It does not; compile a test program.
4010 if test "$cross_compiling" = yes; then
4011   # try to guess the endianness by grepping values into an object file
4012   ac_cv_c_bigendian=unknown
4013   cat >conftest.$ac_ext <<_ACEOF
4014 /* confdefs.h.  */
4015 _ACEOF
4016 cat confdefs.h >>conftest.$ac_ext
4017 cat >>conftest.$ac_ext <<_ACEOF
4018 /* end confdefs.h.  */
4019 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4020 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4021 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4022 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4023 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4024 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4025 int
4026 main ()
4027 {
4028  _ascii (); _ebcdic ();
4029   ;
4030   return 0;
4031 }
4032 _ACEOF
4033 rm -f conftest.$ac_objext
4034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035   (eval $ac_compile) 2>conftest.er1
4036   ac_status=$?
4037   grep -v '^ *+' conftest.er1 >conftest.err
4038   rm -f conftest.er1
4039   cat conftest.err >&5
4040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041   (exit $ac_status); } &&
4042          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044   (eval $ac_try) 2>&5
4045   ac_status=$?
4046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047   (exit $ac_status); }; } &&
4048          { ac_try='test -s conftest.$ac_objext'
4049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050   (eval $ac_try) 2>&5
4051   ac_status=$?
4052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053   (exit $ac_status); }; }; then
4054   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4055   ac_cv_c_bigendian=yes
4056 fi
4057 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4058   if test "$ac_cv_c_bigendian" = unknown; then
4059     ac_cv_c_bigendian=no
4060   else
4061     # finding both strings is unlikely to happen, but who knows?
4062     ac_cv_c_bigendian=unknown
4063   fi
4064 fi
4065 else
4066   echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4068
4069 fi
4070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4071 else
4072   cat >conftest.$ac_ext <<_ACEOF
4073 /* confdefs.h.  */
4074 _ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h.  */
4078 int
4079 main ()
4080 {
4081   /* Are we little or big endian?  From Harbison&Steele.  */
4082   union
4083   {
4084     long l;
4085     char c[sizeof (long)];
4086   } u;
4087   u.l = 1;
4088   exit (u.c[sizeof (long) - 1] == 1);
4089 }
4090 _ACEOF
4091 rm -f conftest$ac_exeext
4092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4093   (eval $ac_link) 2>&5
4094   ac_status=$?
4095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098   (eval $ac_try) 2>&5
4099   ac_status=$?
4100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101   (exit $ac_status); }; }; then
4102   ac_cv_c_bigendian=no
4103 else
4104   echo "$as_me: program exited with status $ac_status" >&5
4105 echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4107
4108 ( exit $ac_status )
4109 ac_cv_c_bigendian=yes
4110 fi
4111 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4112 fi
4113 fi
4114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4115 fi
4116 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4117 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4118 case $ac_cv_c_bigendian in
4119   yes)
4120
4121 cat >>confdefs.h <<\_ACEOF
4122 #define WORDS_BIGENDIAN 1
4123 _ACEOF
4124  ;;
4125   no)
4126      ;;
4127   *)
4128     { { echo "$as_me:$LINENO: error: unknown endianness
4129 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4130 echo "$as_me: error: unknown endianness
4131 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4132    { (exit 1); exit 1; }; } ;;
4133 esac
4134
4135 echo "$as_me:$LINENO: checking for size_t" >&5
4136 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4137 if test "${ac_cv_type_size_t+set}" = set; then
4138   echo $ECHO_N "(cached) $ECHO_C" >&6
4139 else
4140   cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h.  */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h.  */
4146 $ac_includes_default
4147 int
4148 main ()
4149 {
4150 if ((size_t *) 0)
4151   return 0;
4152 if (sizeof (size_t))
4153   return 0;
4154   ;
4155   return 0;
4156 }
4157 _ACEOF
4158 rm -f conftest.$ac_objext
4159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4160   (eval $ac_compile) 2>conftest.er1
4161   ac_status=$?
4162   grep -v '^ *+' conftest.er1 >conftest.err
4163   rm -f conftest.er1
4164   cat conftest.err >&5
4165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166   (exit $ac_status); } &&
4167          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169   (eval $ac_try) 2>&5
4170   ac_status=$?
4171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172   (exit $ac_status); }; } &&
4173          { ac_try='test -s conftest.$ac_objext'
4174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175   (eval $ac_try) 2>&5
4176   ac_status=$?
4177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178   (exit $ac_status); }; }; then
4179   ac_cv_type_size_t=yes
4180 else
4181   echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4183
4184 ac_cv_type_size_t=no
4185 fi
4186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4187 fi
4188 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4189 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4190 if test $ac_cv_type_size_t = yes; then
4191   :
4192 else
4193
4194 cat >>confdefs.h <<_ACEOF
4195 #define size_t unsigned
4196 _ACEOF
4197
4198 fi
4199
4200 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4201 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4202 if test "${ac_cv_header_time+set}" = set; then
4203   echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205   cat >conftest.$ac_ext <<_ACEOF
4206 /* confdefs.h.  */
4207 _ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h.  */
4211 #include <sys/types.h>
4212 #include <sys/time.h>
4213 #include <time.h>
4214
4215 int
4216 main ()
4217 {
4218 if ((struct tm *) 0)
4219 return 0;
4220   ;
4221   return 0;
4222 }
4223 _ACEOF
4224 rm -f conftest.$ac_objext
4225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4226   (eval $ac_compile) 2>conftest.er1
4227   ac_status=$?
4228   grep -v '^ *+' conftest.er1 >conftest.err
4229   rm -f conftest.er1
4230   cat conftest.err >&5
4231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232   (exit $ac_status); } &&
4233          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235   (eval $ac_try) 2>&5
4236   ac_status=$?
4237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238   (exit $ac_status); }; } &&
4239          { ac_try='test -s conftest.$ac_objext'
4240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241   (eval $ac_try) 2>&5
4242   ac_status=$?
4243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244   (exit $ac_status); }; }; then
4245   ac_cv_header_time=yes
4246 else
4247   echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.$ac_ext >&5
4249
4250 ac_cv_header_time=no
4251 fi
4252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4253 fi
4254 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4255 echo "${ECHO_T}$ac_cv_header_time" >&6
4256 if test $ac_cv_header_time = yes; then
4257
4258 cat >>confdefs.h <<\_ACEOF
4259 #define TIME_WITH_SYS_TIME 1
4260 _ACEOF
4261
4262 fi
4263
4264 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4265 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4266 if test "${ac_cv_struct_tm+set}" = set; then
4267   echo $ECHO_N "(cached) $ECHO_C" >&6
4268 else
4269   cat >conftest.$ac_ext <<_ACEOF
4270 /* confdefs.h.  */
4271 _ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h.  */
4275 #include <sys/types.h>
4276 #include <time.h>
4277
4278 int
4279 main ()
4280 {
4281 struct tm *tp; tp->tm_sec;
4282   ;
4283   return 0;
4284 }
4285 _ACEOF
4286 rm -f conftest.$ac_objext
4287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4288   (eval $ac_compile) 2>conftest.er1
4289   ac_status=$?
4290   grep -v '^ *+' conftest.er1 >conftest.err
4291   rm -f conftest.er1
4292   cat conftest.err >&5
4293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294   (exit $ac_status); } &&
4295          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297   (eval $ac_try) 2>&5
4298   ac_status=$?
4299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300   (exit $ac_status); }; } &&
4301          { ac_try='test -s conftest.$ac_objext'
4302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303   (eval $ac_try) 2>&5
4304   ac_status=$?
4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); }; }; then
4307   ac_cv_struct_tm=time.h
4308 else
4309   echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4311
4312 ac_cv_struct_tm=sys/time.h
4313 fi
4314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4315 fi
4316 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4317 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4318 if test $ac_cv_struct_tm = sys/time.h; then
4319
4320 cat >>confdefs.h <<\_ACEOF
4321 #define TM_IN_SYS_TIME 1
4322 _ACEOF
4323
4324 fi
4325
4326 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4327 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4328 if test "${ac_cv_type_uid_t+set}" = set; then
4329   echo $ECHO_N "(cached) $ECHO_C" >&6
4330 else
4331   cat >conftest.$ac_ext <<_ACEOF
4332 /* confdefs.h.  */
4333 _ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h.  */
4337 #include <sys/types.h>
4338
4339 _ACEOF
4340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4341   $EGREP "uid_t" >/dev/null 2>&1; then
4342   ac_cv_type_uid_t=yes
4343 else
4344   ac_cv_type_uid_t=no
4345 fi
4346 rm -f conftest*
4347
4348 fi
4349 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4350 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4351 if test $ac_cv_type_uid_t = no; then
4352
4353 cat >>confdefs.h <<\_ACEOF
4354 #define uid_t int
4355 _ACEOF
4356
4357
4358 cat >>confdefs.h <<\_ACEOF
4359 #define gid_t int
4360 _ACEOF
4361
4362 fi
4363
4364 echo "$as_me:$LINENO: checking for short" >&5
4365 echo $ECHO_N "checking for short... $ECHO_C" >&6
4366 if test "${ac_cv_type_short+set}" = set; then
4367   echo $ECHO_N "(cached) $ECHO_C" >&6
4368 else
4369   cat >conftest.$ac_ext <<_ACEOF
4370 /* confdefs.h.  */
4371 _ACEOF
4372 cat confdefs.h >>conftest.$ac_ext
4373 cat >>conftest.$ac_ext <<_ACEOF
4374 /* end confdefs.h.  */
4375 $ac_includes_default
4376 int
4377 main ()
4378 {
4379 if ((short *) 0)
4380   return 0;
4381 if (sizeof (short))
4382   return 0;
4383   ;
4384   return 0;
4385 }
4386 _ACEOF
4387 rm -f conftest.$ac_objext
4388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4389   (eval $ac_compile) 2>conftest.er1
4390   ac_status=$?
4391   grep -v '^ *+' conftest.er1 >conftest.err
4392   rm -f conftest.er1
4393   cat conftest.err >&5
4394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395   (exit $ac_status); } &&
4396          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398   (eval $ac_try) 2>&5
4399   ac_status=$?
4400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); }; } &&
4402          { ac_try='test -s conftest.$ac_objext'
4403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404   (eval $ac_try) 2>&5
4405   ac_status=$?
4406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407   (exit $ac_status); }; }; then
4408   ac_cv_type_short=yes
4409 else
4410   echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4412
4413 ac_cv_type_short=no
4414 fi
4415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4416 fi
4417 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4418 echo "${ECHO_T}$ac_cv_type_short" >&6
4419
4420 echo "$as_me:$LINENO: checking size of short" >&5
4421 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4422 if test "${ac_cv_sizeof_short+set}" = set; then
4423   echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425   if test "$ac_cv_type_short" = yes; then
4426   # The cast to unsigned long works around a bug in the HP C Compiler
4427   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4428   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4429   # This bug is HP SR number 8606223364.
4430   if test "$cross_compiling" = yes; then
4431   # Depending upon the size, compute the lo and hi bounds.
4432 cat >conftest.$ac_ext <<_ACEOF
4433 /* confdefs.h.  */
4434 _ACEOF
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4437 /* end confdefs.h.  */
4438 $ac_includes_default
4439 int
4440 main ()
4441 {
4442 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4443 test_array [0] = 0
4444
4445   ;
4446   return 0;
4447 }
4448 _ACEOF
4449 rm -f conftest.$ac_objext
4450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4451   (eval $ac_compile) 2>conftest.er1
4452   ac_status=$?
4453   grep -v '^ *+' conftest.er1 >conftest.err
4454   rm -f conftest.er1
4455   cat conftest.err >&5
4456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457   (exit $ac_status); } &&
4458          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460   (eval $ac_try) 2>&5
4461   ac_status=$?
4462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463   (exit $ac_status); }; } &&
4464          { ac_try='test -s conftest.$ac_objext'
4465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466   (eval $ac_try) 2>&5
4467   ac_status=$?
4468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469   (exit $ac_status); }; }; then
4470   ac_lo=0 ac_mid=0
4471   while :; do
4472     cat >conftest.$ac_ext <<_ACEOF
4473 /* confdefs.h.  */
4474 _ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h.  */
4478 $ac_includes_default
4479 int
4480 main ()
4481 {
4482 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4483 test_array [0] = 0
4484
4485   ;
4486   return 0;
4487 }
4488 _ACEOF
4489 rm -f conftest.$ac_objext
4490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4491   (eval $ac_compile) 2>conftest.er1
4492   ac_status=$?
4493   grep -v '^ *+' conftest.er1 >conftest.err
4494   rm -f conftest.er1
4495   cat conftest.err >&5
4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); } &&
4498          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500   (eval $ac_try) 2>&5
4501   ac_status=$?
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); }; } &&
4504          { ac_try='test -s conftest.$ac_objext'
4505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506   (eval $ac_try) 2>&5
4507   ac_status=$?
4508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509   (exit $ac_status); }; }; then
4510   ac_hi=$ac_mid; break
4511 else
4512   echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.$ac_ext >&5
4514
4515 ac_lo=`expr $ac_mid + 1`
4516                     if test $ac_lo -le $ac_mid; then
4517                       ac_lo= ac_hi=
4518                       break
4519                     fi
4520                     ac_mid=`expr 2 '*' $ac_mid + 1`
4521 fi
4522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4523   done
4524 else
4525   echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4527
4528 cat >conftest.$ac_ext <<_ACEOF
4529 /* confdefs.h.  */
4530 _ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h.  */
4534 $ac_includes_default
4535 int
4536 main ()
4537 {
4538 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4539 test_array [0] = 0
4540
4541   ;
4542   return 0;
4543 }
4544 _ACEOF
4545 rm -f conftest.$ac_objext
4546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4547   (eval $ac_compile) 2>conftest.er1
4548   ac_status=$?
4549   grep -v '^ *+' conftest.er1 >conftest.err
4550   rm -f conftest.er1
4551   cat conftest.err >&5
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); } &&
4554          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556   (eval $ac_try) 2>&5
4557   ac_status=$?
4558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559   (exit $ac_status); }; } &&
4560          { ac_try='test -s conftest.$ac_objext'
4561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562   (eval $ac_try) 2>&5
4563   ac_status=$?
4564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565   (exit $ac_status); }; }; then
4566   ac_hi=-1 ac_mid=-1
4567   while :; do
4568     cat >conftest.$ac_ext <<_ACEOF
4569 /* confdefs.h.  */
4570 _ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h.  */
4574 $ac_includes_default
4575 int
4576 main ()
4577 {
4578 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4579 test_array [0] = 0
4580
4581   ;
4582   return 0;
4583 }
4584 _ACEOF
4585 rm -f conftest.$ac_objext
4586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4587   (eval $ac_compile) 2>conftest.er1
4588   ac_status=$?
4589   grep -v '^ *+' conftest.er1 >conftest.err
4590   rm -f conftest.er1
4591   cat conftest.err >&5
4592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593   (exit $ac_status); } &&
4594          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596   (eval $ac_try) 2>&5
4597   ac_status=$?
4598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599   (exit $ac_status); }; } &&
4600          { ac_try='test -s conftest.$ac_objext'
4601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602   (eval $ac_try) 2>&5
4603   ac_status=$?
4604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605   (exit $ac_status); }; }; then
4606   ac_lo=$ac_mid; break
4607 else
4608   echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4610
4611 ac_hi=`expr '(' $ac_mid ')' - 1`
4612                        if test $ac_mid -le $ac_hi; then
4613                          ac_lo= ac_hi=
4614                          break
4615                        fi
4616                        ac_mid=`expr 2 '*' $ac_mid`
4617 fi
4618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4619   done
4620 else
4621   echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4623
4624 ac_lo= ac_hi=
4625 fi
4626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4627 fi
4628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4629 # Binary search between lo and hi bounds.
4630 while test "x$ac_lo" != "x$ac_hi"; do
4631   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4632   cat >conftest.$ac_ext <<_ACEOF
4633 /* confdefs.h.  */
4634 _ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h.  */
4638 $ac_includes_default
4639 int
4640 main ()
4641 {
4642 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4643 test_array [0] = 0
4644
4645   ;
4646   return 0;
4647 }
4648 _ACEOF
4649 rm -f conftest.$ac_objext
4650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4651   (eval $ac_compile) 2>conftest.er1
4652   ac_status=$?
4653   grep -v '^ *+' conftest.er1 >conftest.err
4654   rm -f conftest.er1
4655   cat conftest.err >&5
4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); } &&
4658          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660   (eval $ac_try) 2>&5
4661   ac_status=$?
4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); }; } &&
4664          { ac_try='test -s conftest.$ac_objext'
4665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666   (eval $ac_try) 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); }; }; then
4670   ac_hi=$ac_mid
4671 else
4672   echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4674
4675 ac_lo=`expr '(' $ac_mid ')' + 1`
4676 fi
4677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4678 done
4679 case $ac_lo in
4680 ?*) ac_cv_sizeof_short=$ac_lo;;
4681 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4682 See \`config.log' for more details." >&5
4683 echo "$as_me: error: cannot compute sizeof (short), 77
4684 See \`config.log' for more details." >&2;}
4685    { (exit 1); exit 1; }; } ;;
4686 esac
4687 else
4688   if test "$cross_compiling" = yes; then
4689   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4690 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4691    { (exit 1); exit 1; }; }
4692 else
4693   cat >conftest.$ac_ext <<_ACEOF
4694 /* confdefs.h.  */
4695 _ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h.  */
4699 $ac_includes_default
4700 long longval () { return (long) (sizeof (short)); }
4701 unsigned long ulongval () { return (long) (sizeof (short)); }
4702 #include <stdio.h>
4703 #include <stdlib.h>
4704 int
4705 main ()
4706 {
4707
4708   FILE *f = fopen ("conftest.val", "w");
4709   if (! f)
4710     exit (1);
4711   if (((long) (sizeof (short))) < 0)
4712     {
4713       long i = longval ();
4714       if (i != ((long) (sizeof (short))))
4715         exit (1);
4716       fprintf (f, "%ld\n", i);
4717     }
4718   else
4719     {
4720       unsigned long i = ulongval ();
4721       if (i != ((long) (sizeof (short))))
4722         exit (1);
4723       fprintf (f, "%lu\n", i);
4724     }
4725   exit (ferror (f) || fclose (f) != 0);
4726
4727   ;
4728   return 0;
4729 }
4730 _ACEOF
4731 rm -f conftest$ac_exeext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4733   (eval $ac_link) 2>&5
4734   ac_status=$?
4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738   (eval $ac_try) 2>&5
4739   ac_status=$?
4740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741   (exit $ac_status); }; }; then
4742   ac_cv_sizeof_short=`cat conftest.val`
4743 else
4744   echo "$as_me: program exited with status $ac_status" >&5
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4747
4748 ( exit $ac_status )
4749 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4750 See \`config.log' for more details." >&5
4751 echo "$as_me: error: cannot compute sizeof (short), 77
4752 See \`config.log' for more details." >&2;}
4753    { (exit 1); exit 1; }; }
4754 fi
4755 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4756 fi
4757 fi
4758 rm -f conftest.val
4759 else
4760   ac_cv_sizeof_short=0
4761 fi
4762 fi
4763 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4764 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4765 cat >>confdefs.h <<_ACEOF
4766 #define SIZEOF_SHORT $ac_cv_sizeof_short
4767 _ACEOF
4768
4769
4770 echo "$as_me:$LINENO: checking for int" >&5
4771 echo $ECHO_N "checking for int... $ECHO_C" >&6
4772 if test "${ac_cv_type_int+set}" = set; then
4773   echo $ECHO_N "(cached) $ECHO_C" >&6
4774 else
4775   cat >conftest.$ac_ext <<_ACEOF
4776 /* confdefs.h.  */
4777 _ACEOF
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h.  */
4781 $ac_includes_default
4782 int
4783 main ()
4784 {
4785 if ((int *) 0)
4786   return 0;
4787 if (sizeof (int))
4788   return 0;
4789   ;
4790   return 0;
4791 }
4792 _ACEOF
4793 rm -f conftest.$ac_objext
4794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4795   (eval $ac_compile) 2>conftest.er1
4796   ac_status=$?
4797   grep -v '^ *+' conftest.er1 >conftest.err
4798   rm -f conftest.er1
4799   cat conftest.err >&5
4800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801   (exit $ac_status); } &&
4802          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804   (eval $ac_try) 2>&5
4805   ac_status=$?
4806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807   (exit $ac_status); }; } &&
4808          { ac_try='test -s conftest.$ac_objext'
4809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810   (eval $ac_try) 2>&5
4811   ac_status=$?
4812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813   (exit $ac_status); }; }; then
4814   ac_cv_type_int=yes
4815 else
4816   echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4818
4819 ac_cv_type_int=no
4820 fi
4821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4822 fi
4823 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4824 echo "${ECHO_T}$ac_cv_type_int" >&6
4825
4826 echo "$as_me:$LINENO: checking size of int" >&5
4827 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4828 if test "${ac_cv_sizeof_int+set}" = set; then
4829   echo $ECHO_N "(cached) $ECHO_C" >&6
4830 else
4831   if test "$ac_cv_type_int" = yes; then
4832   # The cast to unsigned long works around a bug in the HP C Compiler
4833   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4834   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4835   # This bug is HP SR number 8606223364.
4836   if test "$cross_compiling" = yes; then
4837   # Depending upon the size, compute the lo and hi bounds.
4838 cat >conftest.$ac_ext <<_ACEOF
4839 /* confdefs.h.  */
4840 _ACEOF
4841 cat confdefs.h >>conftest.$ac_ext
4842 cat >>conftest.$ac_ext <<_ACEOF
4843 /* end confdefs.h.  */
4844 $ac_includes_default
4845 int
4846 main ()
4847 {
4848 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4849 test_array [0] = 0
4850
4851   ;
4852   return 0;
4853 }
4854 _ACEOF
4855 rm -f conftest.$ac_objext
4856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857   (eval $ac_compile) 2>conftest.er1
4858   ac_status=$?
4859   grep -v '^ *+' conftest.er1 >conftest.err
4860   rm -f conftest.er1
4861   cat conftest.err >&5
4862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863   (exit $ac_status); } &&
4864          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866   (eval $ac_try) 2>&5
4867   ac_status=$?
4868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869   (exit $ac_status); }; } &&
4870          { ac_try='test -s conftest.$ac_objext'
4871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872   (eval $ac_try) 2>&5
4873   ac_status=$?
4874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875   (exit $ac_status); }; }; then
4876   ac_lo=0 ac_mid=0
4877   while :; do
4878     cat >conftest.$ac_ext <<_ACEOF
4879 /* confdefs.h.  */
4880 _ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h.  */
4884 $ac_includes_default
4885 int
4886 main ()
4887 {
4888 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4889 test_array [0] = 0
4890
4891   ;
4892   return 0;
4893 }
4894 _ACEOF
4895 rm -f conftest.$ac_objext
4896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4897   (eval $ac_compile) 2>conftest.er1
4898   ac_status=$?
4899   grep -v '^ *+' conftest.er1 >conftest.err
4900   rm -f conftest.er1
4901   cat conftest.err >&5
4902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903   (exit $ac_status); } &&
4904          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906   (eval $ac_try) 2>&5
4907   ac_status=$?
4908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909   (exit $ac_status); }; } &&
4910          { ac_try='test -s conftest.$ac_objext'
4911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912   (eval $ac_try) 2>&5
4913   ac_status=$?
4914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915   (exit $ac_status); }; }; then
4916   ac_hi=$ac_mid; break
4917 else
4918   echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.$ac_ext >&5
4920
4921 ac_lo=`expr $ac_mid + 1`
4922                     if test $ac_lo -le $ac_mid; then
4923                       ac_lo= ac_hi=
4924                       break
4925                     fi
4926                     ac_mid=`expr 2 '*' $ac_mid + 1`
4927 fi
4928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4929   done
4930 else
4931   echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.$ac_ext >&5
4933
4934 cat >conftest.$ac_ext <<_ACEOF
4935 /* confdefs.h.  */
4936 _ACEOF
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h.  */
4940 $ac_includes_default
4941 int
4942 main ()
4943 {
4944 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4945 test_array [0] = 0
4946
4947   ;
4948   return 0;
4949 }
4950 _ACEOF
4951 rm -f conftest.$ac_objext
4952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4953   (eval $ac_compile) 2>conftest.er1
4954   ac_status=$?
4955   grep -v '^ *+' conftest.er1 >conftest.err
4956   rm -f conftest.er1
4957   cat conftest.err >&5
4958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959   (exit $ac_status); } &&
4960          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962   (eval $ac_try) 2>&5
4963   ac_status=$?
4964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965   (exit $ac_status); }; } &&
4966          { ac_try='test -s conftest.$ac_objext'
4967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968   (eval $ac_try) 2>&5
4969   ac_status=$?
4970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971   (exit $ac_status); }; }; then
4972   ac_hi=-1 ac_mid=-1
4973   while :; do
4974     cat >conftest.$ac_ext <<_ACEOF
4975 /* confdefs.h.  */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h.  */
4980 $ac_includes_default
4981 int
4982 main ()
4983 {
4984 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4985 test_array [0] = 0
4986
4987   ;
4988   return 0;
4989 }
4990 _ACEOF
4991 rm -f conftest.$ac_objext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993   (eval $ac_compile) 2>conftest.er1
4994   ac_status=$?
4995   grep -v '^ *+' conftest.er1 >conftest.err
4996   rm -f conftest.er1
4997   cat conftest.err >&5
4998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999   (exit $ac_status); } &&
5000          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002   (eval $ac_try) 2>&5
5003   ac_status=$?
5004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005   (exit $ac_status); }; } &&
5006          { ac_try='test -s conftest.$ac_objext'
5007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008   (eval $ac_try) 2>&5
5009   ac_status=$?
5010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011   (exit $ac_status); }; }; then
5012   ac_lo=$ac_mid; break
5013 else
5014   echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5016
5017 ac_hi=`expr '(' $ac_mid ')' - 1`
5018                        if test $ac_mid -le $ac_hi; then
5019                          ac_lo= ac_hi=
5020                          break
5021                        fi
5022                        ac_mid=`expr 2 '*' $ac_mid`
5023 fi
5024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5025   done
5026 else
5027   echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5029
5030 ac_lo= ac_hi=
5031 fi
5032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5033 fi
5034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5035 # Binary search between lo and hi bounds.
5036 while test "x$ac_lo" != "x$ac_hi"; do
5037   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5038   cat >conftest.$ac_ext <<_ACEOF
5039 /* confdefs.h.  */
5040 _ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h.  */
5044 $ac_includes_default
5045 int
5046 main ()
5047 {
5048 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5049 test_array [0] = 0
5050
5051   ;
5052   return 0;
5053 }
5054 _ACEOF
5055 rm -f conftest.$ac_objext
5056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5057   (eval $ac_compile) 2>conftest.er1
5058   ac_status=$?
5059   grep -v '^ *+' conftest.er1 >conftest.err
5060   rm -f conftest.er1
5061   cat conftest.err >&5
5062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063   (exit $ac_status); } &&
5064          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5066   (eval $ac_try) 2>&5
5067   ac_status=$?
5068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069   (exit $ac_status); }; } &&
5070          { ac_try='test -s conftest.$ac_objext'
5071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072   (eval $ac_try) 2>&5
5073   ac_status=$?
5074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075   (exit $ac_status); }; }; then
5076   ac_hi=$ac_mid
5077 else
5078   echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5080
5081 ac_lo=`expr '(' $ac_mid ')' + 1`
5082 fi
5083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5084 done
5085 case $ac_lo in
5086 ?*) ac_cv_sizeof_int=$ac_lo;;
5087 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5088 See \`config.log' for more details." >&5
5089 echo "$as_me: error: cannot compute sizeof (int), 77
5090 See \`config.log' for more details." >&2;}
5091    { (exit 1); exit 1; }; } ;;
5092 esac
5093 else
5094   if test "$cross_compiling" = yes; then
5095   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5096 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5097    { (exit 1); exit 1; }; }
5098 else
5099   cat >conftest.$ac_ext <<_ACEOF
5100 /* confdefs.h.  */
5101 _ACEOF
5102 cat confdefs.h >>conftest.$ac_ext
5103 cat >>conftest.$ac_ext <<_ACEOF
5104 /* end confdefs.h.  */
5105 $ac_includes_default
5106 long longval () { return (long) (sizeof (int)); }
5107 unsigned long ulongval () { return (long) (sizeof (int)); }
5108 #include <stdio.h>
5109 #include <stdlib.h>
5110 int
5111 main ()
5112 {
5113
5114   FILE *f = fopen ("conftest.val", "w");
5115   if (! f)
5116     exit (1);
5117   if (((long) (sizeof (int))) < 0)
5118     {
5119       long i = longval ();
5120       if (i != ((long) (sizeof (int))))
5121         exit (1);
5122       fprintf (f, "%ld\n", i);
5123     }
5124   else
5125     {
5126       unsigned long i = ulongval ();
5127       if (i != ((long) (sizeof (int))))
5128         exit (1);
5129       fprintf (f, "%lu\n", i);
5130     }
5131   exit (ferror (f) || fclose (f) != 0);
5132
5133   ;
5134   return 0;
5135 }
5136 _ACEOF
5137 rm -f conftest$ac_exeext
5138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5139   (eval $ac_link) 2>&5
5140   ac_status=$?
5141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144   (eval $ac_try) 2>&5
5145   ac_status=$?
5146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147   (exit $ac_status); }; }; then
5148   ac_cv_sizeof_int=`cat conftest.val`
5149 else
5150   echo "$as_me: program exited with status $ac_status" >&5
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5153
5154 ( exit $ac_status )
5155 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5156 See \`config.log' for more details." >&5
5157 echo "$as_me: error: cannot compute sizeof (int), 77
5158 See \`config.log' for more details." >&2;}
5159    { (exit 1); exit 1; }; }
5160 fi
5161 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5162 fi
5163 fi
5164 rm -f conftest.val
5165 else
5166   ac_cv_sizeof_int=0
5167 fi
5168 fi
5169 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5170 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5171 cat >>confdefs.h <<_ACEOF
5172 #define SIZEOF_INT $ac_cv_sizeof_int
5173 _ACEOF
5174
5175
5176 echo "$as_me:$LINENO: checking for long" >&5
5177 echo $ECHO_N "checking for long... $ECHO_C" >&6
5178 if test "${ac_cv_type_long+set}" = set; then
5179   echo $ECHO_N "(cached) $ECHO_C" >&6
5180 else
5181   cat >conftest.$ac_ext <<_ACEOF
5182 /* confdefs.h.  */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h.  */
5187 $ac_includes_default
5188 int
5189 main ()
5190 {
5191 if ((long *) 0)
5192   return 0;
5193 if (sizeof (long))
5194   return 0;
5195   ;
5196   return 0;
5197 }
5198 _ACEOF
5199 rm -f conftest.$ac_objext
5200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5201   (eval $ac_compile) 2>conftest.er1
5202   ac_status=$?
5203   grep -v '^ *+' conftest.er1 >conftest.err
5204   rm -f conftest.er1
5205   cat conftest.err >&5
5206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207   (exit $ac_status); } &&
5208          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210   (eval $ac_try) 2>&5
5211   ac_status=$?
5212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213   (exit $ac_status); }; } &&
5214          { ac_try='test -s conftest.$ac_objext'
5215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216   (eval $ac_try) 2>&5
5217   ac_status=$?
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); }; }; then
5220   ac_cv_type_long=yes
5221 else
5222   echo "$as_me: failed program was:" >&5
5223 sed 's/^/| /' conftest.$ac_ext >&5
5224
5225 ac_cv_type_long=no
5226 fi
5227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5228 fi
5229 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5230 echo "${ECHO_T}$ac_cv_type_long" >&6
5231
5232 echo "$as_me:$LINENO: checking size of long" >&5
5233 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5234 if test "${ac_cv_sizeof_long+set}" = set; then
5235   echo $ECHO_N "(cached) $ECHO_C" >&6
5236 else
5237   if test "$ac_cv_type_long" = yes; then
5238   # The cast to unsigned long works around a bug in the HP C Compiler
5239   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5240   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5241   # This bug is HP SR number 8606223364.
5242   if test "$cross_compiling" = yes; then
5243   # Depending upon the size, compute the lo and hi bounds.
5244 cat >conftest.$ac_ext <<_ACEOF
5245 /* confdefs.h.  */
5246 _ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h.  */
5250 $ac_includes_default
5251 int
5252 main ()
5253 {
5254 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5255 test_array [0] = 0
5256
5257   ;
5258   return 0;
5259 }
5260 _ACEOF
5261 rm -f conftest.$ac_objext
5262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5263   (eval $ac_compile) 2>conftest.er1
5264   ac_status=$?
5265   grep -v '^ *+' conftest.er1 >conftest.err
5266   rm -f conftest.er1
5267   cat conftest.err >&5
5268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269   (exit $ac_status); } &&
5270          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272   (eval $ac_try) 2>&5
5273   ac_status=$?
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); }; } &&
5276          { ac_try='test -s conftest.$ac_objext'
5277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278   (eval $ac_try) 2>&5
5279   ac_status=$?
5280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); }; }; then
5282   ac_lo=0 ac_mid=0
5283   while :; do
5284     cat >conftest.$ac_ext <<_ACEOF
5285 /* confdefs.h.  */
5286 _ACEOF
5287 cat confdefs.h >>conftest.$ac_ext
5288 cat >>conftest.$ac_ext <<_ACEOF
5289 /* end confdefs.h.  */
5290 $ac_includes_default
5291 int
5292 main ()
5293 {
5294 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5295 test_array [0] = 0
5296
5297   ;
5298   return 0;
5299 }
5300 _ACEOF
5301 rm -f conftest.$ac_objext
5302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5303   (eval $ac_compile) 2>conftest.er1
5304   ac_status=$?
5305   grep -v '^ *+' conftest.er1 >conftest.err
5306   rm -f conftest.er1
5307   cat conftest.err >&5
5308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309   (exit $ac_status); } &&
5310          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312   (eval $ac_try) 2>&5
5313   ac_status=$?
5314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315   (exit $ac_status); }; } &&
5316          { ac_try='test -s conftest.$ac_objext'
5317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318   (eval $ac_try) 2>&5
5319   ac_status=$?
5320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321   (exit $ac_status); }; }; then
5322   ac_hi=$ac_mid; break
5323 else
5324   echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5326
5327 ac_lo=`expr $ac_mid + 1`
5328                     if test $ac_lo -le $ac_mid; then
5329                       ac_lo= ac_hi=
5330                       break
5331                     fi
5332                     ac_mid=`expr 2 '*' $ac_mid + 1`
5333 fi
5334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5335   done
5336 else
5337   echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5339
5340 cat >conftest.$ac_ext <<_ACEOF
5341 /* confdefs.h.  */
5342 _ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h.  */
5346 $ac_includes_default
5347 int
5348 main ()
5349 {
5350 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5351 test_array [0] = 0
5352
5353   ;
5354   return 0;
5355 }
5356 _ACEOF
5357 rm -f conftest.$ac_objext
5358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5359   (eval $ac_compile) 2>conftest.er1
5360   ac_status=$?
5361   grep -v '^ *+' conftest.er1 >conftest.err
5362   rm -f conftest.er1
5363   cat conftest.err >&5
5364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365   (exit $ac_status); } &&
5366          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368   (eval $ac_try) 2>&5
5369   ac_status=$?
5370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371   (exit $ac_status); }; } &&
5372          { ac_try='test -s conftest.$ac_objext'
5373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374   (eval $ac_try) 2>&5
5375   ac_status=$?
5376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377   (exit $ac_status); }; }; then
5378   ac_hi=-1 ac_mid=-1
5379   while :; do
5380     cat >conftest.$ac_ext <<_ACEOF
5381 /* confdefs.h.  */
5382 _ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h.  */
5386 $ac_includes_default
5387 int
5388 main ()
5389 {
5390 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5391 test_array [0] = 0
5392
5393   ;
5394   return 0;
5395 }
5396 _ACEOF
5397 rm -f conftest.$ac_objext
5398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5399   (eval $ac_compile) 2>conftest.er1
5400   ac_status=$?
5401   grep -v '^ *+' conftest.er1 >conftest.err
5402   rm -f conftest.er1
5403   cat conftest.err >&5
5404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405   (exit $ac_status); } &&
5406          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408   (eval $ac_try) 2>&5
5409   ac_status=$?
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); }; } &&
5412          { ac_try='test -s conftest.$ac_objext'
5413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414   (eval $ac_try) 2>&5
5415   ac_status=$?
5416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417   (exit $ac_status); }; }; then
5418   ac_lo=$ac_mid; break
5419 else
5420   echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5422
5423 ac_hi=`expr '(' $ac_mid ')' - 1`
5424                        if test $ac_mid -le $ac_hi; then
5425                          ac_lo= ac_hi=
5426                          break
5427                        fi
5428                        ac_mid=`expr 2 '*' $ac_mid`
5429 fi
5430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5431   done
5432 else
5433   echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5435
5436 ac_lo= ac_hi=
5437 fi
5438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5439 fi
5440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5441 # Binary search between lo and hi bounds.
5442 while test "x$ac_lo" != "x$ac_hi"; do
5443   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5444   cat >conftest.$ac_ext <<_ACEOF
5445 /* confdefs.h.  */
5446 _ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h.  */
5450 $ac_includes_default
5451 int
5452 main ()
5453 {
5454 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5455 test_array [0] = 0
5456
5457   ;
5458   return 0;
5459 }
5460 _ACEOF
5461 rm -f conftest.$ac_objext
5462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5463   (eval $ac_compile) 2>conftest.er1
5464   ac_status=$?
5465   grep -v '^ *+' conftest.er1 >conftest.err
5466   rm -f conftest.er1
5467   cat conftest.err >&5
5468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469   (exit $ac_status); } &&
5470          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472   (eval $ac_try) 2>&5
5473   ac_status=$?
5474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475   (exit $ac_status); }; } &&
5476          { ac_try='test -s conftest.$ac_objext'
5477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5478   (eval $ac_try) 2>&5
5479   ac_status=$?
5480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481   (exit $ac_status); }; }; then
5482   ac_hi=$ac_mid
5483 else
5484   echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5486
5487 ac_lo=`expr '(' $ac_mid ')' + 1`
5488 fi
5489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5490 done
5491 case $ac_lo in
5492 ?*) ac_cv_sizeof_long=$ac_lo;;
5493 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5494 See \`config.log' for more details." >&5
5495 echo "$as_me: error: cannot compute sizeof (long), 77
5496 See \`config.log' for more details." >&2;}
5497    { (exit 1); exit 1; }; } ;;
5498 esac
5499 else
5500   if test "$cross_compiling" = yes; then
5501   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5502 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5503    { (exit 1); exit 1; }; }
5504 else
5505   cat >conftest.$ac_ext <<_ACEOF
5506 /* confdefs.h.  */
5507 _ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h.  */
5511 $ac_includes_default
5512 long longval () { return (long) (sizeof (long)); }
5513 unsigned long ulongval () { return (long) (sizeof (long)); }
5514 #include <stdio.h>
5515 #include <stdlib.h>
5516 int
5517 main ()
5518 {
5519
5520   FILE *f = fopen ("conftest.val", "w");
5521   if (! f)
5522     exit (1);
5523   if (((long) (sizeof (long))) < 0)
5524     {
5525       long i = longval ();
5526       if (i != ((long) (sizeof (long))))
5527         exit (1);
5528       fprintf (f, "%ld\n", i);
5529     }
5530   else
5531     {
5532       unsigned long i = ulongval ();
5533       if (i != ((long) (sizeof (long))))
5534         exit (1);
5535       fprintf (f, "%lu\n", i);
5536     }
5537   exit (ferror (f) || fclose (f) != 0);
5538
5539   ;
5540   return 0;
5541 }
5542 _ACEOF
5543 rm -f conftest$ac_exeext
5544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5545   (eval $ac_link) 2>&5
5546   ac_status=$?
5547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550   (eval $ac_try) 2>&5
5551   ac_status=$?
5552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553   (exit $ac_status); }; }; then
5554   ac_cv_sizeof_long=`cat conftest.val`
5555 else
5556   echo "$as_me: program exited with status $ac_status" >&5
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5559
5560 ( exit $ac_status )
5561 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5562 See \`config.log' for more details." >&5
5563 echo "$as_me: error: cannot compute sizeof (long), 77
5564 See \`config.log' for more details." >&2;}
5565    { (exit 1); exit 1; }; }
5566 fi
5567 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5568 fi
5569 fi
5570 rm -f conftest.val
5571 else
5572   ac_cv_sizeof_long=0
5573 fi
5574 fi
5575 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5576 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5577 cat >>confdefs.h <<_ACEOF
5578 #define SIZEOF_LONG $ac_cv_sizeof_long
5579 _ACEOF
5580
5581
5582 echo "$as_me:$LINENO: checking for void *" >&5
5583 echo $ECHO_N "checking for void *... $ECHO_C" >&6
5584 if test "${ac_cv_type_void_p+set}" = set; then
5585   echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587   cat >conftest.$ac_ext <<_ACEOF
5588 /* confdefs.h.  */
5589 _ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h.  */
5593 $ac_includes_default
5594 int
5595 main ()
5596 {
5597 if ((void * *) 0)
5598   return 0;
5599 if (sizeof (void *))
5600   return 0;
5601   ;
5602   return 0;
5603 }
5604 _ACEOF
5605 rm -f conftest.$ac_objext
5606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5607   (eval $ac_compile) 2>conftest.er1
5608   ac_status=$?
5609   grep -v '^ *+' conftest.er1 >conftest.err
5610   rm -f conftest.er1
5611   cat conftest.err >&5
5612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613   (exit $ac_status); } &&
5614          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616   (eval $ac_try) 2>&5
5617   ac_status=$?
5618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619   (exit $ac_status); }; } &&
5620          { ac_try='test -s conftest.$ac_objext'
5621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622   (eval $ac_try) 2>&5
5623   ac_status=$?
5624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625   (exit $ac_status); }; }; then
5626   ac_cv_type_void_p=yes
5627 else
5628   echo "$as_me: failed program was:" >&5
5629 sed 's/^/| /' conftest.$ac_ext >&5
5630
5631 ac_cv_type_void_p=no
5632 fi
5633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5634 fi
5635 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
5636 echo "${ECHO_T}$ac_cv_type_void_p" >&6
5637
5638 echo "$as_me:$LINENO: checking size of void *" >&5
5639 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
5640 if test "${ac_cv_sizeof_void_p+set}" = set; then
5641   echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643   if test "$ac_cv_type_void_p" = yes; then
5644   # The cast to unsigned long works around a bug in the HP C Compiler
5645   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5646   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5647   # This bug is HP SR number 8606223364.
5648   if test "$cross_compiling" = yes; then
5649   # Depending upon the size, compute the lo and hi bounds.
5650 cat >conftest.$ac_ext <<_ACEOF
5651 /* confdefs.h.  */
5652 _ACEOF
5653 cat confdefs.h >>conftest.$ac_ext
5654 cat >>conftest.$ac_ext <<_ACEOF
5655 /* end confdefs.h.  */
5656 $ac_includes_default
5657 int
5658 main ()
5659 {
5660 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
5661 test_array [0] = 0
5662
5663   ;
5664   return 0;
5665 }
5666 _ACEOF
5667 rm -f conftest.$ac_objext
5668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5669   (eval $ac_compile) 2>conftest.er1
5670   ac_status=$?
5671   grep -v '^ *+' conftest.er1 >conftest.err
5672   rm -f conftest.er1
5673   cat conftest.err >&5
5674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); } &&
5676          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678   (eval $ac_try) 2>&5
5679   ac_status=$?
5680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681   (exit $ac_status); }; } &&
5682          { ac_try='test -s conftest.$ac_objext'
5683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684   (eval $ac_try) 2>&5
5685   ac_status=$?
5686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687   (exit $ac_status); }; }; then
5688   ac_lo=0 ac_mid=0
5689   while :; do
5690     cat >conftest.$ac_ext <<_ACEOF
5691 /* confdefs.h.  */
5692 _ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h.  */
5696 $ac_includes_default
5697 int
5698 main ()
5699 {
5700 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5701 test_array [0] = 0
5702
5703   ;
5704   return 0;
5705 }
5706 _ACEOF
5707 rm -f conftest.$ac_objext
5708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5709   (eval $ac_compile) 2>conftest.er1
5710   ac_status=$?
5711   grep -v '^ *+' conftest.er1 >conftest.err
5712   rm -f conftest.er1
5713   cat conftest.err >&5
5714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715   (exit $ac_status); } &&
5716          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718   (eval $ac_try) 2>&5
5719   ac_status=$?
5720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721   (exit $ac_status); }; } &&
5722          { ac_try='test -s conftest.$ac_objext'
5723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724   (eval $ac_try) 2>&5
5725   ac_status=$?
5726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727   (exit $ac_status); }; }; then
5728   ac_hi=$ac_mid; break
5729 else
5730   echo "$as_me: failed program was:" >&5
5731 sed 's/^/| /' conftest.$ac_ext >&5
5732
5733 ac_lo=`expr $ac_mid + 1`
5734                     if test $ac_lo -le $ac_mid; then
5735                       ac_lo= ac_hi=
5736                       break
5737                     fi
5738                     ac_mid=`expr 2 '*' $ac_mid + 1`
5739 fi
5740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5741   done
5742 else
5743   echo "$as_me: failed program was:" >&5
5744 sed 's/^/| /' conftest.$ac_ext >&5
5745
5746 cat >conftest.$ac_ext <<_ACEOF
5747 /* confdefs.h.  */
5748 _ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h.  */
5752 $ac_includes_default
5753 int
5754 main ()
5755 {
5756 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
5757 test_array [0] = 0
5758
5759   ;
5760   return 0;
5761 }
5762 _ACEOF
5763 rm -f conftest.$ac_objext
5764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5765   (eval $ac_compile) 2>conftest.er1
5766   ac_status=$?
5767   grep -v '^ *+' conftest.er1 >conftest.err
5768   rm -f conftest.er1
5769   cat conftest.err >&5
5770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771   (exit $ac_status); } &&
5772          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774   (eval $ac_try) 2>&5
5775   ac_status=$?
5776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777   (exit $ac_status); }; } &&
5778          { ac_try='test -s conftest.$ac_objext'
5779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780   (eval $ac_try) 2>&5
5781   ac_status=$?
5782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783   (exit $ac_status); }; }; then
5784   ac_hi=-1 ac_mid=-1
5785   while :; do
5786     cat >conftest.$ac_ext <<_ACEOF
5787 /* confdefs.h.  */
5788 _ACEOF
5789 cat confdefs.h >>conftest.$ac_ext
5790 cat >>conftest.$ac_ext <<_ACEOF
5791 /* end confdefs.h.  */
5792 $ac_includes_default
5793 int
5794 main ()
5795 {
5796 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
5797 test_array [0] = 0
5798
5799   ;
5800   return 0;
5801 }
5802 _ACEOF
5803 rm -f conftest.$ac_objext
5804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5805   (eval $ac_compile) 2>conftest.er1
5806   ac_status=$?
5807   grep -v '^ *+' conftest.er1 >conftest.err
5808   rm -f conftest.er1
5809   cat conftest.err >&5
5810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811   (exit $ac_status); } &&
5812          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814   (eval $ac_try) 2>&5
5815   ac_status=$?
5816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817   (exit $ac_status); }; } &&
5818          { ac_try='test -s conftest.$ac_objext'
5819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820   (eval $ac_try) 2>&5
5821   ac_status=$?
5822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823   (exit $ac_status); }; }; then
5824   ac_lo=$ac_mid; break
5825 else
5826   echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5828
5829 ac_hi=`expr '(' $ac_mid ')' - 1`
5830                        if test $ac_mid -le $ac_hi; then
5831                          ac_lo= ac_hi=
5832                          break
5833                        fi
5834                        ac_mid=`expr 2 '*' $ac_mid`
5835 fi
5836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5837   done
5838 else
5839   echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5841
5842 ac_lo= ac_hi=
5843 fi
5844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5845 fi
5846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5847 # Binary search between lo and hi bounds.
5848 while test "x$ac_lo" != "x$ac_hi"; do
5849   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5850   cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h.  */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h.  */
5856 $ac_includes_default
5857 int
5858 main ()
5859 {
5860 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5861 test_array [0] = 0
5862
5863   ;
5864   return 0;
5865 }
5866 _ACEOF
5867 rm -f conftest.$ac_objext
5868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5869   (eval $ac_compile) 2>conftest.er1
5870   ac_status=$?
5871   grep -v '^ *+' conftest.er1 >conftest.err
5872   rm -f conftest.er1
5873   cat conftest.err >&5
5874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875   (exit $ac_status); } &&
5876          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878   (eval $ac_try) 2>&5
5879   ac_status=$?
5880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881   (exit $ac_status); }; } &&
5882          { ac_try='test -s conftest.$ac_objext'
5883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884   (eval $ac_try) 2>&5
5885   ac_status=$?
5886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887   (exit $ac_status); }; }; then
5888   ac_hi=$ac_mid
5889 else
5890   echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5892
5893 ac_lo=`expr '(' $ac_mid ')' + 1`
5894 fi
5895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5896 done
5897 case $ac_lo in
5898 ?*) ac_cv_sizeof_void_p=$ac_lo;;
5899 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5900 See \`config.log' for more details." >&5
5901 echo "$as_me: error: cannot compute sizeof (void *), 77
5902 See \`config.log' for more details." >&2;}
5903    { (exit 1); exit 1; }; } ;;
5904 esac
5905 else
5906   if test "$cross_compiling" = yes; then
5907   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5908 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5909    { (exit 1); exit 1; }; }
5910 else
5911   cat >conftest.$ac_ext <<_ACEOF
5912 /* confdefs.h.  */
5913 _ACEOF
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h.  */
5917 $ac_includes_default
5918 long longval () { return (long) (sizeof (void *)); }
5919 unsigned long ulongval () { return (long) (sizeof (void *)); }
5920 #include <stdio.h>
5921 #include <stdlib.h>
5922 int
5923 main ()
5924 {
5925
5926   FILE *f = fopen ("conftest.val", "w");
5927   if (! f)
5928     exit (1);
5929   if (((long) (sizeof (void *))) < 0)
5930     {
5931       long i = longval ();
5932       if (i != ((long) (sizeof (void *))))
5933         exit (1);
5934       fprintf (f, "%ld\n", i);
5935     }
5936   else
5937     {
5938       unsigned long i = ulongval ();
5939       if (i != ((long) (sizeof (void *))))
5940         exit (1);
5941       fprintf (f, "%lu\n", i);
5942     }
5943   exit (ferror (f) || fclose (f) != 0);
5944
5945   ;
5946   return 0;
5947 }
5948 _ACEOF
5949 rm -f conftest$ac_exeext
5950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5951   (eval $ac_link) 2>&5
5952   ac_status=$?
5953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956   (eval $ac_try) 2>&5
5957   ac_status=$?
5958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959   (exit $ac_status); }; }; then
5960   ac_cv_sizeof_void_p=`cat conftest.val`
5961 else
5962   echo "$as_me: program exited with status $ac_status" >&5
5963 echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5965
5966 ( exit $ac_status )
5967 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5968 See \`config.log' for more details." >&5
5969 echo "$as_me: error: cannot compute sizeof (void *), 77
5970 See \`config.log' for more details." >&2;}
5971    { (exit 1); exit 1; }; }
5972 fi
5973 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5974 fi
5975 fi
5976 rm -f conftest.val
5977 else
5978   ac_cv_sizeof_void_p=0
5979 fi
5980 fi
5981 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
5982 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
5983 cat >>confdefs.h <<_ACEOF
5984 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5985 _ACEOF
5986
5987
5988 if test "$ac_cv_sizeof_int" = 2 ; then
5989   echo "$as_me:$LINENO: checking for int16_t" >&5
5990 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
5991 if test "${ac_cv_type_int16_t+set}" = set; then
5992   echo $ECHO_N "(cached) $ECHO_C" >&6
5993 else
5994   cat >conftest.$ac_ext <<_ACEOF
5995 /* confdefs.h.  */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h.  */
6000 $ac_includes_default
6001 int
6002 main ()
6003 {
6004 if ((int16_t *) 0)
6005   return 0;
6006 if (sizeof (int16_t))
6007   return 0;
6008   ;
6009   return 0;
6010 }
6011 _ACEOF
6012 rm -f conftest.$ac_objext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6014   (eval $ac_compile) 2>conftest.er1
6015   ac_status=$?
6016   grep -v '^ *+' conftest.er1 >conftest.err
6017   rm -f conftest.er1
6018   cat conftest.err >&5
6019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020   (exit $ac_status); } &&
6021          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023   (eval $ac_try) 2>&5
6024   ac_status=$?
6025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026   (exit $ac_status); }; } &&
6027          { ac_try='test -s conftest.$ac_objext'
6028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029   (eval $ac_try) 2>&5
6030   ac_status=$?
6031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032   (exit $ac_status); }; }; then
6033   ac_cv_type_int16_t=yes
6034 else
6035   echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.$ac_ext >&5
6037
6038 ac_cv_type_int16_t=no
6039 fi
6040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6041 fi
6042 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6043 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
6044 if test $ac_cv_type_int16_t = yes; then
6045   :
6046 else
6047
6048 cat >>confdefs.h <<_ACEOF
6049 #define int16_t int
6050 _ACEOF
6051
6052 fi
6053
6054   echo "$as_me:$LINENO: checking for uint16_t" >&5
6055 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
6056 if test "${ac_cv_type_uint16_t+set}" = set; then
6057   echo $ECHO_N "(cached) $ECHO_C" >&6
6058 else
6059   cat >conftest.$ac_ext <<_ACEOF
6060 /* confdefs.h.  */
6061 _ACEOF
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h.  */
6065 $ac_includes_default
6066 int
6067 main ()
6068 {
6069 if ((uint16_t *) 0)
6070   return 0;
6071 if (sizeof (uint16_t))
6072   return 0;
6073   ;
6074   return 0;
6075 }
6076 _ACEOF
6077 rm -f conftest.$ac_objext
6078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6079   (eval $ac_compile) 2>conftest.er1
6080   ac_status=$?
6081   grep -v '^ *+' conftest.er1 >conftest.err
6082   rm -f conftest.er1
6083   cat conftest.err >&5
6084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085   (exit $ac_status); } &&
6086          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088   (eval $ac_try) 2>&5
6089   ac_status=$?
6090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091   (exit $ac_status); }; } &&
6092          { ac_try='test -s conftest.$ac_objext'
6093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094   (eval $ac_try) 2>&5
6095   ac_status=$?
6096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097   (exit $ac_status); }; }; then
6098   ac_cv_type_uint16_t=yes
6099 else
6100   echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6102
6103 ac_cv_type_uint16_t=no
6104 fi
6105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6106 fi
6107 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
6108 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
6109 if test $ac_cv_type_uint16_t = yes; then
6110   :
6111 else
6112
6113 cat >>confdefs.h <<_ACEOF
6114 #define uint16_t unsigned int
6115 _ACEOF
6116
6117 fi
6118
6119 elif test "$ac_cv_sizeof_short" = 2 ; then
6120   echo "$as_me:$LINENO: checking for int16_t" >&5
6121 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
6122 if test "${ac_cv_type_int16_t+set}" = set; then
6123   echo $ECHO_N "(cached) $ECHO_C" >&6
6124 else
6125   cat >conftest.$ac_ext <<_ACEOF
6126 /* confdefs.h.  */
6127 _ACEOF
6128 cat confdefs.h >>conftest.$ac_ext
6129 cat >>conftest.$ac_ext <<_ACEOF
6130 /* end confdefs.h.  */
6131 $ac_includes_default
6132 int
6133 main ()
6134 {
6135 if ((int16_t *) 0)
6136   return 0;
6137 if (sizeof (int16_t))
6138   return 0;
6139   ;
6140   return 0;
6141 }
6142 _ACEOF
6143 rm -f conftest.$ac_objext
6144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6145   (eval $ac_compile) 2>conftest.er1
6146   ac_status=$?
6147   grep -v '^ *+' conftest.er1 >conftest.err
6148   rm -f conftest.er1
6149   cat conftest.err >&5
6150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151   (exit $ac_status); } &&
6152          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154   (eval $ac_try) 2>&5
6155   ac_status=$?
6156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157   (exit $ac_status); }; } &&
6158          { ac_try='test -s conftest.$ac_objext'
6159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160   (eval $ac_try) 2>&5
6161   ac_status=$?
6162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163   (exit $ac_status); }; }; then
6164   ac_cv_type_int16_t=yes
6165 else
6166   echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6168
6169 ac_cv_type_int16_t=no
6170 fi
6171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6172 fi
6173 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6174 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
6175 if test $ac_cv_type_int16_t = yes; then
6176   :
6177 else
6178
6179 cat >>confdefs.h <<_ACEOF
6180 #define int16_t short
6181 _ACEOF
6182
6183 fi
6184
6185   echo "$as_me:$LINENO: checking for uint16_t" >&5
6186 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
6187 if test "${ac_cv_type_uint16_t+set}" = set; then
6188   echo $ECHO_N "(cached) $ECHO_C" >&6
6189 else
6190   cat >conftest.$ac_ext <<_ACEOF
6191 /* confdefs.h.  */
6192 _ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h.  */
6196 $ac_includes_default
6197 int
6198 main ()
6199 {
6200 if ((uint16_t *) 0)
6201   return 0;
6202 if (sizeof (uint16_t))
6203   return 0;
6204   ;
6205   return 0;
6206 }
6207 _ACEOF
6208 rm -f conftest.$ac_objext
6209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6210   (eval $ac_compile) 2>conftest.er1
6211   ac_status=$?
6212   grep -v '^ *+' conftest.er1 >conftest.err
6213   rm -f conftest.er1
6214   cat conftest.err >&5
6215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216   (exit $ac_status); } &&
6217          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219   (eval $ac_try) 2>&5
6220   ac_status=$?
6221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222   (exit $ac_status); }; } &&
6223          { ac_try='test -s conftest.$ac_objext'
6224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225   (eval $ac_try) 2>&5
6226   ac_status=$?
6227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228   (exit $ac_status); }; }; then
6229   ac_cv_type_uint16_t=yes
6230 else
6231   echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6233
6234 ac_cv_type_uint16_t=no
6235 fi
6236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6237 fi
6238 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
6239 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
6240 if test $ac_cv_type_uint16_t = yes; then
6241   :
6242 else
6243
6244 cat >>confdefs.h <<_ACEOF
6245 #define uint16_t unsigned short
6246 _ACEOF
6247
6248 fi
6249
6250 else
6251   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
6252 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
6253    { (exit 1); exit 1; }; }
6254 fi
6255 if test "$ac_cv_sizeof_int" = 4 ; then
6256   echo "$as_me:$LINENO: checking for int32_t" >&5
6257 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6258 if test "${ac_cv_type_int32_t+set}" = set; then
6259   echo $ECHO_N "(cached) $ECHO_C" >&6
6260 else
6261   cat >conftest.$ac_ext <<_ACEOF
6262 /* confdefs.h.  */
6263 _ACEOF
6264 cat confdefs.h >>conftest.$ac_ext
6265 cat >>conftest.$ac_ext <<_ACEOF
6266 /* end confdefs.h.  */
6267 $ac_includes_default
6268 int
6269 main ()
6270 {
6271 if ((int32_t *) 0)
6272   return 0;
6273 if (sizeof (int32_t))
6274   return 0;
6275   ;
6276   return 0;
6277 }
6278 _ACEOF
6279 rm -f conftest.$ac_objext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6281   (eval $ac_compile) 2>conftest.er1
6282   ac_status=$?
6283   grep -v '^ *+' conftest.er1 >conftest.err
6284   rm -f conftest.er1
6285   cat conftest.err >&5
6286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287   (exit $ac_status); } &&
6288          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290   (eval $ac_try) 2>&5
6291   ac_status=$?
6292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293   (exit $ac_status); }; } &&
6294          { ac_try='test -s conftest.$ac_objext'
6295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296   (eval $ac_try) 2>&5
6297   ac_status=$?
6298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299   (exit $ac_status); }; }; then
6300   ac_cv_type_int32_t=yes
6301 else
6302   echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.$ac_ext >&5
6304
6305 ac_cv_type_int32_t=no
6306 fi
6307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6308 fi
6309 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6310 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6311 if test $ac_cv_type_int32_t = yes; then
6312   :
6313 else
6314
6315 cat >>confdefs.h <<_ACEOF
6316 #define int32_t int
6317 _ACEOF
6318
6319 fi
6320
6321   echo "$as_me:$LINENO: checking for uint32_t" >&5
6322 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
6323 if test "${ac_cv_type_uint32_t+set}" = set; then
6324   echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326   cat >conftest.$ac_ext <<_ACEOF
6327 /* confdefs.h.  */
6328 _ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h.  */
6332 $ac_includes_default
6333 int
6334 main ()
6335 {
6336 if ((uint32_t *) 0)
6337   return 0;
6338 if (sizeof (uint32_t))
6339   return 0;
6340   ;
6341   return 0;
6342 }
6343 _ACEOF
6344 rm -f conftest.$ac_objext
6345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6346   (eval $ac_compile) 2>conftest.er1
6347   ac_status=$?
6348   grep -v '^ *+' conftest.er1 >conftest.err
6349   rm -f conftest.er1
6350   cat conftest.err >&5
6351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352   (exit $ac_status); } &&
6353          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355   (eval $ac_try) 2>&5
6356   ac_status=$?
6357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358   (exit $ac_status); }; } &&
6359          { ac_try='test -s conftest.$ac_objext'
6360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361   (eval $ac_try) 2>&5
6362   ac_status=$?
6363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364   (exit $ac_status); }; }; then
6365   ac_cv_type_uint32_t=yes
6366 else
6367   echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6369
6370 ac_cv_type_uint32_t=no
6371 fi
6372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6373 fi
6374 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6375 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6376 if test $ac_cv_type_uint32_t = yes; then
6377   :
6378 else
6379
6380 cat >>confdefs.h <<_ACEOF
6381 #define uint32_t unsigned int
6382 _ACEOF
6383
6384 fi
6385
6386 elif test "$ac_cv_sizeof_short" = 4 ; then
6387   echo "$as_me:$LINENO: checking for int32_t" >&5
6388 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6389 if test "${ac_cv_type_int32_t+set}" = set; then
6390   echo $ECHO_N "(cached) $ECHO_C" >&6
6391 else
6392   cat >conftest.$ac_ext <<_ACEOF
6393 /* confdefs.h.  */
6394 _ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h.  */
6398 $ac_includes_default
6399 int
6400 main ()
6401 {
6402 if ((int32_t *) 0)
6403   return 0;
6404 if (sizeof (int32_t))
6405   return 0;
6406   ;
6407   return 0;
6408 }
6409 _ACEOF
6410 rm -f conftest.$ac_objext
6411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6412   (eval $ac_compile) 2>conftest.er1
6413   ac_status=$?
6414   grep -v '^ *+' conftest.er1 >conftest.err
6415   rm -f conftest.er1
6416   cat conftest.err >&5
6417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418   (exit $ac_status); } &&
6419          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421   (eval $ac_try) 2>&5
6422   ac_status=$?
6423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424   (exit $ac_status); }; } &&
6425          { ac_try='test -s conftest.$ac_objext'
6426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427   (eval $ac_try) 2>&5
6428   ac_status=$?
6429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430   (exit $ac_status); }; }; then
6431   ac_cv_type_int32_t=yes
6432 else
6433   echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.$ac_ext >&5
6435
6436 ac_cv_type_int32_t=no
6437 fi
6438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6439 fi
6440 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6441 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6442 if test $ac_cv_type_int32_t = yes; then
6443   :
6444 else
6445
6446 cat >>confdefs.h <<_ACEOF
6447 #define int32_t short
6448 _ACEOF
6449
6450 fi
6451
6452   echo "$as_me:$LINENO: checking for uint32_t" >&5
6453 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
6454 if test "${ac_cv_type_uint32_t+set}" = set; then
6455   echo $ECHO_N "(cached) $ECHO_C" >&6
6456 else
6457   cat >conftest.$ac_ext <<_ACEOF
6458 /* confdefs.h.  */
6459 _ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h.  */
6463 $ac_includes_default
6464 int
6465 main ()
6466 {
6467 if ((uint32_t *) 0)
6468   return 0;
6469 if (sizeof (uint32_t))
6470   return 0;
6471   ;
6472   return 0;
6473 }
6474 _ACEOF
6475 rm -f conftest.$ac_objext
6476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6477   (eval $ac_compile) 2>conftest.er1
6478   ac_status=$?
6479   grep -v '^ *+' conftest.er1 >conftest.err
6480   rm -f conftest.er1
6481   cat conftest.err >&5
6482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483   (exit $ac_status); } &&
6484          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486   (eval $ac_try) 2>&5
6487   ac_status=$?
6488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489   (exit $ac_status); }; } &&
6490          { ac_try='test -s conftest.$ac_objext'
6491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492   (eval $ac_try) 2>&5
6493   ac_status=$?
6494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495   (exit $ac_status); }; }; then
6496   ac_cv_type_uint32_t=yes
6497 else
6498   echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6500
6501 ac_cv_type_uint32_t=no
6502 fi
6503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6504 fi
6505 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6506 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6507 if test $ac_cv_type_uint32_t = yes; then
6508   :
6509 else
6510
6511 cat >>confdefs.h <<_ACEOF
6512 #define uint32_t unsigned short
6513 _ACEOF
6514
6515 fi
6516
6517 elif test "$ac_cv_sizeof_long" = 4 ; then
6518   echo "$as_me:$LINENO: checking for int32_t" >&5
6519 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6520 if test "${ac_cv_type_int32_t+set}" = set; then
6521   echo $ECHO_N "(cached) $ECHO_C" >&6
6522 else
6523   cat >conftest.$ac_ext <<_ACEOF
6524 /* confdefs.h.  */
6525 _ACEOF
6526 cat confdefs.h >>conftest.$ac_ext
6527 cat >>conftest.$ac_ext <<_ACEOF
6528 /* end confdefs.h.  */
6529 $ac_includes_default
6530 int
6531 main ()
6532 {
6533 if ((int32_t *) 0)
6534   return 0;
6535 if (sizeof (int32_t))
6536   return 0;
6537   ;
6538   return 0;
6539 }
6540 _ACEOF
6541 rm -f conftest.$ac_objext
6542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6543   (eval $ac_compile) 2>conftest.er1
6544   ac_status=$?
6545   grep -v '^ *+' conftest.er1 >conftest.err
6546   rm -f conftest.er1
6547   cat conftest.err >&5
6548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549   (exit $ac_status); } &&
6550          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552   (eval $ac_try) 2>&5
6553   ac_status=$?
6554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555   (exit $ac_status); }; } &&
6556          { ac_try='test -s conftest.$ac_objext'
6557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558   (eval $ac_try) 2>&5
6559   ac_status=$?
6560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561   (exit $ac_status); }; }; then
6562   ac_cv_type_int32_t=yes
6563 else
6564   echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6566
6567 ac_cv_type_int32_t=no
6568 fi
6569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6570 fi
6571 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6572 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6573 if test $ac_cv_type_int32_t = yes; then
6574   :
6575 else
6576
6577 cat >>confdefs.h <<_ACEOF
6578 #define int32_t long
6579 _ACEOF
6580
6581 fi
6582
6583   echo "$as_me:$LINENO: checking for uint32_t" >&5
6584 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
6585 if test "${ac_cv_type_uint32_t+set}" = set; then
6586   echo $ECHO_N "(cached) $ECHO_C" >&6
6587 else
6588   cat >conftest.$ac_ext <<_ACEOF
6589 /* confdefs.h.  */
6590 _ACEOF
6591 cat confdefs.h >>conftest.$ac_ext
6592 cat >>conftest.$ac_ext <<_ACEOF
6593 /* end confdefs.h.  */
6594 $ac_includes_default
6595 int
6596 main ()
6597 {
6598 if ((uint32_t *) 0)
6599   return 0;
6600 if (sizeof (uint32_t))
6601   return 0;
6602   ;
6603   return 0;
6604 }
6605 _ACEOF
6606 rm -f conftest.$ac_objext
6607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6608   (eval $ac_compile) 2>conftest.er1
6609   ac_status=$?
6610   grep -v '^ *+' conftest.er1 >conftest.err
6611   rm -f conftest.er1
6612   cat conftest.err >&5
6613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614   (exit $ac_status); } &&
6615          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617   (eval $ac_try) 2>&5
6618   ac_status=$?
6619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620   (exit $ac_status); }; } &&
6621          { ac_try='test -s conftest.$ac_objext'
6622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6623   (eval $ac_try) 2>&5
6624   ac_status=$?
6625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626   (exit $ac_status); }; }; then
6627   ac_cv_type_uint32_t=yes
6628 else
6629   echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.$ac_ext >&5
6631
6632 ac_cv_type_uint32_t=no
6633 fi
6634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6635 fi
6636 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6637 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6638 if test $ac_cv_type_uint32_t = yes; then
6639   :
6640 else
6641
6642 cat >>confdefs.h <<_ACEOF
6643 #define uint32_t unsigned long
6644 _ACEOF
6645
6646 fi
6647
6648 else
6649   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
6650 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
6651    { (exit 1); exit 1; }; }
6652 fi
6653 echo "$as_me:$LINENO: checking for socklen_t" >&5
6654 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
6655 if test "${ac_cv_type_socklen_t+set}" = set; then
6656   echo $ECHO_N "(cached) $ECHO_C" >&6
6657 else
6658   cat >conftest.$ac_ext <<_ACEOF
6659 /* confdefs.h.  */
6660 _ACEOF
6661 cat confdefs.h >>conftest.$ac_ext
6662 cat >>conftest.$ac_ext <<_ACEOF
6663 /* end confdefs.h.  */
6664 $ac_includes_default
6665 int
6666 main ()
6667 {
6668 if ((socklen_t *) 0)
6669   return 0;
6670 if (sizeof (socklen_t))
6671   return 0;
6672   ;
6673   return 0;
6674 }
6675 _ACEOF
6676 rm -f conftest.$ac_objext
6677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6678   (eval $ac_compile) 2>conftest.er1
6679   ac_status=$?
6680   grep -v '^ *+' conftest.er1 >conftest.err
6681   rm -f conftest.er1
6682   cat conftest.err >&5
6683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684   (exit $ac_status); } &&
6685          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687   (eval $ac_try) 2>&5
6688   ac_status=$?
6689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690   (exit $ac_status); }; } &&
6691          { ac_try='test -s conftest.$ac_objext'
6692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693   (eval $ac_try) 2>&5
6694   ac_status=$?
6695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696   (exit $ac_status); }; }; then
6697   ac_cv_type_socklen_t=yes
6698 else
6699   echo "$as_me: failed program was:" >&5
6700 sed 's/^/| /' conftest.$ac_ext >&5
6701
6702 ac_cv_type_socklen_t=no
6703 fi
6704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6705 fi
6706 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
6707 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
6708 if test $ac_cv_type_socklen_t = yes; then
6709   :
6710 else
6711
6712 cat >>confdefs.h <<_ACEOF
6713 #define socklen_t unsigned int
6714 _ACEOF
6715
6716 fi
6717
6718 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
6719 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
6720 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
6721   echo $ECHO_N "(cached) $ECHO_C" >&6
6722 else
6723   cat >conftest.$ac_ext <<_ACEOF
6724 /* confdefs.h.  */
6725 _ACEOF
6726 cat confdefs.h >>conftest.$ac_ext
6727 cat >>conftest.$ac_ext <<_ACEOF
6728 /* end confdefs.h.  */
6729 #include <sys/types.h>
6730 #include <netinet/in.h>
6731
6732 int
6733 main ()
6734 {
6735 if ((struct sockaddr_in6 *) 0)
6736   return 0;
6737 if (sizeof (struct sockaddr_in6))
6738   return 0;
6739   ;
6740   return 0;
6741 }
6742 _ACEOF
6743 rm -f conftest.$ac_objext
6744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6745   (eval $ac_compile) 2>conftest.er1
6746   ac_status=$?
6747   grep -v '^ *+' conftest.er1 >conftest.err
6748   rm -f conftest.er1
6749   cat conftest.err >&5
6750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751   (exit $ac_status); } &&
6752          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6754   (eval $ac_try) 2>&5
6755   ac_status=$?
6756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757   (exit $ac_status); }; } &&
6758          { ac_try='test -s conftest.$ac_objext'
6759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760   (eval $ac_try) 2>&5
6761   ac_status=$?
6762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763   (exit $ac_status); }; }; then
6764   ac_cv_type_struct_sockaddr_in6=yes
6765 else
6766   echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6768
6769 ac_cv_type_struct_sockaddr_in6=no
6770 fi
6771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6772 fi
6773 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
6774 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
6775 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
6776   unet_have_sockaddr_in6="yes"
6777 else
6778   unet_have_sockaddr_in6="no"
6779 fi
6780
6781
6782
6783
6784
6785
6786 for ac_func in kqueue setrlimit getrusage times
6787 do
6788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6789 echo "$as_me:$LINENO: checking for $ac_func" >&5
6790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6791 if eval "test \"\${$as_ac_var+set}\" = set"; then
6792   echo $ECHO_N "(cached) $ECHO_C" >&6
6793 else
6794   cat >conftest.$ac_ext <<_ACEOF
6795 /* confdefs.h.  */
6796 _ACEOF
6797 cat confdefs.h >>conftest.$ac_ext
6798 cat >>conftest.$ac_ext <<_ACEOF
6799 /* end confdefs.h.  */
6800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6801    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6802 #define $ac_func innocuous_$ac_func
6803
6804 /* System header to define __stub macros and hopefully few prototypes,
6805     which can conflict with char $ac_func (); below.
6806     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6807     <limits.h> exists even on freestanding compilers.  */
6808
6809 #ifdef __STDC__
6810 # include <limits.h>
6811 #else
6812 # include <assert.h>
6813 #endif
6814
6815 #undef $ac_func
6816
6817 /* Override any gcc2 internal prototype to avoid an error.  */
6818 #ifdef __cplusplus
6819 extern "C"
6820 {
6821 #endif
6822 /* We use char because int might match the return type of a gcc2
6823    builtin and then its argument prototype would still apply.  */
6824 char $ac_func ();
6825 /* The GNU C library defines this for functions which it implements
6826     to always fail with ENOSYS.  Some functions are actually named
6827     something starting with __ and the normal name is an alias.  */
6828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6829 choke me
6830 #else
6831 char (*f) () = $ac_func;
6832 #endif
6833 #ifdef __cplusplus
6834 }
6835 #endif
6836
6837 int
6838 main ()
6839 {
6840 return f != $ac_func;
6841   ;
6842   return 0;
6843 }
6844 _ACEOF
6845 rm -f conftest.$ac_objext conftest$ac_exeext
6846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6847   (eval $ac_link) 2>conftest.er1
6848   ac_status=$?
6849   grep -v '^ *+' conftest.er1 >conftest.err
6850   rm -f conftest.er1
6851   cat conftest.err >&5
6852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853   (exit $ac_status); } &&
6854          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6856   (eval $ac_try) 2>&5
6857   ac_status=$?
6858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859   (exit $ac_status); }; } &&
6860          { ac_try='test -s conftest$ac_exeext'
6861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862   (eval $ac_try) 2>&5
6863   ac_status=$?
6864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865   (exit $ac_status); }; }; then
6866   eval "$as_ac_var=yes"
6867 else
6868   echo "$as_me: failed program was:" >&5
6869 sed 's/^/| /' conftest.$ac_ext >&5
6870
6871 eval "$as_ac_var=no"
6872 fi
6873 rm -f conftest.err conftest.$ac_objext \
6874       conftest$ac_exeext conftest.$ac_ext
6875 fi
6876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6877 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6878 if test `eval echo '${'$as_ac_var'}'` = yes; then
6879   cat >>confdefs.h <<_ACEOF
6880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6881 _ACEOF
6882
6883 fi
6884 done
6885
6886
6887 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6888 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6889 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6890   echo $ECHO_N "(cached) $ECHO_C" >&6
6891 else
6892   cat >conftest.$ac_ext <<_ACEOF
6893 /* confdefs.h.  */
6894 _ACEOF
6895 cat confdefs.h >>conftest.$ac_ext
6896 cat >>conftest.$ac_ext <<_ACEOF
6897 /* end confdefs.h.  */
6898 #include <sys/types.h>
6899 #include <sys/wait.h>
6900 #ifndef WEXITSTATUS
6901 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6902 #endif
6903 #ifndef WIFEXITED
6904 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6905 #endif
6906
6907 int
6908 main ()
6909 {
6910   int s;
6911   wait (&s);
6912   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6913   ;
6914   return 0;
6915 }
6916 _ACEOF
6917 rm -f conftest.$ac_objext
6918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6919   (eval $ac_compile) 2>conftest.er1
6920   ac_status=$?
6921   grep -v '^ *+' conftest.er1 >conftest.err
6922   rm -f conftest.er1
6923   cat conftest.err >&5
6924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925   (exit $ac_status); } &&
6926          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928   (eval $ac_try) 2>&5
6929   ac_status=$?
6930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931   (exit $ac_status); }; } &&
6932          { ac_try='test -s conftest.$ac_objext'
6933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6934   (eval $ac_try) 2>&5
6935   ac_status=$?
6936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937   (exit $ac_status); }; }; then
6938   ac_cv_header_sys_wait_h=yes
6939 else
6940   echo "$as_me: failed program was:" >&5
6941 sed 's/^/| /' conftest.$ac_ext >&5
6942
6943 ac_cv_header_sys_wait_h=no
6944 fi
6945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6946 fi
6947 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6948 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6949 if test $ac_cv_header_sys_wait_h = yes; then
6950
6951 cat >>confdefs.h <<\_ACEOF
6952 #define HAVE_SYS_WAIT_H 1
6953 _ACEOF
6954
6955 fi
6956
6957
6958 for ac_header in unistd.h
6959 do
6960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6962   echo "$as_me:$LINENO: checking for $ac_header" >&5
6963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6965   echo $ECHO_N "(cached) $ECHO_C" >&6
6966 fi
6967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6969 else
6970   # Is the header compilable?
6971 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6973 cat >conftest.$ac_ext <<_ACEOF
6974 /* confdefs.h.  */
6975 _ACEOF
6976 cat confdefs.h >>conftest.$ac_ext
6977 cat >>conftest.$ac_ext <<_ACEOF
6978 /* end confdefs.h.  */
6979 $ac_includes_default
6980 #include <$ac_header>
6981 _ACEOF
6982 rm -f conftest.$ac_objext
6983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6984   (eval $ac_compile) 2>conftest.er1
6985   ac_status=$?
6986   grep -v '^ *+' conftest.er1 >conftest.err
6987   rm -f conftest.er1
6988   cat conftest.err >&5
6989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990   (exit $ac_status); } &&
6991          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993   (eval $ac_try) 2>&5
6994   ac_status=$?
6995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996   (exit $ac_status); }; } &&
6997          { ac_try='test -s conftest.$ac_objext'
6998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999   (eval $ac_try) 2>&5
7000   ac_status=$?
7001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002   (exit $ac_status); }; }; then
7003   ac_header_compiler=yes
7004 else
7005   echo "$as_me: failed program was:" >&5
7006 sed 's/^/| /' conftest.$ac_ext >&5
7007
7008 ac_header_compiler=no
7009 fi
7010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7011 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7012 echo "${ECHO_T}$ac_header_compiler" >&6
7013
7014 # Is the header present?
7015 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7017 cat >conftest.$ac_ext <<_ACEOF
7018 /* confdefs.h.  */
7019 _ACEOF
7020 cat confdefs.h >>conftest.$ac_ext
7021 cat >>conftest.$ac_ext <<_ACEOF
7022 /* end confdefs.h.  */
7023 #include <$ac_header>
7024 _ACEOF
7025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7026   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7027   ac_status=$?
7028   grep -v '^ *+' conftest.er1 >conftest.err
7029   rm -f conftest.er1
7030   cat conftest.err >&5
7031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032   (exit $ac_status); } >/dev/null; then
7033   if test -s conftest.err; then
7034     ac_cpp_err=$ac_c_preproc_warn_flag
7035     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7036   else
7037     ac_cpp_err=
7038   fi
7039 else
7040   ac_cpp_err=yes
7041 fi
7042 if test -z "$ac_cpp_err"; then
7043   ac_header_preproc=yes
7044 else
7045   echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.$ac_ext >&5
7047
7048   ac_header_preproc=no
7049 fi
7050 rm -f conftest.err conftest.$ac_ext
7051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7052 echo "${ECHO_T}$ac_header_preproc" >&6
7053
7054 # So?  What about this header?
7055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7056   yes:no: )
7057     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7059     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7061     ac_header_preproc=yes
7062     ;;
7063   no:yes:* )
7064     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7066     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7067 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7068     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7070     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7071 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7074     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7076     (
7077       cat <<\_ASBOX
7078 ## ------------------------------------------ ##
7079 ## Report this to the AC_PACKAGE_NAME lists.  ##
7080 ## ------------------------------------------ ##
7081 _ASBOX
7082     ) |
7083       sed "s/^/$as_me: WARNING:     /" >&2
7084     ;;
7085 esac
7086 echo "$as_me:$LINENO: checking for $ac_header" >&5
7087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7089   echo $ECHO_N "(cached) $ECHO_C" >&6
7090 else
7091   eval "$as_ac_Header=\$ac_header_preproc"
7092 fi
7093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7095
7096 fi
7097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7098   cat >>confdefs.h <<_ACEOF
7099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7100 _ACEOF
7101
7102 fi
7103
7104 done
7105
7106 echo "$as_me:$LINENO: checking for restartable system calls" >&5
7107 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
7108 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
7109   echo $ECHO_N "(cached) $ECHO_C" >&6
7110 else
7111   if test "$cross_compiling" = yes; then
7112   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7113 See \`config.log' for more details." >&5
7114 echo "$as_me: error: cannot run test program while cross compiling
7115 See \`config.log' for more details." >&2;}
7116    { (exit 1); exit 1; }; }
7117 else
7118   cat >conftest.$ac_ext <<_ACEOF
7119 /* confdefs.h.  */
7120 _ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h.  */
7124 /* Exit 0 (true) if wait returns something other than -1,
7125    i.e. the pid of the child, which means that wait was restarted
7126    after getting the signal.  */
7127
7128 #include <sys/types.h>
7129 #include <signal.h>
7130 #if HAVE_UNISTD_H
7131 # include <unistd.h>
7132 #endif
7133 #if HAVE_SYS_WAIT_H
7134 # include <sys/wait.h>
7135 #endif
7136
7137 /* Some platforms explicitly require an extern "C" signal handler
7138    when using C++. */
7139 #ifdef __cplusplus
7140 extern "C" void ucatch (int dummy) { }
7141 #else
7142 void ucatch (dummy) int dummy; { }
7143 #endif
7144
7145 int
7146 main ()
7147 {
7148   int i = fork (), status;
7149
7150   if (i == 0)
7151     {
7152       sleep (3);
7153       kill (getppid (), SIGINT);
7154       sleep (3);
7155       exit (0);
7156     }
7157
7158   signal (SIGINT, ucatch);
7159
7160   status = wait (&i);
7161   if (status == -1)
7162     wait (&i);
7163
7164   exit (status == -1);
7165 }
7166 _ACEOF
7167 rm -f conftest$ac_exeext
7168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7169   (eval $ac_link) 2>&5
7170   ac_status=$?
7171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174   (eval $ac_try) 2>&5
7175   ac_status=$?
7176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177   (exit $ac_status); }; }; then
7178   ac_cv_sys_restartable_syscalls=yes
7179 else
7180   echo "$as_me: program exited with status $ac_status" >&5
7181 echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.$ac_ext >&5
7183
7184 ( exit $ac_status )
7185 ac_cv_sys_restartable_syscalls=no
7186 fi
7187 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7188 fi
7189 fi
7190 echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
7191 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
7192 if test $ac_cv_sys_restartable_syscalls = yes; then
7193
7194 cat >>confdefs.h <<\_ACEOF
7195 #define HAVE_RESTARTABLE_SYSCALLS 1
7196 _ACEOF
7197
7198 fi
7199
7200
7201 echo "$as_me:$LINENO: checking for donuts" >&5
7202 echo $ECHO_N "checking for donuts... $ECHO_C" >&6
7203 echo "$as_me:$LINENO: result: yes" >&5
7204 echo "${ECHO_T}yes" >&6
7205
7206 for ac_prog in gawk mawk nawk awk
7207 do
7208   # Extract the first word of "$ac_prog", so it can be a program name with args.
7209 set dummy $ac_prog; ac_word=$2
7210 echo "$as_me:$LINENO: checking for $ac_word" >&5
7211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7212 if test "${ac_cv_prog_AWK+set}" = set; then
7213   echo $ECHO_N "(cached) $ECHO_C" >&6
7214 else
7215   if test -n "$AWK"; then
7216   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7217 else
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH
7220 do
7221   IFS=$as_save_IFS
7222   test -z "$as_dir" && as_dir=.
7223   for ac_exec_ext in '' $ac_executable_extensions; do
7224   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7225     ac_cv_prog_AWK="$ac_prog"
7226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227     break 2
7228   fi
7229 done
7230 done
7231
7232 fi
7233 fi
7234 AWK=$ac_cv_prog_AWK
7235 if test -n "$AWK"; then
7236   echo "$as_me:$LINENO: result: $AWK" >&5
7237 echo "${ECHO_T}$AWK" >&6
7238 else
7239   echo "$as_me:$LINENO: result: no" >&5
7240 echo "${ECHO_T}no" >&6
7241 fi
7242
7243   test -n "$AWK" && break
7244 done
7245
7246 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7247 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7248 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7249 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7250   echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252   cat >conftest.make <<\_ACEOF
7253 all:
7254         @echo 'ac_maketemp="$(MAKE)"'
7255 _ACEOF
7256 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7257 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7258 if test -n "$ac_maketemp"; then
7259   eval ac_cv_prog_make_${ac_make}_set=yes
7260 else
7261   eval ac_cv_prog_make_${ac_make}_set=no
7262 fi
7263 rm -f conftest.make
7264 fi
7265 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7266   echo "$as_me:$LINENO: result: yes" >&5
7267 echo "${ECHO_T}yes" >&6
7268   SET_MAKE=
7269 else
7270   echo "$as_me:$LINENO: result: no" >&5
7271 echo "${ECHO_T}no" >&6
7272   SET_MAKE="MAKE=${MAKE-make}"
7273 fi
7274
7275 # Find a good install program.  We prefer a C program (faster),
7276 # so one script is as good as another.  But avoid the broken or
7277 # incompatible versions:
7278 # SysV /etc/install, /usr/sbin/install
7279 # SunOS /usr/etc/install
7280 # IRIX /sbin/install
7281 # AIX /bin/install
7282 # AmigaOS /C/install, which installs bootblocks on floppy discs
7283 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7284 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7285 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7286 # OS/2's system install, which has a completely different semantic
7287 # ./install, which can be erroneously created by make from ./install.sh.
7288 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7289 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7290 if test -z "$INSTALL"; then
7291 if test "${ac_cv_path_install+set}" = set; then
7292   echo $ECHO_N "(cached) $ECHO_C" >&6
7293 else
7294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 for as_dir in $PATH
7296 do
7297   IFS=$as_save_IFS
7298   test -z "$as_dir" && as_dir=.
7299   # Account for people who put trailing slashes in PATH elements.
7300 case $as_dir/ in
7301   ./ | .// | /cC/* | \
7302   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7303   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7304   /usr/ucb/* ) ;;
7305   *)
7306     # OSF1 and SCO ODT 3.0 have their own names for install.
7307     # Don't use installbsd from OSF since it installs stuff as root
7308     # by default.
7309     for ac_prog in ginstall scoinst install; do
7310       for ac_exec_ext in '' $ac_executable_extensions; do
7311         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7312           if test $ac_prog = install &&
7313             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7314             # AIX install.  It has an incompatible calling convention.
7315             :
7316           elif test $ac_prog = install &&
7317             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7318             # program-specific install script used by HP pwplus--don't use.
7319             :
7320           else
7321             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7322             break 3
7323           fi
7324         fi
7325       done
7326     done
7327     ;;
7328 esac
7329 done
7330
7331
7332 fi
7333   if test "${ac_cv_path_install+set}" = set; then
7334     INSTALL=$ac_cv_path_install
7335   else
7336     # As a last resort, use the slow shell script.  We don't cache a
7337     # path for INSTALL within a source directory, because that will
7338     # break other packages using the cache if that directory is
7339     # removed, or if the path is relative.
7340     INSTALL=$ac_install_sh
7341   fi
7342 fi
7343 echo "$as_me:$LINENO: result: $INSTALL" >&5
7344 echo "${ECHO_T}$INSTALL" >&6
7345
7346 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7347 # It thinks the first close brace ends the variable substitution.
7348 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7349
7350 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7351
7352 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7353
7354 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7355 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7356 LN_S=$as_ln_s
7357 if test "$LN_S" = "ln -s"; then
7358   echo "$as_me:$LINENO: result: yes" >&5
7359 echo "${ECHO_T}yes" >&6
7360 else
7361   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7362 echo "${ECHO_T}no, using $LN_S" >&6
7363 fi
7364
7365 for ac_prog in rm
7366 do
7367   # Extract the first word of "$ac_prog", so it can be a program name with args.
7368 set dummy $ac_prog; ac_word=$2
7369 echo "$as_me:$LINENO: checking for $ac_word" >&5
7370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7371 if test "${ac_cv_path_RMPROG+set}" = set; then
7372   echo $ECHO_N "(cached) $ECHO_C" >&6
7373 else
7374   case $RMPROG in
7375   [\\/]* | ?:[\\/]*)
7376   ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
7377   ;;
7378   *)
7379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 for as_dir in $PATH
7381 do
7382   IFS=$as_save_IFS
7383   test -z "$as_dir" && as_dir=.
7384   for ac_exec_ext in '' $ac_executable_extensions; do
7385   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7386     ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
7387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7388     break 2
7389   fi
7390 done
7391 done
7392
7393   ;;
7394 esac
7395 fi
7396 RMPROG=$ac_cv_path_RMPROG
7397
7398 if test -n "$RMPROG"; then
7399   echo "$as_me:$LINENO: result: $RMPROG" >&5
7400 echo "${ECHO_T}$RMPROG" >&6
7401 else
7402   echo "$as_me:$LINENO: result: no" >&5
7403 echo "${ECHO_T}no" >&6
7404 fi
7405
7406   test -n "$RMPROG" && break
7407 done
7408 test -n "$RMPROG" || RMPROG="/bin/rm"
7409
7410 for ac_prog in sh
7411 do
7412   # Extract the first word of "$ac_prog", so it can be a program name with args.
7413 set dummy $ac_prog; ac_word=$2
7414 echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7416 if test "${ac_cv_path_SHPROG+set}" = set; then
7417   echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419   case $SHPROG in
7420   [\\/]* | ?:[\\/]*)
7421   ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
7422   ;;
7423   *)
7424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 for as_dir in $PATH
7426 do
7427   IFS=$as_save_IFS
7428   test -z "$as_dir" && as_dir=.
7429   for ac_exec_ext in '' $ac_executable_extensions; do
7430   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7431     ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
7432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7433     break 2
7434   fi
7435 done
7436 done
7437
7438   ;;
7439 esac
7440 fi
7441 SHPROG=$ac_cv_path_SHPROG
7442
7443 if test -n "$SHPROG"; then
7444   echo "$as_me:$LINENO: result: $SHPROG" >&5
7445 echo "${ECHO_T}$SHPROG" >&6
7446 else
7447   echo "$as_me:$LINENO: result: no" >&5
7448 echo "${ECHO_T}no" >&6
7449 fi
7450
7451   test -n "$SHPROG" && break
7452 done
7453 test -n "$SHPROG" || SHPROG="/bin/sh"
7454
7455
7456 for ac_prog in flex lex
7457 do
7458   # Extract the first word of "$ac_prog", so it can be a program name with args.
7459 set dummy $ac_prog; ac_word=$2
7460 echo "$as_me:$LINENO: checking for $ac_word" >&5
7461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7462 if test "${ac_cv_prog_LEX+set}" = set; then
7463   echo $ECHO_N "(cached) $ECHO_C" >&6
7464 else
7465   if test -n "$LEX"; then
7466   ac_cv_prog_LEX="$LEX" # Let the user override the test.
7467 else
7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 for as_dir in $PATH
7470 do
7471   IFS=$as_save_IFS
7472   test -z "$as_dir" && as_dir=.
7473   for ac_exec_ext in '' $ac_executable_extensions; do
7474   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7475     ac_cv_prog_LEX="$ac_prog"
7476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7477     break 2
7478   fi
7479 done
7480 done
7481
7482 fi
7483 fi
7484 LEX=$ac_cv_prog_LEX
7485 if test -n "$LEX"; then
7486   echo "$as_me:$LINENO: result: $LEX" >&5
7487 echo "${ECHO_T}$LEX" >&6
7488 else
7489   echo "$as_me:$LINENO: result: no" >&5
7490 echo "${ECHO_T}no" >&6
7491 fi
7492
7493   test -n "$LEX" && break
7494 done
7495 test -n "$LEX" || LEX=":"
7496
7497 if test -z "$LEXLIB"
7498 then
7499   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
7500 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
7501 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
7502   echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504   ac_check_lib_save_LIBS=$LIBS
7505 LIBS="-lfl  $LIBS"
7506 cat >conftest.$ac_ext <<_ACEOF
7507 /* confdefs.h.  */
7508 _ACEOF
7509 cat confdefs.h >>conftest.$ac_ext
7510 cat >>conftest.$ac_ext <<_ACEOF
7511 /* end confdefs.h.  */
7512
7513 /* Override any gcc2 internal prototype to avoid an error.  */
7514 #ifdef __cplusplus
7515 extern "C"
7516 #endif
7517 /* We use char because int might match the return type of a gcc2
7518    builtin and then its argument prototype would still apply.  */
7519 char yywrap ();
7520 int
7521 main ()
7522 {
7523 yywrap ();
7524   ;
7525   return 0;
7526 }
7527 _ACEOF
7528 rm -f conftest.$ac_objext conftest$ac_exeext
7529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7530   (eval $ac_link) 2>conftest.er1
7531   ac_status=$?
7532   grep -v '^ *+' conftest.er1 >conftest.err
7533   rm -f conftest.er1
7534   cat conftest.err >&5
7535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536   (exit $ac_status); } &&
7537          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539   (eval $ac_try) 2>&5
7540   ac_status=$?
7541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542   (exit $ac_status); }; } &&
7543          { ac_try='test -s conftest$ac_exeext'
7544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545   (eval $ac_try) 2>&5
7546   ac_status=$?
7547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548   (exit $ac_status); }; }; then
7549   ac_cv_lib_fl_yywrap=yes
7550 else
7551   echo "$as_me: failed program was:" >&5
7552 sed 's/^/| /' conftest.$ac_ext >&5
7553
7554 ac_cv_lib_fl_yywrap=no
7555 fi
7556 rm -f conftest.err conftest.$ac_objext \
7557       conftest$ac_exeext conftest.$ac_ext
7558 LIBS=$ac_check_lib_save_LIBS
7559 fi
7560 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
7561 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
7562 if test $ac_cv_lib_fl_yywrap = yes; then
7563   LEXLIB="-lfl"
7564 else
7565   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
7566 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
7567 if test "${ac_cv_lib_l_yywrap+set}" = set; then
7568   echo $ECHO_N "(cached) $ECHO_C" >&6
7569 else
7570   ac_check_lib_save_LIBS=$LIBS
7571 LIBS="-ll  $LIBS"
7572 cat >conftest.$ac_ext <<_ACEOF
7573 /* confdefs.h.  */
7574 _ACEOF
7575 cat confdefs.h >>conftest.$ac_ext
7576 cat >>conftest.$ac_ext <<_ACEOF
7577 /* end confdefs.h.  */
7578
7579 /* Override any gcc2 internal prototype to avoid an error.  */
7580 #ifdef __cplusplus
7581 extern "C"
7582 #endif
7583 /* We use char because int might match the return type of a gcc2
7584    builtin and then its argument prototype would still apply.  */
7585 char yywrap ();
7586 int
7587 main ()
7588 {
7589 yywrap ();
7590   ;
7591   return 0;
7592 }
7593 _ACEOF
7594 rm -f conftest.$ac_objext conftest$ac_exeext
7595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7596   (eval $ac_link) 2>conftest.er1
7597   ac_status=$?
7598   grep -v '^ *+' conftest.er1 >conftest.err
7599   rm -f conftest.er1
7600   cat conftest.err >&5
7601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602   (exit $ac_status); } &&
7603          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605   (eval $ac_try) 2>&5
7606   ac_status=$?
7607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608   (exit $ac_status); }; } &&
7609          { ac_try='test -s conftest$ac_exeext'
7610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611   (eval $ac_try) 2>&5
7612   ac_status=$?
7613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614   (exit $ac_status); }; }; then
7615   ac_cv_lib_l_yywrap=yes
7616 else
7617   echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7619
7620 ac_cv_lib_l_yywrap=no
7621 fi
7622 rm -f conftest.err conftest.$ac_objext \
7623       conftest$ac_exeext conftest.$ac_ext
7624 LIBS=$ac_check_lib_save_LIBS
7625 fi
7626 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
7627 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
7628 if test $ac_cv_lib_l_yywrap = yes; then
7629   LEXLIB="-ll"
7630 fi
7631
7632 fi
7633
7634 fi
7635
7636 if test "x$LEX" != "x:"; then
7637   echo "$as_me:$LINENO: checking lex output file root" >&5
7638 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
7639 if test "${ac_cv_prog_lex_root+set}" = set; then
7640   echo $ECHO_N "(cached) $ECHO_C" >&6
7641 else
7642   # The minimal lex program is just a single line: %%.  But some broken lexes
7643 # (Solaris, I think it was) want two %% lines, so accommodate them.
7644 cat >conftest.l <<_ACEOF
7645 %%
7646 %%
7647 _ACEOF
7648 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
7649   (eval $LEX conftest.l) 2>&5
7650   ac_status=$?
7651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652   (exit $ac_status); }
7653 if test -f lex.yy.c; then
7654   ac_cv_prog_lex_root=lex.yy
7655 elif test -f lexyy.c; then
7656   ac_cv_prog_lex_root=lexyy
7657 else
7658   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
7659 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
7660    { (exit 1); exit 1; }; }
7661 fi
7662 fi
7663 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
7664 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
7665 rm -f conftest.l
7666 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7667
7668 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
7669 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
7670 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
7671   echo $ECHO_N "(cached) $ECHO_C" >&6
7672 else
7673   # POSIX says lex can declare yytext either as a pointer or an array; the
7674 # default is implementation-dependent. Figure out which it is, since
7675 # not all implementations provide the %pointer and %array declarations.
7676 ac_cv_prog_lex_yytext_pointer=no
7677 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
7678 ac_save_LIBS=$LIBS
7679 LIBS="$LIBS $LEXLIB"
7680 cat >conftest.$ac_ext <<_ACEOF
7681 `cat $LEX_OUTPUT_ROOT.c`
7682 _ACEOF
7683 rm -f conftest.$ac_objext conftest$ac_exeext
7684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7685   (eval $ac_link) 2>conftest.er1
7686   ac_status=$?
7687   grep -v '^ *+' conftest.er1 >conftest.err
7688   rm -f conftest.er1
7689   cat conftest.err >&5
7690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691   (exit $ac_status); } &&
7692          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694   (eval $ac_try) 2>&5
7695   ac_status=$?
7696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697   (exit $ac_status); }; } &&
7698          { ac_try='test -s conftest$ac_exeext'
7699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7700   (eval $ac_try) 2>&5
7701   ac_status=$?
7702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703   (exit $ac_status); }; }; then
7704   ac_cv_prog_lex_yytext_pointer=yes
7705 else
7706   echo "$as_me: failed program was:" >&5
7707 sed 's/^/| /' conftest.$ac_ext >&5
7708
7709 fi
7710 rm -f conftest.err conftest.$ac_objext \
7711       conftest$ac_exeext conftest.$ac_ext
7712 LIBS=$ac_save_LIBS
7713 rm -f "${LEX_OUTPUT_ROOT}.c"
7714
7715 fi
7716 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
7717 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
7718 if test $ac_cv_prog_lex_yytext_pointer = yes; then
7719
7720 cat >>confdefs.h <<\_ACEOF
7721 #define YYTEXT_POINTER 1
7722 _ACEOF
7723
7724 fi
7725
7726 fi
7727 if test -x "$LEX"
7728 then
7729   { { echo "$as_me:$LINENO: error: Cannot find flex." >&5
7730 echo "$as_me: error: Cannot find flex." >&2;}
7731    { (exit 1); exit 1; }; }
7732 fi
7733
7734 if test -z "$LEXLIB"
7735 then
7736   { { echo "$as_me:$LINENO: error:
7737   Cannot find a library with yywrap() in, but flex was found.
7738   It's possible the compiler you're using ($CC) is incompatible with the
7739   installed library.
7740 See \`config.log' for more details." >&5
7741 echo "$as_me: error:
7742   Cannot find a library with yywrap() in, but flex was found.
7743   It's possible the compiler you're using ($CC) is incompatible with the
7744   installed library.
7745 See \`config.log' for more details." >&2;}
7746    { (exit 1); exit 1; }; }
7747 fi
7748
7749 LIBS="$LEXLIB $LIBS"
7750
7751 for ac_prog in 'bison -y' byacc
7752 do
7753   # Extract the first word of "$ac_prog", so it can be a program name with args.
7754 set dummy $ac_prog; ac_word=$2
7755 echo "$as_me:$LINENO: checking for $ac_word" >&5
7756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7757 if test "${ac_cv_prog_YACC+set}" = set; then
7758   echo $ECHO_N "(cached) $ECHO_C" >&6
7759 else
7760   if test -n "$YACC"; then
7761   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7762 else
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764 for as_dir in $PATH
7765 do
7766   IFS=$as_save_IFS
7767   test -z "$as_dir" && as_dir=.
7768   for ac_exec_ext in '' $ac_executable_extensions; do
7769   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7770     ac_cv_prog_YACC="$ac_prog"
7771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7772     break 2
7773   fi
7774 done
7775 done
7776
7777 fi
7778 fi
7779 YACC=$ac_cv_prog_YACC
7780 if test -n "$YACC"; then
7781   echo "$as_me:$LINENO: result: $YACC" >&5
7782 echo "${ECHO_T}$YACC" >&6
7783 else
7784   echo "$as_me:$LINENO: result: no" >&5
7785 echo "${ECHO_T}no" >&6
7786 fi
7787
7788   test -n "$YACC" && break
7789 done
7790 test -n "$YACC" || YACC="yacc"
7791
7792 if test -z "$YACC"
7793 then
7794   { { echo "$as_me:$LINENO: error: Cannot find yacc." >&5
7795 echo "$as_me: error: Cannot find yacc." >&2;}
7796    { (exit 1); exit 1; }; }
7797 fi
7798
7799
7800 echo "$as_me:$LINENO: checking for posix non-blocking" >&5
7801 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6
7802 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
7803   echo $ECHO_N "(cached) $ECHO_C" >&6
7804 else
7805   if test "$cross_compiling" = yes; then
7806   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7807 See \`config.log' for more details." >&5
7808 echo "$as_me: error: cannot run test program while cross compiling
7809 See \`config.log' for more details." >&2;}
7810    { (exit 1); exit 1; }; }
7811 else
7812   cat >conftest.$ac_ext <<_ACEOF
7813 /* confdefs.h.  */
7814 _ACEOF
7815 cat confdefs.h >>conftest.$ac_ext
7816 cat >>conftest.$ac_ext <<_ACEOF
7817 /* end confdefs.h.  */
7818 #include <sys/types.h>
7819 #include <sys/socket.h>
7820 #include <fcntl.h>
7821 #include <sys/ioctl.h>
7822 #include <sys/file.h>
7823 #include <signal.h>
7824 $ac_cv_type_signal alarmed() { exit(1); }
7825 int main(void)
7826 {
7827   char b[12];
7828   struct sockaddr x;
7829   size_t l = sizeof(x);
7830   int f = socket(AF_INET, SOCK_DGRAM, 0);
7831   if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
7832   {
7833     signal(SIGALRM, alarmed);
7834     alarm(2);
7835     recvfrom(f, b, 12, 0, &x, &l);
7836     alarm(0);
7837     exit(0);
7838   }
7839   exit(1);
7840 }
7841 _ACEOF
7842 rm -f conftest$ac_exeext
7843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7844   (eval $ac_link) 2>&5
7845   ac_status=$?
7846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849   (eval $ac_try) 2>&5
7850   ac_status=$?
7851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852   (exit $ac_status); }; }; then
7853   unet_cv_sys_nonblocking_posix=yes
7854 else
7855   echo "$as_me: program exited with status $ac_status" >&5
7856 echo "$as_me: failed program was:" >&5
7857 sed 's/^/| /' conftest.$ac_ext >&5
7858
7859 ( exit $ac_status )
7860 unet_cv_sys_nonblocking_posix=no
7861 fi
7862 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7863 fi
7864 fi
7865 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
7866 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6
7867 if test $unet_cv_sys_nonblocking_posix = yes; then
7868
7869 cat >>confdefs.h <<\_ACEOF
7870 #define NBLOCK_POSIX
7871 _ACEOF
7872
7873 else
7874 echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
7875 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6
7876 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
7877   echo $ECHO_N "(cached) $ECHO_C" >&6
7878 else
7879   if test "$cross_compiling" = yes; then
7880   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7881 See \`config.log' for more details." >&5
7882 echo "$as_me: error: cannot run test program while cross compiling
7883 See \`config.log' for more details." >&2;}
7884    { (exit 1); exit 1; }; }
7885 else
7886   cat >conftest.$ac_ext <<_ACEOF
7887 /* confdefs.h.  */
7888 _ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h.  */
7892 #include <sys/types.h>
7893 #include <sys/socket.h>
7894 #include <fcntl.h>
7895 #include <sys/ioctl.h>
7896 #include <sys/file.h>
7897 #include <signal.h>
7898 $ac_cv_type_signal alarmed() { exit(1); }
7899 int main(void)
7900 {
7901   char b[12];
7902   struct sockaddr x;
7903   size_t l = sizeof(x);
7904   int f = socket(AF_INET, SOCK_DGRAM, 0);
7905   if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
7906   {
7907     signal(SIGALRM, alarmed);
7908     alarm(2);
7909     recvfrom(f, b, 12, 0, &x, &l);
7910     alarm(0);
7911     exit(0);
7912   }
7913   exit(1);
7914 }
7915 _ACEOF
7916 rm -f conftest$ac_exeext
7917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7918   (eval $ac_link) 2>&5
7919   ac_status=$?
7920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923   (eval $ac_try) 2>&5
7924   ac_status=$?
7925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926   (exit $ac_status); }; }; then
7927   unet_cv_sys_nonblocking_bsd=yes
7928 else
7929   echo "$as_me: program exited with status $ac_status" >&5
7930 echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7932
7933 ( exit $ac_status )
7934 unet_cv_sys_nonblocking_bsd=no
7935 fi
7936 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7937 fi
7938 fi
7939 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
7940 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6
7941 if test $unet_cv_sys_nonblocking_bsd = yes; then
7942
7943 cat >>confdefs.h <<\_ACEOF
7944 #define NBLOCK_BSD
7945 _ACEOF
7946
7947 else
7948
7949 cat >>confdefs.h <<\_ACEOF
7950 #define NBLOCK_SYSV
7951 _ACEOF
7952
7953 fi
7954 fi
7955 echo "$as_me:$LINENO: checking for posix signals" >&5
7956 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6
7957 if test "${unet_cv_sys_signal_posix+set}" = set; then
7958   echo $ECHO_N "(cached) $ECHO_C" >&6
7959 else
7960   cat >conftest.$ac_ext <<_ACEOF
7961 /* confdefs.h.  */
7962 _ACEOF
7963 cat confdefs.h >>conftest.$ac_ext
7964 cat >>conftest.$ac_ext <<_ACEOF
7965 /* end confdefs.h.  */
7966 #include <signal.h>
7967 int
7968 main ()
7969 {
7970 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
7971   ;
7972   return 0;
7973 }
7974 _ACEOF
7975 rm -f conftest.$ac_objext
7976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7977   (eval $ac_compile) 2>conftest.er1
7978   ac_status=$?
7979   grep -v '^ *+' conftest.er1 >conftest.err
7980   rm -f conftest.er1
7981   cat conftest.err >&5
7982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983   (exit $ac_status); } &&
7984          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7986   (eval $ac_try) 2>&5
7987   ac_status=$?
7988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989   (exit $ac_status); }; } &&
7990          { ac_try='test -s conftest.$ac_objext'
7991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7992   (eval $ac_try) 2>&5
7993   ac_status=$?
7994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995   (exit $ac_status); }; }; then
7996   unet_cv_sys_signal_posix=yes
7997 else
7998   echo "$as_me: failed program was:" >&5
7999 sed 's/^/| /' conftest.$ac_ext >&5
8000
8001 unet_cv_sys_signal_posix=no
8002 fi
8003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8004 fi
8005 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
8006 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6
8007 if test $unet_cv_sys_signal_posix = yes; then
8008
8009 cat >>confdefs.h <<\_ACEOF
8010 #define POSIX_SIGNALS
8011 _ACEOF
8012
8013 else
8014 echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
8015 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6
8016 if test "${unet_cv_sys_signal_bsd+set}" = set; then
8017   echo $ECHO_N "(cached) $ECHO_C" >&6
8018 else
8019   if test "$cross_compiling" = yes; then
8020   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8021 See \`config.log' for more details." >&5
8022 echo "$as_me: error: cannot run test program while cross compiling
8023 See \`config.log' for more details." >&2;}
8024    { (exit 1); exit 1; }; }
8025 else
8026   cat >conftest.$ac_ext <<_ACEOF
8027 /* confdefs.h.  */
8028 _ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h.  */
8032 #include <signal.h>
8033 int calls = 0;
8034 $ac_cv_type_signal handler()
8035 {
8036   if (calls) return;
8037   calls++;
8038   kill(getpid(), SIGTERM);
8039   sleep(1);
8040 }
8041 int main(void)
8042 {
8043   signal(SIGTERM, handler);
8044   kill(getpid(), SIGTERM);
8045   exit (0);
8046 }
8047 _ACEOF
8048 rm -f conftest$ac_exeext
8049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8050   (eval $ac_link) 2>&5
8051   ac_status=$?
8052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055   (eval $ac_try) 2>&5
8056   ac_status=$?
8057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058   (exit $ac_status); }; }; then
8059   unet_cv_sys_signal_bsd=yes
8060 else
8061   echo "$as_me: program exited with status $ac_status" >&5
8062 echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8064
8065 ( exit $ac_status )
8066 unet_cv_sys_signal_bsd=no
8067 fi
8068 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8069 fi
8070 fi
8071 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
8072 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6
8073 if test $unet_cv_sys_signal_bsd = yes; then
8074
8075 cat >>confdefs.h <<\_ACEOF
8076 #define BSD_RELIABLE_SIGNALS
8077 _ACEOF
8078
8079 else
8080
8081 cat >>confdefs.h <<\_ACEOF
8082 #define SYSV_UNRELIABLE_SIGNALS
8083 _ACEOF
8084
8085 fi
8086 fi
8087
8088 echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5
8089 echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6
8090 unet_cv_pipe_flags="$ac_cv_c_compiler_gnu"
8091 if test "$ac_cv_c_compiler_gnu" = no; then
8092   OLDCFLAGS="$CFLAGS"
8093   CFLAGS="$CFLAGS -pipe"
8094   cat >conftest.$ac_ext <<_ACEOF
8095 /* confdefs.h.  */
8096 _ACEOF
8097 cat confdefs.h >>conftest.$ac_ext
8098 cat >>conftest.$ac_ext <<_ACEOF
8099 /* end confdefs.h.  */
8100
8101 int
8102 main ()
8103 {
8104
8105   ;
8106   return 0;
8107 }
8108 _ACEOF
8109 rm -f conftest.$ac_objext
8110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8111   (eval $ac_compile) 2>conftest.er1
8112   ac_status=$?
8113   grep -v '^ *+' conftest.er1 >conftest.err
8114   rm -f conftest.er1
8115   cat conftest.err >&5
8116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117   (exit $ac_status); } &&
8118          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120   (eval $ac_try) 2>&5
8121   ac_status=$?
8122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123   (exit $ac_status); }; } &&
8124          { ac_try='test -s conftest.$ac_objext'
8125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126   (eval $ac_try) 2>&5
8127   ac_status=$?
8128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129   (exit $ac_status); }; }; then
8130   unet_cv_pipe_flags=yes
8131 else
8132   echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8134
8135 fi
8136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8137   CFLAGS="$OLDCFLAGS"
8138 fi
8139 echo "$as_me:$LINENO: result: $unet_cv_pipe_flags" >&5
8140 echo "${ECHO_T}$unet_cv_pipe_flags" >&6
8141 if test "$unet_cv_pipe_flags" = yes ; then
8142   x=`echo $CFLAGS | grep 'pipe' 2>/dev/null`
8143   if test "$x" = "" ; then
8144     CFLAGS="$CFLAGS -pipe"
8145   fi
8146 fi
8147
8148
8149 echo "$as_me:$LINENO: checking for OS-dependent information" >&5
8150 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6
8151 case "$host" in
8152     *-linux*)
8153         echo "$as_me:$LINENO: result: Linux ($host) found." >&5
8154 echo "${ECHO_T}Linux ($host) found." >&6
8155         unet_poll_syscall=yes
8156         ;;
8157
8158     *-solaris*)
8159         echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
8160 echo "${ECHO_T}Solaris ($host) found." >&6
8161         if test x"$ac_cv_header_poll_h" = xyes; then
8162             unet_poll_syscall=yes
8163         else
8164             unet_poll_syscall=no
8165         fi
8166         ;;
8167
8168     *-sunos*)
8169         echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
8170 echo "${ECHO_T}Solaris ($host) found." >&6
8171         unet_poll_syscall=no
8172         ;;
8173
8174     *-openbsd*)
8175         echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
8176 echo "${ECHO_T}OpenBSD ($host) found." >&6
8177         if test x"$ac_cv_header_poll_h" = xyes; then
8178             unet_poll_syscall=yes
8179         else
8180             unet_poll_syscall=no
8181         fi
8182         ;;
8183
8184     *-*bsd*)
8185         echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
8186 echo "${ECHO_T}Generic BSD ($host) found." >&6
8187         if test x"$ac_cv_header_poll_h" = xyes; then
8188             unet_poll_syscall=yes
8189         else
8190             unet_poll_syscall=no
8191         fi
8192         ;;
8193
8194     *-darwin*)
8195         echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
8196 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6
8197         unet_poll_syscall=no
8198         ;;
8199
8200     *)
8201         echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
8202 echo "${ECHO_T}Unknown system type $host found." >&6
8203         { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
8204 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
8205         unet_poll_syscall=no
8206         ;;
8207 esac
8208
8209 echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
8210 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6
8211 # Check whether --enable-poll or --disable-poll was given.
8212 if test "${enable_poll+set}" = set; then
8213   enableval="$enable_poll"
8214   unet_cv_enable_poll=$enable_poll
8215 else
8216   if test "${unet_cv_enable_poll+set}" = set; then
8217   echo $ECHO_N "(cached) $ECHO_C" >&6
8218 else
8219   unet_cv_enable_poll=$unet_poll_syscall
8220 fi
8221
8222 fi;
8223
8224 # Force poll to be disabled if there is no poll.h
8225 if test x"$ac_cv_header_poll_h" != xyes; then
8226     unet_cv_enable_poll=no
8227 fi
8228
8229 echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
8230 echo "${ECHO_T}$unet_cv_enable_poll" >&6
8231
8232 if test x"$unet_cv_enable_poll" = xyes; then
8233
8234 cat >>confdefs.h <<\_ACEOF
8235 #define USE_POLL
8236 _ACEOF
8237
8238     ENGINE_C=engine_poll.c
8239 else
8240     ENGINE_C=engine_select.c
8241 fi
8242
8243
8244 echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
8245 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6
8246 # Check whether --enable-debug or --disable-debug was given.
8247 if test "${enable_debug+set}" = set; then
8248   enableval="$enable_debug"
8249   unet_cv_enable_debug=$enable_debug
8250 else
8251   if test "${unet_cv_enable_debug+set}" = set; then
8252   echo $ECHO_N "(cached) $ECHO_C" >&6
8253 else
8254   unet_cv_enable_debug=no
8255 fi
8256
8257 fi;
8258 echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
8259 echo "${ECHO_T}$unet_cv_enable_debug" >&6
8260
8261 if test x"$unet_cv_enable_debug" = xyes; then
8262
8263 cat >>confdefs.h <<\_ACEOF
8264 #define DEBUGMODE
8265 _ACEOF
8266
8267 fi
8268
8269 echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
8270 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6
8271
8272 # Check whether --with-leak-detect or --without-leak-detect was given.
8273 if test "${with_leak_detect+set}" = set; then
8274   withval="$with_leak_detect"
8275   unet_cv_with_leak_detect=$with_leak_detect
8276 else
8277   if test "${unet_cv_with_leak_detect+set}" = set; then
8278   echo $ECHO_N "(cached) $ECHO_C" >&6
8279 else
8280   unet_cv_with_leak_detect=no
8281 fi
8282
8283 fi;
8284 echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
8285 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6
8286
8287 if test x"$unet_cv_with_leak_detect" != xno; then
8288     LIBS="-lgc $LIBS"
8289     CFLAGS="-DMDEBUG $CFLAGS"
8290     if test x"$unet_cv_with_leak_detect" != xyes; then
8291        LIBS="-L$unet_cv_with_leak_detect $LIBS"
8292     fi
8293 fi
8294
8295
8296 # Check whether --with-ipv6 or --without-ipv6 was given.
8297 if test "${with_ipv6+set}" = set; then
8298   withval="$with_ipv6"
8299   ac_cv_use_ipv6=$withval
8300 else
8301   ac_cv_use_ipv6=$unet_have_sockaddr_in6
8302 fi;
8303 echo "$as_me:$LINENO: checking whether to use IPv6" >&5
8304 echo $ECHO_N "checking whether to use IPv6... $ECHO_C" >&6
8305 if test "${ac_cv_use_ipv6+set}" = set; then
8306   echo $ECHO_N "(cached) $ECHO_C" >&6
8307 else
8308   ac_cv_use_ipv6=no
8309 fi
8310 echo "$as_me:$LINENO: result: $ac_cv_use_ipv6" >&5
8311 echo "${ECHO_T}$ac_cv_use_ipv6" >&6
8312 if test x"$ac_cv_use_ipv6" != "xno" ; then
8313
8314 cat >>confdefs.h <<\_ACEOF
8315 #define IPV6
8316 _ACEOF
8317
8318 fi
8319
8320 echo "$as_me:$LINENO: checking whether to enable asserts" >&5
8321 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6
8322 # Check whether --enable-asserts or --disable-asserts was given.
8323 if test "${enable_asserts+set}" = set; then
8324   enableval="$enable_asserts"
8325   unet_cv_enable_asserts=$enable_asserts
8326 else
8327   if test "${unet_cv_enable_asserts+set}" = set; then
8328   echo $ECHO_N "(cached) $ECHO_C" >&6
8329 else
8330   unet_cv_enable_asserts=yes
8331 fi
8332
8333 fi;
8334 echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
8335 echo "${ECHO_T}$unet_cv_enable_asserts" >&6
8336
8337 if test x"$unet_cv_enable_asserts" = xno; then
8338
8339 cat >>confdefs.h <<\_ACEOF
8340 #define NDEBUG
8341 _ACEOF
8342
8343 fi
8344
8345 echo "$as_me:$LINENO: checking whether to enable debugging symbols" >&5
8346 echo $ECHO_N "checking whether to enable debugging symbols... $ECHO_C" >&6
8347 # Check whether --enable-symbols or --disable-symbols was given.
8348 if test "${enable_symbols+set}" = set; then
8349   enableval="$enable_symbols"
8350   unet_cv_enable_symbols=$enable_symbols
8351 else
8352   if test "${unet_cv_enable_symbols+set}" = set; then
8353   echo $ECHO_N "(cached) $ECHO_C" >&6
8354 else
8355   unet_cv_enable_symbols=yes
8356 fi
8357
8358 fi;
8359 echo "$as_me:$LINENO: result: $unet_cv_enable_symbols" >&5
8360 echo "${ECHO_T}$unet_cv_enable_symbols" >&6
8361
8362 if test x"$unet_cv_enable_symbols" = xyes; then
8363     CFLAGS="-g $CFLAGS"
8364 fi
8365
8366 echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
8367 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
8368 # Check whether --enable-profile or --disable-profile was given.
8369 if test "${enable_profile+set}" = set; then
8370   enableval="$enable_profile"
8371   unet_cv_enable_profile=$enable_profile
8372 else
8373   if test "${unet_cv_enable_profile+set}" = set; then
8374   echo $ECHO_N "(cached) $ECHO_C" >&6
8375 else
8376   unet_cv_enable_profile=no
8377 fi
8378
8379 fi;
8380 echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
8381 echo "${ECHO_T}$unet_cv_enable_profile" >&6
8382
8383 if test x"$unet_cv_enable_profile" = xyes; then
8384     CFLAGS="-pg $CFLAGS"
8385 fi
8386
8387 echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
8388 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6
8389 # Check whether --enable-pedantic or --disable-pedantic was given.
8390 if test "${enable_pedantic+set}" = set; then
8391   enableval="$enable_pedantic"
8392   unet_cv_enable_pedantic=$enable_pedantic
8393 else
8394   if test "${unet_cv_enable_pedantic+set}" = set; then
8395   echo $ECHO_N "(cached) $ECHO_C" >&6
8396 else
8397   unet_cv_enable_pedantic=no
8398 fi
8399
8400 fi;
8401 echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
8402 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6
8403
8404 if test x"$unet_cv_enable_pedantic" = xyes; then
8405     CFLAGS="-pedantic $CFLAGS"
8406 fi
8407
8408 echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
8409 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6
8410 # Check whether --enable-warnings or --disable-warnings was given.
8411 if test "${enable_warnings+set}" = set; then
8412   enableval="$enable_warnings"
8413   unet_cv_enable_warnings=$enable_warnings
8414 else
8415   if test "${unet_cv_enable_warnings+set}" = set; then
8416   echo $ECHO_N "(cached) $ECHO_C" >&6
8417 else
8418   unet_cv_enable_warnings=no
8419 fi
8420
8421 fi;
8422 echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
8423 echo "${ECHO_T}$unet_cv_enable_warnings" >&6
8424
8425 if test x"$unet_cv_enable_warnings" = xyes; then
8426     CFLAGS="-Wall $CFLAGS"
8427 fi
8428
8429 echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
8430 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6
8431 # Check whether --enable-inlines or --disable-inlines was given.
8432 if test "${enable_inlines+set}" = set; then
8433   enableval="$enable_inlines"
8434   unet_cv_enable_inlines=$enable_inlines
8435 else
8436   if test "${unet_cv_enable_inlines+set}" = set; then
8437   echo $ECHO_N "(cached) $ECHO_C" >&6
8438 else
8439   unet_cv_enable_inlines=yes
8440 fi
8441
8442 fi;
8443 echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
8444 echo "${ECHO_T}$unet_cv_enable_inlines" >&6
8445
8446 if test x"$unet_cv_enable_inlines" = xyes; then
8447
8448 cat >>confdefs.h <<\_ACEOF
8449 #define FORCEINLINE
8450 _ACEOF
8451
8452 fi
8453
8454 echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
8455 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6
8456 # Check whether --enable-devpoll or --disable-devpoll was given.
8457 if test "${enable_devpoll+set}" = set; then
8458   enableval="$enable_devpoll"
8459   unet_cv_enable_devpoll=$enable_devpoll
8460 else
8461   if test "${unet_cv_enable_devpoll+set}" = set; then
8462   echo $ECHO_N "(cached) $ECHO_C" >&6
8463 else
8464   unet_cv_enable_devpoll=yes
8465 fi
8466
8467 fi;
8468
8469 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
8470     unet_cv_enable_devpoll=no
8471 fi
8472
8473 echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
8474 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
8475
8476 if test x"$unet_cv_enable_devpoll" != xno; then
8477
8478 cat >>confdefs.h <<\_ACEOF
8479 #define USE_DEVPOLL
8480 _ACEOF
8481
8482     ENGINE_C="engine_devpoll.c $ENGINE_C"
8483 fi
8484
8485 echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
8486 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6
8487 # Check whether --enable-kqueue or --disable-kqueue was given.
8488 if test "${enable_kqueue+set}" = set; then
8489   enableval="$enable_kqueue"
8490   unet_cv_enable_kqueue=$enable_kqueue
8491 else
8492   if test "${unet_cv_enable_kqueue+set}" = set; then
8493   echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495   unet_cv_enable_kqueue=yes
8496 fi
8497
8498 fi;
8499
8500 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
8501     unet_cv_enable_kqueue=no
8502 fi
8503
8504 echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
8505 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
8506
8507 if test x"$unet_cv_enable_kqueue" != xno; then
8508
8509 cat >>confdefs.h <<\_ACEOF
8510 #define USE_KQUEUE
8511 _ACEOF
8512
8513     ENGINE_C="engine_kqueue.c $ENGINE_C"
8514 fi
8515
8516 echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
8517 echo $ECHO_N "checking whether to enable the epoll event engine... $ECHO_C" >&6
8518 # Check whether --enable-epoll or --disable-epoll was given.
8519 if test "${enable_epoll+set}" = set; then
8520   enableval="$enable_epoll"
8521   unet_cv_enable_epoll=$enable_epoll
8522 else
8523   if test "${unet_cv_enable_epoll+set}" = set; then
8524   echo $ECHO_N "(cached) $ECHO_C" >&6
8525 else
8526   unet_cv_enable_epoll=yes
8527 fi
8528
8529 fi;
8530
8531 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
8532     unet_cv_enable_epoll=no
8533 fi
8534
8535 echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
8536 echo "${ECHO_T}$unet_cv_enable_epoll" >&6
8537
8538 if test x"$unet_cv_enable_epoll" != xno; then
8539     echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
8540 echo $ECHO_N "checking whether epoll functions are properly defined... $ECHO_C" >&6
8541     cat >conftest.$ac_ext <<_ACEOF
8542 /* confdefs.h.  */
8543 _ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h.  */
8547 #include <sys/epoll.h>
8548 int
8549 main ()
8550 {
8551 epoll_create(10);
8552   ;
8553   return 0;
8554 }
8555 _ACEOF
8556 rm -f conftest.$ac_objext conftest$ac_exeext
8557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8558   (eval $ac_link) 2>conftest.er1
8559   ac_status=$?
8560   grep -v '^ *+' conftest.er1 >conftest.err
8561   rm -f conftest.er1
8562   cat conftest.err >&5
8563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564   (exit $ac_status); } &&
8565          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567   (eval $ac_try) 2>&5
8568   ac_status=$?
8569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570   (exit $ac_status); }; } &&
8571          { ac_try='test -s conftest$ac_exeext'
8572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573   (eval $ac_try) 2>&5
8574   ac_status=$?
8575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576   (exit $ac_status); }; }; then
8577   echo "$as_me:$LINENO: result: yes" >&5
8578 echo "${ECHO_T}yes" >&6
8579 else
8580   echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8582
8583 echo "$as_me:$LINENO: result: no" >&5
8584 echo "${ECHO_T}no" >&6
8585
8586 cat >>confdefs.h <<\_ACEOF
8587 #define EPOLL_NEED_BODY
8588 _ACEOF
8589
8590 fi
8591 rm -f conftest.err conftest.$ac_objext \
8592       conftest$ac_exeext conftest.$ac_ext
8593
8594 cat >>confdefs.h <<\_ACEOF
8595 #define USE_EPOLL
8596 _ACEOF
8597
8598     ENGINE_C="engine_epoll.c $ENGINE_C"
8599 fi
8600
8601 echo "$as_me:$LINENO: checking for va_copy" >&5
8602 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
8603 if test "${unet_cv_c_va_copy+set}" = set; then
8604   echo $ECHO_N "(cached) $ECHO_C" >&6
8605 else
8606   cat >conftest.$ac_ext <<_ACEOF
8607 /* confdefs.h.  */
8608 _ACEOF
8609 cat confdefs.h >>conftest.$ac_ext
8610 cat >>conftest.$ac_ext <<_ACEOF
8611 /* end confdefs.h.  */
8612 #include <stdarg.h>
8613 int
8614 main ()
8615 {
8616 va_list ap1, ap2; va_copy(ap1, ap2);
8617   ;
8618   return 0;
8619 }
8620 _ACEOF
8621 rm -f conftest.$ac_objext conftest$ac_exeext
8622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8623   (eval $ac_link) 2>conftest.er1
8624   ac_status=$?
8625   grep -v '^ *+' conftest.er1 >conftest.err
8626   rm -f conftest.er1
8627   cat conftest.err >&5
8628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629   (exit $ac_status); } &&
8630          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632   (eval $ac_try) 2>&5
8633   ac_status=$?
8634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   (exit $ac_status); }; } &&
8636          { ac_try='test -s conftest$ac_exeext'
8637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638   (eval $ac_try) 2>&5
8639   ac_status=$?
8640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641   (exit $ac_status); }; }; then
8642   unet_cv_c_va_copy="yes"
8643 else
8644   echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8646
8647 unet_cv_c_va_copy="no"
8648
8649 fi
8650 rm -f conftest.err conftest.$ac_objext \
8651       conftest$ac_exeext conftest.$ac_ext
8652 fi
8653 echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
8654 echo "${ECHO_T}$unet_cv_c_va_copy" >&6
8655 if test "$unet_cv_c_va_copy" = "yes" ; then
8656
8657 cat >>confdefs.h <<\_ACEOF
8658 #define HAVE_VA_COPY 1
8659 _ACEOF
8660
8661 fi
8662
8663 echo "$as_me:$LINENO: checking for __va_copy" >&5
8664 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
8665 if test "${unet_cv_c___va_copy+set}" = set; then
8666   echo $ECHO_N "(cached) $ECHO_C" >&6
8667 else
8668   cat >conftest.$ac_ext <<_ACEOF
8669 /* confdefs.h.  */
8670 _ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h.  */
8674 #include <stdarg.h>
8675 int
8676 main ()
8677 {
8678 va_list ap1, ap2; __va_copy(ap1, ap2);
8679   ;
8680   return 0;
8681 }
8682 _ACEOF
8683 rm -f conftest.$ac_objext conftest$ac_exeext
8684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8685   (eval $ac_link) 2>conftest.er1
8686   ac_status=$?
8687   grep -v '^ *+' conftest.er1 >conftest.err
8688   rm -f conftest.er1
8689   cat conftest.err >&5
8690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691   (exit $ac_status); } &&
8692          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694   (eval $ac_try) 2>&5
8695   ac_status=$?
8696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697   (exit $ac_status); }; } &&
8698          { ac_try='test -s conftest$ac_exeext'
8699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700   (eval $ac_try) 2>&5
8701   ac_status=$?
8702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703   (exit $ac_status); }; }; then
8704   unet_cv_c___va_copy="yes"
8705 else
8706   echo "$as_me: failed program was:" >&5
8707 sed 's/^/| /' conftest.$ac_ext >&5
8708
8709 unet_cv_c___va_copy="no"
8710
8711 fi
8712 rm -f conftest.err conftest.$ac_objext \
8713       conftest$ac_exeext conftest.$ac_ext
8714 fi
8715 echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
8716 echo "${ECHO_T}$unet_cv_c___va_copy" >&6
8717 if test "$unet_cv_c___va_copy" = "yes" ; then
8718
8719 cat >>confdefs.h <<\_ACEOF
8720 #define HAVE___VA_COPY 1
8721 _ACEOF
8722
8723 fi
8724
8725 echo "$as_me:$LINENO: checking what name to give the symlink" >&5
8726 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6
8727
8728 # Check whether --with-symlink or --without-symlink was given.
8729 if test "${with_symlink+set}" = set; then
8730   withval="$with_symlink"
8731   unet_cv_with_symlink=$with_symlink
8732 else
8733   if test "${unet_cv_with_symlink+set}" = set; then
8734   echo $ECHO_N "(cached) $ECHO_C" >&6
8735 else
8736   unet_cv_with_symlink="ircd"
8737 fi
8738
8739 fi;
8740
8741 if test x"$unet_cv_with_symlink" = xyes; then
8742     unet_cv_with_symlink="ircd"
8743 fi
8744
8745 echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
8746 echo "${ECHO_T}$unet_cv_with_symlink" >&6
8747
8748 if test x"$unet_cv_with_symlink" = xno; then
8749     INSTALL_RULE=install-no-symlink
8750     SYMLINK=
8751 else
8752     INSTALL_RULE=install-with-symlink
8753     SYMLINK=$unet_cv_with_symlink
8754 fi
8755
8756
8757
8758 echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
8759 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6
8760
8761 # Check whether --with-mode or --without-mode was given.
8762 if test "${with_mode+set}" = set; then
8763   withval="$with_mode"
8764   unet_cv_with_mode=$with_mode
8765 else
8766   if test "${unet_cv_with_mode+set}" = set; then
8767   echo $ECHO_N "(cached) $ECHO_C" >&6
8768 else
8769   unet_cv_with_mode=711
8770 fi
8771
8772 fi;
8773
8774 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
8775     unet_cv_with_mode=711
8776 fi
8777
8778 echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
8779 echo "${ECHO_T}$unet_cv_with_mode" >&6
8780
8781 IRCDMODE=$unet_cv_with_mode
8782
8783
8784 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
8785 echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
8786 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6
8787
8788 # Check whether --with-owner or --without-owner was given.
8789 if test "${with_owner+set}" = set; then
8790   withval="$with_owner"
8791   unet_cv_with_owner=$with_owner
8792 else
8793   if test "${unet_cv_with_owner+set}" = set; then
8794   echo $ECHO_N "(cached) $ECHO_C" >&6
8795 else
8796   unet_cv_with_owner=$unet_uid
8797 fi
8798
8799 fi;
8800
8801 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
8802     unet_cv_with_owner=$unet_uid
8803 fi
8804
8805 echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
8806 echo "${ECHO_T}$unet_cv_with_owner" >&6
8807
8808 IRCDOWN=$unet_cv_with_owner
8809
8810
8811 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
8812 echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
8813 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6
8814
8815 # Check whether --with-group or --without-group was given.
8816 if test "${with_group+set}" = set; then
8817   withval="$with_group"
8818   unet_cv_with_group=$with_group
8819 else
8820   if test "${unet_cv_with_group+set}" = set; then
8821   echo $ECHO_N "(cached) $ECHO_C" >&6
8822 else
8823   unet_cv_with_group=$unet_gid
8824 fi
8825
8826 fi;
8827
8828 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
8829     unet_cv_with_group=$unet_gid
8830 fi
8831
8832 echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
8833 echo "${ECHO_T}$unet_cv_with_group" >&6
8834
8835 IRCDGRP=$unet_cv_with_group
8836
8837
8838 unet_domain=
8839 if test -f /etc/resolv.conf; then
8840     unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
8841     if test x"$unet_domain" = x; then
8842         unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
8843     fi
8844 fi
8845 echo "$as_me:$LINENO: checking for site domain name" >&5
8846 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6
8847
8848 # Check whether --with-domain or --without-domain was given.
8849 if test "${with_domain+set}" = set; then
8850   withval="$with_domain"
8851   unet_cv_with_domain=$with_domain
8852 else
8853   if test "${unet_cv_with_domain+set}" = set; then
8854   echo $ECHO_N "(cached) $ECHO_C" >&6
8855 else
8856   unet_cv_with_domain=$unet_domain
8857 fi
8858
8859 fi;
8860
8861 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
8862     unet_cv_with_domain=$unet_domain
8863 fi
8864 if test x"$unet_cv_with_domain" = xno; then
8865     { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
8866 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
8867    { (exit 1); exit 1; }; }
8868 fi
8869
8870 echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
8871 echo "${ECHO_T}$unet_cv_with_domain" >&6
8872
8873
8874 cat >>confdefs.h <<_ACEOF
8875 #define DOMAINNAME "*$unet_cv_with_domain"
8876 _ACEOF
8877
8878
8879 echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
8880 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6
8881
8882 # Check whether --with-chroot or --without-chroot was given.
8883 if test "${with_chroot+set}" = set; then
8884   withval="$with_chroot"
8885   unet_cv_with_chroot=$with_chroot
8886 else
8887   if test "${unet_cv_with_chroot+set}" = set; then
8888   echo $ECHO_N "(cached) $ECHO_C" >&6
8889 else
8890   unet_cv_with_chroot=no
8891 fi
8892
8893 fi;
8894
8895 if test x"$unet_cv_with_chroot" = xyes; then
8896     { { echo "$as_me:$LINENO: error: --with-chroot given with no directory.  See doc/readme.chroot." >&5
8897 echo "$as_me: error: --with-chroot given with no directory.  See doc/readme.chroot." >&2;}
8898    { (exit 1); exit 1; }; }
8899 fi
8900
8901 # Ensure there are no trailing /'s to mess us up
8902 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
8903
8904 echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
8905 echo "${ECHO_T}$unet_cv_with_chroot" >&6
8906
8907 # Deal with the annoying value "NONE" here
8908 unet_save_prefix=$prefix
8909 if test x"$prefix" = xNONE; then
8910     prefix=$ac_default_prefix
8911 else
8912     prefix=$prefix
8913 fi
8914
8915 unet_save_exec_prefix=$exec_prefix
8916 if test x"$exec_prefix" = xNONE; then
8917     exec_prefix=$prefix
8918 else
8919     exec_prefix=$exec_prefix
8920 fi
8921
8922 # Obtain the actual interesting directories
8923 unet_bindir=`eval echo "$bindir"`
8924 unet_libdir=`eval echo "$libdir"`
8925
8926 # Restore the original settings of $prefix and $exec_prefix
8927 prefix=$unet_save_prefix
8928 exec_prefix=$unet_save_exec_prefix
8929
8930 echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
8931 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6
8932 if test x"$unet_cv_with_symlink" = xno; then
8933     unet_spath="$unet_bindir/ircd"
8934 else
8935     unet_spath="$unet_bindir/$unet_cv_with_symlink"
8936 fi
8937 echo "$as_me:$LINENO: result: $unet_spath" >&5
8938 echo "${ECHO_T}$unet_spath" >&6
8939
8940 if test x"$unet_cv_with_chroot" != xno; then
8941     if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
8942         unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
8943     else
8944         { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
8945 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
8946     fi
8947 fi
8948
8949
8950 cat >>confdefs.h <<_ACEOF
8951 #define SPATH "$unet_spath"
8952 _ACEOF
8953
8954
8955 echo "$as_me:$LINENO: checking what the data directory should be" >&5
8956 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6
8957
8958 # Check whether --with-dpath or --without-dpath was given.
8959 if test "${with_dpath+set}" = set; then
8960   withval="$with_dpath"
8961   unet_cv_with_dpath=$with_dpath
8962 else
8963   if test "${unet_cv_with_dpath+set}" = set; then
8964   echo $ECHO_N "(cached) $ECHO_C" >&6
8965 else
8966   unet_cv_with_dpath=$unet_libdir
8967 fi
8968
8969 fi;
8970
8971 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
8972     unet_cv_with_dpath=$unet_libdir
8973 fi
8974
8975 # Ensure there are no trailing /'s to mess us up
8976 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
8977
8978 echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
8979 echo "${ECHO_T}$unet_cv_with_dpath" >&6
8980
8981 if test x"$unet_cv_with_chroot" != xno; then
8982     if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
8983         unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
8984     else
8985         { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
8986 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
8987    { (exit 1); exit 1; }; }
8988     fi
8989 else
8990     unet_dpath=$unet_cv_with_dpath
8991 fi
8992
8993
8994 cat >>confdefs.h <<_ACEOF
8995 #define DPATH "$unet_dpath"
8996 _ACEOF
8997
8998
8999 DPATH=$unet_cv_with_dpath
9000
9001
9002 echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
9003 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6
9004
9005 # Check whether --with-cpath or --without-cpath was given.
9006 if test "${with_cpath+set}" = set; then
9007   withval="$with_cpath"
9008   unet_cv_with_cpath=$with_cpath
9009 else
9010   if test "${unet_cv_with_cpath+set}" = set; then
9011   echo $ECHO_N "(cached) $ECHO_C" >&6
9012 else
9013   unet_cv_with_cpath="ircd.conf"
9014 fi
9015
9016 fi;
9017
9018 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
9019     unet_cv_with_cpath="ircd.conf"
9020 fi
9021
9022 echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
9023 echo "${ECHO_T}$unet_cv_with_cpath" >&6
9024
9025 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
9026     # Absolute path; check against chroot stuff
9027     if test x"$unet_cv_with_chroot" != xno; then
9028         if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
9029             unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
9030         else
9031             { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
9032 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
9033    { (exit 1); exit 1; }; }
9034         fi
9035     else
9036         unet_cpath=$unet_cv_with_cpath
9037     fi
9038 else
9039     unet_cpath=$unet_cv_with_cpath
9040 fi
9041
9042
9043 cat >>confdefs.h <<_ACEOF
9044 #define CPATH "$unet_cpath"
9045 _ACEOF
9046
9047
9048 echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
9049 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6
9050
9051 # Check whether --with-lpath or --without-lpath was given.
9052 if test "${with_lpath+set}" = set; then
9053   withval="$with_lpath"
9054   unet_cv_with_lpath=$with_lpath
9055 else
9056   if test "${unet_cv_with_lpath+set}" = set; then
9057   echo $ECHO_N "(cached) $ECHO_C" >&6
9058 else
9059   unet_cv_with_lpath="ircd.log"
9060 fi
9061
9062 fi;
9063
9064 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
9065     unet_cv_with_lpath="ircd.log"
9066 fi
9067
9068 echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
9069 echo "${ECHO_T}$unet_cv_with_lpath" >&6
9070
9071 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
9072     # Absolute path; check against chroot stuff
9073     if test x"$unet_cv_with_chroot" != xno; then
9074         if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
9075             unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
9076         else
9077             { 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
9078 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;}
9079             unet_cv_with_lpath="ircd.log"
9080             unet_lpath="ircd.log"
9081         fi
9082     else
9083         unet_lpath=$unet_cv_with_lpath
9084     fi
9085 else
9086     unet_lpath=$unet_cv_with_lpath
9087 fi
9088
9089
9090 cat >>confdefs.h <<_ACEOF
9091 #define LPATH "$unet_lpath"
9092 _ACEOF
9093
9094
9095 unet_maxcon=`ulimit -Hn`
9096 if test x"$unet_maxcon" = xunlimited; then
9097     unet_maxcon=`ulimit -Sn`
9098 fi
9099 unet_maxcon=`expr $unet_maxcon - 4`
9100 echo "$as_me:$LINENO: checking max connections" >&5
9101 echo $ECHO_N "checking max connections... $ECHO_C" >&6
9102
9103 # Check whether --with-maxcon or --without-maxcon was given.
9104 if test "${with_maxcon+set}" = set; then
9105   withval="$with_maxcon"
9106   unet_cv_with_maxcon=$with_maxcon
9107 else
9108   if test "${unet_cv_with_maxcon+set}" = set; then
9109   echo $ECHO_N "(cached) $ECHO_C" >&6
9110 else
9111   unet_cv_with_maxcon=$unet_maxcon
9112 fi
9113
9114 fi;
9115
9116 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
9117     unet_cv_with_maxcon=$unet_maxcon
9118 fi
9119
9120 echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
9121 echo "${ECHO_T}$unet_cv_with_maxcon" >&6
9122
9123
9124 cat >>confdefs.h <<_ACEOF
9125 #define MAXCONNECTIONS $unet_cv_with_maxcon
9126 _ACEOF
9127
9128
9129                               ac_config_files="$ac_config_files Makefile ircd/Makefile doc/Makefile"
9130           ac_config_commands="$ac_config_commands default"
9131 cat >confcache <<\_ACEOF
9132 # This file is a shell script that caches the results of configure
9133 # tests run on this system so they can be shared between configure
9134 # scripts and configure runs, see configure's option --config-cache.
9135 # It is not useful on other systems.  If it contains results you don't
9136 # want to keep, you may remove or edit it.
9137 #
9138 # config.status only pays attention to the cache file if you give it
9139 # the --recheck option to rerun configure.
9140 #
9141 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9142 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9143 # following values.
9144
9145 _ACEOF
9146
9147 # The following way of writing the cache mishandles newlines in values,
9148 # but we know of no workaround that is simple, portable, and efficient.
9149 # So, don't put newlines in cache variables' values.
9150 # Ultrix sh set writes to stderr and can't be redirected directly,
9151 # and sets the high bit in the cache file unless we assign to the vars.
9152 {
9153   (set) 2>&1 |
9154     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9155     *ac_space=\ *)
9156       # `set' does not quote correctly, so add quotes (double-quote
9157       # substitution turns \\\\ into \\, and sed turns \\ into \).
9158       sed -n \
9159         "s/'/'\\\\''/g;
9160           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9161       ;;
9162     *)
9163       # `set' quotes correctly as required by POSIX, so do not add quotes.
9164       sed -n \
9165         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9166       ;;
9167     esac;
9168 } |
9169   sed '
9170      t clear
9171      : clear
9172      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9173      t end
9174      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9175      : end' >>confcache
9176 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9177   if test -w $cache_file; then
9178     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9179     cat confcache >$cache_file
9180   else
9181     echo "not updating unwritable cache $cache_file"
9182   fi
9183 fi
9184 rm -f confcache
9185
9186 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9187 # Let make expand exec_prefix.
9188 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9189
9190 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9191 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9192 # trailing colons and then remove the whole line if VPATH becomes empty
9193 # (actually we leave an empty line to preserve line numbers).
9194 if test "x$srcdir" = x.; then
9195   ac_vpsub='/^[  ]*VPATH[        ]*=/{
9196 s/:*\$(srcdir):*/:/;
9197 s/:*\${srcdir}:*/:/;
9198 s/:*@srcdir@:*/:/;
9199 s/^\([^=]*=[     ]*\):*/\1/;
9200 s/:*$//;
9201 s/^[^=]*=[       ]*$//;
9202 }'
9203 fi
9204
9205 DEFS=-DHAVE_CONFIG_H
9206
9207 ac_libobjs=
9208 ac_ltlibobjs=
9209 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9210   # 1. Remove the extension, and $U if already installed.
9211   ac_i=`echo "$ac_i" |
9212          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9213   # 2. Add them.
9214   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9215   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9216 done
9217 LIBOBJS=$ac_libobjs
9218
9219 LTLIBOBJS=$ac_ltlibobjs
9220
9221
9222
9223 : ${CONFIG_STATUS=./config.status}
9224 ac_clean_files_save=$ac_clean_files
9225 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9226 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9227 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9228 cat >$CONFIG_STATUS <<_ACEOF
9229 #! $SHELL
9230 # Generated by $as_me.
9231 # Run this file to recreate the current configuration.
9232 # Compiler output produced by configure, useful for debugging
9233 # configure, is in config.log if it exists.
9234
9235 debug=false
9236 ac_cs_recheck=false
9237 ac_cs_silent=false
9238 SHELL=\${CONFIG_SHELL-$SHELL}
9239 _ACEOF
9240
9241 cat >>$CONFIG_STATUS <<\_ACEOF
9242 ## --------------------- ##
9243 ## M4sh Initialization.  ##
9244 ## --------------------- ##
9245
9246 # Be Bourne compatible
9247 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9248   emulate sh
9249   NULLCMD=:
9250   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9251   # is contrary to our usage.  Disable this feature.
9252   alias -g '${1+"$@"}'='"$@"'
9253 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9254   set -o posix
9255 fi
9256 DUALCASE=1; export DUALCASE # for MKS sh
9257
9258 # Support unset when possible.
9259 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9260   as_unset=unset
9261 else
9262   as_unset=false
9263 fi
9264
9265
9266 # Work around bugs in pre-3.0 UWIN ksh.
9267 $as_unset ENV MAIL MAILPATH
9268 PS1='$ '
9269 PS2='> '
9270 PS4='+ '
9271
9272 # NLS nuisances.
9273 for as_var in \
9274   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9275   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9276   LC_TELEPHONE LC_TIME
9277 do
9278   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9279     eval $as_var=C; export $as_var
9280   else
9281     $as_unset $as_var
9282   fi
9283 done
9284
9285 # Required to use basename.
9286 if expr a : '\(a\)' >/dev/null 2>&1; then
9287   as_expr=expr
9288 else
9289   as_expr=false
9290 fi
9291
9292 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9293   as_basename=basename
9294 else
9295   as_basename=false
9296 fi
9297
9298
9299 # Name of the executable.
9300 as_me=`$as_basename "$0" ||
9301 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9302          X"$0" : 'X\(//\)$' \| \
9303          X"$0" : 'X\(/\)$' \| \
9304          .     : '\(.\)' 2>/dev/null ||
9305 echo X/"$0" |
9306     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9307           /^X\/\(\/\/\)$/{ s//\1/; q; }
9308           /^X\/\(\/\).*/{ s//\1/; q; }
9309           s/.*/./; q'`
9310
9311
9312 # PATH needs CR, and LINENO needs CR and PATH.
9313 # Avoid depending upon Character Ranges.
9314 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9315 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9316 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9317 as_cr_digits='0123456789'
9318 as_cr_alnum=$as_cr_Letters$as_cr_digits
9319
9320 # The user is always right.
9321 if test "${PATH_SEPARATOR+set}" != set; then
9322   echo "#! /bin/sh" >conf$$.sh
9323   echo  "exit 0"   >>conf$$.sh
9324   chmod +x conf$$.sh
9325   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9326     PATH_SEPARATOR=';'
9327   else
9328     PATH_SEPARATOR=:
9329   fi
9330   rm -f conf$$.sh
9331 fi
9332
9333
9334   as_lineno_1=$LINENO
9335   as_lineno_2=$LINENO
9336   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9337   test "x$as_lineno_1" != "x$as_lineno_2" &&
9338   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9339   # Find who we are.  Look in the path if we contain no path at all
9340   # relative or not.
9341   case $0 in
9342     *[\\/]* ) as_myself=$0 ;;
9343     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9344 for as_dir in $PATH
9345 do
9346   IFS=$as_save_IFS
9347   test -z "$as_dir" && as_dir=.
9348   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9349 done
9350
9351        ;;
9352   esac
9353   # We did not find ourselves, most probably we were run as `sh COMMAND'
9354   # in which case we are not to be found in the path.
9355   if test "x$as_myself" = x; then
9356     as_myself=$0
9357   fi
9358   if test ! -f "$as_myself"; then
9359     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9360 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9361    { (exit 1); exit 1; }; }
9362   fi
9363   case $CONFIG_SHELL in
9364   '')
9365     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9366 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9367 do
9368   IFS=$as_save_IFS
9369   test -z "$as_dir" && as_dir=.
9370   for as_base in sh bash ksh sh5; do
9371          case $as_dir in
9372          /*)
9373            if ("$as_dir/$as_base" -c '
9374   as_lineno_1=$LINENO
9375   as_lineno_2=$LINENO
9376   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9377   test "x$as_lineno_1" != "x$as_lineno_2" &&
9378   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9379              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9380              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9381              CONFIG_SHELL=$as_dir/$as_base
9382              export CONFIG_SHELL
9383              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9384            fi;;
9385          esac
9386        done
9387 done
9388 ;;
9389   esac
9390
9391   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9392   # uniformly replaced by the line number.  The first 'sed' inserts a
9393   # line-number line before each line; the second 'sed' does the real
9394   # work.  The second script uses 'N' to pair each line-number line
9395   # with the numbered line, and appends trailing '-' during
9396   # substitution so that $LINENO is not a special case at line end.
9397   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9398   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9399   sed '=' <$as_myself |
9400     sed '
9401       N
9402       s,$,-,
9403       : loop
9404       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9405       t loop
9406       s,-$,,
9407       s,^['$as_cr_digits']*\n,,
9408     ' >$as_me.lineno &&
9409   chmod +x $as_me.lineno ||
9410     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9411 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9412    { (exit 1); exit 1; }; }
9413
9414   # Don't try to exec as it changes $[0], causing all sort of problems
9415   # (the dirname of $[0] is not the place where we might find the
9416   # original and so on.  Autoconf is especially sensible to this).
9417   . ./$as_me.lineno
9418   # Exit status is that of the last command.
9419   exit
9420 }
9421
9422
9423 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9424   *c*,-n*) ECHO_N= ECHO_C='
9425 ' ECHO_T='      ' ;;
9426   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9427   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9428 esac
9429
9430 if expr a : '\(a\)' >/dev/null 2>&1; then
9431   as_expr=expr
9432 else
9433   as_expr=false
9434 fi
9435
9436 rm -f conf$$ conf$$.exe conf$$.file
9437 echo >conf$$.file
9438 if ln -s conf$$.file conf$$ 2>/dev/null; then
9439   # We could just check for DJGPP; but this test a) works b) is more generic
9440   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9441   if test -f conf$$.exe; then
9442     # Don't use ln at all; we don't have any links
9443     as_ln_s='cp -p'
9444   else
9445     as_ln_s='ln -s'
9446   fi
9447 elif ln conf$$.file conf$$ 2>/dev/null; then
9448   as_ln_s=ln
9449 else
9450   as_ln_s='cp -p'
9451 fi
9452 rm -f conf$$ conf$$.exe conf$$.file
9453
9454 if mkdir -p . 2>/dev/null; then
9455   as_mkdir_p=:
9456 else
9457   test -d ./-p && rmdir ./-p
9458   as_mkdir_p=false
9459 fi
9460
9461 as_executable_p="test -f"
9462
9463 # Sed expression to map a string onto a valid CPP name.
9464 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9465
9466 # Sed expression to map a string onto a valid variable name.
9467 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9468
9469
9470 # IFS
9471 # We need space, tab and new line, in precisely that order.
9472 as_nl='
9473 '
9474 IFS="   $as_nl"
9475
9476 # CDPATH.
9477 $as_unset CDPATH
9478
9479 exec 6>&1
9480
9481 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9482 # report actual input values of CONFIG_FILES etc. instead of their
9483 # values after options handling.  Logging --version etc. is OK.
9484 exec 5>>config.log
9485 {
9486   echo
9487   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9488 ## Running $as_me. ##
9489 _ASBOX
9490 } >&5
9491 cat >&5 <<_CSEOF
9492
9493 This file was extended by $as_me, which was
9494 generated by GNU Autoconf 2.59.  Invocation command line was
9495
9496   CONFIG_FILES    = $CONFIG_FILES
9497   CONFIG_HEADERS  = $CONFIG_HEADERS
9498   CONFIG_LINKS    = $CONFIG_LINKS
9499   CONFIG_COMMANDS = $CONFIG_COMMANDS
9500   $ $0 $@
9501
9502 _CSEOF
9503 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9504 echo >&5
9505 _ACEOF
9506
9507 # Files that config.status was made for.
9508 if test -n "$ac_config_files"; then
9509   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9510 fi
9511
9512 if test -n "$ac_config_headers"; then
9513   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9514 fi
9515
9516 if test -n "$ac_config_links"; then
9517   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9518 fi
9519
9520 if test -n "$ac_config_commands"; then
9521   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9522 fi
9523
9524 cat >>$CONFIG_STATUS <<\_ACEOF
9525
9526 ac_cs_usage="\
9527 \`$as_me' instantiates files from templates according to the
9528 current configuration.
9529
9530 Usage: $0 [OPTIONS] [FILE]...
9531
9532   -h, --help       print this help, then exit
9533   -V, --version    print version number, then exit
9534   -q, --quiet      do not print progress messages
9535   -d, --debug      don't remove temporary files
9536       --recheck    update $as_me by reconfiguring in the same conditions
9537   --file=FILE[:TEMPLATE]
9538                    instantiate the configuration file FILE
9539   --header=FILE[:TEMPLATE]
9540                    instantiate the configuration header FILE
9541
9542 Configuration files:
9543 $config_files
9544
9545 Configuration headers:
9546 $config_headers
9547
9548 Configuration commands:
9549 $config_commands
9550
9551 Report bugs to <bug-autoconf@gnu.org>."
9552 _ACEOF
9553
9554 cat >>$CONFIG_STATUS <<_ACEOF
9555 ac_cs_version="\\
9556 config.status
9557 configured by $0, generated by GNU Autoconf 2.59,
9558   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9559
9560 Copyright (C) 2003 Free Software Foundation, Inc.
9561 This config.status script is free software; the Free Software Foundation
9562 gives unlimited permission to copy, distribute and modify it."
9563 srcdir=$srcdir
9564 INSTALL="$INSTALL"
9565 _ACEOF
9566
9567 cat >>$CONFIG_STATUS <<\_ACEOF
9568 # If no file are specified by the user, then we need to provide default
9569 # value.  By we need to know if files were specified by the user.
9570 ac_need_defaults=:
9571 while test $# != 0
9572 do
9573   case $1 in
9574   --*=*)
9575     ac_option=`expr "x$1" : 'x\([^=]*\)='`
9576     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9577     ac_shift=:
9578     ;;
9579   -*)
9580     ac_option=$1
9581     ac_optarg=$2
9582     ac_shift=shift
9583     ;;
9584   *) # This is not an option, so the user has probably given explicit
9585      # arguments.
9586      ac_option=$1
9587      ac_need_defaults=false;;
9588   esac
9589
9590   case $ac_option in
9591   # Handling of the options.
9592 _ACEOF
9593 cat >>$CONFIG_STATUS <<\_ACEOF
9594   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9595     ac_cs_recheck=: ;;
9596   --version | --vers* | -V )
9597     echo "$ac_cs_version"; exit 0 ;;
9598   --he | --h)
9599     # Conflict between --help and --header
9600     { { echo "$as_me:$LINENO: error: ambiguous option: $1
9601 Try \`$0 --help' for more information." >&5
9602 echo "$as_me: error: ambiguous option: $1
9603 Try \`$0 --help' for more information." >&2;}
9604    { (exit 1); exit 1; }; };;
9605   --help | --hel | -h )
9606     echo "$ac_cs_usage"; exit 0 ;;
9607   --debug | --d* | -d )
9608     debug=: ;;
9609   --file | --fil | --fi | --f )
9610     $ac_shift
9611     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9612     ac_need_defaults=false;;
9613   --header | --heade | --head | --hea )
9614     $ac_shift
9615     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9616     ac_need_defaults=false;;
9617   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9618   | -silent | --silent | --silen | --sile | --sil | --si | --s)
9619     ac_cs_silent=: ;;
9620
9621   # This is an error.
9622   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9623 Try \`$0 --help' for more information." >&5
9624 echo "$as_me: error: unrecognized option: $1
9625 Try \`$0 --help' for more information." >&2;}
9626    { (exit 1); exit 1; }; } ;;
9627
9628   *) ac_config_targets="$ac_config_targets $1" ;;
9629
9630   esac
9631   shift
9632 done
9633
9634 ac_configure_extra_args=
9635
9636 if $ac_cs_silent; then
9637   exec 6>/dev/null
9638   ac_configure_extra_args="$ac_configure_extra_args --silent"
9639 fi
9640
9641 _ACEOF
9642 cat >>$CONFIG_STATUS <<_ACEOF
9643 if \$ac_cs_recheck; then
9644   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9645   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9646 fi
9647
9648 _ACEOF
9649
9650
9651
9652
9653
9654 cat >>$CONFIG_STATUS <<\_ACEOF
9655 for ac_config_target in $ac_config_targets
9656 do
9657   case "$ac_config_target" in
9658   # Handling of arguments.
9659   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9660   "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
9661   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9662   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9663   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9664   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9665 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9666    { (exit 1); exit 1; }; };;
9667   esac
9668 done
9669
9670 # If the user did not use the arguments to specify the items to instantiate,
9671 # then the envvar interface is used.  Set only those that are not.
9672 # We use the long form for the default assignment because of an extremely
9673 # bizarre bug on SunOS 4.1.3.
9674 if $ac_need_defaults; then
9675   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9676   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9677   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9678 fi
9679
9680 # Have a temporary directory for convenience.  Make it in the build tree
9681 # simply because there is no reason to put it here, and in addition,
9682 # creating and moving files from /tmp can sometimes cause problems.
9683 # Create a temporary directory, and hook for its removal unless debugging.
9684 $debug ||
9685 {
9686   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9687   trap '{ (exit 1); exit 1; }' 1 2 13 15
9688 }
9689
9690 # Create a (secure) tmp directory for tmp files.
9691
9692 {
9693   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9694   test -n "$tmp" && test -d "$tmp"
9695 }  ||
9696 {
9697   tmp=./confstat$$-$RANDOM
9698   (umask 077 && mkdir $tmp)
9699 } ||
9700 {
9701    echo "$me: cannot create a temporary directory in ." >&2
9702    { (exit 1); exit 1; }
9703 }
9704
9705 _ACEOF
9706
9707 cat >>$CONFIG_STATUS <<_ACEOF
9708
9709 #
9710 # CONFIG_FILES section.
9711 #
9712
9713 # No need to generate the scripts if there are no CONFIG_FILES.
9714 # This happens for instance when ./config.status config.h
9715 if test -n "\$CONFIG_FILES"; then
9716   # Protect against being on the right side of a sed subst in config.status.
9717   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9718    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9719 s,@SHELL@,$SHELL,;t t
9720 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9721 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9722 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9723 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9724 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9725 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9726 s,@exec_prefix@,$exec_prefix,;t t
9727 s,@prefix@,$prefix,;t t
9728 s,@program_transform_name@,$program_transform_name,;t t
9729 s,@bindir@,$bindir,;t t
9730 s,@sbindir@,$sbindir,;t t
9731 s,@libexecdir@,$libexecdir,;t t
9732 s,@datadir@,$datadir,;t t
9733 s,@sysconfdir@,$sysconfdir,;t t
9734 s,@sharedstatedir@,$sharedstatedir,;t t
9735 s,@localstatedir@,$localstatedir,;t t
9736 s,@libdir@,$libdir,;t t
9737 s,@includedir@,$includedir,;t t
9738 s,@oldincludedir@,$oldincludedir,;t t
9739 s,@infodir@,$infodir,;t t
9740 s,@mandir@,$mandir,;t t
9741 s,@build_alias@,$build_alias,;t t
9742 s,@host_alias@,$host_alias,;t t
9743 s,@target_alias@,$target_alias,;t t
9744 s,@DEFS@,$DEFS,;t t
9745 s,@ECHO_C@,$ECHO_C,;t t
9746 s,@ECHO_N@,$ECHO_N,;t t
9747 s,@ECHO_T@,$ECHO_T,;t t
9748 s,@LIBS@,$LIBS,;t t
9749 s,@build@,$build,;t t
9750 s,@build_cpu@,$build_cpu,;t t
9751 s,@build_vendor@,$build_vendor,;t t
9752 s,@build_os@,$build_os,;t t
9753 s,@host@,$host,;t t
9754 s,@host_cpu@,$host_cpu,;t t
9755 s,@host_vendor@,$host_vendor,;t t
9756 s,@host_os@,$host_os,;t t
9757 s,@CC@,$CC,;t t
9758 s,@CFLAGS@,$CFLAGS,;t t
9759 s,@LDFLAGS@,$LDFLAGS,;t t
9760 s,@CPPFLAGS@,$CPPFLAGS,;t t
9761 s,@ac_ct_CC@,$ac_ct_CC,;t t
9762 s,@EXEEXT@,$EXEEXT,;t t
9763 s,@OBJEXT@,$OBJEXT,;t t
9764 s,@CPP@,$CPP,;t t
9765 s,@EGREP@,$EGREP,;t t
9766 s,@AWK@,$AWK,;t t
9767 s,@SET_MAKE@,$SET_MAKE,;t t
9768 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9769 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9770 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9771 s,@LN_S@,$LN_S,;t t
9772 s,@RMPROG@,$RMPROG,;t t
9773 s,@SHPROG@,$SHPROG,;t t
9774 s,@LEX@,$LEX,;t t
9775 s,@LEXLIB@,$LEXLIB,;t t
9776 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9777 s,@YACC@,$YACC,;t t
9778 s,@ENGINE_C@,$ENGINE_C,;t t
9779 s,@INSTALL_RULE@,$INSTALL_RULE,;t t
9780 s,@SYMLINK@,$SYMLINK,;t t
9781 s,@IRCDMODE@,$IRCDMODE,;t t
9782 s,@IRCDOWN@,$IRCDOWN,;t t
9783 s,@IRCDGRP@,$IRCDGRP,;t t
9784 s,@DPATH@,$DPATH,;t t
9785 s,@LIBOBJS@,$LIBOBJS,;t t
9786 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9787 CEOF
9788
9789 _ACEOF
9790
9791   cat >>$CONFIG_STATUS <<\_ACEOF
9792   # Split the substitutions into bite-sized pieces for seds with
9793   # small command number limits, like on Digital OSF/1 and HP-UX.
9794   ac_max_sed_lines=48
9795   ac_sed_frag=1 # Number of current file.
9796   ac_beg=1 # First line for current file.
9797   ac_end=$ac_max_sed_lines # Line after last line for current file.
9798   ac_more_lines=:
9799   ac_sed_cmds=
9800   while $ac_more_lines; do
9801     if test $ac_beg -gt 1; then
9802       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9803     else
9804       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9805     fi
9806     if test ! -s $tmp/subs.frag; then
9807       ac_more_lines=false
9808     else
9809       # The purpose of the label and of the branching condition is to
9810       # speed up the sed processing (if there are no `@' at all, there
9811       # is no need to browse any of the substitutions).
9812       # These are the two extra sed commands mentioned above.
9813       (echo ':t
9814   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9815       if test -z "$ac_sed_cmds"; then
9816         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9817       else
9818         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9819       fi
9820       ac_sed_frag=`expr $ac_sed_frag + 1`
9821       ac_beg=$ac_end
9822       ac_end=`expr $ac_end + $ac_max_sed_lines`
9823     fi
9824   done
9825   if test -z "$ac_sed_cmds"; then
9826     ac_sed_cmds=cat
9827   fi
9828 fi # test -n "$CONFIG_FILES"
9829
9830 _ACEOF
9831 cat >>$CONFIG_STATUS <<\_ACEOF
9832 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9833   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9834   case $ac_file in
9835   - | *:- | *:-:* ) # input from stdin
9836         cat >$tmp/stdin
9837         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9838         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9839   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9840         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9841   * )   ac_file_in=$ac_file.in ;;
9842   esac
9843
9844   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9845   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9846 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9847          X"$ac_file" : 'X\(//\)[^/]' \| \
9848          X"$ac_file" : 'X\(//\)$' \| \
9849          X"$ac_file" : 'X\(/\)' \| \
9850          .     : '\(.\)' 2>/dev/null ||
9851 echo X"$ac_file" |
9852     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9853           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9854           /^X\(\/\/\)$/{ s//\1/; q; }
9855           /^X\(\/\).*/{ s//\1/; q; }
9856           s/.*/./; q'`
9857   { if $as_mkdir_p; then
9858     mkdir -p "$ac_dir"
9859   else
9860     as_dir="$ac_dir"
9861     as_dirs=
9862     while test ! -d "$as_dir"; do
9863       as_dirs="$as_dir $as_dirs"
9864       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9865 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9866          X"$as_dir" : 'X\(//\)[^/]' \| \
9867          X"$as_dir" : 'X\(//\)$' \| \
9868          X"$as_dir" : 'X\(/\)' \| \
9869          .     : '\(.\)' 2>/dev/null ||
9870 echo X"$as_dir" |
9871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9873           /^X\(\/\/\)$/{ s//\1/; q; }
9874           /^X\(\/\).*/{ s//\1/; q; }
9875           s/.*/./; q'`
9876     done
9877     test ! -n "$as_dirs" || mkdir $as_dirs
9878   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9879 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9880    { (exit 1); exit 1; }; }; }
9881
9882   ac_builddir=.
9883
9884 if test "$ac_dir" != .; then
9885   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9886   # A "../" for each directory in $ac_dir_suffix.
9887   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9888 else
9889   ac_dir_suffix= ac_top_builddir=
9890 fi
9891
9892 case $srcdir in
9893   .)  # No --srcdir option.  We are building in place.
9894     ac_srcdir=.
9895     if test -z "$ac_top_builddir"; then
9896        ac_top_srcdir=.
9897     else
9898        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9899     fi ;;
9900   [\\/]* | ?:[\\/]* )  # Absolute path.
9901     ac_srcdir=$srcdir$ac_dir_suffix;
9902     ac_top_srcdir=$srcdir ;;
9903   *) # Relative path.
9904     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9905     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9906 esac
9907
9908 # Do not use `cd foo && pwd` to compute absolute paths, because
9909 # the directories may not exist.
9910 case `pwd` in
9911 .) ac_abs_builddir="$ac_dir";;
9912 *)
9913   case "$ac_dir" in
9914   .) ac_abs_builddir=`pwd`;;
9915   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9916   *) ac_abs_builddir=`pwd`/"$ac_dir";;
9917   esac;;
9918 esac
9919 case $ac_abs_builddir in
9920 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9921 *)
9922   case ${ac_top_builddir}. in
9923   .) ac_abs_top_builddir=$ac_abs_builddir;;
9924   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9925   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9926   esac;;
9927 esac
9928 case $ac_abs_builddir in
9929 .) ac_abs_srcdir=$ac_srcdir;;
9930 *)
9931   case $ac_srcdir in
9932   .) ac_abs_srcdir=$ac_abs_builddir;;
9933   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9934   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9935   esac;;
9936 esac
9937 case $ac_abs_builddir in
9938 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9939 *)
9940   case $ac_top_srcdir in
9941   .) ac_abs_top_srcdir=$ac_abs_builddir;;
9942   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9943   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9944   esac;;
9945 esac
9946
9947
9948   case $INSTALL in
9949   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9950   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9951   esac
9952
9953   # Let's still pretend it is `configure' which instantiates (i.e., don't
9954   # use $as_me), people would be surprised to read:
9955   #    /* config.h.  Generated by config.status.  */
9956   if test x"$ac_file" = x-; then
9957     configure_input=
9958   else
9959     configure_input="$ac_file.  "
9960   fi
9961   configure_input=$configure_input"Generated from `echo $ac_file_in |
9962                                      sed 's,.*/,,'` by configure."
9963
9964   # First look for the input files in the build tree, otherwise in the
9965   # src tree.
9966   ac_file_inputs=`IFS=:
9967     for f in $ac_file_in; do
9968       case $f in
9969       -) echo $tmp/stdin ;;
9970       [\\/$]*)
9971          # Absolute (can't be DOS-style, as IFS=:)
9972          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9973 echo "$as_me: error: cannot find input file: $f" >&2;}
9974    { (exit 1); exit 1; }; }
9975          echo "$f";;
9976       *) # Relative
9977          if test -f "$f"; then
9978            # Build tree
9979            echo "$f"
9980          elif test -f "$srcdir/$f"; then
9981            # Source tree
9982            echo "$srcdir/$f"
9983          else
9984            # /dev/null tree
9985            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9986 echo "$as_me: error: cannot find input file: $f" >&2;}
9987    { (exit 1); exit 1; }; }
9988          fi;;
9989       esac
9990     done` || { (exit 1); exit 1; }
9991
9992   if test x"$ac_file" != x-; then
9993     { echo "$as_me:$LINENO: creating $ac_file" >&5
9994 echo "$as_me: creating $ac_file" >&6;}
9995     rm -f "$ac_file"
9996   fi
9997 _ACEOF
9998 cat >>$CONFIG_STATUS <<_ACEOF
9999   sed "$ac_vpsub
10000 $extrasub
10001 _ACEOF
10002 cat >>$CONFIG_STATUS <<\_ACEOF
10003 :t
10004 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10005 s,@configure_input@,$configure_input,;t t
10006 s,@srcdir@,$ac_srcdir,;t t
10007 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10008 s,@top_srcdir@,$ac_top_srcdir,;t t
10009 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10010 s,@builddir@,$ac_builddir,;t t
10011 s,@abs_builddir@,$ac_abs_builddir,;t t
10012 s,@top_builddir@,$ac_top_builddir,;t t
10013 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10014 s,@INSTALL@,$ac_INSTALL,;t t
10015 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10016   rm -f $tmp/stdin
10017   if test x"$ac_file" != x-; then
10018     mv $tmp/out $ac_file
10019   else
10020     cat $tmp/out
10021     rm -f $tmp/out
10022   fi
10023
10024 done
10025 _ACEOF
10026 cat >>$CONFIG_STATUS <<\_ACEOF
10027
10028 #
10029 # CONFIG_HEADER section.
10030 #
10031
10032 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10033 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10034 #
10035 # ac_d sets the value in "#define NAME VALUE" lines.
10036 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
10037 ac_dB='[         ].*$,\1#\2'
10038 ac_dC=' '
10039 ac_dD=',;t'
10040 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10041 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10042 ac_uB='$,\1#\2define\3'
10043 ac_uC=' '
10044 ac_uD=',;t'
10045
10046 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10047   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10048   case $ac_file in
10049   - | *:- | *:-:* ) # input from stdin
10050         cat >$tmp/stdin
10051         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10052         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10053   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10054         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10055   * )   ac_file_in=$ac_file.in ;;
10056   esac
10057
10058   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10059 echo "$as_me: creating $ac_file" >&6;}
10060
10061   # First look for the input files in the build tree, otherwise in the
10062   # src tree.
10063   ac_file_inputs=`IFS=:
10064     for f in $ac_file_in; do
10065       case $f in
10066       -) echo $tmp/stdin ;;
10067       [\\/$]*)
10068          # Absolute (can't be DOS-style, as IFS=:)
10069          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10070 echo "$as_me: error: cannot find input file: $f" >&2;}
10071    { (exit 1); exit 1; }; }
10072          # Do quote $f, to prevent DOS paths from being IFS'd.
10073          echo "$f";;
10074       *) # Relative
10075          if test -f "$f"; then
10076            # Build tree
10077            echo "$f"
10078          elif test -f "$srcdir/$f"; then
10079            # Source tree
10080            echo "$srcdir/$f"
10081          else
10082            # /dev/null tree
10083            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10084 echo "$as_me: error: cannot find input file: $f" >&2;}
10085    { (exit 1); exit 1; }; }
10086          fi;;
10087       esac
10088     done` || { (exit 1); exit 1; }
10089   # Remove the trailing spaces.
10090   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
10091
10092 _ACEOF
10093
10094 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10095 # `conftest.undefs', that substitutes the proper values into
10096 # config.h.in to produce config.h.  The first handles `#define'
10097 # templates, and the second `#undef' templates.
10098 # And first: Protect against being on the right side of a sed subst in
10099 # config.status.  Protect against being in an unquoted here document
10100 # in config.status.
10101 rm -f conftest.defines conftest.undefs
10102 # Using a here document instead of a string reduces the quoting nightmare.
10103 # Putting comments in sed scripts is not portable.
10104 #
10105 # `end' is used to avoid that the second main sed command (meant for
10106 # 0-ary CPP macros) applies to n-ary macro definitions.
10107 # See the Autoconf documentation for `clear'.
10108 cat >confdef2sed.sed <<\_ACEOF
10109 s/[\\&,]/\\&/g
10110 s,[\\$`],\\&,g
10111 t clear
10112 : clear
10113 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10114 t end
10115 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10116 : end
10117 _ACEOF
10118 # If some macros were called several times there might be several times
10119 # the same #defines, which is useless.  Nevertheless, we may not want to
10120 # sort them, since we want the *last* AC-DEFINE to be honored.
10121 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10122 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10123 rm -f confdef2sed.sed
10124
10125 # This sed command replaces #undef with comments.  This is necessary, for
10126 # example, in the case of _POSIX_SOURCE, which is predefined and required
10127 # on some systems where configure will not decide to define it.
10128 cat >>conftest.undefs <<\_ACEOF
10129 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10130 _ACEOF
10131
10132 # Break up conftest.defines because some shells have a limit on the size
10133 # of here documents, and old seds have small limits too (100 cmds).
10134 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10135 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10136 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10137 echo '  :' >>$CONFIG_STATUS
10138 rm -f conftest.tail
10139 while grep . conftest.defines >/dev/null
10140 do
10141   # Write a limited-size here document to $tmp/defines.sed.
10142   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10143   # Speed up: don't consider the non `#define' lines.
10144   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
10145   # Work around the forget-to-reset-the-flag bug.
10146   echo 't clr' >>$CONFIG_STATUS
10147   echo ': clr' >>$CONFIG_STATUS
10148   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10149   echo 'CEOF
10150   sed -f $tmp/defines.sed $tmp/in >$tmp/out
10151   rm -f $tmp/in
10152   mv $tmp/out $tmp/in
10153 ' >>$CONFIG_STATUS
10154   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10155   rm -f conftest.defines
10156   mv conftest.tail conftest.defines
10157 done
10158 rm -f conftest.defines
10159 echo '  fi # grep' >>$CONFIG_STATUS
10160 echo >>$CONFIG_STATUS
10161
10162 # Break up conftest.undefs because some shells have a limit on the size
10163 # of here documents, and old seds have small limits too (100 cmds).
10164 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10165 rm -f conftest.tail
10166 while grep . conftest.undefs >/dev/null
10167 do
10168   # Write a limited-size here document to $tmp/undefs.sed.
10169   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10170   # Speed up: don't consider the non `#undef'
10171   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10172   # Work around the forget-to-reset-the-flag bug.
10173   echo 't clr' >>$CONFIG_STATUS
10174   echo ': clr' >>$CONFIG_STATUS
10175   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10176   echo 'CEOF
10177   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10178   rm -f $tmp/in
10179   mv $tmp/out $tmp/in
10180 ' >>$CONFIG_STATUS
10181   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10182   rm -f conftest.undefs
10183   mv conftest.tail conftest.undefs
10184 done
10185 rm -f conftest.undefs
10186
10187 cat >>$CONFIG_STATUS <<\_ACEOF
10188   # Let's still pretend it is `configure' which instantiates (i.e., don't
10189   # use $as_me), people would be surprised to read:
10190   #    /* config.h.  Generated by config.status.  */
10191   if test x"$ac_file" = x-; then
10192     echo "/* Generated by configure.  */" >$tmp/config.h
10193   else
10194     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10195   fi
10196   cat $tmp/in >>$tmp/config.h
10197   rm -f $tmp/in
10198   if test x"$ac_file" != x-; then
10199     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10200       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10201 echo "$as_me: $ac_file is unchanged" >&6;}
10202     else
10203       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10204 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10205          X"$ac_file" : 'X\(//\)[^/]' \| \
10206          X"$ac_file" : 'X\(//\)$' \| \
10207          X"$ac_file" : 'X\(/\)' \| \
10208          .     : '\(.\)' 2>/dev/null ||
10209 echo X"$ac_file" |
10210     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10211           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10212           /^X\(\/\/\)$/{ s//\1/; q; }
10213           /^X\(\/\).*/{ s//\1/; q; }
10214           s/.*/./; q'`
10215       { if $as_mkdir_p; then
10216     mkdir -p "$ac_dir"
10217   else
10218     as_dir="$ac_dir"
10219     as_dirs=
10220     while test ! -d "$as_dir"; do
10221       as_dirs="$as_dir $as_dirs"
10222       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10223 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10224          X"$as_dir" : 'X\(//\)[^/]' \| \
10225          X"$as_dir" : 'X\(//\)$' \| \
10226          X"$as_dir" : 'X\(/\)' \| \
10227          .     : '\(.\)' 2>/dev/null ||
10228 echo X"$as_dir" |
10229     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10230           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10231           /^X\(\/\/\)$/{ s//\1/; q; }
10232           /^X\(\/\).*/{ s//\1/; q; }
10233           s/.*/./; q'`
10234     done
10235     test ! -n "$as_dirs" || mkdir $as_dirs
10236   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10237 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10238    { (exit 1); exit 1; }; }; }
10239
10240       rm -f $ac_file
10241       mv $tmp/config.h $ac_file
10242     fi
10243   else
10244     cat $tmp/config.h
10245     rm -f $tmp/config.h
10246   fi
10247 done
10248 _ACEOF
10249 cat >>$CONFIG_STATUS <<\_ACEOF
10250
10251 #
10252 # CONFIG_COMMANDS section.
10253 #
10254 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10255   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10256   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10257   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10258 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10259          X"$ac_dest" : 'X\(//\)[^/]' \| \
10260          X"$ac_dest" : 'X\(//\)$' \| \
10261          X"$ac_dest" : 'X\(/\)' \| \
10262          .     : '\(.\)' 2>/dev/null ||
10263 echo X"$ac_dest" |
10264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10265           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10266           /^X\(\/\/\)$/{ s//\1/; q; }
10267           /^X\(\/\).*/{ s//\1/; q; }
10268           s/.*/./; q'`
10269   { if $as_mkdir_p; then
10270     mkdir -p "$ac_dir"
10271   else
10272     as_dir="$ac_dir"
10273     as_dirs=
10274     while test ! -d "$as_dir"; do
10275       as_dirs="$as_dir $as_dirs"
10276       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10277 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10278          X"$as_dir" : 'X\(//\)[^/]' \| \
10279          X"$as_dir" : 'X\(//\)$' \| \
10280          X"$as_dir" : 'X\(/\)' \| \
10281          .     : '\(.\)' 2>/dev/null ||
10282 echo X"$as_dir" |
10283     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10284           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10285           /^X\(\/\/\)$/{ s//\1/; q; }
10286           /^X\(\/\).*/{ s//\1/; q; }
10287           s/.*/./; q'`
10288     done
10289     test ! -n "$as_dirs" || mkdir $as_dirs
10290   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10291 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10292    { (exit 1); exit 1; }; }; }
10293
10294   ac_builddir=.
10295
10296 if test "$ac_dir" != .; then
10297   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10298   # A "../" for each directory in $ac_dir_suffix.
10299   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10300 else
10301   ac_dir_suffix= ac_top_builddir=
10302 fi
10303
10304 case $srcdir in
10305   .)  # No --srcdir option.  We are building in place.
10306     ac_srcdir=.
10307     if test -z "$ac_top_builddir"; then
10308        ac_top_srcdir=.
10309     else
10310        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10311     fi ;;
10312   [\\/]* | ?:[\\/]* )  # Absolute path.
10313     ac_srcdir=$srcdir$ac_dir_suffix;
10314     ac_top_srcdir=$srcdir ;;
10315   *) # Relative path.
10316     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10317     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10318 esac
10319
10320 # Do not use `cd foo && pwd` to compute absolute paths, because
10321 # the directories may not exist.
10322 case `pwd` in
10323 .) ac_abs_builddir="$ac_dir";;
10324 *)
10325   case "$ac_dir" in
10326   .) ac_abs_builddir=`pwd`;;
10327   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10328   *) ac_abs_builddir=`pwd`/"$ac_dir";;
10329   esac;;
10330 esac
10331 case $ac_abs_builddir in
10332 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10333 *)
10334   case ${ac_top_builddir}. in
10335   .) ac_abs_top_builddir=$ac_abs_builddir;;
10336   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10337   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10338   esac;;
10339 esac
10340 case $ac_abs_builddir in
10341 .) ac_abs_srcdir=$ac_srcdir;;
10342 *)
10343   case $ac_srcdir in
10344   .) ac_abs_srcdir=$ac_abs_builddir;;
10345   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10346   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10347   esac;;
10348 esac
10349 case $ac_abs_builddir in
10350 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10351 *)
10352   case $ac_top_srcdir in
10353   .) ac_abs_top_srcdir=$ac_abs_builddir;;
10354   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10355   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10356   esac;;
10357 esac
10358
10359
10360   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10361 echo "$as_me: executing $ac_dest commands" >&6;}
10362   case $ac_dest in
10363     default ) echo timestamp > stamp-h ;;
10364   esac
10365 done
10366 _ACEOF
10367
10368 cat >>$CONFIG_STATUS <<\_ACEOF
10369
10370 { (exit 0); exit 0; }
10371 _ACEOF
10372 chmod +x $CONFIG_STATUS
10373 ac_clean_files=$ac_clean_files_save
10374
10375
10376 # configure is writing to config.log, and then calls config.status.
10377 # config.status does its own redirection, appending to config.log.
10378 # Unfortunately, on DOS this fails, as config.log is still kept open
10379 # by configure, so config.status won't be able to write to it; its
10380 # output is simply discarded.  So we exec the FD to /dev/null,
10381 # effectively closing config.log, so it can be properly (re)opened and
10382 # appended to by config.status.  When coming back to configure, we
10383 # need to make the FD available again.
10384 if test "$no_create" != yes; then
10385   ac_cs_success=:
10386   ac_config_status_args=
10387   test "$silent" = yes &&
10388     ac_config_status_args="$ac_config_status_args --quiet"
10389   exec 5>/dev/null
10390   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10391   exec 5>>config.log
10392   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10393   # would make configure fail if this is the last instruction.
10394   $ac_cs_success || { (exit 1); exit 1; }
10395 fi
10396
10397
10398           ac_config_commands="$ac_config_commands default-1"
10399