fixes init script for non ipv6 enabled systems #472755
[packages/xinetd.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="xinetd/main.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 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 target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB CPP EGREP LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778   # Omit some internal or obsolete options to make the list less imposing.
779   # This message is too long to be a string in the A/UX 3.1 sh.
780   cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791   -h, --help              display this help and exit
792       --help=short        display options specific to this package
793       --help=recursive    display the short help of all the included packages
794   -V, --version           display version information and exit
795   -q, --quiet, --silent   do not print \`checking...' messages
796       --cache-file=FILE   cache test results in FILE [disabled]
797   -C, --config-cache      alias for \`--cache-file=config.cache'
798   -n, --no-create         do not create output files
799       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803   cat <<_ACEOF
804 Installation directories:
805   --prefix=PREFIX         install architecture-independent files in PREFIX
806                           [$ac_default_prefix]
807   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                           [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818   --bindir=DIR           user executables [EPREFIX/bin]
819   --sbindir=DIR          system admin executables [EPREFIX/sbin]
820   --libexecdir=DIR       program executables [EPREFIX/libexec]
821   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825   --libdir=DIR           object code libraries [EPREFIX/lib]
826   --includedir=DIR       C header files [PREFIX/include]
827   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828   --infodir=DIR          info documentation [PREFIX/info]
829   --mandir=DIR           man documentation [PREFIX/man]
830 _ACEOF
831
832   cat <<\_ACEOF
833
834 System types:
835   --build=BUILD     configure for building on BUILD [guessed]
836   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
837   --target=TARGET   configure for building compilers for TARGET [HOST]
838 _ACEOF
839 fi
840
841 if test -n "$ac_init_help"; then
842
843   cat <<\_ACEOF
844
845 Optional Packages:
846   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
847   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
848   --with-howl=PATH        Compile in howl support.
849                           PATH is the prefix where howl is installed,
850                           and is not optional.
851   --with-loadavg=PATH   Compile in loadavg support.
852
853   --with-inet6    Compile in ipv6 support. (obsolete)
854   --with-libwrap=PATH   Compile in libwrap (tcp_wrappers) support.
855
856 Some influential environment variables:
857   CC          C compiler command
858   CFLAGS      C compiler flags
859   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
860               nonstandard directory <lib dir>
861   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
862               headers in a nonstandard directory <include dir>
863   CPP         C preprocessor
864
865 Use these variables to override the choices made by `configure' or to help
866 it to find libraries and programs with nonstandard names/locations.
867
868 _ACEOF
869 fi
870
871 if test "$ac_init_help" = "recursive"; then
872   # If there are subdirs, report their specific --help.
873   ac_popdir=`pwd`
874   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
875     test -d $ac_dir || continue
876     ac_builddir=.
877
878 if test "$ac_dir" != .; then
879   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
880   # A "../" for each directory in $ac_dir_suffix.
881   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
882 else
883   ac_dir_suffix= ac_top_builddir=
884 fi
885
886 case $srcdir in
887   .)  # No --srcdir option.  We are building in place.
888     ac_srcdir=.
889     if test -z "$ac_top_builddir"; then
890        ac_top_srcdir=.
891     else
892        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
893     fi ;;
894   [\\/]* | ?:[\\/]* )  # Absolute path.
895     ac_srcdir=$srcdir$ac_dir_suffix;
896     ac_top_srcdir=$srcdir ;;
897   *) # Relative path.
898     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
899     ac_top_srcdir=$ac_top_builddir$srcdir ;;
900 esac
901
902 # Do not use `cd foo && pwd` to compute absolute paths, because
903 # the directories may not exist.
904 case `pwd` in
905 .) ac_abs_builddir="$ac_dir";;
906 *)
907   case "$ac_dir" in
908   .) ac_abs_builddir=`pwd`;;
909   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
910   *) ac_abs_builddir=`pwd`/"$ac_dir";;
911   esac;;
912 esac
913 case $ac_abs_builddir in
914 .) ac_abs_top_builddir=${ac_top_builddir}.;;
915 *)
916   case ${ac_top_builddir}. in
917   .) ac_abs_top_builddir=$ac_abs_builddir;;
918   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
919   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
920   esac;;
921 esac
922 case $ac_abs_builddir in
923 .) ac_abs_srcdir=$ac_srcdir;;
924 *)
925   case $ac_srcdir in
926   .) ac_abs_srcdir=$ac_abs_builddir;;
927   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
928   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
929   esac;;
930 esac
931 case $ac_abs_builddir in
932 .) ac_abs_top_srcdir=$ac_top_srcdir;;
933 *)
934   case $ac_top_srcdir in
935   .) ac_abs_top_srcdir=$ac_abs_builddir;;
936   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
937   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
938   esac;;
939 esac
940
941     cd $ac_dir
942     # Check for guested configure; otherwise get Cygnus style configure.
943     if test -f $ac_srcdir/configure.gnu; then
944       echo
945       $SHELL $ac_srcdir/configure.gnu  --help=recursive
946     elif test -f $ac_srcdir/configure; then
947       echo
948       $SHELL $ac_srcdir/configure  --help=recursive
949     elif test -f $ac_srcdir/configure.ac ||
950            test -f $ac_srcdir/configure.in; then
951       echo
952       $ac_configure --help
953     else
954       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
955     fi
956     cd $ac_popdir
957   done
958 fi
959
960 test -n "$ac_init_help" && exit 0
961 if $ac_init_version; then
962   cat <<\_ACEOF
963
964 Copyright (C) 2003 Free Software Foundation, Inc.
965 This configure script is free software; the Free Software Foundation
966 gives unlimited permission to copy, distribute and modify it.
967 _ACEOF
968   exit 0
969 fi
970 exec 5>config.log
971 cat >&5 <<_ACEOF
972 This file contains any messages produced by compilers while
973 running configure, to aid debugging if configure makes a mistake.
974
975 It was created by $as_me, which was
976 generated by GNU Autoconf 2.59.  Invocation command line was
977
978   $ $0 $@
979
980 _ACEOF
981 {
982 cat <<_ASUNAME
983 ## --------- ##
984 ## Platform. ##
985 ## --------- ##
986
987 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
988 uname -m = `(uname -m) 2>/dev/null || echo unknown`
989 uname -r = `(uname -r) 2>/dev/null || echo unknown`
990 uname -s = `(uname -s) 2>/dev/null || echo unknown`
991 uname -v = `(uname -v) 2>/dev/null || echo unknown`
992
993 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
994 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
995
996 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
997 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
998 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
999 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1000 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1001 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1002 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1003
1004 _ASUNAME
1005
1006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1007 for as_dir in $PATH
1008 do
1009   IFS=$as_save_IFS
1010   test -z "$as_dir" && as_dir=.
1011   echo "PATH: $as_dir"
1012 done
1013
1014 } >&5
1015
1016 cat >&5 <<_ACEOF
1017
1018
1019 ## ----------- ##
1020 ## Core tests. ##
1021 ## ----------- ##
1022
1023 _ACEOF
1024
1025
1026 # Keep a trace of the command line.
1027 # Strip out --no-create and --no-recursion so they do not pile up.
1028 # Strip out --silent because we don't want to record it for future runs.
1029 # Also quote any args containing shell meta-characters.
1030 # Make two passes to allow for proper duplicate-argument suppression.
1031 ac_configure_args=
1032 ac_configure_args0=
1033 ac_configure_args1=
1034 ac_sep=
1035 ac_must_keep_next=false
1036 for ac_pass in 1 2
1037 do
1038   for ac_arg
1039   do
1040     case $ac_arg in
1041     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1042     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043     | -silent | --silent | --silen | --sile | --sil)
1044       continue ;;
1045     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1046       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1047     esac
1048     case $ac_pass in
1049     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1050     2)
1051       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1052       if test $ac_must_keep_next = true; then
1053         ac_must_keep_next=false # Got value, back to normal.
1054       else
1055         case $ac_arg in
1056           *=* | --config-cache | -C | -disable-* | --disable-* \
1057           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1058           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1059           | -with-* | --with-* | -without-* | --without-* | --x)
1060             case "$ac_configure_args0 " in
1061               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1062             esac
1063             ;;
1064           -* ) ac_must_keep_next=true ;;
1065         esac
1066       fi
1067       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1068       # Get rid of the leading space.
1069       ac_sep=" "
1070       ;;
1071     esac
1072   done
1073 done
1074 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1075 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1076
1077 # When interrupted or exit'd, cleanup temporary files, and complete
1078 # config.log.  We remove comments because anyway the quotes in there
1079 # would cause problems or look ugly.
1080 # WARNING: Be sure not to use single quotes in there, as some shells,
1081 # such as our DU 5.0 friend, will then `close' the trap.
1082 trap 'exit_status=$?
1083   # Save into config.log some information that might help in debugging.
1084   {
1085     echo
1086
1087     cat <<\_ASBOX
1088 ## ---------------- ##
1089 ## Cache variables. ##
1090 ## ---------------- ##
1091 _ASBOX
1092     echo
1093     # The following way of writing the cache mishandles newlines in values,
1094 {
1095   (set) 2>&1 |
1096     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1097     *ac_space=\ *)
1098       sed -n \
1099         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1100           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1101       ;;
1102     *)
1103       sed -n \
1104         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1105       ;;
1106     esac;
1107 }
1108     echo
1109
1110     cat <<\_ASBOX
1111 ## ----------------- ##
1112 ## Output variables. ##
1113 ## ----------------- ##
1114 _ASBOX
1115     echo
1116     for ac_var in $ac_subst_vars
1117     do
1118       eval ac_val=$`echo $ac_var`
1119       echo "$ac_var='"'"'$ac_val'"'"'"
1120     done | sort
1121     echo
1122
1123     if test -n "$ac_subst_files"; then
1124       cat <<\_ASBOX
1125 ## ------------- ##
1126 ## Output files. ##
1127 ## ------------- ##
1128 _ASBOX
1129       echo
1130       for ac_var in $ac_subst_files
1131       do
1132         eval ac_val=$`echo $ac_var`
1133         echo "$ac_var='"'"'$ac_val'"'"'"
1134       done | sort
1135       echo
1136     fi
1137
1138     if test -s confdefs.h; then
1139       cat <<\_ASBOX
1140 ## ----------- ##
1141 ## confdefs.h. ##
1142 ## ----------- ##
1143 _ASBOX
1144       echo
1145       sed "/^$/d" confdefs.h | sort
1146       echo
1147     fi
1148     test "$ac_signal" != 0 &&
1149       echo "$as_me: caught signal $ac_signal"
1150     echo "$as_me: exit $exit_status"
1151   } >&5
1152   rm -f core *.core &&
1153   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1154     exit $exit_status
1155      ' 0
1156 for ac_signal in 1 2 13 15; do
1157   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1158 done
1159 ac_signal=0
1160
1161 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1162 rm -rf conftest* confdefs.h
1163 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1164 echo >confdefs.h
1165
1166 # Predefined preprocessor variables.
1167
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_NAME "$PACKAGE_NAME"
1170 _ACEOF
1171
1172
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1175 _ACEOF
1176
1177
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1180 _ACEOF
1181
1182
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_STRING "$PACKAGE_STRING"
1185 _ACEOF
1186
1187
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1190 _ACEOF
1191
1192
1193 # Let the site file select an alternate cache file if it wants to.
1194 # Prefer explicitly selected file to automatically selected ones.
1195 if test -z "$CONFIG_SITE"; then
1196   if test "x$prefix" != xNONE; then
1197     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1198   else
1199     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1200   fi
1201 fi
1202 for ac_site_file in $CONFIG_SITE; do
1203   if test -r "$ac_site_file"; then
1204     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1205 echo "$as_me: loading site script $ac_site_file" >&6;}
1206     sed 's/^/| /' "$ac_site_file" >&5
1207     . "$ac_site_file"
1208   fi
1209 done
1210
1211 if test -r "$cache_file"; then
1212   # Some versions of bash will fail to source /dev/null (special
1213   # files actually), so we avoid doing that.
1214   if test -f "$cache_file"; then
1215     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1216 echo "$as_me: loading cache $cache_file" >&6;}
1217     case $cache_file in
1218       [\\/]* | ?:[\\/]* ) . $cache_file;;
1219       *)                      . ./$cache_file;;
1220     esac
1221   fi
1222 else
1223   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1224 echo "$as_me: creating cache $cache_file" >&6;}
1225   >$cache_file
1226 fi
1227
1228 # Check that the precious variables saved in the cache have kept the same
1229 # value.
1230 ac_cache_corrupted=false
1231 for ac_var in `(set) 2>&1 |
1232                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1233   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1234   eval ac_new_set=\$ac_env_${ac_var}_set
1235   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1236   eval ac_new_val="\$ac_env_${ac_var}_value"
1237   case $ac_old_set,$ac_new_set in
1238     set,)
1239       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1240 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1241       ac_cache_corrupted=: ;;
1242     ,set)
1243       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1244 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1245       ac_cache_corrupted=: ;;
1246     ,);;
1247     *)
1248       if test "x$ac_old_val" != "x$ac_new_val"; then
1249         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1250 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1251         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1252 echo "$as_me:   former value:  $ac_old_val" >&2;}
1253         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1254 echo "$as_me:   current value: $ac_new_val" >&2;}
1255         ac_cache_corrupted=:
1256       fi;;
1257   esac
1258   # Pass precious variables to config.status.
1259   if test "$ac_new_set" = set; then
1260     case $ac_new_val in
1261     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1262       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1263     *) ac_arg=$ac_var=$ac_new_val ;;
1264     esac
1265     case " $ac_configure_args " in
1266       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1267       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1268     esac
1269   fi
1270 done
1271 if $ac_cache_corrupted; then
1272   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1273 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1274   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1275 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1276    { (exit 1); exit 1; }; }
1277 fi
1278
1279 ac_ext=c
1280 ac_cpp='$CPP $CPPFLAGS'
1281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304 ac_aux_dir=
1305 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1306   if test -f $ac_dir/install-sh; then
1307     ac_aux_dir=$ac_dir
1308     ac_install_sh="$ac_aux_dir/install-sh -c"
1309     break
1310   elif test -f $ac_dir/install.sh; then
1311     ac_aux_dir=$ac_dir
1312     ac_install_sh="$ac_aux_dir/install.sh -c"
1313     break
1314   elif test -f $ac_dir/shtool; then
1315     ac_aux_dir=$ac_dir
1316     ac_install_sh="$ac_aux_dir/shtool install -c"
1317     break
1318   fi
1319 done
1320 if test -z "$ac_aux_dir"; then
1321   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1322 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1323    { (exit 1); exit 1; }; }
1324 fi
1325 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1326 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1327 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1328
1329 # Make sure we can run config.sub.
1330 $ac_config_sub sun4 >/dev/null 2>&1 ||
1331   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1332 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1333    { (exit 1); exit 1; }; }
1334
1335 echo "$as_me:$LINENO: checking build system type" >&5
1336 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1337 if test "${ac_cv_build+set}" = set; then
1338   echo $ECHO_N "(cached) $ECHO_C" >&6
1339 else
1340   ac_cv_build_alias=$build_alias
1341 test -z "$ac_cv_build_alias" &&
1342   ac_cv_build_alias=`$ac_config_guess`
1343 test -z "$ac_cv_build_alias" &&
1344   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1345 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1346    { (exit 1); exit 1; }; }
1347 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1348   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1349 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1350    { (exit 1); exit 1; }; }
1351
1352 fi
1353 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1354 echo "${ECHO_T}$ac_cv_build" >&6
1355 build=$ac_cv_build
1356 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1357 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1358 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1359
1360
1361 echo "$as_me:$LINENO: checking host system type" >&5
1362 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1363 if test "${ac_cv_host+set}" = set; then
1364   echo $ECHO_N "(cached) $ECHO_C" >&6
1365 else
1366   ac_cv_host_alias=$host_alias
1367 test -z "$ac_cv_host_alias" &&
1368   ac_cv_host_alias=$ac_cv_build_alias
1369 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1370   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1371 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1372    { (exit 1); exit 1; }; }
1373
1374 fi
1375 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1376 echo "${ECHO_T}$ac_cv_host" >&6
1377 host=$ac_cv_host
1378 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1379 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1380 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1381
1382
1383 echo "$as_me:$LINENO: checking target system type" >&5
1384 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1385 if test "${ac_cv_target+set}" = set; then
1386   echo $ECHO_N "(cached) $ECHO_C" >&6
1387 else
1388   ac_cv_target_alias=$target_alias
1389 test "x$ac_cv_target_alias" = "x" &&
1390   ac_cv_target_alias=$ac_cv_host_alias
1391 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1392   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1393 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1394    { (exit 1); exit 1; }; }
1395
1396 fi
1397 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1398 echo "${ECHO_T}$ac_cv_target" >&6
1399 target=$ac_cv_target
1400 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1401 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1402 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1403
1404
1405 # The aliases save the names the user supplied, while $host etc.
1406 # will get canonicalized.
1407 test -n "$target_alias" &&
1408   test "$program_prefix$program_suffix$program_transform_name" = \
1409     NONENONEs,x,x, &&
1410   program_prefix=${target_alias}-
1411
1412 ac_ext=c
1413 ac_cpp='$CPP $CPPFLAGS'
1414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1417 if test -n "$ac_tool_prefix"; then
1418   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1419 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1420 echo "$as_me:$LINENO: checking for $ac_word" >&5
1421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1422 if test "${ac_cv_prog_CC+set}" = set; then
1423   echo $ECHO_N "(cached) $ECHO_C" >&6
1424 else
1425   if test -n "$CC"; then
1426   ac_cv_prog_CC="$CC" # Let the user override the test.
1427 else
1428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1429 for as_dir in $PATH
1430 do
1431   IFS=$as_save_IFS
1432   test -z "$as_dir" && as_dir=.
1433   for ac_exec_ext in '' $ac_executable_extensions; do
1434   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1435     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1437     break 2
1438   fi
1439 done
1440 done
1441
1442 fi
1443 fi
1444 CC=$ac_cv_prog_CC
1445 if test -n "$CC"; then
1446   echo "$as_me:$LINENO: result: $CC" >&5
1447 echo "${ECHO_T}$CC" >&6
1448 else
1449   echo "$as_me:$LINENO: result: no" >&5
1450 echo "${ECHO_T}no" >&6
1451 fi
1452
1453 fi
1454 if test -z "$ac_cv_prog_CC"; then
1455   ac_ct_CC=$CC
1456   # Extract the first word of "gcc", so it can be a program name with args.
1457 set dummy gcc; ac_word=$2
1458 echo "$as_me:$LINENO: checking for $ac_word" >&5
1459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1460 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1461   echo $ECHO_N "(cached) $ECHO_C" >&6
1462 else
1463   if test -n "$ac_ct_CC"; then
1464   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1465 else
1466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1467 for as_dir in $PATH
1468 do
1469   IFS=$as_save_IFS
1470   test -z "$as_dir" && as_dir=.
1471   for ac_exec_ext in '' $ac_executable_extensions; do
1472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1473     ac_cv_prog_ac_ct_CC="gcc"
1474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1475     break 2
1476   fi
1477 done
1478 done
1479
1480 fi
1481 fi
1482 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1483 if test -n "$ac_ct_CC"; then
1484   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1485 echo "${ECHO_T}$ac_ct_CC" >&6
1486 else
1487   echo "$as_me:$LINENO: result: no" >&5
1488 echo "${ECHO_T}no" >&6
1489 fi
1490
1491   CC=$ac_ct_CC
1492 else
1493   CC="$ac_cv_prog_CC"
1494 fi
1495
1496 if test -z "$CC"; then
1497   if test -n "$ac_tool_prefix"; then
1498   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1499 set dummy ${ac_tool_prefix}cc; ac_word=$2
1500 echo "$as_me:$LINENO: checking for $ac_word" >&5
1501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1502 if test "${ac_cv_prog_CC+set}" = set; then
1503   echo $ECHO_N "(cached) $ECHO_C" >&6
1504 else
1505   if test -n "$CC"; then
1506   ac_cv_prog_CC="$CC" # Let the user override the test.
1507 else
1508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1509 for as_dir in $PATH
1510 do
1511   IFS=$as_save_IFS
1512   test -z "$as_dir" && as_dir=.
1513   for ac_exec_ext in '' $ac_executable_extensions; do
1514   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1515     ac_cv_prog_CC="${ac_tool_prefix}cc"
1516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1517     break 2
1518   fi
1519 done
1520 done
1521
1522 fi
1523 fi
1524 CC=$ac_cv_prog_CC
1525 if test -n "$CC"; then
1526   echo "$as_me:$LINENO: result: $CC" >&5
1527 echo "${ECHO_T}$CC" >&6
1528 else
1529   echo "$as_me:$LINENO: result: no" >&5
1530 echo "${ECHO_T}no" >&6
1531 fi
1532
1533 fi
1534 if test -z "$ac_cv_prog_CC"; then
1535   ac_ct_CC=$CC
1536   # Extract the first word of "cc", so it can be a program name with args.
1537 set dummy cc; ac_word=$2
1538 echo "$as_me:$LINENO: checking for $ac_word" >&5
1539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1540 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1541   echo $ECHO_N "(cached) $ECHO_C" >&6
1542 else
1543   if test -n "$ac_ct_CC"; then
1544   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1545 else
1546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547 for as_dir in $PATH
1548 do
1549   IFS=$as_save_IFS
1550   test -z "$as_dir" && as_dir=.
1551   for ac_exec_ext in '' $ac_executable_extensions; do
1552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1553     ac_cv_prog_ac_ct_CC="cc"
1554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1555     break 2
1556   fi
1557 done
1558 done
1559
1560 fi
1561 fi
1562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1563 if test -n "$ac_ct_CC"; then
1564   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1565 echo "${ECHO_T}$ac_ct_CC" >&6
1566 else
1567   echo "$as_me:$LINENO: result: no" >&5
1568 echo "${ECHO_T}no" >&6
1569 fi
1570
1571   CC=$ac_ct_CC
1572 else
1573   CC="$ac_cv_prog_CC"
1574 fi
1575
1576 fi
1577 if test -z "$CC"; then
1578   # Extract the first word of "cc", so it can be a program name with args.
1579 set dummy cc; ac_word=$2
1580 echo "$as_me:$LINENO: checking for $ac_word" >&5
1581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1582 if test "${ac_cv_prog_CC+set}" = set; then
1583   echo $ECHO_N "(cached) $ECHO_C" >&6
1584 else
1585   if test -n "$CC"; then
1586   ac_cv_prog_CC="$CC" # Let the user override the test.
1587 else
1588   ac_prog_rejected=no
1589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590 for as_dir in $PATH
1591 do
1592   IFS=$as_save_IFS
1593   test -z "$as_dir" && as_dir=.
1594   for ac_exec_ext in '' $ac_executable_extensions; do
1595   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1596     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1597        ac_prog_rejected=yes
1598        continue
1599      fi
1600     ac_cv_prog_CC="cc"
1601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1602     break 2
1603   fi
1604 done
1605 done
1606
1607 if test $ac_prog_rejected = yes; then
1608   # We found a bogon in the path, so make sure we never use it.
1609   set dummy $ac_cv_prog_CC
1610   shift
1611   if test $# != 0; then
1612     # We chose a different compiler from the bogus one.
1613     # However, it has the same basename, so the bogon will be chosen
1614     # first if we set CC to just the basename; use the full file name.
1615     shift
1616     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1617   fi
1618 fi
1619 fi
1620 fi
1621 CC=$ac_cv_prog_CC
1622 if test -n "$CC"; then
1623   echo "$as_me:$LINENO: result: $CC" >&5
1624 echo "${ECHO_T}$CC" >&6
1625 else
1626   echo "$as_me:$LINENO: result: no" >&5
1627 echo "${ECHO_T}no" >&6
1628 fi
1629
1630 fi
1631 if test -z "$CC"; then
1632   if test -n "$ac_tool_prefix"; then
1633   for ac_prog in cl
1634   do
1635     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1636 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_CC+set}" = set; then
1640   echo $ECHO_N "(cached) $ECHO_C" >&6
1641 else
1642   if test -n "$CC"; then
1643   ac_cv_prog_CC="$CC" # Let the user override the test.
1644 else
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1647 do
1648   IFS=$as_save_IFS
1649   test -z "$as_dir" && as_dir=.
1650   for ac_exec_ext in '' $ac_executable_extensions; do
1651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654     break 2
1655   fi
1656 done
1657 done
1658
1659 fi
1660 fi
1661 CC=$ac_cv_prog_CC
1662 if test -n "$CC"; then
1663   echo "$as_me:$LINENO: result: $CC" >&5
1664 echo "${ECHO_T}$CC" >&6
1665 else
1666   echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1668 fi
1669
1670     test -n "$CC" && break
1671   done
1672 fi
1673 if test -z "$CC"; then
1674   ac_ct_CC=$CC
1675   for ac_prog in cl
1676 do
1677   # Extract the first word of "$ac_prog", so it can be a program name with args.
1678 set dummy $ac_prog; ac_word=$2
1679 echo "$as_me:$LINENO: checking for $ac_word" >&5
1680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1682   echo $ECHO_N "(cached) $ECHO_C" >&6
1683 else
1684   if test -n "$ac_ct_CC"; then
1685   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1686 else
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 for as_dir in $PATH
1689 do
1690   IFS=$as_save_IFS
1691   test -z "$as_dir" && as_dir=.
1692   for ac_exec_ext in '' $ac_executable_extensions; do
1693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694     ac_cv_prog_ac_ct_CC="$ac_prog"
1695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1696     break 2
1697   fi
1698 done
1699 done
1700
1701 fi
1702 fi
1703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1704 if test -n "$ac_ct_CC"; then
1705   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1706 echo "${ECHO_T}$ac_ct_CC" >&6
1707 else
1708   echo "$as_me:$LINENO: result: no" >&5
1709 echo "${ECHO_T}no" >&6
1710 fi
1711
1712   test -n "$ac_ct_CC" && break
1713 done
1714
1715   CC=$ac_ct_CC
1716 fi
1717
1718 fi
1719
1720
1721 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1722 See \`config.log' for more details." >&5
1723 echo "$as_me: error: no acceptable C compiler found in \$PATH
1724 See \`config.log' for more details." >&2;}
1725    { (exit 1); exit 1; }; }
1726
1727 # Provide some information about the compiler.
1728 echo "$as_me:$LINENO:" \
1729      "checking for C compiler version" >&5
1730 ac_compiler=`set X $ac_compile; echo $2`
1731 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1732   (eval $ac_compiler --version </dev/null >&5) 2>&5
1733   ac_status=$?
1734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1735   (exit $ac_status); }
1736 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1737   (eval $ac_compiler -v </dev/null >&5) 2>&5
1738   ac_status=$?
1739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1740   (exit $ac_status); }
1741 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1742   (eval $ac_compiler -V </dev/null >&5) 2>&5
1743   ac_status=$?
1744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1745   (exit $ac_status); }
1746
1747 cat >conftest.$ac_ext <<_ACEOF
1748 /* confdefs.h.  */
1749 _ACEOF
1750 cat confdefs.h >>conftest.$ac_ext
1751 cat >>conftest.$ac_ext <<_ACEOF
1752 /* end confdefs.h.  */
1753
1754 int
1755 main ()
1756 {
1757
1758   ;
1759   return 0;
1760 }
1761 _ACEOF
1762 ac_clean_files_save=$ac_clean_files
1763 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1764 # Try to create an executable without -o first, disregard a.out.
1765 # It will help us diagnose broken compilers, and finding out an intuition
1766 # of exeext.
1767 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1768 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1769 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1770 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1771   (eval $ac_link_default) 2>&5
1772   ac_status=$?
1773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1774   (exit $ac_status); }; then
1775   # Find the output, starting from the most likely.  This scheme is
1776 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1777 # resort.
1778
1779 # Be careful to initialize this variable, since it used to be cached.
1780 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1781 ac_cv_exeext=
1782 # b.out is created by i960 compilers.
1783 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1784 do
1785   test -f "$ac_file" || continue
1786   case $ac_file in
1787     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1788         ;;
1789     conftest.$ac_ext )
1790         # This is the source file.
1791         ;;
1792     [ab].out )
1793         # We found the default executable, but exeext='' is most
1794         # certainly right.
1795         break;;
1796     *.* )
1797         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1798         # FIXME: I believe we export ac_cv_exeext for Libtool,
1799         # but it would be cool to find out if it's true.  Does anybody
1800         # maintain Libtool? --akim.
1801         export ac_cv_exeext
1802         break;;
1803     * )
1804         break;;
1805   esac
1806 done
1807 else
1808   echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1810
1811 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1812 See \`config.log' for more details." >&5
1813 echo "$as_me: error: C compiler cannot create executables
1814 See \`config.log' for more details." >&2;}
1815    { (exit 77); exit 77; }; }
1816 fi
1817
1818 ac_exeext=$ac_cv_exeext
1819 echo "$as_me:$LINENO: result: $ac_file" >&5
1820 echo "${ECHO_T}$ac_file" >&6
1821
1822 # Check the compiler produces executables we can run.  If not, either
1823 # the compiler is broken, or we cross compile.
1824 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1825 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1826 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1827 # If not cross compiling, check that we can run a simple program.
1828 if test "$cross_compiling" != yes; then
1829   if { ac_try='./$ac_file'
1830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1831   (eval $ac_try) 2>&5
1832   ac_status=$?
1833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1834   (exit $ac_status); }; }; then
1835     cross_compiling=no
1836   else
1837     if test "$cross_compiling" = maybe; then
1838         cross_compiling=yes
1839     else
1840         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1841 If you meant to cross compile, use \`--host'.
1842 See \`config.log' for more details." >&5
1843 echo "$as_me: error: cannot run C compiled programs.
1844 If you meant to cross compile, use \`--host'.
1845 See \`config.log' for more details." >&2;}
1846    { (exit 1); exit 1; }; }
1847     fi
1848   fi
1849 fi
1850 echo "$as_me:$LINENO: result: yes" >&5
1851 echo "${ECHO_T}yes" >&6
1852
1853 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1854 ac_clean_files=$ac_clean_files_save
1855 # Check the compiler produces executables we can run.  If not, either
1856 # the compiler is broken, or we cross compile.
1857 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1858 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1859 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1860 echo "${ECHO_T}$cross_compiling" >&6
1861
1862 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1863 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1865   (eval $ac_link) 2>&5
1866   ac_status=$?
1867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1868   (exit $ac_status); }; then
1869   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1870 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1871 # work properly (i.e., refer to `conftest.exe'), while it won't with
1872 # `rm'.
1873 for ac_file in conftest.exe conftest conftest.*; do
1874   test -f "$ac_file" || continue
1875   case $ac_file in
1876     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1877     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1878           export ac_cv_exeext
1879           break;;
1880     * ) break;;
1881   esac
1882 done
1883 else
1884   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1885 See \`config.log' for more details." >&5
1886 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1887 See \`config.log' for more details." >&2;}
1888    { (exit 1); exit 1; }; }
1889 fi
1890
1891 rm -f conftest$ac_cv_exeext
1892 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1893 echo "${ECHO_T}$ac_cv_exeext" >&6
1894
1895 rm -f conftest.$ac_ext
1896 EXEEXT=$ac_cv_exeext
1897 ac_exeext=$EXEEXT
1898 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1899 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1900 if test "${ac_cv_objext+set}" = set; then
1901   echo $ECHO_N "(cached) $ECHO_C" >&6
1902 else
1903   cat >conftest.$ac_ext <<_ACEOF
1904 /* confdefs.h.  */
1905 _ACEOF
1906 cat confdefs.h >>conftest.$ac_ext
1907 cat >>conftest.$ac_ext <<_ACEOF
1908 /* end confdefs.h.  */
1909
1910 int
1911 main ()
1912 {
1913
1914   ;
1915   return 0;
1916 }
1917 _ACEOF
1918 rm -f conftest.o conftest.obj
1919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1920   (eval $ac_compile) 2>&5
1921   ac_status=$?
1922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923   (exit $ac_status); }; then
1924   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1925   case $ac_file in
1926     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1927     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1928        break;;
1929   esac
1930 done
1931 else
1932   echo "$as_me: failed program was:" >&5
1933 sed 's/^/| /' conftest.$ac_ext >&5
1934
1935 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1936 See \`config.log' for more details." >&5
1937 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1938 See \`config.log' for more details." >&2;}
1939    { (exit 1); exit 1; }; }
1940 fi
1941
1942 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1943 fi
1944 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1945 echo "${ECHO_T}$ac_cv_objext" >&6
1946 OBJEXT=$ac_cv_objext
1947 ac_objext=$OBJEXT
1948 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1949 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1950 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1951   echo $ECHO_N "(cached) $ECHO_C" >&6
1952 else
1953   cat >conftest.$ac_ext <<_ACEOF
1954 /* confdefs.h.  */
1955 _ACEOF
1956 cat confdefs.h >>conftest.$ac_ext
1957 cat >>conftest.$ac_ext <<_ACEOF
1958 /* end confdefs.h.  */
1959
1960 int
1961 main ()
1962 {
1963 #ifndef __GNUC__
1964        choke me
1965 #endif
1966
1967   ;
1968   return 0;
1969 }
1970 _ACEOF
1971 rm -f conftest.$ac_objext
1972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1973   (eval $ac_compile) 2>conftest.er1
1974   ac_status=$?
1975   grep -v '^ *+' conftest.er1 >conftest.err
1976   rm -f conftest.er1
1977   cat conftest.err >&5
1978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979   (exit $ac_status); } &&
1980          { ac_try='test -z "$ac_c_werror_flag"
1981                          || test ! -s conftest.err'
1982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1983   (eval $ac_try) 2>&5
1984   ac_status=$?
1985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986   (exit $ac_status); }; } &&
1987          { ac_try='test -s conftest.$ac_objext'
1988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1989   (eval $ac_try) 2>&5
1990   ac_status=$?
1991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992   (exit $ac_status); }; }; then
1993   ac_compiler_gnu=yes
1994 else
1995   echo "$as_me: failed program was:" >&5
1996 sed 's/^/| /' conftest.$ac_ext >&5
1997
1998 ac_compiler_gnu=no
1999 fi
2000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2001 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2002
2003 fi
2004 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2005 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2006 GCC=`test $ac_compiler_gnu = yes && echo yes`
2007 ac_test_CFLAGS=${CFLAGS+set}
2008 ac_save_CFLAGS=$CFLAGS
2009 CFLAGS="-g"
2010 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2011 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2012 if test "${ac_cv_prog_cc_g+set}" = set; then
2013   echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015   cat >conftest.$ac_ext <<_ACEOF
2016 /* confdefs.h.  */
2017 _ACEOF
2018 cat confdefs.h >>conftest.$ac_ext
2019 cat >>conftest.$ac_ext <<_ACEOF
2020 /* end confdefs.h.  */
2021
2022 int
2023 main ()
2024 {
2025
2026   ;
2027   return 0;
2028 }
2029 _ACEOF
2030 rm -f conftest.$ac_objext
2031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032   (eval $ac_compile) 2>conftest.er1
2033   ac_status=$?
2034   grep -v '^ *+' conftest.er1 >conftest.err
2035   rm -f conftest.er1
2036   cat conftest.err >&5
2037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038   (exit $ac_status); } &&
2039          { ac_try='test -z "$ac_c_werror_flag"
2040                          || test ! -s conftest.err'
2041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2042   (eval $ac_try) 2>&5
2043   ac_status=$?
2044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045   (exit $ac_status); }; } &&
2046          { ac_try='test -s conftest.$ac_objext'
2047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2048   (eval $ac_try) 2>&5
2049   ac_status=$?
2050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051   (exit $ac_status); }; }; then
2052   ac_cv_prog_cc_g=yes
2053 else
2054   echo "$as_me: failed program was:" >&5
2055 sed 's/^/| /' conftest.$ac_ext >&5
2056
2057 ac_cv_prog_cc_g=no
2058 fi
2059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2060 fi
2061 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2062 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2063 if test "$ac_test_CFLAGS" = set; then
2064   CFLAGS=$ac_save_CFLAGS
2065 elif test $ac_cv_prog_cc_g = yes; then
2066   if test "$GCC" = yes; then
2067     CFLAGS="-g -O2"
2068   else
2069     CFLAGS="-g"
2070   fi
2071 else
2072   if test "$GCC" = yes; then
2073     CFLAGS="-O2"
2074   else
2075     CFLAGS=
2076   fi
2077 fi
2078 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2079 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2080 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2081   echo $ECHO_N "(cached) $ECHO_C" >&6
2082 else
2083   ac_cv_prog_cc_stdc=no
2084 ac_save_CC=$CC
2085 cat >conftest.$ac_ext <<_ACEOF
2086 /* confdefs.h.  */
2087 _ACEOF
2088 cat confdefs.h >>conftest.$ac_ext
2089 cat >>conftest.$ac_ext <<_ACEOF
2090 /* end confdefs.h.  */
2091 #include <stdarg.h>
2092 #include <stdio.h>
2093 #include <sys/types.h>
2094 #include <sys/stat.h>
2095 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2096 struct buf { int x; };
2097 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2098 static char *e (p, i)
2099      char **p;
2100      int i;
2101 {
2102   return p[i];
2103 }
2104 static char *f (char * (*g) (char **, int), char **p, ...)
2105 {
2106   char *s;
2107   va_list v;
2108   va_start (v,p);
2109   s = g (p, va_arg (v,int));
2110   va_end (v);
2111   return s;
2112 }
2113
2114 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2115    function prototypes and stuff, but not '\xHH' hex character constants.
2116    These don't provoke an error unfortunately, instead are silently treated
2117    as 'x'.  The following induces an error, until -std1 is added to get
2118    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2119    array size at least.  It's necessary to write '\x00'==0 to get something
2120    that's true only with -std1.  */
2121 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2122
2123 int test (int i, double x);
2124 struct s1 {int (*f) (int a);};
2125 struct s2 {int (*f) (double a);};
2126 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2127 int argc;
2128 char **argv;
2129 int
2130 main ()
2131 {
2132 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2133   ;
2134   return 0;
2135 }
2136 _ACEOF
2137 # Don't try gcc -ansi; that turns off useful extensions and
2138 # breaks some systems' header files.
2139 # AIX                   -qlanglvl=ansi
2140 # Ultrix and OSF/1      -std1
2141 # HP-UX 10.20 and later -Ae
2142 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2143 # SVR4                  -Xc -D__EXTENSIONS__
2144 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2145 do
2146   CC="$ac_save_CC $ac_arg"
2147   rm -f conftest.$ac_objext
2148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2149   (eval $ac_compile) 2>conftest.er1
2150   ac_status=$?
2151   grep -v '^ *+' conftest.er1 >conftest.err
2152   rm -f conftest.er1
2153   cat conftest.err >&5
2154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155   (exit $ac_status); } &&
2156          { ac_try='test -z "$ac_c_werror_flag"
2157                          || test ! -s conftest.err'
2158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159   (eval $ac_try) 2>&5
2160   ac_status=$?
2161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162   (exit $ac_status); }; } &&
2163          { ac_try='test -s conftest.$ac_objext'
2164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165   (eval $ac_try) 2>&5
2166   ac_status=$?
2167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168   (exit $ac_status); }; }; then
2169   ac_cv_prog_cc_stdc=$ac_arg
2170 break
2171 else
2172   echo "$as_me: failed program was:" >&5
2173 sed 's/^/| /' conftest.$ac_ext >&5
2174
2175 fi
2176 rm -f conftest.err conftest.$ac_objext
2177 done
2178 rm -f conftest.$ac_ext conftest.$ac_objext
2179 CC=$ac_save_CC
2180
2181 fi
2182
2183 case "x$ac_cv_prog_cc_stdc" in
2184   x|xno)
2185     echo "$as_me:$LINENO: result: none needed" >&5
2186 echo "${ECHO_T}none needed" >&6 ;;
2187   *)
2188     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2189 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2190     CC="$CC $ac_cv_prog_cc_stdc" ;;
2191 esac
2192
2193 # Some people use a C++ compiler to compile C.  Since we use `exit',
2194 # in C++ we need to declare it.  In case someone uses the same compiler
2195 # for both compiling C and C++ we need to have the C++ compiler decide
2196 # the declaration of exit, since it's the most demanding environment.
2197 cat >conftest.$ac_ext <<_ACEOF
2198 #ifndef __cplusplus
2199   choke me
2200 #endif
2201 _ACEOF
2202 rm -f conftest.$ac_objext
2203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2204   (eval $ac_compile) 2>conftest.er1
2205   ac_status=$?
2206   grep -v '^ *+' conftest.er1 >conftest.err
2207   rm -f conftest.er1
2208   cat conftest.err >&5
2209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210   (exit $ac_status); } &&
2211          { ac_try='test -z "$ac_c_werror_flag"
2212                          || test ! -s conftest.err'
2213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214   (eval $ac_try) 2>&5
2215   ac_status=$?
2216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217   (exit $ac_status); }; } &&
2218          { ac_try='test -s conftest.$ac_objext'
2219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220   (eval $ac_try) 2>&5
2221   ac_status=$?
2222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223   (exit $ac_status); }; }; then
2224   for ac_declaration in \
2225    '' \
2226    'extern "C" void std::exit (int) throw (); using std::exit;' \
2227    'extern "C" void std::exit (int); using std::exit;' \
2228    'extern "C" void exit (int) throw ();' \
2229    'extern "C" void exit (int);' \
2230    'void exit (int);'
2231 do
2232   cat >conftest.$ac_ext <<_ACEOF
2233 /* confdefs.h.  */
2234 _ACEOF
2235 cat confdefs.h >>conftest.$ac_ext
2236 cat >>conftest.$ac_ext <<_ACEOF
2237 /* end confdefs.h.  */
2238 $ac_declaration
2239 #include <stdlib.h>
2240 int
2241 main ()
2242 {
2243 exit (42);
2244   ;
2245   return 0;
2246 }
2247 _ACEOF
2248 rm -f conftest.$ac_objext
2249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250   (eval $ac_compile) 2>conftest.er1
2251   ac_status=$?
2252   grep -v '^ *+' conftest.er1 >conftest.err
2253   rm -f conftest.er1
2254   cat conftest.err >&5
2255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256   (exit $ac_status); } &&
2257          { ac_try='test -z "$ac_c_werror_flag"
2258                          || test ! -s conftest.err'
2259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260   (eval $ac_try) 2>&5
2261   ac_status=$?
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); }; } &&
2264          { ac_try='test -s conftest.$ac_objext'
2265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266   (eval $ac_try) 2>&5
2267   ac_status=$?
2268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269   (exit $ac_status); }; }; then
2270   :
2271 else
2272   echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2274
2275 continue
2276 fi
2277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2278   cat >conftest.$ac_ext <<_ACEOF
2279 /* confdefs.h.  */
2280 _ACEOF
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h.  */
2284 $ac_declaration
2285 int
2286 main ()
2287 {
2288 exit (42);
2289   ;
2290   return 0;
2291 }
2292 _ACEOF
2293 rm -f conftest.$ac_objext
2294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295   (eval $ac_compile) 2>conftest.er1
2296   ac_status=$?
2297   grep -v '^ *+' conftest.er1 >conftest.err
2298   rm -f conftest.er1
2299   cat conftest.err >&5
2300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301   (exit $ac_status); } &&
2302          { ac_try='test -z "$ac_c_werror_flag"
2303                          || test ! -s conftest.err'
2304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305   (eval $ac_try) 2>&5
2306   ac_status=$?
2307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308   (exit $ac_status); }; } &&
2309          { ac_try='test -s conftest.$ac_objext'
2310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311   (eval $ac_try) 2>&5
2312   ac_status=$?
2313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314   (exit $ac_status); }; }; then
2315   break
2316 else
2317   echo "$as_me: failed program was:" >&5
2318 sed 's/^/| /' conftest.$ac_ext >&5
2319
2320 fi
2321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2322 done
2323 rm -f conftest*
2324 if test -n "$ac_declaration"; then
2325   echo '#ifdef __cplusplus' >>confdefs.h
2326   echo $ac_declaration      >>confdefs.h
2327   echo '#endif'             >>confdefs.h
2328 fi
2329
2330 else
2331   echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2333
2334 fi
2335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2336 ac_ext=c
2337 ac_cpp='$CPP $CPPFLAGS'
2338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2341
2342 # Find a good install program.  We prefer a C program (faster),
2343 # so one script is as good as another.  But avoid the broken or
2344 # incompatible versions:
2345 # SysV /etc/install, /usr/sbin/install
2346 # SunOS /usr/etc/install
2347 # IRIX /sbin/install
2348 # AIX /bin/install
2349 # AmigaOS /C/install, which installs bootblocks on floppy discs
2350 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2351 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2352 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2353 # OS/2's system install, which has a completely different semantic
2354 # ./install, which can be erroneously created by make from ./install.sh.
2355 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2356 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2357 if test -z "$INSTALL"; then
2358 if test "${ac_cv_path_install+set}" = set; then
2359   echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362 for as_dir in $PATH
2363 do
2364   IFS=$as_save_IFS
2365   test -z "$as_dir" && as_dir=.
2366   # Account for people who put trailing slashes in PATH elements.
2367 case $as_dir/ in
2368   ./ | .// | /cC/* | \
2369   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2370   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2371   /usr/ucb/* ) ;;
2372   *)
2373     # OSF1 and SCO ODT 3.0 have their own names for install.
2374     # Don't use installbsd from OSF since it installs stuff as root
2375     # by default.
2376     for ac_prog in ginstall scoinst install; do
2377       for ac_exec_ext in '' $ac_executable_extensions; do
2378         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2379           if test $ac_prog = install &&
2380             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2381             # AIX install.  It has an incompatible calling convention.
2382             :
2383           elif test $ac_prog = install &&
2384             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2385             # program-specific install script used by HP pwplus--don't use.
2386             :
2387           else
2388             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2389             break 3
2390           fi
2391         fi
2392       done
2393     done
2394     ;;
2395 esac
2396 done
2397
2398
2399 fi
2400   if test "${ac_cv_path_install+set}" = set; then
2401     INSTALL=$ac_cv_path_install
2402   else
2403     # As a last resort, use the slow shell script.  We don't cache a
2404     # path for INSTALL within a source directory, because that will
2405     # break other packages using the cache if that directory is
2406     # removed, or if the path is relative.
2407     INSTALL=$ac_install_sh
2408   fi
2409 fi
2410 echo "$as_me:$LINENO: result: $INSTALL" >&5
2411 echo "${ECHO_T}$INSTALL" >&6
2412
2413 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2414 # It thinks the first close brace ends the variable substitution.
2415 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2416
2417 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2418
2419 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2420
2421 if test -n "$ac_tool_prefix"; then
2422   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2423 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2424 echo "$as_me:$LINENO: checking for $ac_word" >&5
2425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2426 if test "${ac_cv_prog_RANLIB+set}" = set; then
2427   echo $ECHO_N "(cached) $ECHO_C" >&6
2428 else
2429   if test -n "$RANLIB"; then
2430   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2431 else
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH
2434 do
2435   IFS=$as_save_IFS
2436   test -z "$as_dir" && as_dir=.
2437   for ac_exec_ext in '' $ac_executable_extensions; do
2438   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2439     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2441     break 2
2442   fi
2443 done
2444 done
2445
2446 fi
2447 fi
2448 RANLIB=$ac_cv_prog_RANLIB
2449 if test -n "$RANLIB"; then
2450   echo "$as_me:$LINENO: result: $RANLIB" >&5
2451 echo "${ECHO_T}$RANLIB" >&6
2452 else
2453   echo "$as_me:$LINENO: result: no" >&5
2454 echo "${ECHO_T}no" >&6
2455 fi
2456
2457 fi
2458 if test -z "$ac_cv_prog_RANLIB"; then
2459   ac_ct_RANLIB=$RANLIB
2460   # Extract the first word of "ranlib", so it can be a program name with args.
2461 set dummy ranlib; ac_word=$2
2462 echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2464 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2465   echo $ECHO_N "(cached) $ECHO_C" >&6
2466 else
2467   if test -n "$ac_ct_RANLIB"; then
2468   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2469 else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2472 do
2473   IFS=$as_save_IFS
2474   test -z "$as_dir" && as_dir=.
2475   for ac_exec_ext in '' $ac_executable_extensions; do
2476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2477     ac_cv_prog_ac_ct_RANLIB="ranlib"
2478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479     break 2
2480   fi
2481 done
2482 done
2483
2484   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2485 fi
2486 fi
2487 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2488 if test -n "$ac_ct_RANLIB"; then
2489   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2490 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2491 else
2492   echo "$as_me:$LINENO: result: no" >&5
2493 echo "${ECHO_T}no" >&6
2494 fi
2495
2496   RANLIB=$ac_ct_RANLIB
2497 else
2498   RANLIB="$ac_cv_prog_RANLIB"
2499 fi
2500
2501
2502
2503
2504 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
2505 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
2506 if test "${ac_cv_lib_compat_main+set}" = set; then
2507   echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509   ac_check_lib_save_LIBS=$LIBS
2510 LIBS="-lcompat  $LIBS"
2511 cat >conftest.$ac_ext <<_ACEOF
2512 /* confdefs.h.  */
2513 _ACEOF
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h.  */
2517
2518
2519 int
2520 main ()
2521 {
2522 main ();
2523   ;
2524   return 0;
2525 }
2526 _ACEOF
2527 rm -f conftest.$ac_objext conftest$ac_exeext
2528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2529   (eval $ac_link) 2>conftest.er1
2530   ac_status=$?
2531   grep -v '^ *+' conftest.er1 >conftest.err
2532   rm -f conftest.er1
2533   cat conftest.err >&5
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); } &&
2536          { ac_try='test -z "$ac_c_werror_flag"
2537                          || test ! -s conftest.err'
2538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539   (eval $ac_try) 2>&5
2540   ac_status=$?
2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542   (exit $ac_status); }; } &&
2543          { ac_try='test -s conftest$ac_exeext'
2544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545   (eval $ac_try) 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }; }; then
2549   ac_cv_lib_compat_main=yes
2550 else
2551   echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2553
2554 ac_cv_lib_compat_main=no
2555 fi
2556 rm -f conftest.err conftest.$ac_objext \
2557       conftest$ac_exeext conftest.$ac_ext
2558 LIBS=$ac_check_lib_save_LIBS
2559 fi
2560 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
2561 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
2562 if test $ac_cv_lib_compat_main = yes; then
2563   cat >>confdefs.h <<_ACEOF
2564 #define HAVE_LIBCOMPAT 1
2565 _ACEOF
2566
2567   LIBS="-lcompat $LIBS"
2568
2569 fi
2570
2571 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
2572 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
2573 if test "${ac_cv_search_gethostbyname+set}" = set; then
2574   echo $ECHO_N "(cached) $ECHO_C" >&6
2575 else
2576   ac_func_search_save_LIBS=$LIBS
2577 ac_cv_search_gethostbyname=no
2578 cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h.  */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h.  */
2584
2585 /* Override any gcc2 internal prototype to avoid an error.  */
2586 #ifdef __cplusplus
2587 extern "C"
2588 #endif
2589 /* We use char because int might match the return type of a gcc2
2590    builtin and then its argument prototype would still apply.  */
2591 char gethostbyname ();
2592 int
2593 main ()
2594 {
2595 gethostbyname ();
2596   ;
2597   return 0;
2598 }
2599 _ACEOF
2600 rm -f conftest.$ac_objext conftest$ac_exeext
2601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2602   (eval $ac_link) 2>conftest.er1
2603   ac_status=$?
2604   grep -v '^ *+' conftest.er1 >conftest.err
2605   rm -f conftest.er1
2606   cat conftest.err >&5
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); } &&
2609          { ac_try='test -z "$ac_c_werror_flag"
2610                          || test ! -s conftest.err'
2611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612   (eval $ac_try) 2>&5
2613   ac_status=$?
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); }; } &&
2616          { ac_try='test -s conftest$ac_exeext'
2617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618   (eval $ac_try) 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }; }; then
2622   ac_cv_search_gethostbyname="none required"
2623 else
2624   echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2626
2627 fi
2628 rm -f conftest.err conftest.$ac_objext \
2629       conftest$ac_exeext conftest.$ac_ext
2630 if test "$ac_cv_search_gethostbyname" = no; then
2631   for ac_lib in nsl socket resolv; do
2632     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2633     cat >conftest.$ac_ext <<_ACEOF
2634 /* confdefs.h.  */
2635 _ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h.  */
2639
2640 /* Override any gcc2 internal prototype to avoid an error.  */
2641 #ifdef __cplusplus
2642 extern "C"
2643 #endif
2644 /* We use char because int might match the return type of a gcc2
2645    builtin and then its argument prototype would still apply.  */
2646 char gethostbyname ();
2647 int
2648 main ()
2649 {
2650 gethostbyname ();
2651   ;
2652   return 0;
2653 }
2654 _ACEOF
2655 rm -f conftest.$ac_objext conftest$ac_exeext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2657   (eval $ac_link) 2>conftest.er1
2658   ac_status=$?
2659   grep -v '^ *+' conftest.er1 >conftest.err
2660   rm -f conftest.er1
2661   cat conftest.err >&5
2662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663   (exit $ac_status); } &&
2664          { ac_try='test -z "$ac_c_werror_flag"
2665                          || test ! -s conftest.err'
2666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667   (eval $ac_try) 2>&5
2668   ac_status=$?
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); }; } &&
2671          { ac_try='test -s conftest$ac_exeext'
2672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673   (eval $ac_try) 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }; }; then
2677   ac_cv_search_gethostbyname="-l$ac_lib"
2678 break
2679 else
2680   echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2682
2683 fi
2684 rm -f conftest.err conftest.$ac_objext \
2685       conftest$ac_exeext conftest.$ac_ext
2686   done
2687 fi
2688 LIBS=$ac_func_search_save_LIBS
2689 fi
2690 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
2691 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
2692 if test "$ac_cv_search_gethostbyname" != no; then
2693   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
2694
2695 fi
2696
2697 echo "$as_me:$LINENO: checking for library containing getnameinfo" >&5
2698 echo $ECHO_N "checking for library containing getnameinfo... $ECHO_C" >&6
2699 if test "${ac_cv_search_getnameinfo+set}" = set; then
2700   echo $ECHO_N "(cached) $ECHO_C" >&6
2701 else
2702   ac_func_search_save_LIBS=$LIBS
2703 ac_cv_search_getnameinfo=no
2704 cat >conftest.$ac_ext <<_ACEOF
2705 /* confdefs.h.  */
2706 _ACEOF
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h.  */
2710
2711 /* Override any gcc2 internal prototype to avoid an error.  */
2712 #ifdef __cplusplus
2713 extern "C"
2714 #endif
2715 /* We use char because int might match the return type of a gcc2
2716    builtin and then its argument prototype would still apply.  */
2717 char getnameinfo ();
2718 int
2719 main ()
2720 {
2721 getnameinfo ();
2722   ;
2723   return 0;
2724 }
2725 _ACEOF
2726 rm -f conftest.$ac_objext conftest$ac_exeext
2727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2728   (eval $ac_link) 2>conftest.er1
2729   ac_status=$?
2730   grep -v '^ *+' conftest.er1 >conftest.err
2731   rm -f conftest.er1
2732   cat conftest.err >&5
2733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734   (exit $ac_status); } &&
2735          { ac_try='test -z "$ac_c_werror_flag"
2736                          || test ! -s conftest.err'
2737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738   (eval $ac_try) 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }; } &&
2742          { ac_try='test -s conftest$ac_exeext'
2743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744   (eval $ac_try) 2>&5
2745   ac_status=$?
2746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747   (exit $ac_status); }; }; then
2748   ac_cv_search_getnameinfo="none required"
2749 else
2750   echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2752
2753 fi
2754 rm -f conftest.err conftest.$ac_objext \
2755       conftest$ac_exeext conftest.$ac_ext
2756 if test "$ac_cv_search_getnameinfo" = no; then
2757   for ac_lib in nsl socket resolv; do
2758     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2759     cat >conftest.$ac_ext <<_ACEOF
2760 /* confdefs.h.  */
2761 _ACEOF
2762 cat confdefs.h >>conftest.$ac_ext
2763 cat >>conftest.$ac_ext <<_ACEOF
2764 /* end confdefs.h.  */
2765
2766 /* Override any gcc2 internal prototype to avoid an error.  */
2767 #ifdef __cplusplus
2768 extern "C"
2769 #endif
2770 /* We use char because int might match the return type of a gcc2
2771    builtin and then its argument prototype would still apply.  */
2772 char getnameinfo ();
2773 int
2774 main ()
2775 {
2776 getnameinfo ();
2777   ;
2778   return 0;
2779 }
2780 _ACEOF
2781 rm -f conftest.$ac_objext conftest$ac_exeext
2782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2783   (eval $ac_link) 2>conftest.er1
2784   ac_status=$?
2785   grep -v '^ *+' conftest.er1 >conftest.err
2786   rm -f conftest.er1
2787   cat conftest.err >&5
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); } &&
2790          { ac_try='test -z "$ac_c_werror_flag"
2791                          || test ! -s conftest.err'
2792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793   (eval $ac_try) 2>&5
2794   ac_status=$?
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); }; } &&
2797          { ac_try='test -s conftest$ac_exeext'
2798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799   (eval $ac_try) 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }; }; then
2803   ac_cv_search_getnameinfo="-l$ac_lib"
2804 break
2805 else
2806   echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2808
2809 fi
2810 rm -f conftest.err conftest.$ac_objext \
2811       conftest$ac_exeext conftest.$ac_ext
2812   done
2813 fi
2814 LIBS=$ac_func_search_save_LIBS
2815 fi
2816 echo "$as_me:$LINENO: result: $ac_cv_search_getnameinfo" >&5
2817 echo "${ECHO_T}$ac_cv_search_getnameinfo" >&6
2818 if test "$ac_cv_search_getnameinfo" != no; then
2819   test "$ac_cv_search_getnameinfo" = "none required" || LIBS="$ac_cv_search_getnameinfo $LIBS"
2820
2821 fi
2822
2823 echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5
2824 echo $ECHO_N "checking for library containing inet_ntop... $ECHO_C" >&6
2825 if test "${ac_cv_search_inet_ntop+set}" = set; then
2826   echo $ECHO_N "(cached) $ECHO_C" >&6
2827 else
2828   ac_func_search_save_LIBS=$LIBS
2829 ac_cv_search_inet_ntop=no
2830 cat >conftest.$ac_ext <<_ACEOF
2831 /* confdefs.h.  */
2832 _ACEOF
2833 cat confdefs.h >>conftest.$ac_ext
2834 cat >>conftest.$ac_ext <<_ACEOF
2835 /* end confdefs.h.  */
2836
2837 /* Override any gcc2 internal prototype to avoid an error.  */
2838 #ifdef __cplusplus
2839 extern "C"
2840 #endif
2841 /* We use char because int might match the return type of a gcc2
2842    builtin and then its argument prototype would still apply.  */
2843 char inet_ntop ();
2844 int
2845 main ()
2846 {
2847 inet_ntop ();
2848   ;
2849   return 0;
2850 }
2851 _ACEOF
2852 rm -f conftest.$ac_objext conftest$ac_exeext
2853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2854   (eval $ac_link) 2>conftest.er1
2855   ac_status=$?
2856   grep -v '^ *+' conftest.er1 >conftest.err
2857   rm -f conftest.er1
2858   cat conftest.err >&5
2859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860   (exit $ac_status); } &&
2861          { ac_try='test -z "$ac_c_werror_flag"
2862                          || test ! -s conftest.err'
2863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864   (eval $ac_try) 2>&5
2865   ac_status=$?
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); }; } &&
2868          { ac_try='test -s conftest$ac_exeext'
2869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870   (eval $ac_try) 2>&5
2871   ac_status=$?
2872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); }; }; then
2874   ac_cv_search_inet_ntop="none required"
2875 else
2876   echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2878
2879 fi
2880 rm -f conftest.err conftest.$ac_objext \
2881       conftest$ac_exeext conftest.$ac_ext
2882 if test "$ac_cv_search_inet_ntop" = no; then
2883   for ac_lib in nsl socket resolv; do
2884     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2885     cat >conftest.$ac_ext <<_ACEOF
2886 /* confdefs.h.  */
2887 _ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h.  */
2891
2892 /* Override any gcc2 internal prototype to avoid an error.  */
2893 #ifdef __cplusplus
2894 extern "C"
2895 #endif
2896 /* We use char because int might match the return type of a gcc2
2897    builtin and then its argument prototype would still apply.  */
2898 char inet_ntop ();
2899 int
2900 main ()
2901 {
2902 inet_ntop ();
2903   ;
2904   return 0;
2905 }
2906 _ACEOF
2907 rm -f conftest.$ac_objext conftest$ac_exeext
2908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2909   (eval $ac_link) 2>conftest.er1
2910   ac_status=$?
2911   grep -v '^ *+' conftest.er1 >conftest.err
2912   rm -f conftest.er1
2913   cat conftest.err >&5
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); } &&
2916          { ac_try='test -z "$ac_c_werror_flag"
2917                          || test ! -s conftest.err'
2918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919   (eval $ac_try) 2>&5
2920   ac_status=$?
2921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922   (exit $ac_status); }; } &&
2923          { ac_try='test -s conftest$ac_exeext'
2924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2925   (eval $ac_try) 2>&5
2926   ac_status=$?
2927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928   (exit $ac_status); }; }; then
2929   ac_cv_search_inet_ntop="-l$ac_lib"
2930 break
2931 else
2932   echo "$as_me: failed program was:" >&5
2933 sed 's/^/| /' conftest.$ac_ext >&5
2934
2935 fi
2936 rm -f conftest.err conftest.$ac_objext \
2937       conftest$ac_exeext conftest.$ac_ext
2938   done
2939 fi
2940 LIBS=$ac_func_search_save_LIBS
2941 fi
2942 echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5
2943 echo "${ECHO_T}$ac_cv_search_inet_ntop" >&6
2944 if test "$ac_cv_search_inet_ntop" != no; then
2945   test "$ac_cv_search_inet_ntop" = "none required" || LIBS="$ac_cv_search_inet_ntop $LIBS"
2946
2947 fi
2948
2949
2950
2951 for ac_func in getnameinfo inet_ntop
2952 do
2953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2954 echo "$as_me:$LINENO: checking for $ac_func" >&5
2955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2956 if eval "test \"\${$as_ac_var+set}\" = set"; then
2957   echo $ECHO_N "(cached) $ECHO_C" >&6
2958 else
2959   cat >conftest.$ac_ext <<_ACEOF
2960 /* confdefs.h.  */
2961 _ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h.  */
2965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2966    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2967 #define $ac_func innocuous_$ac_func
2968
2969 /* System header to define __stub macros and hopefully few prototypes,
2970     which can conflict with char $ac_func (); below.
2971     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2972     <limits.h> exists even on freestanding compilers.  */
2973
2974 #ifdef __STDC__
2975 # include <limits.h>
2976 #else
2977 # include <assert.h>
2978 #endif
2979
2980 #undef $ac_func
2981
2982 /* Override any gcc2 internal prototype to avoid an error.  */
2983 #ifdef __cplusplus
2984 extern "C"
2985 {
2986 #endif
2987 /* We use char because int might match the return type of a gcc2
2988    builtin and then its argument prototype would still apply.  */
2989 char $ac_func ();
2990 /* The GNU C library defines this for functions which it implements
2991     to always fail with ENOSYS.  Some functions are actually named
2992     something starting with __ and the normal name is an alias.  */
2993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2994 choke me
2995 #else
2996 char (*f) () = $ac_func;
2997 #endif
2998 #ifdef __cplusplus
2999 }
3000 #endif
3001
3002 int
3003 main ()
3004 {
3005 return f != $ac_func;
3006   ;
3007   return 0;
3008 }
3009 _ACEOF
3010 rm -f conftest.$ac_objext conftest$ac_exeext
3011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3012   (eval $ac_link) 2>conftest.er1
3013   ac_status=$?
3014   grep -v '^ *+' conftest.er1 >conftest.err
3015   rm -f conftest.er1
3016   cat conftest.err >&5
3017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018   (exit $ac_status); } &&
3019          { ac_try='test -z "$ac_c_werror_flag"
3020                          || test ! -s conftest.err'
3021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022   (eval $ac_try) 2>&5
3023   ac_status=$?
3024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025   (exit $ac_status); }; } &&
3026          { ac_try='test -s conftest$ac_exeext'
3027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028   (eval $ac_try) 2>&5
3029   ac_status=$?
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); }; }; then
3032   eval "$as_ac_var=yes"
3033 else
3034   echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3036
3037 eval "$as_ac_var=no"
3038 fi
3039 rm -f conftest.err conftest.$ac_objext \
3040       conftest$ac_exeext conftest.$ac_ext
3041 fi
3042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3043 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3044 if test `eval echo '${'$as_ac_var'}'` = yes; then
3045   cat >>confdefs.h <<_ACEOF
3046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3047 _ACEOF
3048
3049 fi
3050 done
3051
3052
3053 for ac_func in difftime
3054 do
3055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3056 echo "$as_me:$LINENO: checking for $ac_func" >&5
3057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3058 if eval "test \"\${$as_ac_var+set}\" = set"; then
3059   echo $ECHO_N "(cached) $ECHO_C" >&6
3060 else
3061   cat >conftest.$ac_ext <<_ACEOF
3062 /* confdefs.h.  */
3063 _ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h.  */
3067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3068    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3069 #define $ac_func innocuous_$ac_func
3070
3071 /* System header to define __stub macros and hopefully few prototypes,
3072     which can conflict with char $ac_func (); below.
3073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3074     <limits.h> exists even on freestanding compilers.  */
3075
3076 #ifdef __STDC__
3077 # include <limits.h>
3078 #else
3079 # include <assert.h>
3080 #endif
3081
3082 #undef $ac_func
3083
3084 /* Override any gcc2 internal prototype to avoid an error.  */
3085 #ifdef __cplusplus
3086 extern "C"
3087 {
3088 #endif
3089 /* We use char because int might match the return type of a gcc2
3090    builtin and then its argument prototype would still apply.  */
3091 char $ac_func ();
3092 /* The GNU C library defines this for functions which it implements
3093     to always fail with ENOSYS.  Some functions are actually named
3094     something starting with __ and the normal name is an alias.  */
3095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3096 choke me
3097 #else
3098 char (*f) () = $ac_func;
3099 #endif
3100 #ifdef __cplusplus
3101 }
3102 #endif
3103
3104 int
3105 main ()
3106 {
3107 return f != $ac_func;
3108   ;
3109   return 0;
3110 }
3111 _ACEOF
3112 rm -f conftest.$ac_objext conftest$ac_exeext
3113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3114   (eval $ac_link) 2>conftest.er1
3115   ac_status=$?
3116   grep -v '^ *+' conftest.er1 >conftest.err
3117   rm -f conftest.er1
3118   cat conftest.err >&5
3119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); } &&
3121          { ac_try='test -z "$ac_c_werror_flag"
3122                          || test ! -s conftest.err'
3123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3124   (eval $ac_try) 2>&5
3125   ac_status=$?
3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); }; } &&
3128          { ac_try='test -s conftest$ac_exeext'
3129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130   (eval $ac_try) 2>&5
3131   ac_status=$?
3132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133   (exit $ac_status); }; }; then
3134   eval "$as_ac_var=yes"
3135 else
3136   echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3138
3139 eval "$as_ac_var=no"
3140 fi
3141 rm -f conftest.err conftest.$ac_objext \
3142       conftest$ac_exeext conftest.$ac_ext
3143 fi
3144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3146 if test `eval echo '${'$as_ac_var'}'` = yes; then
3147   cat >>confdefs.h <<_ACEOF
3148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3149 _ACEOF
3150
3151 else
3152
3153 echo "$as_me:$LINENO: checking for difftime in -lm" >&5
3154 echo $ECHO_N "checking for difftime in -lm... $ECHO_C" >&6
3155 if test "${ac_cv_lib_m_difftime+set}" = set; then
3156   echo $ECHO_N "(cached) $ECHO_C" >&6
3157 else
3158   ac_check_lib_save_LIBS=$LIBS
3159 LIBS="-lm  $LIBS"
3160 cat >conftest.$ac_ext <<_ACEOF
3161 /* confdefs.h.  */
3162 _ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h.  */
3166
3167 /* Override any gcc2 internal prototype to avoid an error.  */
3168 #ifdef __cplusplus
3169 extern "C"
3170 #endif
3171 /* We use char because int might match the return type of a gcc2
3172    builtin and then its argument prototype would still apply.  */
3173 char difftime ();
3174 int
3175 main ()
3176 {
3177 difftime ();
3178   ;
3179   return 0;
3180 }
3181 _ACEOF
3182 rm -f conftest.$ac_objext conftest$ac_exeext
3183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3184   (eval $ac_link) 2>conftest.er1
3185   ac_status=$?
3186   grep -v '^ *+' conftest.er1 >conftest.err
3187   rm -f conftest.er1
3188   cat conftest.err >&5
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); } &&
3191          { ac_try='test -z "$ac_c_werror_flag"
3192                          || test ! -s conftest.err'
3193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194   (eval $ac_try) 2>&5
3195   ac_status=$?
3196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197   (exit $ac_status); }; } &&
3198          { ac_try='test -s conftest$ac_exeext'
3199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200   (eval $ac_try) 2>&5
3201   ac_status=$?
3202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203   (exit $ac_status); }; }; then
3204   ac_cv_lib_m_difftime=yes
3205 else
3206   echo "$as_me: failed program was:" >&5
3207 sed 's/^/| /' conftest.$ac_ext >&5
3208
3209 ac_cv_lib_m_difftime=no
3210 fi
3211 rm -f conftest.err conftest.$ac_objext \
3212       conftest$ac_exeext conftest.$ac_ext
3213 LIBS=$ac_check_lib_save_LIBS
3214 fi
3215 echo "$as_me:$LINENO: result: $ac_cv_lib_m_difftime" >&5
3216 echo "${ECHO_T}$ac_cv_lib_m_difftime" >&6
3217 if test $ac_cv_lib_m_difftime = yes; then
3218   cat >>confdefs.h <<_ACEOF
3219 #define HAVE_LIBM 1
3220 _ACEOF
3221
3222   LIBS="-lm $LIBS"
3223
3224 fi
3225
3226 fi
3227 done
3228
3229
3230 for ac_func in fcvt
3231 do
3232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3233 echo "$as_me:$LINENO: checking for $ac_func" >&5
3234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3235 if eval "test \"\${$as_ac_var+set}\" = set"; then
3236   echo $ECHO_N "(cached) $ECHO_C" >&6
3237 else
3238   cat >conftest.$ac_ext <<_ACEOF
3239 /* confdefs.h.  */
3240 _ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h.  */
3244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3246 #define $ac_func innocuous_$ac_func
3247
3248 /* System header to define __stub macros and hopefully few prototypes,
3249     which can conflict with char $ac_func (); below.
3250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3251     <limits.h> exists even on freestanding compilers.  */
3252
3253 #ifdef __STDC__
3254 # include <limits.h>
3255 #else
3256 # include <assert.h>
3257 #endif
3258
3259 #undef $ac_func
3260
3261 /* Override any gcc2 internal prototype to avoid an error.  */
3262 #ifdef __cplusplus
3263 extern "C"
3264 {
3265 #endif
3266 /* We use char because int might match the return type of a gcc2
3267    builtin and then its argument prototype would still apply.  */
3268 char $ac_func ();
3269 /* The GNU C library defines this for functions which it implements
3270     to always fail with ENOSYS.  Some functions are actually named
3271     something starting with __ and the normal name is an alias.  */
3272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3273 choke me
3274 #else
3275 char (*f) () = $ac_func;
3276 #endif
3277 #ifdef __cplusplus
3278 }
3279 #endif
3280
3281 int
3282 main ()
3283 {
3284 return f != $ac_func;
3285   ;
3286   return 0;
3287 }
3288 _ACEOF
3289 rm -f conftest.$ac_objext conftest$ac_exeext
3290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3291   (eval $ac_link) 2>conftest.er1
3292   ac_status=$?
3293   grep -v '^ *+' conftest.er1 >conftest.err
3294   rm -f conftest.er1
3295   cat conftest.err >&5
3296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297   (exit $ac_status); } &&
3298          { ac_try='test -z "$ac_c_werror_flag"
3299                          || test ! -s conftest.err'
3300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301   (eval $ac_try) 2>&5
3302   ac_status=$?
3303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304   (exit $ac_status); }; } &&
3305          { ac_try='test -s conftest$ac_exeext'
3306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307   (eval $ac_try) 2>&5
3308   ac_status=$?
3309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310   (exit $ac_status); }; }; then
3311   eval "$as_ac_var=yes"
3312 else
3313   echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3315
3316 eval "$as_ac_var=no"
3317 fi
3318 rm -f conftest.err conftest.$ac_objext \
3319       conftest$ac_exeext conftest.$ac_ext
3320 fi
3321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3323 if test `eval echo '${'$as_ac_var'}'` = yes; then
3324   cat >>confdefs.h <<_ACEOF
3325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3326 _ACEOF
3327
3328 else
3329
3330 echo "$as_me:$LINENO: checking for fcvt in -lm" >&5
3331 echo $ECHO_N "checking for fcvt in -lm... $ECHO_C" >&6
3332 if test "${ac_cv_lib_m_fcvt+set}" = set; then
3333   echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335   ac_check_lib_save_LIBS=$LIBS
3336 LIBS="-lm  $LIBS"
3337 cat >conftest.$ac_ext <<_ACEOF
3338 /* confdefs.h.  */
3339 _ACEOF
3340 cat confdefs.h >>conftest.$ac_ext
3341 cat >>conftest.$ac_ext <<_ACEOF
3342 /* end confdefs.h.  */
3343
3344 /* Override any gcc2 internal prototype to avoid an error.  */
3345 #ifdef __cplusplus
3346 extern "C"
3347 #endif
3348 /* We use char because int might match the return type of a gcc2
3349    builtin and then its argument prototype would still apply.  */
3350 char fcvt ();
3351 int
3352 main ()
3353 {
3354 fcvt ();
3355   ;
3356   return 0;
3357 }
3358 _ACEOF
3359 rm -f conftest.$ac_objext conftest$ac_exeext
3360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3361   (eval $ac_link) 2>conftest.er1
3362   ac_status=$?
3363   grep -v '^ *+' conftest.er1 >conftest.err
3364   rm -f conftest.er1
3365   cat conftest.err >&5
3366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367   (exit $ac_status); } &&
3368          { ac_try='test -z "$ac_c_werror_flag"
3369                          || test ! -s conftest.err'
3370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371   (eval $ac_try) 2>&5
3372   ac_status=$?
3373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374   (exit $ac_status); }; } &&
3375          { ac_try='test -s conftest$ac_exeext'
3376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377   (eval $ac_try) 2>&5
3378   ac_status=$?
3379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380   (exit $ac_status); }; }; then
3381   ac_cv_lib_m_fcvt=yes
3382 else
3383   echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3385
3386 ac_cv_lib_m_fcvt=no
3387 fi
3388 rm -f conftest.err conftest.$ac_objext \
3389       conftest$ac_exeext conftest.$ac_ext
3390 LIBS=$ac_check_lib_save_LIBS
3391 fi
3392 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fcvt" >&5
3393 echo "${ECHO_T}$ac_cv_lib_m_fcvt" >&6
3394 if test $ac_cv_lib_m_fcvt = yes; then
3395   cat >>confdefs.h <<_ACEOF
3396 #define HAVE_LIBM 1
3397 _ACEOF
3398
3399   LIBS="-lm $LIBS"
3400
3401 fi
3402
3403 fi
3404 done
3405
3406
3407 for ac_func in ecvt
3408 do
3409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3410 echo "$as_me:$LINENO: checking for $ac_func" >&5
3411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3412 if eval "test \"\${$as_ac_var+set}\" = set"; then
3413   echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415   cat >conftest.$ac_ext <<_ACEOF
3416 /* confdefs.h.  */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h.  */
3421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3423 #define $ac_func innocuous_$ac_func
3424
3425 /* System header to define __stub macros and hopefully few prototypes,
3426     which can conflict with char $ac_func (); below.
3427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3428     <limits.h> exists even on freestanding compilers.  */
3429
3430 #ifdef __STDC__
3431 # include <limits.h>
3432 #else
3433 # include <assert.h>
3434 #endif
3435
3436 #undef $ac_func
3437
3438 /* Override any gcc2 internal prototype to avoid an error.  */
3439 #ifdef __cplusplus
3440 extern "C"
3441 {
3442 #endif
3443 /* We use char because int might match the return type of a gcc2
3444    builtin and then its argument prototype would still apply.  */
3445 char $ac_func ();
3446 /* The GNU C library defines this for functions which it implements
3447     to always fail with ENOSYS.  Some functions are actually named
3448     something starting with __ and the normal name is an alias.  */
3449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3450 choke me
3451 #else
3452 char (*f) () = $ac_func;
3453 #endif
3454 #ifdef __cplusplus
3455 }
3456 #endif
3457
3458 int
3459 main ()
3460 {
3461 return f != $ac_func;
3462   ;
3463   return 0;
3464 }
3465 _ACEOF
3466 rm -f conftest.$ac_objext conftest$ac_exeext
3467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3468   (eval $ac_link) 2>conftest.er1
3469   ac_status=$?
3470   grep -v '^ *+' conftest.er1 >conftest.err
3471   rm -f conftest.er1
3472   cat conftest.err >&5
3473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474   (exit $ac_status); } &&
3475          { ac_try='test -z "$ac_c_werror_flag"
3476                          || test ! -s conftest.err'
3477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478   (eval $ac_try) 2>&5
3479   ac_status=$?
3480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481   (exit $ac_status); }; } &&
3482          { ac_try='test -s conftest$ac_exeext'
3483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484   (eval $ac_try) 2>&5
3485   ac_status=$?
3486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487   (exit $ac_status); }; }; then
3488   eval "$as_ac_var=yes"
3489 else
3490   echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3492
3493 eval "$as_ac_var=no"
3494 fi
3495 rm -f conftest.err conftest.$ac_objext \
3496       conftest$ac_exeext conftest.$ac_ext
3497 fi
3498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3500 if test `eval echo '${'$as_ac_var'}'` = yes; then
3501   cat >>confdefs.h <<_ACEOF
3502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3503 _ACEOF
3504
3505 else
3506
3507 echo "$as_me:$LINENO: checking for ecvt in -lm" >&5
3508 echo $ECHO_N "checking for ecvt in -lm... $ECHO_C" >&6
3509 if test "${ac_cv_lib_m_ecvt+set}" = set; then
3510   echo $ECHO_N "(cached) $ECHO_C" >&6
3511 else
3512   ac_check_lib_save_LIBS=$LIBS
3513 LIBS="-lm  $LIBS"
3514 cat >conftest.$ac_ext <<_ACEOF
3515 /* confdefs.h.  */
3516 _ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h.  */
3520
3521 /* Override any gcc2 internal prototype to avoid an error.  */
3522 #ifdef __cplusplus
3523 extern "C"
3524 #endif
3525 /* We use char because int might match the return type of a gcc2
3526    builtin and then its argument prototype would still apply.  */
3527 char ecvt ();
3528 int
3529 main ()
3530 {
3531 ecvt ();
3532   ;
3533   return 0;
3534 }
3535 _ACEOF
3536 rm -f conftest.$ac_objext conftest$ac_exeext
3537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3538   (eval $ac_link) 2>conftest.er1
3539   ac_status=$?
3540   grep -v '^ *+' conftest.er1 >conftest.err
3541   rm -f conftest.er1
3542   cat conftest.err >&5
3543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544   (exit $ac_status); } &&
3545          { ac_try='test -z "$ac_c_werror_flag"
3546                          || test ! -s conftest.err'
3547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548   (eval $ac_try) 2>&5
3549   ac_status=$?
3550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); }; } &&
3552          { ac_try='test -s conftest$ac_exeext'
3553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554   (eval $ac_try) 2>&5
3555   ac_status=$?
3556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557   (exit $ac_status); }; }; then
3558   ac_cv_lib_m_ecvt=yes
3559 else
3560   echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3562
3563 ac_cv_lib_m_ecvt=no
3564 fi
3565 rm -f conftest.err conftest.$ac_objext \
3566       conftest$ac_exeext conftest.$ac_ext
3567 LIBS=$ac_check_lib_save_LIBS
3568 fi
3569 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ecvt" >&5
3570 echo "${ECHO_T}$ac_cv_lib_m_ecvt" >&6
3571 if test $ac_cv_lib_m_ecvt = yes; then
3572   cat >>confdefs.h <<_ACEOF
3573 #define HAVE_LIBM 1
3574 _ACEOF
3575
3576   LIBS="-lm $LIBS"
3577
3578 fi
3579
3580 fi
3581 done
3582
3583
3584 for ac_func in gcvt
3585 do
3586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3587 echo "$as_me:$LINENO: checking for $ac_func" >&5
3588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3589 if eval "test \"\${$as_ac_var+set}\" = set"; then
3590   echo $ECHO_N "(cached) $ECHO_C" >&6
3591 else
3592   cat >conftest.$ac_ext <<_ACEOF
3593 /* confdefs.h.  */
3594 _ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h.  */
3598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3600 #define $ac_func innocuous_$ac_func
3601
3602 /* System header to define __stub macros and hopefully few prototypes,
3603     which can conflict with char $ac_func (); below.
3604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3605     <limits.h> exists even on freestanding compilers.  */
3606
3607 #ifdef __STDC__
3608 # include <limits.h>
3609 #else
3610 # include <assert.h>
3611 #endif
3612
3613 #undef $ac_func
3614
3615 /* Override any gcc2 internal prototype to avoid an error.  */
3616 #ifdef __cplusplus
3617 extern "C"
3618 {
3619 #endif
3620 /* We use char because int might match the return type of a gcc2
3621    builtin and then its argument prototype would still apply.  */
3622 char $ac_func ();
3623 /* The GNU C library defines this for functions which it implements
3624     to always fail with ENOSYS.  Some functions are actually named
3625     something starting with __ and the normal name is an alias.  */
3626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3627 choke me
3628 #else
3629 char (*f) () = $ac_func;
3630 #endif
3631 #ifdef __cplusplus
3632 }
3633 #endif
3634
3635 int
3636 main ()
3637 {
3638 return f != $ac_func;
3639   ;
3640   return 0;
3641 }
3642 _ACEOF
3643 rm -f conftest.$ac_objext conftest$ac_exeext
3644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3645   (eval $ac_link) 2>conftest.er1
3646   ac_status=$?
3647   grep -v '^ *+' conftest.er1 >conftest.err
3648   rm -f conftest.er1
3649   cat conftest.err >&5
3650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651   (exit $ac_status); } &&
3652          { ac_try='test -z "$ac_c_werror_flag"
3653                          || test ! -s conftest.err'
3654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655   (eval $ac_try) 2>&5
3656   ac_status=$?
3657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658   (exit $ac_status); }; } &&
3659          { ac_try='test -s conftest$ac_exeext'
3660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661   (eval $ac_try) 2>&5
3662   ac_status=$?
3663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664   (exit $ac_status); }; }; then
3665   eval "$as_ac_var=yes"
3666 else
3667   echo "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.$ac_ext >&5
3669
3670 eval "$as_ac_var=no"
3671 fi
3672 rm -f conftest.err conftest.$ac_objext \
3673       conftest$ac_exeext conftest.$ac_ext
3674 fi
3675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3676 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3677 if test `eval echo '${'$as_ac_var'}'` = yes; then
3678   cat >>confdefs.h <<_ACEOF
3679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3680 _ACEOF
3681
3682 else
3683
3684 echo "$as_me:$LINENO: checking for gcvt in -lm" >&5
3685 echo $ECHO_N "checking for gcvt in -lm... $ECHO_C" >&6
3686 if test "${ac_cv_lib_m_gcvt+set}" = set; then
3687   echo $ECHO_N "(cached) $ECHO_C" >&6
3688 else
3689   ac_check_lib_save_LIBS=$LIBS
3690 LIBS="-lm  $LIBS"
3691 cat >conftest.$ac_ext <<_ACEOF
3692 /* confdefs.h.  */
3693 _ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h.  */
3697
3698 /* Override any gcc2 internal prototype to avoid an error.  */
3699 #ifdef __cplusplus
3700 extern "C"
3701 #endif
3702 /* We use char because int might match the return type of a gcc2
3703    builtin and then its argument prototype would still apply.  */
3704 char gcvt ();
3705 int
3706 main ()
3707 {
3708 gcvt ();
3709   ;
3710   return 0;
3711 }
3712 _ACEOF
3713 rm -f conftest.$ac_objext conftest$ac_exeext
3714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3715   (eval $ac_link) 2>conftest.er1
3716   ac_status=$?
3717   grep -v '^ *+' conftest.er1 >conftest.err
3718   rm -f conftest.er1
3719   cat conftest.err >&5
3720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721   (exit $ac_status); } &&
3722          { ac_try='test -z "$ac_c_werror_flag"
3723                          || test ! -s conftest.err'
3724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725   (eval $ac_try) 2>&5
3726   ac_status=$?
3727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728   (exit $ac_status); }; } &&
3729          { ac_try='test -s conftest$ac_exeext'
3730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731   (eval $ac_try) 2>&5
3732   ac_status=$?
3733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734   (exit $ac_status); }; }; then
3735   ac_cv_lib_m_gcvt=yes
3736 else
3737   echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3739
3740 ac_cv_lib_m_gcvt=no
3741 fi
3742 rm -f conftest.err conftest.$ac_objext \
3743       conftest$ac_exeext conftest.$ac_ext
3744 LIBS=$ac_check_lib_save_LIBS
3745 fi
3746 echo "$as_me:$LINENO: result: $ac_cv_lib_m_gcvt" >&5
3747 echo "${ECHO_T}$ac_cv_lib_m_gcvt" >&6
3748 if test $ac_cv_lib_m_gcvt = yes; then
3749   cat >>confdefs.h <<_ACEOF
3750 #define HAVE_LIBM 1
3751 _ACEOF
3752
3753   LIBS="-lm $LIBS"
3754
3755 fi
3756
3757 fi
3758 done
3759
3760
3761 echo "$as_me:$LINENO: checking for strerror" >&5
3762 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
3763 if test "${ac_cv_func_strerror+set}" = set; then
3764   echo $ECHO_N "(cached) $ECHO_C" >&6
3765 else
3766   cat >conftest.$ac_ext <<_ACEOF
3767 /* confdefs.h.  */
3768 _ACEOF
3769 cat confdefs.h >>conftest.$ac_ext
3770 cat >>conftest.$ac_ext <<_ACEOF
3771 /* end confdefs.h.  */
3772 /* Define strerror to an innocuous variant, in case <limits.h> declares strerror.
3773    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3774 #define strerror innocuous_strerror
3775
3776 /* System header to define __stub macros and hopefully few prototypes,
3777     which can conflict with char strerror (); below.
3778     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3779     <limits.h> exists even on freestanding compilers.  */
3780
3781 #ifdef __STDC__
3782 # include <limits.h>
3783 #else
3784 # include <assert.h>
3785 #endif
3786
3787 #undef strerror
3788
3789 /* Override any gcc2 internal prototype to avoid an error.  */
3790 #ifdef __cplusplus
3791 extern "C"
3792 {
3793 #endif
3794 /* We use char because int might match the return type of a gcc2
3795    builtin and then its argument prototype would still apply.  */
3796 char strerror ();
3797 /* The GNU C library defines this for functions which it implements
3798     to always fail with ENOSYS.  Some functions are actually named
3799     something starting with __ and the normal name is an alias.  */
3800 #if defined (__stub_strerror) || defined (__stub___strerror)
3801 choke me
3802 #else
3803 char (*f) () = strerror;
3804 #endif
3805 #ifdef __cplusplus
3806 }
3807 #endif
3808
3809 int
3810 main ()
3811 {
3812 return f != strerror;
3813   ;
3814   return 0;
3815 }
3816 _ACEOF
3817 rm -f conftest.$ac_objext conftest$ac_exeext
3818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3819   (eval $ac_link) 2>conftest.er1
3820   ac_status=$?
3821   grep -v '^ *+' conftest.er1 >conftest.err
3822   rm -f conftest.er1
3823   cat conftest.err >&5
3824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825   (exit $ac_status); } &&
3826          { ac_try='test -z "$ac_c_werror_flag"
3827                          || test ! -s conftest.err'
3828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3829   (eval $ac_try) 2>&5
3830   ac_status=$?
3831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832   (exit $ac_status); }; } &&
3833          { ac_try='test -s conftest$ac_exeext'
3834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835   (eval $ac_try) 2>&5
3836   ac_status=$?
3837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838   (exit $ac_status); }; }; then
3839   ac_cv_func_strerror=yes
3840 else
3841   echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3843
3844 ac_cv_func_strerror=no
3845 fi
3846 rm -f conftest.err conftest.$ac_objext \
3847       conftest$ac_exeext conftest.$ac_ext
3848 fi
3849 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
3850 echo "${ECHO_T}$ac_cv_func_strerror" >&6
3851 if test $ac_cv_func_strerror = yes; then
3852   cat >>confdefs.h <<\_ACEOF
3853 #define HAVE_STRERROR 1
3854 _ACEOF
3855
3856 fi
3857
3858 echo "$as_me:$LINENO: checking for strcasecmp" >&5
3859 echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
3860 if test "${ac_cv_func_strcasecmp+set}" = set; then
3861   echo $ECHO_N "(cached) $ECHO_C" >&6
3862 else
3863   cat >conftest.$ac_ext <<_ACEOF
3864 /* confdefs.h.  */
3865 _ACEOF
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h.  */
3869 /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
3870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3871 #define strcasecmp innocuous_strcasecmp
3872
3873 /* System header to define __stub macros and hopefully few prototypes,
3874     which can conflict with char strcasecmp (); below.
3875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3876     <limits.h> exists even on freestanding compilers.  */
3877
3878 #ifdef __STDC__
3879 # include <limits.h>
3880 #else
3881 # include <assert.h>
3882 #endif
3883
3884 #undef strcasecmp
3885
3886 /* Override any gcc2 internal prototype to avoid an error.  */
3887 #ifdef __cplusplus
3888 extern "C"
3889 {
3890 #endif
3891 /* We use char because int might match the return type of a gcc2
3892    builtin and then its argument prototype would still apply.  */
3893 char strcasecmp ();
3894 /* The GNU C library defines this for functions which it implements
3895     to always fail with ENOSYS.  Some functions are actually named
3896     something starting with __ and the normal name is an alias.  */
3897 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
3898 choke me
3899 #else
3900 char (*f) () = strcasecmp;
3901 #endif
3902 #ifdef __cplusplus
3903 }
3904 #endif
3905
3906 int
3907 main ()
3908 {
3909 return f != strcasecmp;
3910   ;
3911   return 0;
3912 }
3913 _ACEOF
3914 rm -f conftest.$ac_objext conftest$ac_exeext
3915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3916   (eval $ac_link) 2>conftest.er1
3917   ac_status=$?
3918   grep -v '^ *+' conftest.er1 >conftest.err
3919   rm -f conftest.er1
3920   cat conftest.err >&5
3921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922   (exit $ac_status); } &&
3923          { ac_try='test -z "$ac_c_werror_flag"
3924                          || test ! -s conftest.err'
3925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926   (eval $ac_try) 2>&5
3927   ac_status=$?
3928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929   (exit $ac_status); }; } &&
3930          { ac_try='test -s conftest$ac_exeext'
3931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932   (eval $ac_try) 2>&5
3933   ac_status=$?
3934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935   (exit $ac_status); }; }; then
3936   ac_cv_func_strcasecmp=yes
3937 else
3938   echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.$ac_ext >&5
3940
3941 ac_cv_func_strcasecmp=no
3942 fi
3943 rm -f conftest.err conftest.$ac_objext \
3944       conftest$ac_exeext conftest.$ac_ext
3945 fi
3946 echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
3947 echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
3948 if test $ac_cv_func_strcasecmp = yes; then
3949   cat >>confdefs.h <<\_ACEOF
3950 #define HAVE_STRCASECMP 1
3951 _ACEOF
3952
3953 fi
3954
3955 echo "$as_me:$LINENO: checking for socket" >&5
3956 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3957 if test "${ac_cv_func_socket+set}" = set; then
3958   echo $ECHO_N "(cached) $ECHO_C" >&6
3959 else
3960   cat >conftest.$ac_ext <<_ACEOF
3961 /* confdefs.h.  */
3962 _ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h.  */
3966 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3967    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3968 #define socket innocuous_socket
3969
3970 /* System header to define __stub macros and hopefully few prototypes,
3971     which can conflict with char socket (); below.
3972     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3973     <limits.h> exists even on freestanding compilers.  */
3974
3975 #ifdef __STDC__
3976 # include <limits.h>
3977 #else
3978 # include <assert.h>
3979 #endif
3980
3981 #undef socket
3982
3983 /* Override any gcc2 internal prototype to avoid an error.  */
3984 #ifdef __cplusplus
3985 extern "C"
3986 {
3987 #endif
3988 /* We use char because int might match the return type of a gcc2
3989    builtin and then its argument prototype would still apply.  */
3990 char socket ();
3991 /* The GNU C library defines this for functions which it implements
3992     to always fail with ENOSYS.  Some functions are actually named
3993     something starting with __ and the normal name is an alias.  */
3994 #if defined (__stub_socket) || defined (__stub___socket)
3995 choke me
3996 #else
3997 char (*f) () = socket;
3998 #endif
3999 #ifdef __cplusplus
4000 }
4001 #endif
4002
4003 int
4004 main ()
4005 {
4006 return f != socket;
4007   ;
4008   return 0;
4009 }
4010 _ACEOF
4011 rm -f conftest.$ac_objext conftest$ac_exeext
4012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4013   (eval $ac_link) 2>conftest.er1
4014   ac_status=$?
4015   grep -v '^ *+' conftest.er1 >conftest.err
4016   rm -f conftest.er1
4017   cat conftest.err >&5
4018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019   (exit $ac_status); } &&
4020          { ac_try='test -z "$ac_c_werror_flag"
4021                          || test ! -s conftest.err'
4022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023   (eval $ac_try) 2>&5
4024   ac_status=$?
4025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026   (exit $ac_status); }; } &&
4027          { ac_try='test -s conftest$ac_exeext'
4028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029   (eval $ac_try) 2>&5
4030   ac_status=$?
4031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032   (exit $ac_status); }; }; then
4033   ac_cv_func_socket=yes
4034 else
4035   echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4037
4038 ac_cv_func_socket=no
4039 fi
4040 rm -f conftest.err conftest.$ac_objext \
4041       conftest$ac_exeext conftest.$ac_ext
4042 fi
4043 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4044 echo "${ECHO_T}$ac_cv_func_socket" >&6
4045 if test $ac_cv_func_socket = yes; then
4046   :
4047 else
4048
4049 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4050 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4051 if test "${ac_cv_lib_socket_socket+set}" = set; then
4052   echo $ECHO_N "(cached) $ECHO_C" >&6
4053 else
4054   ac_check_lib_save_LIBS=$LIBS
4055 LIBS="-lsocket  $LIBS"
4056 cat >conftest.$ac_ext <<_ACEOF
4057 /* confdefs.h.  */
4058 _ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h.  */
4062
4063 /* Override any gcc2 internal prototype to avoid an error.  */
4064 #ifdef __cplusplus
4065 extern "C"
4066 #endif
4067 /* We use char because int might match the return type of a gcc2
4068    builtin and then its argument prototype would still apply.  */
4069 char socket ();
4070 int
4071 main ()
4072 {
4073 socket ();
4074   ;
4075   return 0;
4076 }
4077 _ACEOF
4078 rm -f conftest.$ac_objext conftest$ac_exeext
4079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4080   (eval $ac_link) 2>conftest.er1
4081   ac_status=$?
4082   grep -v '^ *+' conftest.er1 >conftest.err
4083   rm -f conftest.er1
4084   cat conftest.err >&5
4085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086   (exit $ac_status); } &&
4087          { ac_try='test -z "$ac_c_werror_flag"
4088                          || test ! -s conftest.err'
4089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4090   (eval $ac_try) 2>&5
4091   ac_status=$?
4092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093   (exit $ac_status); }; } &&
4094          { ac_try='test -s conftest$ac_exeext'
4095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096   (eval $ac_try) 2>&5
4097   ac_status=$?
4098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099   (exit $ac_status); }; }; then
4100   ac_cv_lib_socket_socket=yes
4101 else
4102   echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4104
4105 ac_cv_lib_socket_socket=no
4106 fi
4107 rm -f conftest.err conftest.$ac_objext \
4108       conftest$ac_exeext conftest.$ac_ext
4109 LIBS=$ac_check_lib_save_LIBS
4110 fi
4111 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4112 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4113 if test $ac_cv_lib_socket_socket = yes; then
4114   cat >>confdefs.h <<_ACEOF
4115 #define HAVE_LIBSOCKET 1
4116 _ACEOF
4117
4118   LIBS="-lsocket $LIBS"
4119
4120 else
4121
4122 echo "$as_me:$LINENO: checking for socket in -lnsl" >&5
4123 echo $ECHO_N "checking for socket in -lnsl... $ECHO_C" >&6
4124 if test "${ac_cv_lib_nsl_socket+set}" = set; then
4125   echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127   ac_check_lib_save_LIBS=$LIBS
4128 LIBS="-lnsl  $LIBS"
4129 cat >conftest.$ac_ext <<_ACEOF
4130 /* confdefs.h.  */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h.  */
4135
4136 /* Override any gcc2 internal prototype to avoid an error.  */
4137 #ifdef __cplusplus
4138 extern "C"
4139 #endif
4140 /* We use char because int might match the return type of a gcc2
4141    builtin and then its argument prototype would still apply.  */
4142 char socket ();
4143 int
4144 main ()
4145 {
4146 socket ();
4147   ;
4148   return 0;
4149 }
4150 _ACEOF
4151 rm -f conftest.$ac_objext conftest$ac_exeext
4152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4153   (eval $ac_link) 2>conftest.er1
4154   ac_status=$?
4155   grep -v '^ *+' conftest.er1 >conftest.err
4156   rm -f conftest.er1
4157   cat conftest.err >&5
4158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159   (exit $ac_status); } &&
4160          { ac_try='test -z "$ac_c_werror_flag"
4161                          || test ! -s conftest.err'
4162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163   (eval $ac_try) 2>&5
4164   ac_status=$?
4165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166   (exit $ac_status); }; } &&
4167          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
4173   ac_cv_lib_nsl_socket=yes
4174 else
4175   echo "$as_me: failed program was:" >&5
4176 sed 's/^/| /' conftest.$ac_ext >&5
4177
4178 ac_cv_lib_nsl_socket=no
4179 fi
4180 rm -f conftest.err conftest.$ac_objext \
4181       conftest$ac_exeext conftest.$ac_ext
4182 LIBS=$ac_check_lib_save_LIBS
4183 fi
4184 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_socket" >&5
4185 echo "${ECHO_T}$ac_cv_lib_nsl_socket" >&6
4186 if test $ac_cv_lib_nsl_socket = yes; then
4187   cat >>confdefs.h <<_ACEOF
4188 #define HAVE_LIBNSL 1
4189 _ACEOF
4190
4191   LIBS="-lnsl $LIBS"
4192
4193 fi
4194
4195 fi
4196
4197 fi
4198
4199 echo "$as_me:$LINENO: checking for inet_aton" >&5
4200 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
4201 if test "${ac_cv_func_inet_aton+set}" = set; then
4202   echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204   cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h.  */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h.  */
4210 /* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
4211    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4212 #define inet_aton innocuous_inet_aton
4213
4214 /* System header to define __stub macros and hopefully few prototypes,
4215     which can conflict with char inet_aton (); below.
4216     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4217     <limits.h> exists even on freestanding compilers.  */
4218
4219 #ifdef __STDC__
4220 # include <limits.h>
4221 #else
4222 # include <assert.h>
4223 #endif
4224
4225 #undef inet_aton
4226
4227 /* Override any gcc2 internal prototype to avoid an error.  */
4228 #ifdef __cplusplus
4229 extern "C"
4230 {
4231 #endif
4232 /* We use char because int might match the return type of a gcc2
4233    builtin and then its argument prototype would still apply.  */
4234 char inet_aton ();
4235 /* The GNU C library defines this for functions which it implements
4236     to always fail with ENOSYS.  Some functions are actually named
4237     something starting with __ and the normal name is an alias.  */
4238 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
4239 choke me
4240 #else
4241 char (*f) () = inet_aton;
4242 #endif
4243 #ifdef __cplusplus
4244 }
4245 #endif
4246
4247 int
4248 main ()
4249 {
4250 return f != inet_aton;
4251   ;
4252   return 0;
4253 }
4254 _ACEOF
4255 rm -f conftest.$ac_objext conftest$ac_exeext
4256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4257   (eval $ac_link) 2>conftest.er1
4258   ac_status=$?
4259   grep -v '^ *+' conftest.er1 >conftest.err
4260   rm -f conftest.er1
4261   cat conftest.err >&5
4262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263   (exit $ac_status); } &&
4264          { ac_try='test -z "$ac_c_werror_flag"
4265                          || test ! -s conftest.err'
4266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267   (eval $ac_try) 2>&5
4268   ac_status=$?
4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270   (exit $ac_status); }; } &&
4271          { ac_try='test -s conftest$ac_exeext'
4272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273   (eval $ac_try) 2>&5
4274   ac_status=$?
4275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276   (exit $ac_status); }; }; then
4277   ac_cv_func_inet_aton=yes
4278 else
4279   echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4281
4282 ac_cv_func_inet_aton=no
4283 fi
4284 rm -f conftest.err conftest.$ac_objext \
4285       conftest$ac_exeext conftest.$ac_ext
4286 fi
4287 echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
4288 echo "${ECHO_T}$ac_cv_func_inet_aton" >&6
4289 if test $ac_cv_func_inet_aton = yes; then
4290   :
4291 else
4292
4293 echo "$as_me:$LINENO: checking for inet_aton in -lnsl" >&5
4294 echo $ECHO_N "checking for inet_aton in -lnsl... $ECHO_C" >&6
4295 if test "${ac_cv_lib_nsl_inet_aton+set}" = set; then
4296   echo $ECHO_N "(cached) $ECHO_C" >&6
4297 else
4298   ac_check_lib_save_LIBS=$LIBS
4299 LIBS="-lnsl  $LIBS"
4300 cat >conftest.$ac_ext <<_ACEOF
4301 /* confdefs.h.  */
4302 _ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h.  */
4306
4307 /* Override any gcc2 internal prototype to avoid an error.  */
4308 #ifdef __cplusplus
4309 extern "C"
4310 #endif
4311 /* We use char because int might match the return type of a gcc2
4312    builtin and then its argument prototype would still apply.  */
4313 char inet_aton ();
4314 int
4315 main ()
4316 {
4317 inet_aton ();
4318   ;
4319   return 0;
4320 }
4321 _ACEOF
4322 rm -f conftest.$ac_objext conftest$ac_exeext
4323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4324   (eval $ac_link) 2>conftest.er1
4325   ac_status=$?
4326   grep -v '^ *+' conftest.er1 >conftest.err
4327   rm -f conftest.er1
4328   cat conftest.err >&5
4329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330   (exit $ac_status); } &&
4331          { ac_try='test -z "$ac_c_werror_flag"
4332                          || test ! -s conftest.err'
4333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334   (eval $ac_try) 2>&5
4335   ac_status=$?
4336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337   (exit $ac_status); }; } &&
4338          { ac_try='test -s conftest$ac_exeext'
4339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340   (eval $ac_try) 2>&5
4341   ac_status=$?
4342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343   (exit $ac_status); }; }; then
4344   ac_cv_lib_nsl_inet_aton=yes
4345 else
4346   echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4348
4349 ac_cv_lib_nsl_inet_aton=no
4350 fi
4351 rm -f conftest.err conftest.$ac_objext \
4352       conftest$ac_exeext conftest.$ac_ext
4353 LIBS=$ac_check_lib_save_LIBS
4354 fi
4355 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_aton" >&5
4356 echo "${ECHO_T}$ac_cv_lib_nsl_inet_aton" >&6
4357 if test $ac_cv_lib_nsl_inet_aton = yes; then
4358   cat >>confdefs.h <<_ACEOF
4359 #define HAVE_LIBNSL 1
4360 _ACEOF
4361
4362   LIBS="-lnsl $LIBS"
4363
4364 else
4365
4366 echo "$as_me:$LINENO: checking for inet_aton in -lsocket" >&5
4367 echo $ECHO_N "checking for inet_aton in -lsocket... $ECHO_C" >&6
4368 if test "${ac_cv_lib_socket_inet_aton+set}" = set; then
4369   echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371   ac_check_lib_save_LIBS=$LIBS
4372 LIBS="-lsocket  $LIBS"
4373 cat >conftest.$ac_ext <<_ACEOF
4374 /* confdefs.h.  */
4375 _ACEOF
4376 cat confdefs.h >>conftest.$ac_ext
4377 cat >>conftest.$ac_ext <<_ACEOF
4378 /* end confdefs.h.  */
4379
4380 /* Override any gcc2 internal prototype to avoid an error.  */
4381 #ifdef __cplusplus
4382 extern "C"
4383 #endif
4384 /* We use char because int might match the return type of a gcc2
4385    builtin and then its argument prototype would still apply.  */
4386 char inet_aton ();
4387 int
4388 main ()
4389 {
4390 inet_aton ();
4391   ;
4392   return 0;
4393 }
4394 _ACEOF
4395 rm -f conftest.$ac_objext conftest$ac_exeext
4396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4397   (eval $ac_link) 2>conftest.er1
4398   ac_status=$?
4399   grep -v '^ *+' conftest.er1 >conftest.err
4400   rm -f conftest.er1
4401   cat conftest.err >&5
4402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403   (exit $ac_status); } &&
4404          { ac_try='test -z "$ac_c_werror_flag"
4405                          || test ! -s conftest.err'
4406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407   (eval $ac_try) 2>&5
4408   ac_status=$?
4409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410   (exit $ac_status); }; } &&
4411          { ac_try='test -s conftest$ac_exeext'
4412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413   (eval $ac_try) 2>&5
4414   ac_status=$?
4415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416   (exit $ac_status); }; }; then
4417   ac_cv_lib_socket_inet_aton=yes
4418 else
4419   echo "$as_me: failed program was:" >&5
4420 sed 's/^/| /' conftest.$ac_ext >&5
4421
4422 ac_cv_lib_socket_inet_aton=no
4423 fi
4424 rm -f conftest.err conftest.$ac_objext \
4425       conftest$ac_exeext conftest.$ac_ext
4426 LIBS=$ac_check_lib_save_LIBS
4427 fi
4428 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_aton" >&5
4429 echo "${ECHO_T}$ac_cv_lib_socket_inet_aton" >&6
4430 if test $ac_cv_lib_socket_inet_aton = yes; then
4431   cat >>confdefs.h <<_ACEOF
4432 #define HAVE_LIBSOCKET 1
4433 _ACEOF
4434
4435   LIBS="-lsocket $LIBS"
4436
4437 else
4438
4439 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
4440 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
4441 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
4442   echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444   ac_check_lib_save_LIBS=$LIBS
4445 LIBS="-lresolv  $LIBS"
4446 cat >conftest.$ac_ext <<_ACEOF
4447 /* confdefs.h.  */
4448 _ACEOF
4449 cat confdefs.h >>conftest.$ac_ext
4450 cat >>conftest.$ac_ext <<_ACEOF
4451 /* end confdefs.h.  */
4452
4453 /* Override any gcc2 internal prototype to avoid an error.  */
4454 #ifdef __cplusplus
4455 extern "C"
4456 #endif
4457 /* We use char because int might match the return type of a gcc2
4458    builtin and then its argument prototype would still apply.  */
4459 char inet_aton ();
4460 int
4461 main ()
4462 {
4463 inet_aton ();
4464   ;
4465   return 0;
4466 }
4467 _ACEOF
4468 rm -f conftest.$ac_objext conftest$ac_exeext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4470   (eval $ac_link) 2>conftest.er1
4471   ac_status=$?
4472   grep -v '^ *+' conftest.er1 >conftest.err
4473   rm -f conftest.er1
4474   cat conftest.err >&5
4475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476   (exit $ac_status); } &&
4477          { ac_try='test -z "$ac_c_werror_flag"
4478                          || test ! -s conftest.err'
4479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480   (eval $ac_try) 2>&5
4481   ac_status=$?
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); }; } &&
4484          { ac_try='test -s conftest$ac_exeext'
4485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486   (eval $ac_try) 2>&5
4487   ac_status=$?
4488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489   (exit $ac_status); }; }; then
4490   ac_cv_lib_resolv_inet_aton=yes
4491 else
4492   echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4494
4495 ac_cv_lib_resolv_inet_aton=no
4496 fi
4497 rm -f conftest.err conftest.$ac_objext \
4498       conftest$ac_exeext conftest.$ac_ext
4499 LIBS=$ac_check_lib_save_LIBS
4500 fi
4501 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
4502 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
4503 if test $ac_cv_lib_resolv_inet_aton = yes; then
4504   cat >>confdefs.h <<_ACEOF
4505 #define HAVE_LIBRESOLV 1
4506 _ACEOF
4507
4508   LIBS="-lresolv $LIBS"
4509
4510 else
4511   cat >>confdefs.h <<\_ACEOF
4512 #define NO_INET_ATON 1
4513 _ACEOF
4514
4515 fi
4516
4517 fi
4518
4519 fi
4520
4521 fi
4522
4523 echo "$as_me:$LINENO: checking for setenv" >&5
4524 echo $ECHO_N "checking for setenv... $ECHO_C" >&6
4525 if test "${ac_cv_func_setenv+set}" = set; then
4526   echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528   cat >conftest.$ac_ext <<_ACEOF
4529 /* confdefs.h.  */
4530 _ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h.  */
4534 /* Define setenv to an innocuous variant, in case <limits.h> declares setenv.
4535    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4536 #define setenv innocuous_setenv
4537
4538 /* System header to define __stub macros and hopefully few prototypes,
4539     which can conflict with char setenv (); below.
4540     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4541     <limits.h> exists even on freestanding compilers.  */
4542
4543 #ifdef __STDC__
4544 # include <limits.h>
4545 #else
4546 # include <assert.h>
4547 #endif
4548
4549 #undef setenv
4550
4551 /* Override any gcc2 internal prototype to avoid an error.  */
4552 #ifdef __cplusplus
4553 extern "C"
4554 {
4555 #endif
4556 /* We use char because int might match the return type of a gcc2
4557    builtin and then its argument prototype would still apply.  */
4558 char setenv ();
4559 /* The GNU C library defines this for functions which it implements
4560     to always fail with ENOSYS.  Some functions are actually named
4561     something starting with __ and the normal name is an alias.  */
4562 #if defined (__stub_setenv) || defined (__stub___setenv)
4563 choke me
4564 #else
4565 char (*f) () = setenv;
4566 #endif
4567 #ifdef __cplusplus
4568 }
4569 #endif
4570
4571 int
4572 main ()
4573 {
4574 return f != setenv;
4575   ;
4576   return 0;
4577 }
4578 _ACEOF
4579 rm -f conftest.$ac_objext conftest$ac_exeext
4580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4581   (eval $ac_link) 2>conftest.er1
4582   ac_status=$?
4583   grep -v '^ *+' conftest.er1 >conftest.err
4584   rm -f conftest.er1
4585   cat conftest.err >&5
4586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587   (exit $ac_status); } &&
4588          { ac_try='test -z "$ac_c_werror_flag"
4589                          || test ! -s conftest.err'
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); }; } &&
4595          { ac_try='test -s conftest$ac_exeext'
4596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597   (eval $ac_try) 2>&5
4598   ac_status=$?
4599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600   (exit $ac_status); }; }; then
4601   ac_cv_func_setenv=yes
4602 else
4603   echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4605
4606 ac_cv_func_setenv=no
4607 fi
4608 rm -f conftest.err conftest.$ac_objext \
4609       conftest$ac_exeext conftest.$ac_ext
4610 fi
4611 echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5
4612 echo "${ECHO_T}$ac_cv_func_setenv" >&6
4613 if test $ac_cv_func_setenv = yes; then
4614   cat >>confdefs.h <<\_ACEOF
4615 #define HAVE_SETENV 1
4616 _ACEOF
4617
4618 fi
4619
4620 echo "$as_me:$LINENO: checking for strsignal" >&5
4621 echo $ECHO_N "checking for strsignal... $ECHO_C" >&6
4622 if test "${ac_cv_func_strsignal+set}" = set; then
4623   echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625   cat >conftest.$ac_ext <<_ACEOF
4626 /* confdefs.h.  */
4627 _ACEOF
4628 cat confdefs.h >>conftest.$ac_ext
4629 cat >>conftest.$ac_ext <<_ACEOF
4630 /* end confdefs.h.  */
4631 /* Define strsignal to an innocuous variant, in case <limits.h> declares strsignal.
4632    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4633 #define strsignal innocuous_strsignal
4634
4635 /* System header to define __stub macros and hopefully few prototypes,
4636     which can conflict with char strsignal (); below.
4637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4638     <limits.h> exists even on freestanding compilers.  */
4639
4640 #ifdef __STDC__
4641 # include <limits.h>
4642 #else
4643 # include <assert.h>
4644 #endif
4645
4646 #undef strsignal
4647
4648 /* Override any gcc2 internal prototype to avoid an error.  */
4649 #ifdef __cplusplus
4650 extern "C"
4651 {
4652 #endif
4653 /* We use char because int might match the return type of a gcc2
4654    builtin and then its argument prototype would still apply.  */
4655 char strsignal ();
4656 /* The GNU C library defines this for functions which it implements
4657     to always fail with ENOSYS.  Some functions are actually named
4658     something starting with __ and the normal name is an alias.  */
4659 #if defined (__stub_strsignal) || defined (__stub___strsignal)
4660 choke me
4661 #else
4662 char (*f) () = strsignal;
4663 #endif
4664 #ifdef __cplusplus
4665 }
4666 #endif
4667
4668 int
4669 main ()
4670 {
4671 return f != strsignal;
4672   ;
4673   return 0;
4674 }
4675 _ACEOF
4676 rm -f conftest.$ac_objext conftest$ac_exeext
4677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4678   (eval $ac_link) 2>conftest.er1
4679   ac_status=$?
4680   grep -v '^ *+' conftest.er1 >conftest.err
4681   rm -f conftest.er1
4682   cat conftest.err >&5
4683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684   (exit $ac_status); } &&
4685          { ac_try='test -z "$ac_c_werror_flag"
4686                          || test ! -s conftest.err'
4687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688   (eval $ac_try) 2>&5
4689   ac_status=$?
4690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691   (exit $ac_status); }; } &&
4692          { ac_try='test -s conftest$ac_exeext'
4693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694   (eval $ac_try) 2>&5
4695   ac_status=$?
4696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697   (exit $ac_status); }; }; then
4698   ac_cv_func_strsignal=yes
4699 else
4700   echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.$ac_ext >&5
4702
4703 ac_cv_func_strsignal=no
4704 fi
4705 rm -f conftest.err conftest.$ac_objext \
4706       conftest$ac_exeext conftest.$ac_ext
4707 fi
4708 echo "$as_me:$LINENO: result: $ac_cv_func_strsignal" >&5
4709 echo "${ECHO_T}$ac_cv_func_strsignal" >&6
4710 if test $ac_cv_func_strsignal = yes; then
4711   cat >>confdefs.h <<\_ACEOF
4712 #define HAVE_STRSIGNAL 1
4713 _ACEOF
4714
4715 fi
4716
4717 echo "$as_me:$LINENO: checking for sys_siglist in -lc" >&5
4718 echo $ECHO_N "checking for sys_siglist in -lc... $ECHO_C" >&6
4719 if test "${ac_cv_lib_c_sys_siglist+set}" = set; then
4720   echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722   ac_check_lib_save_LIBS=$LIBS
4723 LIBS="-lc  $LIBS"
4724 cat >conftest.$ac_ext <<_ACEOF
4725 /* confdefs.h.  */
4726 _ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h.  */
4730
4731 /* Override any gcc2 internal prototype to avoid an error.  */
4732 #ifdef __cplusplus
4733 extern "C"
4734 #endif
4735 /* We use char because int might match the return type of a gcc2
4736    builtin and then its argument prototype would still apply.  */
4737 char sys_siglist ();
4738 int
4739 main ()
4740 {
4741 sys_siglist ();
4742   ;
4743   return 0;
4744 }
4745 _ACEOF
4746 rm -f conftest.$ac_objext conftest$ac_exeext
4747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4748   (eval $ac_link) 2>conftest.er1
4749   ac_status=$?
4750   grep -v '^ *+' conftest.er1 >conftest.err
4751   rm -f conftest.er1
4752   cat conftest.err >&5
4753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754   (exit $ac_status); } &&
4755          { ac_try='test -z "$ac_c_werror_flag"
4756                          || test ! -s conftest.err'
4757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758   (eval $ac_try) 2>&5
4759   ac_status=$?
4760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761   (exit $ac_status); }; } &&
4762          { ac_try='test -s conftest$ac_exeext'
4763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764   (eval $ac_try) 2>&5
4765   ac_status=$?
4766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767   (exit $ac_status); }; }; then
4768   ac_cv_lib_c_sys_siglist=yes
4769 else
4770   echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4772
4773 ac_cv_lib_c_sys_siglist=no
4774 fi
4775 rm -f conftest.err conftest.$ac_objext \
4776       conftest$ac_exeext conftest.$ac_ext
4777 LIBS=$ac_check_lib_save_LIBS
4778 fi
4779 echo "$as_me:$LINENO: result: $ac_cv_lib_c_sys_siglist" >&5
4780 echo "${ECHO_T}$ac_cv_lib_c_sys_siglist" >&6
4781 if test $ac_cv_lib_c_sys_siglist = yes; then
4782   cat >>confdefs.h <<\_ACEOF
4783 #define HAVE_SYS_SIGLIST 1
4784 _ACEOF
4785
4786 fi
4787
4788 echo "$as_me:$LINENO: checking for gai_strerror" >&5
4789 echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6
4790 if test "${ac_cv_func_gai_strerror+set}" = set; then
4791   echo $ECHO_N "(cached) $ECHO_C" >&6
4792 else
4793   cat >conftest.$ac_ext <<_ACEOF
4794 /* confdefs.h.  */
4795 _ACEOF
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h.  */
4799 /* Define gai_strerror to an innocuous variant, in case <limits.h> declares gai_strerror.
4800    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4801 #define gai_strerror innocuous_gai_strerror
4802
4803 /* System header to define __stub macros and hopefully few prototypes,
4804     which can conflict with char gai_strerror (); below.
4805     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4806     <limits.h> exists even on freestanding compilers.  */
4807
4808 #ifdef __STDC__
4809 # include <limits.h>
4810 #else
4811 # include <assert.h>
4812 #endif
4813
4814 #undef gai_strerror
4815
4816 /* Override any gcc2 internal prototype to avoid an error.  */
4817 #ifdef __cplusplus
4818 extern "C"
4819 {
4820 #endif
4821 /* We use char because int might match the return type of a gcc2
4822    builtin and then its argument prototype would still apply.  */
4823 char gai_strerror ();
4824 /* The GNU C library defines this for functions which it implements
4825     to always fail with ENOSYS.  Some functions are actually named
4826     something starting with __ and the normal name is an alias.  */
4827 #if defined (__stub_gai_strerror) || defined (__stub___gai_strerror)
4828 choke me
4829 #else
4830 char (*f) () = gai_strerror;
4831 #endif
4832 #ifdef __cplusplus
4833 }
4834 #endif
4835
4836 int
4837 main ()
4838 {
4839 return f != gai_strerror;
4840   ;
4841   return 0;
4842 }
4843 _ACEOF
4844 rm -f conftest.$ac_objext conftest$ac_exeext
4845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4846   (eval $ac_link) 2>conftest.er1
4847   ac_status=$?
4848   grep -v '^ *+' conftest.er1 >conftest.err
4849   rm -f conftest.er1
4850   cat conftest.err >&5
4851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852   (exit $ac_status); } &&
4853          { ac_try='test -z "$ac_c_werror_flag"
4854                          || test ! -s conftest.err'
4855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856   (eval $ac_try) 2>&5
4857   ac_status=$?
4858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859   (exit $ac_status); }; } &&
4860          { ac_try='test -s conftest$ac_exeext'
4861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862   (eval $ac_try) 2>&5
4863   ac_status=$?
4864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865   (exit $ac_status); }; }; then
4866   ac_cv_func_gai_strerror=yes
4867 else
4868   echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4870
4871 ac_cv_func_gai_strerror=no
4872 fi
4873 rm -f conftest.err conftest.$ac_objext \
4874       conftest$ac_exeext conftest.$ac_ext
4875 fi
4876 echo "$as_me:$LINENO: result: $ac_cv_func_gai_strerror" >&5
4877 echo "${ECHO_T}$ac_cv_func_gai_strerror" >&6
4878 if test $ac_cv_func_gai_strerror = yes; then
4879   cat >>confdefs.h <<\_ACEOF
4880 #define HAVE_GAI_STRERROR 1
4881 _ACEOF
4882
4883 fi
4884
4885 echo "$as_me:$LINENO: checking for freeaddrinfo" >&5
4886 echo $ECHO_N "checking for freeaddrinfo... $ECHO_C" >&6
4887 if test "${ac_cv_func_freeaddrinfo+set}" = set; then
4888   echo $ECHO_N "(cached) $ECHO_C" >&6
4889 else
4890   cat >conftest.$ac_ext <<_ACEOF
4891 /* confdefs.h.  */
4892 _ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h.  */
4896 /* Define freeaddrinfo to an innocuous variant, in case <limits.h> declares freeaddrinfo.
4897    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4898 #define freeaddrinfo innocuous_freeaddrinfo
4899
4900 /* System header to define __stub macros and hopefully few prototypes,
4901     which can conflict with char freeaddrinfo (); below.
4902     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4903     <limits.h> exists even on freestanding compilers.  */
4904
4905 #ifdef __STDC__
4906 # include <limits.h>
4907 #else
4908 # include <assert.h>
4909 #endif
4910
4911 #undef freeaddrinfo
4912
4913 /* Override any gcc2 internal prototype to avoid an error.  */
4914 #ifdef __cplusplus
4915 extern "C"
4916 {
4917 #endif
4918 /* We use char because int might match the return type of a gcc2
4919    builtin and then its argument prototype would still apply.  */
4920 char freeaddrinfo ();
4921 /* The GNU C library defines this for functions which it implements
4922     to always fail with ENOSYS.  Some functions are actually named
4923     something starting with __ and the normal name is an alias.  */
4924 #if defined (__stub_freeaddrinfo) || defined (__stub___freeaddrinfo)
4925 choke me
4926 #else
4927 char (*f) () = freeaddrinfo;
4928 #endif
4929 #ifdef __cplusplus
4930 }
4931 #endif
4932
4933 int
4934 main ()
4935 {
4936 return f != freeaddrinfo;
4937   ;
4938   return 0;
4939 }
4940 _ACEOF
4941 rm -f conftest.$ac_objext conftest$ac_exeext
4942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4943   (eval $ac_link) 2>conftest.er1
4944   ac_status=$?
4945   grep -v '^ *+' conftest.er1 >conftest.err
4946   rm -f conftest.er1
4947   cat conftest.err >&5
4948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949   (exit $ac_status); } &&
4950          { ac_try='test -z "$ac_c_werror_flag"
4951                          || test ! -s conftest.err'
4952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953   (eval $ac_try) 2>&5
4954   ac_status=$?
4955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956   (exit $ac_status); }; } &&
4957          { ac_try='test -s conftest$ac_exeext'
4958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959   (eval $ac_try) 2>&5
4960   ac_status=$?
4961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962   (exit $ac_status); }; }; then
4963   ac_cv_func_freeaddrinfo=yes
4964 else
4965   echo "$as_me: failed program was:" >&5
4966 sed 's/^/| /' conftest.$ac_ext >&5
4967
4968 ac_cv_func_freeaddrinfo=no
4969 fi
4970 rm -f conftest.err conftest.$ac_objext \
4971       conftest$ac_exeext conftest.$ac_ext
4972 fi
4973 echo "$as_me:$LINENO: result: $ac_cv_func_freeaddrinfo" >&5
4974 echo "${ECHO_T}$ac_cv_func_freeaddrinfo" >&6
4975 if test $ac_cv_func_freeaddrinfo = yes; then
4976   cat >>confdefs.h <<\_ACEOF
4977 #define HAVE_FREEADDRINFO 1
4978 _ACEOF
4979
4980 fi
4981
4982 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
4983 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
4984 if test "${ac_cv_func_getaddrinfo+set}" = set; then
4985   echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987   cat >conftest.$ac_ext <<_ACEOF
4988 /* confdefs.h.  */
4989 _ACEOF
4990 cat confdefs.h >>conftest.$ac_ext
4991 cat >>conftest.$ac_ext <<_ACEOF
4992 /* end confdefs.h.  */
4993 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
4994    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4995 #define getaddrinfo innocuous_getaddrinfo
4996
4997 /* System header to define __stub macros and hopefully few prototypes,
4998     which can conflict with char getaddrinfo (); below.
4999     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5000     <limits.h> exists even on freestanding compilers.  */
5001
5002 #ifdef __STDC__
5003 # include <limits.h>
5004 #else
5005 # include <assert.h>
5006 #endif
5007
5008 #undef getaddrinfo
5009
5010 /* Override any gcc2 internal prototype to avoid an error.  */
5011 #ifdef __cplusplus
5012 extern "C"
5013 {
5014 #endif
5015 /* We use char because int might match the return type of a gcc2
5016    builtin and then its argument prototype would still apply.  */
5017 char getaddrinfo ();
5018 /* The GNU C library defines this for functions which it implements
5019     to always fail with ENOSYS.  Some functions are actually named
5020     something starting with __ and the normal name is an alias.  */
5021 #if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
5022 choke me
5023 #else
5024 char (*f) () = getaddrinfo;
5025 #endif
5026 #ifdef __cplusplus
5027 }
5028 #endif
5029
5030 int
5031 main ()
5032 {
5033 return f != getaddrinfo;
5034   ;
5035   return 0;
5036 }
5037 _ACEOF
5038 rm -f conftest.$ac_objext conftest$ac_exeext
5039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5040   (eval $ac_link) 2>conftest.er1
5041   ac_status=$?
5042   grep -v '^ *+' conftest.er1 >conftest.err
5043   rm -f conftest.er1
5044   cat conftest.err >&5
5045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046   (exit $ac_status); } &&
5047          { ac_try='test -z "$ac_c_werror_flag"
5048                          || test ! -s conftest.err'
5049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050   (eval $ac_try) 2>&5
5051   ac_status=$?
5052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053   (exit $ac_status); }; } &&
5054          { ac_try='test -s conftest$ac_exeext'
5055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056   (eval $ac_try) 2>&5
5057   ac_status=$?
5058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059   (exit $ac_status); }; }; then
5060   ac_cv_func_getaddrinfo=yes
5061 else
5062   echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5064
5065 ac_cv_func_getaddrinfo=no
5066 fi
5067 rm -f conftest.err conftest.$ac_objext \
5068       conftest$ac_exeext conftest.$ac_ext
5069 fi
5070 echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
5071 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6
5072 if test $ac_cv_func_getaddrinfo = yes; then
5073   cat >>confdefs.h <<\_ACEOF
5074 #define HAVE_GETADDRINFO 1
5075 _ACEOF
5076
5077 fi
5078
5079
5080 ac_ext=c
5081 ac_cpp='$CPP $CPPFLAGS'
5082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5085 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5086 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5087 # On Suns, sometimes $CPP names a directory.
5088 if test -n "$CPP" && test -d "$CPP"; then
5089   CPP=
5090 fi
5091 if test -z "$CPP"; then
5092   if test "${ac_cv_prog_CPP+set}" = set; then
5093   echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095       # Double quotes because CPP needs to be expanded
5096     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5097     do
5098       ac_preproc_ok=false
5099 for ac_c_preproc_warn_flag in '' yes
5100 do
5101   # Use a header file that comes with gcc, so configuring glibc
5102   # with a fresh cross-compiler works.
5103   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5104   # <limits.h> exists even on freestanding compilers.
5105   # On the NeXT, cc -E runs the code through the compiler's parser,
5106   # not just through cpp. "Syntax error" is here to catch this case.
5107   cat >conftest.$ac_ext <<_ACEOF
5108 /* confdefs.h.  */
5109 _ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h.  */
5113 #ifdef __STDC__
5114 # include <limits.h>
5115 #else
5116 # include <assert.h>
5117 #endif
5118                      Syntax error
5119 _ACEOF
5120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5121   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5122   ac_status=$?
5123   grep -v '^ *+' conftest.er1 >conftest.err
5124   rm -f conftest.er1
5125   cat conftest.err >&5
5126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127   (exit $ac_status); } >/dev/null; then
5128   if test -s conftest.err; then
5129     ac_cpp_err=$ac_c_preproc_warn_flag
5130     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5131   else
5132     ac_cpp_err=
5133   fi
5134 else
5135   ac_cpp_err=yes
5136 fi
5137 if test -z "$ac_cpp_err"; then
5138   :
5139 else
5140   echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5142
5143   # Broken: fails on valid input.
5144 continue
5145 fi
5146 rm -f conftest.err conftest.$ac_ext
5147
5148   # OK, works on sane cases.  Now check whether non-existent headers
5149   # can be detected and how.
5150   cat >conftest.$ac_ext <<_ACEOF
5151 /* confdefs.h.  */
5152 _ACEOF
5153 cat confdefs.h >>conftest.$ac_ext
5154 cat >>conftest.$ac_ext <<_ACEOF
5155 /* end confdefs.h.  */
5156 #include <ac_nonexistent.h>
5157 _ACEOF
5158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5159   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5160   ac_status=$?
5161   grep -v '^ *+' conftest.er1 >conftest.err
5162   rm -f conftest.er1
5163   cat conftest.err >&5
5164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165   (exit $ac_status); } >/dev/null; then
5166   if test -s conftest.err; then
5167     ac_cpp_err=$ac_c_preproc_warn_flag
5168     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5169   else
5170     ac_cpp_err=
5171   fi
5172 else
5173   ac_cpp_err=yes
5174 fi
5175 if test -z "$ac_cpp_err"; then
5176   # Broken: success on invalid input.
5177 continue
5178 else
5179   echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5181
5182   # Passes both tests.
5183 ac_preproc_ok=:
5184 break
5185 fi
5186 rm -f conftest.err conftest.$ac_ext
5187
5188 done
5189 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5190 rm -f conftest.err conftest.$ac_ext
5191 if $ac_preproc_ok; then
5192   break
5193 fi
5194
5195     done
5196     ac_cv_prog_CPP=$CPP
5197
5198 fi
5199   CPP=$ac_cv_prog_CPP
5200 else
5201   ac_cv_prog_CPP=$CPP
5202 fi
5203 echo "$as_me:$LINENO: result: $CPP" >&5
5204 echo "${ECHO_T}$CPP" >&6
5205 ac_preproc_ok=false
5206 for ac_c_preproc_warn_flag in '' yes
5207 do
5208   # Use a header file that comes with gcc, so configuring glibc
5209   # with a fresh cross-compiler works.
5210   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5211   # <limits.h> exists even on freestanding compilers.
5212   # On the NeXT, cc -E runs the code through the compiler's parser,
5213   # not just through cpp. "Syntax error" is here to catch this case.
5214   cat >conftest.$ac_ext <<_ACEOF
5215 /* confdefs.h.  */
5216 _ACEOF
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h.  */
5220 #ifdef __STDC__
5221 # include <limits.h>
5222 #else
5223 # include <assert.h>
5224 #endif
5225                      Syntax error
5226 _ACEOF
5227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5228   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5229   ac_status=$?
5230   grep -v '^ *+' conftest.er1 >conftest.err
5231   rm -f conftest.er1
5232   cat conftest.err >&5
5233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234   (exit $ac_status); } >/dev/null; then
5235   if test -s conftest.err; then
5236     ac_cpp_err=$ac_c_preproc_warn_flag
5237     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5238   else
5239     ac_cpp_err=
5240   fi
5241 else
5242   ac_cpp_err=yes
5243 fi
5244 if test -z "$ac_cpp_err"; then
5245   :
5246 else
5247   echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5249
5250   # Broken: fails on valid input.
5251 continue
5252 fi
5253 rm -f conftest.err conftest.$ac_ext
5254
5255   # OK, works on sane cases.  Now check whether non-existent headers
5256   # can be detected and how.
5257   cat >conftest.$ac_ext <<_ACEOF
5258 /* confdefs.h.  */
5259 _ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h.  */
5263 #include <ac_nonexistent.h>
5264 _ACEOF
5265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5266   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5267   ac_status=$?
5268   grep -v '^ *+' conftest.er1 >conftest.err
5269   rm -f conftest.er1
5270   cat conftest.err >&5
5271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272   (exit $ac_status); } >/dev/null; then
5273   if test -s conftest.err; then
5274     ac_cpp_err=$ac_c_preproc_warn_flag
5275     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5276   else
5277     ac_cpp_err=
5278   fi
5279 else
5280   ac_cpp_err=yes
5281 fi
5282 if test -z "$ac_cpp_err"; then
5283   # Broken: success on invalid input.
5284 continue
5285 else
5286   echo "$as_me: failed program was:" >&5
5287 sed 's/^/| /' conftest.$ac_ext >&5
5288
5289   # Passes both tests.
5290 ac_preproc_ok=:
5291 break
5292 fi
5293 rm -f conftest.err conftest.$ac_ext
5294
5295 done
5296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5297 rm -f conftest.err conftest.$ac_ext
5298 if $ac_preproc_ok; then
5299   :
5300 else
5301   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5302 See \`config.log' for more details." >&5
5303 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5304 See \`config.log' for more details." >&2;}
5305    { (exit 1); exit 1; }; }
5306 fi
5307
5308 ac_ext=c
5309 ac_cpp='$CPP $CPPFLAGS'
5310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5313
5314
5315 echo "$as_me:$LINENO: checking for egrep" >&5
5316 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5317 if test "${ac_cv_prog_egrep+set}" = set; then
5318   echo $ECHO_N "(cached) $ECHO_C" >&6
5319 else
5320   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5321     then ac_cv_prog_egrep='grep -E'
5322     else ac_cv_prog_egrep='egrep'
5323     fi
5324 fi
5325 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5326 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5327  EGREP=$ac_cv_prog_egrep
5328
5329
5330 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5331 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5332 if test "${ac_cv_header_stdc+set}" = set; then
5333   echo $ECHO_N "(cached) $ECHO_C" >&6
5334 else
5335   cat >conftest.$ac_ext <<_ACEOF
5336 /* confdefs.h.  */
5337 _ACEOF
5338 cat confdefs.h >>conftest.$ac_ext
5339 cat >>conftest.$ac_ext <<_ACEOF
5340 /* end confdefs.h.  */
5341 #include <stdlib.h>
5342 #include <stdarg.h>
5343 #include <string.h>
5344 #include <float.h>
5345
5346 int
5347 main ()
5348 {
5349
5350   ;
5351   return 0;
5352 }
5353 _ACEOF
5354 rm -f conftest.$ac_objext
5355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5356   (eval $ac_compile) 2>conftest.er1
5357   ac_status=$?
5358   grep -v '^ *+' conftest.er1 >conftest.err
5359   rm -f conftest.er1
5360   cat conftest.err >&5
5361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362   (exit $ac_status); } &&
5363          { ac_try='test -z "$ac_c_werror_flag"
5364                          || test ! -s conftest.err'
5365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366   (eval $ac_try) 2>&5
5367   ac_status=$?
5368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369   (exit $ac_status); }; } &&
5370          { ac_try='test -s conftest.$ac_objext'
5371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372   (eval $ac_try) 2>&5
5373   ac_status=$?
5374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375   (exit $ac_status); }; }; then
5376   ac_cv_header_stdc=yes
5377 else
5378   echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5380
5381 ac_cv_header_stdc=no
5382 fi
5383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5384
5385 if test $ac_cv_header_stdc = yes; then
5386   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5387   cat >conftest.$ac_ext <<_ACEOF
5388 /* confdefs.h.  */
5389 _ACEOF
5390 cat confdefs.h >>conftest.$ac_ext
5391 cat >>conftest.$ac_ext <<_ACEOF
5392 /* end confdefs.h.  */
5393 #include <string.h>
5394
5395 _ACEOF
5396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5397   $EGREP "memchr" >/dev/null 2>&1; then
5398   :
5399 else
5400   ac_cv_header_stdc=no
5401 fi
5402 rm -f conftest*
5403
5404 fi
5405
5406 if test $ac_cv_header_stdc = yes; then
5407   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5408   cat >conftest.$ac_ext <<_ACEOF
5409 /* confdefs.h.  */
5410 _ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h.  */
5414 #include <stdlib.h>
5415
5416 _ACEOF
5417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5418   $EGREP "free" >/dev/null 2>&1; then
5419   :
5420 else
5421   ac_cv_header_stdc=no
5422 fi
5423 rm -f conftest*
5424
5425 fi
5426
5427 if test $ac_cv_header_stdc = yes; then
5428   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5429   if test "$cross_compiling" = yes; then
5430   :
5431 else
5432   cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h.  */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h.  */
5438 #include <ctype.h>
5439 #if ((' ' & 0x0FF) == 0x020)
5440 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5441 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5442 #else
5443 # define ISLOWER(c) \
5444                    (('a' <= (c) && (c) <= 'i') \
5445                      || ('j' <= (c) && (c) <= 'r') \
5446                      || ('s' <= (c) && (c) <= 'z'))
5447 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5448 #endif
5449
5450 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5451 int
5452 main ()
5453 {
5454   int i;
5455   for (i = 0; i < 256; i++)
5456     if (XOR (islower (i), ISLOWER (i))
5457         || toupper (i) != TOUPPER (i))
5458       exit(2);
5459   exit (0);
5460 }
5461 _ACEOF
5462 rm -f conftest$ac_exeext
5463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5464   (eval $ac_link) 2>&5
5465   ac_status=$?
5466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469   (eval $ac_try) 2>&5
5470   ac_status=$?
5471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472   (exit $ac_status); }; }; then
5473   :
5474 else
5475   echo "$as_me: program exited with status $ac_status" >&5
5476 echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5478
5479 ( exit $ac_status )
5480 ac_cv_header_stdc=no
5481 fi
5482 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5483 fi
5484 fi
5485 fi
5486 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5487 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5488 if test $ac_cv_header_stdc = yes; then
5489
5490 cat >>confdefs.h <<\_ACEOF
5491 #define STDC_HEADERS 1
5492 _ACEOF
5493
5494 fi
5495
5496 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5507                   inttypes.h stdint.h unistd.h
5508 do
5509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5510 echo "$as_me:$LINENO: checking for $ac_header" >&5
5511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5513   echo $ECHO_N "(cached) $ECHO_C" >&6
5514 else
5515   cat >conftest.$ac_ext <<_ACEOF
5516 /* confdefs.h.  */
5517 _ACEOF
5518 cat confdefs.h >>conftest.$ac_ext
5519 cat >>conftest.$ac_ext <<_ACEOF
5520 /* end confdefs.h.  */
5521 $ac_includes_default
5522
5523 #include <$ac_header>
5524 _ACEOF
5525 rm -f conftest.$ac_objext
5526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5527   (eval $ac_compile) 2>conftest.er1
5528   ac_status=$?
5529   grep -v '^ *+' conftest.er1 >conftest.err
5530   rm -f conftest.er1
5531   cat conftest.err >&5
5532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533   (exit $ac_status); } &&
5534          { ac_try='test -z "$ac_c_werror_flag"
5535                          || test ! -s conftest.err'
5536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5537   (eval $ac_try) 2>&5
5538   ac_status=$?
5539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540   (exit $ac_status); }; } &&
5541          { ac_try='test -s conftest.$ac_objext'
5542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543   (eval $ac_try) 2>&5
5544   ac_status=$?
5545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546   (exit $ac_status); }; }; then
5547   eval "$as_ac_Header=yes"
5548 else
5549   echo "$as_me: failed program was:" >&5
5550 sed 's/^/| /' conftest.$ac_ext >&5
5551
5552 eval "$as_ac_Header=no"
5553 fi
5554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5555 fi
5556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5559   cat >>confdefs.h <<_ACEOF
5560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5561 _ACEOF
5562
5563 fi
5564
5565 done
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579 for ac_header in sys/types.h sys/termios.h termios.h sys/ioctl.h sys/select.h rpc/rpc.h rpc/rpcent.h sys/file.h ftw.h machine/reg.h netdb.h
5580 do
5581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5583   echo "$as_me:$LINENO: checking for $ac_header" >&5
5584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5586   echo $ECHO_N "(cached) $ECHO_C" >&6
5587 fi
5588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5590 else
5591   # Is the header compilable?
5592 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5594 cat >conftest.$ac_ext <<_ACEOF
5595 /* confdefs.h.  */
5596 _ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h.  */
5600 $ac_includes_default
5601 #include <$ac_header>
5602 _ACEOF
5603 rm -f conftest.$ac_objext
5604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5605   (eval $ac_compile) 2>conftest.er1
5606   ac_status=$?
5607   grep -v '^ *+' conftest.er1 >conftest.err
5608   rm -f conftest.er1
5609   cat conftest.err >&5
5610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611   (exit $ac_status); } &&
5612          { ac_try='test -z "$ac_c_werror_flag"
5613                          || test ! -s conftest.err'
5614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615   (eval $ac_try) 2>&5
5616   ac_status=$?
5617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618   (exit $ac_status); }; } &&
5619          { ac_try='test -s conftest.$ac_objext'
5620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621   (eval $ac_try) 2>&5
5622   ac_status=$?
5623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624   (exit $ac_status); }; }; then
5625   ac_header_compiler=yes
5626 else
5627   echo "$as_me: failed program was:" >&5
5628 sed 's/^/| /' conftest.$ac_ext >&5
5629
5630 ac_header_compiler=no
5631 fi
5632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5634 echo "${ECHO_T}$ac_header_compiler" >&6
5635
5636 # Is the header present?
5637 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5639 cat >conftest.$ac_ext <<_ACEOF
5640 /* confdefs.h.  */
5641 _ACEOF
5642 cat confdefs.h >>conftest.$ac_ext
5643 cat >>conftest.$ac_ext <<_ACEOF
5644 /* end confdefs.h.  */
5645 #include <$ac_header>
5646 _ACEOF
5647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5648   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5649   ac_status=$?
5650   grep -v '^ *+' conftest.er1 >conftest.err
5651   rm -f conftest.er1
5652   cat conftest.err >&5
5653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654   (exit $ac_status); } >/dev/null; then
5655   if test -s conftest.err; then
5656     ac_cpp_err=$ac_c_preproc_warn_flag
5657     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5658   else
5659     ac_cpp_err=
5660   fi
5661 else
5662   ac_cpp_err=yes
5663 fi
5664 if test -z "$ac_cpp_err"; then
5665   ac_header_preproc=yes
5666 else
5667   echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5669
5670   ac_header_preproc=no
5671 fi
5672 rm -f conftest.err conftest.$ac_ext
5673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5674 echo "${ECHO_T}$ac_header_preproc" >&6
5675
5676 # So?  What about this header?
5677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5678   yes:no: )
5679     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5681     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5683     ac_header_preproc=yes
5684     ;;
5685   no:yes:* )
5686     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5688     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5689 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5690     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5692     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5693 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5696     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5698     (
5699       cat <<\_ASBOX
5700 ## ------------------------------------------ ##
5701 ## Report this to the AC_PACKAGE_NAME lists.  ##
5702 ## ------------------------------------------ ##
5703 _ASBOX
5704     ) |
5705       sed "s/^/$as_me: WARNING:     /" >&2
5706     ;;
5707 esac
5708 echo "$as_me:$LINENO: checking for $ac_header" >&5
5709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5711   echo $ECHO_N "(cached) $ECHO_C" >&6
5712 else
5713   eval "$as_ac_Header=\$ac_header_preproc"
5714 fi
5715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5717
5718 fi
5719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5720   cat >>confdefs.h <<_ACEOF
5721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5722 _ACEOF
5723
5724 fi
5725
5726 done
5727
5728 if test "${ac_cv_header_sys_resource_h+set}" = set; then
5729   echo "$as_me:$LINENO: checking for sys/resource.h" >&5
5730 echo $ECHO_N "checking for sys/resource.h... $ECHO_C" >&6
5731 if test "${ac_cv_header_sys_resource_h+set}" = set; then
5732   echo $ECHO_N "(cached) $ECHO_C" >&6
5733 fi
5734 echo "$as_me:$LINENO: result: $ac_cv_header_sys_resource_h" >&5
5735 echo "${ECHO_T}$ac_cv_header_sys_resource_h" >&6
5736 else
5737   # Is the header compilable?
5738 echo "$as_me:$LINENO: checking sys/resource.h usability" >&5
5739 echo $ECHO_N "checking sys/resource.h usability... $ECHO_C" >&6
5740 cat >conftest.$ac_ext <<_ACEOF
5741 /* confdefs.h.  */
5742 _ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h.  */
5746 $ac_includes_default
5747 #include <sys/resource.h>
5748 _ACEOF
5749 rm -f conftest.$ac_objext
5750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5751   (eval $ac_compile) 2>conftest.er1
5752   ac_status=$?
5753   grep -v '^ *+' conftest.er1 >conftest.err
5754   rm -f conftest.er1
5755   cat conftest.err >&5
5756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757   (exit $ac_status); } &&
5758          { ac_try='test -z "$ac_c_werror_flag"
5759                          || test ! -s conftest.err'
5760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5761   (eval $ac_try) 2>&5
5762   ac_status=$?
5763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764   (exit $ac_status); }; } &&
5765          { ac_try='test -s conftest.$ac_objext'
5766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5767   (eval $ac_try) 2>&5
5768   ac_status=$?
5769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770   (exit $ac_status); }; }; then
5771   ac_header_compiler=yes
5772 else
5773   echo "$as_me: failed program was:" >&5
5774 sed 's/^/| /' conftest.$ac_ext >&5
5775
5776 ac_header_compiler=no
5777 fi
5778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5779 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5780 echo "${ECHO_T}$ac_header_compiler" >&6
5781
5782 # Is the header present?
5783 echo "$as_me:$LINENO: checking sys/resource.h presence" >&5
5784 echo $ECHO_N "checking sys/resource.h presence... $ECHO_C" >&6
5785 cat >conftest.$ac_ext <<_ACEOF
5786 /* confdefs.h.  */
5787 _ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h.  */
5791 #include <sys/resource.h>
5792 _ACEOF
5793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5794   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
5801   if test -s conftest.err; then
5802     ac_cpp_err=$ac_c_preproc_warn_flag
5803     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5804   else
5805     ac_cpp_err=
5806   fi
5807 else
5808   ac_cpp_err=yes
5809 fi
5810 if test -z "$ac_cpp_err"; then
5811   ac_header_preproc=yes
5812 else
5813   echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5815
5816   ac_header_preproc=no
5817 fi
5818 rm -f conftest.err conftest.$ac_ext
5819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5820 echo "${ECHO_T}$ac_header_preproc" >&6
5821
5822 # So?  What about this header?
5823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5824   yes:no: )
5825     { echo "$as_me:$LINENO: WARNING: sys/resource.h: accepted by the compiler, rejected by the preprocessor!" >&5
5826 echo "$as_me: WARNING: sys/resource.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5827     { echo "$as_me:$LINENO: WARNING: sys/resource.h: proceeding with the compiler's result" >&5
5828 echo "$as_me: WARNING: sys/resource.h: proceeding with the compiler's result" >&2;}
5829     ac_header_preproc=yes
5830     ;;
5831   no:yes:* )
5832     { echo "$as_me:$LINENO: WARNING: sys/resource.h: present but cannot be compiled" >&5
5833 echo "$as_me: WARNING: sys/resource.h: present but cannot be compiled" >&2;}
5834     { echo "$as_me:$LINENO: WARNING: sys/resource.h:     check for missing prerequisite headers?" >&5
5835 echo "$as_me: WARNING: sys/resource.h:     check for missing prerequisite headers?" >&2;}
5836     { echo "$as_me:$LINENO: WARNING: sys/resource.h: see the Autoconf documentation" >&5
5837 echo "$as_me: WARNING: sys/resource.h: see the Autoconf documentation" >&2;}
5838     { echo "$as_me:$LINENO: WARNING: sys/resource.h:     section \"Present But Cannot Be Compiled\"" >&5
5839 echo "$as_me: WARNING: sys/resource.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5840     { echo "$as_me:$LINENO: WARNING: sys/resource.h: proceeding with the preprocessor's result" >&5
5841 echo "$as_me: WARNING: sys/resource.h: proceeding with the preprocessor's result" >&2;}
5842     { echo "$as_me:$LINENO: WARNING: sys/resource.h: in the future, the compiler will take precedence" >&5
5843 echo "$as_me: WARNING: sys/resource.h: in the future, the compiler will take precedence" >&2;}
5844     (
5845       cat <<\_ASBOX
5846 ## ------------------------------------------ ##
5847 ## Report this to the AC_PACKAGE_NAME lists.  ##
5848 ## ------------------------------------------ ##
5849 _ASBOX
5850     ) |
5851       sed "s/^/$as_me: WARNING:     /" >&2
5852     ;;
5853 esac
5854 echo "$as_me:$LINENO: checking for sys/resource.h" >&5
5855 echo $ECHO_N "checking for sys/resource.h... $ECHO_C" >&6
5856 if test "${ac_cv_header_sys_resource_h+set}" = set; then
5857   echo $ECHO_N "(cached) $ECHO_C" >&6
5858 else
5859   ac_cv_header_sys_resource_h=$ac_header_preproc
5860 fi
5861 echo "$as_me:$LINENO: result: $ac_cv_header_sys_resource_h" >&5
5862 echo "${ECHO_T}$ac_cv_header_sys_resource_h" >&6
5863
5864 fi
5865 if test $ac_cv_header_sys_resource_h = yes; then
5866   cat >>confdefs.h <<\_ACEOF
5867 #define HAVE_SYS_RESOURCE_H 1
5868 _ACEOF
5869
5870 fi
5871
5872
5873 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
5874   echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
5875 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
5876 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
5877   echo $ECHO_N "(cached) $ECHO_C" >&6
5878 fi
5879 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
5880 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
5881 else
5882   # Is the header compilable?
5883 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
5884 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
5885 cat >conftest.$ac_ext <<_ACEOF
5886 /* confdefs.h.  */
5887 _ACEOF
5888 cat confdefs.h >>conftest.$ac_ext
5889 cat >>conftest.$ac_ext <<_ACEOF
5890 /* end confdefs.h.  */
5891 $ac_includes_default
5892 #include <arpa/inet.h>
5893 _ACEOF
5894 rm -f conftest.$ac_objext
5895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5896   (eval $ac_compile) 2>conftest.er1
5897   ac_status=$?
5898   grep -v '^ *+' conftest.er1 >conftest.err
5899   rm -f conftest.er1
5900   cat conftest.err >&5
5901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902   (exit $ac_status); } &&
5903          { ac_try='test -z "$ac_c_werror_flag"
5904                          || test ! -s conftest.err'
5905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5906   (eval $ac_try) 2>&5
5907   ac_status=$?
5908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909   (exit $ac_status); }; } &&
5910          { ac_try='test -s conftest.$ac_objext'
5911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5912   (eval $ac_try) 2>&5
5913   ac_status=$?
5914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915   (exit $ac_status); }; }; then
5916   ac_header_compiler=yes
5917 else
5918   echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5920
5921 ac_header_compiler=no
5922 fi
5923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5925 echo "${ECHO_T}$ac_header_compiler" >&6
5926
5927 # Is the header present?
5928 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
5929 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
5930 cat >conftest.$ac_ext <<_ACEOF
5931 /* confdefs.h.  */
5932 _ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h.  */
5936 #include <arpa/inet.h>
5937 _ACEOF
5938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5939   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5940   ac_status=$?
5941   grep -v '^ *+' conftest.er1 >conftest.err
5942   rm -f conftest.er1
5943   cat conftest.err >&5
5944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945   (exit $ac_status); } >/dev/null; then
5946   if test -s conftest.err; then
5947     ac_cpp_err=$ac_c_preproc_warn_flag
5948     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5949   else
5950     ac_cpp_err=
5951   fi
5952 else
5953   ac_cpp_err=yes
5954 fi
5955 if test -z "$ac_cpp_err"; then
5956   ac_header_preproc=yes
5957 else
5958   echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5960
5961   ac_header_preproc=no
5962 fi
5963 rm -f conftest.err conftest.$ac_ext
5964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5965 echo "${ECHO_T}$ac_header_preproc" >&6
5966
5967 # So?  What about this header?
5968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5969   yes:no: )
5970     { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
5971 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5972     { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
5973 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
5974     ac_header_preproc=yes
5975     ;;
5976   no:yes:* )
5977     { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
5978 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
5979     { echo "$as_me:$LINENO: WARNING: arpa/inet.h:     check for missing prerequisite headers?" >&5
5980 echo "$as_me: WARNING: arpa/inet.h:     check for missing prerequisite headers?" >&2;}
5981     { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
5982 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
5983     { echo "$as_me:$LINENO: WARNING: arpa/inet.h:     section \"Present But Cannot Be Compiled\"" >&5
5984 echo "$as_me: WARNING: arpa/inet.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5985     { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
5986 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
5987     { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
5988 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
5989     (
5990       cat <<\_ASBOX
5991 ## ------------------------------------------ ##
5992 ## Report this to the AC_PACKAGE_NAME lists.  ##
5993 ## ------------------------------------------ ##
5994 _ASBOX
5995     ) |
5996       sed "s/^/$as_me: WARNING:     /" >&2
5997     ;;
5998 esac
5999 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
6000 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
6001 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
6002   echo $ECHO_N "(cached) $ECHO_C" >&6
6003 else
6004   ac_cv_header_arpa_inet_h=$ac_header_preproc
6005 fi
6006 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
6007 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
6008
6009 fi
6010 if test $ac_cv_header_arpa_inet_h = yes; then
6011   cat >>confdefs.h <<\_ACEOF
6012 #define HAVE_ARPA_INET_H 1
6013 _ACEOF
6014
6015 fi
6016
6017
6018 if test "${ac_cv_header_grp_h+set}" = set; then
6019   echo "$as_me:$LINENO: checking for grp.h" >&5
6020 echo $ECHO_N "checking for grp.h... $ECHO_C" >&6
6021 if test "${ac_cv_header_grp_h+set}" = set; then
6022   echo $ECHO_N "(cached) $ECHO_C" >&6
6023 fi
6024 echo "$as_me:$LINENO: result: $ac_cv_header_grp_h" >&5
6025 echo "${ECHO_T}$ac_cv_header_grp_h" >&6
6026 else
6027   # Is the header compilable?
6028 echo "$as_me:$LINENO: checking grp.h usability" >&5
6029 echo $ECHO_N "checking grp.h usability... $ECHO_C" >&6
6030 cat >conftest.$ac_ext <<_ACEOF
6031 /* confdefs.h.  */
6032 _ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h.  */
6036 $ac_includes_default
6037 #include <grp.h>
6038 _ACEOF
6039 rm -f conftest.$ac_objext
6040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6041   (eval $ac_compile) 2>conftest.er1
6042   ac_status=$?
6043   grep -v '^ *+' conftest.er1 >conftest.err
6044   rm -f conftest.er1
6045   cat conftest.err >&5
6046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047   (exit $ac_status); } &&
6048          { ac_try='test -z "$ac_c_werror_flag"
6049                          || test ! -s conftest.err'
6050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6051   (eval $ac_try) 2>&5
6052   ac_status=$?
6053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054   (exit $ac_status); }; } &&
6055          { ac_try='test -s conftest.$ac_objext'
6056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6057   (eval $ac_try) 2>&5
6058   ac_status=$?
6059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060   (exit $ac_status); }; }; then
6061   ac_header_compiler=yes
6062 else
6063   echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6065
6066 ac_header_compiler=no
6067 fi
6068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6069 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6070 echo "${ECHO_T}$ac_header_compiler" >&6
6071
6072 # Is the header present?
6073 echo "$as_me:$LINENO: checking grp.h presence" >&5
6074 echo $ECHO_N "checking grp.h presence... $ECHO_C" >&6
6075 cat >conftest.$ac_ext <<_ACEOF
6076 /* confdefs.h.  */
6077 _ACEOF
6078 cat confdefs.h >>conftest.$ac_ext
6079 cat >>conftest.$ac_ext <<_ACEOF
6080 /* end confdefs.h.  */
6081 #include <grp.h>
6082 _ACEOF
6083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6084   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6085   ac_status=$?
6086   grep -v '^ *+' conftest.er1 >conftest.err
6087   rm -f conftest.er1
6088   cat conftest.err >&5
6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090   (exit $ac_status); } >/dev/null; then
6091   if test -s conftest.err; then
6092     ac_cpp_err=$ac_c_preproc_warn_flag
6093     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6094   else
6095     ac_cpp_err=
6096   fi
6097 else
6098   ac_cpp_err=yes
6099 fi
6100 if test -z "$ac_cpp_err"; then
6101   ac_header_preproc=yes
6102 else
6103   echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6105
6106   ac_header_preproc=no
6107 fi
6108 rm -f conftest.err conftest.$ac_ext
6109 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6110 echo "${ECHO_T}$ac_header_preproc" >&6
6111
6112 # So?  What about this header?
6113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6114   yes:no: )
6115     { echo "$as_me:$LINENO: WARNING: grp.h: accepted by the compiler, rejected by the preprocessor!" >&5
6116 echo "$as_me: WARNING: grp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6117     { echo "$as_me:$LINENO: WARNING: grp.h: proceeding with the compiler's result" >&5
6118 echo "$as_me: WARNING: grp.h: proceeding with the compiler's result" >&2;}
6119     ac_header_preproc=yes
6120     ;;
6121   no:yes:* )
6122     { echo "$as_me:$LINENO: WARNING: grp.h: present but cannot be compiled" >&5
6123 echo "$as_me: WARNING: grp.h: present but cannot be compiled" >&2;}
6124     { echo "$as_me:$LINENO: WARNING: grp.h:     check for missing prerequisite headers?" >&5
6125 echo "$as_me: WARNING: grp.h:     check for missing prerequisite headers?" >&2;}
6126     { echo "$as_me:$LINENO: WARNING: grp.h: see the Autoconf documentation" >&5
6127 echo "$as_me: WARNING: grp.h: see the Autoconf documentation" >&2;}
6128     { echo "$as_me:$LINENO: WARNING: grp.h:     section \"Present But Cannot Be Compiled\"" >&5
6129 echo "$as_me: WARNING: grp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6130     { echo "$as_me:$LINENO: WARNING: grp.h: proceeding with the preprocessor's result" >&5
6131 echo "$as_me: WARNING: grp.h: proceeding with the preprocessor's result" >&2;}
6132     { echo "$as_me:$LINENO: WARNING: grp.h: in the future, the compiler will take precedence" >&5
6133 echo "$as_me: WARNING: grp.h: in the future, the compiler will take precedence" >&2;}
6134     (
6135       cat <<\_ASBOX
6136 ## ------------------------------------------ ##
6137 ## Report this to the AC_PACKAGE_NAME lists.  ##
6138 ## ------------------------------------------ ##
6139 _ASBOX
6140     ) |
6141       sed "s/^/$as_me: WARNING:     /" >&2
6142     ;;
6143 esac
6144 echo "$as_me:$LINENO: checking for grp.h" >&5
6145 echo $ECHO_N "checking for grp.h... $ECHO_C" >&6
6146 if test "${ac_cv_header_grp_h+set}" = set; then
6147   echo $ECHO_N "(cached) $ECHO_C" >&6
6148 else
6149   ac_cv_header_grp_h=$ac_header_preproc
6150 fi
6151 echo "$as_me:$LINENO: result: $ac_cv_header_grp_h" >&5
6152 echo "${ECHO_T}$ac_cv_header_grp_h" >&6
6153
6154 fi
6155 if test $ac_cv_header_grp_h = yes; then
6156   cat >>confdefs.h <<\_ACEOF
6157 #define HAVE_GRP_H 1
6158 _ACEOF
6159
6160 fi
6161
6162
6163 if test "${ac_cv_header_rpc_pmap_clnt_h+set}" = set; then
6164   echo "$as_me:$LINENO: checking for rpc/pmap_clnt.h" >&5
6165 echo $ECHO_N "checking for rpc/pmap_clnt.h... $ECHO_C" >&6
6166 if test "${ac_cv_header_rpc_pmap_clnt_h+set}" = set; then
6167   echo $ECHO_N "(cached) $ECHO_C" >&6
6168 fi
6169 echo "$as_me:$LINENO: result: $ac_cv_header_rpc_pmap_clnt_h" >&5
6170 echo "${ECHO_T}$ac_cv_header_rpc_pmap_clnt_h" >&6
6171 else
6172   # Is the header compilable?
6173 echo "$as_me:$LINENO: checking rpc/pmap_clnt.h usability" >&5
6174 echo $ECHO_N "checking rpc/pmap_clnt.h usability... $ECHO_C" >&6
6175 cat >conftest.$ac_ext <<_ACEOF
6176 /* confdefs.h.  */
6177 _ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h.  */
6181 $ac_includes_default
6182 #include <rpc/pmap_clnt.h>
6183 _ACEOF
6184 rm -f conftest.$ac_objext
6185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6186   (eval $ac_compile) 2>conftest.er1
6187   ac_status=$?
6188   grep -v '^ *+' conftest.er1 >conftest.err
6189   rm -f conftest.er1
6190   cat conftest.err >&5
6191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192   (exit $ac_status); } &&
6193          { ac_try='test -z "$ac_c_werror_flag"
6194                          || test ! -s conftest.err'
6195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196   (eval $ac_try) 2>&5
6197   ac_status=$?
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); }; } &&
6200          { ac_try='test -s conftest.$ac_objext'
6201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202   (eval $ac_try) 2>&5
6203   ac_status=$?
6204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205   (exit $ac_status); }; }; then
6206   ac_header_compiler=yes
6207 else
6208   echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6210
6211 ac_header_compiler=no
6212 fi
6213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6214 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6215 echo "${ECHO_T}$ac_header_compiler" >&6
6216
6217 # Is the header present?
6218 echo "$as_me:$LINENO: checking rpc/pmap_clnt.h presence" >&5
6219 echo $ECHO_N "checking rpc/pmap_clnt.h presence... $ECHO_C" >&6
6220 cat >conftest.$ac_ext <<_ACEOF
6221 /* confdefs.h.  */
6222 _ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h.  */
6226 #include <rpc/pmap_clnt.h>
6227 _ACEOF
6228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6229   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6230   ac_status=$?
6231   grep -v '^ *+' conftest.er1 >conftest.err
6232   rm -f conftest.er1
6233   cat conftest.err >&5
6234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235   (exit $ac_status); } >/dev/null; then
6236   if test -s conftest.err; then
6237     ac_cpp_err=$ac_c_preproc_warn_flag
6238     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6239   else
6240     ac_cpp_err=
6241   fi
6242 else
6243   ac_cpp_err=yes
6244 fi
6245 if test -z "$ac_cpp_err"; then
6246   ac_header_preproc=yes
6247 else
6248   echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6250
6251   ac_header_preproc=no
6252 fi
6253 rm -f conftest.err conftest.$ac_ext
6254 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6255 echo "${ECHO_T}$ac_header_preproc" >&6
6256
6257 # So?  What about this header?
6258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6259   yes:no: )
6260     { echo "$as_me:$LINENO: WARNING: rpc/pmap_clnt.h: accepted by the compiler, rejected by the preprocessor!" >&5
6261 echo "$as_me: WARNING: rpc/pmap_clnt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6262     { echo "$as_me:$LINENO: WARNING: rpc/pmap_clnt.h: proceeding with the compiler's result" >&5
6263 echo "$as_me: WARNING: rpc/pmap_clnt.h: proceeding with the compiler's result" >&2;}
6264     ac_header_preproc=yes
6265     ;;
6266   no:yes:* )
6267     { echo "$as_me:$LINENO: WARNING: rpc/pmap_clnt.h: present but cannot be compiled" >&5
6268 echo "$as_me: WARNING: rpc/pmap_clnt.h: present but cannot be compiled" >&2;}
6269     { echo "$as_me:$LINENO: WARNING: rpc/pmap_clnt.h:     check for missing prerequisite headers?" >&5
6270 echo "$as_me: WARNING: rpc/pmap_clnt.h:     check for missing prerequisite headers?" >&2;}
6271     { echo "$as_me:$LINENO: WARNING: rpc/pmap_clnt.h: see the Autoconf documentation" >&5
6272 echo "$as_me: WARNING: rpc/pmap_clnt.h: see the Autoconf documentation" >&2;}
6273     { echo "$as_me:$LINENO: WARNING: rpc/pmap_clnt.h:     section \"Present But Cannot Be Compiled\"" >&5
6274 echo "$as_me: WARNING: rpc/pmap_clnt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6275     { echo "$as_me:$LINENO: WARNING: rpc/pmap_clnt.h: proceeding with the preprocessor's result" >&5
6276 echo "$as_me: WARNING: rpc/pmap_clnt.h: proceeding with the preprocessor's result" >&2;}
6277     { echo "$as_me:$LINENO: WARNING: rpc/pmap_clnt.h: in the future, the compiler will take precedence" >&5
6278 echo "$as_me: WARNING: rpc/pmap_clnt.h: in the future, the compiler will take precedence" >&2;}
6279     (
6280       cat <<\_ASBOX
6281 ## ------------------------------------------ ##
6282 ## Report this to the AC_PACKAGE_NAME lists.  ##
6283 ## ------------------------------------------ ##
6284 _ASBOX
6285     ) |
6286       sed "s/^/$as_me: WARNING:     /" >&2
6287     ;;
6288 esac
6289 echo "$as_me:$LINENO: checking for rpc/pmap_clnt.h" >&5
6290 echo $ECHO_N "checking for rpc/pmap_clnt.h... $ECHO_C" >&6
6291 if test "${ac_cv_header_rpc_pmap_clnt_h+set}" = set; then
6292   echo $ECHO_N "(cached) $ECHO_C" >&6
6293 else
6294   ac_cv_header_rpc_pmap_clnt_h=$ac_header_preproc
6295 fi
6296 echo "$as_me:$LINENO: result: $ac_cv_header_rpc_pmap_clnt_h" >&5
6297 echo "${ECHO_T}$ac_cv_header_rpc_pmap_clnt_h" >&6
6298
6299 fi
6300 if test $ac_cv_header_rpc_pmap_clnt_h = yes; then
6301   cat >>confdefs.h <<\_ACEOF
6302 #define HAVE_RPC_PMAP_CLNT_H 1
6303 _ACEOF
6304
6305 fi
6306
6307
6308 if test "${ac_cv_header_sys_socket_h+set}" = set; then
6309   echo "$as_me:$LINENO: checking for sys/socket.h" >&5
6310 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
6311 if test "${ac_cv_header_sys_socket_h+set}" = set; then
6312   echo $ECHO_N "(cached) $ECHO_C" >&6
6313 fi
6314 echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
6315 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
6316 else
6317   # Is the header compilable?
6318 echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
6319 echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6
6320 cat >conftest.$ac_ext <<_ACEOF
6321 /* confdefs.h.  */
6322 _ACEOF
6323 cat confdefs.h >>conftest.$ac_ext
6324 cat >>conftest.$ac_ext <<_ACEOF
6325 /* end confdefs.h.  */
6326 $ac_includes_default
6327 #include <sys/socket.h>
6328 _ACEOF
6329 rm -f conftest.$ac_objext
6330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6331   (eval $ac_compile) 2>conftest.er1
6332   ac_status=$?
6333   grep -v '^ *+' conftest.er1 >conftest.err
6334   rm -f conftest.er1
6335   cat conftest.err >&5
6336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337   (exit $ac_status); } &&
6338          { ac_try='test -z "$ac_c_werror_flag"
6339                          || test ! -s conftest.err'
6340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6341   (eval $ac_try) 2>&5
6342   ac_status=$?
6343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344   (exit $ac_status); }; } &&
6345          { ac_try='test -s conftest.$ac_objext'
6346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347   (eval $ac_try) 2>&5
6348   ac_status=$?
6349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350   (exit $ac_status); }; }; then
6351   ac_header_compiler=yes
6352 else
6353   echo "$as_me: failed program was:" >&5
6354 sed 's/^/| /' conftest.$ac_ext >&5
6355
6356 ac_header_compiler=no
6357 fi
6358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6359 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6360 echo "${ECHO_T}$ac_header_compiler" >&6
6361
6362 # Is the header present?
6363 echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
6364 echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6
6365 cat >conftest.$ac_ext <<_ACEOF
6366 /* confdefs.h.  */
6367 _ACEOF
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h.  */
6371 #include <sys/socket.h>
6372 _ACEOF
6373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6374   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6375   ac_status=$?
6376   grep -v '^ *+' conftest.er1 >conftest.err
6377   rm -f conftest.er1
6378   cat conftest.err >&5
6379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380   (exit $ac_status); } >/dev/null; then
6381   if test -s conftest.err; then
6382     ac_cpp_err=$ac_c_preproc_warn_flag
6383     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6384   else
6385     ac_cpp_err=
6386   fi
6387 else
6388   ac_cpp_err=yes
6389 fi
6390 if test -z "$ac_cpp_err"; then
6391   ac_header_preproc=yes
6392 else
6393   echo "$as_me: failed program was:" >&5
6394 sed 's/^/| /' conftest.$ac_ext >&5
6395
6396   ac_header_preproc=no
6397 fi
6398 rm -f conftest.err conftest.$ac_ext
6399 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6400 echo "${ECHO_T}$ac_header_preproc" >&6
6401
6402 # So?  What about this header?
6403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6404   yes:no: )
6405     { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
6406 echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6407     { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
6408 echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
6409     ac_header_preproc=yes
6410     ;;
6411   no:yes:* )
6412     { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
6413 echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
6414     { echo "$as_me:$LINENO: WARNING: sys/socket.h:     check for missing prerequisite headers?" >&5
6415 echo "$as_me: WARNING: sys/socket.h:     check for missing prerequisite headers?" >&2;}
6416     { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
6417 echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
6418     { echo "$as_me:$LINENO: WARNING: sys/socket.h:     section \"Present But Cannot Be Compiled\"" >&5
6419 echo "$as_me: WARNING: sys/socket.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6420     { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
6421 echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
6422     { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
6423 echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
6424     (
6425       cat <<\_ASBOX
6426 ## ------------------------------------------ ##
6427 ## Report this to the AC_PACKAGE_NAME lists.  ##
6428 ## ------------------------------------------ ##
6429 _ASBOX
6430     ) |
6431       sed "s/^/$as_me: WARNING:     /" >&2
6432     ;;
6433 esac
6434 echo "$as_me:$LINENO: checking for sys/socket.h" >&5
6435 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
6436 if test "${ac_cv_header_sys_socket_h+set}" = set; then
6437   echo $ECHO_N "(cached) $ECHO_C" >&6
6438 else
6439   ac_cv_header_sys_socket_h=$ac_header_preproc
6440 fi
6441 echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
6442 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
6443
6444 fi
6445 if test $ac_cv_header_sys_socket_h = yes; then
6446   cat >>confdefs.h <<\_ACEOF
6447 #define HAVE_SYS_SOCKET_H 1
6448 _ACEOF
6449
6450 fi
6451
6452
6453 if test "${ac_cv_header_sys_signal_h+set}" = set; then
6454   echo "$as_me:$LINENO: checking for sys/signal.h" >&5
6455 echo $ECHO_N "checking for sys/signal.h... $ECHO_C" >&6
6456 if test "${ac_cv_header_sys_signal_h+set}" = set; then
6457   echo $ECHO_N "(cached) $ECHO_C" >&6
6458 fi
6459 echo "$as_me:$LINENO: result: $ac_cv_header_sys_signal_h" >&5
6460 echo "${ECHO_T}$ac_cv_header_sys_signal_h" >&6
6461 else
6462   # Is the header compilable?
6463 echo "$as_me:$LINENO: checking sys/signal.h usability" >&5
6464 echo $ECHO_N "checking sys/signal.h usability... $ECHO_C" >&6
6465 cat >conftest.$ac_ext <<_ACEOF
6466 /* confdefs.h.  */
6467 _ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h.  */
6471 $ac_includes_default
6472 #include <sys/signal.h>
6473 _ACEOF
6474 rm -f conftest.$ac_objext
6475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6476   (eval $ac_compile) 2>conftest.er1
6477   ac_status=$?
6478   grep -v '^ *+' conftest.er1 >conftest.err
6479   rm -f conftest.er1
6480   cat conftest.err >&5
6481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482   (exit $ac_status); } &&
6483          { ac_try='test -z "$ac_c_werror_flag"
6484                          || test ! -s conftest.err'
6485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486   (eval $ac_try) 2>&5
6487   ac_status=$?
6488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489   (exit $ac_status); }; } &&
6490          { ac_try='test -s conftest.$ac_objext'
6491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492   (eval $ac_try) 2>&5
6493   ac_status=$?
6494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495   (exit $ac_status); }; }; then
6496   ac_header_compiler=yes
6497 else
6498   echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6500
6501 ac_header_compiler=no
6502 fi
6503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6505 echo "${ECHO_T}$ac_header_compiler" >&6
6506
6507 # Is the header present?
6508 echo "$as_me:$LINENO: checking sys/signal.h presence" >&5
6509 echo $ECHO_N "checking sys/signal.h presence... $ECHO_C" >&6
6510 cat >conftest.$ac_ext <<_ACEOF
6511 /* confdefs.h.  */
6512 _ACEOF
6513 cat confdefs.h >>conftest.$ac_ext
6514 cat >>conftest.$ac_ext <<_ACEOF
6515 /* end confdefs.h.  */
6516 #include <sys/signal.h>
6517 _ACEOF
6518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6519   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6520   ac_status=$?
6521   grep -v '^ *+' conftest.er1 >conftest.err
6522   rm -f conftest.er1
6523   cat conftest.err >&5
6524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525   (exit $ac_status); } >/dev/null; then
6526   if test -s conftest.err; then
6527     ac_cpp_err=$ac_c_preproc_warn_flag
6528     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6529   else
6530     ac_cpp_err=
6531   fi
6532 else
6533   ac_cpp_err=yes
6534 fi
6535 if test -z "$ac_cpp_err"; then
6536   ac_header_preproc=yes
6537 else
6538   echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.$ac_ext >&5
6540
6541   ac_header_preproc=no
6542 fi
6543 rm -f conftest.err conftest.$ac_ext
6544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6545 echo "${ECHO_T}$ac_header_preproc" >&6
6546
6547 # So?  What about this header?
6548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6549   yes:no: )
6550     { echo "$as_me:$LINENO: WARNING: sys/signal.h: accepted by the compiler, rejected by the preprocessor!" >&5
6551 echo "$as_me: WARNING: sys/signal.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6552     { echo "$as_me:$LINENO: WARNING: sys/signal.h: proceeding with the compiler's result" >&5
6553 echo "$as_me: WARNING: sys/signal.h: proceeding with the compiler's result" >&2;}
6554     ac_header_preproc=yes
6555     ;;
6556   no:yes:* )
6557     { echo "$as_me:$LINENO: WARNING: sys/signal.h: present but cannot be compiled" >&5
6558 echo "$as_me: WARNING: sys/signal.h: present but cannot be compiled" >&2;}
6559     { echo "$as_me:$LINENO: WARNING: sys/signal.h:     check for missing prerequisite headers?" >&5
6560 echo "$as_me: WARNING: sys/signal.h:     check for missing prerequisite headers?" >&2;}
6561     { echo "$as_me:$LINENO: WARNING: sys/signal.h: see the Autoconf documentation" >&5
6562 echo "$as_me: WARNING: sys/signal.h: see the Autoconf documentation" >&2;}
6563     { echo "$as_me:$LINENO: WARNING: sys/signal.h:     section \"Present But Cannot Be Compiled\"" >&5
6564 echo "$as_me: WARNING: sys/signal.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6565     { echo "$as_me:$LINENO: WARNING: sys/signal.h: proceeding with the preprocessor's result" >&5
6566 echo "$as_me: WARNING: sys/signal.h: proceeding with the preprocessor's result" >&2;}
6567     { echo "$as_me:$LINENO: WARNING: sys/signal.h: in the future, the compiler will take precedence" >&5
6568 echo "$as_me: WARNING: sys/signal.h: in the future, the compiler will take precedence" >&2;}
6569     (
6570       cat <<\_ASBOX
6571 ## ------------------------------------------ ##
6572 ## Report this to the AC_PACKAGE_NAME lists.  ##
6573 ## ------------------------------------------ ##
6574 _ASBOX
6575     ) |
6576       sed "s/^/$as_me: WARNING:     /" >&2
6577     ;;
6578 esac
6579 echo "$as_me:$LINENO: checking for sys/signal.h" >&5
6580 echo $ECHO_N "checking for sys/signal.h... $ECHO_C" >&6
6581 if test "${ac_cv_header_sys_signal_h+set}" = set; then
6582   echo $ECHO_N "(cached) $ECHO_C" >&6
6583 else
6584   ac_cv_header_sys_signal_h=$ac_header_preproc
6585 fi
6586 echo "$as_me:$LINENO: result: $ac_cv_header_sys_signal_h" >&5
6587 echo "${ECHO_T}$ac_cv_header_sys_signal_h" >&6
6588
6589 fi
6590 if test $ac_cv_header_sys_signal_h = yes; then
6591   cat >>confdefs.h <<\_ACEOF
6592 #define HAVE_SYS_SIGNAL_H 1
6593 _ACEOF
6594
6595 fi
6596
6597
6598 if test "${ac_cv_header_crypt_h+set}" = set; then
6599   echo "$as_me:$LINENO: checking for crypt.h" >&5
6600 echo $ECHO_N "checking for crypt.h... $ECHO_C" >&6
6601 if test "${ac_cv_header_crypt_h+set}" = set; then
6602   echo $ECHO_N "(cached) $ECHO_C" >&6
6603 fi
6604 echo "$as_me:$LINENO: result: $ac_cv_header_crypt_h" >&5
6605 echo "${ECHO_T}$ac_cv_header_crypt_h" >&6
6606 else
6607   # Is the header compilable?
6608 echo "$as_me:$LINENO: checking crypt.h usability" >&5
6609 echo $ECHO_N "checking crypt.h usability... $ECHO_C" >&6
6610 cat >conftest.$ac_ext <<_ACEOF
6611 /* confdefs.h.  */
6612 _ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h.  */
6616 $ac_includes_default
6617 #include <crypt.h>
6618 _ACEOF
6619 rm -f conftest.$ac_objext
6620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6621   (eval $ac_compile) 2>conftest.er1
6622   ac_status=$?
6623   grep -v '^ *+' conftest.er1 >conftest.err
6624   rm -f conftest.er1
6625   cat conftest.err >&5
6626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627   (exit $ac_status); } &&
6628          { ac_try='test -z "$ac_c_werror_flag"
6629                          || test ! -s conftest.err'
6630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631   (eval $ac_try) 2>&5
6632   ac_status=$?
6633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634   (exit $ac_status); }; } &&
6635          { ac_try='test -s conftest.$ac_objext'
6636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637   (eval $ac_try) 2>&5
6638   ac_status=$?
6639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640   (exit $ac_status); }; }; then
6641   ac_header_compiler=yes
6642 else
6643   echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.$ac_ext >&5
6645
6646 ac_header_compiler=no
6647 fi
6648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6649 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6650 echo "${ECHO_T}$ac_header_compiler" >&6
6651
6652 # Is the header present?
6653 echo "$as_me:$LINENO: checking crypt.h presence" >&5
6654 echo $ECHO_N "checking crypt.h presence... $ECHO_C" >&6
6655 cat >conftest.$ac_ext <<_ACEOF
6656 /* confdefs.h.  */
6657 _ACEOF
6658 cat confdefs.h >>conftest.$ac_ext
6659 cat >>conftest.$ac_ext <<_ACEOF
6660 /* end confdefs.h.  */
6661 #include <crypt.h>
6662 _ACEOF
6663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6664   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6665   ac_status=$?
6666   grep -v '^ *+' conftest.er1 >conftest.err
6667   rm -f conftest.er1
6668   cat conftest.err >&5
6669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670   (exit $ac_status); } >/dev/null; then
6671   if test -s conftest.err; then
6672     ac_cpp_err=$ac_c_preproc_warn_flag
6673     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6674   else
6675     ac_cpp_err=
6676   fi
6677 else
6678   ac_cpp_err=yes
6679 fi
6680 if test -z "$ac_cpp_err"; then
6681   ac_header_preproc=yes
6682 else
6683   echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6685
6686   ac_header_preproc=no
6687 fi
6688 rm -f conftest.err conftest.$ac_ext
6689 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6690 echo "${ECHO_T}$ac_header_preproc" >&6
6691
6692 # So?  What about this header?
6693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6694   yes:no: )
6695     { echo "$as_me:$LINENO: WARNING: crypt.h: accepted by the compiler, rejected by the preprocessor!" >&5
6696 echo "$as_me: WARNING: crypt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6697     { echo "$as_me:$LINENO: WARNING: crypt.h: proceeding with the compiler's result" >&5
6698 echo "$as_me: WARNING: crypt.h: proceeding with the compiler's result" >&2;}
6699     ac_header_preproc=yes
6700     ;;
6701   no:yes:* )
6702     { echo "$as_me:$LINENO: WARNING: crypt.h: present but cannot be compiled" >&5
6703 echo "$as_me: WARNING: crypt.h: present but cannot be compiled" >&2;}
6704     { echo "$as_me:$LINENO: WARNING: crypt.h:     check for missing prerequisite headers?" >&5
6705 echo "$as_me: WARNING: crypt.h:     check for missing prerequisite headers?" >&2;}
6706     { echo "$as_me:$LINENO: WARNING: crypt.h: see the Autoconf documentation" >&5
6707 echo "$as_me: WARNING: crypt.h: see the Autoconf documentation" >&2;}
6708     { echo "$as_me:$LINENO: WARNING: crypt.h:     section \"Present But Cannot Be Compiled\"" >&5
6709 echo "$as_me: WARNING: crypt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6710     { echo "$as_me:$LINENO: WARNING: crypt.h: proceeding with the preprocessor's result" >&5
6711 echo "$as_me: WARNING: crypt.h: proceeding with the preprocessor's result" >&2;}
6712     { echo "$as_me:$LINENO: WARNING: crypt.h: in the future, the compiler will take precedence" >&5
6713 echo "$as_me: WARNING: crypt.h: in the future, the compiler will take precedence" >&2;}
6714     (
6715       cat <<\_ASBOX
6716 ## ------------------------------------------ ##
6717 ## Report this to the AC_PACKAGE_NAME lists.  ##
6718 ## ------------------------------------------ ##
6719 _ASBOX
6720     ) |
6721       sed "s/^/$as_me: WARNING:     /" >&2
6722     ;;
6723 esac
6724 echo "$as_me:$LINENO: checking for crypt.h" >&5
6725 echo $ECHO_N "checking for crypt.h... $ECHO_C" >&6
6726 if test "${ac_cv_header_crypt_h+set}" = set; then
6727   echo $ECHO_N "(cached) $ECHO_C" >&6
6728 else
6729   ac_cv_header_crypt_h=$ac_header_preproc
6730 fi
6731 echo "$as_me:$LINENO: result: $ac_cv_header_crypt_h" >&5
6732 echo "${ECHO_T}$ac_cv_header_crypt_h" >&6
6733
6734 fi
6735 if test $ac_cv_header_crypt_h = yes; then
6736   cat >>confdefs.h <<\_ACEOF
6737 #define HAVE_CRYPT_H 1
6738 _ACEOF
6739
6740 fi
6741
6742
6743 if test "${ac_cv_header_stdint_h+set}" = set; then
6744   echo "$as_me:$LINENO: checking for stdint.h" >&5
6745 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
6746 if test "${ac_cv_header_stdint_h+set}" = set; then
6747   echo $ECHO_N "(cached) $ECHO_C" >&6
6748 fi
6749 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
6750 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
6751 else
6752   # Is the header compilable?
6753 echo "$as_me:$LINENO: checking stdint.h usability" >&5
6754 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
6755 cat >conftest.$ac_ext <<_ACEOF
6756 /* confdefs.h.  */
6757 _ACEOF
6758 cat confdefs.h >>conftest.$ac_ext
6759 cat >>conftest.$ac_ext <<_ACEOF
6760 /* end confdefs.h.  */
6761 $ac_includes_default
6762 #include <stdint.h>
6763 _ACEOF
6764 rm -f conftest.$ac_objext
6765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6766   (eval $ac_compile) 2>conftest.er1
6767   ac_status=$?
6768   grep -v '^ *+' conftest.er1 >conftest.err
6769   rm -f conftest.er1
6770   cat conftest.err >&5
6771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772   (exit $ac_status); } &&
6773          { ac_try='test -z "$ac_c_werror_flag"
6774                          || test ! -s conftest.err'
6775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776   (eval $ac_try) 2>&5
6777   ac_status=$?
6778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779   (exit $ac_status); }; } &&
6780          { ac_try='test -s conftest.$ac_objext'
6781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782   (eval $ac_try) 2>&5
6783   ac_status=$?
6784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785   (exit $ac_status); }; }; then
6786   ac_header_compiler=yes
6787 else
6788   echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.$ac_ext >&5
6790
6791 ac_header_compiler=no
6792 fi
6793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6794 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6795 echo "${ECHO_T}$ac_header_compiler" >&6
6796
6797 # Is the header present?
6798 echo "$as_me:$LINENO: checking stdint.h presence" >&5
6799 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
6800 cat >conftest.$ac_ext <<_ACEOF
6801 /* confdefs.h.  */
6802 _ACEOF
6803 cat confdefs.h >>conftest.$ac_ext
6804 cat >>conftest.$ac_ext <<_ACEOF
6805 /* end confdefs.h.  */
6806 #include <stdint.h>
6807 _ACEOF
6808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6809   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6810   ac_status=$?
6811   grep -v '^ *+' conftest.er1 >conftest.err
6812   rm -f conftest.er1
6813   cat conftest.err >&5
6814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815   (exit $ac_status); } >/dev/null; then
6816   if test -s conftest.err; then
6817     ac_cpp_err=$ac_c_preproc_warn_flag
6818     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6819   else
6820     ac_cpp_err=
6821   fi
6822 else
6823   ac_cpp_err=yes
6824 fi
6825 if test -z "$ac_cpp_err"; then
6826   ac_header_preproc=yes
6827 else
6828   echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6830
6831   ac_header_preproc=no
6832 fi
6833 rm -f conftest.err conftest.$ac_ext
6834 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6835 echo "${ECHO_T}$ac_header_preproc" >&6
6836
6837 # So?  What about this header?
6838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6839   yes:no: )
6840     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
6841 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6842     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
6843 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
6844     ac_header_preproc=yes
6845     ;;
6846   no:yes:* )
6847     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
6848 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
6849     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
6850 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
6851     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
6852 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
6853     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
6854 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6855     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
6856 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
6857     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
6858 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
6859     (
6860       cat <<\_ASBOX
6861 ## ------------------------------------------ ##
6862 ## Report this to the AC_PACKAGE_NAME lists.  ##
6863 ## ------------------------------------------ ##
6864 _ASBOX
6865     ) |
6866       sed "s/^/$as_me: WARNING:     /" >&2
6867     ;;
6868 esac
6869 echo "$as_me:$LINENO: checking for stdint.h" >&5
6870 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
6871 if test "${ac_cv_header_stdint_h+set}" = set; then
6872   echo $ECHO_N "(cached) $ECHO_C" >&6
6873 else
6874   ac_cv_header_stdint_h=$ac_header_preproc
6875 fi
6876 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
6877 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
6878
6879 fi
6880 if test $ac_cv_header_stdint_h = yes; then
6881   cat >>confdefs.h <<\_ACEOF
6882 #define HAVE_STDINT_H 1
6883 _ACEOF
6884
6885 fi
6886
6887
6888 if test "${ac_cv_header_stdbool_h+set}" = set; then
6889   echo "$as_me:$LINENO: checking for stdbool.h" >&5
6890 echo $ECHO_N "checking for stdbool.h... $ECHO_C" >&6
6891 if test "${ac_cv_header_stdbool_h+set}" = set; then
6892   echo $ECHO_N "(cached) $ECHO_C" >&6
6893 fi
6894 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
6895 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
6896 else
6897   # Is the header compilable?
6898 echo "$as_me:$LINENO: checking stdbool.h usability" >&5
6899 echo $ECHO_N "checking stdbool.h usability... $ECHO_C" >&6
6900 cat >conftest.$ac_ext <<_ACEOF
6901 /* confdefs.h.  */
6902 _ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h.  */
6906 $ac_includes_default
6907 #include <stdbool.h>
6908 _ACEOF
6909 rm -f conftest.$ac_objext
6910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6911   (eval $ac_compile) 2>conftest.er1
6912   ac_status=$?
6913   grep -v '^ *+' conftest.er1 >conftest.err
6914   rm -f conftest.er1
6915   cat conftest.err >&5
6916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917   (exit $ac_status); } &&
6918          { ac_try='test -z "$ac_c_werror_flag"
6919                          || test ! -s conftest.err'
6920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921   (eval $ac_try) 2>&5
6922   ac_status=$?
6923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924   (exit $ac_status); }; } &&
6925          { ac_try='test -s conftest.$ac_objext'
6926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6927   (eval $ac_try) 2>&5
6928   ac_status=$?
6929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930   (exit $ac_status); }; }; then
6931   ac_header_compiler=yes
6932 else
6933   echo "$as_me: failed program was:" >&5
6934 sed 's/^/| /' conftest.$ac_ext >&5
6935
6936 ac_header_compiler=no
6937 fi
6938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6940 echo "${ECHO_T}$ac_header_compiler" >&6
6941
6942 # Is the header present?
6943 echo "$as_me:$LINENO: checking stdbool.h presence" >&5
6944 echo $ECHO_N "checking stdbool.h presence... $ECHO_C" >&6
6945 cat >conftest.$ac_ext <<_ACEOF
6946 /* confdefs.h.  */
6947 _ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h.  */
6951 #include <stdbool.h>
6952 _ACEOF
6953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6954   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6955   ac_status=$?
6956   grep -v '^ *+' conftest.er1 >conftest.err
6957   rm -f conftest.er1
6958   cat conftest.err >&5
6959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960   (exit $ac_status); } >/dev/null; then
6961   if test -s conftest.err; then
6962     ac_cpp_err=$ac_c_preproc_warn_flag
6963     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6964   else
6965     ac_cpp_err=
6966   fi
6967 else
6968   ac_cpp_err=yes
6969 fi
6970 if test -z "$ac_cpp_err"; then
6971   ac_header_preproc=yes
6972 else
6973   echo "$as_me: failed program was:" >&5
6974 sed 's/^/| /' conftest.$ac_ext >&5
6975
6976   ac_header_preproc=no
6977 fi
6978 rm -f conftest.err conftest.$ac_ext
6979 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6980 echo "${ECHO_T}$ac_header_preproc" >&6
6981
6982 # So?  What about this header?
6983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6984   yes:no: )
6985     { echo "$as_me:$LINENO: WARNING: stdbool.h: accepted by the compiler, rejected by the preprocessor!" >&5
6986 echo "$as_me: WARNING: stdbool.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6987     { echo "$as_me:$LINENO: WARNING: stdbool.h: proceeding with the compiler's result" >&5
6988 echo "$as_me: WARNING: stdbool.h: proceeding with the compiler's result" >&2;}
6989     ac_header_preproc=yes
6990     ;;
6991   no:yes:* )
6992     { echo "$as_me:$LINENO: WARNING: stdbool.h: present but cannot be compiled" >&5
6993 echo "$as_me: WARNING: stdbool.h: present but cannot be compiled" >&2;}
6994     { echo "$as_me:$LINENO: WARNING: stdbool.h:     check for missing prerequisite headers?" >&5
6995 echo "$as_me: WARNING: stdbool.h:     check for missing prerequisite headers?" >&2;}
6996     { echo "$as_me:$LINENO: WARNING: stdbool.h: see the Autoconf documentation" >&5
6997 echo "$as_me: WARNING: stdbool.h: see the Autoconf documentation" >&2;}
6998     { echo "$as_me:$LINENO: WARNING: stdbool.h:     section \"Present But Cannot Be Compiled\"" >&5
6999 echo "$as_me: WARNING: stdbool.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7000     { echo "$as_me:$LINENO: WARNING: stdbool.h: proceeding with the preprocessor's result" >&5
7001 echo "$as_me: WARNING: stdbool.h: proceeding with the preprocessor's result" >&2;}
7002     { echo "$as_me:$LINENO: WARNING: stdbool.h: in the future, the compiler will take precedence" >&5
7003 echo "$as_me: WARNING: stdbool.h: in the future, the compiler will take precedence" >&2;}
7004     (
7005       cat <<\_ASBOX
7006 ## ------------------------------------------ ##
7007 ## Report this to the AC_PACKAGE_NAME lists.  ##
7008 ## ------------------------------------------ ##
7009 _ASBOX
7010     ) |
7011       sed "s/^/$as_me: WARNING:     /" >&2
7012     ;;
7013 esac
7014 echo "$as_me:$LINENO: checking for stdbool.h" >&5
7015 echo $ECHO_N "checking for stdbool.h... $ECHO_C" >&6
7016 if test "${ac_cv_header_stdbool_h+set}" = set; then
7017   echo $ECHO_N "(cached) $ECHO_C" >&6
7018 else
7019   ac_cv_header_stdbool_h=$ac_header_preproc
7020 fi
7021 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7022 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
7023
7024 fi
7025 if test $ac_cv_header_stdbool_h = yes; then
7026   cat >>confdefs.h <<\_ACEOF
7027 #define HAVE_STDBOOL_H 1
7028 _ACEOF
7029
7030 fi
7031
7032
7033 if test "${ac_cv_header_sys_filio_h+set}" = set; then
7034   echo "$as_me:$LINENO: checking for sys/filio.h" >&5
7035 echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6
7036 if test "${ac_cv_header_sys_filio_h+set}" = set; then
7037   echo $ECHO_N "(cached) $ECHO_C" >&6
7038 fi
7039 echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5
7040 echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6
7041 else
7042   # Is the header compilable?
7043 echo "$as_me:$LINENO: checking sys/filio.h usability" >&5
7044 echo $ECHO_N "checking sys/filio.h usability... $ECHO_C" >&6
7045 cat >conftest.$ac_ext <<_ACEOF
7046 /* confdefs.h.  */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h.  */
7051 $ac_includes_default
7052 #include <sys/filio.h>
7053 _ACEOF
7054 rm -f conftest.$ac_objext
7055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7056   (eval $ac_compile) 2>conftest.er1
7057   ac_status=$?
7058   grep -v '^ *+' conftest.er1 >conftest.err
7059   rm -f conftest.er1
7060   cat conftest.err >&5
7061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062   (exit $ac_status); } &&
7063          { ac_try='test -z "$ac_c_werror_flag"
7064                          || test ! -s conftest.err'
7065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066   (eval $ac_try) 2>&5
7067   ac_status=$?
7068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069   (exit $ac_status); }; } &&
7070          { ac_try='test -s conftest.$ac_objext'
7071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072   (eval $ac_try) 2>&5
7073   ac_status=$?
7074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075   (exit $ac_status); }; }; then
7076   ac_header_compiler=yes
7077 else
7078   echo "$as_me: failed program was:" >&5
7079 sed 's/^/| /' conftest.$ac_ext >&5
7080
7081 ac_header_compiler=no
7082 fi
7083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7084 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7085 echo "${ECHO_T}$ac_header_compiler" >&6
7086
7087 # Is the header present?
7088 echo "$as_me:$LINENO: checking sys/filio.h presence" >&5
7089 echo $ECHO_N "checking sys/filio.h presence... $ECHO_C" >&6
7090 cat >conftest.$ac_ext <<_ACEOF
7091 /* confdefs.h.  */
7092 _ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h.  */
7096 #include <sys/filio.h>
7097 _ACEOF
7098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7099   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7100   ac_status=$?
7101   grep -v '^ *+' conftest.er1 >conftest.err
7102   rm -f conftest.er1
7103   cat conftest.err >&5
7104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105   (exit $ac_status); } >/dev/null; then
7106   if test -s conftest.err; then
7107     ac_cpp_err=$ac_c_preproc_warn_flag
7108     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7109   else
7110     ac_cpp_err=
7111   fi
7112 else
7113   ac_cpp_err=yes
7114 fi
7115 if test -z "$ac_cpp_err"; then
7116   ac_header_preproc=yes
7117 else
7118   echo "$as_me: failed program was:" >&5
7119 sed 's/^/| /' conftest.$ac_ext >&5
7120
7121   ac_header_preproc=no
7122 fi
7123 rm -f conftest.err conftest.$ac_ext
7124 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7125 echo "${ECHO_T}$ac_header_preproc" >&6
7126
7127 # So?  What about this header?
7128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7129   yes:no: )
7130     { echo "$as_me:$LINENO: WARNING: sys/filio.h: accepted by the compiler, rejected by the preprocessor!" >&5
7131 echo "$as_me: WARNING: sys/filio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7132     { echo "$as_me:$LINENO: WARNING: sys/filio.h: proceeding with the compiler's result" >&5
7133 echo "$as_me: WARNING: sys/filio.h: proceeding with the compiler's result" >&2;}
7134     ac_header_preproc=yes
7135     ;;
7136   no:yes:* )
7137     { echo "$as_me:$LINENO: WARNING: sys/filio.h: present but cannot be compiled" >&5
7138 echo "$as_me: WARNING: sys/filio.h: present but cannot be compiled" >&2;}
7139     { echo "$as_me:$LINENO: WARNING: sys/filio.h:     check for missing prerequisite headers?" >&5
7140 echo "$as_me: WARNING: sys/filio.h:     check for missing prerequisite headers?" >&2;}
7141     { echo "$as_me:$LINENO: WARNING: sys/filio.h: see the Autoconf documentation" >&5
7142 echo "$as_me: WARNING: sys/filio.h: see the Autoconf documentation" >&2;}
7143     { echo "$as_me:$LINENO: WARNING: sys/filio.h:     section \"Present But Cannot Be Compiled\"" >&5
7144 echo "$as_me: WARNING: sys/filio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7145     { echo "$as_me:$LINENO: WARNING: sys/filio.h: proceeding with the preprocessor's result" >&5
7146 echo "$as_me: WARNING: sys/filio.h: proceeding with the preprocessor's result" >&2;}
7147     { echo "$as_me:$LINENO: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&5
7148 echo "$as_me: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&2;}
7149     (
7150       cat <<\_ASBOX
7151 ## ------------------------------------------ ##
7152 ## Report this to the AC_PACKAGE_NAME lists.  ##
7153 ## ------------------------------------------ ##
7154 _ASBOX
7155     ) |
7156       sed "s/^/$as_me: WARNING:     /" >&2
7157     ;;
7158 esac
7159 echo "$as_me:$LINENO: checking for sys/filio.h" >&5
7160 echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6
7161 if test "${ac_cv_header_sys_filio_h+set}" = set; then
7162   echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164   ac_cv_header_sys_filio_h=$ac_header_preproc
7165 fi
7166 echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5
7167 echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6
7168
7169 fi
7170 if test $ac_cv_header_sys_filio_h = yes; then
7171   cat >>confdefs.h <<\_ACEOF
7172 #define HAVE_SYS_FILIO_H 1
7173 _ACEOF
7174
7175 fi
7176
7177
7178 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
7179   echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
7180 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
7181 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
7182   echo $ECHO_N "(cached) $ECHO_C" >&6
7183 fi
7184 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
7185 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
7186 else
7187   # Is the header compilable?
7188 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
7189 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
7190 cat >conftest.$ac_ext <<_ACEOF
7191 /* confdefs.h.  */
7192 _ACEOF
7193 cat confdefs.h >>conftest.$ac_ext
7194 cat >>conftest.$ac_ext <<_ACEOF
7195 /* end confdefs.h.  */
7196 $ac_includes_default
7197 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
7198 _ACEOF
7199 rm -f conftest.$ac_objext
7200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7201   (eval $ac_compile) 2>conftest.er1
7202   ac_status=$?
7203   grep -v '^ *+' conftest.er1 >conftest.err
7204   rm -f conftest.er1
7205   cat conftest.err >&5
7206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207   (exit $ac_status); } &&
7208          { ac_try='test -z "$ac_c_werror_flag"
7209                          || test ! -s conftest.err'
7210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211   (eval $ac_try) 2>&5
7212   ac_status=$?
7213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214   (exit $ac_status); }; } &&
7215          { ac_try='test -s conftest.$ac_objext'
7216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7217   (eval $ac_try) 2>&5
7218   ac_status=$?
7219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220   (exit $ac_status); }; }; then
7221   ac_header_compiler=yes
7222 else
7223   echo "$as_me: failed program was:" >&5
7224 sed 's/^/| /' conftest.$ac_ext >&5
7225
7226 ac_header_compiler=no
7227 fi
7228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7230 echo "${ECHO_T}$ac_header_compiler" >&6
7231
7232 # Is the header present?
7233 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
7234 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
7235 cat >conftest.$ac_ext <<_ACEOF
7236 /* confdefs.h.  */
7237 _ACEOF
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h.  */
7241 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
7242 _ACEOF
7243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7244   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7245   ac_status=$?
7246   grep -v '^ *+' conftest.er1 >conftest.err
7247   rm -f conftest.er1
7248   cat conftest.err >&5
7249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250   (exit $ac_status); } >/dev/null; then
7251   if test -s conftest.err; then
7252     ac_cpp_err=$ac_c_preproc_warn_flag
7253     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7254   else
7255     ac_cpp_err=
7256   fi
7257 else
7258   ac_cpp_err=yes
7259 fi
7260 if test -z "$ac_cpp_err"; then
7261   ac_header_preproc=yes
7262 else
7263   echo "$as_me: failed program was:" >&5
7264 sed 's/^/| /' conftest.$ac_ext >&5
7265
7266   ac_header_preproc=no
7267 fi
7268 rm -f conftest.err conftest.$ac_ext
7269 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7270 echo "${ECHO_T}$ac_header_preproc" >&6
7271
7272 # So?  What about this header?
7273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7274   yes:no: )
7275     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
7276 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7277     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
7278 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
7279     ac_header_preproc=yes
7280     ;;
7281   no:yes:* )
7282     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
7283 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
7284     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&5
7285 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&2;}
7286     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
7287 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
7288     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&5
7289 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7290     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
7291 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
7292     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
7293 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
7294     (
7295       cat <<\_ASBOX
7296 ## ------------------------------------------ ##
7297 ## Report this to the AC_PACKAGE_NAME lists.  ##
7298 ## ------------------------------------------ ##
7299 _ASBOX
7300     ) |
7301       sed "s/^/$as_me: WARNING:     /" >&2
7302     ;;
7303 esac
7304 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
7305 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
7306 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
7307   echo $ECHO_N "(cached) $ECHO_C" >&6
7308 else
7309   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
7310 fi
7311 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
7312 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
7313
7314 fi
7315 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
7316   cat >>confdefs.h <<\_ACEOF
7317 #define HAVE_DNSREGISTRATION 1
7318 _ACEOF
7319  cat >>confdefs.h <<\_ACEOF
7320 #define HAVE_MDNS 1
7321 _ACEOF
7322
7323 fi
7324
7325
7326
7327
7328 # Check whether --with-howl or --without-howl was given.
7329 if test "${with_howl+set}" = set; then
7330   withval="$with_howl"
7331    OLDCFLAGS=$CFLAGS; CFLAGS="-I$withval/include/howl/ $CFLAGS";
7332      OLDLDFLAGS=$LDFLAGS; LDFLAGS="-L$withval/lib/ $LDFLAGS";
7333      OLDCPPFLAGS=$CPPFLAGS; CPPFLAGS="-I$withval/include/howl/ $CPPFLAGS";
7334      as_ac_Header=`echo "ac_cv_header_$withval/include/howl/howl.h" | $as_tr_sh`
7335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7336   echo "$as_me:$LINENO: checking for $withval/include/howl/howl.h" >&5
7337 echo $ECHO_N "checking for $withval/include/howl/howl.h... $ECHO_C" >&6
7338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7339   echo $ECHO_N "(cached) $ECHO_C" >&6
7340 fi
7341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7343 else
7344   # Is the header compilable?
7345 echo "$as_me:$LINENO: checking $withval/include/howl/howl.h usability" >&5
7346 echo $ECHO_N "checking $withval/include/howl/howl.h usability... $ECHO_C" >&6
7347 cat >conftest.$ac_ext <<_ACEOF
7348 /* confdefs.h.  */
7349 _ACEOF
7350 cat confdefs.h >>conftest.$ac_ext
7351 cat >>conftest.$ac_ext <<_ACEOF
7352 /* end confdefs.h.  */
7353 $ac_includes_default
7354 #include <$withval/include/howl/howl.h>
7355 _ACEOF
7356 rm -f conftest.$ac_objext
7357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7358   (eval $ac_compile) 2>conftest.er1
7359   ac_status=$?
7360   grep -v '^ *+' conftest.er1 >conftest.err
7361   rm -f conftest.er1
7362   cat conftest.err >&5
7363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364   (exit $ac_status); } &&
7365          { ac_try='test -z "$ac_c_werror_flag"
7366                          || test ! -s conftest.err'
7367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7368   (eval $ac_try) 2>&5
7369   ac_status=$?
7370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371   (exit $ac_status); }; } &&
7372          { ac_try='test -s conftest.$ac_objext'
7373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374   (eval $ac_try) 2>&5
7375   ac_status=$?
7376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377   (exit $ac_status); }; }; then
7378   ac_header_compiler=yes
7379 else
7380   echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.$ac_ext >&5
7382
7383 ac_header_compiler=no
7384 fi
7385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7387 echo "${ECHO_T}$ac_header_compiler" >&6
7388
7389 # Is the header present?
7390 echo "$as_me:$LINENO: checking $withval/include/howl/howl.h presence" >&5
7391 echo $ECHO_N "checking $withval/include/howl/howl.h presence... $ECHO_C" >&6
7392 cat >conftest.$ac_ext <<_ACEOF
7393 /* confdefs.h.  */
7394 _ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h.  */
7398 #include <$withval/include/howl/howl.h>
7399 _ACEOF
7400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7401   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7402   ac_status=$?
7403   grep -v '^ *+' conftest.er1 >conftest.err
7404   rm -f conftest.er1
7405   cat conftest.err >&5
7406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407   (exit $ac_status); } >/dev/null; then
7408   if test -s conftest.err; then
7409     ac_cpp_err=$ac_c_preproc_warn_flag
7410     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7411   else
7412     ac_cpp_err=
7413   fi
7414 else
7415   ac_cpp_err=yes
7416 fi
7417 if test -z "$ac_cpp_err"; then
7418   ac_header_preproc=yes
7419 else
7420   echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7422
7423   ac_header_preproc=no
7424 fi
7425 rm -f conftest.err conftest.$ac_ext
7426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7427 echo "${ECHO_T}$ac_header_preproc" >&6
7428
7429 # So?  What about this header?
7430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7431   yes:no: )
7432     { echo "$as_me:$LINENO: WARNING: $withval/include/howl/howl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7433 echo "$as_me: WARNING: $withval/include/howl/howl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7434     { echo "$as_me:$LINENO: WARNING: $withval/include/howl/howl.h: proceeding with the compiler's result" >&5
7435 echo "$as_me: WARNING: $withval/include/howl/howl.h: proceeding with the compiler's result" >&2;}
7436     ac_header_preproc=yes
7437     ;;
7438   no:yes:* )
7439     { echo "$as_me:$LINENO: WARNING: $withval/include/howl/howl.h: present but cannot be compiled" >&5
7440 echo "$as_me: WARNING: $withval/include/howl/howl.h: present but cannot be compiled" >&2;}
7441     { echo "$as_me:$LINENO: WARNING: $withval/include/howl/howl.h:     check for missing prerequisite headers?" >&5
7442 echo "$as_me: WARNING: $withval/include/howl/howl.h:     check for missing prerequisite headers?" >&2;}
7443     { echo "$as_me:$LINENO: WARNING: $withval/include/howl/howl.h: see the Autoconf documentation" >&5
7444 echo "$as_me: WARNING: $withval/include/howl/howl.h: see the Autoconf documentation" >&2;}
7445     { echo "$as_me:$LINENO: WARNING: $withval/include/howl/howl.h:     section \"Present But Cannot Be Compiled\"" >&5
7446 echo "$as_me: WARNING: $withval/include/howl/howl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7447     { echo "$as_me:$LINENO: WARNING: $withval/include/howl/howl.h: proceeding with the preprocessor's result" >&5
7448 echo "$as_me: WARNING: $withval/include/howl/howl.h: proceeding with the preprocessor's result" >&2;}
7449     { echo "$as_me:$LINENO: WARNING: $withval/include/howl/howl.h: in the future, the compiler will take precedence" >&5
7450 echo "$as_me: WARNING: $withval/include/howl/howl.h: in the future, the compiler will take precedence" >&2;}
7451     (
7452       cat <<\_ASBOX
7453 ## ------------------------------------------ ##
7454 ## Report this to the AC_PACKAGE_NAME lists.  ##
7455 ## ------------------------------------------ ##
7456 _ASBOX
7457     ) |
7458       sed "s/^/$as_me: WARNING:     /" >&2
7459     ;;
7460 esac
7461 echo "$as_me:$LINENO: checking for $withval/include/howl/howl.h" >&5
7462 echo $ECHO_N "checking for $withval/include/howl/howl.h... $ECHO_C" >&6
7463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7464   echo $ECHO_N "(cached) $ECHO_C" >&6
7465 else
7466   eval "$as_ac_Header=\$ac_header_preproc"
7467 fi
7468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7470
7471 fi
7472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7473   cat >>confdefs.h <<\_ACEOF
7474 #define HAVE_HOWL 1
7475 _ACEOF
7476  cat >>confdefs.h <<\_ACEOF
7477 #define HAVE_MDNS 1
7478 _ACEOF
7479
7480 else
7481   CFLAGS=$OLDCFLAGS; LDFLAGS=$OLDLDFLAGS; CPPFLAGS=$OLDCPPFLAGS;
7482 fi
7483
7484
7485      echo "$as_me:$LINENO: checking for sw_discovery_publish in -lhowl" >&5
7486 echo $ECHO_N "checking for sw_discovery_publish in -lhowl... $ECHO_C" >&6
7487 if test "${ac_cv_lib_howl_sw_discovery_publish+set}" = set; then
7488   echo $ECHO_N "(cached) $ECHO_C" >&6
7489 else
7490   ac_check_lib_save_LIBS=$LIBS
7491 LIBS="-lhowl  $LIBS"
7492 cat >conftest.$ac_ext <<_ACEOF
7493 /* confdefs.h.  */
7494 _ACEOF
7495 cat confdefs.h >>conftest.$ac_ext
7496 cat >>conftest.$ac_ext <<_ACEOF
7497 /* end confdefs.h.  */
7498
7499 /* Override any gcc2 internal prototype to avoid an error.  */
7500 #ifdef __cplusplus
7501 extern "C"
7502 #endif
7503 /* We use char because int might match the return type of a gcc2
7504    builtin and then its argument prototype would still apply.  */
7505 char sw_discovery_publish ();
7506 int
7507 main ()
7508 {
7509 sw_discovery_publish ();
7510   ;
7511   return 0;
7512 }
7513 _ACEOF
7514 rm -f conftest.$ac_objext conftest$ac_exeext
7515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7516   (eval $ac_link) 2>conftest.er1
7517   ac_status=$?
7518   grep -v '^ *+' conftest.er1 >conftest.err
7519   rm -f conftest.er1
7520   cat conftest.err >&5
7521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522   (exit $ac_status); } &&
7523          { ac_try='test -z "$ac_c_werror_flag"
7524                          || test ! -s conftest.err'
7525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526   (eval $ac_try) 2>&5
7527   ac_status=$?
7528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529   (exit $ac_status); }; } &&
7530          { ac_try='test -s conftest$ac_exeext'
7531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7532   (eval $ac_try) 2>&5
7533   ac_status=$?
7534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535   (exit $ac_status); }; }; then
7536   ac_cv_lib_howl_sw_discovery_publish=yes
7537 else
7538   echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.$ac_ext >&5
7540
7541 ac_cv_lib_howl_sw_discovery_publish=no
7542 fi
7543 rm -f conftest.err conftest.$ac_objext \
7544       conftest$ac_exeext conftest.$ac_ext
7545 LIBS=$ac_check_lib_save_LIBS
7546 fi
7547 echo "$as_me:$LINENO: result: $ac_cv_lib_howl_sw_discovery_publish" >&5
7548 echo "${ECHO_T}$ac_cv_lib_howl_sw_discovery_publish" >&6
7549 if test $ac_cv_lib_howl_sw_discovery_publish = yes; then
7550   LIBS="-lhowl $LIBS"
7551 else
7552
7553         OLDLIBS=$LIBS; LIBS="-lpthread $LIBS";
7554         echo "$as_me:$LINENO: checking for main in -lhowl" >&5
7555 echo $ECHO_N "checking for main in -lhowl... $ECHO_C" >&6
7556 if test "${ac_cv_lib_howl_main+set}" = set; then
7557   echo $ECHO_N "(cached) $ECHO_C" >&6
7558 else
7559   ac_check_lib_save_LIBS=$LIBS
7560 LIBS="-lhowl  $LIBS"
7561 cat >conftest.$ac_ext <<_ACEOF
7562 /* confdefs.h.  */
7563 _ACEOF
7564 cat confdefs.h >>conftest.$ac_ext
7565 cat >>conftest.$ac_ext <<_ACEOF
7566 /* end confdefs.h.  */
7567
7568
7569 int
7570 main ()
7571 {
7572 main ();
7573   ;
7574   return 0;
7575 }
7576 _ACEOF
7577 rm -f conftest.$ac_objext conftest$ac_exeext
7578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7579   (eval $ac_link) 2>conftest.er1
7580   ac_status=$?
7581   grep -v '^ *+' conftest.er1 >conftest.err
7582   rm -f conftest.er1
7583   cat conftest.err >&5
7584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585   (exit $ac_status); } &&
7586          { ac_try='test -z "$ac_c_werror_flag"
7587                          || test ! -s conftest.err'
7588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7589   (eval $ac_try) 2>&5
7590   ac_status=$?
7591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592   (exit $ac_status); }; } &&
7593          { ac_try='test -s conftest$ac_exeext'
7594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595   (eval $ac_try) 2>&5
7596   ac_status=$?
7597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598   (exit $ac_status); }; }; then
7599   ac_cv_lib_howl_main=yes
7600 else
7601   echo "$as_me: failed program was:" >&5
7602 sed 's/^/| /' conftest.$ac_ext >&5
7603
7604 ac_cv_lib_howl_main=no
7605 fi
7606 rm -f conftest.err conftest.$ac_objext \
7607       conftest$ac_exeext conftest.$ac_ext
7608 LIBS=$ac_check_lib_save_LIBS
7609 fi
7610 echo "$as_me:$LINENO: result: $ac_cv_lib_howl_main" >&5
7611 echo "${ECHO_T}$ac_cv_lib_howl_main" >&6
7612 if test $ac_cv_lib_howl_main = yes; then
7613   LIBS="-lhowl $LIBS"
7614 else
7615   LIBS=$OLDLIBS
7616 fi
7617
7618
7619 fi
7620
7621
7622 fi;
7623
7624 echo "$as_me:$LINENO: checking for uint16_t" >&5
7625 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7626 if test "${xinetd_cv_type_uint16_t+set}" = set; then
7627   echo $ECHO_N "(cached) $ECHO_C" >&6
7628 else
7629   cat >conftest.$ac_ext <<_ACEOF
7630 /* confdefs.h.  */
7631 _ACEOF
7632 cat confdefs.h >>conftest.$ac_ext
7633 cat >>conftest.$ac_ext <<_ACEOF
7634 /* end confdefs.h.  */
7635 #include <sys/types.h>
7636 #if STDC_HEADERS
7637 #include <stdlib.h>
7638 #endif
7639 #if HAVE_NETDB_H
7640 #include <netdb.h>
7641 #endif
7642 #if HAVE_RLIM_T
7643 #include <sys/resource.h>
7644 #endif
7645 #if HAVE_STDINT_H
7646 #include <stdint.h>
7647 #endif
7648 #if HAVE_UNISTD_H
7649 #include <unistd.h>
7650 #endif
7651 _ACEOF
7652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7653   $EGREP "uint16_t" >/dev/null 2>&1; then
7654   xinetd_cv_type_uint16_t=yes
7655 else
7656   xinetd_cv_type_uint16_t=no
7657 fi
7658 rm -f conftest*
7659
7660 fi
7661 echo "$as_me:$LINENO: result: $xinetd_cv_type_uint16_t" >&5
7662 echo "${ECHO_T}$xinetd_cv_type_uint16_t" >&6
7663 if test $xinetd_cv_type_uint16_t = no; then
7664    cat >>confdefs.h <<\_ACEOF
7665 #define uint16_t unsigned short
7666 _ACEOF
7667
7668 fi
7669
7670 echo "$as_me:$LINENO: checking for uint32_t" >&5
7671 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7672 if test "${xinetd_cv_type_uint32_t+set}" = set; then
7673   echo $ECHO_N "(cached) $ECHO_C" >&6
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 <sys/types.h>
7682 #if STDC_HEADERS
7683 #include <stdlib.h>
7684 #endif
7685 #if HAVE_NETDB_H
7686 #include <netdb.h>
7687 #endif
7688 #if HAVE_RLIM_T
7689 #include <sys/resource.h>
7690 #endif
7691 #if HAVE_STDINT_H
7692 #include <stdint.h>
7693 #endif
7694 #if HAVE_UNISTD_H
7695 #include <unistd.h>
7696 #endif
7697 _ACEOF
7698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7699   $EGREP "uint32_t" >/dev/null 2>&1; then
7700   xinetd_cv_type_uint32_t=yes
7701 else
7702   xinetd_cv_type_uint32_t=no
7703 fi
7704 rm -f conftest*
7705
7706 fi
7707 echo "$as_me:$LINENO: result: $xinetd_cv_type_uint32_t" >&5
7708 echo "${ECHO_T}$xinetd_cv_type_uint32_t" >&6
7709 if test $xinetd_cv_type_uint32_t = no; then
7710    cat >>confdefs.h <<\_ACEOF
7711 #define uint32_t unsigned int
7712 _ACEOF
7713
7714 fi
7715
7716 echo "$as_me:$LINENO: checking for uint64_t" >&5
7717 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
7718 if test "${xinetd_cv_type_uint64_t+set}" = set; then
7719   echo $ECHO_N "(cached) $ECHO_C" >&6
7720 else
7721   cat >conftest.$ac_ext <<_ACEOF
7722 /* confdefs.h.  */
7723 _ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h.  */
7727 #include <sys/types.h>
7728 #if STDC_HEADERS
7729 #include <stdlib.h>
7730 #endif
7731 #if HAVE_NETDB_H
7732 #include <netdb.h>
7733 #endif
7734 #if HAVE_RLIM_T
7735 #include <sys/resource.h>
7736 #endif
7737 #if HAVE_STDINT_H
7738 #include <stdint.h>
7739 #endif
7740 #if HAVE_UNISTD_H
7741 #include <unistd.h>
7742 #endif
7743 _ACEOF
7744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7745   $EGREP "uint64_t" >/dev/null 2>&1; then
7746   xinetd_cv_type_uint64_t=yes
7747 else
7748   xinetd_cv_type_uint64_t=no
7749 fi
7750 rm -f conftest*
7751
7752 fi
7753 echo "$as_me:$LINENO: result: $xinetd_cv_type_uint64_t" >&5
7754 echo "${ECHO_T}$xinetd_cv_type_uint64_t" >&6
7755 if test $xinetd_cv_type_uint64_t = no; then
7756    cat >>confdefs.h <<\_ACEOF
7757 #define uint64_t unsigned long long
7758 _ACEOF
7759
7760 fi
7761
7762 echo "$as_me:$LINENO: checking for uid_t" >&5
7763 echo $ECHO_N "checking for uid_t... $ECHO_C" >&6
7764 if test "${xinetd_cv_type_uid_t+set}" = set; then
7765   echo $ECHO_N "(cached) $ECHO_C" >&6
7766 else
7767   cat >conftest.$ac_ext <<_ACEOF
7768 /* confdefs.h.  */
7769 _ACEOF
7770 cat confdefs.h >>conftest.$ac_ext
7771 cat >>conftest.$ac_ext <<_ACEOF
7772 /* end confdefs.h.  */
7773 #include <sys/types.h>
7774 #if STDC_HEADERS
7775 #include <stdlib.h>
7776 #endif
7777 #if HAVE_NETDB_H
7778 #include <netdb.h>
7779 #endif
7780 #if HAVE_RLIM_T
7781 #include <sys/resource.h>
7782 #endif
7783 #if HAVE_STDINT_H
7784 #include <stdint.h>
7785 #endif
7786 #if HAVE_UNISTD_H
7787 #include <unistd.h>
7788 #endif
7789 _ACEOF
7790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7791   $EGREP "uid_t" >/dev/null 2>&1; then
7792   xinetd_cv_type_uid_t=yes
7793 else
7794   xinetd_cv_type_uid_t=no
7795 fi
7796 rm -f conftest*
7797
7798 fi
7799 echo "$as_me:$LINENO: result: $xinetd_cv_type_uid_t" >&5
7800 echo "${ECHO_T}$xinetd_cv_type_uid_t" >&6
7801 if test $xinetd_cv_type_uid_t = no; then
7802    cat >>confdefs.h <<\_ACEOF
7803 #define uid_t unsigned int
7804 _ACEOF
7805
7806 fi
7807
7808 echo "$as_me:$LINENO: checking for gid_t" >&5
7809 echo $ECHO_N "checking for gid_t... $ECHO_C" >&6
7810 if test "${xinetd_cv_type_gid_t+set}" = set; then
7811   echo $ECHO_N "(cached) $ECHO_C" >&6
7812 else
7813   cat >conftest.$ac_ext <<_ACEOF
7814 /* confdefs.h.  */
7815 _ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h.  */
7819 #include <sys/types.h>
7820 #if STDC_HEADERS
7821 #include <stdlib.h>
7822 #endif
7823 #if HAVE_NETDB_H
7824 #include <netdb.h>
7825 #endif
7826 #if HAVE_RLIM_T
7827 #include <sys/resource.h>
7828 #endif
7829 #if HAVE_STDINT_H
7830 #include <stdint.h>
7831 #endif
7832 #if HAVE_UNISTD_H
7833 #include <unistd.h>
7834 #endif
7835 _ACEOF
7836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7837   $EGREP "gid_t" >/dev/null 2>&1; then
7838   xinetd_cv_type_gid_t=yes
7839 else
7840   xinetd_cv_type_gid_t=no
7841 fi
7842 rm -f conftest*
7843
7844 fi
7845 echo "$as_me:$LINENO: result: $xinetd_cv_type_gid_t" >&5
7846 echo "${ECHO_T}$xinetd_cv_type_gid_t" >&6
7847 if test $xinetd_cv_type_gid_t = no; then
7848    cat >>confdefs.h <<\_ACEOF
7849 #define gid_t unsigned int
7850 _ACEOF
7851
7852 fi
7853
7854 echo "$as_me:$LINENO: checking for socklen_t" >&5
7855 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
7856 if test "${xinetd_cv_type_socklen_t+set}" = set; then
7857   echo $ECHO_N "(cached) $ECHO_C" >&6
7858 else
7859   cat >conftest.$ac_ext <<_ACEOF
7860 /* confdefs.h.  */
7861 _ACEOF
7862 cat confdefs.h >>conftest.$ac_ext
7863 cat >>conftest.$ac_ext <<_ACEOF
7864 /* end confdefs.h.  */
7865 #include <sys/types.h>
7866 #if STDC_HEADERS
7867 #include <stdlib.h>
7868 #endif
7869 #if HAVE_NETDB_H
7870 #include <netdb.h>
7871 #endif
7872 #if HAVE_RLIM_T
7873 #include <sys/resource.h>
7874 #endif
7875 #if HAVE_STDINT_H
7876 #include <stdint.h>
7877 #endif
7878 #if HAVE_UNISTD_H
7879 #include <unistd.h>
7880 #endif
7881 _ACEOF
7882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7883   $EGREP "socklen_t" >/dev/null 2>&1; then
7884   xinetd_cv_type_socklen_t=yes
7885 else
7886   xinetd_cv_type_socklen_t=no
7887 fi
7888 rm -f conftest*
7889
7890 fi
7891 echo "$as_me:$LINENO: result: $xinetd_cv_type_socklen_t" >&5
7892 echo "${ECHO_T}$xinetd_cv_type_socklen_t" >&6
7893 if test $xinetd_cv_type_socklen_t = no; then
7894    cat >>confdefs.h <<\_ACEOF
7895 #define socklen_t unsigned int
7896 _ACEOF
7897
7898 fi
7899
7900 echo "$as_me:$LINENO: checking for rlim_t" >&5
7901 echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6
7902 if test "${xinetd_cv_type_rlim_t+set}" = set; then
7903   echo $ECHO_N "(cached) $ECHO_C" >&6
7904 else
7905   cat >conftest.$ac_ext <<_ACEOF
7906 /* confdefs.h.  */
7907 _ACEOF
7908 cat confdefs.h >>conftest.$ac_ext
7909 cat >>conftest.$ac_ext <<_ACEOF
7910 /* end confdefs.h.  */
7911 #include <sys/types.h>
7912 #if STDC_HEADERS
7913 #include <stdlib.h>
7914 #endif
7915 #if HAVE_NETDB_H
7916 #include <netdb.h>
7917 #endif
7918 #if HAVE_RLIM_T
7919 #include <sys/resource.h>
7920 #endif
7921 #if HAVE_STDINT_H
7922 #include <stdint.h>
7923 #endif
7924 #if HAVE_UNISTD_H
7925 #include <unistd.h>
7926 #endif
7927 _ACEOF
7928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7929   $EGREP "rlim_t" >/dev/null 2>&1; then
7930   xinetd_cv_type_rlim_t=yes
7931 else
7932   xinetd_cv_type_rlim_t=no
7933 fi
7934 rm -f conftest*
7935
7936 fi
7937 echo "$as_me:$LINENO: result: $xinetd_cv_type_rlim_t" >&5
7938 echo "${ECHO_T}$xinetd_cv_type_rlim_t" >&6
7939 if test $xinetd_cv_type_rlim_t = no; then
7940    cat >>confdefs.h <<\_ACEOF
7941 #define rlim_t long long
7942 _ACEOF
7943
7944 fi
7945
7946
7947 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
7948 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
7949 if test "${ac_cv_have_struct_addrinfo+set}" = set; then
7950   echo $ECHO_N "(cached) $ECHO_C" >&6
7951 else
7952
7953         cat >conftest.$ac_ext <<_ACEOF
7954 /* confdefs.h.  */
7955 _ACEOF
7956 cat confdefs.h >>conftest.$ac_ext
7957 cat >>conftest.$ac_ext <<_ACEOF
7958 /* end confdefs.h.  */
7959
7960 #include <sys/types.h>
7961 #include <sys/socket.h>
7962 #ifdef HAVE_NETDB_H
7963 #include <netdb.h>
7964 #endif
7965
7966 int
7967 main ()
7968 {
7969  struct addrinfo s; s.ai_flags = AI_PASSIVE;
7970   ;
7971   return 0;
7972 }
7973 _ACEOF
7974 rm -f conftest.$ac_objext
7975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7976   (eval $ac_compile) 2>conftest.er1
7977   ac_status=$?
7978   grep -v '^ *+' conftest.er1 >conftest.err
7979   rm -f conftest.er1
7980   cat conftest.err >&5
7981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982   (exit $ac_status); } &&
7983          { ac_try='test -z "$ac_c_werror_flag"
7984                          || test ! -s conftest.err'
7985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7986   (eval $ac_try) 2>&5
7987   ac_status=$?
7988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989   (exit $ac_status); }; } &&
7990          { ac_try='test -s conftest.$ac_objext'
7991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7992   (eval $ac_try) 2>&5
7993   ac_status=$?
7994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995   (exit $ac_status); }; }; then
7996    ac_cv_have_struct_addrinfo="yes"
7997 else
7998   echo "$as_me: failed program was:" >&5
7999 sed 's/^/| /' conftest.$ac_ext >&5
8000
8001  ac_cv_have_struct_addrinfo="no"
8002
8003 fi
8004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8005
8006 fi
8007 echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
8008 echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6
8009 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
8010         cat >>confdefs.h <<\_ACEOF
8011 #define HAVE_STRUCT_ADDRINFO 1
8012 _ACEOF
8013
8014 fi
8015
8016 echo "$as_me:$LINENO: checking for struct in6_addr" >&5
8017 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
8018 if test "${ac_cv_have_struct_in6_addr+set}" = set; then
8019   echo $ECHO_N "(cached) $ECHO_C" >&6
8020 else
8021
8022         cat >conftest.$ac_ext <<_ACEOF
8023 /* confdefs.h.  */
8024 _ACEOF
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h.  */
8028
8029 #include <sys/types.h>
8030 #include <netinet/in.h>
8031
8032 int
8033 main ()
8034 {
8035  struct in6_addr s; s.s6_addr[0] = 0;
8036   ;
8037   return 0;
8038 }
8039 _ACEOF
8040 rm -f conftest.$ac_objext
8041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8042   (eval $ac_compile) 2>conftest.er1
8043   ac_status=$?
8044   grep -v '^ *+' conftest.er1 >conftest.err
8045   rm -f conftest.er1
8046   cat conftest.err >&5
8047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048   (exit $ac_status); } &&
8049          { ac_try='test -z "$ac_c_werror_flag"
8050                          || test ! -s conftest.err'
8051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052   (eval $ac_try) 2>&5
8053   ac_status=$?
8054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055   (exit $ac_status); }; } &&
8056          { ac_try='test -s conftest.$ac_objext'
8057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058   (eval $ac_try) 2>&5
8059   ac_status=$?
8060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061   (exit $ac_status); }; }; then
8062    ac_cv_have_struct_in6_addr="yes"
8063 else
8064   echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8066
8067  ac_cv_have_struct_in6_addr="no"
8068
8069 fi
8070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8071
8072 fi
8073 echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
8074 echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6
8075 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
8076         cat >>confdefs.h <<\_ACEOF
8077 #define HAVE_STRUCT_IN6_ADDR 1
8078 _ACEOF
8079
8080 fi
8081
8082 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
8083 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
8084 if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
8085   echo $ECHO_N "(cached) $ECHO_C" >&6
8086 else
8087
8088         cat >conftest.$ac_ext <<_ACEOF
8089 /* confdefs.h.  */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h.  */
8094
8095 #include <sys/types.h>
8096 #include <netinet/in.h>
8097
8098 int
8099 main ()
8100 {
8101  struct sockaddr_in6 s; s.sin6_family = 0;
8102   ;
8103   return 0;
8104 }
8105 _ACEOF
8106 rm -f conftest.$ac_objext
8107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8108   (eval $ac_compile) 2>conftest.er1
8109   ac_status=$?
8110   grep -v '^ *+' conftest.er1 >conftest.err
8111   rm -f conftest.er1
8112   cat conftest.err >&5
8113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114   (exit $ac_status); } &&
8115          { ac_try='test -z "$ac_c_werror_flag"
8116                          || test ! -s conftest.err'
8117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118   (eval $ac_try) 2>&5
8119   ac_status=$?
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); }; } &&
8122          { ac_try='test -s conftest.$ac_objext'
8123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124   (eval $ac_try) 2>&5
8125   ac_status=$?
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); }; }; then
8128    ac_cv_have_struct_sockaddr_in6="yes"
8129 else
8130   echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8132
8133  ac_cv_have_struct_sockaddr_in6="no"
8134
8135 fi
8136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8137
8138 fi
8139 echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
8140 echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6
8141 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
8142         cat >>confdefs.h <<\_ACEOF
8143 #define HAVE_STRUCT_SOCKADDR_IN6 1
8144 _ACEOF
8145
8146 fi
8147
8148 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
8149 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
8150 if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
8151   echo $ECHO_N "(cached) $ECHO_C" >&6
8152 else
8153
8154         cat >conftest.$ac_ext <<_ACEOF
8155 /* confdefs.h.  */
8156 _ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h.  */
8160
8161 #include <sys/types.h>
8162 #include <sys/socket.h>
8163
8164 int
8165 main ()
8166 {
8167  struct sockaddr_storage s;
8168   ;
8169   return 0;
8170 }
8171 _ACEOF
8172 rm -f conftest.$ac_objext
8173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8174   (eval $ac_compile) 2>conftest.er1
8175   ac_status=$?
8176   grep -v '^ *+' conftest.er1 >conftest.err
8177   rm -f conftest.er1
8178   cat conftest.err >&5
8179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180   (exit $ac_status); } &&
8181          { ac_try='test -z "$ac_c_werror_flag"
8182                          || test ! -s conftest.err'
8183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8184   (eval $ac_try) 2>&5
8185   ac_status=$?
8186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187   (exit $ac_status); }; } &&
8188          { ac_try='test -s conftest.$ac_objext'
8189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190   (eval $ac_try) 2>&5
8191   ac_status=$?
8192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193   (exit $ac_status); }; }; then
8194    ac_cv_have_struct_sockaddr_storage="yes"
8195 else
8196   echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8198
8199  ac_cv_have_struct_sockaddr_storage="no"
8200
8201 fi
8202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8203
8204 fi
8205 echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
8206 echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6
8207 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
8208         cat >>confdefs.h <<\_ACEOF
8209 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
8210 _ACEOF
8211
8212 fi
8213
8214
8215 case "$target_os" in
8216
8217 solaris*)
8218         cat >>confdefs.h <<\_ACEOF
8219 #define N0_SIGLIST 1
8220 _ACEOF
8221
8222         cat >>confdefs.h <<\_ACEOF
8223 #define solaris 1
8224 _ACEOF
8225
8226
8227         echo "$as_me:$LINENO: checking whether to compile in loadavg" >&5
8228 echo $ECHO_N "checking whether to compile in loadavg... $ECHO_C" >&6
8229
8230 # Check whether --with-loadavg or --without-loadavg was given.
8231 if test "${with_loadavg+set}" = set; then
8232   withval="$with_loadavg"
8233    case "$withval" in
8234                 no)
8235                         echo "$as_me:$LINENO: result: no" >&5
8236 echo "${ECHO_T}no" >&6
8237                         ;;
8238                 yes)
8239                         echo "$as_me:$LINENO: result: yes" >&5
8240 echo "${ECHO_T}yes" >&6
8241
8242 echo "$as_me:$LINENO: checking for main in -lkstat" >&5
8243 echo $ECHO_N "checking for main in -lkstat... $ECHO_C" >&6
8244 if test "${ac_cv_lib_kstat_main+set}" = set; then
8245   echo $ECHO_N "(cached) $ECHO_C" >&6
8246 else
8247   ac_check_lib_save_LIBS=$LIBS
8248 LIBS="-lkstat  $LIBS"
8249 cat >conftest.$ac_ext <<_ACEOF
8250 /* confdefs.h.  */
8251 _ACEOF
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h.  */
8255
8256
8257 int
8258 main ()
8259 {
8260 main ();
8261   ;
8262   return 0;
8263 }
8264 _ACEOF
8265 rm -f conftest.$ac_objext conftest$ac_exeext
8266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8267   (eval $ac_link) 2>conftest.er1
8268   ac_status=$?
8269   grep -v '^ *+' conftest.er1 >conftest.err
8270   rm -f conftest.er1
8271   cat conftest.err >&5
8272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273   (exit $ac_status); } &&
8274          { ac_try='test -z "$ac_c_werror_flag"
8275                          || test ! -s conftest.err'
8276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8277   (eval $ac_try) 2>&5
8278   ac_status=$?
8279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280   (exit $ac_status); }; } &&
8281          { ac_try='test -s conftest$ac_exeext'
8282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8283   (eval $ac_try) 2>&5
8284   ac_status=$?
8285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286   (exit $ac_status); }; }; then
8287   ac_cv_lib_kstat_main=yes
8288 else
8289   echo "$as_me: failed program was:" >&5
8290 sed 's/^/| /' conftest.$ac_ext >&5
8291
8292 ac_cv_lib_kstat_main=no
8293 fi
8294 rm -f conftest.err conftest.$ac_objext \
8295       conftest$ac_exeext conftest.$ac_ext
8296 LIBS=$ac_check_lib_save_LIBS
8297 fi
8298 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_main" >&5
8299 echo "${ECHO_T}$ac_cv_lib_kstat_main" >&6
8300 if test $ac_cv_lib_kstat_main = yes; then
8301   cat >>confdefs.h <<_ACEOF
8302 #define HAVE_LIBKSTAT 1
8303 _ACEOF
8304
8305   LIBS="-lkstat $LIBS"
8306
8307 fi
8308
8309                         if test "${ac_cv_header_kstat_h+set}" = set; then
8310   echo "$as_me:$LINENO: checking for kstat.h" >&5
8311 echo $ECHO_N "checking for kstat.h... $ECHO_C" >&6
8312 if test "${ac_cv_header_kstat_h+set}" = set; then
8313   echo $ECHO_N "(cached) $ECHO_C" >&6
8314 fi
8315 echo "$as_me:$LINENO: result: $ac_cv_header_kstat_h" >&5
8316 echo "${ECHO_T}$ac_cv_header_kstat_h" >&6
8317 else
8318   # Is the header compilable?
8319 echo "$as_me:$LINENO: checking kstat.h usability" >&5
8320 echo $ECHO_N "checking kstat.h usability... $ECHO_C" >&6
8321 cat >conftest.$ac_ext <<_ACEOF
8322 /* confdefs.h.  */
8323 _ACEOF
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h.  */
8327 $ac_includes_default
8328 #include <kstat.h>
8329 _ACEOF
8330 rm -f conftest.$ac_objext
8331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8332   (eval $ac_compile) 2>conftest.er1
8333   ac_status=$?
8334   grep -v '^ *+' conftest.er1 >conftest.err
8335   rm -f conftest.er1
8336   cat conftest.err >&5
8337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338   (exit $ac_status); } &&
8339          { ac_try='test -z "$ac_c_werror_flag"
8340                          || test ! -s conftest.err'
8341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8342   (eval $ac_try) 2>&5
8343   ac_status=$?
8344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345   (exit $ac_status); }; } &&
8346          { ac_try='test -s conftest.$ac_objext'
8347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348   (eval $ac_try) 2>&5
8349   ac_status=$?
8350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   (exit $ac_status); }; }; then
8352   ac_header_compiler=yes
8353 else
8354   echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.$ac_ext >&5
8356
8357 ac_header_compiler=no
8358 fi
8359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8360 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8361 echo "${ECHO_T}$ac_header_compiler" >&6
8362
8363 # Is the header present?
8364 echo "$as_me:$LINENO: checking kstat.h presence" >&5
8365 echo $ECHO_N "checking kstat.h presence... $ECHO_C" >&6
8366 cat >conftest.$ac_ext <<_ACEOF
8367 /* confdefs.h.  */
8368 _ACEOF
8369 cat confdefs.h >>conftest.$ac_ext
8370 cat >>conftest.$ac_ext <<_ACEOF
8371 /* end confdefs.h.  */
8372 #include <kstat.h>
8373 _ACEOF
8374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8375   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8376   ac_status=$?
8377   grep -v '^ *+' conftest.er1 >conftest.err
8378   rm -f conftest.er1
8379   cat conftest.err >&5
8380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381   (exit $ac_status); } >/dev/null; then
8382   if test -s conftest.err; then
8383     ac_cpp_err=$ac_c_preproc_warn_flag
8384     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8385   else
8386     ac_cpp_err=
8387   fi
8388 else
8389   ac_cpp_err=yes
8390 fi
8391 if test -z "$ac_cpp_err"; then
8392   ac_header_preproc=yes
8393 else
8394   echo "$as_me: failed program was:" >&5
8395 sed 's/^/| /' conftest.$ac_ext >&5
8396
8397   ac_header_preproc=no
8398 fi
8399 rm -f conftest.err conftest.$ac_ext
8400 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8401 echo "${ECHO_T}$ac_header_preproc" >&6
8402
8403 # So?  What about this header?
8404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8405   yes:no: )
8406     { echo "$as_me:$LINENO: WARNING: kstat.h: accepted by the compiler, rejected by the preprocessor!" >&5
8407 echo "$as_me: WARNING: kstat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8408     { echo "$as_me:$LINENO: WARNING: kstat.h: proceeding with the compiler's result" >&5
8409 echo "$as_me: WARNING: kstat.h: proceeding with the compiler's result" >&2;}
8410     ac_header_preproc=yes
8411     ;;
8412   no:yes:* )
8413     { echo "$as_me:$LINENO: WARNING: kstat.h: present but cannot be compiled" >&5
8414 echo "$as_me: WARNING: kstat.h: present but cannot be compiled" >&2;}
8415     { echo "$as_me:$LINENO: WARNING: kstat.h:     check for missing prerequisite headers?" >&5
8416 echo "$as_me: WARNING: kstat.h:     check for missing prerequisite headers?" >&2;}
8417     { echo "$as_me:$LINENO: WARNING: kstat.h: see the Autoconf documentation" >&5
8418 echo "$as_me: WARNING: kstat.h: see the Autoconf documentation" >&2;}
8419     { echo "$as_me:$LINENO: WARNING: kstat.h:     section \"Present But Cannot Be Compiled\"" >&5
8420 echo "$as_me: WARNING: kstat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8421     { echo "$as_me:$LINENO: WARNING: kstat.h: proceeding with the preprocessor's result" >&5
8422 echo "$as_me: WARNING: kstat.h: proceeding with the preprocessor's result" >&2;}
8423     { echo "$as_me:$LINENO: WARNING: kstat.h: in the future, the compiler will take precedence" >&5
8424 echo "$as_me: WARNING: kstat.h: in the future, the compiler will take precedence" >&2;}
8425     (
8426       cat <<\_ASBOX
8427 ## ------------------------------------------ ##
8428 ## Report this to the AC_PACKAGE_NAME lists.  ##
8429 ## ------------------------------------------ ##
8430 _ASBOX
8431     ) |
8432       sed "s/^/$as_me: WARNING:     /" >&2
8433     ;;
8434 esac
8435 echo "$as_me:$LINENO: checking for kstat.h" >&5
8436 echo $ECHO_N "checking for kstat.h... $ECHO_C" >&6
8437 if test "${ac_cv_header_kstat_h+set}" = set; then
8438   echo $ECHO_N "(cached) $ECHO_C" >&6
8439 else
8440   ac_cv_header_kstat_h=$ac_header_preproc
8441 fi
8442 echo "$as_me:$LINENO: result: $ac_cv_header_kstat_h" >&5
8443 echo "${ECHO_T}$ac_cv_header_kstat_h" >&6
8444
8445 fi
8446 if test $ac_cv_header_kstat_h = yes; then
8447   cat >>confdefs.h <<\_ACEOF
8448 #define HAVE_KSTAT_H 1
8449 _ACEOF
8450
8451 fi
8452
8453
8454                         cat >>confdefs.h <<\_ACEOF
8455 #define HAVE_LOADAVG 1
8456 _ACEOF
8457
8458                         ;;
8459                 *)
8460                         echo "$as_me:$LINENO: result: yes" >&5
8461 echo "${ECHO_T}yes" >&6
8462                         cat >>confdefs.h <<\_ACEOF
8463 #define HAVE_LOADAVG 1
8464 _ACEOF
8465
8466                         ;;
8467         esac
8468 else
8469   echo "$as_me:$LINENO: result: no" >&5
8470 echo "${ECHO_T}no" >&6
8471 fi;
8472         ;;
8473 osf*)
8474         LDFLAGS=-oldstyle_liblookup
8475         echo "$as_me:$LINENO: checking whether to compile in loadavg" >&5
8476 echo $ECHO_N "checking whether to compile in loadavg... $ECHO_C" >&6
8477
8478 # Check whether --with-loadavg or --without-loadavg was given.
8479 if test "${with_loadavg+set}" = set; then
8480   withval="$with_loadavg"
8481    case "$withval" in
8482                 no)
8483                         echo "$as_me:$LINENO: result: no" >&5
8484 echo "${ECHO_T}no" >&6
8485                         ;;
8486                 yes)
8487                         echo "$as_me:$LINENO: result: yes" >&5
8488 echo "${ECHO_T}yes" >&6
8489                         cat >>confdefs.h <<\_ACEOF
8490 #define HAVE_LOADAVG 1
8491 _ACEOF
8492
8493                         ;;
8494                 *)
8495                         echo "$as_me:$LINENO: result: yes" >&5
8496 echo "${ECHO_T}yes" >&6
8497                         cat >>confdefs.h <<\_ACEOF
8498 #define HAVE_LOADAVG 1
8499 _ACEOF
8500
8501                         ;;
8502         esac
8503 else
8504   echo "$as_me:$LINENO: result: no" >&5
8505 echo "${ECHO_T}no" >&6
8506 fi;
8507         ;;
8508 linux*|freebsd*)
8509
8510 echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
8511 echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
8512 if test "${ac_cv_lib_crypt_main+set}" = set; then
8513   echo $ECHO_N "(cached) $ECHO_C" >&6
8514 else
8515   ac_check_lib_save_LIBS=$LIBS
8516 LIBS="-lcrypt  $LIBS"
8517 cat >conftest.$ac_ext <<_ACEOF
8518 /* confdefs.h.  */
8519 _ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h.  */
8523
8524
8525 int
8526 main ()
8527 {
8528 main ();
8529   ;
8530   return 0;
8531 }
8532 _ACEOF
8533 rm -f conftest.$ac_objext conftest$ac_exeext
8534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8535   (eval $ac_link) 2>conftest.er1
8536   ac_status=$?
8537   grep -v '^ *+' conftest.er1 >conftest.err
8538   rm -f conftest.er1
8539   cat conftest.err >&5
8540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541   (exit $ac_status); } &&
8542          { ac_try='test -z "$ac_c_werror_flag"
8543                          || test ! -s conftest.err'
8544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545   (eval $ac_try) 2>&5
8546   ac_status=$?
8547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548   (exit $ac_status); }; } &&
8549          { ac_try='test -s conftest$ac_exeext'
8550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8551   (eval $ac_try) 2>&5
8552   ac_status=$?
8553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554   (exit $ac_status); }; }; then
8555   ac_cv_lib_crypt_main=yes
8556 else
8557   echo "$as_me: failed program was:" >&5
8558 sed 's/^/| /' conftest.$ac_ext >&5
8559
8560 ac_cv_lib_crypt_main=no
8561 fi
8562 rm -f conftest.err conftest.$ac_objext \
8563       conftest$ac_exeext conftest.$ac_ext
8564 LIBS=$ac_check_lib_save_LIBS
8565 fi
8566 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
8567 echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
8568 if test $ac_cv_lib_crypt_main = yes; then
8569   cat >>confdefs.h <<_ACEOF
8570 #define HAVE_LIBCRYPT 1
8571 _ACEOF
8572
8573   LIBS="-lcrypt $LIBS"
8574
8575 fi
8576
8577
8578         echo "$as_me:$LINENO: checking whether to compile in loadavg" >&5
8579 echo $ECHO_N "checking whether to compile in loadavg... $ECHO_C" >&6
8580
8581 # Check whether --with-loadavg or --without-loadavg was given.
8582 if test "${with_loadavg+set}" = set; then
8583   withval="$with_loadavg"
8584    case "$withval" in
8585                 no)
8586                         echo "$as_me:$LINENO: result: no" >&5
8587 echo "${ECHO_T}no" >&6
8588                         ;;
8589                 yes)
8590                         echo "$as_me:$LINENO: result: yes" >&5
8591 echo "${ECHO_T}yes" >&6
8592                         cat >>confdefs.h <<\_ACEOF
8593 #define HAVE_LOADAVG 1
8594 _ACEOF
8595
8596                         ;;
8597                 *)
8598                         echo "$as_me:$LINENO: result: yes" >&5
8599 echo "${ECHO_T}yes" >&6
8600                         cat >>confdefs.h <<\_ACEOF
8601 #define HAVE_LOADAVG 1
8602 _ACEOF
8603
8604                         ;;
8605         esac
8606 else
8607   echo "$as_me:$LINENO: result: no" >&5
8608 echo "${ECHO_T}no" >&6
8609 fi;
8610         ;;
8611 darwin* | "Mac OS"*)
8612         ac_cv_prog_RANLIB="ranlib"
8613         # AC_CHECK_FUNCS doesn't look in the proper header file...
8614         cat >>confdefs.h <<\_ACEOF
8615 #define HAVE_ISATTY 1
8616 _ACEOF
8617
8618         CFLAGS="$CFLAGS -no-cpp-precomp"
8619         echo "$as_me:$LINENO: checking whether to compile in loadavg" >&5
8620 echo $ECHO_N "checking whether to compile in loadavg... $ECHO_C" >&6
8621
8622 # Check whether --with-loadavg or --without-loadavg was given.
8623 if test "${with_loadavg+set}" = set; then
8624   withval="$with_loadavg"
8625    case "$withval" in
8626                 no)
8627                         echo "$as_me:$LINENO: result: no" >&5
8628 echo "${ECHO_T}no" >&6
8629                         ;;
8630                 yes)
8631                         echo "$as_me:$LINENO: result: yes" >&5
8632 echo "${ECHO_T}yes" >&6
8633                         cat >>confdefs.h <<\_ACEOF
8634 #define HAVE_LOADAVG 1
8635 _ACEOF
8636
8637                         ;;
8638                 *)
8639                         echo "$as_me:$LINENO: result: yes" >&5
8640 echo "${ECHO_T}yes" >&6
8641                         cat >>confdefs.h <<\_ACEOF
8642 #define HAVE_LOADAVG 1
8643 _ACEOF
8644
8645                         ;;
8646         esac
8647 else
8648   echo "$as_me:$LINENO: result: no" >&5
8649 echo "${ECHO_T}no" >&6
8650 fi;
8651         ;;
8652 *bsdi*)
8653        echo "$as_me:$LINENO: checking whether to compile in loadavg" >&5
8654 echo $ECHO_N "checking whether to compile in loadavg... $ECHO_C" >&6
8655
8656 # Check whether --with-loadavg or --without-loadavg was given.
8657 if test "${with_loadavg+set}" = set; then
8658   withval="$with_loadavg"
8659    case "$withval" in
8660                no)
8661                        echo "$as_me:$LINENO: result: no" >&5
8662 echo "${ECHO_T}no" >&6
8663                        ;;
8664                yes)
8665                        echo "$as_me:$LINENO: result: yes" >&5
8666 echo "${ECHO_T}yes" >&6
8667                        cat >>confdefs.h <<\_ACEOF
8668 #define bsdi 1
8669 _ACEOF
8670
8671                        cat >>confdefs.h <<\_ACEOF
8672 #define HAVE_LOADAVG 1
8673 _ACEOF
8674
8675                        ;;
8676                *)
8677                        echo "$as_me:$LINENO: result: yes" >&5
8678 echo "${ECHO_T}yes" >&6
8679                        cat >>confdefs.h <<\_ACEOF
8680 #define bsdi 1
8681 _ACEOF
8682
8683                        cat >>confdefs.h <<\_ACEOF
8684 #define HAVE_LOADAVG 1
8685 _ACEOF
8686
8687                        ;;
8688        esac
8689 else
8690   echo "$as_me:$LINENO: result: no" >&5
8691 echo "${ECHO_T}no" >&6
8692 fi;
8693        ;;
8694 esac
8695
8696
8697 echo "$as_me:$LINENO: checking for crypt in -lc" >&5
8698 echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6
8699 if test "${ac_cv_lib_c_crypt+set}" = set; then
8700   echo $ECHO_N "(cached) $ECHO_C" >&6
8701 else
8702   ac_check_lib_save_LIBS=$LIBS
8703 LIBS="-lc  $LIBS"
8704 cat >conftest.$ac_ext <<_ACEOF
8705 /* confdefs.h.  */
8706 _ACEOF
8707 cat confdefs.h >>conftest.$ac_ext
8708 cat >>conftest.$ac_ext <<_ACEOF
8709 /* end confdefs.h.  */
8710
8711 /* Override any gcc2 internal prototype to avoid an error.  */
8712 #ifdef __cplusplus
8713 extern "C"
8714 #endif
8715 /* We use char because int might match the return type of a gcc2
8716    builtin and then its argument prototype would still apply.  */
8717 char crypt ();
8718 int
8719 main ()
8720 {
8721 crypt ();
8722   ;
8723   return 0;
8724 }
8725 _ACEOF
8726 rm -f conftest.$ac_objext conftest$ac_exeext
8727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8728   (eval $ac_link) 2>conftest.er1
8729   ac_status=$?
8730   grep -v '^ *+' conftest.er1 >conftest.err
8731   rm -f conftest.er1
8732   cat conftest.err >&5
8733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734   (exit $ac_status); } &&
8735          { ac_try='test -z "$ac_c_werror_flag"
8736                          || test ! -s conftest.err'
8737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738   (eval $ac_try) 2>&5
8739   ac_status=$?
8740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741   (exit $ac_status); }; } &&
8742          { ac_try='test -s conftest$ac_exeext'
8743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8744   (eval $ac_try) 2>&5
8745   ac_status=$?
8746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747   (exit $ac_status); }; }; then
8748   ac_cv_lib_c_crypt=yes
8749 else
8750   echo "$as_me: failed program was:" >&5
8751 sed 's/^/| /' conftest.$ac_ext >&5
8752
8753 ac_cv_lib_c_crypt=no
8754 fi
8755 rm -f conftest.err conftest.$ac_objext \
8756       conftest$ac_exeext conftest.$ac_ext
8757 LIBS=$ac_check_lib_save_LIBS
8758 fi
8759 echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
8760 echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6
8761 if test $ac_cv_lib_c_crypt = yes; then
8762   :
8763 else
8764
8765  echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8766 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8767 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8768   echo $ECHO_N "(cached) $ECHO_C" >&6
8769 else
8770   ac_check_lib_save_LIBS=$LIBS
8771 LIBS="-lcrypt  $LIBS"
8772 cat >conftest.$ac_ext <<_ACEOF
8773 /* confdefs.h.  */
8774 _ACEOF
8775 cat confdefs.h >>conftest.$ac_ext
8776 cat >>conftest.$ac_ext <<_ACEOF
8777 /* end confdefs.h.  */
8778
8779 /* Override any gcc2 internal prototype to avoid an error.  */
8780 #ifdef __cplusplus
8781 extern "C"
8782 #endif
8783 /* We use char because int might match the return type of a gcc2
8784    builtin and then its argument prototype would still apply.  */
8785 char crypt ();
8786 int
8787 main ()
8788 {
8789 crypt ();
8790   ;
8791   return 0;
8792 }
8793 _ACEOF
8794 rm -f conftest.$ac_objext conftest$ac_exeext
8795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8796   (eval $ac_link) 2>conftest.er1
8797   ac_status=$?
8798   grep -v '^ *+' conftest.er1 >conftest.err
8799   rm -f conftest.er1
8800   cat conftest.err >&5
8801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802   (exit $ac_status); } &&
8803          { ac_try='test -z "$ac_c_werror_flag"
8804                          || test ! -s conftest.err'
8805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8806   (eval $ac_try) 2>&5
8807   ac_status=$?
8808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809   (exit $ac_status); }; } &&
8810          { ac_try='test -s conftest$ac_exeext'
8811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812   (eval $ac_try) 2>&5
8813   ac_status=$?
8814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815   (exit $ac_status); }; }; then
8816   ac_cv_lib_crypt_crypt=yes
8817 else
8818   echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.$ac_ext >&5
8820
8821 ac_cv_lib_crypt_crypt=no
8822 fi
8823 rm -f conftest.err conftest.$ac_objext \
8824       conftest$ac_exeext conftest.$ac_ext
8825 LIBS=$ac_check_lib_save_LIBS
8826 fi
8827 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8828 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8829 if test $ac_cv_lib_crypt_crypt = yes; then
8830
8831   LIBS="-lcrypt $LIBS"
8832   cat >>confdefs.h <<\_ACEOF
8833 #define HAVE_LIBCRYPT 1
8834 _ACEOF
8835
8836 fi
8837
8838 fi
8839
8840
8841 echo "$as_me:$LINENO: checking for log10 in -lm" >&5
8842 echo $ECHO_N "checking for log10 in -lm... $ECHO_C" >&6
8843 if test "${ac_cv_lib_m_log10+set}" = set; then
8844   echo $ECHO_N "(cached) $ECHO_C" >&6
8845 else
8846   ac_check_lib_save_LIBS=$LIBS
8847 LIBS="-lm  $LIBS"
8848 cat >conftest.$ac_ext <<_ACEOF
8849 /* confdefs.h.  */
8850 _ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h.  */
8854
8855 /* Override any gcc2 internal prototype to avoid an error.  */
8856 #ifdef __cplusplus
8857 extern "C"
8858 #endif
8859 /* We use char because int might match the return type of a gcc2
8860    builtin and then its argument prototype would still apply.  */
8861 char log10 ();
8862 int
8863 main ()
8864 {
8865 log10 ();
8866   ;
8867   return 0;
8868 }
8869 _ACEOF
8870 rm -f conftest.$ac_objext conftest$ac_exeext
8871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8872   (eval $ac_link) 2>conftest.er1
8873   ac_status=$?
8874   grep -v '^ *+' conftest.er1 >conftest.err
8875   rm -f conftest.er1
8876   cat conftest.err >&5
8877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878   (exit $ac_status); } &&
8879          { ac_try='test -z "$ac_c_werror_flag"
8880                          || test ! -s conftest.err'
8881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8882   (eval $ac_try) 2>&5
8883   ac_status=$?
8884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885   (exit $ac_status); }; } &&
8886          { ac_try='test -s conftest$ac_exeext'
8887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888   (eval $ac_try) 2>&5
8889   ac_status=$?
8890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891   (exit $ac_status); }; }; then
8892   ac_cv_lib_m_log10=yes
8893 else
8894   echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8896
8897 ac_cv_lib_m_log10=no
8898 fi
8899 rm -f conftest.err conftest.$ac_objext \
8900       conftest$ac_exeext conftest.$ac_ext
8901 LIBS=$ac_check_lib_save_LIBS
8902 fi
8903 echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10" >&5
8904 echo "${ECHO_T}$ac_cv_lib_m_log10" >&6
8905 if test $ac_cv_lib_m_log10 = yes; then
8906    LIBS="-lm $LIBS"
8907 fi
8908
8909
8910 echo "$as_me:$LINENO: checking whether to default to ipv6" >&5
8911 echo $ECHO_N "checking whether to default to ipv6... $ECHO_C" >&6
8912
8913 # Check whether --with-inet6 or --without-inet6 was given.
8914 if test "${with_inet6+set}" = set; then
8915   withval="$with_inet6"
8916   echo "$as_me:$LINENO: result: ignored" >&5
8917 echo "${ECHO_T}ignored" >&6
8918 else
8919   echo "$as_me:$LINENO: result: ignored" >&5
8920 echo "${ECHO_T}ignored" >&6
8921 fi;
8922
8923 echo "$as_me:$LINENO: checking whether to use libwrap" >&5
8924 echo $ECHO_N "checking whether to use libwrap... $ECHO_C" >&6
8925
8926 # Check whether --with-libwrap or --without-libwrap was given.
8927 if test "${with_libwrap+set}" = set; then
8928   withval="$with_libwrap"
8929    case "$withval" in
8930         no)
8931                 echo "$as_me:$LINENO: result: no" >&5
8932 echo "${ECHO_T}no" >&6
8933                 ;;
8934         yes)
8935                 echo "$as_me:$LINENO: result: yes" >&5
8936 echo "${ECHO_T}yes" >&6
8937                 echo "$as_me:$LINENO: checking for request_init in -lwrap" >&5
8938 echo $ECHO_N "checking for request_init in -lwrap... $ECHO_C" >&6
8939 if test "${ac_cv_lib_wrap_request_init+set}" = set; then
8940   echo $ECHO_N "(cached) $ECHO_C" >&6
8941 else
8942   ac_check_lib_save_LIBS=$LIBS
8943 LIBS="-lwrap  $LIBS"
8944 cat >conftest.$ac_ext <<_ACEOF
8945 /* confdefs.h.  */
8946 _ACEOF
8947 cat confdefs.h >>conftest.$ac_ext
8948 cat >>conftest.$ac_ext <<_ACEOF
8949 /* end confdefs.h.  */
8950
8951 /* Override any gcc2 internal prototype to avoid an error.  */
8952 #ifdef __cplusplus
8953 extern "C"
8954 #endif
8955 /* We use char because int might match the return type of a gcc2
8956    builtin and then its argument prototype would still apply.  */
8957 char request_init ();
8958 int
8959 main ()
8960 {
8961 request_init ();
8962   ;
8963   return 0;
8964 }
8965 _ACEOF
8966 rm -f conftest.$ac_objext conftest$ac_exeext
8967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8968   (eval $ac_link) 2>conftest.er1
8969   ac_status=$?
8970   grep -v '^ *+' conftest.er1 >conftest.err
8971   rm -f conftest.er1
8972   cat conftest.err >&5
8973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974   (exit $ac_status); } &&
8975          { ac_try='test -z "$ac_c_werror_flag"
8976                          || test ! -s conftest.err'
8977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978   (eval $ac_try) 2>&5
8979   ac_status=$?
8980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981   (exit $ac_status); }; } &&
8982          { ac_try='test -s conftest$ac_exeext'
8983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984   (eval $ac_try) 2>&5
8985   ac_status=$?
8986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987   (exit $ac_status); }; }; then
8988   ac_cv_lib_wrap_request_init=yes
8989 else
8990   echo "$as_me: failed program was:" >&5
8991 sed 's/^/| /' conftest.$ac_ext >&5
8992
8993 ac_cv_lib_wrap_request_init=no
8994 fi
8995 rm -f conftest.err conftest.$ac_objext \
8996       conftest$ac_exeext conftest.$ac_ext
8997 LIBS=$ac_check_lib_save_LIBS
8998 fi
8999 echo "$as_me:$LINENO: result: $ac_cv_lib_wrap_request_init" >&5
9000 echo "${ECHO_T}$ac_cv_lib_wrap_request_init" >&6
9001 if test $ac_cv_lib_wrap_request_init = yes; then
9002
9003                         cat >>confdefs.h <<\_ACEOF
9004 #define LIBWRAP 1
9005 _ACEOF
9006
9007                         WRAPLIBS="-lwrap"
9008                         cat >>confdefs.h <<\_ACEOF
9009 #define HAVE_LIBWRAP 1
9010 _ACEOF
9011
9012 fi
9013
9014                 echo "$as_me:$LINENO: checking for yp_get_default_domain in -lnsl" >&5
9015 echo $ECHO_N "checking for yp_get_default_domain in -lnsl... $ECHO_C" >&6
9016 if test "${ac_cv_lib_nsl_yp_get_default_domain+set}" = set; then
9017   echo $ECHO_N "(cached) $ECHO_C" >&6
9018 else
9019   ac_check_lib_save_LIBS=$LIBS
9020 LIBS="-lnsl  $LIBS"
9021 cat >conftest.$ac_ext <<_ACEOF
9022 /* confdefs.h.  */
9023 _ACEOF
9024 cat confdefs.h >>conftest.$ac_ext
9025 cat >>conftest.$ac_ext <<_ACEOF
9026 /* end confdefs.h.  */
9027
9028 /* Override any gcc2 internal prototype to avoid an error.  */
9029 #ifdef __cplusplus
9030 extern "C"
9031 #endif
9032 /* We use char because int might match the return type of a gcc2
9033    builtin and then its argument prototype would still apply.  */
9034 char yp_get_default_domain ();
9035 int
9036 main ()
9037 {
9038 yp_get_default_domain ();
9039   ;
9040   return 0;
9041 }
9042 _ACEOF
9043 rm -f conftest.$ac_objext conftest$ac_exeext
9044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9045   (eval $ac_link) 2>conftest.er1
9046   ac_status=$?
9047   grep -v '^ *+' conftest.er1 >conftest.err
9048   rm -f conftest.er1
9049   cat conftest.err >&5
9050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051   (exit $ac_status); } &&
9052          { ac_try='test -z "$ac_c_werror_flag"
9053                          || test ! -s conftest.err'
9054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055   (eval $ac_try) 2>&5
9056   ac_status=$?
9057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058   (exit $ac_status); }; } &&
9059          { ac_try='test -s conftest$ac_exeext'
9060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9061   (eval $ac_try) 2>&5
9062   ac_status=$?
9063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064   (exit $ac_status); }; }; then
9065   ac_cv_lib_nsl_yp_get_default_domain=yes
9066 else
9067   echo "$as_me: failed program was:" >&5
9068 sed 's/^/| /' conftest.$ac_ext >&5
9069
9070 ac_cv_lib_nsl_yp_get_default_domain=no
9071 fi
9072 rm -f conftest.err conftest.$ac_objext \
9073       conftest$ac_exeext conftest.$ac_ext
9074 LIBS=$ac_check_lib_save_LIBS
9075 fi
9076 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5
9077 echo "${ECHO_T}$ac_cv_lib_nsl_yp_get_default_domain" >&6
9078 if test $ac_cv_lib_nsl_yp_get_default_domain = yes; then
9079
9080                         WRAPLIBS="$WRAPLIBS -lnsl"
9081 fi
9082
9083                 LIBS="$WRAPLIBS $LIBS"
9084                 ;;
9085         *)
9086                 echo "$as_me:$LINENO: result: yes" >&5
9087 echo "${ECHO_T}yes" >&6
9088                 cat >>confdefs.h <<\_ACEOF
9089 #define LIBWRAP 1
9090 _ACEOF
9091
9092                 if test -d "$withval"; then
9093                         WRAPLIBS="-L$withval -lwrap"
9094                 else
9095                         WRAPLIBS="$withval"
9096                 fi
9097                 echo "$as_me:$LINENO: checking for yp_get_default_domain in -lnsl" >&5
9098 echo $ECHO_N "checking for yp_get_default_domain in -lnsl... $ECHO_C" >&6
9099 if test "${ac_cv_lib_nsl_yp_get_default_domain+set}" = set; then
9100   echo $ECHO_N "(cached) $ECHO_C" >&6
9101 else
9102   ac_check_lib_save_LIBS=$LIBS
9103 LIBS="-lnsl  $LIBS"
9104 cat >conftest.$ac_ext <<_ACEOF
9105 /* confdefs.h.  */
9106 _ACEOF
9107 cat confdefs.h >>conftest.$ac_ext
9108 cat >>conftest.$ac_ext <<_ACEOF
9109 /* end confdefs.h.  */
9110
9111 /* Override any gcc2 internal prototype to avoid an error.  */
9112 #ifdef __cplusplus
9113 extern "C"
9114 #endif
9115 /* We use char because int might match the return type of a gcc2
9116    builtin and then its argument prototype would still apply.  */
9117 char yp_get_default_domain ();
9118 int
9119 main ()
9120 {
9121 yp_get_default_domain ();
9122   ;
9123   return 0;
9124 }
9125 _ACEOF
9126 rm -f conftest.$ac_objext conftest$ac_exeext
9127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9128   (eval $ac_link) 2>conftest.er1
9129   ac_status=$?
9130   grep -v '^ *+' conftest.er1 >conftest.err
9131   rm -f conftest.er1
9132   cat conftest.err >&5
9133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134   (exit $ac_status); } &&
9135          { ac_try='test -z "$ac_c_werror_flag"
9136                          || test ! -s conftest.err'
9137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138   (eval $ac_try) 2>&5
9139   ac_status=$?
9140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141   (exit $ac_status); }; } &&
9142          { ac_try='test -s conftest$ac_exeext'
9143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144   (eval $ac_try) 2>&5
9145   ac_status=$?
9146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147   (exit $ac_status); }; }; then
9148   ac_cv_lib_nsl_yp_get_default_domain=yes
9149 else
9150   echo "$as_me: failed program was:" >&5
9151 sed 's/^/| /' conftest.$ac_ext >&5
9152
9153 ac_cv_lib_nsl_yp_get_default_domain=no
9154 fi
9155 rm -f conftest.err conftest.$ac_objext \
9156       conftest$ac_exeext conftest.$ac_ext
9157 LIBS=$ac_check_lib_save_LIBS
9158 fi
9159 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5
9160 echo "${ECHO_T}$ac_cv_lib_nsl_yp_get_default_domain" >&6
9161 if test $ac_cv_lib_nsl_yp_get_default_domain = yes; then
9162
9163                         WRAPLIBS="$WRAPLIBS -lnsl"
9164 fi
9165
9166                 OLDLIBS="$LIBS"
9167                 LIBS="$WRAPLIBS $LIBS"
9168                 cat >conftest.$ac_ext <<_ACEOF
9169 /* confdefs.h.  */
9170 _ACEOF
9171 cat confdefs.h >>conftest.$ac_ext
9172 cat >>conftest.$ac_ext <<_ACEOF
9173 /* end confdefs.h.  */
9174  int allow_severity; int deny_severity;
9175 int
9176 main ()
9177 {
9178  hosts_access();
9179   ;
9180   return 0;
9181 }
9182 _ACEOF
9183 rm -f conftest.$ac_objext conftest$ac_exeext
9184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9185   (eval $ac_link) 2>conftest.er1
9186   ac_status=$?
9187   grep -v '^ *+' conftest.er1 >conftest.err
9188   rm -f conftest.er1
9189   cat conftest.err >&5
9190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191   (exit $ac_status); } &&
9192          { ac_try='test -z "$ac_c_werror_flag"
9193                          || test ! -s conftest.err'
9194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195   (eval $ac_try) 2>&5
9196   ac_status=$?
9197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198   (exit $ac_status); }; } &&
9199          { ac_try='test -s conftest$ac_exeext'
9200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9201   (eval $ac_try) 2>&5
9202   ac_status=$?
9203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204   (exit $ac_status); }; }; then
9205   :
9206 else
9207   echo "$as_me: failed program was:" >&5
9208 sed 's/^/| /' conftest.$ac_ext >&5
9209
9210  { { echo "$as_me:$LINENO: error: Could not find the $withval library.  You must first install tcp_wrappers." >&5
9211 echo "$as_me: error: Could not find the $withval library.  You must first install tcp_wrappers." >&2;}
9212    { (exit 1); exit 1; }; }
9213 fi
9214 rm -f conftest.err conftest.$ac_objext \
9215       conftest$ac_exeext conftest.$ac_ext
9216                 ;;
9217         esac
9218 else
9219   echo "$as_me:$LINENO: result: no" >&5
9220 echo "${ECHO_T}no" >&6
9221
9222 fi;
9223
9224
9225
9226 for ac_header in stdlib.h unistd.h
9227 do
9228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9230   echo "$as_me:$LINENO: checking for $ac_header" >&5
9231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9233   echo $ECHO_N "(cached) $ECHO_C" >&6
9234 fi
9235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9237 else
9238   # Is the header compilable?
9239 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9241 cat >conftest.$ac_ext <<_ACEOF
9242 /* confdefs.h.  */
9243 _ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h.  */
9247 $ac_includes_default
9248 #include <$ac_header>
9249 _ACEOF
9250 rm -f conftest.$ac_objext
9251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9252   (eval $ac_compile) 2>conftest.er1
9253   ac_status=$?
9254   grep -v '^ *+' conftest.er1 >conftest.err
9255   rm -f conftest.er1
9256   cat conftest.err >&5
9257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258   (exit $ac_status); } &&
9259          { ac_try='test -z "$ac_c_werror_flag"
9260                          || test ! -s conftest.err'
9261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262   (eval $ac_try) 2>&5
9263   ac_status=$?
9264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265   (exit $ac_status); }; } &&
9266          { ac_try='test -s conftest.$ac_objext'
9267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268   (eval $ac_try) 2>&5
9269   ac_status=$?
9270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271   (exit $ac_status); }; }; then
9272   ac_header_compiler=yes
9273 else
9274   echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.$ac_ext >&5
9276
9277 ac_header_compiler=no
9278 fi
9279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9280 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9281 echo "${ECHO_T}$ac_header_compiler" >&6
9282
9283 # Is the header present?
9284 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9286 cat >conftest.$ac_ext <<_ACEOF
9287 /* confdefs.h.  */
9288 _ACEOF
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h.  */
9292 #include <$ac_header>
9293 _ACEOF
9294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9295   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9296   ac_status=$?
9297   grep -v '^ *+' conftest.er1 >conftest.err
9298   rm -f conftest.er1
9299   cat conftest.err >&5
9300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301   (exit $ac_status); } >/dev/null; then
9302   if test -s conftest.err; then
9303     ac_cpp_err=$ac_c_preproc_warn_flag
9304     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9305   else
9306     ac_cpp_err=
9307   fi
9308 else
9309   ac_cpp_err=yes
9310 fi
9311 if test -z "$ac_cpp_err"; then
9312   ac_header_preproc=yes
9313 else
9314   echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9316
9317   ac_header_preproc=no
9318 fi
9319 rm -f conftest.err conftest.$ac_ext
9320 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9321 echo "${ECHO_T}$ac_header_preproc" >&6
9322
9323 # So?  What about this header?
9324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9325   yes:no: )
9326     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9328     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9330     ac_header_preproc=yes
9331     ;;
9332   no:yes:* )
9333     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9335     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9336 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9337     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9338 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9339     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9340 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9341     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9343     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9344 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9345     (
9346       cat <<\_ASBOX
9347 ## ------------------------------------------ ##
9348 ## Report this to the AC_PACKAGE_NAME lists.  ##
9349 ## ------------------------------------------ ##
9350 _ASBOX
9351     ) |
9352       sed "s/^/$as_me: WARNING:     /" >&2
9353     ;;
9354 esac
9355 echo "$as_me:$LINENO: checking for $ac_header" >&5
9356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9358   echo $ECHO_N "(cached) $ECHO_C" >&6
9359 else
9360   eval "$as_ac_Header=\$ac_header_preproc"
9361 fi
9362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9364
9365 fi
9366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9367   cat >>confdefs.h <<_ACEOF
9368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9369 _ACEOF
9370
9371 fi
9372
9373 done
9374
9375
9376 for ac_func in getpagesize
9377 do
9378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9379 echo "$as_me:$LINENO: checking for $ac_func" >&5
9380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9381 if eval "test \"\${$as_ac_var+set}\" = set"; then
9382   echo $ECHO_N "(cached) $ECHO_C" >&6
9383 else
9384   cat >conftest.$ac_ext <<_ACEOF
9385 /* confdefs.h.  */
9386 _ACEOF
9387 cat confdefs.h >>conftest.$ac_ext
9388 cat >>conftest.$ac_ext <<_ACEOF
9389 /* end confdefs.h.  */
9390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9391    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9392 #define $ac_func innocuous_$ac_func
9393
9394 /* System header to define __stub macros and hopefully few prototypes,
9395     which can conflict with char $ac_func (); below.
9396     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9397     <limits.h> exists even on freestanding compilers.  */
9398
9399 #ifdef __STDC__
9400 # include <limits.h>
9401 #else
9402 # include <assert.h>
9403 #endif
9404
9405 #undef $ac_func
9406
9407 /* Override any gcc2 internal prototype to avoid an error.  */
9408 #ifdef __cplusplus
9409 extern "C"
9410 {
9411 #endif
9412 /* We use char because int might match the return type of a gcc2
9413    builtin and then its argument prototype would still apply.  */
9414 char $ac_func ();
9415 /* The GNU C library defines this for functions which it implements
9416     to always fail with ENOSYS.  Some functions are actually named
9417     something starting with __ and the normal name is an alias.  */
9418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9419 choke me
9420 #else
9421 char (*f) () = $ac_func;
9422 #endif
9423 #ifdef __cplusplus
9424 }
9425 #endif
9426
9427 int
9428 main ()
9429 {
9430 return f != $ac_func;
9431   ;
9432   return 0;
9433 }
9434 _ACEOF
9435 rm -f conftest.$ac_objext conftest$ac_exeext
9436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9437   (eval $ac_link) 2>conftest.er1
9438   ac_status=$?
9439   grep -v '^ *+' conftest.er1 >conftest.err
9440   rm -f conftest.er1
9441   cat conftest.err >&5
9442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443   (exit $ac_status); } &&
9444          { ac_try='test -z "$ac_c_werror_flag"
9445                          || test ! -s conftest.err'
9446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447   (eval $ac_try) 2>&5
9448   ac_status=$?
9449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450   (exit $ac_status); }; } &&
9451          { ac_try='test -s conftest$ac_exeext'
9452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9453   (eval $ac_try) 2>&5
9454   ac_status=$?
9455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456   (exit $ac_status); }; }; then
9457   eval "$as_ac_var=yes"
9458 else
9459   echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.$ac_ext >&5
9461
9462 eval "$as_ac_var=no"
9463 fi
9464 rm -f conftest.err conftest.$ac_objext \
9465       conftest$ac_exeext conftest.$ac_ext
9466 fi
9467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9468 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9469 if test `eval echo '${'$as_ac_var'}'` = yes; then
9470   cat >>confdefs.h <<_ACEOF
9471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9472 _ACEOF
9473
9474 fi
9475 done
9476
9477 echo "$as_me:$LINENO: checking for working mmap" >&5
9478 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9479 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9480   echo $ECHO_N "(cached) $ECHO_C" >&6
9481 else
9482   if test "$cross_compiling" = yes; then
9483   ac_cv_func_mmap_fixed_mapped=no
9484 else
9485   cat >conftest.$ac_ext <<_ACEOF
9486 /* confdefs.h.  */
9487 _ACEOF
9488 cat confdefs.h >>conftest.$ac_ext
9489 cat >>conftest.$ac_ext <<_ACEOF
9490 /* end confdefs.h.  */
9491 $ac_includes_default
9492 /* malloc might have been renamed as rpl_malloc. */
9493 #undef malloc
9494
9495 /* Thanks to Mike Haertel and Jim Avera for this test.
9496    Here is a matrix of mmap possibilities:
9497         mmap private not fixed
9498         mmap private fixed at somewhere currently unmapped
9499         mmap private fixed at somewhere already mapped
9500         mmap shared not fixed
9501         mmap shared fixed at somewhere currently unmapped
9502         mmap shared fixed at somewhere already mapped
9503    For private mappings, we should verify that changes cannot be read()
9504    back from the file, nor mmap's back from the file at a different
9505    address.  (There have been systems where private was not correctly
9506    implemented like the infamous i386 svr4.0, and systems where the
9507    VM page cache was not coherent with the file system buffer cache
9508    like early versions of FreeBSD and possibly contemporary NetBSD.)
9509    For shared mappings, we should conversely verify that changes get
9510    propagated back to all the places they're supposed to be.
9511
9512    Grep wants private fixed already mapped.
9513    The main things grep needs to know about mmap are:
9514    * does it exist and is it safe to write into the mmap'd area
9515    * how to use it (BSD variants)  */
9516
9517 #include <fcntl.h>
9518 #include <sys/mman.h>
9519
9520 #if !STDC_HEADERS && !HAVE_STDLIB_H
9521 char *malloc ();
9522 #endif
9523
9524 /* This mess was copied from the GNU getpagesize.h.  */
9525 #if !HAVE_GETPAGESIZE
9526 /* Assume that all systems that can run configure have sys/param.h.  */
9527 # if !HAVE_SYS_PARAM_H
9528 #  define HAVE_SYS_PARAM_H 1
9529 # endif
9530
9531 # ifdef _SC_PAGESIZE
9532 #  define getpagesize() sysconf(_SC_PAGESIZE)
9533 # else /* no _SC_PAGESIZE */
9534 #  if HAVE_SYS_PARAM_H
9535 #   include <sys/param.h>
9536 #   ifdef EXEC_PAGESIZE
9537 #    define getpagesize() EXEC_PAGESIZE
9538 #   else /* no EXEC_PAGESIZE */
9539 #    ifdef NBPG
9540 #     define getpagesize() NBPG * CLSIZE
9541 #     ifndef CLSIZE
9542 #      define CLSIZE 1
9543 #     endif /* no CLSIZE */
9544 #    else /* no NBPG */
9545 #     ifdef NBPC
9546 #      define getpagesize() NBPC
9547 #     else /* no NBPC */
9548 #      ifdef PAGESIZE
9549 #       define getpagesize() PAGESIZE
9550 #      endif /* PAGESIZE */
9551 #     endif /* no NBPC */
9552 #    endif /* no NBPG */
9553 #   endif /* no EXEC_PAGESIZE */
9554 #  else /* no HAVE_SYS_PARAM_H */
9555 #   define getpagesize() 8192   /* punt totally */
9556 #  endif /* no HAVE_SYS_PARAM_H */
9557 # endif /* no _SC_PAGESIZE */
9558
9559 #endif /* no HAVE_GETPAGESIZE */
9560
9561 int
9562 main ()
9563 {
9564   char *data, *data2, *data3;
9565   int i, pagesize;
9566   int fd;
9567
9568   pagesize = getpagesize ();
9569
9570   /* First, make a file with some known garbage in it. */
9571   data = (char *) malloc (pagesize);
9572   if (!data)
9573     exit (1);
9574   for (i = 0; i < pagesize; ++i)
9575     *(data + i) = rand ();
9576   umask (0);
9577   fd = creat ("conftest.mmap", 0600);
9578   if (fd < 0)
9579     exit (1);
9580   if (write (fd, data, pagesize) != pagesize)
9581     exit (1);
9582   close (fd);
9583
9584   /* Next, try to mmap the file at a fixed address which already has
9585      something else allocated at it.  If we can, also make sure that
9586      we see the same garbage.  */
9587   fd = open ("conftest.mmap", O_RDWR);
9588   if (fd < 0)
9589     exit (1);
9590   data2 = (char *) malloc (2 * pagesize);
9591   if (!data2)
9592     exit (1);
9593   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9594   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9595                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9596     exit (1);
9597   for (i = 0; i < pagesize; ++i)
9598     if (*(data + i) != *(data2 + i))
9599       exit (1);
9600
9601   /* Finally, make sure that changes to the mapped area do not
9602      percolate back to the file as seen by read().  (This is a bug on
9603      some variants of i386 svr4.0.)  */
9604   for (i = 0; i < pagesize; ++i)
9605     *(data2 + i) = *(data2 + i) + 1;
9606   data3 = (char *) malloc (pagesize);
9607   if (!data3)
9608     exit (1);
9609   if (read (fd, data3, pagesize) != pagesize)
9610     exit (1);
9611   for (i = 0; i < pagesize; ++i)
9612     if (*(data + i) != *(data3 + i))
9613       exit (1);
9614   close (fd);
9615   exit (0);
9616 }
9617 _ACEOF
9618 rm -f conftest$ac_exeext
9619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9620   (eval $ac_link) 2>&5
9621   ac_status=$?
9622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9625   (eval $ac_try) 2>&5
9626   ac_status=$?
9627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628   (exit $ac_status); }; }; then
9629   ac_cv_func_mmap_fixed_mapped=yes
9630 else
9631   echo "$as_me: program exited with status $ac_status" >&5
9632 echo "$as_me: failed program was:" >&5
9633 sed 's/^/| /' conftest.$ac_ext >&5
9634
9635 ( exit $ac_status )
9636 ac_cv_func_mmap_fixed_mapped=no
9637 fi
9638 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9639 fi
9640 fi
9641 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9642 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9643 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9644
9645 cat >>confdefs.h <<\_ACEOF
9646 #define HAVE_MMAP 1
9647 _ACEOF
9648
9649 fi
9650 rm -f conftest.mmap
9651
9652
9653
9654 for ac_func in isatty
9655 do
9656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9657 echo "$as_me:$LINENO: checking for $ac_func" >&5
9658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9659 if eval "test \"\${$as_ac_var+set}\" = set"; then
9660   echo $ECHO_N "(cached) $ECHO_C" >&6
9661 else
9662   cat >conftest.$ac_ext <<_ACEOF
9663 /* confdefs.h.  */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h.  */
9668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9669    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9670 #define $ac_func innocuous_$ac_func
9671
9672 /* System header to define __stub macros and hopefully few prototypes,
9673     which can conflict with char $ac_func (); below.
9674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9675     <limits.h> exists even on freestanding compilers.  */
9676
9677 #ifdef __STDC__
9678 # include <limits.h>
9679 #else
9680 # include <assert.h>
9681 #endif
9682
9683 #undef $ac_func
9684
9685 /* Override any gcc2 internal prototype to avoid an error.  */
9686 #ifdef __cplusplus
9687 extern "C"
9688 {
9689 #endif
9690 /* We use char because int might match the return type of a gcc2
9691    builtin and then its argument prototype would still apply.  */
9692 char $ac_func ();
9693 /* The GNU C library defines this for functions which it implements
9694     to always fail with ENOSYS.  Some functions are actually named
9695     something starting with __ and the normal name is an alias.  */
9696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9697 choke me
9698 #else
9699 char (*f) () = $ac_func;
9700 #endif
9701 #ifdef __cplusplus
9702 }
9703 #endif
9704
9705 int
9706 main ()
9707 {
9708 return f != $ac_func;
9709   ;
9710   return 0;
9711 }
9712 _ACEOF
9713 rm -f conftest.$ac_objext conftest$ac_exeext
9714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9715   (eval $ac_link) 2>conftest.er1
9716   ac_status=$?
9717   grep -v '^ *+' conftest.er1 >conftest.err
9718   rm -f conftest.er1
9719   cat conftest.err >&5
9720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721   (exit $ac_status); } &&
9722          { ac_try='test -z "$ac_c_werror_flag"
9723                          || test ! -s conftest.err'
9724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725   (eval $ac_try) 2>&5
9726   ac_status=$?
9727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728   (exit $ac_status); }; } &&
9729          { ac_try='test -s conftest$ac_exeext'
9730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731   (eval $ac_try) 2>&5
9732   ac_status=$?
9733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734   (exit $ac_status); }; }; then
9735   eval "$as_ac_var=yes"
9736 else
9737   echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9739
9740 eval "$as_ac_var=no"
9741 fi
9742 rm -f conftest.err conftest.$ac_objext \
9743       conftest$ac_exeext conftest.$ac_ext
9744 fi
9745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9746 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9747 if test `eval echo '${'$as_ac_var'}'` = yes; then
9748   cat >>confdefs.h <<_ACEOF
9749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9750 _ACEOF
9751
9752 fi
9753 done
9754
9755
9756 for ac_func in memcpy
9757 do
9758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9759 echo "$as_me:$LINENO: checking for $ac_func" >&5
9760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9761 if eval "test \"\${$as_ac_var+set}\" = set"; then
9762   echo $ECHO_N "(cached) $ECHO_C" >&6
9763 else
9764   cat >conftest.$ac_ext <<_ACEOF
9765 /* confdefs.h.  */
9766 _ACEOF
9767 cat confdefs.h >>conftest.$ac_ext
9768 cat >>conftest.$ac_ext <<_ACEOF
9769 /* end confdefs.h.  */
9770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9771    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9772 #define $ac_func innocuous_$ac_func
9773
9774 /* System header to define __stub macros and hopefully few prototypes,
9775     which can conflict with char $ac_func (); below.
9776     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9777     <limits.h> exists even on freestanding compilers.  */
9778
9779 #ifdef __STDC__
9780 # include <limits.h>
9781 #else
9782 # include <assert.h>
9783 #endif
9784
9785 #undef $ac_func
9786
9787 /* Override any gcc2 internal prototype to avoid an error.  */
9788 #ifdef __cplusplus
9789 extern "C"
9790 {
9791 #endif
9792 /* We use char because int might match the return type of a gcc2
9793    builtin and then its argument prototype would still apply.  */
9794 char $ac_func ();
9795 /* The GNU C library defines this for functions which it implements
9796     to always fail with ENOSYS.  Some functions are actually named
9797     something starting with __ and the normal name is an alias.  */
9798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9799 choke me
9800 #else
9801 char (*f) () = $ac_func;
9802 #endif
9803 #ifdef __cplusplus
9804 }
9805 #endif
9806
9807 int
9808 main ()
9809 {
9810 return f != $ac_func;
9811   ;
9812   return 0;
9813 }
9814 _ACEOF
9815 rm -f conftest.$ac_objext conftest$ac_exeext
9816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9817   (eval $ac_link) 2>conftest.er1
9818   ac_status=$?
9819   grep -v '^ *+' conftest.er1 >conftest.err
9820   rm -f conftest.er1
9821   cat conftest.err >&5
9822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823   (exit $ac_status); } &&
9824          { ac_try='test -z "$ac_c_werror_flag"
9825                          || test ! -s conftest.err'
9826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9827   (eval $ac_try) 2>&5
9828   ac_status=$?
9829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830   (exit $ac_status); }; } &&
9831          { ac_try='test -s conftest$ac_exeext'
9832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9833   (eval $ac_try) 2>&5
9834   ac_status=$?
9835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836   (exit $ac_status); }; }; then
9837   eval "$as_ac_var=yes"
9838 else
9839   echo "$as_me: failed program was:" >&5
9840 sed 's/^/| /' conftest.$ac_ext >&5
9841
9842 eval "$as_ac_var=no"
9843 fi
9844 rm -f conftest.err conftest.$ac_objext \
9845       conftest$ac_exeext conftest.$ac_ext
9846 fi
9847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9848 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9849 if test `eval echo '${'$as_ac_var'}'` = yes; then
9850   cat >>confdefs.h <<_ACEOF
9851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9852 _ACEOF
9853
9854 fi
9855 done
9856
9857
9858 for ac_func in waitpid
9859 do
9860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9861 echo "$as_me:$LINENO: checking for $ac_func" >&5
9862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9863 if eval "test \"\${$as_ac_var+set}\" = set"; then
9864   echo $ECHO_N "(cached) $ECHO_C" >&6
9865 else
9866   cat >conftest.$ac_ext <<_ACEOF
9867 /* confdefs.h.  */
9868 _ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h.  */
9872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9873    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9874 #define $ac_func innocuous_$ac_func
9875
9876 /* System header to define __stub macros and hopefully few prototypes,
9877     which can conflict with char $ac_func (); below.
9878     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9879     <limits.h> exists even on freestanding compilers.  */
9880
9881 #ifdef __STDC__
9882 # include <limits.h>
9883 #else
9884 # include <assert.h>
9885 #endif
9886
9887 #undef $ac_func
9888
9889 /* Override any gcc2 internal prototype to avoid an error.  */
9890 #ifdef __cplusplus
9891 extern "C"
9892 {
9893 #endif
9894 /* We use char because int might match the return type of a gcc2
9895    builtin and then its argument prototype would still apply.  */
9896 char $ac_func ();
9897 /* The GNU C library defines this for functions which it implements
9898     to always fail with ENOSYS.  Some functions are actually named
9899     something starting with __ and the normal name is an alias.  */
9900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9901 choke me
9902 #else
9903 char (*f) () = $ac_func;
9904 #endif
9905 #ifdef __cplusplus
9906 }
9907 #endif
9908
9909 int
9910 main ()
9911 {
9912 return f != $ac_func;
9913   ;
9914   return 0;
9915 }
9916 _ACEOF
9917 rm -f conftest.$ac_objext conftest$ac_exeext
9918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9919   (eval $ac_link) 2>conftest.er1
9920   ac_status=$?
9921   grep -v '^ *+' conftest.er1 >conftest.err
9922   rm -f conftest.er1
9923   cat conftest.err >&5
9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925   (exit $ac_status); } &&
9926          { ac_try='test -z "$ac_c_werror_flag"
9927                          || test ! -s conftest.err'
9928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929   (eval $ac_try) 2>&5
9930   ac_status=$?
9931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932   (exit $ac_status); }; } &&
9933          { ac_try='test -s conftest$ac_exeext'
9934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9935   (eval $ac_try) 2>&5
9936   ac_status=$?
9937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938   (exit $ac_status); }; }; then
9939   eval "$as_ac_var=yes"
9940 else
9941   echo "$as_me: failed program was:" >&5
9942 sed 's/^/| /' conftest.$ac_ext >&5
9943
9944 eval "$as_ac_var=no"
9945 fi
9946 rm -f conftest.err conftest.$ac_objext \
9947       conftest$ac_exeext conftest.$ac_ext
9948 fi
9949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9950 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9951 if test `eval echo '${'$as_ac_var'}'` = yes; then
9952   cat >>confdefs.h <<_ACEOF
9953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9954 _ACEOF
9955
9956 fi
9957 done
9958
9959
9960 for ac_func in sigvec
9961 do
9962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9963 echo "$as_me:$LINENO: checking for $ac_func" >&5
9964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9965 if eval "test \"\${$as_ac_var+set}\" = set"; then
9966   echo $ECHO_N "(cached) $ECHO_C" >&6
9967 else
9968   cat >conftest.$ac_ext <<_ACEOF
9969 /* confdefs.h.  */
9970 _ACEOF
9971 cat confdefs.h >>conftest.$ac_ext
9972 cat >>conftest.$ac_ext <<_ACEOF
9973 /* end confdefs.h.  */
9974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9975    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9976 #define $ac_func innocuous_$ac_func
9977
9978 /* System header to define __stub macros and hopefully few prototypes,
9979     which can conflict with char $ac_func (); below.
9980     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9981     <limits.h> exists even on freestanding compilers.  */
9982
9983 #ifdef __STDC__
9984 # include <limits.h>
9985 #else
9986 # include <assert.h>
9987 #endif
9988
9989 #undef $ac_func
9990
9991 /* Override any gcc2 internal prototype to avoid an error.  */
9992 #ifdef __cplusplus
9993 extern "C"
9994 {
9995 #endif
9996 /* We use char because int might match the return type of a gcc2
9997    builtin and then its argument prototype would still apply.  */
9998 char $ac_func ();
9999 /* The GNU C library defines this for functions which it implements
10000     to always fail with ENOSYS.  Some functions are actually named
10001     something starting with __ and the normal name is an alias.  */
10002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10003 choke me
10004 #else
10005 char (*f) () = $ac_func;
10006 #endif
10007 #ifdef __cplusplus
10008 }
10009 #endif
10010
10011 int
10012 main ()
10013 {
10014 return f != $ac_func;
10015   ;
10016   return 0;
10017 }
10018 _ACEOF
10019 rm -f conftest.$ac_objext conftest$ac_exeext
10020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10021   (eval $ac_link) 2>conftest.er1
10022   ac_status=$?
10023   grep -v '^ *+' conftest.er1 >conftest.err
10024   rm -f conftest.er1
10025   cat conftest.err >&5
10026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027   (exit $ac_status); } &&
10028          { ac_try='test -z "$ac_c_werror_flag"
10029                          || test ! -s conftest.err'
10030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031   (eval $ac_try) 2>&5
10032   ac_status=$?
10033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034   (exit $ac_status); }; } &&
10035          { ac_try='test -s conftest$ac_exeext'
10036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10037   (eval $ac_try) 2>&5
10038   ac_status=$?
10039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040   (exit $ac_status); }; }; then
10041   eval "$as_ac_var=yes"
10042 else
10043   echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10045
10046 eval "$as_ac_var=no"
10047 fi
10048 rm -f conftest.err conftest.$ac_objext \
10049       conftest$ac_exeext conftest.$ac_ext
10050 fi
10051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10053 if test `eval echo '${'$as_ac_var'}'` = yes; then
10054   cat >>confdefs.h <<_ACEOF
10055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10056 _ACEOF
10057
10058 fi
10059 done
10060
10061
10062 for ac_func in setsid
10063 do
10064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10065 echo "$as_me:$LINENO: checking for $ac_func" >&5
10066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10067 if eval "test \"\${$as_ac_var+set}\" = set"; then
10068   echo $ECHO_N "(cached) $ECHO_C" >&6
10069 else
10070   cat >conftest.$ac_ext <<_ACEOF
10071 /* confdefs.h.  */
10072 _ACEOF
10073 cat confdefs.h >>conftest.$ac_ext
10074 cat >>conftest.$ac_ext <<_ACEOF
10075 /* end confdefs.h.  */
10076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10077    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10078 #define $ac_func innocuous_$ac_func
10079
10080 /* System header to define __stub macros and hopefully few prototypes,
10081     which can conflict with char $ac_func (); below.
10082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10083     <limits.h> exists even on freestanding compilers.  */
10084
10085 #ifdef __STDC__
10086 # include <limits.h>
10087 #else
10088 # include <assert.h>
10089 #endif
10090
10091 #undef $ac_func
10092
10093 /* Override any gcc2 internal prototype to avoid an error.  */
10094 #ifdef __cplusplus
10095 extern "C"
10096 {
10097 #endif
10098 /* We use char because int might match the return type of a gcc2
10099    builtin and then its argument prototype would still apply.  */
10100 char $ac_func ();
10101 /* The GNU C library defines this for functions which it implements
10102     to always fail with ENOSYS.  Some functions are actually named
10103     something starting with __ and the normal name is an alias.  */
10104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10105 choke me
10106 #else
10107 char (*f) () = $ac_func;
10108 #endif
10109 #ifdef __cplusplus
10110 }
10111 #endif
10112
10113 int
10114 main ()
10115 {
10116 return f != $ac_func;
10117   ;
10118   return 0;
10119 }
10120 _ACEOF
10121 rm -f conftest.$ac_objext conftest$ac_exeext
10122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10123   (eval $ac_link) 2>conftest.er1
10124   ac_status=$?
10125   grep -v '^ *+' conftest.er1 >conftest.err
10126   rm -f conftest.er1
10127   cat conftest.err >&5
10128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129   (exit $ac_status); } &&
10130          { ac_try='test -z "$ac_c_werror_flag"
10131                          || test ! -s conftest.err'
10132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10133   (eval $ac_try) 2>&5
10134   ac_status=$?
10135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136   (exit $ac_status); }; } &&
10137          { ac_try='test -s conftest$ac_exeext'
10138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10139   (eval $ac_try) 2>&5
10140   ac_status=$?
10141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142   (exit $ac_status); }; }; then
10143   eval "$as_ac_var=yes"
10144 else
10145   echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10147
10148 eval "$as_ac_var=no"
10149 fi
10150 rm -f conftest.err conftest.$ac_objext \
10151       conftest$ac_exeext conftest.$ac_ext
10152 fi
10153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10155 if test `eval echo '${'$as_ac_var'}'` = yes; then
10156   cat >>confdefs.h <<_ACEOF
10157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10158 _ACEOF
10159
10160 fi
10161 done
10162
10163
10164 for ac_func in strftime
10165 do
10166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10167 echo "$as_me:$LINENO: checking for $ac_func" >&5
10168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10169 if eval "test \"\${$as_ac_var+set}\" = set"; then
10170   echo $ECHO_N "(cached) $ECHO_C" >&6
10171 else
10172   cat >conftest.$ac_ext <<_ACEOF
10173 /* confdefs.h.  */
10174 _ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h.  */
10178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10179    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10180 #define $ac_func innocuous_$ac_func
10181
10182 /* System header to define __stub macros and hopefully few prototypes,
10183     which can conflict with char $ac_func (); below.
10184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10185     <limits.h> exists even on freestanding compilers.  */
10186
10187 #ifdef __STDC__
10188 # include <limits.h>
10189 #else
10190 # include <assert.h>
10191 #endif
10192
10193 #undef $ac_func
10194
10195 /* Override any gcc2 internal prototype to avoid an error.  */
10196 #ifdef __cplusplus
10197 extern "C"
10198 {
10199 #endif
10200 /* We use char because int might match the return type of a gcc2
10201    builtin and then its argument prototype would still apply.  */
10202 char $ac_func ();
10203 /* The GNU C library defines this for functions which it implements
10204     to always fail with ENOSYS.  Some functions are actually named
10205     something starting with __ and the normal name is an alias.  */
10206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10207 choke me
10208 #else
10209 char (*f) () = $ac_func;
10210 #endif
10211 #ifdef __cplusplus
10212 }
10213 #endif
10214
10215 int
10216 main ()
10217 {
10218 return f != $ac_func;
10219   ;
10220   return 0;
10221 }
10222 _ACEOF
10223 rm -f conftest.$ac_objext conftest$ac_exeext
10224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10225   (eval $ac_link) 2>conftest.er1
10226   ac_status=$?
10227   grep -v '^ *+' conftest.er1 >conftest.err
10228   rm -f conftest.er1
10229   cat conftest.err >&5
10230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231   (exit $ac_status); } &&
10232          { ac_try='test -z "$ac_c_werror_flag"
10233                          || test ! -s conftest.err'
10234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10235   (eval $ac_try) 2>&5
10236   ac_status=$?
10237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238   (exit $ac_status); }; } &&
10239          { ac_try='test -s conftest$ac_exeext'
10240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10241   (eval $ac_try) 2>&5
10242   ac_status=$?
10243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244   (exit $ac_status); }; }; then
10245   eval "$as_ac_var=yes"
10246 else
10247   echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10249
10250 eval "$as_ac_var=no"
10251 fi
10252 rm -f conftest.err conftest.$ac_objext \
10253       conftest$ac_exeext conftest.$ac_ext
10254 fi
10255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10256 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10257 if test `eval echo '${'$as_ac_var'}'` = yes; then
10258   cat >>confdefs.h <<_ACEOF
10259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10260 _ACEOF
10261
10262 fi
10263 done
10264
10265
10266 # AC_CHECK_TYPE(R_OK,4)
10267
10268
10269 mkdir -p libs/src/misc
10270 mkdir -p libs/src/pset
10271 mkdir -p libs/src/sio
10272 mkdir -p libs/src/str
10273 mkdir -p libs/src/xlog
10274 mkdir -p libs/include
10275 mkdir -p libs/lib
10276 mkdir -p libs/man
10277
10278           ac_config_headers="$ac_config_headers config.h"
10279
10280                                                                                 ac_config_files="$ac_config_files Makefile libs/src/misc/Makefile libs/src/pset/Makefile libs/src/sio/Makefile libs/src/str/Makefile libs/src/xlog/Makefile libs/src/portable/Makefile xinetd/Makefile"
10281 cat >confcache <<\_ACEOF
10282 # This file is a shell script that caches the results of configure
10283 # tests run on this system so they can be shared between configure
10284 # scripts and configure runs, see configure's option --config-cache.
10285 # It is not useful on other systems.  If it contains results you don't
10286 # want to keep, you may remove or edit it.
10287 #
10288 # config.status only pays attention to the cache file if you give it
10289 # the --recheck option to rerun configure.
10290 #
10291 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10292 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10293 # following values.
10294
10295 _ACEOF
10296
10297 # The following way of writing the cache mishandles newlines in values,
10298 # but we know of no workaround that is simple, portable, and efficient.
10299 # So, don't put newlines in cache variables' values.
10300 # Ultrix sh set writes to stderr and can't be redirected directly,
10301 # and sets the high bit in the cache file unless we assign to the vars.
10302 {
10303   (set) 2>&1 |
10304     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10305     *ac_space=\ *)
10306       # `set' does not quote correctly, so add quotes (double-quote
10307       # substitution turns \\\\ into \\, and sed turns \\ into \).
10308       sed -n \
10309         "s/'/'\\\\''/g;
10310           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10311       ;;
10312     *)
10313       # `set' quotes correctly as required by POSIX, so do not add quotes.
10314       sed -n \
10315         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10316       ;;
10317     esac;
10318 } |
10319   sed '
10320      t clear
10321      : clear
10322      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10323      t end
10324      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10325      : end' >>confcache
10326 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10327   if test -w $cache_file; then
10328     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10329     cat confcache >$cache_file
10330   else
10331     echo "not updating unwritable cache $cache_file"
10332   fi
10333 fi
10334 rm -f confcache
10335
10336 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10337 # Let make expand exec_prefix.
10338 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10339
10340 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10341 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10342 # trailing colons and then remove the whole line if VPATH becomes empty
10343 # (actually we leave an empty line to preserve line numbers).
10344 if test "x$srcdir" = x.; then
10345   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10346 s/:*\$(srcdir):*/:/;
10347 s/:*\${srcdir}:*/:/;
10348 s/:*@srcdir@:*/:/;
10349 s/^\([^=]*=[     ]*\):*/\1/;
10350 s/:*$//;
10351 s/^[^=]*=[       ]*$//;
10352 }'
10353 fi
10354
10355 DEFS=-DHAVE_CONFIG_H
10356
10357 ac_libobjs=
10358 ac_ltlibobjs=
10359 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10360   # 1. Remove the extension, and $U if already installed.
10361   ac_i=`echo "$ac_i" |
10362          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10363   # 2. Add them.
10364   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10365   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10366 done
10367 LIBOBJS=$ac_libobjs
10368
10369 LTLIBOBJS=$ac_ltlibobjs
10370
10371
10372
10373 : ${CONFIG_STATUS=./config.status}
10374 ac_clean_files_save=$ac_clean_files
10375 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10376 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10377 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10378 cat >$CONFIG_STATUS <<_ACEOF
10379 #! $SHELL
10380 # Generated by $as_me.
10381 # Run this file to recreate the current configuration.
10382 # Compiler output produced by configure, useful for debugging
10383 # configure, is in config.log if it exists.
10384
10385 debug=false
10386 ac_cs_recheck=false
10387 ac_cs_silent=false
10388 SHELL=\${CONFIG_SHELL-$SHELL}
10389 _ACEOF
10390
10391 cat >>$CONFIG_STATUS <<\_ACEOF
10392 ## --------------------- ##
10393 ## M4sh Initialization.  ##
10394 ## --------------------- ##
10395
10396 # Be Bourne compatible
10397 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10398   emulate sh
10399   NULLCMD=:
10400   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10401   # is contrary to our usage.  Disable this feature.
10402   alias -g '${1+"$@"}'='"$@"'
10403 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10404   set -o posix
10405 fi
10406 DUALCASE=1; export DUALCASE # for MKS sh
10407
10408 # Support unset when possible.
10409 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10410   as_unset=unset
10411 else
10412   as_unset=false
10413 fi
10414
10415
10416 # Work around bugs in pre-3.0 UWIN ksh.
10417 $as_unset ENV MAIL MAILPATH
10418 PS1='$ '
10419 PS2='> '
10420 PS4='+ '
10421
10422 # NLS nuisances.
10423 for as_var in \
10424   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10425   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10426   LC_TELEPHONE LC_TIME
10427 do
10428   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10429     eval $as_var=C; export $as_var
10430   else
10431     $as_unset $as_var
10432   fi
10433 done
10434
10435 # Required to use basename.
10436 if expr a : '\(a\)' >/dev/null 2>&1; then
10437   as_expr=expr
10438 else
10439   as_expr=false
10440 fi
10441
10442 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10443   as_basename=basename
10444 else
10445   as_basename=false
10446 fi
10447
10448
10449 # Name of the executable.
10450 as_me=`$as_basename "$0" ||
10451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10452          X"$0" : 'X\(//\)$' \| \
10453          X"$0" : 'X\(/\)$' \| \
10454          .     : '\(.\)' 2>/dev/null ||
10455 echo X/"$0" |
10456     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10457           /^X\/\(\/\/\)$/{ s//\1/; q; }
10458           /^X\/\(\/\).*/{ s//\1/; q; }
10459           s/.*/./; q'`
10460
10461
10462 # PATH needs CR, and LINENO needs CR and PATH.
10463 # Avoid depending upon Character Ranges.
10464 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10465 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10466 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10467 as_cr_digits='0123456789'
10468 as_cr_alnum=$as_cr_Letters$as_cr_digits
10469
10470 # The user is always right.
10471 if test "${PATH_SEPARATOR+set}" != set; then
10472   echo "#! /bin/sh" >conf$$.sh
10473   echo  "exit 0"   >>conf$$.sh
10474   chmod +x conf$$.sh
10475   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10476     PATH_SEPARATOR=';'
10477   else
10478     PATH_SEPARATOR=:
10479   fi
10480   rm -f conf$$.sh
10481 fi
10482
10483
10484   as_lineno_1=$LINENO
10485   as_lineno_2=$LINENO
10486   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10487   test "x$as_lineno_1" != "x$as_lineno_2" &&
10488   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10489   # Find who we are.  Look in the path if we contain no path at all
10490   # relative or not.
10491   case $0 in
10492     *[\\/]* ) as_myself=$0 ;;
10493     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10494 for as_dir in $PATH
10495 do
10496   IFS=$as_save_IFS
10497   test -z "$as_dir" && as_dir=.
10498   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10499 done
10500
10501        ;;
10502   esac
10503   # We did not find ourselves, most probably we were run as `sh COMMAND'
10504   # in which case we are not to be found in the path.
10505   if test "x$as_myself" = x; then
10506     as_myself=$0
10507   fi
10508   if test ! -f "$as_myself"; then
10509     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10510 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10511    { (exit 1); exit 1; }; }
10512   fi
10513   case $CONFIG_SHELL in
10514   '')
10515     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10516 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10517 do
10518   IFS=$as_save_IFS
10519   test -z "$as_dir" && as_dir=.
10520   for as_base in sh bash ksh sh5; do
10521          case $as_dir in
10522          /*)
10523            if ("$as_dir/$as_base" -c '
10524   as_lineno_1=$LINENO
10525   as_lineno_2=$LINENO
10526   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10527   test "x$as_lineno_1" != "x$as_lineno_2" &&
10528   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10529              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10530              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10531              CONFIG_SHELL=$as_dir/$as_base
10532              export CONFIG_SHELL
10533              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10534            fi;;
10535          esac
10536        done
10537 done
10538 ;;
10539   esac
10540
10541   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10542   # uniformly replaced by the line number.  The first 'sed' inserts a
10543   # line-number line before each line; the second 'sed' does the real
10544   # work.  The second script uses 'N' to pair each line-number line
10545   # with the numbered line, and appends trailing '-' during
10546   # substitution so that $LINENO is not a special case at line end.
10547   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10548   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10549   sed '=' <$as_myself |
10550     sed '
10551       N
10552       s,$,-,
10553       : loop
10554       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10555       t loop
10556       s,-$,,
10557       s,^['$as_cr_digits']*\n,,
10558     ' >$as_me.lineno &&
10559   chmod +x $as_me.lineno ||
10560     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10561 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10562    { (exit 1); exit 1; }; }
10563
10564   # Don't try to exec as it changes $[0], causing all sort of problems
10565   # (the dirname of $[0] is not the place where we might find the
10566   # original and so on.  Autoconf is especially sensible to this).
10567   . ./$as_me.lineno
10568   # Exit status is that of the last command.
10569   exit
10570 }
10571
10572
10573 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10574   *c*,-n*) ECHO_N= ECHO_C='
10575 ' ECHO_T='      ' ;;
10576   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10577   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10578 esac
10579
10580 if expr a : '\(a\)' >/dev/null 2>&1; then
10581   as_expr=expr
10582 else
10583   as_expr=false
10584 fi
10585
10586 rm -f conf$$ conf$$.exe conf$$.file
10587 echo >conf$$.file
10588 if ln -s conf$$.file conf$$ 2>/dev/null; then
10589   # We could just check for DJGPP; but this test a) works b) is more generic
10590   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10591   if test -f conf$$.exe; then
10592     # Don't use ln at all; we don't have any links
10593     as_ln_s='cp -p'
10594   else
10595     as_ln_s='ln -s'
10596   fi
10597 elif ln conf$$.file conf$$ 2>/dev/null; then
10598   as_ln_s=ln
10599 else
10600   as_ln_s='cp -p'
10601 fi
10602 rm -f conf$$ conf$$.exe conf$$.file
10603
10604 if mkdir -p . 2>/dev/null; then
10605   as_mkdir_p=:
10606 else
10607   test -d ./-p && rmdir ./-p
10608   as_mkdir_p=false
10609 fi
10610
10611 as_executable_p="test -f"
10612
10613 # Sed expression to map a string onto a valid CPP name.
10614 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10615
10616 # Sed expression to map a string onto a valid variable name.
10617 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10618
10619
10620 # IFS
10621 # We need space, tab and new line, in precisely that order.
10622 as_nl='
10623 '
10624 IFS="   $as_nl"
10625
10626 # CDPATH.
10627 $as_unset CDPATH
10628
10629 exec 6>&1
10630
10631 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10632 # report actual input values of CONFIG_FILES etc. instead of their
10633 # values after options handling.  Logging --version etc. is OK.
10634 exec 5>>config.log
10635 {
10636   echo
10637   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10638 ## Running $as_me. ##
10639 _ASBOX
10640 } >&5
10641 cat >&5 <<_CSEOF
10642
10643 This file was extended by $as_me, which was
10644 generated by GNU Autoconf 2.59.  Invocation command line was
10645
10646   CONFIG_FILES    = $CONFIG_FILES
10647   CONFIG_HEADERS  = $CONFIG_HEADERS
10648   CONFIG_LINKS    = $CONFIG_LINKS
10649   CONFIG_COMMANDS = $CONFIG_COMMANDS
10650   $ $0 $@
10651
10652 _CSEOF
10653 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10654 echo >&5
10655 _ACEOF
10656
10657 # Files that config.status was made for.
10658 if test -n "$ac_config_files"; then
10659   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10660 fi
10661
10662 if test -n "$ac_config_headers"; then
10663   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10664 fi
10665
10666 if test -n "$ac_config_links"; then
10667   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10668 fi
10669
10670 if test -n "$ac_config_commands"; then
10671   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10672 fi
10673
10674 cat >>$CONFIG_STATUS <<\_ACEOF
10675
10676 ac_cs_usage="\
10677 \`$as_me' instantiates files from templates according to the
10678 current configuration.
10679
10680 Usage: $0 [OPTIONS] [FILE]...
10681
10682   -h, --help       print this help, then exit
10683   -V, --version    print version number, then exit
10684   -q, --quiet      do not print progress messages
10685   -d, --debug      don't remove temporary files
10686       --recheck    update $as_me by reconfiguring in the same conditions
10687   --file=FILE[:TEMPLATE]
10688                    instantiate the configuration file FILE
10689   --header=FILE[:TEMPLATE]
10690                    instantiate the configuration header FILE
10691
10692 Configuration files:
10693 $config_files
10694
10695 Configuration headers:
10696 $config_headers
10697
10698 Report bugs to <bug-autoconf@gnu.org>."
10699 _ACEOF
10700
10701 cat >>$CONFIG_STATUS <<_ACEOF
10702 ac_cs_version="\\
10703 config.status
10704 configured by $0, generated by GNU Autoconf 2.59,
10705   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10706
10707 Copyright (C) 2003 Free Software Foundation, Inc.
10708 This config.status script is free software; the Free Software Foundation
10709 gives unlimited permission to copy, distribute and modify it."
10710 srcdir=$srcdir
10711 INSTALL="$INSTALL"
10712 _ACEOF
10713
10714 cat >>$CONFIG_STATUS <<\_ACEOF
10715 # If no file are specified by the user, then we need to provide default
10716 # value.  By we need to know if files were specified by the user.
10717 ac_need_defaults=:
10718 while test $# != 0
10719 do
10720   case $1 in
10721   --*=*)
10722     ac_option=`expr "x$1" : 'x\([^=]*\)='`
10723     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10724     ac_shift=:
10725     ;;
10726   -*)
10727     ac_option=$1
10728     ac_optarg=$2
10729     ac_shift=shift
10730     ;;
10731   *) # This is not an option, so the user has probably given explicit
10732      # arguments.
10733      ac_option=$1
10734      ac_need_defaults=false;;
10735   esac
10736
10737   case $ac_option in
10738   # Handling of the options.
10739 _ACEOF
10740 cat >>$CONFIG_STATUS <<\_ACEOF
10741   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10742     ac_cs_recheck=: ;;
10743   --version | --vers* | -V )
10744     echo "$ac_cs_version"; exit 0 ;;
10745   --he | --h)
10746     # Conflict between --help and --header
10747     { { echo "$as_me:$LINENO: error: ambiguous option: $1
10748 Try \`$0 --help' for more information." >&5
10749 echo "$as_me: error: ambiguous option: $1
10750 Try \`$0 --help' for more information." >&2;}
10751    { (exit 1); exit 1; }; };;
10752   --help | --hel | -h )
10753     echo "$ac_cs_usage"; exit 0 ;;
10754   --debug | --d* | -d )
10755     debug=: ;;
10756   --file | --fil | --fi | --f )
10757     $ac_shift
10758     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10759     ac_need_defaults=false;;
10760   --header | --heade | --head | --hea )
10761     $ac_shift
10762     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10763     ac_need_defaults=false;;
10764   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10765   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10766     ac_cs_silent=: ;;
10767
10768   # This is an error.
10769   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10770 Try \`$0 --help' for more information." >&5
10771 echo "$as_me: error: unrecognized option: $1
10772 Try \`$0 --help' for more information." >&2;}
10773    { (exit 1); exit 1; }; } ;;
10774
10775   *) ac_config_targets="$ac_config_targets $1" ;;
10776
10777   esac
10778   shift
10779 done
10780
10781 ac_configure_extra_args=
10782
10783 if $ac_cs_silent; then
10784   exec 6>/dev/null
10785   ac_configure_extra_args="$ac_configure_extra_args --silent"
10786 fi
10787
10788 _ACEOF
10789 cat >>$CONFIG_STATUS <<_ACEOF
10790 if \$ac_cs_recheck; then
10791   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10792   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10793 fi
10794
10795 _ACEOF
10796
10797
10798
10799
10800
10801 cat >>$CONFIG_STATUS <<\_ACEOF
10802 for ac_config_target in $ac_config_targets
10803 do
10804   case "$ac_config_target" in
10805   # Handling of arguments.
10806   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10807   "libs/src/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/src/misc/Makefile" ;;
10808   "libs/src/pset/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/src/pset/Makefile" ;;
10809   "libs/src/sio/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/src/sio/Makefile" ;;
10810   "libs/src/str/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/src/str/Makefile" ;;
10811   "libs/src/xlog/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/src/xlog/Makefile" ;;
10812   "libs/src/portable/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/src/portable/Makefile" ;;
10813   "xinetd/Makefile" ) CONFIG_FILES="$CONFIG_FILES xinetd/Makefile" ;;
10814   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10815   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10816 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10817    { (exit 1); exit 1; }; };;
10818   esac
10819 done
10820
10821 # If the user did not use the arguments to specify the items to instantiate,
10822 # then the envvar interface is used.  Set only those that are not.
10823 # We use the long form for the default assignment because of an extremely
10824 # bizarre bug on SunOS 4.1.3.
10825 if $ac_need_defaults; then
10826   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10827   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10828 fi
10829
10830 # Have a temporary directory for convenience.  Make it in the build tree
10831 # simply because there is no reason to put it here, and in addition,
10832 # creating and moving files from /tmp can sometimes cause problems.
10833 # Create a temporary directory, and hook for its removal unless debugging.
10834 $debug ||
10835 {
10836   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10837   trap '{ (exit 1); exit 1; }' 1 2 13 15
10838 }
10839
10840 # Create a (secure) tmp directory for tmp files.
10841
10842 {
10843   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10844   test -n "$tmp" && test -d "$tmp"
10845 }  ||
10846 {
10847   tmp=./confstat$$-$RANDOM
10848   (umask 077 && mkdir $tmp)
10849 } ||
10850 {
10851    echo "$me: cannot create a temporary directory in ." >&2
10852    { (exit 1); exit 1; }
10853 }
10854
10855 _ACEOF
10856
10857 cat >>$CONFIG_STATUS <<_ACEOF
10858
10859 #
10860 # CONFIG_FILES section.
10861 #
10862
10863 # No need to generate the scripts if there are no CONFIG_FILES.
10864 # This happens for instance when ./config.status config.h
10865 if test -n "\$CONFIG_FILES"; then
10866   # Protect against being on the right side of a sed subst in config.status.
10867   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10868    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10869 s,@SHELL@,$SHELL,;t t
10870 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10871 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10872 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10873 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10874 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10875 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10876 s,@exec_prefix@,$exec_prefix,;t t
10877 s,@prefix@,$prefix,;t t
10878 s,@program_transform_name@,$program_transform_name,;t t
10879 s,@bindir@,$bindir,;t t
10880 s,@sbindir@,$sbindir,;t t
10881 s,@libexecdir@,$libexecdir,;t t
10882 s,@datadir@,$datadir,;t t
10883 s,@sysconfdir@,$sysconfdir,;t t
10884 s,@sharedstatedir@,$sharedstatedir,;t t
10885 s,@localstatedir@,$localstatedir,;t t
10886 s,@libdir@,$libdir,;t t
10887 s,@includedir@,$includedir,;t t
10888 s,@oldincludedir@,$oldincludedir,;t t
10889 s,@infodir@,$infodir,;t t
10890 s,@mandir@,$mandir,;t t
10891 s,@build_alias@,$build_alias,;t t
10892 s,@host_alias@,$host_alias,;t t
10893 s,@target_alias@,$target_alias,;t t
10894 s,@DEFS@,$DEFS,;t t
10895 s,@ECHO_C@,$ECHO_C,;t t
10896 s,@ECHO_N@,$ECHO_N,;t t
10897 s,@ECHO_T@,$ECHO_T,;t t
10898 s,@LIBS@,$LIBS,;t t
10899 s,@build@,$build,;t t
10900 s,@build_cpu@,$build_cpu,;t t
10901 s,@build_vendor@,$build_vendor,;t t
10902 s,@build_os@,$build_os,;t t
10903 s,@host@,$host,;t t
10904 s,@host_cpu@,$host_cpu,;t t
10905 s,@host_vendor@,$host_vendor,;t t
10906 s,@host_os@,$host_os,;t t
10907 s,@target@,$target,;t t
10908 s,@target_cpu@,$target_cpu,;t t
10909 s,@target_vendor@,$target_vendor,;t t
10910 s,@target_os@,$target_os,;t t
10911 s,@CC@,$CC,;t t
10912 s,@CFLAGS@,$CFLAGS,;t t
10913 s,@LDFLAGS@,$LDFLAGS,;t t
10914 s,@CPPFLAGS@,$CPPFLAGS,;t t
10915 s,@ac_ct_CC@,$ac_ct_CC,;t t
10916 s,@EXEEXT@,$EXEEXT,;t t
10917 s,@OBJEXT@,$OBJEXT,;t t
10918 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10919 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10920 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10921 s,@RANLIB@,$RANLIB,;t t
10922 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10923 s,@CPP@,$CPP,;t t
10924 s,@EGREP@,$EGREP,;t t
10925 s,@LIBOBJS@,$LIBOBJS,;t t
10926 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10927 CEOF
10928
10929 _ACEOF
10930
10931   cat >>$CONFIG_STATUS <<\_ACEOF
10932   # Split the substitutions into bite-sized pieces for seds with
10933   # small command number limits, like on Digital OSF/1 and HP-UX.
10934   ac_max_sed_lines=48
10935   ac_sed_frag=1 # Number of current file.
10936   ac_beg=1 # First line for current file.
10937   ac_end=$ac_max_sed_lines # Line after last line for current file.
10938   ac_more_lines=:
10939   ac_sed_cmds=
10940   while $ac_more_lines; do
10941     if test $ac_beg -gt 1; then
10942       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10943     else
10944       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10945     fi
10946     if test ! -s $tmp/subs.frag; then
10947       ac_more_lines=false
10948     else
10949       # The purpose of the label and of the branching condition is to
10950       # speed up the sed processing (if there are no `@' at all, there
10951       # is no need to browse any of the substitutions).
10952       # These are the two extra sed commands mentioned above.
10953       (echo ':t
10954   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10955       if test -z "$ac_sed_cmds"; then
10956         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10957       else
10958         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10959       fi
10960       ac_sed_frag=`expr $ac_sed_frag + 1`
10961       ac_beg=$ac_end
10962       ac_end=`expr $ac_end + $ac_max_sed_lines`
10963     fi
10964   done
10965   if test -z "$ac_sed_cmds"; then
10966     ac_sed_cmds=cat
10967   fi
10968 fi # test -n "$CONFIG_FILES"
10969
10970 _ACEOF
10971 cat >>$CONFIG_STATUS <<\_ACEOF
10972 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10973   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10974   case $ac_file in
10975   - | *:- | *:-:* ) # input from stdin
10976         cat >$tmp/stdin
10977         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10978         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10979   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10980         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10981   * )   ac_file_in=$ac_file.in ;;
10982   esac
10983
10984   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10985   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10986 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10987          X"$ac_file" : 'X\(//\)[^/]' \| \
10988          X"$ac_file" : 'X\(//\)$' \| \
10989          X"$ac_file" : 'X\(/\)' \| \
10990          .     : '\(.\)' 2>/dev/null ||
10991 echo X"$ac_file" |
10992     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10993           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10994           /^X\(\/\/\)$/{ s//\1/; q; }
10995           /^X\(\/\).*/{ s//\1/; q; }
10996           s/.*/./; q'`
10997   { if $as_mkdir_p; then
10998     mkdir -p "$ac_dir"
10999   else
11000     as_dir="$ac_dir"
11001     as_dirs=
11002     while test ! -d "$as_dir"; do
11003       as_dirs="$as_dir $as_dirs"
11004       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11005 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11006          X"$as_dir" : 'X\(//\)[^/]' \| \
11007          X"$as_dir" : 'X\(//\)$' \| \
11008          X"$as_dir" : 'X\(/\)' \| \
11009          .     : '\(.\)' 2>/dev/null ||
11010 echo X"$as_dir" |
11011     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11012           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11013           /^X\(\/\/\)$/{ s//\1/; q; }
11014           /^X\(\/\).*/{ s//\1/; q; }
11015           s/.*/./; q'`
11016     done
11017     test ! -n "$as_dirs" || mkdir $as_dirs
11018   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11019 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11020    { (exit 1); exit 1; }; }; }
11021
11022   ac_builddir=.
11023
11024 if test "$ac_dir" != .; then
11025   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11026   # A "../" for each directory in $ac_dir_suffix.
11027   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11028 else
11029   ac_dir_suffix= ac_top_builddir=
11030 fi
11031
11032 case $srcdir in
11033   .)  # No --srcdir option.  We are building in place.
11034     ac_srcdir=.
11035     if test -z "$ac_top_builddir"; then
11036        ac_top_srcdir=.
11037     else
11038        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11039     fi ;;
11040   [\\/]* | ?:[\\/]* )  # Absolute path.
11041     ac_srcdir=$srcdir$ac_dir_suffix;
11042     ac_top_srcdir=$srcdir ;;
11043   *) # Relative path.
11044     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11045     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11046 esac
11047
11048 # Do not use `cd foo && pwd` to compute absolute paths, because
11049 # the directories may not exist.
11050 case `pwd` in
11051 .) ac_abs_builddir="$ac_dir";;
11052 *)
11053   case "$ac_dir" in
11054   .) ac_abs_builddir=`pwd`;;
11055   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11056   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11057   esac;;
11058 esac
11059 case $ac_abs_builddir in
11060 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11061 *)
11062   case ${ac_top_builddir}. in
11063   .) ac_abs_top_builddir=$ac_abs_builddir;;
11064   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11065   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11066   esac;;
11067 esac
11068 case $ac_abs_builddir in
11069 .) ac_abs_srcdir=$ac_srcdir;;
11070 *)
11071   case $ac_srcdir in
11072   .) ac_abs_srcdir=$ac_abs_builddir;;
11073   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11074   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11075   esac;;
11076 esac
11077 case $ac_abs_builddir in
11078 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11079 *)
11080   case $ac_top_srcdir in
11081   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11082   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11083   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11084   esac;;
11085 esac
11086
11087
11088   case $INSTALL in
11089   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11090   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11091   esac
11092
11093   if test x"$ac_file" != x-; then
11094     { echo "$as_me:$LINENO: creating $ac_file" >&5
11095 echo "$as_me: creating $ac_file" >&6;}
11096     rm -f "$ac_file"
11097   fi
11098   # Let's still pretend it is `configure' which instantiates (i.e., don't
11099   # use $as_me), people would be surprised to read:
11100   #    /* config.h.  Generated by config.status.  */
11101   if test x"$ac_file" = x-; then
11102     configure_input=
11103   else
11104     configure_input="$ac_file.  "
11105   fi
11106   configure_input=$configure_input"Generated from `echo $ac_file_in |
11107                                      sed 's,.*/,,'` by configure."
11108
11109   # First look for the input files in the build tree, otherwise in the
11110   # src tree.
11111   ac_file_inputs=`IFS=:
11112     for f in $ac_file_in; do
11113       case $f in
11114       -) echo $tmp/stdin ;;
11115       [\\/$]*)
11116          # Absolute (can't be DOS-style, as IFS=:)
11117          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11118 echo "$as_me: error: cannot find input file: $f" >&2;}
11119    { (exit 1); exit 1; }; }
11120          echo "$f";;
11121       *) # Relative
11122          if test -f "$f"; then
11123            # Build tree
11124            echo "$f"
11125          elif test -f "$srcdir/$f"; then
11126            # Source tree
11127            echo "$srcdir/$f"
11128          else
11129            # /dev/null tree
11130            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11131 echo "$as_me: error: cannot find input file: $f" >&2;}
11132    { (exit 1); exit 1; }; }
11133          fi;;
11134       esac
11135     done` || { (exit 1); exit 1; }
11136 _ACEOF
11137 cat >>$CONFIG_STATUS <<_ACEOF
11138   sed "$ac_vpsub
11139 $extrasub
11140 _ACEOF
11141 cat >>$CONFIG_STATUS <<\_ACEOF
11142 :t
11143 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11144 s,@configure_input@,$configure_input,;t t
11145 s,@srcdir@,$ac_srcdir,;t t
11146 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11147 s,@top_srcdir@,$ac_top_srcdir,;t t
11148 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11149 s,@builddir@,$ac_builddir,;t t
11150 s,@abs_builddir@,$ac_abs_builddir,;t t
11151 s,@top_builddir@,$ac_top_builddir,;t t
11152 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11153 s,@INSTALL@,$ac_INSTALL,;t t
11154 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11155   rm -f $tmp/stdin
11156   if test x"$ac_file" != x-; then
11157     mv $tmp/out $ac_file
11158   else
11159     cat $tmp/out
11160     rm -f $tmp/out
11161   fi
11162
11163 done
11164 _ACEOF
11165 cat >>$CONFIG_STATUS <<\_ACEOF
11166
11167 #
11168 # CONFIG_HEADER section.
11169 #
11170
11171 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11172 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11173 #
11174 # ac_d sets the value in "#define NAME VALUE" lines.
11175 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11176 ac_dB='[         ].*$,\1#\2'
11177 ac_dC=' '
11178 ac_dD=',;t'
11179 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11180 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11181 ac_uB='$,\1#\2define\3'
11182 ac_uC=' '
11183 ac_uD=',;t'
11184
11185 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11186   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11187   case $ac_file in
11188   - | *:- | *:-:* ) # input from stdin
11189         cat >$tmp/stdin
11190         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11191         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11192   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11193         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11194   * )   ac_file_in=$ac_file.in ;;
11195   esac
11196
11197   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11198 echo "$as_me: creating $ac_file" >&6;}
11199
11200   # First look for the input files in the build tree, otherwise in the
11201   # src tree.
11202   ac_file_inputs=`IFS=:
11203     for f in $ac_file_in; do
11204       case $f in
11205       -) echo $tmp/stdin ;;
11206       [\\/$]*)
11207          # Absolute (can't be DOS-style, as IFS=:)
11208          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11209 echo "$as_me: error: cannot find input file: $f" >&2;}
11210    { (exit 1); exit 1; }; }
11211          # Do quote $f, to prevent DOS paths from being IFS'd.
11212          echo "$f";;
11213       *) # Relative
11214          if test -f "$f"; then
11215            # Build tree
11216            echo "$f"
11217          elif test -f "$srcdir/$f"; then
11218            # Source tree
11219            echo "$srcdir/$f"
11220          else
11221            # /dev/null tree
11222            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11223 echo "$as_me: error: cannot find input file: $f" >&2;}
11224    { (exit 1); exit 1; }; }
11225          fi;;
11226       esac
11227     done` || { (exit 1); exit 1; }
11228   # Remove the trailing spaces.
11229   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11230
11231 _ACEOF
11232
11233 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11234 # `conftest.undefs', that substitutes the proper values into
11235 # config.h.in to produce config.h.  The first handles `#define'
11236 # templates, and the second `#undef' templates.
11237 # And first: Protect against being on the right side of a sed subst in
11238 # config.status.  Protect against being in an unquoted here document
11239 # in config.status.
11240 rm -f conftest.defines conftest.undefs
11241 # Using a here document instead of a string reduces the quoting nightmare.
11242 # Putting comments in sed scripts is not portable.
11243 #
11244 # `end' is used to avoid that the second main sed command (meant for
11245 # 0-ary CPP macros) applies to n-ary macro definitions.
11246 # See the Autoconf documentation for `clear'.
11247 cat >confdef2sed.sed <<\_ACEOF
11248 s/[\\&,]/\\&/g
11249 s,[\\$`],\\&,g
11250 t clear
11251 : clear
11252 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11253 t end
11254 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11255 : end
11256 _ACEOF
11257 # If some macros were called several times there might be several times
11258 # the same #defines, which is useless.  Nevertheless, we may not want to
11259 # sort them, since we want the *last* AC-DEFINE to be honored.
11260 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11261 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11262 rm -f confdef2sed.sed
11263
11264 # This sed command replaces #undef with comments.  This is necessary, for
11265 # example, in the case of _POSIX_SOURCE, which is predefined and required
11266 # on some systems where configure will not decide to define it.
11267 cat >>conftest.undefs <<\_ACEOF
11268 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11269 _ACEOF
11270
11271 # Break up conftest.defines because some shells have a limit on the size
11272 # of here documents, and old seds have small limits too (100 cmds).
11273 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11274 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11275 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11276 echo '  :' >>$CONFIG_STATUS
11277 rm -f conftest.tail
11278 while grep . conftest.defines >/dev/null
11279 do
11280   # Write a limited-size here document to $tmp/defines.sed.
11281   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11282   # Speed up: don't consider the non `#define' lines.
11283   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11284   # Work around the forget-to-reset-the-flag bug.
11285   echo 't clr' >>$CONFIG_STATUS
11286   echo ': clr' >>$CONFIG_STATUS
11287   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11288   echo 'CEOF
11289   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11290   rm -f $tmp/in
11291   mv $tmp/out $tmp/in
11292 ' >>$CONFIG_STATUS
11293   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11294   rm -f conftest.defines
11295   mv conftest.tail conftest.defines
11296 done
11297 rm -f conftest.defines
11298 echo '  fi # grep' >>$CONFIG_STATUS
11299 echo >>$CONFIG_STATUS
11300
11301 # Break up conftest.undefs because some shells have a limit on the size
11302 # of here documents, and old seds have small limits too (100 cmds).
11303 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11304 rm -f conftest.tail
11305 while grep . conftest.undefs >/dev/null
11306 do
11307   # Write a limited-size here document to $tmp/undefs.sed.
11308   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11309   # Speed up: don't consider the non `#undef'
11310   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11311   # Work around the forget-to-reset-the-flag bug.
11312   echo 't clr' >>$CONFIG_STATUS
11313   echo ': clr' >>$CONFIG_STATUS
11314   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11315   echo 'CEOF
11316   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11317   rm -f $tmp/in
11318   mv $tmp/out $tmp/in
11319 ' >>$CONFIG_STATUS
11320   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11321   rm -f conftest.undefs
11322   mv conftest.tail conftest.undefs
11323 done
11324 rm -f conftest.undefs
11325
11326 cat >>$CONFIG_STATUS <<\_ACEOF
11327   # Let's still pretend it is `configure' which instantiates (i.e., don't
11328   # use $as_me), people would be surprised to read:
11329   #    /* config.h.  Generated by config.status.  */
11330   if test x"$ac_file" = x-; then
11331     echo "/* Generated by configure.  */" >$tmp/config.h
11332   else
11333     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11334   fi
11335   cat $tmp/in >>$tmp/config.h
11336   rm -f $tmp/in
11337   if test x"$ac_file" != x-; then
11338     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11339       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11340 echo "$as_me: $ac_file is unchanged" >&6;}
11341     else
11342       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11343 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11344          X"$ac_file" : 'X\(//\)[^/]' \| \
11345          X"$ac_file" : 'X\(//\)$' \| \
11346          X"$ac_file" : 'X\(/\)' \| \
11347          .     : '\(.\)' 2>/dev/null ||
11348 echo X"$ac_file" |
11349     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11350           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11351           /^X\(\/\/\)$/{ s//\1/; q; }
11352           /^X\(\/\).*/{ s//\1/; q; }
11353           s/.*/./; q'`
11354       { if $as_mkdir_p; then
11355     mkdir -p "$ac_dir"
11356   else
11357     as_dir="$ac_dir"
11358     as_dirs=
11359     while test ! -d "$as_dir"; do
11360       as_dirs="$as_dir $as_dirs"
11361       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11362 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11363          X"$as_dir" : 'X\(//\)[^/]' \| \
11364          X"$as_dir" : 'X\(//\)$' \| \
11365          X"$as_dir" : 'X\(/\)' \| \
11366          .     : '\(.\)' 2>/dev/null ||
11367 echo X"$as_dir" |
11368     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11369           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11370           /^X\(\/\/\)$/{ s//\1/; q; }
11371           /^X\(\/\).*/{ s//\1/; q; }
11372           s/.*/./; q'`
11373     done
11374     test ! -n "$as_dirs" || mkdir $as_dirs
11375   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11376 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11377    { (exit 1); exit 1; }; }; }
11378
11379       rm -f $ac_file
11380       mv $tmp/config.h $ac_file
11381     fi
11382   else
11383     cat $tmp/config.h
11384     rm -f $tmp/config.h
11385   fi
11386 done
11387 _ACEOF
11388
11389 cat >>$CONFIG_STATUS <<\_ACEOF
11390
11391 { (exit 0); exit 0; }
11392 _ACEOF
11393 chmod +x $CONFIG_STATUS
11394 ac_clean_files=$ac_clean_files_save
11395
11396
11397 # configure is writing to config.log, and then calls config.status.
11398 # config.status does its own redirection, appending to config.log.
11399 # Unfortunately, on DOS this fails, as config.log is still kept open
11400 # by configure, so config.status won't be able to write to it; its
11401 # output is simply discarded.  So we exec the FD to /dev/null,
11402 # effectively closing config.log, so it can be properly (re)opened and
11403 # appended to by config.status.  When coming back to configure, we
11404 # need to make the FD available again.
11405 if test "$no_create" != yes; then
11406   ac_cs_success=:
11407   ac_config_status_args=
11408   test "$silent" = yes &&
11409     ac_config_status_args="$ac_config_status_args --quiet"
11410   exec 5>/dev/null
11411   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11412   exec 5>>config.log
11413   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11414   # would make configure fail if this is the last instruction.
11415   $ac_cs_success || { (exit 1); exit 1; }
11416 fi
11417
11418
11419 cp config.h libs/include