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