]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/ntp/configure
This commit was generated by cvs2svn to compensate for changes in r165254,
[FreeBSD/FreeBSD.git] / contrib / ntp / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="ntpd/ntp_refclock.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subdirs_all="$ac_subdirs_all arlib"
312 ac_subdirs_all="$ac_subdirs_all sntp"
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LN_S RANLIB ac_ct_RANLIB PATH_SH PATH_PERL READLINE_LIBS U ANSI2KNR LIBOBJS LIBPARSE MAKE_LIBPARSE MAKE_LIBPARSE_KERNEL MAKE_CHECK_Y2K OPENSSL OPENSSL_INC OPENSSL_LIB MAKE_NTP_KEYGEN LCRYPTO EF_PROGS EF_LIBS MAKE_SNTP TESTDCF DCFD MAKE_PARSEKMODULE PROPDELAY CHUTEST CLKTEST MAKE_ADJTIMED MAKE_NTPTIME MAKE_TICKADJ MAKE_TIMETRIM MAKE_LIBNTPSIM MAKE_NTPDSIM ARLIB_DIR subdirs LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779   # Omit some internal or obsolete options to make the list less imposing.
780   # This message is too long to be a string in the A/UX 3.1 sh.
781   cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792   -h, --help              display this help and exit
793       --help=short        display options specific to this package
794       --help=recursive    display the short help of all the included packages
795   -V, --version           display version information and exit
796   -q, --quiet, --silent   do not print \`checking...' messages
797       --cache-file=FILE   cache test results in FILE [disabled]
798   -C, --config-cache      alias for \`--cache-file=config.cache'
799   -n, --no-create         do not create output files
800       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804   cat <<_ACEOF
805 Installation directories:
806   --prefix=PREFIX         install architecture-independent files in PREFIX
807                           [$ac_default_prefix]
808   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809                           [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819   --bindir=DIR           user executables [EPREFIX/bin]
820   --sbindir=DIR          system admin executables [EPREFIX/sbin]
821   --libexecdir=DIR       program executables [EPREFIX/libexec]
822   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826   --libdir=DIR           object code libraries [EPREFIX/lib]
827   --includedir=DIR       C header files [PREFIX/include]
828   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829   --infodir=DIR          info documentation [PREFIX/info]
830   --mandir=DIR           man documentation [PREFIX/man]
831 _ACEOF
832
833   cat <<\_ACEOF
834
835 Program names:
836   --program-prefix=PREFIX            prepend PREFIX to installed program names
837   --program-suffix=SUFFIX            append SUFFIX to installed program names
838   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
839
840 System types:
841   --build=BUILD     configure for building on BUILD [guessed]
842   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
843   --target=TARGET   configure for building compilers for TARGET [HOST]
844 _ACEOF
845 fi
846
847 if test -n "$ac_init_help"; then
848
849   cat <<\_ACEOF
850
851 Optional Features:
852   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
853   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
854   --disable-dependency-tracking Speeds up one-time builds
855   --enable-dependency-tracking  Do not reject slow dependency extractors
856   --enable-clockctl       Use /dev/clockctl for non-root time control
857   --enable-debugging      + include debugging code
858   --enable-dst-minutes=60 + minutes per DST adjustment
859   --enable-BANCOMM        - Datum/Bancomm bc635/VME interface
860   --enable-GPSVME         - TrueTime GPS receiver/VME interface
861   --enable-all-clocks     + include all suitable non-PARSE clocks:
862   --enable-ACTS           s ACTS modem service
863   --enable-ARBITER        + Arbiter 1088A/B GPS receiver
864   --enable-ARCRON-MSF     + Arcron MSF receiver
865   --enable-AS2201         + Austron 2200A/2201A GPS receiver
866   --enable-ATOM           s ATOM PPS interface
867   --enable-CHRONOLOG      + Chrono-log K-series WWVB receiver
868   --enable-CHU            + CHU modem/decoder
869   --enable-AUDIO-CHU      s CHU audio/decoder
870   --enable-DATUM          s Datum Programmable Time System
871   --enable-DUMBCLOCK      + Dumb generic hh:mm:ss local clock
872   --enable-FG             + Forum Graphic GPS
873   --enable-HEATH          s Heath GC-1000 WWV/WWVH receiver
874   --enable-HOPFSERIAL     + hopf serial clock device
875   --enable-HOPFPCI        + hopf 6039 PCI board
876   --enable-HPGPS          + HP 58503A GPS receiver
877   --enable-IRIG           s IRIG audio decoder
878   --enable-JJY            + JJY receiver
879   --enable-JUPITER        s Rockwell Jupiter GPS receiver
880   --enable-LEITCH         + Leitch CSD 5300 Master Clock System Driver
881   --enable-LOCAL-CLOCK    + local clock reference
882   --enable-MSFEES         + EES M201 MSF receiver
883   --enable-MX4200         s Magnavox MX4200 GPS receiver
884   --enable-NEOCLOCK4X     + NeoClock4X DCF77 / TDF receiver
885   --enable-NMEA           + NMEA GPS receiver
886   --enable-ONCORE         s Motorola VP/UT Oncore GPS receiver
887   --enable-PALISADE       s Palisade clock
888   --enable-PCF            + Conrad parallel port radio clock
889   --enable-PST            + PST/Traconex 1020 WWV/WWVH receiver
890   --enable-PTBACTS        s PTB modem service
891   --enable-RIPENCC        - RIPENCC specific Trimble driver
892   --enable-SHM            s SHM clock attached thru shared memory
893   --enable-SPECTRACOM     + Spectracom 8170/Netclock/2 WWVB receiver
894   --enable-TPRO           s KSI/Odetics TPRO/S GPS receiver/IRIG interface
895   --enable-TRAK           + TRAK 8810 GPS receiver
896   --enable-TRUETIME       s Kinemetrics/TrueTime receivers
897   --enable-TT560          - TrueTime 560 IRIG-B decoder
898   --enable-ULINK          + Ultralink WWVB receiver
899   --enable-USNO           s USNO modem service
900   --enable-WWV            s WWV Audio receiver
901   --enable-ZYFER          + Zyfer GPStarplus receiver
902   --enable-parse-clocks   - include all suitable PARSE clocks:
903   --enable-COMPUTIME      s Diem Computime Radio Clock
904   --enable-DCF7000        s ELV/DCF7000 clock
905   --enable-HOPF6021       s HOPF 6021 clock
906   --enable-MEINBERG       s Meinberg clocks
907   --enable-RAWDCF         s DCF77 raw time code
908   --enable-RCC8000        s RCC 8000 clock
909   --enable-SCHMID         s Schmid DCF77 clock
910   --enable-TRIMTAIP       s Trimble GPS receiver/TAIP protocol
911   --enable-TRIMTSIP       s Trimble GPS receiver/TSIP protocol
912   --enable-WHARTON        s WHARTON 400A Series clock
913   --enable-VARITEXT       s VARITEXT clock
914   --enable-kmem           s read /dev/kmem for tick and/or tickadj
915   --enable-accurate-adjtime
916                           s the adjtime() call is accurate
917   --enable-tick=VALUE     s force a value for 'tick'
918   --enable-tickadj=VALUE  s force a value for 'tickadj'
919   --enable-simulator      - build/install the NTPD simulator?
920   --enable-udp-wildcard   s use UDP wildcard delivery
921   --enable-slew-always    s always slew the time
922   --enable-step-slew      s step and slew the time
923   --enable-ntpdate-step   s if ntpdate should step the time
924   --enable-hourly-todr-sync
925                           s if we should sync TODR hourly
926   --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
927   --enable-irig-sawtooth  s if we should enable the IRIG sawtooth filter
928   --enable-nist           - if we should enable the NIST lockclock scheme
929
930 Optional Packages:
931   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
932   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
933   --with-openssl-libdir   + =/something/reasonable
934   --with-openssl-incdir   + =/something/reasonable
935   --with-crypto           + =openssl
936   --with-electricfence    - compile with ElectricFence malloc debugger
937   --with-sntp             - Build SNTP?
938   --with-arlib            - Compile the async resolver library?
939
940 Some influential environment variables:
941   CC          C compiler command
942   CFLAGS      C compiler flags
943   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
944               nonstandard directory <lib dir>
945   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
946               headers in a nonstandard directory <include dir>
947   CPP         C preprocessor
948
949 Use these variables to override the choices made by `configure' or to help
950 it to find libraries and programs with nonstandard names/locations.
951
952 _ACEOF
953 fi
954
955 if test "$ac_init_help" = "recursive"; then
956   # If there are subdirs, report their specific --help.
957   ac_popdir=`pwd`
958   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
959     test -d $ac_dir || continue
960     ac_builddir=.
961
962 if test "$ac_dir" != .; then
963   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
964   # A "../" for each directory in $ac_dir_suffix.
965   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
966 else
967   ac_dir_suffix= ac_top_builddir=
968 fi
969
970 case $srcdir in
971   .)  # No --srcdir option.  We are building in place.
972     ac_srcdir=.
973     if test -z "$ac_top_builddir"; then
974        ac_top_srcdir=.
975     else
976        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
977     fi ;;
978   [\\/]* | ?:[\\/]* )  # Absolute path.
979     ac_srcdir=$srcdir$ac_dir_suffix;
980     ac_top_srcdir=$srcdir ;;
981   *) # Relative path.
982     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
983     ac_top_srcdir=$ac_top_builddir$srcdir ;;
984 esac
985 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
986 # absolute.
987 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
988 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
989 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
990 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
991
992     cd $ac_dir
993     # Check for guested configure; otherwise get Cygnus style configure.
994     if test -f $ac_srcdir/configure.gnu; then
995       echo
996       $SHELL $ac_srcdir/configure.gnu  --help=recursive
997     elif test -f $ac_srcdir/configure; then
998       echo
999       $SHELL $ac_srcdir/configure  --help=recursive
1000     elif test -f $ac_srcdir/configure.ac ||
1001            test -f $ac_srcdir/configure.in; then
1002       echo
1003       $ac_configure --help
1004     else
1005       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1006     fi
1007     cd $ac_popdir
1008   done
1009 fi
1010
1011 test -n "$ac_init_help" && exit 0
1012 if $ac_init_version; then
1013   cat <<\_ACEOF
1014
1015 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1016 Free Software Foundation, Inc.
1017 This configure script is free software; the Free Software Foundation
1018 gives unlimited permission to copy, distribute and modify it.
1019 _ACEOF
1020   exit 0
1021 fi
1022 exec 5>config.log
1023 cat >&5 <<_ACEOF
1024 This file contains any messages produced by compilers while
1025 running configure, to aid debugging if configure makes a mistake.
1026
1027 It was created by $as_me, which was
1028 generated by GNU Autoconf 2.57.  Invocation command line was
1029
1030   $ $0 $@
1031
1032 _ACEOF
1033 {
1034 cat <<_ASUNAME
1035 ## --------- ##
1036 ## Platform. ##
1037 ## --------- ##
1038
1039 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1040 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1041 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1042 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1043 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1044
1045 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1046 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1047
1048 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1049 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1050 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1051 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1052 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1053 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1054 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1055
1056 _ASUNAME
1057
1058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1059 for as_dir in $PATH
1060 do
1061   IFS=$as_save_IFS
1062   test -z "$as_dir" && as_dir=.
1063   echo "PATH: $as_dir"
1064 done
1065
1066 } >&5
1067
1068 cat >&5 <<_ACEOF
1069
1070
1071 ## ----------- ##
1072 ## Core tests. ##
1073 ## ----------- ##
1074
1075 _ACEOF
1076
1077
1078 # Keep a trace of the command line.
1079 # Strip out --no-create and --no-recursion so they do not pile up.
1080 # Strip out --silent because we don't want to record it for future runs.
1081 # Also quote any args containing shell meta-characters.
1082 # Make two passes to allow for proper duplicate-argument suppression.
1083 ac_configure_args=
1084 ac_configure_args0=
1085 ac_configure_args1=
1086 ac_sep=
1087 ac_must_keep_next=false
1088 for ac_pass in 1 2
1089 do
1090   for ac_arg
1091   do
1092     case $ac_arg in
1093     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1094     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095     | -silent | --silent | --silen | --sile | --sil)
1096       continue ;;
1097     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1098       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1099     esac
1100     case $ac_pass in
1101     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1102     2)
1103       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1104       if test $ac_must_keep_next = true; then
1105         ac_must_keep_next=false # Got value, back to normal.
1106       else
1107         case $ac_arg in
1108           *=* | --config-cache | -C | -disable-* | --disable-* \
1109           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1110           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1111           | -with-* | --with-* | -without-* | --without-* | --x)
1112             case "$ac_configure_args0 " in
1113               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1114             esac
1115             ;;
1116           -* ) ac_must_keep_next=true ;;
1117         esac
1118       fi
1119       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1120       # Get rid of the leading space.
1121       ac_sep=" "
1122       ;;
1123     esac
1124   done
1125 done
1126 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1127 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1128
1129 # When interrupted or exit'd, cleanup temporary files, and complete
1130 # config.log.  We remove comments because anyway the quotes in there
1131 # would cause problems or look ugly.
1132 # WARNING: Be sure not to use single quotes in there, as some shells,
1133 # such as our DU 5.0 friend, will then `close' the trap.
1134 trap 'exit_status=$?
1135   # Save into config.log some information that might help in debugging.
1136   {
1137     echo
1138
1139     cat <<\_ASBOX
1140 ## ---------------- ##
1141 ## Cache variables. ##
1142 ## ---------------- ##
1143 _ASBOX
1144     echo
1145     # The following way of writing the cache mishandles newlines in values,
1146 {
1147   (set) 2>&1 |
1148     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1149     *ac_space=\ *)
1150       sed -n \
1151         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1152           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1153       ;;
1154     *)
1155       sed -n \
1156         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1157       ;;
1158     esac;
1159 }
1160     echo
1161
1162     cat <<\_ASBOX
1163 ## ----------------- ##
1164 ## Output variables. ##
1165 ## ----------------- ##
1166 _ASBOX
1167     echo
1168     for ac_var in $ac_subst_vars
1169     do
1170       eval ac_val=$`echo $ac_var`
1171       echo "$ac_var='"'"'$ac_val'"'"'"
1172     done | sort
1173     echo
1174
1175     if test -n "$ac_subst_files"; then
1176       cat <<\_ASBOX
1177 ## ------------- ##
1178 ## Output files. ##
1179 ## ------------- ##
1180 _ASBOX
1181       echo
1182       for ac_var in $ac_subst_files
1183       do
1184         eval ac_val=$`echo $ac_var`
1185         echo "$ac_var='"'"'$ac_val'"'"'"
1186       done | sort
1187       echo
1188     fi
1189
1190     if test -s confdefs.h; then
1191       cat <<\_ASBOX
1192 ## ----------- ##
1193 ## confdefs.h. ##
1194 ## ----------- ##
1195 _ASBOX
1196       echo
1197       sed "/^$/d" confdefs.h | sort
1198       echo
1199     fi
1200     test "$ac_signal" != 0 &&
1201       echo "$as_me: caught signal $ac_signal"
1202     echo "$as_me: exit $exit_status"
1203   } >&5
1204   rm -f core core.* *.core &&
1205   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1206     exit $exit_status
1207      ' 0
1208 for ac_signal in 1 2 13 15; do
1209   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1210 done
1211 ac_signal=0
1212
1213 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1214 rm -rf conftest* confdefs.h
1215 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1216 echo >confdefs.h
1217
1218 # Predefined preprocessor variables.
1219
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_NAME "$PACKAGE_NAME"
1222 _ACEOF
1223
1224
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1227 _ACEOF
1228
1229
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1232 _ACEOF
1233
1234
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_STRING "$PACKAGE_STRING"
1237 _ACEOF
1238
1239
1240 cat >>confdefs.h <<_ACEOF
1241 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1242 _ACEOF
1243
1244
1245 # Let the site file select an alternate cache file if it wants to.
1246 # Prefer explicitly selected file to automatically selected ones.
1247 if test -z "$CONFIG_SITE"; then
1248   if test "x$prefix" != xNONE; then
1249     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1250   else
1251     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1252   fi
1253 fi
1254 for ac_site_file in $CONFIG_SITE; do
1255   if test -r "$ac_site_file"; then
1256     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1257 echo "$as_me: loading site script $ac_site_file" >&6;}
1258     sed 's/^/| /' "$ac_site_file" >&5
1259     . "$ac_site_file"
1260   fi
1261 done
1262
1263 if test -r "$cache_file"; then
1264   # Some versions of bash will fail to source /dev/null (special
1265   # files actually), so we avoid doing that.
1266   if test -f "$cache_file"; then
1267     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1268 echo "$as_me: loading cache $cache_file" >&6;}
1269     case $cache_file in
1270       [\\/]* | ?:[\\/]* ) . $cache_file;;
1271       *)                      . ./$cache_file;;
1272     esac
1273   fi
1274 else
1275   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1276 echo "$as_me: creating cache $cache_file" >&6;}
1277   >$cache_file
1278 fi
1279
1280 # Check that the precious variables saved in the cache have kept the same
1281 # value.
1282 ac_cache_corrupted=false
1283 for ac_var in `(set) 2>&1 |
1284                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1285   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1286   eval ac_new_set=\$ac_env_${ac_var}_set
1287   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1288   eval ac_new_val="\$ac_env_${ac_var}_value"
1289   case $ac_old_set,$ac_new_set in
1290     set,)
1291       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1292 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1293       ac_cache_corrupted=: ;;
1294     ,set)
1295       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1296 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1297       ac_cache_corrupted=: ;;
1298     ,);;
1299     *)
1300       if test "x$ac_old_val" != "x$ac_new_val"; then
1301         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1302 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1303         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1304 echo "$as_me:   former value:  $ac_old_val" >&2;}
1305         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1306 echo "$as_me:   current value: $ac_new_val" >&2;}
1307         ac_cache_corrupted=:
1308       fi;;
1309   esac
1310   # Pass precious variables to config.status.
1311   if test "$ac_new_set" = set; then
1312     case $ac_new_val in
1313     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1314       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1315     *) ac_arg=$ac_var=$ac_new_val ;;
1316     esac
1317     case " $ac_configure_args " in
1318       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1319       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1320     esac
1321   fi
1322 done
1323 if $ac_cache_corrupted; then
1324   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1325 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1326   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1327 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1328    { (exit 1); exit 1; }; }
1329 fi
1330
1331 ac_ext=c
1332 ac_cpp='$CPP $CPPFLAGS'
1333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355 ac_aux_dir=
1356 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1357   if test -f $ac_dir/install-sh; then
1358     ac_aux_dir=$ac_dir
1359     ac_install_sh="$ac_aux_dir/install-sh -c"
1360     break
1361   elif test -f $ac_dir/install.sh; then
1362     ac_aux_dir=$ac_dir
1363     ac_install_sh="$ac_aux_dir/install.sh -c"
1364     break
1365   elif test -f $ac_dir/shtool; then
1366     ac_aux_dir=$ac_dir
1367     ac_install_sh="$ac_aux_dir/shtool install -c"
1368     break
1369   fi
1370 done
1371 if test -z "$ac_aux_dir"; then
1372   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1373 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1374    { (exit 1); exit 1; }; }
1375 fi
1376 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1377 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1378 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1379
1380 # Make sure we can run config.sub.
1381 $ac_config_sub sun4 >/dev/null 2>&1 ||
1382   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1383 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1384    { (exit 1); exit 1; }; }
1385
1386 echo "$as_me:$LINENO: checking build system type" >&5
1387 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1388 if test "${ac_cv_build+set}" = set; then
1389   echo $ECHO_N "(cached) $ECHO_C" >&6
1390 else
1391   ac_cv_build_alias=$build_alias
1392 test -z "$ac_cv_build_alias" &&
1393   ac_cv_build_alias=`$ac_config_guess`
1394 test -z "$ac_cv_build_alias" &&
1395   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1396 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1397    { (exit 1); exit 1; }; }
1398 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1399   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1400 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1401    { (exit 1); exit 1; }; }
1402
1403 fi
1404 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1405 echo "${ECHO_T}$ac_cv_build" >&6
1406 build=$ac_cv_build
1407 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1408 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1409 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1410
1411
1412 echo "$as_me:$LINENO: checking host system type" >&5
1413 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1414 if test "${ac_cv_host+set}" = set; then
1415   echo $ECHO_N "(cached) $ECHO_C" >&6
1416 else
1417   ac_cv_host_alias=$host_alias
1418 test -z "$ac_cv_host_alias" &&
1419   ac_cv_host_alias=$ac_cv_build_alias
1420 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1421   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1422 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1423    { (exit 1); exit 1; }; }
1424
1425 fi
1426 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1427 echo "${ECHO_T}$ac_cv_host" >&6
1428 host=$ac_cv_host
1429 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1430 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1431 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1432
1433
1434 echo "$as_me:$LINENO: checking target system type" >&5
1435 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1436 if test "${ac_cv_target+set}" = set; then
1437   echo $ECHO_N "(cached) $ECHO_C" >&6
1438 else
1439   ac_cv_target_alias=$target_alias
1440 test "x$ac_cv_target_alias" = "x" &&
1441   ac_cv_target_alias=$ac_cv_host_alias
1442 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1443   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1444 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1445    { (exit 1); exit 1; }; }
1446
1447 fi
1448 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1449 echo "${ECHO_T}$ac_cv_target" >&6
1450 target=$ac_cv_target
1451 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1452 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1453 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1454
1455
1456 # The aliases save the names the user supplied, while $host etc.
1457 # will get canonicalized.
1458 test -n "$target_alias" &&
1459   test "$program_prefix$program_suffix$program_transform_name" = \
1460     NONENONEs,x,x, &&
1461   program_prefix=${target_alias}-
1462
1463 cat >>confdefs.h <<_ACEOF
1464 #define STR_SYSTEM "$host"
1465 _ACEOF
1466
1467           ac_config_headers="$ac_config_headers config.h"
1468
1469 test "$program_prefix" != NONE &&
1470   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1471 # Use a double $ so make ignores it.
1472 test "$program_suffix" != NONE &&
1473   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1474 # Double any \ or $.  echo might interpret backslashes.
1475 # By default was `s,x,x', remove it if useless.
1476 cat <<\_ACEOF >conftest.sed
1477 s/[\\$]/&&/g;s/;s,x,x,$//
1478 _ACEOF
1479 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1480 rm conftest.sed
1481
1482 am__api_version="1.7"
1483 # Find a good install program.  We prefer a C program (faster),
1484 # so one script is as good as another.  But avoid the broken or
1485 # incompatible versions:
1486 # SysV /etc/install, /usr/sbin/install
1487 # SunOS /usr/etc/install
1488 # IRIX /sbin/install
1489 # AIX /bin/install
1490 # AmigaOS /C/install, which installs bootblocks on floppy discs
1491 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1492 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1493 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1494 # ./install, which can be erroneously created by make from ./install.sh.
1495 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1496 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1497 if test -z "$INSTALL"; then
1498 if test "${ac_cv_path_install+set}" = set; then
1499   echo $ECHO_N "(cached) $ECHO_C" >&6
1500 else
1501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502 for as_dir in $PATH
1503 do
1504   IFS=$as_save_IFS
1505   test -z "$as_dir" && as_dir=.
1506   # Account for people who put trailing slashes in PATH elements.
1507 case $as_dir/ in
1508   ./ | .// | /cC/* | \
1509   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1510   /usr/ucb/* ) ;;
1511   *)
1512     # OSF1 and SCO ODT 3.0 have their own names for install.
1513     # Don't use installbsd from OSF since it installs stuff as root
1514     # by default.
1515     for ac_prog in ginstall scoinst install; do
1516       for ac_exec_ext in '' $ac_executable_extensions; do
1517         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1518           if test $ac_prog = install &&
1519             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1520             # AIX install.  It has an incompatible calling convention.
1521             :
1522           elif test $ac_prog = install &&
1523             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1524             # program-specific install script used by HP pwplus--don't use.
1525             :
1526           else
1527             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1528             break 3
1529           fi
1530         fi
1531       done
1532     done
1533     ;;
1534 esac
1535 done
1536
1537
1538 fi
1539   if test "${ac_cv_path_install+set}" = set; then
1540     INSTALL=$ac_cv_path_install
1541   else
1542     # As a last resort, use the slow shell script.  We don't cache a
1543     # path for INSTALL within a source directory, because that will
1544     # break other packages using the cache if that directory is
1545     # removed, or if the path is relative.
1546     INSTALL=$ac_install_sh
1547   fi
1548 fi
1549 echo "$as_me:$LINENO: result: $INSTALL" >&5
1550 echo "${ECHO_T}$INSTALL" >&6
1551
1552 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1553 # It thinks the first close brace ends the variable substitution.
1554 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1555
1556 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1557
1558 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1559
1560 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1561 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1562 # Just in case
1563 sleep 1
1564 echo timestamp > conftest.file
1565 # Do `set' in a subshell so we don't clobber the current shell's
1566 # arguments.  Must try -L first in case configure is actually a
1567 # symlink; some systems play weird games with the mod time of symlinks
1568 # (eg FreeBSD returns the mod time of the symlink's containing
1569 # directory).
1570 if (
1571    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1572    if test "$*" = "X"; then
1573       # -L didn't work.
1574       set X `ls -t $srcdir/configure conftest.file`
1575    fi
1576    rm -f conftest.file
1577    if test "$*" != "X $srcdir/configure conftest.file" \
1578       && test "$*" != "X conftest.file $srcdir/configure"; then
1579
1580       # If neither matched, then we have a broken ls.  This can happen
1581       # if, for instance, CONFIG_SHELL is bash and it inherits a
1582       # broken ls alias from the environment.  This has actually
1583       # happened.  Such a system could not be considered "sane".
1584       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1585 alias in your environment" >&5
1586 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1587 alias in your environment" >&2;}
1588    { (exit 1); exit 1; }; }
1589    fi
1590
1591    test "$2" = conftest.file
1592    )
1593 then
1594    # Ok.
1595    :
1596 else
1597    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1598 Check your system clock" >&5
1599 echo "$as_me: error: newly created file is older than distributed files!
1600 Check your system clock" >&2;}
1601    { (exit 1); exit 1; }; }
1602 fi
1603 echo "$as_me:$LINENO: result: yes" >&5
1604 echo "${ECHO_T}yes" >&6
1605
1606 # expand $ac_aux_dir to an absolute path
1607 am_aux_dir=`cd $ac_aux_dir && pwd`
1608
1609 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1610 # Use eval to expand $SHELL
1611 if eval "$MISSING --run true"; then
1612   am_missing_run="$MISSING --run "
1613 else
1614   am_missing_run=
1615   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1616 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1617 fi
1618
1619 for ac_prog in gawk mawk nawk awk
1620 do
1621   # Extract the first word of "$ac_prog", so it can be a program name with args.
1622 set dummy $ac_prog; ac_word=$2
1623 echo "$as_me:$LINENO: checking for $ac_word" >&5
1624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1625 if test "${ac_cv_prog_AWK+set}" = set; then
1626   echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628   if test -n "$AWK"; then
1629   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1630 else
1631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632 for as_dir in $PATH
1633 do
1634   IFS=$as_save_IFS
1635   test -z "$as_dir" && as_dir=.
1636   for ac_exec_ext in '' $ac_executable_extensions; do
1637   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1638     ac_cv_prog_AWK="$ac_prog"
1639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1640     break 2
1641   fi
1642 done
1643 done
1644
1645 fi
1646 fi
1647 AWK=$ac_cv_prog_AWK
1648 if test -n "$AWK"; then
1649   echo "$as_me:$LINENO: result: $AWK" >&5
1650 echo "${ECHO_T}$AWK" >&6
1651 else
1652   echo "$as_me:$LINENO: result: no" >&5
1653 echo "${ECHO_T}no" >&6
1654 fi
1655
1656   test -n "$AWK" && break
1657 done
1658
1659 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1660 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1661 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1662 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1663   echo $ECHO_N "(cached) $ECHO_C" >&6
1664 else
1665   cat >conftest.make <<\_ACEOF
1666 all:
1667         @echo 'ac_maketemp="$(MAKE)"'
1668 _ACEOF
1669 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1670 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1671 if test -n "$ac_maketemp"; then
1672   eval ac_cv_prog_make_${ac_make}_set=yes
1673 else
1674   eval ac_cv_prog_make_${ac_make}_set=no
1675 fi
1676 rm -f conftest.make
1677 fi
1678 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1679   echo "$as_me:$LINENO: result: yes" >&5
1680 echo "${ECHO_T}yes" >&6
1681   SET_MAKE=
1682 else
1683   echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1685   SET_MAKE="MAKE=${MAKE-make}"
1686 fi
1687
1688 rm -rf .tst 2>/dev/null
1689 mkdir .tst 2>/dev/null
1690 if test -d .tst; then
1691   am__leading_dot=.
1692 else
1693   am__leading_dot=_
1694 fi
1695 rmdir .tst 2>/dev/null
1696
1697  # test to see if srcdir already configured
1698 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1699    test -f $srcdir/config.status; then
1700   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1701 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1702    { (exit 1); exit 1; }; }
1703 fi
1704
1705 # test whether we have cygpath
1706 if test -z "$CYGPATH_W"; then
1707   if (cygpath --version) >/dev/null 2>/dev/null; then
1708     CYGPATH_W='cygpath -w'
1709   else
1710     CYGPATH_W=echo
1711   fi
1712 fi
1713
1714
1715 # Define the identity of the package.
1716  PACKAGE=ntp
1717  VERSION=4.2.0
1718
1719
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE "$PACKAGE"
1722 _ACEOF
1723
1724
1725 cat >>confdefs.h <<_ACEOF
1726 #define VERSION "$VERSION"
1727 _ACEOF
1728
1729 # Some tools Automake needs.
1730
1731 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1732
1733
1734 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1735
1736
1737 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1738
1739
1740 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1741
1742
1743 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1744
1745
1746 AMTAR=${AMTAR-"${am_missing_run}tar"}
1747
1748 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1749
1750 # Installed binaries are usually stripped using `strip' when the user
1751 # run `make install-strip'.  However `strip' might not be the right
1752 # tool to use in cross-compilation environments, therefore Automake
1753 # will honor the `STRIP' environment variable to overrule this program.
1754 if test "$cross_compiling" != no; then
1755   if test -n "$ac_tool_prefix"; then
1756   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1757 set dummy ${ac_tool_prefix}strip; ac_word=$2
1758 echo "$as_me:$LINENO: checking for $ac_word" >&5
1759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1760 if test "${ac_cv_prog_STRIP+set}" = set; then
1761   echo $ECHO_N "(cached) $ECHO_C" >&6
1762 else
1763   if test -n "$STRIP"; then
1764   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1765 else
1766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767 for as_dir in $PATH
1768 do
1769   IFS=$as_save_IFS
1770   test -z "$as_dir" && as_dir=.
1771   for ac_exec_ext in '' $ac_executable_extensions; do
1772   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1773     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775     break 2
1776   fi
1777 done
1778 done
1779
1780 fi
1781 fi
1782 STRIP=$ac_cv_prog_STRIP
1783 if test -n "$STRIP"; then
1784   echo "$as_me:$LINENO: result: $STRIP" >&5
1785 echo "${ECHO_T}$STRIP" >&6
1786 else
1787   echo "$as_me:$LINENO: result: no" >&5
1788 echo "${ECHO_T}no" >&6
1789 fi
1790
1791 fi
1792 if test -z "$ac_cv_prog_STRIP"; then
1793   ac_ct_STRIP=$STRIP
1794   # Extract the first word of "strip", so it can be a program name with args.
1795 set dummy strip; ac_word=$2
1796 echo "$as_me:$LINENO: checking for $ac_word" >&5
1797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1798 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1799   echo $ECHO_N "(cached) $ECHO_C" >&6
1800 else
1801   if test -n "$ac_ct_STRIP"; then
1802   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1803 else
1804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1805 for as_dir in $PATH
1806 do
1807   IFS=$as_save_IFS
1808   test -z "$as_dir" && as_dir=.
1809   for ac_exec_ext in '' $ac_executable_extensions; do
1810   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1811     ac_cv_prog_ac_ct_STRIP="strip"
1812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1813     break 2
1814   fi
1815 done
1816 done
1817
1818   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1819 fi
1820 fi
1821 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1822 if test -n "$ac_ct_STRIP"; then
1823   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1824 echo "${ECHO_T}$ac_ct_STRIP" >&6
1825 else
1826   echo "$as_me:$LINENO: result: no" >&5
1827 echo "${ECHO_T}no" >&6
1828 fi
1829
1830   STRIP=$ac_ct_STRIP
1831 else
1832   STRIP="$ac_cv_prog_STRIP"
1833 fi
1834
1835 fi
1836 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1837
1838 # We need awk for the "check" target.  The system "awk" is bad on
1839 # some platforms.
1840
1841
1842
1843
1844
1845 ac_cv_var_atom_ok=no
1846 ac_cv_var_oncore_ok=no
1847 ac_cv_var_ripe_ncc_ok=no
1848 ac_cv_var_jupiter_ok=no
1849
1850 iCFLAGS="$CFLAGS"
1851
1852 DEPDIR="${am__leading_dot}deps"
1853
1854           ac_config_commands="$ac_config_commands depfiles"
1855
1856
1857 am_make=${MAKE-make}
1858 cat > confinc << 'END'
1859 am__doit:
1860         @echo done
1861 .PHONY: am__doit
1862 END
1863 # If we don't find an include directive, just comment out the code.
1864 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1865 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1866 am__include="#"
1867 am__quote=
1868 _am_result=none
1869 # First try GNU make style include.
1870 echo "include confinc" > confmf
1871 # We grep out `Entering directory' and `Leaving directory'
1872 # messages which can occur if `w' ends up in MAKEFLAGS.
1873 # In particular we don't look at `^make:' because GNU make might
1874 # be invoked under some other name (usually "gmake"), in which
1875 # case it prints its new name instead of `make'.
1876 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1877    am__include=include
1878    am__quote=
1879    _am_result=GNU
1880 fi
1881 # Now try BSD make style include.
1882 if test "$am__include" = "#"; then
1883    echo '.include "confinc"' > confmf
1884    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1885       am__include=.include
1886       am__quote="\""
1887       _am_result=BSD
1888    fi
1889 fi
1890
1891
1892 echo "$as_me:$LINENO: result: $_am_result" >&5
1893 echo "${ECHO_T}$_am_result" >&6
1894 rm -f confinc confmf
1895
1896 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1897 if test "${enable_dependency_tracking+set}" = set; then
1898   enableval="$enable_dependency_tracking"
1899
1900 fi;
1901 if test "x$enable_dependency_tracking" != xno; then
1902   am_depcomp="$ac_aux_dir/depcomp"
1903   AMDEPBACKSLASH='\'
1904 fi
1905
1906
1907 if test "x$enable_dependency_tracking" != xno; then
1908   AMDEP_TRUE=
1909   AMDEP_FALSE='#'
1910 else
1911   AMDEP_TRUE='#'
1912   AMDEP_FALSE=
1913 fi
1914
1915
1916
1917 ac_ext=c
1918 ac_cpp='$CPP $CPPFLAGS'
1919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1922 if test -n "$ac_tool_prefix"; then
1923   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1924 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1925 echo "$as_me:$LINENO: checking for $ac_word" >&5
1926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1927 if test "${ac_cv_prog_CC+set}" = set; then
1928   echo $ECHO_N "(cached) $ECHO_C" >&6
1929 else
1930   if test -n "$CC"; then
1931   ac_cv_prog_CC="$CC" # Let the user override the test.
1932 else
1933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 for as_dir in $PATH
1935 do
1936   IFS=$as_save_IFS
1937   test -z "$as_dir" && as_dir=.
1938   for ac_exec_ext in '' $ac_executable_extensions; do
1939   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1940     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942     break 2
1943   fi
1944 done
1945 done
1946
1947 fi
1948 fi
1949 CC=$ac_cv_prog_CC
1950 if test -n "$CC"; then
1951   echo "$as_me:$LINENO: result: $CC" >&5
1952 echo "${ECHO_T}$CC" >&6
1953 else
1954   echo "$as_me:$LINENO: result: no" >&5
1955 echo "${ECHO_T}no" >&6
1956 fi
1957
1958 fi
1959 if test -z "$ac_cv_prog_CC"; then
1960   ac_ct_CC=$CC
1961   # Extract the first word of "gcc", so it can be a program name with args.
1962 set dummy gcc; ac_word=$2
1963 echo "$as_me:$LINENO: checking for $ac_word" >&5
1964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1965 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1966   echo $ECHO_N "(cached) $ECHO_C" >&6
1967 else
1968   if test -n "$ac_ct_CC"; then
1969   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1970 else
1971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972 for as_dir in $PATH
1973 do
1974   IFS=$as_save_IFS
1975   test -z "$as_dir" && as_dir=.
1976   for ac_exec_ext in '' $ac_executable_extensions; do
1977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1978     ac_cv_prog_ac_ct_CC="gcc"
1979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980     break 2
1981   fi
1982 done
1983 done
1984
1985 fi
1986 fi
1987 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1988 if test -n "$ac_ct_CC"; then
1989   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1990 echo "${ECHO_T}$ac_ct_CC" >&6
1991 else
1992   echo "$as_me:$LINENO: result: no" >&5
1993 echo "${ECHO_T}no" >&6
1994 fi
1995
1996   CC=$ac_ct_CC
1997 else
1998   CC="$ac_cv_prog_CC"
1999 fi
2000
2001 if test -z "$CC"; then
2002   if test -n "$ac_tool_prefix"; then
2003   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2004 set dummy ${ac_tool_prefix}cc; ac_word=$2
2005 echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007 if test "${ac_cv_prog_CC+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   if test -n "$CC"; then
2011   ac_cv_prog_CC="$CC" # Let the user override the test.
2012 else
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2015 do
2016   IFS=$as_save_IFS
2017   test -z "$as_dir" && as_dir=.
2018   for ac_exec_ext in '' $ac_executable_extensions; do
2019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020     ac_cv_prog_CC="${ac_tool_prefix}cc"
2021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022     break 2
2023   fi
2024 done
2025 done
2026
2027 fi
2028 fi
2029 CC=$ac_cv_prog_CC
2030 if test -n "$CC"; then
2031   echo "$as_me:$LINENO: result: $CC" >&5
2032 echo "${ECHO_T}$CC" >&6
2033 else
2034   echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2036 fi
2037
2038 fi
2039 if test -z "$ac_cv_prog_CC"; then
2040   ac_ct_CC=$CC
2041   # Extract the first word of "cc", so it can be a program name with args.
2042 set dummy cc; ac_word=$2
2043 echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2046   echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048   if test -n "$ac_ct_CC"; then
2049   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2050 else
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 for as_dir in $PATH
2053 do
2054   IFS=$as_save_IFS
2055   test -z "$as_dir" && as_dir=.
2056   for ac_exec_ext in '' $ac_executable_extensions; do
2057   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2058     ac_cv_prog_ac_ct_CC="cc"
2059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060     break 2
2061   fi
2062 done
2063 done
2064
2065 fi
2066 fi
2067 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2068 if test -n "$ac_ct_CC"; then
2069   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2070 echo "${ECHO_T}$ac_ct_CC" >&6
2071 else
2072   echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6
2074 fi
2075
2076   CC=$ac_ct_CC
2077 else
2078   CC="$ac_cv_prog_CC"
2079 fi
2080
2081 fi
2082 if test -z "$CC"; then
2083   # Extract the first word of "cc", so it can be a program name with args.
2084 set dummy cc; ac_word=$2
2085 echo "$as_me:$LINENO: checking for $ac_word" >&5
2086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2087 if test "${ac_cv_prog_CC+set}" = set; then
2088   echo $ECHO_N "(cached) $ECHO_C" >&6
2089 else
2090   if test -n "$CC"; then
2091   ac_cv_prog_CC="$CC" # Let the user override the test.
2092 else
2093   ac_prog_rejected=no
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 for as_dir in $PATH
2096 do
2097   IFS=$as_save_IFS
2098   test -z "$as_dir" && as_dir=.
2099   for ac_exec_ext in '' $ac_executable_extensions; do
2100   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2101     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2102        ac_prog_rejected=yes
2103        continue
2104      fi
2105     ac_cv_prog_CC="cc"
2106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107     break 2
2108   fi
2109 done
2110 done
2111
2112 if test $ac_prog_rejected = yes; then
2113   # We found a bogon in the path, so make sure we never use it.
2114   set dummy $ac_cv_prog_CC
2115   shift
2116   if test $# != 0; then
2117     # We chose a different compiler from the bogus one.
2118     # However, it has the same basename, so the bogon will be chosen
2119     # first if we set CC to just the basename; use the full file name.
2120     shift
2121     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2122   fi
2123 fi
2124 fi
2125 fi
2126 CC=$ac_cv_prog_CC
2127 if test -n "$CC"; then
2128   echo "$as_me:$LINENO: result: $CC" >&5
2129 echo "${ECHO_T}$CC" >&6
2130 else
2131   echo "$as_me:$LINENO: result: no" >&5
2132 echo "${ECHO_T}no" >&6
2133 fi
2134
2135 fi
2136 if test -z "$CC"; then
2137   if test -n "$ac_tool_prefix"; then
2138   for ac_prog in cl
2139   do
2140     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2141 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2142 echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2144 if test "${ac_cv_prog_CC+set}" = set; then
2145   echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147   if test -n "$CC"; then
2148   ac_cv_prog_CC="$CC" # Let the user override the test.
2149 else
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 for as_dir in $PATH
2152 do
2153   IFS=$as_save_IFS
2154   test -z "$as_dir" && as_dir=.
2155   for ac_exec_ext in '' $ac_executable_extensions; do
2156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2157     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159     break 2
2160   fi
2161 done
2162 done
2163
2164 fi
2165 fi
2166 CC=$ac_cv_prog_CC
2167 if test -n "$CC"; then
2168   echo "$as_me:$LINENO: result: $CC" >&5
2169 echo "${ECHO_T}$CC" >&6
2170 else
2171   echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6
2173 fi
2174
2175     test -n "$CC" && break
2176   done
2177 fi
2178 if test -z "$CC"; then
2179   ac_ct_CC=$CC
2180   for ac_prog in cl
2181 do
2182   # Extract the first word of "$ac_prog", so it can be a program name with args.
2183 set dummy $ac_prog; ac_word=$2
2184 echo "$as_me:$LINENO: checking for $ac_word" >&5
2185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2186 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2187   echo $ECHO_N "(cached) $ECHO_C" >&6
2188 else
2189   if test -n "$ac_ct_CC"; then
2190   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2191 else
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 for as_dir in $PATH
2194 do
2195   IFS=$as_save_IFS
2196   test -z "$as_dir" && as_dir=.
2197   for ac_exec_ext in '' $ac_executable_extensions; do
2198   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2199     ac_cv_prog_ac_ct_CC="$ac_prog"
2200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201     break 2
2202   fi
2203 done
2204 done
2205
2206 fi
2207 fi
2208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2209 if test -n "$ac_ct_CC"; then
2210   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2211 echo "${ECHO_T}$ac_ct_CC" >&6
2212 else
2213   echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6
2215 fi
2216
2217   test -n "$ac_ct_CC" && break
2218 done
2219
2220   CC=$ac_ct_CC
2221 fi
2222
2223 fi
2224
2225
2226 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2227 See \`config.log' for more details." >&5
2228 echo "$as_me: error: no acceptable C compiler found in \$PATH
2229 See \`config.log' for more details." >&2;}
2230    { (exit 1); exit 1; }; }
2231
2232 # Provide some information about the compiler.
2233 echo "$as_me:$LINENO:" \
2234      "checking for C compiler version" >&5
2235 ac_compiler=`set X $ac_compile; echo $2`
2236 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2237   (eval $ac_compiler --version </dev/null >&5) 2>&5
2238   ac_status=$?
2239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240   (exit $ac_status); }
2241 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2242   (eval $ac_compiler -v </dev/null >&5) 2>&5
2243   ac_status=$?
2244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245   (exit $ac_status); }
2246 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2247   (eval $ac_compiler -V </dev/null >&5) 2>&5
2248   ac_status=$?
2249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250   (exit $ac_status); }
2251
2252 cat >conftest.$ac_ext <<_ACEOF
2253 #line $LINENO "configure"
2254 /* confdefs.h.  */
2255 _ACEOF
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h.  */
2259
2260 int
2261 main ()
2262 {
2263
2264   ;
2265   return 0;
2266 }
2267 _ACEOF
2268 ac_clean_files_save=$ac_clean_files
2269 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2270 # Try to create an executable without -o first, disregard a.out.
2271 # It will help us diagnose broken compilers, and finding out an intuition
2272 # of exeext.
2273 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2274 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2275 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2276 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2277   (eval $ac_link_default) 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); }; then
2281   # Find the output, starting from the most likely.  This scheme is
2282 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2283 # resort.
2284
2285 # Be careful to initialize this variable, since it used to be cached.
2286 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2287 ac_cv_exeext=
2288 # b.out is created by i960 compilers.
2289 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2290 do
2291   test -f "$ac_file" || continue
2292   case $ac_file in
2293     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2294         ;;
2295     conftest.$ac_ext )
2296         # This is the source file.
2297         ;;
2298     [ab].out )
2299         # We found the default executable, but exeext='' is most
2300         # certainly right.
2301         break;;
2302     *.* )
2303         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2304         # FIXME: I believe we export ac_cv_exeext for Libtool,
2305         # but it would be cool to find out if it's true.  Does anybody
2306         # maintain Libtool? --akim.
2307         export ac_cv_exeext
2308         break;;
2309     * )
2310         break;;
2311   esac
2312 done
2313 else
2314   echo "$as_me: failed program was:" >&5
2315 sed 's/^/| /' conftest.$ac_ext >&5
2316
2317 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2318 See \`config.log' for more details." >&5
2319 echo "$as_me: error: C compiler cannot create executables
2320 See \`config.log' for more details." >&2;}
2321    { (exit 77); exit 77; }; }
2322 fi
2323
2324 ac_exeext=$ac_cv_exeext
2325 echo "$as_me:$LINENO: result: $ac_file" >&5
2326 echo "${ECHO_T}$ac_file" >&6
2327
2328 # Check the compiler produces executables we can run.  If not, either
2329 # the compiler is broken, or we cross compile.
2330 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2331 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2332 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2333 # If not cross compiling, check that we can run a simple program.
2334 if test "$cross_compiling" != yes; then
2335   if { ac_try='./$ac_file'
2336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337   (eval $ac_try) 2>&5
2338   ac_status=$?
2339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340   (exit $ac_status); }; }; then
2341     cross_compiling=no
2342   else
2343     if test "$cross_compiling" = maybe; then
2344         cross_compiling=yes
2345     else
2346         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2347 If you meant to cross compile, use \`--host'.
2348 See \`config.log' for more details." >&5
2349 echo "$as_me: error: cannot run C compiled programs.
2350 If you meant to cross compile, use \`--host'.
2351 See \`config.log' for more details." >&2;}
2352    { (exit 1); exit 1; }; }
2353     fi
2354   fi
2355 fi
2356 echo "$as_me:$LINENO: result: yes" >&5
2357 echo "${ECHO_T}yes" >&6
2358
2359 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2360 ac_clean_files=$ac_clean_files_save
2361 # Check the compiler produces executables we can run.  If not, either
2362 # the compiler is broken, or we cross compile.
2363 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2364 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2365 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2366 echo "${ECHO_T}$cross_compiling" >&6
2367
2368 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2369 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2371   (eval $ac_link) 2>&5
2372   ac_status=$?
2373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374   (exit $ac_status); }; then
2375   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2376 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2377 # work properly (i.e., refer to `conftest.exe'), while it won't with
2378 # `rm'.
2379 for ac_file in conftest.exe conftest conftest.*; do
2380   test -f "$ac_file" || continue
2381   case $ac_file in
2382     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2383     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2384           export ac_cv_exeext
2385           break;;
2386     * ) break;;
2387   esac
2388 done
2389 else
2390   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2391 See \`config.log' for more details." >&5
2392 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2393 See \`config.log' for more details." >&2;}
2394    { (exit 1); exit 1; }; }
2395 fi
2396
2397 rm -f conftest$ac_cv_exeext
2398 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2399 echo "${ECHO_T}$ac_cv_exeext" >&6
2400
2401 rm -f conftest.$ac_ext
2402 EXEEXT=$ac_cv_exeext
2403 ac_exeext=$EXEEXT
2404 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2405 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2406 if test "${ac_cv_objext+set}" = set; then
2407   echo $ECHO_N "(cached) $ECHO_C" >&6
2408 else
2409   cat >conftest.$ac_ext <<_ACEOF
2410 #line $LINENO "configure"
2411 /* confdefs.h.  */
2412 _ACEOF
2413 cat confdefs.h >>conftest.$ac_ext
2414 cat >>conftest.$ac_ext <<_ACEOF
2415 /* end confdefs.h.  */
2416
2417 int
2418 main ()
2419 {
2420
2421   ;
2422   return 0;
2423 }
2424 _ACEOF
2425 rm -f conftest.o conftest.obj
2426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2427   (eval $ac_compile) 2>&5
2428   ac_status=$?
2429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); }; then
2431   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2432   case $ac_file in
2433     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2434     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2435        break;;
2436   esac
2437 done
2438 else
2439   echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2441
2442 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2443 See \`config.log' for more details." >&5
2444 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2445 See \`config.log' for more details." >&2;}
2446    { (exit 1); exit 1; }; }
2447 fi
2448
2449 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2450 fi
2451 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2452 echo "${ECHO_T}$ac_cv_objext" >&6
2453 OBJEXT=$ac_cv_objext
2454 ac_objext=$OBJEXT
2455 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2456 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2457 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2458   echo $ECHO_N "(cached) $ECHO_C" >&6
2459 else
2460   cat >conftest.$ac_ext <<_ACEOF
2461 #line $LINENO "configure"
2462 /* confdefs.h.  */
2463 _ACEOF
2464 cat confdefs.h >>conftest.$ac_ext
2465 cat >>conftest.$ac_ext <<_ACEOF
2466 /* end confdefs.h.  */
2467
2468 int
2469 main ()
2470 {
2471 #ifndef __GNUC__
2472        choke me
2473 #endif
2474
2475   ;
2476   return 0;
2477 }
2478 _ACEOF
2479 rm -f conftest.$ac_objext
2480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2481   (eval $ac_compile) 2>&5
2482   ac_status=$?
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); } &&
2485          { ac_try='test -s conftest.$ac_objext'
2486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487   (eval $ac_try) 2>&5
2488   ac_status=$?
2489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490   (exit $ac_status); }; }; then
2491   ac_compiler_gnu=yes
2492 else
2493   echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.$ac_ext >&5
2495
2496 ac_compiler_gnu=no
2497 fi
2498 rm -f conftest.$ac_objext conftest.$ac_ext
2499 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2500
2501 fi
2502 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2503 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2504 GCC=`test $ac_compiler_gnu = yes && echo yes`
2505 ac_test_CFLAGS=${CFLAGS+set}
2506 ac_save_CFLAGS=$CFLAGS
2507 CFLAGS="-g"
2508 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2509 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2510 if test "${ac_cv_prog_cc_g+set}" = set; then
2511   echo $ECHO_N "(cached) $ECHO_C" >&6
2512 else
2513   cat >conftest.$ac_ext <<_ACEOF
2514 #line $LINENO "configure"
2515 /* confdefs.h.  */
2516 _ACEOF
2517 cat confdefs.h >>conftest.$ac_ext
2518 cat >>conftest.$ac_ext <<_ACEOF
2519 /* end confdefs.h.  */
2520
2521 int
2522 main ()
2523 {
2524
2525   ;
2526   return 0;
2527 }
2528 _ACEOF
2529 rm -f conftest.$ac_objext
2530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2531   (eval $ac_compile) 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); } &&
2535          { ac_try='test -s conftest.$ac_objext'
2536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537   (eval $ac_try) 2>&5
2538   ac_status=$?
2539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540   (exit $ac_status); }; }; then
2541   ac_cv_prog_cc_g=yes
2542 else
2543   echo "$as_me: failed program was:" >&5
2544 sed 's/^/| /' conftest.$ac_ext >&5
2545
2546 ac_cv_prog_cc_g=no
2547 fi
2548 rm -f conftest.$ac_objext conftest.$ac_ext
2549 fi
2550 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2551 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2552 if test "$ac_test_CFLAGS" = set; then
2553   CFLAGS=$ac_save_CFLAGS
2554 elif test $ac_cv_prog_cc_g = yes; then
2555   if test "$GCC" = yes; then
2556     CFLAGS="-g -O2"
2557   else
2558     CFLAGS="-g"
2559   fi
2560 else
2561   if test "$GCC" = yes; then
2562     CFLAGS="-O2"
2563   else
2564     CFLAGS=
2565   fi
2566 fi
2567 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2568 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2569 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2570   echo $ECHO_N "(cached) $ECHO_C" >&6
2571 else
2572   ac_cv_prog_cc_stdc=no
2573 ac_save_CC=$CC
2574 cat >conftest.$ac_ext <<_ACEOF
2575 #line $LINENO "configure"
2576 /* confdefs.h.  */
2577 _ACEOF
2578 cat confdefs.h >>conftest.$ac_ext
2579 cat >>conftest.$ac_ext <<_ACEOF
2580 /* end confdefs.h.  */
2581 #include <stdarg.h>
2582 #include <stdio.h>
2583 #include <sys/types.h>
2584 #include <sys/stat.h>
2585 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2586 struct buf { int x; };
2587 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2588 static char *e (p, i)
2589      char **p;
2590      int i;
2591 {
2592   return p[i];
2593 }
2594 static char *f (char * (*g) (char **, int), char **p, ...)
2595 {
2596   char *s;
2597   va_list v;
2598   va_start (v,p);
2599   s = g (p, va_arg (v,int));
2600   va_end (v);
2601   return s;
2602 }
2603 int test (int i, double x);
2604 struct s1 {int (*f) (int a);};
2605 struct s2 {int (*f) (double a);};
2606 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2607 int argc;
2608 char **argv;
2609 int
2610 main ()
2611 {
2612 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2613   ;
2614   return 0;
2615 }
2616 _ACEOF
2617 # Don't try gcc -ansi; that turns off useful extensions and
2618 # breaks some systems' header files.
2619 # AIX                   -qlanglvl=ansi
2620 # Ultrix and OSF/1      -std1
2621 # HP-UX 10.20 and later -Ae
2622 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2623 # SVR4                  -Xc -D__EXTENSIONS__
2624 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2625 do
2626   CC="$ac_save_CC $ac_arg"
2627   rm -f conftest.$ac_objext
2628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2629   (eval $ac_compile) 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); } &&
2633          { ac_try='test -s conftest.$ac_objext'
2634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635   (eval $ac_try) 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); }; }; then
2639   ac_cv_prog_cc_stdc=$ac_arg
2640 break
2641 else
2642   echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2644
2645 fi
2646 rm -f conftest.$ac_objext
2647 done
2648 rm -f conftest.$ac_ext conftest.$ac_objext
2649 CC=$ac_save_CC
2650
2651 fi
2652
2653 case "x$ac_cv_prog_cc_stdc" in
2654   x|xno)
2655     echo "$as_me:$LINENO: result: none needed" >&5
2656 echo "${ECHO_T}none needed" >&6 ;;
2657   *)
2658     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2659 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2660     CC="$CC $ac_cv_prog_cc_stdc" ;;
2661 esac
2662
2663 # Some people use a C++ compiler to compile C.  Since we use `exit',
2664 # in C++ we need to declare it.  In case someone uses the same compiler
2665 # for both compiling C and C++ we need to have the C++ compiler decide
2666 # the declaration of exit, since it's the most demanding environment.
2667 cat >conftest.$ac_ext <<_ACEOF
2668 #ifndef __cplusplus
2669   choke me
2670 #endif
2671 _ACEOF
2672 rm -f conftest.$ac_objext
2673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674   (eval $ac_compile) 2>&5
2675   ac_status=$?
2676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677   (exit $ac_status); } &&
2678          { ac_try='test -s conftest.$ac_objext'
2679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680   (eval $ac_try) 2>&5
2681   ac_status=$?
2682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683   (exit $ac_status); }; }; then
2684   for ac_declaration in \
2685    ''\
2686    '#include <stdlib.h>' \
2687    'extern "C" void std::exit (int) throw (); using std::exit;' \
2688    'extern "C" void std::exit (int); using std::exit;' \
2689    'extern "C" void exit (int) throw ();' \
2690    'extern "C" void exit (int);' \
2691    'void exit (int);'
2692 do
2693   cat >conftest.$ac_ext <<_ACEOF
2694 #line $LINENO "configure"
2695 /* confdefs.h.  */
2696 _ACEOF
2697 cat confdefs.h >>conftest.$ac_ext
2698 cat >>conftest.$ac_ext <<_ACEOF
2699 /* end confdefs.h.  */
2700 #include <stdlib.h>
2701 $ac_declaration
2702 int
2703 main ()
2704 {
2705 exit (42);
2706   ;
2707   return 0;
2708 }
2709 _ACEOF
2710 rm -f conftest.$ac_objext
2711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2712   (eval $ac_compile) 2>&5
2713   ac_status=$?
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); } &&
2716          { ac_try='test -s conftest.$ac_objext'
2717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718   (eval $ac_try) 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }; }; then
2722   :
2723 else
2724   echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2726
2727 continue
2728 fi
2729 rm -f conftest.$ac_objext conftest.$ac_ext
2730   cat >conftest.$ac_ext <<_ACEOF
2731 #line $LINENO "configure"
2732 /* confdefs.h.  */
2733 _ACEOF
2734 cat confdefs.h >>conftest.$ac_ext
2735 cat >>conftest.$ac_ext <<_ACEOF
2736 /* end confdefs.h.  */
2737 $ac_declaration
2738 int
2739 main ()
2740 {
2741 exit (42);
2742   ;
2743   return 0;
2744 }
2745 _ACEOF
2746 rm -f conftest.$ac_objext
2747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2748   (eval $ac_compile) 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); } &&
2752          { ac_try='test -s conftest.$ac_objext'
2753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754   (eval $ac_try) 2>&5
2755   ac_status=$?
2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); }; }; then
2758   break
2759 else
2760   echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2762
2763 fi
2764 rm -f conftest.$ac_objext conftest.$ac_ext
2765 done
2766 rm -f conftest*
2767 if test -n "$ac_declaration"; then
2768   echo '#ifdef __cplusplus' >>confdefs.h
2769   echo $ac_declaration      >>confdefs.h
2770   echo '#endif'             >>confdefs.h
2771 fi
2772
2773 else
2774   echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2776
2777 fi
2778 rm -f conftest.$ac_objext conftest.$ac_ext
2779 ac_ext=c
2780 ac_cpp='$CPP $CPPFLAGS'
2781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2784
2785 depcc="$CC"   am_compiler_list=
2786
2787 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2788 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2789 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2790   echo $ECHO_N "(cached) $ECHO_C" >&6
2791 else
2792   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2793   # We make a subdir and do the tests there.  Otherwise we can end up
2794   # making bogus files that we don't know about and never remove.  For
2795   # instance it was reported that on HP-UX the gcc test will end up
2796   # making a dummy file named `D' -- because `-MD' means `put the output
2797   # in D'.
2798   mkdir conftest.dir
2799   # Copy depcomp to subdir because otherwise we won't find it if we're
2800   # using a relative directory.
2801   cp "$am_depcomp" conftest.dir
2802   cd conftest.dir
2803   # We will build objects and dependencies in a subdirectory because
2804   # it helps to detect inapplicable dependency modes.  For instance
2805   # both Tru64's cc and ICC support -MD to output dependencies as a
2806   # side effect of compilation, but ICC will put the dependencies in
2807   # the current directory while Tru64 will put them in the object
2808   # directory.
2809   mkdir sub
2810
2811   am_cv_CC_dependencies_compiler_type=none
2812   if test "$am_compiler_list" = ""; then
2813      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2814   fi
2815   for depmode in $am_compiler_list; do
2816     # Setup a source with many dependencies, because some compilers
2817     # like to wrap large dependency lists on column 80 (with \), and
2818     # we should not choose a depcomp mode which is confused by this.
2819     #
2820     # We need to recreate these files for each test, as the compiler may
2821     # overwrite some of them when testing with obscure command lines.
2822     # This happens at least with the AIX C compiler.
2823     : > sub/conftest.c
2824     for i in 1 2 3 4 5 6; do
2825       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2826       : > sub/conftst$i.h
2827     done
2828     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2829
2830     case $depmode in
2831     nosideeffect)
2832       # after this tag, mechanisms are not by side-effect, so they'll
2833       # only be used when explicitly requested
2834       if test "x$enable_dependency_tracking" = xyes; then
2835         continue
2836       else
2837         break
2838       fi
2839       ;;
2840     none) break ;;
2841     esac
2842     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2843     # mode.  It turns out that the SunPro C++ compiler does not properly
2844     # handle `-M -o', and we need to detect this.
2845     if depmode=$depmode \
2846        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2847        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2848        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2849          >/dev/null 2>conftest.err &&
2850        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2851        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2852        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2853       # icc doesn't choke on unknown options, it will just issue warnings
2854       # (even with -Werror).  So we grep stderr for any message
2855       # that says an option was ignored.
2856       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2857         am_cv_CC_dependencies_compiler_type=$depmode
2858         break
2859       fi
2860     fi
2861   done
2862
2863   cd ..
2864   rm -rf conftest.dir
2865 else
2866   am_cv_CC_dependencies_compiler_type=none
2867 fi
2868
2869 fi
2870 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2871 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2872 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2873
2874
2875
2876 if
2877   test "x$enable_dependency_tracking" != xno \
2878   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2879   am__fastdepCC_TRUE=
2880   am__fastdepCC_FALSE='#'
2881 else
2882   am__fastdepCC_TRUE='#'
2883   am__fastdepCC_FALSE=
2884 fi
2885
2886
2887
2888 ac_ext=c
2889 ac_cpp='$CPP $CPPFLAGS'
2890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2893 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2894 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2895 # On Suns, sometimes $CPP names a directory.
2896 if test -n "$CPP" && test -d "$CPP"; then
2897   CPP=
2898 fi
2899 if test -z "$CPP"; then
2900   if test "${ac_cv_prog_CPP+set}" = set; then
2901   echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903       # Double quotes because CPP needs to be expanded
2904     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2905     do
2906       ac_preproc_ok=false
2907 for ac_c_preproc_warn_flag in '' yes
2908 do
2909   # Use a header file that comes with gcc, so configuring glibc
2910   # with a fresh cross-compiler works.
2911   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2912   # <limits.h> exists even on freestanding compilers.
2913   # On the NeXT, cc -E runs the code through the compiler's parser,
2914   # not just through cpp. "Syntax error" is here to catch this case.
2915   cat >conftest.$ac_ext <<_ACEOF
2916 #line $LINENO "configure"
2917 /* confdefs.h.  */
2918 _ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h.  */
2922 #ifdef __STDC__
2923 # include <limits.h>
2924 #else
2925 # include <assert.h>
2926 #endif
2927                      Syntax error
2928 _ACEOF
2929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2930   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2931   ac_status=$?
2932   grep -v '^ *+' conftest.er1 >conftest.err
2933   rm -f conftest.er1
2934   cat conftest.err >&5
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); } >/dev/null; then
2937   if test -s conftest.err; then
2938     ac_cpp_err=$ac_c_preproc_warn_flag
2939   else
2940     ac_cpp_err=
2941   fi
2942 else
2943   ac_cpp_err=yes
2944 fi
2945 if test -z "$ac_cpp_err"; then
2946   :
2947 else
2948   echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2950
2951   # Broken: fails on valid input.
2952 continue
2953 fi
2954 rm -f conftest.err conftest.$ac_ext
2955
2956   # OK, works on sane cases.  Now check whether non-existent headers
2957   # can be detected and how.
2958   cat >conftest.$ac_ext <<_ACEOF
2959 #line $LINENO "configure"
2960 /* confdefs.h.  */
2961 _ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h.  */
2965 #include <ac_nonexistent.h>
2966 _ACEOF
2967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2968   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2969   ac_status=$?
2970   grep -v '^ *+' conftest.er1 >conftest.err
2971   rm -f conftest.er1
2972   cat conftest.err >&5
2973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974   (exit $ac_status); } >/dev/null; then
2975   if test -s conftest.err; then
2976     ac_cpp_err=$ac_c_preproc_warn_flag
2977   else
2978     ac_cpp_err=
2979   fi
2980 else
2981   ac_cpp_err=yes
2982 fi
2983 if test -z "$ac_cpp_err"; then
2984   # Broken: success on invalid input.
2985 continue
2986 else
2987   echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2989
2990   # Passes both tests.
2991 ac_preproc_ok=:
2992 break
2993 fi
2994 rm -f conftest.err conftest.$ac_ext
2995
2996 done
2997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2998 rm -f conftest.err conftest.$ac_ext
2999 if $ac_preproc_ok; then
3000   break
3001 fi
3002
3003     done
3004     ac_cv_prog_CPP=$CPP
3005
3006 fi
3007   CPP=$ac_cv_prog_CPP
3008 else
3009   ac_cv_prog_CPP=$CPP
3010 fi
3011 echo "$as_me:$LINENO: result: $CPP" >&5
3012 echo "${ECHO_T}$CPP" >&6
3013 ac_preproc_ok=false
3014 for ac_c_preproc_warn_flag in '' yes
3015 do
3016   # Use a header file that comes with gcc, so configuring glibc
3017   # with a fresh cross-compiler works.
3018   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3019   # <limits.h> exists even on freestanding compilers.
3020   # On the NeXT, cc -E runs the code through the compiler's parser,
3021   # not just through cpp. "Syntax error" is here to catch this case.
3022   cat >conftest.$ac_ext <<_ACEOF
3023 #line $LINENO "configure"
3024 /* confdefs.h.  */
3025 _ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h.  */
3029 #ifdef __STDC__
3030 # include <limits.h>
3031 #else
3032 # include <assert.h>
3033 #endif
3034                      Syntax error
3035 _ACEOF
3036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3037   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3038   ac_status=$?
3039   grep -v '^ *+' conftest.er1 >conftest.err
3040   rm -f conftest.er1
3041   cat conftest.err >&5
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); } >/dev/null; then
3044   if test -s conftest.err; then
3045     ac_cpp_err=$ac_c_preproc_warn_flag
3046   else
3047     ac_cpp_err=
3048   fi
3049 else
3050   ac_cpp_err=yes
3051 fi
3052 if test -z "$ac_cpp_err"; then
3053   :
3054 else
3055   echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3057
3058   # Broken: fails on valid input.
3059 continue
3060 fi
3061 rm -f conftest.err conftest.$ac_ext
3062
3063   # OK, works on sane cases.  Now check whether non-existent headers
3064   # can be detected and how.
3065   cat >conftest.$ac_ext <<_ACEOF
3066 #line $LINENO "configure"
3067 /* confdefs.h.  */
3068 _ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h.  */
3072 #include <ac_nonexistent.h>
3073 _ACEOF
3074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3075   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3076   ac_status=$?
3077   grep -v '^ *+' conftest.er1 >conftest.err
3078   rm -f conftest.er1
3079   cat conftest.err >&5
3080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081   (exit $ac_status); } >/dev/null; then
3082   if test -s conftest.err; then
3083     ac_cpp_err=$ac_c_preproc_warn_flag
3084   else
3085     ac_cpp_err=
3086   fi
3087 else
3088   ac_cpp_err=yes
3089 fi
3090 if test -z "$ac_cpp_err"; then
3091   # Broken: success on invalid input.
3092 continue
3093 else
3094   echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3096
3097   # Passes both tests.
3098 ac_preproc_ok=:
3099 break
3100 fi
3101 rm -f conftest.err conftest.$ac_ext
3102
3103 done
3104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3105 rm -f conftest.err conftest.$ac_ext
3106 if $ac_preproc_ok; then
3107   :
3108 else
3109   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3110 See \`config.log' for more details." >&5
3111 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3112 See \`config.log' for more details." >&2;}
3113    { (exit 1); exit 1; }; }
3114 fi
3115
3116 ac_ext=c
3117 ac_cpp='$CPP $CPPFLAGS'
3118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3121
3122
3123 echo "$as_me:$LINENO: checking for egrep" >&5
3124 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3125 if test "${ac_cv_prog_egrep+set}" = set; then
3126   echo $ECHO_N "(cached) $ECHO_C" >&6
3127 else
3128   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3129     then ac_cv_prog_egrep='grep -E'
3130     else ac_cv_prog_egrep='egrep'
3131     fi
3132 fi
3133 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3134 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3135  EGREP=$ac_cv_prog_egrep
3136
3137
3138
3139 echo "$as_me:$LINENO: checking for AIX" >&5
3140 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3141 cat >conftest.$ac_ext <<_ACEOF
3142 #line $LINENO "configure"
3143 /* confdefs.h.  */
3144 _ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h.  */
3148 #ifdef _AIX
3149   yes
3150 #endif
3151
3152 _ACEOF
3153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3154   $EGREP "yes" >/dev/null 2>&1; then
3155   echo "$as_me:$LINENO: result: yes" >&5
3156 echo "${ECHO_T}yes" >&6
3157 cat >>confdefs.h <<\_ACEOF
3158 #define _ALL_SOURCE 1
3159 _ACEOF
3160
3161 else
3162   echo "$as_me:$LINENO: result: no" >&5
3163 echo "${ECHO_T}no" >&6
3164 fi
3165 rm -f conftest*
3166
3167
3168 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3169 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3170 if test "${ac_cv_header_stdc+set}" = set; then
3171   echo $ECHO_N "(cached) $ECHO_C" >&6
3172 else
3173   cat >conftest.$ac_ext <<_ACEOF
3174 #line $LINENO "configure"
3175 /* confdefs.h.  */
3176 _ACEOF
3177 cat confdefs.h >>conftest.$ac_ext
3178 cat >>conftest.$ac_ext <<_ACEOF
3179 /* end confdefs.h.  */
3180 #include <stdlib.h>
3181 #include <stdarg.h>
3182 #include <string.h>
3183 #include <float.h>
3184
3185 int
3186 main ()
3187 {
3188
3189   ;
3190   return 0;
3191 }
3192 _ACEOF
3193 rm -f conftest.$ac_objext
3194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3195   (eval $ac_compile) 2>&5
3196   ac_status=$?
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); } &&
3199          { ac_try='test -s conftest.$ac_objext'
3200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201   (eval $ac_try) 2>&5
3202   ac_status=$?
3203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204   (exit $ac_status); }; }; then
3205   ac_cv_header_stdc=yes
3206 else
3207   echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3209
3210 ac_cv_header_stdc=no
3211 fi
3212 rm -f conftest.$ac_objext conftest.$ac_ext
3213
3214 if test $ac_cv_header_stdc = yes; then
3215   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3216   cat >conftest.$ac_ext <<_ACEOF
3217 #line $LINENO "configure"
3218 /* confdefs.h.  */
3219 _ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h.  */
3223 #include <string.h>
3224
3225 _ACEOF
3226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3227   $EGREP "memchr" >/dev/null 2>&1; then
3228   :
3229 else
3230   ac_cv_header_stdc=no
3231 fi
3232 rm -f conftest*
3233
3234 fi
3235
3236 if test $ac_cv_header_stdc = yes; then
3237   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3238   cat >conftest.$ac_ext <<_ACEOF
3239 #line $LINENO "configure"
3240 /* confdefs.h.  */
3241 _ACEOF
3242 cat confdefs.h >>conftest.$ac_ext
3243 cat >>conftest.$ac_ext <<_ACEOF
3244 /* end confdefs.h.  */
3245 #include <stdlib.h>
3246
3247 _ACEOF
3248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3249   $EGREP "free" >/dev/null 2>&1; then
3250   :
3251 else
3252   ac_cv_header_stdc=no
3253 fi
3254 rm -f conftest*
3255
3256 fi
3257
3258 if test $ac_cv_header_stdc = yes; then
3259   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3260   if test "$cross_compiling" = yes; then
3261   :
3262 else
3263   cat >conftest.$ac_ext <<_ACEOF
3264 #line $LINENO "configure"
3265 /* confdefs.h.  */
3266 _ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h.  */
3270 #include <ctype.h>
3271 #if ((' ' & 0x0FF) == 0x020)
3272 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3273 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3274 #else
3275 # define ISLOWER(c) \
3276                    (('a' <= (c) && (c) <= 'i') \
3277                      || ('j' <= (c) && (c) <= 'r') \
3278                      || ('s' <= (c) && (c) <= 'z'))
3279 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3280 #endif
3281
3282 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3283 int
3284 main ()
3285 {
3286   int i;
3287   for (i = 0; i < 256; i++)
3288     if (XOR (islower (i), ISLOWER (i))
3289         || toupper (i) != TOUPPER (i))
3290       exit(2);
3291   exit (0);
3292 }
3293 _ACEOF
3294 rm -f conftest$ac_exeext
3295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3296   (eval $ac_link) 2>&5
3297   ac_status=$?
3298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
3305   :
3306 else
3307   echo "$as_me: program exited with status $ac_status" >&5
3308 echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3310
3311 ( exit $ac_status )
3312 ac_cv_header_stdc=no
3313 fi
3314 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3315 fi
3316 fi
3317 fi
3318 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3319 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3320 if test $ac_cv_header_stdc = yes; then
3321
3322 cat >>confdefs.h <<\_ACEOF
3323 #define STDC_HEADERS 1
3324 _ACEOF
3325
3326 fi
3327
3328 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3339                   inttypes.h stdint.h unistd.h
3340 do
3341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3342 echo "$as_me:$LINENO: checking for $ac_header" >&5
3343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3345   echo $ECHO_N "(cached) $ECHO_C" >&6
3346 else
3347   cat >conftest.$ac_ext <<_ACEOF
3348 #line $LINENO "configure"
3349 /* confdefs.h.  */
3350 _ACEOF
3351 cat confdefs.h >>conftest.$ac_ext
3352 cat >>conftest.$ac_ext <<_ACEOF
3353 /* end confdefs.h.  */
3354 $ac_includes_default
3355
3356 #include <$ac_header>
3357 _ACEOF
3358 rm -f conftest.$ac_objext
3359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3360   (eval $ac_compile) 2>&5
3361   ac_status=$?
3362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363   (exit $ac_status); } &&
3364          { ac_try='test -s conftest.$ac_objext'
3365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366   (eval $ac_try) 2>&5
3367   ac_status=$?
3368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369   (exit $ac_status); }; }; then
3370   eval "$as_ac_Header=yes"
3371 else
3372   echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3374
3375 eval "$as_ac_Header=no"
3376 fi
3377 rm -f conftest.$ac_objext conftest.$ac_ext
3378 fi
3379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3382   cat >>confdefs.h <<_ACEOF
3383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3384 _ACEOF
3385
3386 fi
3387
3388 done
3389
3390
3391 if test "${ac_cv_header_minix_config_h+set}" = set; then
3392   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3393 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3394 if test "${ac_cv_header_minix_config_h+set}" = set; then
3395   echo $ECHO_N "(cached) $ECHO_C" >&6
3396 fi
3397 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3398 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3399 else
3400   # Is the header compilable?
3401 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3402 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3403 cat >conftest.$ac_ext <<_ACEOF
3404 #line $LINENO "configure"
3405 /* confdefs.h.  */
3406 _ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h.  */
3410 $ac_includes_default
3411 #include <minix/config.h>
3412 _ACEOF
3413 rm -f conftest.$ac_objext
3414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3415   (eval $ac_compile) 2>&5
3416   ac_status=$?
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); } &&
3419          { ac_try='test -s conftest.$ac_objext'
3420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421   (eval $ac_try) 2>&5
3422   ac_status=$?
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); }; }; then
3425   ac_header_compiler=yes
3426 else
3427   echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3429
3430 ac_header_compiler=no
3431 fi
3432 rm -f conftest.$ac_objext conftest.$ac_ext
3433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3434 echo "${ECHO_T}$ac_header_compiler" >&6
3435
3436 # Is the header present?
3437 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3438 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3439 cat >conftest.$ac_ext <<_ACEOF
3440 #line $LINENO "configure"
3441 /* confdefs.h.  */
3442 _ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h.  */
3446 #include <minix/config.h>
3447 _ACEOF
3448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3449   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3450   ac_status=$?
3451   grep -v '^ *+' conftest.er1 >conftest.err
3452   rm -f conftest.er1
3453   cat conftest.err >&5
3454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455   (exit $ac_status); } >/dev/null; then
3456   if test -s conftest.err; then
3457     ac_cpp_err=$ac_c_preproc_warn_flag
3458   else
3459     ac_cpp_err=
3460   fi
3461 else
3462   ac_cpp_err=yes
3463 fi
3464 if test -z "$ac_cpp_err"; then
3465   ac_header_preproc=yes
3466 else
3467   echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3469
3470   ac_header_preproc=no
3471 fi
3472 rm -f conftest.err conftest.$ac_ext
3473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3474 echo "${ECHO_T}$ac_header_preproc" >&6
3475
3476 # So?  What about this header?
3477 case $ac_header_compiler:$ac_header_preproc in
3478   yes:no )
3479     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3480 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3481     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3482 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3483     (
3484       cat <<\_ASBOX
3485 ## ------------------------------------ ##
3486 ## Report this to bug-autoconf@gnu.org. ##
3487 ## ------------------------------------ ##
3488 _ASBOX
3489     ) |
3490       sed "s/^/$as_me: WARNING:     /" >&2
3491     ;;
3492   no:yes )
3493     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3494 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3495     { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3496 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3497     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3498 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3499     (
3500       cat <<\_ASBOX
3501 ## ------------------------------------ ##
3502 ## Report this to bug-autoconf@gnu.org. ##
3503 ## ------------------------------------ ##
3504 _ASBOX
3505     ) |
3506       sed "s/^/$as_me: WARNING:     /" >&2
3507     ;;
3508 esac
3509 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3510 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3511 if test "${ac_cv_header_minix_config_h+set}" = set; then
3512   echo $ECHO_N "(cached) $ECHO_C" >&6
3513 else
3514   ac_cv_header_minix_config_h=$ac_header_preproc
3515 fi
3516 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3517 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3518
3519 fi
3520 if test $ac_cv_header_minix_config_h = yes; then
3521   MINIX=yes
3522 else
3523   MINIX=
3524 fi
3525
3526
3527 if test "$MINIX" = yes; then
3528
3529 cat >>confdefs.h <<\_ACEOF
3530 #define _POSIX_SOURCE 1
3531 _ACEOF
3532
3533
3534 cat >>confdefs.h <<\_ACEOF
3535 #define _POSIX_1_SOURCE 2
3536 _ACEOF
3537
3538
3539 cat >>confdefs.h <<\_ACEOF
3540 #define _MINIX 1
3541 _ACEOF
3542
3543 fi
3544
3545
3546 ac_ext=c
3547 ac_cpp='$CPP $CPPFLAGS'
3548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551 if test -n "$ac_tool_prefix"; then
3552   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3553 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3554 echo "$as_me:$LINENO: checking for $ac_word" >&5
3555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3556 if test "${ac_cv_prog_CC+set}" = set; then
3557   echo $ECHO_N "(cached) $ECHO_C" >&6
3558 else
3559   if test -n "$CC"; then
3560   ac_cv_prog_CC="$CC" # Let the user override the test.
3561 else
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 for as_dir in $PATH
3564 do
3565   IFS=$as_save_IFS
3566   test -z "$as_dir" && as_dir=.
3567   for ac_exec_ext in '' $ac_executable_extensions; do
3568   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3569     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3571     break 2
3572   fi
3573 done
3574 done
3575
3576 fi
3577 fi
3578 CC=$ac_cv_prog_CC
3579 if test -n "$CC"; then
3580   echo "$as_me:$LINENO: result: $CC" >&5
3581 echo "${ECHO_T}$CC" >&6
3582 else
3583   echo "$as_me:$LINENO: result: no" >&5
3584 echo "${ECHO_T}no" >&6
3585 fi
3586
3587 fi
3588 if test -z "$ac_cv_prog_CC"; then
3589   ac_ct_CC=$CC
3590   # Extract the first word of "gcc", so it can be a program name with args.
3591 set dummy gcc; ac_word=$2
3592 echo "$as_me:$LINENO: checking for $ac_word" >&5
3593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3594 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3595   echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597   if test -n "$ac_ct_CC"; then
3598   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3599 else
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH
3602 do
3603   IFS=$as_save_IFS
3604   test -z "$as_dir" && as_dir=.
3605   for ac_exec_ext in '' $ac_executable_extensions; do
3606   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3607     ac_cv_prog_ac_ct_CC="gcc"
3608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3609     break 2
3610   fi
3611 done
3612 done
3613
3614 fi
3615 fi
3616 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3617 if test -n "$ac_ct_CC"; then
3618   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3619 echo "${ECHO_T}$ac_ct_CC" >&6
3620 else
3621   echo "$as_me:$LINENO: result: no" >&5
3622 echo "${ECHO_T}no" >&6
3623 fi
3624
3625   CC=$ac_ct_CC
3626 else
3627   CC="$ac_cv_prog_CC"
3628 fi
3629
3630 if test -z "$CC"; then
3631   if test -n "$ac_tool_prefix"; then
3632   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3633 set dummy ${ac_tool_prefix}cc; ac_word=$2
3634 echo "$as_me:$LINENO: checking for $ac_word" >&5
3635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3636 if test "${ac_cv_prog_CC+set}" = set; then
3637   echo $ECHO_N "(cached) $ECHO_C" >&6
3638 else
3639   if test -n "$CC"; then
3640   ac_cv_prog_CC="$CC" # Let the user override the test.
3641 else
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3644 do
3645   IFS=$as_save_IFS
3646   test -z "$as_dir" && as_dir=.
3647   for ac_exec_ext in '' $ac_executable_extensions; do
3648   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3649     ac_cv_prog_CC="${ac_tool_prefix}cc"
3650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3651     break 2
3652   fi
3653 done
3654 done
3655
3656 fi
3657 fi
3658 CC=$ac_cv_prog_CC
3659 if test -n "$CC"; then
3660   echo "$as_me:$LINENO: result: $CC" >&5
3661 echo "${ECHO_T}$CC" >&6
3662 else
3663   echo "$as_me:$LINENO: result: no" >&5
3664 echo "${ECHO_T}no" >&6
3665 fi
3666
3667 fi
3668 if test -z "$ac_cv_prog_CC"; then
3669   ac_ct_CC=$CC
3670   # Extract the first word of "cc", so it can be a program name with args.
3671 set dummy cc; ac_word=$2
3672 echo "$as_me:$LINENO: checking for $ac_word" >&5
3673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3674 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3675   echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677   if test -n "$ac_ct_CC"; then
3678   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3679 else
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3682 do
3683   IFS=$as_save_IFS
3684   test -z "$as_dir" && as_dir=.
3685   for ac_exec_ext in '' $ac_executable_extensions; do
3686   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3687     ac_cv_prog_ac_ct_CC="cc"
3688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3689     break 2
3690   fi
3691 done
3692 done
3693
3694 fi
3695 fi
3696 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3697 if test -n "$ac_ct_CC"; then
3698   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3699 echo "${ECHO_T}$ac_ct_CC" >&6
3700 else
3701   echo "$as_me:$LINENO: result: no" >&5
3702 echo "${ECHO_T}no" >&6
3703 fi
3704
3705   CC=$ac_ct_CC
3706 else
3707   CC="$ac_cv_prog_CC"
3708 fi
3709
3710 fi
3711 if test -z "$CC"; then
3712   # Extract the first word of "cc", so it can be a program name with args.
3713 set dummy cc; ac_word=$2
3714 echo "$as_me:$LINENO: checking for $ac_word" >&5
3715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3716 if test "${ac_cv_prog_CC+set}" = set; then
3717   echo $ECHO_N "(cached) $ECHO_C" >&6
3718 else
3719   if test -n "$CC"; then
3720   ac_cv_prog_CC="$CC" # Let the user override the test.
3721 else
3722   ac_prog_rejected=no
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 for as_dir in $PATH
3725 do
3726   IFS=$as_save_IFS
3727   test -z "$as_dir" && as_dir=.
3728   for ac_exec_ext in '' $ac_executable_extensions; do
3729   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3730     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3731        ac_prog_rejected=yes
3732        continue
3733      fi
3734     ac_cv_prog_CC="cc"
3735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3736     break 2
3737   fi
3738 done
3739 done
3740
3741 if test $ac_prog_rejected = yes; then
3742   # We found a bogon in the path, so make sure we never use it.
3743   set dummy $ac_cv_prog_CC
3744   shift
3745   if test $# != 0; then
3746     # We chose a different compiler from the bogus one.
3747     # However, it has the same basename, so the bogon will be chosen
3748     # first if we set CC to just the basename; use the full file name.
3749     shift
3750     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3751   fi
3752 fi
3753 fi
3754 fi
3755 CC=$ac_cv_prog_CC
3756 if test -n "$CC"; then
3757   echo "$as_me:$LINENO: result: $CC" >&5
3758 echo "${ECHO_T}$CC" >&6
3759 else
3760   echo "$as_me:$LINENO: result: no" >&5
3761 echo "${ECHO_T}no" >&6
3762 fi
3763
3764 fi
3765 if test -z "$CC"; then
3766   if test -n "$ac_tool_prefix"; then
3767   for ac_prog in cl
3768   do
3769     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3770 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3771 echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773 if test "${ac_cv_prog_CC+set}" = set; then
3774   echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776   if test -n "$CC"; then
3777   ac_cv_prog_CC="$CC" # Let the user override the test.
3778 else
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH
3781 do
3782   IFS=$as_save_IFS
3783   test -z "$as_dir" && as_dir=.
3784   for ac_exec_ext in '' $ac_executable_extensions; do
3785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3786     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3788     break 2
3789   fi
3790 done
3791 done
3792
3793 fi
3794 fi
3795 CC=$ac_cv_prog_CC
3796 if test -n "$CC"; then
3797   echo "$as_me:$LINENO: result: $CC" >&5
3798 echo "${ECHO_T}$CC" >&6
3799 else
3800   echo "$as_me:$LINENO: result: no" >&5
3801 echo "${ECHO_T}no" >&6
3802 fi
3803
3804     test -n "$CC" && break
3805   done
3806 fi
3807 if test -z "$CC"; then
3808   ac_ct_CC=$CC
3809   for ac_prog in cl
3810 do
3811   # Extract the first word of "$ac_prog", so it can be a program name with args.
3812 set dummy $ac_prog; ac_word=$2
3813 echo "$as_me:$LINENO: checking for $ac_word" >&5
3814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3815 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3816   echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818   if test -n "$ac_ct_CC"; then
3819   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3820 else
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 for as_dir in $PATH
3823 do
3824   IFS=$as_save_IFS
3825   test -z "$as_dir" && as_dir=.
3826   for ac_exec_ext in '' $ac_executable_extensions; do
3827   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828     ac_cv_prog_ac_ct_CC="$ac_prog"
3829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3830     break 2
3831   fi
3832 done
3833 done
3834
3835 fi
3836 fi
3837 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3838 if test -n "$ac_ct_CC"; then
3839   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3840 echo "${ECHO_T}$ac_ct_CC" >&6
3841 else
3842   echo "$as_me:$LINENO: result: no" >&5
3843 echo "${ECHO_T}no" >&6
3844 fi
3845
3846   test -n "$ac_ct_CC" && break
3847 done
3848
3849   CC=$ac_ct_CC
3850 fi
3851
3852 fi
3853
3854
3855 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3856 See \`config.log' for more details." >&5
3857 echo "$as_me: error: no acceptable C compiler found in \$PATH
3858 See \`config.log' for more details." >&2;}
3859    { (exit 1); exit 1; }; }
3860
3861 # Provide some information about the compiler.
3862 echo "$as_me:$LINENO:" \
3863      "checking for C compiler version" >&5
3864 ac_compiler=`set X $ac_compile; echo $2`
3865 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3866   (eval $ac_compiler --version </dev/null >&5) 2>&5
3867   ac_status=$?
3868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869   (exit $ac_status); }
3870 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3871   (eval $ac_compiler -v </dev/null >&5) 2>&5
3872   ac_status=$?
3873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874   (exit $ac_status); }
3875 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3876   (eval $ac_compiler -V </dev/null >&5) 2>&5
3877   ac_status=$?
3878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879   (exit $ac_status); }
3880
3881 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3882 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3883 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3884   echo $ECHO_N "(cached) $ECHO_C" >&6
3885 else
3886   cat >conftest.$ac_ext <<_ACEOF
3887 #line $LINENO "configure"
3888 /* confdefs.h.  */
3889 _ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h.  */
3893
3894 int
3895 main ()
3896 {
3897 #ifndef __GNUC__
3898        choke me
3899 #endif
3900
3901   ;
3902   return 0;
3903 }
3904 _ACEOF
3905 rm -f conftest.$ac_objext
3906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3907   (eval $ac_compile) 2>&5
3908   ac_status=$?
3909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910   (exit $ac_status); } &&
3911          { ac_try='test -s conftest.$ac_objext'
3912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3913   (eval $ac_try) 2>&5
3914   ac_status=$?
3915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916   (exit $ac_status); }; }; then
3917   ac_compiler_gnu=yes
3918 else
3919   echo "$as_me: failed program was:" >&5
3920 sed 's/^/| /' conftest.$ac_ext >&5
3921
3922 ac_compiler_gnu=no
3923 fi
3924 rm -f conftest.$ac_objext conftest.$ac_ext
3925 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3926
3927 fi
3928 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3929 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3930 GCC=`test $ac_compiler_gnu = yes && echo yes`
3931 ac_test_CFLAGS=${CFLAGS+set}
3932 ac_save_CFLAGS=$CFLAGS
3933 CFLAGS="-g"
3934 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3935 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3936 if test "${ac_cv_prog_cc_g+set}" = set; then
3937   echo $ECHO_N "(cached) $ECHO_C" >&6
3938 else
3939   cat >conftest.$ac_ext <<_ACEOF
3940 #line $LINENO "configure"
3941 /* confdefs.h.  */
3942 _ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h.  */
3946
3947 int
3948 main ()
3949 {
3950
3951   ;
3952   return 0;
3953 }
3954 _ACEOF
3955 rm -f conftest.$ac_objext
3956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3957   (eval $ac_compile) 2>&5
3958   ac_status=$?
3959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960   (exit $ac_status); } &&
3961          { ac_try='test -s conftest.$ac_objext'
3962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963   (eval $ac_try) 2>&5
3964   ac_status=$?
3965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966   (exit $ac_status); }; }; then
3967   ac_cv_prog_cc_g=yes
3968 else
3969   echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3971
3972 ac_cv_prog_cc_g=no
3973 fi
3974 rm -f conftest.$ac_objext conftest.$ac_ext
3975 fi
3976 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3977 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3978 if test "$ac_test_CFLAGS" = set; then
3979   CFLAGS=$ac_save_CFLAGS
3980 elif test $ac_cv_prog_cc_g = yes; then
3981   if test "$GCC" = yes; then
3982     CFLAGS="-g -O2"
3983   else
3984     CFLAGS="-g"
3985   fi
3986 else
3987   if test "$GCC" = yes; then
3988     CFLAGS="-O2"
3989   else
3990     CFLAGS=
3991   fi
3992 fi
3993 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3994 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3995 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3996   echo $ECHO_N "(cached) $ECHO_C" >&6
3997 else
3998   ac_cv_prog_cc_stdc=no
3999 ac_save_CC=$CC
4000 cat >conftest.$ac_ext <<_ACEOF
4001 #line $LINENO "configure"
4002 /* confdefs.h.  */
4003 _ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h.  */
4007 #include <stdarg.h>
4008 #include <stdio.h>
4009 #include <sys/types.h>
4010 #include <sys/stat.h>
4011 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4012 struct buf { int x; };
4013 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4014 static char *e (p, i)
4015      char **p;
4016      int i;
4017 {
4018   return p[i];
4019 }
4020 static char *f (char * (*g) (char **, int), char **p, ...)
4021 {
4022   char *s;
4023   va_list v;
4024   va_start (v,p);
4025   s = g (p, va_arg (v,int));
4026   va_end (v);
4027   return s;
4028 }
4029 int test (int i, double x);
4030 struct s1 {int (*f) (int a);};
4031 struct s2 {int (*f) (double a);};
4032 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4033 int argc;
4034 char **argv;
4035 int
4036 main ()
4037 {
4038 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4039   ;
4040   return 0;
4041 }
4042 _ACEOF
4043 # Don't try gcc -ansi; that turns off useful extensions and
4044 # breaks some systems' header files.
4045 # AIX                   -qlanglvl=ansi
4046 # Ultrix and OSF/1      -std1
4047 # HP-UX 10.20 and later -Ae
4048 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4049 # SVR4                  -Xc -D__EXTENSIONS__
4050 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4051 do
4052   CC="$ac_save_CC $ac_arg"
4053   rm -f conftest.$ac_objext
4054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4055   (eval $ac_compile) 2>&5
4056   ac_status=$?
4057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058   (exit $ac_status); } &&
4059          { ac_try='test -s conftest.$ac_objext'
4060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061   (eval $ac_try) 2>&5
4062   ac_status=$?
4063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064   (exit $ac_status); }; }; then
4065   ac_cv_prog_cc_stdc=$ac_arg
4066 break
4067 else
4068   echo "$as_me: failed program was:" >&5
4069 sed 's/^/| /' conftest.$ac_ext >&5
4070
4071 fi
4072 rm -f conftest.$ac_objext
4073 done
4074 rm -f conftest.$ac_ext conftest.$ac_objext
4075 CC=$ac_save_CC
4076
4077 fi
4078
4079 case "x$ac_cv_prog_cc_stdc" in
4080   x|xno)
4081     echo "$as_me:$LINENO: result: none needed" >&5
4082 echo "${ECHO_T}none needed" >&6 ;;
4083   *)
4084     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4085 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4086     CC="$CC $ac_cv_prog_cc_stdc" ;;
4087 esac
4088
4089 # Some people use a C++ compiler to compile C.  Since we use `exit',
4090 # in C++ we need to declare it.  In case someone uses the same compiler
4091 # for both compiling C and C++ we need to have the C++ compiler decide
4092 # the declaration of exit, since it's the most demanding environment.
4093 cat >conftest.$ac_ext <<_ACEOF
4094 #ifndef __cplusplus
4095   choke me
4096 #endif
4097 _ACEOF
4098 rm -f conftest.$ac_objext
4099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4100   (eval $ac_compile) 2>&5
4101   ac_status=$?
4102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103   (exit $ac_status); } &&
4104          { ac_try='test -s conftest.$ac_objext'
4105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106   (eval $ac_try) 2>&5
4107   ac_status=$?
4108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109   (exit $ac_status); }; }; then
4110   for ac_declaration in \
4111    ''\
4112    '#include <stdlib.h>' \
4113    'extern "C" void std::exit (int) throw (); using std::exit;' \
4114    'extern "C" void std::exit (int); using std::exit;' \
4115    'extern "C" void exit (int) throw ();' \
4116    'extern "C" void exit (int);' \
4117    'void exit (int);'
4118 do
4119   cat >conftest.$ac_ext <<_ACEOF
4120 #line $LINENO "configure"
4121 /* confdefs.h.  */
4122 _ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h.  */
4126 #include <stdlib.h>
4127 $ac_declaration
4128 int
4129 main ()
4130 {
4131 exit (42);
4132   ;
4133   return 0;
4134 }
4135 _ACEOF
4136 rm -f conftest.$ac_objext
4137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4138   (eval $ac_compile) 2>&5
4139   ac_status=$?
4140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141   (exit $ac_status); } &&
4142          { ac_try='test -s conftest.$ac_objext'
4143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144   (eval $ac_try) 2>&5
4145   ac_status=$?
4146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147   (exit $ac_status); }; }; then
4148   :
4149 else
4150   echo "$as_me: failed program was:" >&5
4151 sed 's/^/| /' conftest.$ac_ext >&5
4152
4153 continue
4154 fi
4155 rm -f conftest.$ac_objext conftest.$ac_ext
4156   cat >conftest.$ac_ext <<_ACEOF
4157 #line $LINENO "configure"
4158 /* confdefs.h.  */
4159 _ACEOF
4160 cat confdefs.h >>conftest.$ac_ext
4161 cat >>conftest.$ac_ext <<_ACEOF
4162 /* end confdefs.h.  */
4163 $ac_declaration
4164 int
4165 main ()
4166 {
4167 exit (42);
4168   ;
4169   return 0;
4170 }
4171 _ACEOF
4172 rm -f conftest.$ac_objext
4173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4174   (eval $ac_compile) 2>&5
4175   ac_status=$?
4176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177   (exit $ac_status); } &&
4178          { ac_try='test -s conftest.$ac_objext'
4179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180   (eval $ac_try) 2>&5
4181   ac_status=$?
4182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183   (exit $ac_status); }; }; then
4184   break
4185 else
4186   echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4188
4189 fi
4190 rm -f conftest.$ac_objext conftest.$ac_ext
4191 done
4192 rm -f conftest*
4193 if test -n "$ac_declaration"; then
4194   echo '#ifdef __cplusplus' >>confdefs.h
4195   echo $ac_declaration      >>confdefs.h
4196   echo '#endif'             >>confdefs.h
4197 fi
4198
4199 else
4200   echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4202
4203 fi
4204 rm -f conftest.$ac_objext conftest.$ac_ext
4205 ac_ext=c
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210
4211 depcc="$CC"   am_compiler_list=
4212
4213 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4214 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4215 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4216   echo $ECHO_N "(cached) $ECHO_C" >&6
4217 else
4218   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4219   # We make a subdir and do the tests there.  Otherwise we can end up
4220   # making bogus files that we don't know about and never remove.  For
4221   # instance it was reported that on HP-UX the gcc test will end up
4222   # making a dummy file named `D' -- because `-MD' means `put the output
4223   # in D'.
4224   mkdir conftest.dir
4225   # Copy depcomp to subdir because otherwise we won't find it if we're
4226   # using a relative directory.
4227   cp "$am_depcomp" conftest.dir
4228   cd conftest.dir
4229   # We will build objects and dependencies in a subdirectory because
4230   # it helps to detect inapplicable dependency modes.  For instance
4231   # both Tru64's cc and ICC support -MD to output dependencies as a
4232   # side effect of compilation, but ICC will put the dependencies in
4233   # the current directory while Tru64 will put them in the object
4234   # directory.
4235   mkdir sub
4236
4237   am_cv_CC_dependencies_compiler_type=none
4238   if test "$am_compiler_list" = ""; then
4239      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4240   fi
4241   for depmode in $am_compiler_list; do
4242     # Setup a source with many dependencies, because some compilers
4243     # like to wrap large dependency lists on column 80 (with \), and
4244     # we should not choose a depcomp mode which is confused by this.
4245     #
4246     # We need to recreate these files for each test, as the compiler may
4247     # overwrite some of them when testing with obscure command lines.
4248     # This happens at least with the AIX C compiler.
4249     : > sub/conftest.c
4250     for i in 1 2 3 4 5 6; do
4251       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4252       : > sub/conftst$i.h
4253     done
4254     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4255
4256     case $depmode in
4257     nosideeffect)
4258       # after this tag, mechanisms are not by side-effect, so they'll
4259       # only be used when explicitly requested
4260       if test "x$enable_dependency_tracking" = xyes; then
4261         continue
4262       else
4263         break
4264       fi
4265       ;;
4266     none) break ;;
4267     esac
4268     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4269     # mode.  It turns out that the SunPro C++ compiler does not properly
4270     # handle `-M -o', and we need to detect this.
4271     if depmode=$depmode \
4272        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4273        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4274        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4275          >/dev/null 2>conftest.err &&
4276        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4277        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4278        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4279       # icc doesn't choke on unknown options, it will just issue warnings
4280       # (even with -Werror).  So we grep stderr for any message
4281       # that says an option was ignored.
4282       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4283         am_cv_CC_dependencies_compiler_type=$depmode
4284         break
4285       fi
4286     fi
4287   done
4288
4289   cd ..
4290   rm -rf conftest.dir
4291 else
4292   am_cv_CC_dependencies_compiler_type=none
4293 fi
4294
4295 fi
4296 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4297 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4298 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4299
4300
4301
4302 if
4303   test "x$enable_dependency_tracking" != xno \
4304   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4305   am__fastdepCC_TRUE=
4306   am__fastdepCC_FALSE='#'
4307 else
4308   am__fastdepCC_TRUE='#'
4309   am__fastdepCC_FALSE=
4310 fi
4311
4312
4313
4314 ac_ext=c
4315 ac_cpp='$CPP $CPPFLAGS'
4316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4319 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4320 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4321 # On Suns, sometimes $CPP names a directory.
4322 if test -n "$CPP" && test -d "$CPP"; then
4323   CPP=
4324 fi
4325 if test -z "$CPP"; then
4326   if test "${ac_cv_prog_CPP+set}" = set; then
4327   echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329       # Double quotes because CPP needs to be expanded
4330     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4331     do
4332       ac_preproc_ok=false
4333 for ac_c_preproc_warn_flag in '' yes
4334 do
4335   # Use a header file that comes with gcc, so configuring glibc
4336   # with a fresh cross-compiler works.
4337   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4338   # <limits.h> exists even on freestanding compilers.
4339   # On the NeXT, cc -E runs the code through the compiler's parser,
4340   # not just through cpp. "Syntax error" is here to catch this case.
4341   cat >conftest.$ac_ext <<_ACEOF
4342 #line $LINENO "configure"
4343 /* confdefs.h.  */
4344 _ACEOF
4345 cat confdefs.h >>conftest.$ac_ext
4346 cat >>conftest.$ac_ext <<_ACEOF
4347 /* end confdefs.h.  */
4348 #ifdef __STDC__
4349 # include <limits.h>
4350 #else
4351 # include <assert.h>
4352 #endif
4353                      Syntax error
4354 _ACEOF
4355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4356   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4357   ac_status=$?
4358   grep -v '^ *+' conftest.er1 >conftest.err
4359   rm -f conftest.er1
4360   cat conftest.err >&5
4361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362   (exit $ac_status); } >/dev/null; then
4363   if test -s conftest.err; then
4364     ac_cpp_err=$ac_c_preproc_warn_flag
4365   else
4366     ac_cpp_err=
4367   fi
4368 else
4369   ac_cpp_err=yes
4370 fi
4371 if test -z "$ac_cpp_err"; then
4372   :
4373 else
4374   echo "$as_me: failed program was:" >&5
4375 sed 's/^/| /' conftest.$ac_ext >&5
4376
4377   # Broken: fails on valid input.
4378 continue
4379 fi
4380 rm -f conftest.err conftest.$ac_ext
4381
4382   # OK, works on sane cases.  Now check whether non-existent headers
4383   # can be detected and how.
4384   cat >conftest.$ac_ext <<_ACEOF
4385 #line $LINENO "configure"
4386 /* confdefs.h.  */
4387 _ACEOF
4388 cat confdefs.h >>conftest.$ac_ext
4389 cat >>conftest.$ac_ext <<_ACEOF
4390 /* end confdefs.h.  */
4391 #include <ac_nonexistent.h>
4392 _ACEOF
4393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4394   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4395   ac_status=$?
4396   grep -v '^ *+' conftest.er1 >conftest.err
4397   rm -f conftest.er1
4398   cat conftest.err >&5
4399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400   (exit $ac_status); } >/dev/null; then
4401   if test -s conftest.err; then
4402     ac_cpp_err=$ac_c_preproc_warn_flag
4403   else
4404     ac_cpp_err=
4405   fi
4406 else
4407   ac_cpp_err=yes
4408 fi
4409 if test -z "$ac_cpp_err"; then
4410   # Broken: success on invalid input.
4411 continue
4412 else
4413   echo "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.$ac_ext >&5
4415
4416   # Passes both tests.
4417 ac_preproc_ok=:
4418 break
4419 fi
4420 rm -f conftest.err conftest.$ac_ext
4421
4422 done
4423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4424 rm -f conftest.err conftest.$ac_ext
4425 if $ac_preproc_ok; then
4426   break
4427 fi
4428
4429     done
4430     ac_cv_prog_CPP=$CPP
4431
4432 fi
4433   CPP=$ac_cv_prog_CPP
4434 else
4435   ac_cv_prog_CPP=$CPP
4436 fi
4437 echo "$as_me:$LINENO: result: $CPP" >&5
4438 echo "${ECHO_T}$CPP" >&6
4439 ac_preproc_ok=false
4440 for ac_c_preproc_warn_flag in '' yes
4441 do
4442   # Use a header file that comes with gcc, so configuring glibc
4443   # with a fresh cross-compiler works.
4444   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4445   # <limits.h> exists even on freestanding compilers.
4446   # On the NeXT, cc -E runs the code through the compiler's parser,
4447   # not just through cpp. "Syntax error" is here to catch this case.
4448   cat >conftest.$ac_ext <<_ACEOF
4449 #line $LINENO "configure"
4450 /* confdefs.h.  */
4451 _ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h.  */
4455 #ifdef __STDC__
4456 # include <limits.h>
4457 #else
4458 # include <assert.h>
4459 #endif
4460                      Syntax error
4461 _ACEOF
4462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4463   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4464   ac_status=$?
4465   grep -v '^ *+' conftest.er1 >conftest.err
4466   rm -f conftest.er1
4467   cat conftest.err >&5
4468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469   (exit $ac_status); } >/dev/null; then
4470   if test -s conftest.err; then
4471     ac_cpp_err=$ac_c_preproc_warn_flag
4472   else
4473     ac_cpp_err=
4474   fi
4475 else
4476   ac_cpp_err=yes
4477 fi
4478 if test -z "$ac_cpp_err"; then
4479   :
4480 else
4481   echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4483
4484   # Broken: fails on valid input.
4485 continue
4486 fi
4487 rm -f conftest.err conftest.$ac_ext
4488
4489   # OK, works on sane cases.  Now check whether non-existent headers
4490   # can be detected and how.
4491   cat >conftest.$ac_ext <<_ACEOF
4492 #line $LINENO "configure"
4493 /* confdefs.h.  */
4494 _ACEOF
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h.  */
4498 #include <ac_nonexistent.h>
4499 _ACEOF
4500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4501   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4502   ac_status=$?
4503   grep -v '^ *+' conftest.er1 >conftest.err
4504   rm -f conftest.er1
4505   cat conftest.err >&5
4506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507   (exit $ac_status); } >/dev/null; then
4508   if test -s conftest.err; then
4509     ac_cpp_err=$ac_c_preproc_warn_flag
4510   else
4511     ac_cpp_err=
4512   fi
4513 else
4514   ac_cpp_err=yes
4515 fi
4516 if test -z "$ac_cpp_err"; then
4517   # Broken: success on invalid input.
4518 continue
4519 else
4520   echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4522
4523   # Passes both tests.
4524 ac_preproc_ok=:
4525 break
4526 fi
4527 rm -f conftest.err conftest.$ac_ext
4528
4529 done
4530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4531 rm -f conftest.err conftest.$ac_ext
4532 if $ac_preproc_ok; then
4533   :
4534 else
4535   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4536 See \`config.log' for more details." >&5
4537 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4538 See \`config.log' for more details." >&2;}
4539    { (exit 1); exit 1; }; }
4540 fi
4541
4542 ac_ext=c
4543 ac_cpp='$CPP $CPPFLAGS'
4544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4547
4548
4549 case "$host" in
4550  *-*-amigaos)
4551     CFLAGS="$CFLAGS -Dfork=vfork -DSYS_AMIGA"
4552     ;;
4553  *-pc-cygwin*)
4554     CFLAGS="$CFLAGS -DSYS_CYGWIN32"
4555     ;;
4556  i386-sequent-sysv4)
4557     case "$CC" in
4558      cc)
4559         CFLAGS="$CFLAGS -Wc,+abi-socket"
4560         ;;
4561     esac
4562     ;;
4563  *-*-mpeix*)
4564     CPPFLAGS="$CPPFLAGS -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE -I/SYSLOG/PUB"
4565     LDFLAGS="$LDFLAGS -L/SYSLOG/PUB"
4566     LIBS="$LIBS -lcurses"
4567     ;;
4568 esac
4569
4570 echo "$as_me:$LINENO: checking if we should use /dev/clockctl" >&5
4571 echo $ECHO_N "checking if we should use /dev/clockctl... $ECHO_C" >&6
4572 if test "${ac_clockctl+set}" = set; then
4573   echo $ECHO_N "(cached) $ECHO_C" >&6
4574 else
4575   # Check whether --enable-clockctl or --disable-clockctl was given.
4576 if test "${enable_clockctl+set}" = set; then
4577   enableval="$enable_clockctl"
4578   ans=$enableval
4579 else
4580   case "$target" in
4581       *-*-netbsd*)
4582          ans=yes
4583          ;;
4584       *) ans=no
4585          ;;
4586      esac
4587
4588 fi;
4589 ac_clockctl=$ans
4590 fi
4591 echo "$as_me:$LINENO: result: $ac_clockctl" >&5
4592 echo "${ECHO_T}$ac_clockctl" >&6
4593 # End of AC_CACHE_CHECK for clockctl
4594
4595 for ac_header in sys/clockctl.h
4596 do
4597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4599   echo "$as_me:$LINENO: checking for $ac_header" >&5
4600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4602   echo $ECHO_N "(cached) $ECHO_C" >&6
4603 fi
4604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4606 else
4607   # Is the header compilable?
4608 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4610 cat >conftest.$ac_ext <<_ACEOF
4611 #line $LINENO "configure"
4612 /* confdefs.h.  */
4613 _ACEOF
4614 cat confdefs.h >>conftest.$ac_ext
4615 cat >>conftest.$ac_ext <<_ACEOF
4616 /* end confdefs.h.  */
4617 $ac_includes_default
4618 #include <$ac_header>
4619 _ACEOF
4620 rm -f conftest.$ac_objext
4621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4622   (eval $ac_compile) 2>&5
4623   ac_status=$?
4624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625   (exit $ac_status); } &&
4626          { ac_try='test -s conftest.$ac_objext'
4627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628   (eval $ac_try) 2>&5
4629   ac_status=$?
4630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631   (exit $ac_status); }; }; then
4632   ac_header_compiler=yes
4633 else
4634   echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.$ac_ext >&5
4636
4637 ac_header_compiler=no
4638 fi
4639 rm -f conftest.$ac_objext conftest.$ac_ext
4640 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4641 echo "${ECHO_T}$ac_header_compiler" >&6
4642
4643 # Is the header present?
4644 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4646 cat >conftest.$ac_ext <<_ACEOF
4647 #line $LINENO "configure"
4648 /* confdefs.h.  */
4649 _ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h.  */
4653 #include <$ac_header>
4654 _ACEOF
4655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4656   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4657   ac_status=$?
4658   grep -v '^ *+' conftest.er1 >conftest.err
4659   rm -f conftest.er1
4660   cat conftest.err >&5
4661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662   (exit $ac_status); } >/dev/null; then
4663   if test -s conftest.err; then
4664     ac_cpp_err=$ac_c_preproc_warn_flag
4665   else
4666     ac_cpp_err=
4667   fi
4668 else
4669   ac_cpp_err=yes
4670 fi
4671 if test -z "$ac_cpp_err"; then
4672   ac_header_preproc=yes
4673 else
4674   echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.$ac_ext >&5
4676
4677   ac_header_preproc=no
4678 fi
4679 rm -f conftest.err conftest.$ac_ext
4680 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4681 echo "${ECHO_T}$ac_header_preproc" >&6
4682
4683 # So?  What about this header?
4684 case $ac_header_compiler:$ac_header_preproc in
4685   yes:no )
4686     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4688     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4690     (
4691       cat <<\_ASBOX
4692 ## ------------------------------------ ##
4693 ## Report this to bug-autoconf@gnu.org. ##
4694 ## ------------------------------------ ##
4695 _ASBOX
4696     ) |
4697       sed "s/^/$as_me: WARNING:     /" >&2
4698     ;;
4699   no:yes )
4700     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4702     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4703 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4704     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4706     (
4707       cat <<\_ASBOX
4708 ## ------------------------------------ ##
4709 ## Report this to bug-autoconf@gnu.org. ##
4710 ## ------------------------------------ ##
4711 _ASBOX
4712     ) |
4713       sed "s/^/$as_me: WARNING:     /" >&2
4714     ;;
4715 esac
4716 echo "$as_me:$LINENO: checking for $ac_header" >&5
4717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4719   echo $ECHO_N "(cached) $ECHO_C" >&6
4720 else
4721   eval "$as_ac_Header=$ac_header_preproc"
4722 fi
4723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4725
4726 fi
4727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4728   cat >>confdefs.h <<_ACEOF
4729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4730 _ACEOF
4731
4732 fi
4733
4734 done
4735
4736 case "$ac_clockctl$ac_cv_header_sys_clockctl_h" in
4737  yesyes)
4738
4739 cat >>confdefs.h <<\_ACEOF
4740 #define HAVE_CLOCKCTL
4741 _ACEOF
4742
4743     ;;
4744 esac
4745
4746 case "$build" in
4747  $host)
4748     ;;
4749  *) case "$host" in
4750      *-*-vxworks*)
4751         # Quick and dirty sanity check
4752         case "$VX_KERNEL" in
4753          '') { { echo "$as_me:$LINENO: error: Please follow the directions in html/vxworks.html!" >&5
4754 echo "$as_me: error: Please follow the directions in html/vxworks.html!" >&2;}
4755    { (exit 1); exit 1; }; }
4756             ;;
4757         esac
4758         CFLAGS="$CFLAGS -DSYS_VXWORKS"
4759         ;;
4760     esac
4761     ;;
4762 esac
4763
4764 for ac_prog in gawk mawk nawk awk
4765 do
4766   # Extract the first word of "$ac_prog", so it can be a program name with args.
4767 set dummy $ac_prog; ac_word=$2
4768 echo "$as_me:$LINENO: checking for $ac_word" >&5
4769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4770 if test "${ac_cv_prog_AWK+set}" = set; then
4771   echo $ECHO_N "(cached) $ECHO_C" >&6
4772 else
4773   if test -n "$AWK"; then
4774   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4775 else
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH
4778 do
4779   IFS=$as_save_IFS
4780   test -z "$as_dir" && as_dir=.
4781   for ac_exec_ext in '' $ac_executable_extensions; do
4782   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4783     ac_cv_prog_AWK="$ac_prog"
4784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4785     break 2
4786   fi
4787 done
4788 done
4789
4790 fi
4791 fi
4792 AWK=$ac_cv_prog_AWK
4793 if test -n "$AWK"; then
4794   echo "$as_me:$LINENO: result: $AWK" >&5
4795 echo "${ECHO_T}$AWK" >&6
4796 else
4797   echo "$as_me:$LINENO: result: no" >&5
4798 echo "${ECHO_T}no" >&6
4799 fi
4800
4801   test -n "$AWK" && break
4802 done
4803
4804 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4805 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4806 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4807 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4808   echo $ECHO_N "(cached) $ECHO_C" >&6
4809 else
4810   cat >conftest.make <<\_ACEOF
4811 all:
4812         @echo 'ac_maketemp="$(MAKE)"'
4813 _ACEOF
4814 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4815 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4816 if test -n "$ac_maketemp"; then
4817   eval ac_cv_prog_make_${ac_make}_set=yes
4818 else
4819   eval ac_cv_prog_make_${ac_make}_set=no
4820 fi
4821 rm -f conftest.make
4822 fi
4823 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4824   echo "$as_me:$LINENO: result: yes" >&5
4825 echo "${ECHO_T}yes" >&6
4826   SET_MAKE=
4827 else
4828   echo "$as_me:$LINENO: result: no" >&5
4829 echo "${ECHO_T}no" >&6
4830   SET_MAKE="MAKE=${MAKE-make}"
4831 fi
4832
4833
4834 rm -f conftest*
4835
4836 case "$GCC" in
4837  yes)
4838     CFLAGS="$CFLAGS -Wall"
4839     # CFLAGS="$CFLAGS -Wcast-align"
4840     CFLAGS="$CFLAGS -Wcast-qual"
4841     # CFLAGS="$CFLAGS -Wconversion"
4842     # CFLAGS="$CFLAGS -Werror"
4843     CFLAGS="$CFLAGS -Wmissing-prototypes"
4844     CFLAGS="$CFLAGS -Wpointer-arith"
4845     CFLAGS="$CFLAGS -Wshadow"
4846     CFLAGS="$CFLAGS -Wstrict-prototypes"
4847     # CFLAGS="$CFLAGS -Wtraditional"
4848     # CFLAGS="$CFLAGS -Wwrite-strings"
4849
4850     ;;
4851 esac
4852
4853 ac_busted_vpath_in_make=no
4854
4855 case "$host" in
4856  *-next-nextstep3)
4857     CFLAGS="$CFLAGS -posix"
4858     ;;
4859  *-*-irix6.1*)  # 64 bit only
4860     # busted vpath?
4861     ;;
4862  *-*-irix6*)    # 6.2 (and later?)
4863     ac_busted_vpath_in_make=yes
4864     # don't pass -n32 to gcc, it cannot handle and doesn't need it
4865     if test "$GCC" != yes; then
4866       case "$CFLAGS" in
4867        *-n32*) ;;
4868        *-n64*) ;;
4869        *-64*) ;;
4870        *) case "$iCFLAGS" in
4871            '') CFLAGS="-O2 -g3 -n32" ;;
4872            *)  CFLAGS="$CFLAGS -n32" ;;
4873           esac
4874           ;;
4875       esac
4876       case "$LDFLAGS" in
4877        *-n32*) ;;
4878        *-n64*) ;;
4879        *-64*) ;;
4880        *) LDFLAGS="$LDFLAGS -n32" ;;
4881       esac
4882     fi
4883     ;;
4884  *-*-solaris2.5.1)
4885     ac_busted_vpath_in_make=yes
4886     ;;
4887  *-*-unicosmp*)
4888     ac_busted_vpath_in_make=yes
4889     ;;
4890 esac
4891
4892 case "$ac_busted_vpath_in_make$srcdir" in
4893  no*) ;;
4894  yes.) ;;
4895  *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | sed -e 's/GNU Make version \(1-9.]*\).*/\1/' -e q`" in
4896      '')
4897         { { echo "$as_me:$LINENO: error: building outside of the main directory requires GNU make" >&5
4898 echo "$as_me: error: building outside of the main directory requires GNU make" >&2;}
4899    { (exit 1); exit 1; }; }
4900         ;;
4901      *) ;;
4902     esac
4903     ;;
4904 esac
4905
4906
4907 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4908 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4909 LN_S=$as_ln_s
4910 if test "$LN_S" = "ln -s"; then
4911   echo "$as_me:$LINENO: result: yes" >&5
4912 echo "${ECHO_T}yes" >&6
4913 else
4914   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4915 echo "${ECHO_T}no, using $LN_S" >&6
4916 fi
4917
4918 if test $ac_cv_c_compiler_gnu = yes; then
4919     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4920 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4921 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4922   echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924     ac_pattern="Autoconf.*'x'"
4925   cat >conftest.$ac_ext <<_ACEOF
4926 #line $LINENO "configure"
4927 /* confdefs.h.  */
4928 _ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h.  */
4932 #include <sgtty.h>
4933 Autoconf TIOCGETP
4934 _ACEOF
4935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4936   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4937   ac_cv_prog_gcc_traditional=yes
4938 else
4939   ac_cv_prog_gcc_traditional=no
4940 fi
4941 rm -f conftest*
4942
4943
4944   if test $ac_cv_prog_gcc_traditional = no; then
4945     cat >conftest.$ac_ext <<_ACEOF
4946 #line $LINENO "configure"
4947 /* confdefs.h.  */
4948 _ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h.  */
4952 #include <termio.h>
4953 Autoconf TCGETA
4954 _ACEOF
4955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4956   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4957   ac_cv_prog_gcc_traditional=yes
4958 fi
4959 rm -f conftest*
4960
4961   fi
4962 fi
4963 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4964 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4965   if test $ac_cv_prog_gcc_traditional = yes; then
4966     CC="$CC -traditional"
4967   fi
4968 fi
4969
4970 echo "$as_me:$LINENO: checking for working volatile" >&5
4971 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4972 if test "${ac_cv_c_volatile+set}" = set; then
4973   echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975   cat >conftest.$ac_ext <<_ACEOF
4976 #line $LINENO "configure"
4977 /* confdefs.h.  */
4978 _ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h.  */
4982
4983 int
4984 main ()
4985 {
4986
4987 volatile int x;
4988 int * volatile y;
4989   ;
4990   return 0;
4991 }
4992 _ACEOF
4993 rm -f conftest.$ac_objext
4994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4995   (eval $ac_compile) 2>&5
4996   ac_status=$?
4997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998   (exit $ac_status); } &&
4999          { ac_try='test -s conftest.$ac_objext'
5000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001   (eval $ac_try) 2>&5
5002   ac_status=$?
5003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004   (exit $ac_status); }; }; then
5005   ac_cv_c_volatile=yes
5006 else
5007   echo "$as_me: failed program was:" >&5
5008 sed 's/^/| /' conftest.$ac_ext >&5
5009
5010 ac_cv_c_volatile=no
5011 fi
5012 rm -f conftest.$ac_objext conftest.$ac_ext
5013 fi
5014 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5015 echo "${ECHO_T}$ac_cv_c_volatile" >&6
5016 if test $ac_cv_c_volatile = no; then
5017
5018 cat >>confdefs.h <<\_ACEOF
5019 #define volatile
5020 _ACEOF
5021
5022 fi
5023
5024 echo "$as_me:$LINENO: checking for library containing strerror" >&5
5025 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
5026 if test "${ac_cv_search_strerror+set}" = set; then
5027   echo $ECHO_N "(cached) $ECHO_C" >&6
5028 else
5029   ac_func_search_save_LIBS=$LIBS
5030 ac_cv_search_strerror=no
5031 cat >conftest.$ac_ext <<_ACEOF
5032 #line $LINENO "configure"
5033 /* confdefs.h.  */
5034 _ACEOF
5035 cat confdefs.h >>conftest.$ac_ext
5036 cat >>conftest.$ac_ext <<_ACEOF
5037 /* end confdefs.h.  */
5038
5039 /* Override any gcc2 internal prototype to avoid an error.  */
5040 #ifdef __cplusplus
5041 extern "C"
5042 #endif
5043 /* We use char because int might match the return type of a gcc2
5044    builtin and then its argument prototype would still apply.  */
5045 char strerror ();
5046 int
5047 main ()
5048 {
5049 strerror ();
5050   ;
5051   return 0;
5052 }
5053 _ACEOF
5054 rm -f conftest.$ac_objext conftest$ac_exeext
5055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5056   (eval $ac_link) 2>&5
5057   ac_status=$?
5058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059   (exit $ac_status); } &&
5060          { ac_try='test -s conftest$ac_exeext'
5061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5062   (eval $ac_try) 2>&5
5063   ac_status=$?
5064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065   (exit $ac_status); }; }; then
5066   ac_cv_search_strerror="none required"
5067 else
5068   echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5070
5071 fi
5072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5073 if test "$ac_cv_search_strerror" = no; then
5074   for ac_lib in cposix; do
5075     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5076     cat >conftest.$ac_ext <<_ACEOF
5077 #line $LINENO "configure"
5078 /* confdefs.h.  */
5079 _ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h.  */
5083
5084 /* Override any gcc2 internal prototype to avoid an error.  */
5085 #ifdef __cplusplus
5086 extern "C"
5087 #endif
5088 /* We use char because int might match the return type of a gcc2
5089    builtin and then its argument prototype would still apply.  */
5090 char strerror ();
5091 int
5092 main ()
5093 {
5094 strerror ();
5095   ;
5096   return 0;
5097 }
5098 _ACEOF
5099 rm -f conftest.$ac_objext conftest$ac_exeext
5100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5101   (eval $ac_link) 2>&5
5102   ac_status=$?
5103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104   (exit $ac_status); } &&
5105          { ac_try='test -s conftest$ac_exeext'
5106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107   (eval $ac_try) 2>&5
5108   ac_status=$?
5109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110   (exit $ac_status); }; }; then
5111   ac_cv_search_strerror="-l$ac_lib"
5112 break
5113 else
5114   echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5116
5117 fi
5118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5119   done
5120 fi
5121 LIBS=$ac_func_search_save_LIBS
5122 fi
5123 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5124 echo "${ECHO_T}$ac_cv_search_strerror" >&6
5125 if test "$ac_cv_search_strerror" != no; then
5126   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5127
5128 fi
5129
5130 if test -n "$ac_tool_prefix"; then
5131   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5132 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5133 echo "$as_me:$LINENO: checking for $ac_word" >&5
5134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5135 if test "${ac_cv_prog_RANLIB+set}" = set; then
5136   echo $ECHO_N "(cached) $ECHO_C" >&6
5137 else
5138   if test -n "$RANLIB"; then
5139   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5140 else
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH
5143 do
5144   IFS=$as_save_IFS
5145   test -z "$as_dir" && as_dir=.
5146   for ac_exec_ext in '' $ac_executable_extensions; do
5147   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150     break 2
5151   fi
5152 done
5153 done
5154
5155 fi
5156 fi
5157 RANLIB=$ac_cv_prog_RANLIB
5158 if test -n "$RANLIB"; then
5159   echo "$as_me:$LINENO: result: $RANLIB" >&5
5160 echo "${ECHO_T}$RANLIB" >&6
5161 else
5162   echo "$as_me:$LINENO: result: no" >&5
5163 echo "${ECHO_T}no" >&6
5164 fi
5165
5166 fi
5167 if test -z "$ac_cv_prog_RANLIB"; then
5168   ac_ct_RANLIB=$RANLIB
5169   # Extract the first word of "ranlib", so it can be a program name with args.
5170 set dummy ranlib; ac_word=$2
5171 echo "$as_me:$LINENO: checking for $ac_word" >&5
5172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5173 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5174   echo $ECHO_N "(cached) $ECHO_C" >&6
5175 else
5176   if test -n "$ac_ct_RANLIB"; then
5177   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5178 else
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH
5181 do
5182   IFS=$as_save_IFS
5183   test -z "$as_dir" && as_dir=.
5184   for ac_exec_ext in '' $ac_executable_extensions; do
5185   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5186     ac_cv_prog_ac_ct_RANLIB="ranlib"
5187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5188     break 2
5189   fi
5190 done
5191 done
5192
5193   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5194 fi
5195 fi
5196 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5197 if test -n "$ac_ct_RANLIB"; then
5198   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5199 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5200 else
5201   echo "$as_me:$LINENO: result: no" >&5
5202 echo "${ECHO_T}no" >&6
5203 fi
5204
5205   RANLIB=$ac_ct_RANLIB
5206 else
5207   RANLIB="$ac_cv_prog_RANLIB"
5208 fi
5209
5210 # Extract the first word of "sh", so it can be a program name with args.
5211 set dummy sh; ac_word=$2
5212 echo "$as_me:$LINENO: checking for $ac_word" >&5
5213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5214 if test "${ac_cv_path_PATH_SH+set}" = set; then
5215   echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217   case $PATH_SH in
5218   [\\/]* | ?:[\\/]*)
5219   ac_cv_path_PATH_SH="$PATH_SH" # Let the user override the test with a path.
5220   ;;
5221   *)
5222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in $PATH
5224 do
5225   IFS=$as_save_IFS
5226   test -z "$as_dir" && as_dir=.
5227   for ac_exec_ext in '' $ac_executable_extensions; do
5228   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5229     ac_cv_path_PATH_SH="$as_dir/$ac_word$ac_exec_ext"
5230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5231     break 2
5232   fi
5233 done
5234 done
5235
5236   ;;
5237 esac
5238 fi
5239 PATH_SH=$ac_cv_path_PATH_SH
5240
5241 if test -n "$PATH_SH"; then
5242   echo "$as_me:$LINENO: result: $PATH_SH" >&5
5243 echo "${ECHO_T}$PATH_SH" >&6
5244 else
5245   echo "$as_me:$LINENO: result: no" >&5
5246 echo "${ECHO_T}no" >&6
5247 fi
5248
5249 # Extract the first word of "perl", so it can be a program name with args.
5250 set dummy perl; ac_word=$2
5251 echo "$as_me:$LINENO: checking for $ac_word" >&5
5252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5253 if test "${ac_cv_path_PATH_PERL+set}" = set; then
5254   echo $ECHO_N "(cached) $ECHO_C" >&6
5255 else
5256   case $PATH_PERL in
5257   [\\/]* | ?:[\\/]*)
5258   ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
5259   ;;
5260   *)
5261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 for as_dir in $PATH
5263 do
5264   IFS=$as_save_IFS
5265   test -z "$as_dir" && as_dir=.
5266   for ac_exec_ext in '' $ac_executable_extensions; do
5267   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5268     ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
5269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5270     break 2
5271   fi
5272 done
5273 done
5274
5275   ;;
5276 esac
5277 fi
5278 PATH_PERL=$ac_cv_path_PATH_PERL
5279
5280 if test -n "$PATH_PERL"; then
5281   echo "$as_me:$LINENO: result: $PATH_PERL" >&5
5282 echo "${ECHO_T}$PATH_PERL" >&6
5283 else
5284   echo "$as_me:$LINENO: result: no" >&5
5285 echo "${ECHO_T}no" >&6
5286 fi
5287
5288
5289
5290
5291 cat >conftest.$ac_ext <<_ACEOF
5292 #line $LINENO "configure"
5293 /* confdefs.h.  */
5294 _ACEOF
5295 cat confdefs.h >>conftest.$ac_ext
5296 cat >>conftest.$ac_ext <<_ACEOF
5297 /* end confdefs.h.  */
5298 #define ACAT(a,b)a ## b
5299 ACAT(Cir,cus)
5300
5301 _ACEOF
5302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5303   $EGREP "Circus" >/dev/null 2>&1; then
5304   cat >>confdefs.h <<\_ACEOF
5305 #define ULONG_CONST(a) a ## UL
5306 _ACEOF
5307
5308 else
5309   cat >conftest.$ac_ext <<_ACEOF
5310 #line $LINENO "configure"
5311 /* confdefs.h.  */
5312 _ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h.  */
5316 #define RCAT(a,b)a/**/b
5317 RCAT(Rei,ser)
5318
5319 _ACEOF
5320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5321   $EGREP "Reiser" >/dev/null 2>&1; then
5322   cat >>confdefs.h <<\_ACEOF
5323 #define ULONG_CONST(a) a/**/L
5324 _ACEOF
5325
5326 else
5327   { { echo "$as_me:$LINENO: error: How do we create an unsigned long constant?" >&5
5328 echo "$as_me: error: How do we create an unsigned long constant?" >&2;}
5329    { (exit 1); exit 1; }; }
5330 fi
5331 rm -f conftest*
5332
5333 fi
5334 rm -f conftest*
5335
5336
5337 case "$host" in
5338  *-*-vxworks*)
5339     ac_link="$ac_link $VX_KERNEL"
5340     ;;
5341 esac
5342
5343 # Find a good install program.  We prefer a C program (faster),
5344 # so one script is as good as another.  But avoid the broken or
5345 # incompatible versions:
5346 # SysV /etc/install, /usr/sbin/install
5347 # SunOS /usr/etc/install
5348 # IRIX /sbin/install
5349 # AIX /bin/install
5350 # AmigaOS /C/install, which installs bootblocks on floppy discs
5351 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5352 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5353 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5354 # ./install, which can be erroneously created by make from ./install.sh.
5355 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5356 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5357 if test -z "$INSTALL"; then
5358 if test "${ac_cv_path_install+set}" = set; then
5359   echo $ECHO_N "(cached) $ECHO_C" >&6
5360 else
5361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 for as_dir in $PATH
5363 do
5364   IFS=$as_save_IFS
5365   test -z "$as_dir" && as_dir=.
5366   # Account for people who put trailing slashes in PATH elements.
5367 case $as_dir/ in
5368   ./ | .// | /cC/* | \
5369   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5370   /usr/ucb/* ) ;;
5371   *)
5372     # OSF1 and SCO ODT 3.0 have their own names for install.
5373     # Don't use installbsd from OSF since it installs stuff as root
5374     # by default.
5375     for ac_prog in ginstall scoinst install; do
5376       for ac_exec_ext in '' $ac_executable_extensions; do
5377         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5378           if test $ac_prog = install &&
5379             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5380             # AIX install.  It has an incompatible calling convention.
5381             :
5382           elif test $ac_prog = install &&
5383             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5384             # program-specific install script used by HP pwplus--don't use.
5385             :
5386           else
5387             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5388             break 3
5389           fi
5390         fi
5391       done
5392     done
5393     ;;
5394 esac
5395 done
5396
5397
5398 fi
5399   if test "${ac_cv_path_install+set}" = set; then
5400     INSTALL=$ac_cv_path_install
5401   else
5402     # As a last resort, use the slow shell script.  We don't cache a
5403     # path for INSTALL within a source directory, because that will
5404     # break other packages using the cache if that directory is
5405     # removed, or if the path is relative.
5406     INSTALL=$ac_install_sh
5407   fi
5408 fi
5409 echo "$as_me:$LINENO: result: $INSTALL" >&5
5410 echo "${ECHO_T}$INSTALL" >&6
5411
5412 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5413 # It thinks the first close brace ends the variable substitution.
5414 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5415
5416 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5417
5418 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5419
5420
5421 case "$host" in
5422  *-pc-cygwin*)
5423
5424 echo "$as_me:$LINENO: checking for main in -ladvapi32" >&5
5425 echo $ECHO_N "checking for main in -ladvapi32... $ECHO_C" >&6
5426 if test "${ac_cv_lib_advapi32_main+set}" = set; then
5427   echo $ECHO_N "(cached) $ECHO_C" >&6
5428 else
5429   ac_check_lib_save_LIBS=$LIBS
5430 LIBS="-ladvapi32  $LIBS"
5431 cat >conftest.$ac_ext <<_ACEOF
5432 #line $LINENO "configure"
5433 /* confdefs.h.  */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h.  */
5438
5439
5440 int
5441 main ()
5442 {
5443 main ();
5444   ;
5445   return 0;
5446 }
5447 _ACEOF
5448 rm -f conftest.$ac_objext conftest$ac_exeext
5449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5450   (eval $ac_link) 2>&5
5451   ac_status=$?
5452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453   (exit $ac_status); } &&
5454          { ac_try='test -s conftest$ac_exeext'
5455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456   (eval $ac_try) 2>&5
5457   ac_status=$?
5458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459   (exit $ac_status); }; }; then
5460   ac_cv_lib_advapi32_main=yes
5461 else
5462   echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5464
5465 ac_cv_lib_advapi32_main=no
5466 fi
5467 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5468 LIBS=$ac_check_lib_save_LIBS
5469 fi
5470 echo "$as_me:$LINENO: result: $ac_cv_lib_advapi32_main" >&5
5471 echo "${ECHO_T}$ac_cv_lib_advapi32_main" >&6
5472 if test $ac_cv_lib_advapi32_main = yes; then
5473   cat >>confdefs.h <<_ACEOF
5474 #define HAVE_LIBADVAPI32 1
5475 _ACEOF
5476
5477   LIBS="-ladvapi32 $LIBS"
5478
5479 fi
5480
5481     ;;
5482 esac
5483
5484 echo "$as_me:$LINENO: checking for nlist in -lelf" >&5
5485 echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6
5486 if test "${ac_cv_lib_elf_nlist+set}" = set; then
5487   echo $ECHO_N "(cached) $ECHO_C" >&6
5488 else
5489   ac_check_lib_save_LIBS=$LIBS
5490 LIBS="-lelf  $LIBS"
5491 cat >conftest.$ac_ext <<_ACEOF
5492 #line $LINENO "configure"
5493 /* confdefs.h.  */
5494 _ACEOF
5495 cat confdefs.h >>conftest.$ac_ext
5496 cat >>conftest.$ac_ext <<_ACEOF
5497 /* end confdefs.h.  */
5498
5499 /* Override any gcc2 internal prototype to avoid an error.  */
5500 #ifdef __cplusplus
5501 extern "C"
5502 #endif
5503 /* We use char because int might match the return type of a gcc2
5504    builtin and then its argument prototype would still apply.  */
5505 char nlist ();
5506 int
5507 main ()
5508 {
5509 nlist ();
5510   ;
5511   return 0;
5512 }
5513 _ACEOF
5514 rm -f conftest.$ac_objext conftest$ac_exeext
5515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5516   (eval $ac_link) 2>&5
5517   ac_status=$?
5518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519   (exit $ac_status); } &&
5520          { ac_try='test -s conftest$ac_exeext'
5521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5522   (eval $ac_try) 2>&5
5523   ac_status=$?
5524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525   (exit $ac_status); }; }; then
5526   ac_cv_lib_elf_nlist=yes
5527 else
5528   echo "$as_me: failed program was:" >&5
5529 sed 's/^/| /' conftest.$ac_ext >&5
5530
5531 ac_cv_lib_elf_nlist=no
5532 fi
5533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5534 LIBS=$ac_check_lib_save_LIBS
5535 fi
5536 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5
5537 echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6
5538 if test $ac_cv_lib_elf_nlist = yes; then
5539   cat >>confdefs.h <<_ACEOF
5540 #define HAVE_LIBELF 1
5541 _ACEOF
5542
5543   LIBS="-lelf $LIBS"
5544
5545 fi
5546
5547 echo "$as_me:$LINENO: checking for main in -lkvm" >&5
5548 echo $ECHO_N "checking for main in -lkvm... $ECHO_C" >&6
5549 if test "${ac_cv_lib_kvm_main+set}" = set; then
5550   echo $ECHO_N "(cached) $ECHO_C" >&6
5551 else
5552   ac_check_lib_save_LIBS=$LIBS
5553 LIBS="-lkvm  $LIBS"
5554 cat >conftest.$ac_ext <<_ACEOF
5555 #line $LINENO "configure"
5556 /* confdefs.h.  */
5557 _ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h.  */
5561
5562
5563 int
5564 main ()
5565 {
5566 main ();
5567   ;
5568   return 0;
5569 }
5570 _ACEOF
5571 rm -f conftest.$ac_objext conftest$ac_exeext
5572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5573   (eval $ac_link) 2>&5
5574   ac_status=$?
5575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576   (exit $ac_status); } &&
5577          { ac_try='test -s conftest$ac_exeext'
5578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579   (eval $ac_try) 2>&5
5580   ac_status=$?
5581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582   (exit $ac_status); }; }; then
5583   ac_cv_lib_kvm_main=yes
5584 else
5585   echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5587
5588 ac_cv_lib_kvm_main=no
5589 fi
5590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5591 LIBS=$ac_check_lib_save_LIBS
5592 fi
5593 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_main" >&5
5594 echo "${ECHO_T}$ac_cv_lib_kvm_main" >&6
5595 if test $ac_cv_lib_kvm_main = yes; then
5596   cat >>confdefs.h <<_ACEOF
5597 #define HAVE_LIBKVM 1
5598 _ACEOF
5599
5600   LIBS="-lkvm $LIBS"
5601
5602 fi
5603
5604 echo "$as_me:$LINENO: checking for nlist in -lld" >&5
5605 echo $ECHO_N "checking for nlist in -lld... $ECHO_C" >&6
5606 if test "${ac_cv_lib_ld_nlist+set}" = set; then
5607   echo $ECHO_N "(cached) $ECHO_C" >&6
5608 else
5609   ac_check_lib_save_LIBS=$LIBS
5610 LIBS="-lld  $LIBS"
5611 cat >conftest.$ac_ext <<_ACEOF
5612 #line $LINENO "configure"
5613 /* confdefs.h.  */
5614 _ACEOF
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h.  */
5618
5619 /* Override any gcc2 internal prototype to avoid an error.  */
5620 #ifdef __cplusplus
5621 extern "C"
5622 #endif
5623 /* We use char because int might match the return type of a gcc2
5624    builtin and then its argument prototype would still apply.  */
5625 char nlist ();
5626 int
5627 main ()
5628 {
5629 nlist ();
5630   ;
5631   return 0;
5632 }
5633 _ACEOF
5634 rm -f conftest.$ac_objext conftest$ac_exeext
5635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5636   (eval $ac_link) 2>&5
5637   ac_status=$?
5638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639   (exit $ac_status); } &&
5640          { ac_try='test -s conftest$ac_exeext'
5641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642   (eval $ac_try) 2>&5
5643   ac_status=$?
5644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645   (exit $ac_status); }; }; then
5646   ac_cv_lib_ld_nlist=yes
5647 else
5648   echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5650
5651 ac_cv_lib_ld_nlist=no
5652 fi
5653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5654 LIBS=$ac_check_lib_save_LIBS
5655 fi
5656 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_nlist" >&5
5657 echo "${ECHO_T}$ac_cv_lib_ld_nlist" >&6
5658 if test $ac_cv_lib_ld_nlist = yes; then
5659   cat >>confdefs.h <<_ACEOF
5660 #define HAVE_LIBLD 1
5661 _ACEOF
5662
5663   LIBS="-lld $LIBS"
5664
5665 fi
5666
5667
5668 echo "$as_me:$LINENO: checking for nlist in -lmld" >&5
5669 echo $ECHO_N "checking for nlist in -lmld... $ECHO_C" >&6
5670 if test "${ac_cv_lib_mld_nlist+set}" = set; then
5671   echo $ECHO_N "(cached) $ECHO_C" >&6
5672 else
5673   ac_check_lib_save_LIBS=$LIBS
5674 LIBS="-lmld  $LIBS"
5675 cat >conftest.$ac_ext <<_ACEOF
5676 #line $LINENO "configure"
5677 /* confdefs.h.  */
5678 _ACEOF
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h.  */
5682
5683 /* Override any gcc2 internal prototype to avoid an error.  */
5684 #ifdef __cplusplus
5685 extern "C"
5686 #endif
5687 /* We use char because int might match the return type of a gcc2
5688    builtin and then its argument prototype would still apply.  */
5689 char nlist ();
5690 int
5691 main ()
5692 {
5693 nlist ();
5694   ;
5695   return 0;
5696 }
5697 _ACEOF
5698 rm -f conftest.$ac_objext conftest$ac_exeext
5699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5700   (eval $ac_link) 2>&5
5701   ac_status=$?
5702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703   (exit $ac_status); } &&
5704          { ac_try='test -s conftest$ac_exeext'
5705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706   (eval $ac_try) 2>&5
5707   ac_status=$?
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); }; }; then
5710   ac_cv_lib_mld_nlist=yes
5711 else
5712   echo "$as_me: failed program was:" >&5
5713 sed 's/^/| /' conftest.$ac_ext >&5
5714
5715 ac_cv_lib_mld_nlist=no
5716 fi
5717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5718 LIBS=$ac_check_lib_save_LIBS
5719 fi
5720 echo "$as_me:$LINENO: result: $ac_cv_lib_mld_nlist" >&5
5721 echo "${ECHO_T}$ac_cv_lib_mld_nlist" >&6
5722 if test $ac_cv_lib_mld_nlist = yes; then
5723   cat >>confdefs.h <<_ACEOF
5724 #define HAVE_LIBMLD 1
5725 _ACEOF
5726
5727   LIBS="-lmld $LIBS"
5728
5729 fi
5730
5731 echo "$as_me:$LINENO: checking for gethostent" >&5
5732 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
5733 if test "${ac_cv_func_gethostent+set}" = set; then
5734   echo $ECHO_N "(cached) $ECHO_C" >&6
5735 else
5736   cat >conftest.$ac_ext <<_ACEOF
5737 #line $LINENO "configure"
5738 /* confdefs.h.  */
5739 _ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h.  */
5743 /* System header to define __stub macros and hopefully few prototypes,
5744     which can conflict with char gethostent (); below.
5745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5746     <limits.h> exists even on freestanding compilers.  */
5747 #ifdef __STDC__
5748 # include <limits.h>
5749 #else
5750 # include <assert.h>
5751 #endif
5752 /* Override any gcc2 internal prototype to avoid an error.  */
5753 #ifdef __cplusplus
5754 extern "C"
5755 {
5756 #endif
5757 /* We use char because int might match the return type of a gcc2
5758    builtin and then its argument prototype would still apply.  */
5759 char gethostent ();
5760 /* The GNU C library defines this for functions which it implements
5761     to always fail with ENOSYS.  Some functions are actually named
5762     something starting with __ and the normal name is an alias.  */
5763 #if defined (__stub_gethostent) || defined (__stub___gethostent)
5764 choke me
5765 #else
5766 char (*f) () = gethostent;
5767 #endif
5768 #ifdef __cplusplus
5769 }
5770 #endif
5771
5772 int
5773 main ()
5774 {
5775 return f != gethostent;
5776   ;
5777   return 0;
5778 }
5779 _ACEOF
5780 rm -f conftest.$ac_objext conftest$ac_exeext
5781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5782   (eval $ac_link) 2>&5
5783   ac_status=$?
5784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); } &&
5786          { ac_try='test -s conftest$ac_exeext'
5787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788   (eval $ac_try) 2>&5
5789   ac_status=$?
5790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791   (exit $ac_status); }; }; then
5792   ac_cv_func_gethostent=yes
5793 else
5794   echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5796
5797 ac_cv_func_gethostent=no
5798 fi
5799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5800 fi
5801 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
5802 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
5803 if test $ac_cv_func_gethostent = yes; then
5804   :
5805 else
5806
5807 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
5808 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
5809 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
5810   echo $ECHO_N "(cached) $ECHO_C" >&6
5811 else
5812   ac_check_lib_save_LIBS=$LIBS
5813 LIBS="-lnsl -lsocket $LIBS"
5814 cat >conftest.$ac_ext <<_ACEOF
5815 #line $LINENO "configure"
5816 /* confdefs.h.  */
5817 _ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h.  */
5821
5822 /* Override any gcc2 internal prototype to avoid an error.  */
5823 #ifdef __cplusplus
5824 extern "C"
5825 #endif
5826 /* We use char because int might match the return type of a gcc2
5827    builtin and then its argument prototype would still apply.  */
5828 char gethostent ();
5829 int
5830 main ()
5831 {
5832 gethostent ();
5833   ;
5834   return 0;
5835 }
5836 _ACEOF
5837 rm -f conftest.$ac_objext conftest$ac_exeext
5838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5839   (eval $ac_link) 2>&5
5840   ac_status=$?
5841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842   (exit $ac_status); } &&
5843          { ac_try='test -s conftest$ac_exeext'
5844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845   (eval $ac_try) 2>&5
5846   ac_status=$?
5847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848   (exit $ac_status); }; }; then
5849   ac_cv_lib_nsl_gethostent=yes
5850 else
5851   echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5853
5854 ac_cv_lib_nsl_gethostent=no
5855 fi
5856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5857 LIBS=$ac_check_lib_save_LIBS
5858 fi
5859 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
5860 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
5861 if test $ac_cv_lib_nsl_gethostent = yes; then
5862   cat >>confdefs.h <<_ACEOF
5863 #define HAVE_LIBNSL 1
5864 _ACEOF
5865
5866   LIBS="-lnsl $LIBS"
5867
5868 fi
5869
5870 fi
5871
5872 echo "$as_me:$LINENO: checking for openlog" >&5
5873 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
5874 if test "${ac_cv_func_openlog+set}" = set; then
5875   echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877   cat >conftest.$ac_ext <<_ACEOF
5878 #line $LINENO "configure"
5879 /* confdefs.h.  */
5880 _ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h.  */
5884 /* System header to define __stub macros and hopefully few prototypes,
5885     which can conflict with char openlog (); below.
5886     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5887     <limits.h> exists even on freestanding compilers.  */
5888 #ifdef __STDC__
5889 # include <limits.h>
5890 #else
5891 # include <assert.h>
5892 #endif
5893 /* Override any gcc2 internal prototype to avoid an error.  */
5894 #ifdef __cplusplus
5895 extern "C"
5896 {
5897 #endif
5898 /* We use char because int might match the return type of a gcc2
5899    builtin and then its argument prototype would still apply.  */
5900 char openlog ();
5901 /* The GNU C library defines this for functions which it implements
5902     to always fail with ENOSYS.  Some functions are actually named
5903     something starting with __ and the normal name is an alias.  */
5904 #if defined (__stub_openlog) || defined (__stub___openlog)
5905 choke me
5906 #else
5907 char (*f) () = openlog;
5908 #endif
5909 #ifdef __cplusplus
5910 }
5911 #endif
5912
5913 int
5914 main ()
5915 {
5916 return f != openlog;
5917   ;
5918   return 0;
5919 }
5920 _ACEOF
5921 rm -f conftest.$ac_objext conftest$ac_exeext
5922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5923   (eval $ac_link) 2>&5
5924   ac_status=$?
5925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926   (exit $ac_status); } &&
5927          { ac_try='test -s conftest$ac_exeext'
5928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929   (eval $ac_try) 2>&5
5930   ac_status=$?
5931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932   (exit $ac_status); }; }; then
5933   ac_cv_func_openlog=yes
5934 else
5935   echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5937
5938 ac_cv_func_openlog=no
5939 fi
5940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5941 fi
5942 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
5943 echo "${ECHO_T}$ac_cv_func_openlog" >&6
5944 if test $ac_cv_func_openlog = yes; then
5945   :
5946 else
5947
5948 echo "$as_me:$LINENO: checking for openlog in -lgen" >&5
5949 echo $ECHO_N "checking for openlog in -lgen... $ECHO_C" >&6
5950 if test "${ac_cv_lib_gen_openlog+set}" = set; then
5951   echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953   ac_check_lib_save_LIBS=$LIBS
5954 LIBS="-lgen  $LIBS"
5955 cat >conftest.$ac_ext <<_ACEOF
5956 #line $LINENO "configure"
5957 /* confdefs.h.  */
5958 _ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h.  */
5962
5963 /* Override any gcc2 internal prototype to avoid an error.  */
5964 #ifdef __cplusplus
5965 extern "C"
5966 #endif
5967 /* We use char because int might match the return type of a gcc2
5968    builtin and then its argument prototype would still apply.  */
5969 char openlog ();
5970 int
5971 main ()
5972 {
5973 openlog ();
5974   ;
5975   return 0;
5976 }
5977 _ACEOF
5978 rm -f conftest.$ac_objext conftest$ac_exeext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5980   (eval $ac_link) 2>&5
5981   ac_status=$?
5982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983   (exit $ac_status); } &&
5984          { ac_try='test -s conftest$ac_exeext'
5985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986   (eval $ac_try) 2>&5
5987   ac_status=$?
5988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989   (exit $ac_status); }; }; then
5990   ac_cv_lib_gen_openlog=yes
5991 else
5992   echo "$as_me: failed program was:" >&5
5993 sed 's/^/| /' conftest.$ac_ext >&5
5994
5995 ac_cv_lib_gen_openlog=no
5996 fi
5997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5998 LIBS=$ac_check_lib_save_LIBS
5999 fi
6000 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_openlog" >&5
6001 echo "${ECHO_T}$ac_cv_lib_gen_openlog" >&6
6002 if test $ac_cv_lib_gen_openlog = yes; then
6003   cat >>confdefs.h <<_ACEOF
6004 #define HAVE_LIBGEN 1
6005 _ACEOF
6006
6007   LIBS="-lgen $LIBS"
6008
6009 else
6010
6011 echo "$as_me:$LINENO: checking for openlog in -lsyslog" >&5
6012 echo $ECHO_N "checking for openlog in -lsyslog... $ECHO_C" >&6
6013 if test "${ac_cv_lib_syslog_openlog+set}" = set; then
6014   echo $ECHO_N "(cached) $ECHO_C" >&6
6015 else
6016   ac_check_lib_save_LIBS=$LIBS
6017 LIBS="-lsyslog -lsocket $LIBS"
6018 cat >conftest.$ac_ext <<_ACEOF
6019 #line $LINENO "configure"
6020 /* confdefs.h.  */
6021 _ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h.  */
6025
6026 /* Override any gcc2 internal prototype to avoid an error.  */
6027 #ifdef __cplusplus
6028 extern "C"
6029 #endif
6030 /* We use char because int might match the return type of a gcc2
6031    builtin and then its argument prototype would still apply.  */
6032 char openlog ();
6033 int
6034 main ()
6035 {
6036 openlog ();
6037   ;
6038   return 0;
6039 }
6040 _ACEOF
6041 rm -f conftest.$ac_objext conftest$ac_exeext
6042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6043   (eval $ac_link) 2>&5
6044   ac_status=$?
6045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046   (exit $ac_status); } &&
6047          { ac_try='test -s conftest$ac_exeext'
6048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049   (eval $ac_try) 2>&5
6050   ac_status=$?
6051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052   (exit $ac_status); }; }; then
6053   ac_cv_lib_syslog_openlog=yes
6054 else
6055   echo "$as_me: failed program was:" >&5
6056 sed 's/^/| /' conftest.$ac_ext >&5
6057
6058 ac_cv_lib_syslog_openlog=no
6059 fi
6060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6061 LIBS=$ac_check_lib_save_LIBS
6062 fi
6063 echo "$as_me:$LINENO: result: $ac_cv_lib_syslog_openlog" >&5
6064 echo "${ECHO_T}$ac_cv_lib_syslog_openlog" >&6
6065 if test $ac_cv_lib_syslog_openlog = yes; then
6066   cat >>confdefs.h <<_ACEOF
6067 #define HAVE_LIBSYSLOG 1
6068 _ACEOF
6069
6070   LIBS="-lsyslog $LIBS"
6071
6072 fi
6073
6074 fi
6075
6076 fi
6077
6078
6079 echo "$as_me:$LINENO: checking for MD5Init in -lmd5" >&5
6080 echo $ECHO_N "checking for MD5Init in -lmd5... $ECHO_C" >&6
6081 if test "${ac_cv_lib_md5_MD5Init+set}" = set; then
6082   echo $ECHO_N "(cached) $ECHO_C" >&6
6083 else
6084   ac_check_lib_save_LIBS=$LIBS
6085 LIBS="-lmd5  $LIBS"
6086 cat >conftest.$ac_ext <<_ACEOF
6087 #line $LINENO "configure"
6088 /* confdefs.h.  */
6089 _ACEOF
6090 cat confdefs.h >>conftest.$ac_ext
6091 cat >>conftest.$ac_ext <<_ACEOF
6092 /* end confdefs.h.  */
6093
6094 /* Override any gcc2 internal prototype to avoid an error.  */
6095 #ifdef __cplusplus
6096 extern "C"
6097 #endif
6098 /* We use char because int might match the return type of a gcc2
6099    builtin and then its argument prototype would still apply.  */
6100 char MD5Init ();
6101 int
6102 main ()
6103 {
6104 MD5Init ();
6105   ;
6106   return 0;
6107 }
6108 _ACEOF
6109 rm -f conftest.$ac_objext conftest$ac_exeext
6110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6111   (eval $ac_link) 2>&5
6112   ac_status=$?
6113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114   (exit $ac_status); } &&
6115          { ac_try='test -s conftest$ac_exeext'
6116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117   (eval $ac_try) 2>&5
6118   ac_status=$?
6119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120   (exit $ac_status); }; }; then
6121   ac_cv_lib_md5_MD5Init=yes
6122 else
6123   echo "$as_me: failed program was:" >&5
6124 sed 's/^/| /' conftest.$ac_ext >&5
6125
6126 ac_cv_lib_md5_MD5Init=no
6127 fi
6128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6129 LIBS=$ac_check_lib_save_LIBS
6130 fi
6131 echo "$as_me:$LINENO: result: $ac_cv_lib_md5_MD5Init" >&5
6132 echo "${ECHO_T}$ac_cv_lib_md5_MD5Init" >&6
6133 if test $ac_cv_lib_md5_MD5Init = yes; then
6134   cat >>confdefs.h <<_ACEOF
6135 #define HAVE_LIBMD5 1
6136 _ACEOF
6137
6138   LIBS="-lmd5 $LIBS"
6139
6140 else
6141
6142 echo "$as_me:$LINENO: checking for MD5Init in -lmd" >&5
6143 echo $ECHO_N "checking for MD5Init in -lmd... $ECHO_C" >&6
6144 if test "${ac_cv_lib_md_MD5Init+set}" = set; then
6145   echo $ECHO_N "(cached) $ECHO_C" >&6
6146 else
6147   ac_check_lib_save_LIBS=$LIBS
6148 LIBS="-lmd  $LIBS"
6149 cat >conftest.$ac_ext <<_ACEOF
6150 #line $LINENO "configure"
6151 /* confdefs.h.  */
6152 _ACEOF
6153 cat confdefs.h >>conftest.$ac_ext
6154 cat >>conftest.$ac_ext <<_ACEOF
6155 /* end confdefs.h.  */
6156
6157 /* Override any gcc2 internal prototype to avoid an error.  */
6158 #ifdef __cplusplus
6159 extern "C"
6160 #endif
6161 /* We use char because int might match the return type of a gcc2
6162    builtin and then its argument prototype would still apply.  */
6163 char MD5Init ();
6164 int
6165 main ()
6166 {
6167 MD5Init ();
6168   ;
6169   return 0;
6170 }
6171 _ACEOF
6172 rm -f conftest.$ac_objext conftest$ac_exeext
6173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6174   (eval $ac_link) 2>&5
6175   ac_status=$?
6176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177   (exit $ac_status); } &&
6178          { ac_try='test -s conftest$ac_exeext'
6179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180   (eval $ac_try) 2>&5
6181   ac_status=$?
6182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183   (exit $ac_status); }; }; then
6184   ac_cv_lib_md_MD5Init=yes
6185 else
6186   echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6188
6189 ac_cv_lib_md_MD5Init=no
6190 fi
6191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6192 LIBS=$ac_check_lib_save_LIBS
6193 fi
6194 echo "$as_me:$LINENO: result: $ac_cv_lib_md_MD5Init" >&5
6195 echo "${ECHO_T}$ac_cv_lib_md_MD5Init" >&6
6196 if test $ac_cv_lib_md_MD5Init = yes; then
6197   cat >>confdefs.h <<_ACEOF
6198 #define HAVE_LIBMD 1
6199 _ACEOF
6200
6201   LIBS="-lmd $LIBS"
6202
6203 fi
6204
6205 fi
6206
6207
6208 for ac_func in MD5Init
6209 do
6210 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6211 echo "$as_me:$LINENO: checking for $ac_func" >&5
6212 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6213 if eval "test \"\${$as_ac_var+set}\" = set"; then
6214   echo $ECHO_N "(cached) $ECHO_C" >&6
6215 else
6216   cat >conftest.$ac_ext <<_ACEOF
6217 #line $LINENO "configure"
6218 /* confdefs.h.  */
6219 _ACEOF
6220 cat confdefs.h >>conftest.$ac_ext
6221 cat >>conftest.$ac_ext <<_ACEOF
6222 /* end confdefs.h.  */
6223 /* System header to define __stub macros and hopefully few prototypes,
6224     which can conflict with char $ac_func (); below.
6225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6226     <limits.h> exists even on freestanding compilers.  */
6227 #ifdef __STDC__
6228 # include <limits.h>
6229 #else
6230 # include <assert.h>
6231 #endif
6232 /* Override any gcc2 internal prototype to avoid an error.  */
6233 #ifdef __cplusplus
6234 extern "C"
6235 {
6236 #endif
6237 /* We use char because int might match the return type of a gcc2
6238    builtin and then its argument prototype would still apply.  */
6239 char $ac_func ();
6240 /* The GNU C library defines this for functions which it implements
6241     to always fail with ENOSYS.  Some functions are actually named
6242     something starting with __ and the normal name is an alias.  */
6243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6244 choke me
6245 #else
6246 char (*f) () = $ac_func;
6247 #endif
6248 #ifdef __cplusplus
6249 }
6250 #endif
6251
6252 int
6253 main ()
6254 {
6255 return f != $ac_func;
6256   ;
6257   return 0;
6258 }
6259 _ACEOF
6260 rm -f conftest.$ac_objext conftest$ac_exeext
6261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6262   (eval $ac_link) 2>&5
6263   ac_status=$?
6264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265   (exit $ac_status); } &&
6266          { ac_try='test -s conftest$ac_exeext'
6267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268   (eval $ac_try) 2>&5
6269   ac_status=$?
6270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271   (exit $ac_status); }; }; then
6272   eval "$as_ac_var=yes"
6273 else
6274   echo "$as_me: failed program was:" >&5
6275 sed 's/^/| /' conftest.$ac_ext >&5
6276
6277 eval "$as_ac_var=no"
6278 fi
6279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6280 fi
6281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6283 if test `eval echo '${'$as_ac_var'}'` = yes; then
6284   cat >>confdefs.h <<_ACEOF
6285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6286 _ACEOF
6287
6288 fi
6289 done
6290
6291
6292
6293 for ac_header in readline/history.h readline/readline.h
6294 do
6295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6297   echo "$as_me:$LINENO: checking for $ac_header" >&5
6298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6300   echo $ECHO_N "(cached) $ECHO_C" >&6
6301 fi
6302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6304 else
6305   # Is the header compilable?
6306 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6308 cat >conftest.$ac_ext <<_ACEOF
6309 #line $LINENO "configure"
6310 /* confdefs.h.  */
6311 _ACEOF
6312 cat confdefs.h >>conftest.$ac_ext
6313 cat >>conftest.$ac_ext <<_ACEOF
6314 /* end confdefs.h.  */
6315 $ac_includes_default
6316 #include <$ac_header>
6317 _ACEOF
6318 rm -f conftest.$ac_objext
6319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6320   (eval $ac_compile) 2>&5
6321   ac_status=$?
6322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323   (exit $ac_status); } &&
6324          { ac_try='test -s conftest.$ac_objext'
6325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326   (eval $ac_try) 2>&5
6327   ac_status=$?
6328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329   (exit $ac_status); }; }; then
6330   ac_header_compiler=yes
6331 else
6332   echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.$ac_ext >&5
6334
6335 ac_header_compiler=no
6336 fi
6337 rm -f conftest.$ac_objext conftest.$ac_ext
6338 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6339 echo "${ECHO_T}$ac_header_compiler" >&6
6340
6341 # Is the header present?
6342 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6344 cat >conftest.$ac_ext <<_ACEOF
6345 #line $LINENO "configure"
6346 /* confdefs.h.  */
6347 _ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h.  */
6351 #include <$ac_header>
6352 _ACEOF
6353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6354   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6355   ac_status=$?
6356   grep -v '^ *+' conftest.er1 >conftest.err
6357   rm -f conftest.er1
6358   cat conftest.err >&5
6359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360   (exit $ac_status); } >/dev/null; then
6361   if test -s conftest.err; then
6362     ac_cpp_err=$ac_c_preproc_warn_flag
6363   else
6364     ac_cpp_err=
6365   fi
6366 else
6367   ac_cpp_err=yes
6368 fi
6369 if test -z "$ac_cpp_err"; then
6370   ac_header_preproc=yes
6371 else
6372   echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6374
6375   ac_header_preproc=no
6376 fi
6377 rm -f conftest.err conftest.$ac_ext
6378 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6379 echo "${ECHO_T}$ac_header_preproc" >&6
6380
6381 # So?  What about this header?
6382 case $ac_header_compiler:$ac_header_preproc in
6383   yes:no )
6384     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6386     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6388     (
6389       cat <<\_ASBOX
6390 ## ------------------------------------ ##
6391 ## Report this to bug-autoconf@gnu.org. ##
6392 ## ------------------------------------ ##
6393 _ASBOX
6394     ) |
6395       sed "s/^/$as_me: WARNING:     /" >&2
6396     ;;
6397   no:yes )
6398     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6400     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6401 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6402     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6404     (
6405       cat <<\_ASBOX
6406 ## ------------------------------------ ##
6407 ## Report this to bug-autoconf@gnu.org. ##
6408 ## ------------------------------------ ##
6409 _ASBOX
6410     ) |
6411       sed "s/^/$as_me: WARNING:     /" >&2
6412     ;;
6413 esac
6414 echo "$as_me:$LINENO: checking for $ac_header" >&5
6415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6417   echo $ECHO_N "(cached) $ECHO_C" >&6
6418 else
6419   eval "$as_ac_Header=$ac_header_preproc"
6420 fi
6421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6423
6424 fi
6425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6426   cat >>confdefs.h <<_ACEOF
6427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6428 _ACEOF
6429
6430 fi
6431
6432 done
6433
6434 case "$ac_cv_header_readline_history_h$ac_cv_header_readline_readline_h" in
6435  *no*) ;;
6436  *) save_LIBS=$LIBS
6437     LIBS=
6438
6439 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
6440 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
6441 if test "${ac_cv_lib_readline_readline+set}" = set; then
6442   echo $ECHO_N "(cached) $ECHO_C" >&6
6443 else
6444   ac_check_lib_save_LIBS=$LIBS
6445 LIBS="-lreadline  $LIBS"
6446 cat >conftest.$ac_ext <<_ACEOF
6447 #line $LINENO "configure"
6448 /* confdefs.h.  */
6449 _ACEOF
6450 cat confdefs.h >>conftest.$ac_ext
6451 cat >>conftest.$ac_ext <<_ACEOF
6452 /* end confdefs.h.  */
6453
6454 /* Override any gcc2 internal prototype to avoid an error.  */
6455 #ifdef __cplusplus
6456 extern "C"
6457 #endif
6458 /* We use char because int might match the return type of a gcc2
6459    builtin and then its argument prototype would still apply.  */
6460 char readline ();
6461 int
6462 main ()
6463 {
6464 readline ();
6465   ;
6466   return 0;
6467 }
6468 _ACEOF
6469 rm -f conftest.$ac_objext conftest$ac_exeext
6470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6471   (eval $ac_link) 2>&5
6472   ac_status=$?
6473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474   (exit $ac_status); } &&
6475          { ac_try='test -s conftest$ac_exeext'
6476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477   (eval $ac_try) 2>&5
6478   ac_status=$?
6479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480   (exit $ac_status); }; }; then
6481   ac_cv_lib_readline_readline=yes
6482 else
6483   echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6485
6486 ac_cv_lib_readline_readline=no
6487 fi
6488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6489 LIBS=$ac_check_lib_save_LIBS
6490 fi
6491 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
6492 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
6493 if test $ac_cv_lib_readline_readline = yes; then
6494   cat >>confdefs.h <<_ACEOF
6495 #define HAVE_LIBREADLINE 1
6496 _ACEOF
6497
6498   LIBS="-lreadline $LIBS"
6499
6500 else
6501   { echo "$as_me:$LINENO: Trying again with -lcurses" >&5
6502 echo "$as_me: Trying again with -lcurses" >&6;}
6503      unset ac_cv_lib_readline_readline
6504      echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
6505 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
6506 if test "${ac_cv_lib_readline_readline+set}" = set; then
6507   echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509   ac_check_lib_save_LIBS=$LIBS
6510 LIBS="-lreadline -lcurses $LIBS"
6511 cat >conftest.$ac_ext <<_ACEOF
6512 #line $LINENO "configure"
6513 /* confdefs.h.  */
6514 _ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h.  */
6518
6519 /* Override any gcc2 internal prototype to avoid an error.  */
6520 #ifdef __cplusplus
6521 extern "C"
6522 #endif
6523 /* We use char because int might match the return type of a gcc2
6524    builtin and then its argument prototype would still apply.  */
6525 char readline ();
6526 int
6527 main ()
6528 {
6529 readline ();
6530   ;
6531   return 0;
6532 }
6533 _ACEOF
6534 rm -f conftest.$ac_objext conftest$ac_exeext
6535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6536   (eval $ac_link) 2>&5
6537   ac_status=$?
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); } &&
6540          { ac_try='test -s conftest$ac_exeext'
6541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542   (eval $ac_try) 2>&5
6543   ac_status=$?
6544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545   (exit $ac_status); }; }; then
6546   ac_cv_lib_readline_readline=yes
6547 else
6548   echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6550
6551 ac_cv_lib_readline_readline=no
6552 fi
6553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6554 LIBS=$ac_check_lib_save_LIBS
6555 fi
6556 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
6557 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
6558 if test $ac_cv_lib_readline_readline = yes; then
6559   LIBS="-lreadline -lcurses $LIBS"
6560       cat >>confdefs.h <<\_ACEOF
6561 #define HAVE_LIBREADLINE 1
6562 _ACEOF
6563
6564
6565 cat >>confdefs.h <<\_ACEOF
6566 #define HAVE_LIBCURSES
6567 _ACEOF
6568
6569 else
6570   echo "$as_me:$LINENO: checking for readline in -ledit" >&5
6571 echo $ECHO_N "checking for readline in -ledit... $ECHO_C" >&6
6572 if test "${ac_cv_lib_edit_readline+set}" = set; then
6573   echo $ECHO_N "(cached) $ECHO_C" >&6
6574 else
6575   ac_check_lib_save_LIBS=$LIBS
6576 LIBS="-ledit -lcurses $LIBS"
6577 cat >conftest.$ac_ext <<_ACEOF
6578 #line $LINENO "configure"
6579 /* confdefs.h.  */
6580 _ACEOF
6581 cat confdefs.h >>conftest.$ac_ext
6582 cat >>conftest.$ac_ext <<_ACEOF
6583 /* end confdefs.h.  */
6584
6585 /* Override any gcc2 internal prototype to avoid an error.  */
6586 #ifdef __cplusplus
6587 extern "C"
6588 #endif
6589 /* We use char because int might match the return type of a gcc2
6590    builtin and then its argument prototype would still apply.  */
6591 char readline ();
6592 int
6593 main ()
6594 {
6595 readline ();
6596   ;
6597   return 0;
6598 }
6599 _ACEOF
6600 rm -f conftest.$ac_objext conftest$ac_exeext
6601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6602   (eval $ac_link) 2>&5
6603   ac_status=$?
6604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605   (exit $ac_status); } &&
6606          { ac_try='test -s conftest$ac_exeext'
6607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608   (eval $ac_try) 2>&5
6609   ac_status=$?
6610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611   (exit $ac_status); }; }; then
6612   ac_cv_lib_edit_readline=yes
6613 else
6614   echo "$as_me: failed program was:" >&5
6615 sed 's/^/| /' conftest.$ac_ext >&5
6616
6617 ac_cv_lib_edit_readline=no
6618 fi
6619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6620 LIBS=$ac_check_lib_save_LIBS
6621 fi
6622 echo "$as_me:$LINENO: result: $ac_cv_lib_edit_readline" >&5
6623 echo "${ECHO_T}$ac_cv_lib_edit_readline" >&6
6624 if test $ac_cv_lib_edit_readline = yes; then
6625   LIBS="-ledit -lcurses"
6626
6627 cat >>confdefs.h <<\_ACEOF
6628 #define HAVE_LIBEDIT
6629 _ACEOF
6630
6631
6632 cat >>confdefs.h <<\_ACEOF
6633 #define HAVE_LIBCURSES
6634 _ACEOF
6635
6636
6637 fi
6638
6639
6640 fi
6641
6642 fi
6643
6644     READLINE_LIBS=$LIBS
6645
6646     LIBS=$save_LIBS
6647     ;;
6648 esac
6649
6650
6651 case "$host" in
6652  *-*-linux*) ;;
6653  *)
6654
6655 echo "$as_me:$LINENO: checking for sched_setscheduler in -lrt" >&5
6656 echo $ECHO_N "checking for sched_setscheduler in -lrt... $ECHO_C" >&6
6657 if test "${ac_cv_lib_rt_sched_setscheduler+set}" = set; then
6658   echo $ECHO_N "(cached) $ECHO_C" >&6
6659 else
6660   ac_check_lib_save_LIBS=$LIBS
6661 LIBS="-lrt  $LIBS"
6662 cat >conftest.$ac_ext <<_ACEOF
6663 #line $LINENO "configure"
6664 /* confdefs.h.  */
6665 _ACEOF
6666 cat confdefs.h >>conftest.$ac_ext
6667 cat >>conftest.$ac_ext <<_ACEOF
6668 /* end confdefs.h.  */
6669
6670 /* Override any gcc2 internal prototype to avoid an error.  */
6671 #ifdef __cplusplus
6672 extern "C"
6673 #endif
6674 /* We use char because int might match the return type of a gcc2
6675    builtin and then its argument prototype would still apply.  */
6676 char sched_setscheduler ();
6677 int
6678 main ()
6679 {
6680 sched_setscheduler ();
6681   ;
6682   return 0;
6683 }
6684 _ACEOF
6685 rm -f conftest.$ac_objext conftest$ac_exeext
6686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6687   (eval $ac_link) 2>&5
6688   ac_status=$?
6689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690   (exit $ac_status); } &&
6691          { ac_try='test -s conftest$ac_exeext'
6692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693   (eval $ac_try) 2>&5
6694   ac_status=$?
6695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696   (exit $ac_status); }; }; then
6697   ac_cv_lib_rt_sched_setscheduler=yes
6698 else
6699   echo "$as_me: failed program was:" >&5
6700 sed 's/^/| /' conftest.$ac_ext >&5
6701
6702 ac_cv_lib_rt_sched_setscheduler=no
6703 fi
6704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6705 LIBS=$ac_check_lib_save_LIBS
6706 fi
6707 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_setscheduler" >&5
6708 echo "${ECHO_T}$ac_cv_lib_rt_sched_setscheduler" >&6
6709 if test $ac_cv_lib_rt_sched_setscheduler = yes; then
6710   cat >>confdefs.h <<_ACEOF
6711 #define HAVE_LIBRT 1
6712 _ACEOF
6713
6714   LIBS="-lrt $LIBS"
6715
6716 else
6717
6718 echo "$as_me:$LINENO: checking for sched_setscheduler in -lposix4" >&5
6719 echo $ECHO_N "checking for sched_setscheduler in -lposix4... $ECHO_C" >&6
6720 if test "${ac_cv_lib_posix4_sched_setscheduler+set}" = set; then
6721   echo $ECHO_N "(cached) $ECHO_C" >&6
6722 else
6723   ac_check_lib_save_LIBS=$LIBS
6724 LIBS="-lposix4  $LIBS"
6725 cat >conftest.$ac_ext <<_ACEOF
6726 #line $LINENO "configure"
6727 /* confdefs.h.  */
6728 _ACEOF
6729 cat confdefs.h >>conftest.$ac_ext
6730 cat >>conftest.$ac_ext <<_ACEOF
6731 /* end confdefs.h.  */
6732
6733 /* Override any gcc2 internal prototype to avoid an error.  */
6734 #ifdef __cplusplus
6735 extern "C"
6736 #endif
6737 /* We use char because int might match the return type of a gcc2
6738    builtin and then its argument prototype would still apply.  */
6739 char sched_setscheduler ();
6740 int
6741 main ()
6742 {
6743 sched_setscheduler ();
6744   ;
6745   return 0;
6746 }
6747 _ACEOF
6748 rm -f conftest.$ac_objext conftest$ac_exeext
6749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6750   (eval $ac_link) 2>&5
6751   ac_status=$?
6752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753   (exit $ac_status); } &&
6754          { ac_try='test -s conftest$ac_exeext'
6755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756   (eval $ac_try) 2>&5
6757   ac_status=$?
6758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759   (exit $ac_status); }; }; then
6760   ac_cv_lib_posix4_sched_setscheduler=yes
6761 else
6762   echo "$as_me: failed program was:" >&5
6763 sed 's/^/| /' conftest.$ac_ext >&5
6764
6765 ac_cv_lib_posix4_sched_setscheduler=no
6766 fi
6767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6768 LIBS=$ac_check_lib_save_LIBS
6769 fi
6770 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_setscheduler" >&5
6771 echo "${ECHO_T}$ac_cv_lib_posix4_sched_setscheduler" >&6
6772 if test $ac_cv_lib_posix4_sched_setscheduler = yes; then
6773   cat >>confdefs.h <<_ACEOF
6774 #define HAVE_LIBPOSIX4 1
6775 _ACEOF
6776
6777   LIBS="-lposix4 $LIBS"
6778
6779 fi
6780
6781 fi
6782
6783     ;;
6784 esac
6785
6786 echo "$as_me:$LINENO: checking for setsockopt" >&5
6787 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
6788 if test "${ac_cv_func_setsockopt+set}" = set; then
6789   echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791   cat >conftest.$ac_ext <<_ACEOF
6792 #line $LINENO "configure"
6793 /* confdefs.h.  */
6794 _ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h.  */
6798 /* System header to define __stub macros and hopefully few prototypes,
6799     which can conflict with char setsockopt (); below.
6800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6801     <limits.h> exists even on freestanding compilers.  */
6802 #ifdef __STDC__
6803 # include <limits.h>
6804 #else
6805 # include <assert.h>
6806 #endif
6807 /* Override any gcc2 internal prototype to avoid an error.  */
6808 #ifdef __cplusplus
6809 extern "C"
6810 {
6811 #endif
6812 /* We use char because int might match the return type of a gcc2
6813    builtin and then its argument prototype would still apply.  */
6814 char setsockopt ();
6815 /* The GNU C library defines this for functions which it implements
6816     to always fail with ENOSYS.  Some functions are actually named
6817     something starting with __ and the normal name is an alias.  */
6818 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
6819 choke me
6820 #else
6821 char (*f) () = setsockopt;
6822 #endif
6823 #ifdef __cplusplus
6824 }
6825 #endif
6826
6827 int
6828 main ()
6829 {
6830 return f != setsockopt;
6831   ;
6832   return 0;
6833 }
6834 _ACEOF
6835 rm -f conftest.$ac_objext conftest$ac_exeext
6836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6837   (eval $ac_link) 2>&5
6838   ac_status=$?
6839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840   (exit $ac_status); } &&
6841          { ac_try='test -s conftest$ac_exeext'
6842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6843   (eval $ac_try) 2>&5
6844   ac_status=$?
6845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846   (exit $ac_status); }; }; then
6847   ac_cv_func_setsockopt=yes
6848 else
6849   echo "$as_me: failed program was:" >&5
6850 sed 's/^/| /' conftest.$ac_ext >&5
6851
6852 ac_cv_func_setsockopt=no
6853 fi
6854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6855 fi
6856 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
6857 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
6858 if test $ac_cv_func_setsockopt = yes; then
6859   :
6860 else
6861
6862 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
6863 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
6864 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
6865   echo $ECHO_N "(cached) $ECHO_C" >&6
6866 else
6867   ac_check_lib_save_LIBS=$LIBS
6868 LIBS="-lsocket  $LIBS"
6869 cat >conftest.$ac_ext <<_ACEOF
6870 #line $LINENO "configure"
6871 /* confdefs.h.  */
6872 _ACEOF
6873 cat confdefs.h >>conftest.$ac_ext
6874 cat >>conftest.$ac_ext <<_ACEOF
6875 /* end confdefs.h.  */
6876
6877 /* Override any gcc2 internal prototype to avoid an error.  */
6878 #ifdef __cplusplus
6879 extern "C"
6880 #endif
6881 /* We use char because int might match the return type of a gcc2
6882    builtin and then its argument prototype would still apply.  */
6883 char setsockopt ();
6884 int
6885 main ()
6886 {
6887 setsockopt ();
6888   ;
6889   return 0;
6890 }
6891 _ACEOF
6892 rm -f conftest.$ac_objext conftest$ac_exeext
6893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6894   (eval $ac_link) 2>&5
6895   ac_status=$?
6896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897   (exit $ac_status); } &&
6898          { ac_try='test -s conftest$ac_exeext'
6899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900   (eval $ac_try) 2>&5
6901   ac_status=$?
6902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903   (exit $ac_status); }; }; then
6904   ac_cv_lib_socket_setsockopt=yes
6905 else
6906   echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6908
6909 ac_cv_lib_socket_setsockopt=no
6910 fi
6911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6912 LIBS=$ac_check_lib_save_LIBS
6913 fi
6914 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
6915 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
6916 if test $ac_cv_lib_socket_setsockopt = yes; then
6917   cat >>confdefs.h <<_ACEOF
6918 #define HAVE_LIBSOCKET 1
6919 _ACEOF
6920
6921   LIBS="-lsocket $LIBS"
6922
6923 fi
6924
6925 fi
6926
6927
6928 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6929 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6930 if test "${ac_cv_header_stdc+set}" = set; then
6931   echo $ECHO_N "(cached) $ECHO_C" >&6
6932 else
6933   cat >conftest.$ac_ext <<_ACEOF
6934 #line $LINENO "configure"
6935 /* confdefs.h.  */
6936 _ACEOF
6937 cat confdefs.h >>conftest.$ac_ext
6938 cat >>conftest.$ac_ext <<_ACEOF
6939 /* end confdefs.h.  */
6940 #include <stdlib.h>
6941 #include <stdarg.h>
6942 #include <string.h>
6943 #include <float.h>
6944
6945 int
6946 main ()
6947 {
6948
6949   ;
6950   return 0;
6951 }
6952 _ACEOF
6953 rm -f conftest.$ac_objext
6954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6955   (eval $ac_compile) 2>&5
6956   ac_status=$?
6957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958   (exit $ac_status); } &&
6959          { ac_try='test -s conftest.$ac_objext'
6960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961   (eval $ac_try) 2>&5
6962   ac_status=$?
6963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964   (exit $ac_status); }; }; then
6965   ac_cv_header_stdc=yes
6966 else
6967   echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6969
6970 ac_cv_header_stdc=no
6971 fi
6972 rm -f conftest.$ac_objext conftest.$ac_ext
6973
6974 if test $ac_cv_header_stdc = yes; then
6975   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6976   cat >conftest.$ac_ext <<_ACEOF
6977 #line $LINENO "configure"
6978 /* confdefs.h.  */
6979 _ACEOF
6980 cat confdefs.h >>conftest.$ac_ext
6981 cat >>conftest.$ac_ext <<_ACEOF
6982 /* end confdefs.h.  */
6983 #include <string.h>
6984
6985 _ACEOF
6986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6987   $EGREP "memchr" >/dev/null 2>&1; then
6988   :
6989 else
6990   ac_cv_header_stdc=no
6991 fi
6992 rm -f conftest*
6993
6994 fi
6995
6996 if test $ac_cv_header_stdc = yes; then
6997   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6998   cat >conftest.$ac_ext <<_ACEOF
6999 #line $LINENO "configure"
7000 /* confdefs.h.  */
7001 _ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h.  */
7005 #include <stdlib.h>
7006
7007 _ACEOF
7008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7009   $EGREP "free" >/dev/null 2>&1; then
7010   :
7011 else
7012   ac_cv_header_stdc=no
7013 fi
7014 rm -f conftest*
7015
7016 fi
7017
7018 if test $ac_cv_header_stdc = yes; then
7019   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7020   if test "$cross_compiling" = yes; then
7021   :
7022 else
7023   cat >conftest.$ac_ext <<_ACEOF
7024 #line $LINENO "configure"
7025 /* confdefs.h.  */
7026 _ACEOF
7027 cat confdefs.h >>conftest.$ac_ext
7028 cat >>conftest.$ac_ext <<_ACEOF
7029 /* end confdefs.h.  */
7030 #include <ctype.h>
7031 #if ((' ' & 0x0FF) == 0x020)
7032 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7033 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7034 #else
7035 # define ISLOWER(c) \
7036                    (('a' <= (c) && (c) <= 'i') \
7037                      || ('j' <= (c) && (c) <= 'r') \
7038                      || ('s' <= (c) && (c) <= 'z'))
7039 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7040 #endif
7041
7042 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7043 int
7044 main ()
7045 {
7046   int i;
7047   for (i = 0; i < 256; i++)
7048     if (XOR (islower (i), ISLOWER (i))
7049         || toupper (i) != TOUPPER (i))
7050       exit(2);
7051   exit (0);
7052 }
7053 _ACEOF
7054 rm -f conftest$ac_exeext
7055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7056   (eval $ac_link) 2>&5
7057   ac_status=$?
7058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061   (eval $ac_try) 2>&5
7062   ac_status=$?
7063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064   (exit $ac_status); }; }; then
7065   :
7066 else
7067   echo "$as_me: program exited with status $ac_status" >&5
7068 echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.$ac_ext >&5
7070
7071 ( exit $ac_status )
7072 ac_cv_header_stdc=no
7073 fi
7074 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7075 fi
7076 fi
7077 fi
7078 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7079 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7080 if test $ac_cv_header_stdc = yes; then
7081
7082 cat >>confdefs.h <<\_ACEOF
7083 #define STDC_HEADERS 1
7084 _ACEOF
7085
7086 fi
7087
7088
7089
7090
7091
7092
7093 for ac_header in bstring.h errno.h fcntl.h ieeefp.h math.h
7094 do
7095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7097   echo "$as_me:$LINENO: checking for $ac_header" >&5
7098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7100   echo $ECHO_N "(cached) $ECHO_C" >&6
7101 fi
7102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7104 else
7105   # Is the header compilable?
7106 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7108 cat >conftest.$ac_ext <<_ACEOF
7109 #line $LINENO "configure"
7110 /* confdefs.h.  */
7111 _ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h.  */
7115 $ac_includes_default
7116 #include <$ac_header>
7117 _ACEOF
7118 rm -f conftest.$ac_objext
7119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7120   (eval $ac_compile) 2>&5
7121   ac_status=$?
7122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123   (exit $ac_status); } &&
7124          { ac_try='test -s conftest.$ac_objext'
7125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126   (eval $ac_try) 2>&5
7127   ac_status=$?
7128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129   (exit $ac_status); }; }; then
7130   ac_header_compiler=yes
7131 else
7132   echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7134
7135 ac_header_compiler=no
7136 fi
7137 rm -f conftest.$ac_objext conftest.$ac_ext
7138 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7139 echo "${ECHO_T}$ac_header_compiler" >&6
7140
7141 # Is the header present?
7142 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7144 cat >conftest.$ac_ext <<_ACEOF
7145 #line $LINENO "configure"
7146 /* confdefs.h.  */
7147 _ACEOF
7148 cat confdefs.h >>conftest.$ac_ext
7149 cat >>conftest.$ac_ext <<_ACEOF
7150 /* end confdefs.h.  */
7151 #include <$ac_header>
7152 _ACEOF
7153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7154   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7155   ac_status=$?
7156   grep -v '^ *+' conftest.er1 >conftest.err
7157   rm -f conftest.er1
7158   cat conftest.err >&5
7159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160   (exit $ac_status); } >/dev/null; then
7161   if test -s conftest.err; then
7162     ac_cpp_err=$ac_c_preproc_warn_flag
7163   else
7164     ac_cpp_err=
7165   fi
7166 else
7167   ac_cpp_err=yes
7168 fi
7169 if test -z "$ac_cpp_err"; then
7170   ac_header_preproc=yes
7171 else
7172   echo "$as_me: failed program was:" >&5
7173 sed 's/^/| /' conftest.$ac_ext >&5
7174
7175   ac_header_preproc=no
7176 fi
7177 rm -f conftest.err conftest.$ac_ext
7178 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7179 echo "${ECHO_T}$ac_header_preproc" >&6
7180
7181 # So?  What about this header?
7182 case $ac_header_compiler:$ac_header_preproc in
7183   yes:no )
7184     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7188     (
7189       cat <<\_ASBOX
7190 ## ------------------------------------ ##
7191 ## Report this to bug-autoconf@gnu.org. ##
7192 ## ------------------------------------ ##
7193 _ASBOX
7194     ) |
7195       sed "s/^/$as_me: WARNING:     /" >&2
7196     ;;
7197   no:yes )
7198     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7199 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7200     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7201 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7202     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7204     (
7205       cat <<\_ASBOX
7206 ## ------------------------------------ ##
7207 ## Report this to bug-autoconf@gnu.org. ##
7208 ## ------------------------------------ ##
7209 _ASBOX
7210     ) |
7211       sed "s/^/$as_me: WARNING:     /" >&2
7212     ;;
7213 esac
7214 echo "$as_me:$LINENO: checking for $ac_header" >&5
7215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7217   echo $ECHO_N "(cached) $ECHO_C" >&6
7218 else
7219   eval "$as_ac_Header=$ac_header_preproc"
7220 fi
7221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7223
7224 fi
7225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7226   cat >>confdefs.h <<_ACEOF
7227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7228 _ACEOF
7229
7230 fi
7231
7232 done
7233
7234 # HMS: Lame, but fast.
7235 if test -f /etc/redhat-release
7236 then
7237     :
7238 else
7239
7240 for ac_header in md5.h
7241 do
7242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7244   echo "$as_me:$LINENO: checking for $ac_header" >&5
7245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7247   echo $ECHO_N "(cached) $ECHO_C" >&6
7248 fi
7249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7251 else
7252   # Is the header compilable?
7253 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7255 cat >conftest.$ac_ext <<_ACEOF
7256 #line $LINENO "configure"
7257 /* confdefs.h.  */
7258 _ACEOF
7259 cat confdefs.h >>conftest.$ac_ext
7260 cat >>conftest.$ac_ext <<_ACEOF
7261 /* end confdefs.h.  */
7262 $ac_includes_default
7263 #include <$ac_header>
7264 _ACEOF
7265 rm -f conftest.$ac_objext
7266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7267   (eval $ac_compile) 2>&5
7268   ac_status=$?
7269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270   (exit $ac_status); } &&
7271          { ac_try='test -s conftest.$ac_objext'
7272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273   (eval $ac_try) 2>&5
7274   ac_status=$?
7275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276   (exit $ac_status); }; }; then
7277   ac_header_compiler=yes
7278 else
7279   echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.$ac_ext >&5
7281
7282 ac_header_compiler=no
7283 fi
7284 rm -f conftest.$ac_objext conftest.$ac_ext
7285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7286 echo "${ECHO_T}$ac_header_compiler" >&6
7287
7288 # Is the header present?
7289 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7291 cat >conftest.$ac_ext <<_ACEOF
7292 #line $LINENO "configure"
7293 /* confdefs.h.  */
7294 _ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h.  */
7298 #include <$ac_header>
7299 _ACEOF
7300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7301   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7302   ac_status=$?
7303   grep -v '^ *+' conftest.er1 >conftest.err
7304   rm -f conftest.er1
7305   cat conftest.err >&5
7306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307   (exit $ac_status); } >/dev/null; then
7308   if test -s conftest.err; then
7309     ac_cpp_err=$ac_c_preproc_warn_flag
7310   else
7311     ac_cpp_err=
7312   fi
7313 else
7314   ac_cpp_err=yes
7315 fi
7316 if test -z "$ac_cpp_err"; then
7317   ac_header_preproc=yes
7318 else
7319   echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.$ac_ext >&5
7321
7322   ac_header_preproc=no
7323 fi
7324 rm -f conftest.err conftest.$ac_ext
7325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7326 echo "${ECHO_T}$ac_header_preproc" >&6
7327
7328 # So?  What about this header?
7329 case $ac_header_compiler:$ac_header_preproc in
7330   yes:no )
7331     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7333     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7335     (
7336       cat <<\_ASBOX
7337 ## ------------------------------------ ##
7338 ## Report this to bug-autoconf@gnu.org. ##
7339 ## ------------------------------------ ##
7340 _ASBOX
7341     ) |
7342       sed "s/^/$as_me: WARNING:     /" >&2
7343     ;;
7344   no:yes )
7345     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7346 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7347     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7348 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7349     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7351     (
7352       cat <<\_ASBOX
7353 ## ------------------------------------ ##
7354 ## Report this to bug-autoconf@gnu.org. ##
7355 ## ------------------------------------ ##
7356 _ASBOX
7357     ) |
7358       sed "s/^/$as_me: WARNING:     /" >&2
7359     ;;
7360 esac
7361 echo "$as_me:$LINENO: checking for $ac_header" >&5
7362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7364   echo $ECHO_N "(cached) $ECHO_C" >&6
7365 else
7366   eval "$as_ac_Header=$ac_header_preproc"
7367 fi
7368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7370
7371 fi
7372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7373   cat >>confdefs.h <<_ACEOF
7374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7375 _ACEOF
7376
7377 fi
7378
7379 done
7380
7381 fi
7382
7383
7384
7385 for ac_header in memory.h netdb.h poll.h
7386 do
7387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7389   echo "$as_me:$LINENO: checking for $ac_header" >&5
7390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7392   echo $ECHO_N "(cached) $ECHO_C" >&6
7393 fi
7394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7396 else
7397   # Is the header compilable?
7398 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7400 cat >conftest.$ac_ext <<_ACEOF
7401 #line $LINENO "configure"
7402 /* confdefs.h.  */
7403 _ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h.  */
7407 $ac_includes_default
7408 #include <$ac_header>
7409 _ACEOF
7410 rm -f conftest.$ac_objext
7411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7412   (eval $ac_compile) 2>&5
7413   ac_status=$?
7414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415   (exit $ac_status); } &&
7416          { ac_try='test -s conftest.$ac_objext'
7417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418   (eval $ac_try) 2>&5
7419   ac_status=$?
7420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421   (exit $ac_status); }; }; then
7422   ac_header_compiler=yes
7423 else
7424   echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7426
7427 ac_header_compiler=no
7428 fi
7429 rm -f conftest.$ac_objext conftest.$ac_ext
7430 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7431 echo "${ECHO_T}$ac_header_compiler" >&6
7432
7433 # Is the header present?
7434 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7436 cat >conftest.$ac_ext <<_ACEOF
7437 #line $LINENO "configure"
7438 /* confdefs.h.  */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h.  */
7443 #include <$ac_header>
7444 _ACEOF
7445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7446   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7447   ac_status=$?
7448   grep -v '^ *+' conftest.er1 >conftest.err
7449   rm -f conftest.er1
7450   cat conftest.err >&5
7451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452   (exit $ac_status); } >/dev/null; then
7453   if test -s conftest.err; then
7454     ac_cpp_err=$ac_c_preproc_warn_flag
7455   else
7456     ac_cpp_err=
7457   fi
7458 else
7459   ac_cpp_err=yes
7460 fi
7461 if test -z "$ac_cpp_err"; then
7462   ac_header_preproc=yes
7463 else
7464   echo "$as_me: failed program was:" >&5
7465 sed 's/^/| /' conftest.$ac_ext >&5
7466
7467   ac_header_preproc=no
7468 fi
7469 rm -f conftest.err conftest.$ac_ext
7470 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7471 echo "${ECHO_T}$ac_header_preproc" >&6
7472
7473 # So?  What about this header?
7474 case $ac_header_compiler:$ac_header_preproc in
7475   yes:no )
7476     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7478     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7480     (
7481       cat <<\_ASBOX
7482 ## ------------------------------------ ##
7483 ## Report this to bug-autoconf@gnu.org. ##
7484 ## ------------------------------------ ##
7485 _ASBOX
7486     ) |
7487       sed "s/^/$as_me: WARNING:     /" >&2
7488     ;;
7489   no:yes )
7490     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7492     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7493 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7496     (
7497       cat <<\_ASBOX
7498 ## ------------------------------------ ##
7499 ## Report this to bug-autoconf@gnu.org. ##
7500 ## ------------------------------------ ##
7501 _ASBOX
7502     ) |
7503       sed "s/^/$as_me: WARNING:     /" >&2
7504     ;;
7505 esac
7506 echo "$as_me:$LINENO: checking for $ac_header" >&5
7507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7509   echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511   eval "$as_ac_Header=$ac_header_preproc"
7512 fi
7513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7515
7516 fi
7517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7518   cat >>confdefs.h <<_ACEOF
7519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7520 _ACEOF
7521
7522 fi
7523
7524 done
7525
7526
7527
7528
7529
7530
7531 for ac_header in sched.h sgtty.h stdlib.h string.h termio.h
7532 do
7533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7535   echo "$as_me:$LINENO: checking for $ac_header" >&5
7536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7538   echo $ECHO_N "(cached) $ECHO_C" >&6
7539 fi
7540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7542 else
7543   # Is the header compilable?
7544 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7546 cat >conftest.$ac_ext <<_ACEOF
7547 #line $LINENO "configure"
7548 /* confdefs.h.  */
7549 _ACEOF
7550 cat confdefs.h >>conftest.$ac_ext
7551 cat >>conftest.$ac_ext <<_ACEOF
7552 /* end confdefs.h.  */
7553 $ac_includes_default
7554 #include <$ac_header>
7555 _ACEOF
7556 rm -f conftest.$ac_objext
7557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7558   (eval $ac_compile) 2>&5
7559   ac_status=$?
7560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561   (exit $ac_status); } &&
7562          { ac_try='test -s conftest.$ac_objext'
7563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7564   (eval $ac_try) 2>&5
7565   ac_status=$?
7566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567   (exit $ac_status); }; }; then
7568   ac_header_compiler=yes
7569 else
7570   echo "$as_me: failed program was:" >&5
7571 sed 's/^/| /' conftest.$ac_ext >&5
7572
7573 ac_header_compiler=no
7574 fi
7575 rm -f conftest.$ac_objext conftest.$ac_ext
7576 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7577 echo "${ECHO_T}$ac_header_compiler" >&6
7578
7579 # Is the header present?
7580 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7582 cat >conftest.$ac_ext <<_ACEOF
7583 #line $LINENO "configure"
7584 /* confdefs.h.  */
7585 _ACEOF
7586 cat confdefs.h >>conftest.$ac_ext
7587 cat >>conftest.$ac_ext <<_ACEOF
7588 /* end confdefs.h.  */
7589 #include <$ac_header>
7590 _ACEOF
7591 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7592   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7593   ac_status=$?
7594   grep -v '^ *+' conftest.er1 >conftest.err
7595   rm -f conftest.er1
7596   cat conftest.err >&5
7597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598   (exit $ac_status); } >/dev/null; then
7599   if test -s conftest.err; then
7600     ac_cpp_err=$ac_c_preproc_warn_flag
7601   else
7602     ac_cpp_err=
7603   fi
7604 else
7605   ac_cpp_err=yes
7606 fi
7607 if test -z "$ac_cpp_err"; then
7608   ac_header_preproc=yes
7609 else
7610   echo "$as_me: failed program was:" >&5
7611 sed 's/^/| /' conftest.$ac_ext >&5
7612
7613   ac_header_preproc=no
7614 fi
7615 rm -f conftest.err conftest.$ac_ext
7616 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7617 echo "${ECHO_T}$ac_header_preproc" >&6
7618
7619 # So?  What about this header?
7620 case $ac_header_compiler:$ac_header_preproc in
7621   yes:no )
7622     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7624     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7626     (
7627       cat <<\_ASBOX
7628 ## ------------------------------------ ##
7629 ## Report this to bug-autoconf@gnu.org. ##
7630 ## ------------------------------------ ##
7631 _ASBOX
7632     ) |
7633       sed "s/^/$as_me: WARNING:     /" >&2
7634     ;;
7635   no:yes )
7636     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7637 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7638     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7639 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7642     (
7643       cat <<\_ASBOX
7644 ## ------------------------------------ ##
7645 ## Report this to bug-autoconf@gnu.org. ##
7646 ## ------------------------------------ ##
7647 _ASBOX
7648     ) |
7649       sed "s/^/$as_me: WARNING:     /" >&2
7650     ;;
7651 esac
7652 echo "$as_me:$LINENO: checking for $ac_header" >&5
7653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7655   echo $ECHO_N "(cached) $ECHO_C" >&6
7656 else
7657   eval "$as_ac_Header=$ac_header_preproc"
7658 fi
7659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7661
7662 fi
7663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7664   cat >>confdefs.h <<_ACEOF
7665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7666 _ACEOF
7667
7668 fi
7669
7670 done
7671
7672
7673
7674
7675
7676 for ac_header in termios.h timepps.h timex.h unistd.h
7677 do
7678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7680   echo "$as_me:$LINENO: checking for $ac_header" >&5
7681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7683   echo $ECHO_N "(cached) $ECHO_C" >&6
7684 fi
7685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7687 else
7688   # Is the header compilable?
7689 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7690 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7691 cat >conftest.$ac_ext <<_ACEOF
7692 #line $LINENO "configure"
7693 /* confdefs.h.  */
7694 _ACEOF
7695 cat confdefs.h >>conftest.$ac_ext
7696 cat >>conftest.$ac_ext <<_ACEOF
7697 /* end confdefs.h.  */
7698 $ac_includes_default
7699 #include <$ac_header>
7700 _ACEOF
7701 rm -f conftest.$ac_objext
7702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7703   (eval $ac_compile) 2>&5
7704   ac_status=$?
7705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706   (exit $ac_status); } &&
7707          { ac_try='test -s conftest.$ac_objext'
7708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709   (eval $ac_try) 2>&5
7710   ac_status=$?
7711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712   (exit $ac_status); }; }; then
7713   ac_header_compiler=yes
7714 else
7715   echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7717
7718 ac_header_compiler=no
7719 fi
7720 rm -f conftest.$ac_objext conftest.$ac_ext
7721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7722 echo "${ECHO_T}$ac_header_compiler" >&6
7723
7724 # Is the header present?
7725 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7727 cat >conftest.$ac_ext <<_ACEOF
7728 #line $LINENO "configure"
7729 /* confdefs.h.  */
7730 _ACEOF
7731 cat confdefs.h >>conftest.$ac_ext
7732 cat >>conftest.$ac_ext <<_ACEOF
7733 /* end confdefs.h.  */
7734 #include <$ac_header>
7735 _ACEOF
7736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7737   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7738   ac_status=$?
7739   grep -v '^ *+' conftest.er1 >conftest.err
7740   rm -f conftest.er1
7741   cat conftest.err >&5
7742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743   (exit $ac_status); } >/dev/null; then
7744   if test -s conftest.err; then
7745     ac_cpp_err=$ac_c_preproc_warn_flag
7746   else
7747     ac_cpp_err=
7748   fi
7749 else
7750   ac_cpp_err=yes
7751 fi
7752 if test -z "$ac_cpp_err"; then
7753   ac_header_preproc=yes
7754 else
7755   echo "$as_me: failed program was:" >&5
7756 sed 's/^/| /' conftest.$ac_ext >&5
7757
7758   ac_header_preproc=no
7759 fi
7760 rm -f conftest.err conftest.$ac_ext
7761 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7762 echo "${ECHO_T}$ac_header_preproc" >&6
7763
7764 # So?  What about this header?
7765 case $ac_header_compiler:$ac_header_preproc in
7766   yes:no )
7767     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7768 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7769     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7771     (
7772       cat <<\_ASBOX
7773 ## ------------------------------------ ##
7774 ## Report this to bug-autoconf@gnu.org. ##
7775 ## ------------------------------------ ##
7776 _ASBOX
7777     ) |
7778       sed "s/^/$as_me: WARNING:     /" >&2
7779     ;;
7780   no:yes )
7781     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7783     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7784 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7785     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7787     (
7788       cat <<\_ASBOX
7789 ## ------------------------------------ ##
7790 ## Report this to bug-autoconf@gnu.org. ##
7791 ## ------------------------------------ ##
7792 _ASBOX
7793     ) |
7794       sed "s/^/$as_me: WARNING:     /" >&2
7795     ;;
7796 esac
7797 echo "$as_me:$LINENO: checking for $ac_header" >&5
7798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7800   echo $ECHO_N "(cached) $ECHO_C" >&6
7801 else
7802   eval "$as_ac_Header=$ac_header_preproc"
7803 fi
7804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7806
7807 fi
7808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7809   cat >>confdefs.h <<_ACEOF
7810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7811 _ACEOF
7812
7813 fi
7814
7815 done
7816
7817 case "$host" in
7818  *-*-aix*)
7819
7820 for ac_header in utmpx.h
7821 do
7822 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7824   echo "$as_me:$LINENO: checking for $ac_header" >&5
7825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7827   echo $ECHO_N "(cached) $ECHO_C" >&6
7828 fi
7829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7831 else
7832   # Is the header compilable?
7833 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7835 cat >conftest.$ac_ext <<_ACEOF
7836 #line $LINENO "configure"
7837 /* confdefs.h.  */
7838 _ACEOF
7839 cat confdefs.h >>conftest.$ac_ext
7840 cat >>conftest.$ac_ext <<_ACEOF
7841 /* end confdefs.h.  */
7842 $ac_includes_default
7843 #include <$ac_header>
7844 _ACEOF
7845 rm -f conftest.$ac_objext
7846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7847   (eval $ac_compile) 2>&5
7848   ac_status=$?
7849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850   (exit $ac_status); } &&
7851          { ac_try='test -s conftest.$ac_objext'
7852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7853   (eval $ac_try) 2>&5
7854   ac_status=$?
7855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856   (exit $ac_status); }; }; then
7857   ac_header_compiler=yes
7858 else
7859   echo "$as_me: failed program was:" >&5
7860 sed 's/^/| /' conftest.$ac_ext >&5
7861
7862 ac_header_compiler=no
7863 fi
7864 rm -f conftest.$ac_objext conftest.$ac_ext
7865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7866 echo "${ECHO_T}$ac_header_compiler" >&6
7867
7868 # Is the header present?
7869 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7871 cat >conftest.$ac_ext <<_ACEOF
7872 #line $LINENO "configure"
7873 /* confdefs.h.  */
7874 _ACEOF
7875 cat confdefs.h >>conftest.$ac_ext
7876 cat >>conftest.$ac_ext <<_ACEOF
7877 /* end confdefs.h.  */
7878 #include <$ac_header>
7879 _ACEOF
7880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7881   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7882   ac_status=$?
7883   grep -v '^ *+' conftest.er1 >conftest.err
7884   rm -f conftest.er1
7885   cat conftest.err >&5
7886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887   (exit $ac_status); } >/dev/null; then
7888   if test -s conftest.err; then
7889     ac_cpp_err=$ac_c_preproc_warn_flag
7890   else
7891     ac_cpp_err=
7892   fi
7893 else
7894   ac_cpp_err=yes
7895 fi
7896 if test -z "$ac_cpp_err"; then
7897   ac_header_preproc=yes
7898 else
7899   echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7901
7902   ac_header_preproc=no
7903 fi
7904 rm -f conftest.err conftest.$ac_ext
7905 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7906 echo "${ECHO_T}$ac_header_preproc" >&6
7907
7908 # So?  What about this header?
7909 case $ac_header_compiler:$ac_header_preproc in
7910   yes:no )
7911     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7913     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7915     (
7916       cat <<\_ASBOX
7917 ## ------------------------------------ ##
7918 ## Report this to bug-autoconf@gnu.org. ##
7919 ## ------------------------------------ ##
7920 _ASBOX
7921     ) |
7922       sed "s/^/$as_me: WARNING:     /" >&2
7923     ;;
7924   no:yes )
7925     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7927     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7928 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7929     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7931     (
7932       cat <<\_ASBOX
7933 ## ------------------------------------ ##
7934 ## Report this to bug-autoconf@gnu.org. ##
7935 ## ------------------------------------ ##
7936 _ASBOX
7937     ) |
7938       sed "s/^/$as_me: WARNING:     /" >&2
7939     ;;
7940 esac
7941 echo "$as_me:$LINENO: checking for $ac_header" >&5
7942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7944   echo $ECHO_N "(cached) $ECHO_C" >&6
7945 else
7946   eval "$as_ac_Header=$ac_header_preproc"
7947 fi
7948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7950
7951 fi
7952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7953   cat >>confdefs.h <<_ACEOF
7954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7955 _ACEOF
7956
7957 fi
7958
7959 done
7960
7961     case "$ac_cv_header_utmpx_h" in
7962      yes) ;;
7963      *)
7964 for ac_header in utmp.h
7965 do
7966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7968   echo "$as_me:$LINENO: checking for $ac_header" >&5
7969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7971   echo $ECHO_N "(cached) $ECHO_C" >&6
7972 fi
7973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7975 else
7976   # Is the header compilable?
7977 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7978 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7979 cat >conftest.$ac_ext <<_ACEOF
7980 #line $LINENO "configure"
7981 /* confdefs.h.  */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h.  */
7986 $ac_includes_default
7987 #include <$ac_header>
7988 _ACEOF
7989 rm -f conftest.$ac_objext
7990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7991   (eval $ac_compile) 2>&5
7992   ac_status=$?
7993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994   (exit $ac_status); } &&
7995          { ac_try='test -s conftest.$ac_objext'
7996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997   (eval $ac_try) 2>&5
7998   ac_status=$?
7999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000   (exit $ac_status); }; }; then
8001   ac_header_compiler=yes
8002 else
8003   echo "$as_me: failed program was:" >&5
8004 sed 's/^/| /' conftest.$ac_ext >&5
8005
8006 ac_header_compiler=no
8007 fi
8008 rm -f conftest.$ac_objext conftest.$ac_ext
8009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8010 echo "${ECHO_T}$ac_header_compiler" >&6
8011
8012 # Is the header present?
8013 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8015 cat >conftest.$ac_ext <<_ACEOF
8016 #line $LINENO "configure"
8017 /* confdefs.h.  */
8018 _ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h.  */
8022 #include <$ac_header>
8023 _ACEOF
8024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8025   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8026   ac_status=$?
8027   grep -v '^ *+' conftest.er1 >conftest.err
8028   rm -f conftest.er1
8029   cat conftest.err >&5
8030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031   (exit $ac_status); } >/dev/null; then
8032   if test -s conftest.err; then
8033     ac_cpp_err=$ac_c_preproc_warn_flag
8034   else
8035     ac_cpp_err=
8036   fi
8037 else
8038   ac_cpp_err=yes
8039 fi
8040 if test -z "$ac_cpp_err"; then
8041   ac_header_preproc=yes
8042 else
8043   echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.$ac_ext >&5
8045
8046   ac_header_preproc=no
8047 fi
8048 rm -f conftest.err conftest.$ac_ext
8049 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8050 echo "${ECHO_T}$ac_header_preproc" >&6
8051
8052 # So?  What about this header?
8053 case $ac_header_compiler:$ac_header_preproc in
8054   yes:no )
8055     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8057     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8059     (
8060       cat <<\_ASBOX
8061 ## ------------------------------------ ##
8062 ## Report this to bug-autoconf@gnu.org. ##
8063 ## ------------------------------------ ##
8064 _ASBOX
8065     ) |
8066       sed "s/^/$as_me: WARNING:     /" >&2
8067     ;;
8068   no:yes )
8069     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8071     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8072 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8073     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8075     (
8076       cat <<\_ASBOX
8077 ## ------------------------------------ ##
8078 ## Report this to bug-autoconf@gnu.org. ##
8079 ## ------------------------------------ ##
8080 _ASBOX
8081     ) |
8082       sed "s/^/$as_me: WARNING:     /" >&2
8083     ;;
8084 esac
8085 echo "$as_me:$LINENO: checking for $ac_header" >&5
8086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8088   echo $ECHO_N "(cached) $ECHO_C" >&6
8089 else
8090   eval "$as_ac_Header=$ac_header_preproc"
8091 fi
8092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8094
8095 fi
8096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8097   cat >>confdefs.h <<_ACEOF
8098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8099 _ACEOF
8100
8101 fi
8102
8103 done
8104  ;;
8105     esac
8106     ;;
8107  *)
8108
8109 for ac_header in utmp.h utmpx.h
8110 do
8111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8113   echo "$as_me:$LINENO: checking for $ac_header" >&5
8114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8116   echo $ECHO_N "(cached) $ECHO_C" >&6
8117 fi
8118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8120 else
8121   # Is the header compilable?
8122 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8124 cat >conftest.$ac_ext <<_ACEOF
8125 #line $LINENO "configure"
8126 /* confdefs.h.  */
8127 _ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h.  */
8131 $ac_includes_default
8132 #include <$ac_header>
8133 _ACEOF
8134 rm -f conftest.$ac_objext
8135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8136   (eval $ac_compile) 2>&5
8137   ac_status=$?
8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139   (exit $ac_status); } &&
8140          { ac_try='test -s conftest.$ac_objext'
8141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142   (eval $ac_try) 2>&5
8143   ac_status=$?
8144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145   (exit $ac_status); }; }; then
8146   ac_header_compiler=yes
8147 else
8148   echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8150
8151 ac_header_compiler=no
8152 fi
8153 rm -f conftest.$ac_objext conftest.$ac_ext
8154 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8155 echo "${ECHO_T}$ac_header_compiler" >&6
8156
8157 # Is the header present?
8158 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8160 cat >conftest.$ac_ext <<_ACEOF
8161 #line $LINENO "configure"
8162 /* confdefs.h.  */
8163 _ACEOF
8164 cat confdefs.h >>conftest.$ac_ext
8165 cat >>conftest.$ac_ext <<_ACEOF
8166 /* end confdefs.h.  */
8167 #include <$ac_header>
8168 _ACEOF
8169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8170   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8171   ac_status=$?
8172   grep -v '^ *+' conftest.er1 >conftest.err
8173   rm -f conftest.er1
8174   cat conftest.err >&5
8175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176   (exit $ac_status); } >/dev/null; then
8177   if test -s conftest.err; then
8178     ac_cpp_err=$ac_c_preproc_warn_flag
8179   else
8180     ac_cpp_err=
8181   fi
8182 else
8183   ac_cpp_err=yes
8184 fi
8185 if test -z "$ac_cpp_err"; then
8186   ac_header_preproc=yes
8187 else
8188   echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8190
8191   ac_header_preproc=no
8192 fi
8193 rm -f conftest.err conftest.$ac_ext
8194 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8195 echo "${ECHO_T}$ac_header_preproc" >&6
8196
8197 # So?  What about this header?
8198 case $ac_header_compiler:$ac_header_preproc in
8199   yes:no )
8200     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8202     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8204     (
8205       cat <<\_ASBOX
8206 ## ------------------------------------ ##
8207 ## Report this to bug-autoconf@gnu.org. ##
8208 ## ------------------------------------ ##
8209 _ASBOX
8210     ) |
8211       sed "s/^/$as_me: WARNING:     /" >&2
8212     ;;
8213   no:yes )
8214     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8216     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8217 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8220     (
8221       cat <<\_ASBOX
8222 ## ------------------------------------ ##
8223 ## Report this to bug-autoconf@gnu.org. ##
8224 ## ------------------------------------ ##
8225 _ASBOX
8226     ) |
8227       sed "s/^/$as_me: WARNING:     /" >&2
8228     ;;
8229 esac
8230 echo "$as_me:$LINENO: checking for $ac_header" >&5
8231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8233   echo $ECHO_N "(cached) $ECHO_C" >&6
8234 else
8235   eval "$as_ac_Header=$ac_header_preproc"
8236 fi
8237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8239
8240 fi
8241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8242   cat >>confdefs.h <<_ACEOF
8243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8244 _ACEOF
8245
8246 fi
8247
8248 done
8249  ;;
8250 esac
8251
8252 for ac_header in arpa/nameser.h
8253 do
8254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8256   echo "$as_me:$LINENO: checking for $ac_header" >&5
8257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8259   echo $ECHO_N "(cached) $ECHO_C" >&6
8260 fi
8261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8263 else
8264   # Is the header compilable?
8265 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8267 cat >conftest.$ac_ext <<_ACEOF
8268 #line $LINENO "configure"
8269 /* confdefs.h.  */
8270 _ACEOF
8271 cat confdefs.h >>conftest.$ac_ext
8272 cat >>conftest.$ac_ext <<_ACEOF
8273 /* end confdefs.h.  */
8274 $ac_includes_default
8275 #include <$ac_header>
8276 _ACEOF
8277 rm -f conftest.$ac_objext
8278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8279   (eval $ac_compile) 2>&5
8280   ac_status=$?
8281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282   (exit $ac_status); } &&
8283          { ac_try='test -s conftest.$ac_objext'
8284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8285   (eval $ac_try) 2>&5
8286   ac_status=$?
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); }; }; then
8289   ac_header_compiler=yes
8290 else
8291   echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8293
8294 ac_header_compiler=no
8295 fi
8296 rm -f conftest.$ac_objext conftest.$ac_ext
8297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8298 echo "${ECHO_T}$ac_header_compiler" >&6
8299
8300 # Is the header present?
8301 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8303 cat >conftest.$ac_ext <<_ACEOF
8304 #line $LINENO "configure"
8305 /* confdefs.h.  */
8306 _ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h.  */
8310 #include <$ac_header>
8311 _ACEOF
8312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8313   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8314   ac_status=$?
8315   grep -v '^ *+' conftest.er1 >conftest.err
8316   rm -f conftest.er1
8317   cat conftest.err >&5
8318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319   (exit $ac_status); } >/dev/null; then
8320   if test -s conftest.err; then
8321     ac_cpp_err=$ac_c_preproc_warn_flag
8322   else
8323     ac_cpp_err=
8324   fi
8325 else
8326   ac_cpp_err=yes
8327 fi
8328 if test -z "$ac_cpp_err"; then
8329   ac_header_preproc=yes
8330 else
8331   echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.$ac_ext >&5
8333
8334   ac_header_preproc=no
8335 fi
8336 rm -f conftest.err conftest.$ac_ext
8337 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8338 echo "${ECHO_T}$ac_header_preproc" >&6
8339
8340 # So?  What about this header?
8341 case $ac_header_compiler:$ac_header_preproc in
8342   yes:no )
8343     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8345     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8347     (
8348       cat <<\_ASBOX
8349 ## ------------------------------------ ##
8350 ## Report this to bug-autoconf@gnu.org. ##
8351 ## ------------------------------------ ##
8352 _ASBOX
8353     ) |
8354       sed "s/^/$as_me: WARNING:     /" >&2
8355     ;;
8356   no:yes )
8357     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8359     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8361     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8363     (
8364       cat <<\_ASBOX
8365 ## ------------------------------------ ##
8366 ## Report this to bug-autoconf@gnu.org. ##
8367 ## ------------------------------------ ##
8368 _ASBOX
8369     ) |
8370       sed "s/^/$as_me: WARNING:     /" >&2
8371     ;;
8372 esac
8373 echo "$as_me:$LINENO: checking for $ac_header" >&5
8374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8376   echo $ECHO_N "(cached) $ECHO_C" >&6
8377 else
8378   eval "$as_ac_Header=$ac_header_preproc"
8379 fi
8380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8382
8383 fi
8384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8385   cat >>confdefs.h <<_ACEOF
8386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8387 _ACEOF
8388
8389 fi
8390
8391 done
8392
8393
8394 for ac_header in net/if.h
8395 do
8396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8397 echo "$as_me:$LINENO: checking for $ac_header" >&5
8398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8400   echo $ECHO_N "(cached) $ECHO_C" >&6
8401 else
8402   cat >conftest.$ac_ext <<_ACEOF
8403 #line $LINENO "configure"
8404 /* confdefs.h.  */
8405 _ACEOF
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h.  */
8409 #if HAVE_SYS_SOCKET_H
8410 #include <sys/socket.h>
8411 #endif
8412
8413
8414 #include <$ac_header>
8415 _ACEOF
8416 rm -f conftest.$ac_objext
8417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8418   (eval $ac_compile) 2>&5
8419   ac_status=$?
8420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421   (exit $ac_status); } &&
8422          { ac_try='test -s conftest.$ac_objext'
8423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424   (eval $ac_try) 2>&5
8425   ac_status=$?
8426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   (exit $ac_status); }; }; then
8428   eval "$as_ac_Header=yes"
8429 else
8430   echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8432
8433 eval "$as_ac_Header=no"
8434 fi
8435 rm -f conftest.$ac_objext conftest.$ac_ext
8436 fi
8437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8440   cat >>confdefs.h <<_ACEOF
8441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8442 _ACEOF
8443
8444 fi
8445
8446 done
8447
8448
8449 for ac_header in net/if6.h
8450 do
8451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8453   echo "$as_me:$LINENO: checking for $ac_header" >&5
8454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8456   echo $ECHO_N "(cached) $ECHO_C" >&6
8457 fi
8458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8460 else
8461   # Is the header compilable?
8462 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8464 cat >conftest.$ac_ext <<_ACEOF
8465 #line $LINENO "configure"
8466 /* confdefs.h.  */
8467 _ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h.  */
8471 $ac_includes_default
8472 #include <$ac_header>
8473 _ACEOF
8474 rm -f conftest.$ac_objext
8475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8476   (eval $ac_compile) 2>&5
8477   ac_status=$?
8478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479   (exit $ac_status); } &&
8480          { ac_try='test -s conftest.$ac_objext'
8481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482   (eval $ac_try) 2>&5
8483   ac_status=$?
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   (exit $ac_status); }; }; then
8486   ac_header_compiler=yes
8487 else
8488   echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8490
8491 ac_header_compiler=no
8492 fi
8493 rm -f conftest.$ac_objext conftest.$ac_ext
8494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8495 echo "${ECHO_T}$ac_header_compiler" >&6
8496
8497 # Is the header present?
8498 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8500 cat >conftest.$ac_ext <<_ACEOF
8501 #line $LINENO "configure"
8502 /* confdefs.h.  */
8503 _ACEOF
8504 cat confdefs.h >>conftest.$ac_ext
8505 cat >>conftest.$ac_ext <<_ACEOF
8506 /* end confdefs.h.  */
8507 #include <$ac_header>
8508 _ACEOF
8509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8510   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8511   ac_status=$?
8512   grep -v '^ *+' conftest.er1 >conftest.err
8513   rm -f conftest.er1
8514   cat conftest.err >&5
8515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516   (exit $ac_status); } >/dev/null; then
8517   if test -s conftest.err; then
8518     ac_cpp_err=$ac_c_preproc_warn_flag
8519   else
8520     ac_cpp_err=
8521   fi
8522 else
8523   ac_cpp_err=yes
8524 fi
8525 if test -z "$ac_cpp_err"; then
8526   ac_header_preproc=yes
8527 else
8528   echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8530
8531   ac_header_preproc=no
8532 fi
8533 rm -f conftest.err conftest.$ac_ext
8534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8535 echo "${ECHO_T}$ac_header_preproc" >&6
8536
8537 # So?  What about this header?
8538 case $ac_header_compiler:$ac_header_preproc in
8539   yes:no )
8540     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8542     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8544     (
8545       cat <<\_ASBOX
8546 ## ------------------------------------ ##
8547 ## Report this to bug-autoconf@gnu.org. ##
8548 ## ------------------------------------ ##
8549 _ASBOX
8550     ) |
8551       sed "s/^/$as_me: WARNING:     /" >&2
8552     ;;
8553   no:yes )
8554     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8556     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8557 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8558     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8560     (
8561       cat <<\_ASBOX
8562 ## ------------------------------------ ##
8563 ## Report this to bug-autoconf@gnu.org. ##
8564 ## ------------------------------------ ##
8565 _ASBOX
8566     ) |
8567       sed "s/^/$as_me: WARNING:     /" >&2
8568     ;;
8569 esac
8570 echo "$as_me:$LINENO: checking for $ac_header" >&5
8571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8573   echo $ECHO_N "(cached) $ECHO_C" >&6
8574 else
8575   eval "$as_ac_Header=$ac_header_preproc"
8576 fi
8577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8579
8580 fi
8581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8582   cat >>confdefs.h <<_ACEOF
8583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8584 _ACEOF
8585
8586 fi
8587
8588 done
8589
8590
8591
8592 for ac_header in netinet/in_system.h netinet/in_systm.h
8593 do
8594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8596   echo "$as_me:$LINENO: checking for $ac_header" >&5
8597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8599   echo $ECHO_N "(cached) $ECHO_C" >&6
8600 fi
8601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8603 else
8604   # Is the header compilable?
8605 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8607 cat >conftest.$ac_ext <<_ACEOF
8608 #line $LINENO "configure"
8609 /* confdefs.h.  */
8610 _ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h.  */
8614 $ac_includes_default
8615 #include <$ac_header>
8616 _ACEOF
8617 rm -f conftest.$ac_objext
8618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8619   (eval $ac_compile) 2>&5
8620   ac_status=$?
8621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622   (exit $ac_status); } &&
8623          { ac_try='test -s conftest.$ac_objext'
8624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625   (eval $ac_try) 2>&5
8626   ac_status=$?
8627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628   (exit $ac_status); }; }; then
8629   ac_header_compiler=yes
8630 else
8631   echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.$ac_ext >&5
8633
8634 ac_header_compiler=no
8635 fi
8636 rm -f conftest.$ac_objext conftest.$ac_ext
8637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8638 echo "${ECHO_T}$ac_header_compiler" >&6
8639
8640 # Is the header present?
8641 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8643 cat >conftest.$ac_ext <<_ACEOF
8644 #line $LINENO "configure"
8645 /* confdefs.h.  */
8646 _ACEOF
8647 cat confdefs.h >>conftest.$ac_ext
8648 cat >>conftest.$ac_ext <<_ACEOF
8649 /* end confdefs.h.  */
8650 #include <$ac_header>
8651 _ACEOF
8652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8653   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8654   ac_status=$?
8655   grep -v '^ *+' conftest.er1 >conftest.err
8656   rm -f conftest.er1
8657   cat conftest.err >&5
8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   (exit $ac_status); } >/dev/null; then
8660   if test -s conftest.err; then
8661     ac_cpp_err=$ac_c_preproc_warn_flag
8662   else
8663     ac_cpp_err=
8664   fi
8665 else
8666   ac_cpp_err=yes
8667 fi
8668 if test -z "$ac_cpp_err"; then
8669   ac_header_preproc=yes
8670 else
8671   echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8673
8674   ac_header_preproc=no
8675 fi
8676 rm -f conftest.err conftest.$ac_ext
8677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8678 echo "${ECHO_T}$ac_header_preproc" >&6
8679
8680 # So?  What about this header?
8681 case $ac_header_compiler:$ac_header_preproc in
8682   yes:no )
8683     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8685     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8687     (
8688       cat <<\_ASBOX
8689 ## ------------------------------------ ##
8690 ## Report this to bug-autoconf@gnu.org. ##
8691 ## ------------------------------------ ##
8692 _ASBOX
8693     ) |
8694       sed "s/^/$as_me: WARNING:     /" >&2
8695     ;;
8696   no:yes )
8697     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8699     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8701     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8703     (
8704       cat <<\_ASBOX
8705 ## ------------------------------------ ##
8706 ## Report this to bug-autoconf@gnu.org. ##
8707 ## ------------------------------------ ##
8708 _ASBOX
8709     ) |
8710       sed "s/^/$as_me: WARNING:     /" >&2
8711     ;;
8712 esac
8713 echo "$as_me:$LINENO: checking for $ac_header" >&5
8714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8716   echo $ECHO_N "(cached) $ECHO_C" >&6
8717 else
8718   eval "$as_ac_Header=$ac_header_preproc"
8719 fi
8720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8722
8723 fi
8724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8725   cat >>confdefs.h <<_ACEOF
8726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8727 _ACEOF
8728
8729 fi
8730
8731 done
8732
8733
8734 for ac_header in netinet/in.h
8735 do
8736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8738   echo "$as_me:$LINENO: checking for $ac_header" >&5
8739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8741   echo $ECHO_N "(cached) $ECHO_C" >&6
8742 fi
8743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8745 else
8746   # Is the header compilable?
8747 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8749 cat >conftest.$ac_ext <<_ACEOF
8750 #line $LINENO "configure"
8751 /* confdefs.h.  */
8752 _ACEOF
8753 cat confdefs.h >>conftest.$ac_ext
8754 cat >>conftest.$ac_ext <<_ACEOF
8755 /* end confdefs.h.  */
8756 $ac_includes_default
8757 #include <$ac_header>
8758 _ACEOF
8759 rm -f conftest.$ac_objext
8760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8761   (eval $ac_compile) 2>&5
8762   ac_status=$?
8763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764   (exit $ac_status); } &&
8765          { ac_try='test -s conftest.$ac_objext'
8766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8767   (eval $ac_try) 2>&5
8768   ac_status=$?
8769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770   (exit $ac_status); }; }; then
8771   ac_header_compiler=yes
8772 else
8773   echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8775
8776 ac_header_compiler=no
8777 fi
8778 rm -f conftest.$ac_objext conftest.$ac_ext
8779 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8780 echo "${ECHO_T}$ac_header_compiler" >&6
8781
8782 # Is the header present?
8783 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8785 cat >conftest.$ac_ext <<_ACEOF
8786 #line $LINENO "configure"
8787 /* confdefs.h.  */
8788 _ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h.  */
8792 #include <$ac_header>
8793 _ACEOF
8794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8795   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8796   ac_status=$?
8797   grep -v '^ *+' conftest.er1 >conftest.err
8798   rm -f conftest.er1
8799   cat conftest.err >&5
8800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801   (exit $ac_status); } >/dev/null; then
8802   if test -s conftest.err; then
8803     ac_cpp_err=$ac_c_preproc_warn_flag
8804   else
8805     ac_cpp_err=
8806   fi
8807 else
8808   ac_cpp_err=yes
8809 fi
8810 if test -z "$ac_cpp_err"; then
8811   ac_header_preproc=yes
8812 else
8813   echo "$as_me: failed program was:" >&5
8814 sed 's/^/| /' conftest.$ac_ext >&5
8815
8816   ac_header_preproc=no
8817 fi
8818 rm -f conftest.err conftest.$ac_ext
8819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8820 echo "${ECHO_T}$ac_header_preproc" >&6
8821
8822 # So?  What about this header?
8823 case $ac_header_compiler:$ac_header_preproc in
8824   yes:no )
8825     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8827     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8829     (
8830       cat <<\_ASBOX
8831 ## ------------------------------------ ##
8832 ## Report this to bug-autoconf@gnu.org. ##
8833 ## ------------------------------------ ##
8834 _ASBOX
8835     ) |
8836       sed "s/^/$as_me: WARNING:     /" >&2
8837     ;;
8838   no:yes )
8839     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8841     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8842 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8845     (
8846       cat <<\_ASBOX
8847 ## ------------------------------------ ##
8848 ## Report this to bug-autoconf@gnu.org. ##
8849 ## ------------------------------------ ##
8850 _ASBOX
8851     ) |
8852       sed "s/^/$as_me: WARNING:     /" >&2
8853     ;;
8854 esac
8855 echo "$as_me:$LINENO: checking for $ac_header" >&5
8856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8858   echo $ECHO_N "(cached) $ECHO_C" >&6
8859 else
8860   eval "$as_ac_Header=$ac_header_preproc"
8861 fi
8862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8864
8865 fi
8866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8867   cat >>confdefs.h <<_ACEOF
8868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8869 _ACEOF
8870
8871 fi
8872
8873 done
8874
8875
8876 for ac_header in netinet/ip.h
8877 do
8878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8879 echo "$as_me:$LINENO: checking for $ac_header" >&5
8880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8882   echo $ECHO_N "(cached) $ECHO_C" >&6
8883 else
8884   cat >conftest.$ac_ext <<_ACEOF
8885 #line $LINENO "configure"
8886 /* confdefs.h.  */
8887 _ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h.  */
8891 #if HAVE_SYS_TYPES_H
8892 #include <sys/types.h>
8893 #endif
8894 #if HAVE_NETINET_IN_H
8895 #include <netinet/in.h>
8896 #endif
8897 #if HAVE_NETINET_IN_SYSTM_H
8898 #include <netinet/in_systm.h>
8899 #endif
8900
8901
8902 #include <$ac_header>
8903 _ACEOF
8904 rm -f conftest.$ac_objext
8905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8906   (eval $ac_compile) 2>&5
8907   ac_status=$?
8908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909   (exit $ac_status); } &&
8910          { ac_try='test -s conftest.$ac_objext'
8911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912   (eval $ac_try) 2>&5
8913   ac_status=$?
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   (exit $ac_status); }; }; then
8916   eval "$as_ac_Header=yes"
8917 else
8918   echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8920
8921 eval "$as_ac_Header=no"
8922 fi
8923 rm -f conftest.$ac_objext conftest.$ac_ext
8924 fi
8925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8928   cat >>confdefs.h <<_ACEOF
8929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8930 _ACEOF
8931
8932 fi
8933
8934 done
8935
8936
8937 for ac_header in netinfo/ni.h
8938 do
8939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8941   echo "$as_me:$LINENO: checking for $ac_header" >&5
8942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8944   echo $ECHO_N "(cached) $ECHO_C" >&6
8945 fi
8946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8948 else
8949   # Is the header compilable?
8950 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8952 cat >conftest.$ac_ext <<_ACEOF
8953 #line $LINENO "configure"
8954 /* confdefs.h.  */
8955 _ACEOF
8956 cat confdefs.h >>conftest.$ac_ext
8957 cat >>conftest.$ac_ext <<_ACEOF
8958 /* end confdefs.h.  */
8959 $ac_includes_default
8960 #include <$ac_header>
8961 _ACEOF
8962 rm -f conftest.$ac_objext
8963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8964   (eval $ac_compile) 2>&5
8965   ac_status=$?
8966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967   (exit $ac_status); } &&
8968          { ac_try='test -s conftest.$ac_objext'
8969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970   (eval $ac_try) 2>&5
8971   ac_status=$?
8972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973   (exit $ac_status); }; }; then
8974   ac_header_compiler=yes
8975 else
8976   echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8978
8979 ac_header_compiler=no
8980 fi
8981 rm -f conftest.$ac_objext conftest.$ac_ext
8982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8983 echo "${ECHO_T}$ac_header_compiler" >&6
8984
8985 # Is the header present?
8986 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8987 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8988 cat >conftest.$ac_ext <<_ACEOF
8989 #line $LINENO "configure"
8990 /* confdefs.h.  */
8991 _ACEOF
8992 cat confdefs.h >>conftest.$ac_ext
8993 cat >>conftest.$ac_ext <<_ACEOF
8994 /* end confdefs.h.  */
8995 #include <$ac_header>
8996 _ACEOF
8997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8998   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8999   ac_status=$?
9000   grep -v '^ *+' conftest.er1 >conftest.err
9001   rm -f conftest.er1
9002   cat conftest.err >&5
9003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004   (exit $ac_status); } >/dev/null; then
9005   if test -s conftest.err; then
9006     ac_cpp_err=$ac_c_preproc_warn_flag
9007   else
9008     ac_cpp_err=
9009   fi
9010 else
9011   ac_cpp_err=yes
9012 fi
9013 if test -z "$ac_cpp_err"; then
9014   ac_header_preproc=yes
9015 else
9016   echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.$ac_ext >&5
9018
9019   ac_header_preproc=no
9020 fi
9021 rm -f conftest.err conftest.$ac_ext
9022 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9023 echo "${ECHO_T}$ac_header_preproc" >&6
9024
9025 # So?  What about this header?
9026 case $ac_header_compiler:$ac_header_preproc in
9027   yes:no )
9028     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9030     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9032     (
9033       cat <<\_ASBOX
9034 ## ------------------------------------ ##
9035 ## Report this to bug-autoconf@gnu.org. ##
9036 ## ------------------------------------ ##
9037 _ASBOX
9038     ) |
9039       sed "s/^/$as_me: WARNING:     /" >&2
9040     ;;
9041   no:yes )
9042     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9044     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9046     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9048     (
9049       cat <<\_ASBOX
9050 ## ------------------------------------ ##
9051 ## Report this to bug-autoconf@gnu.org. ##
9052 ## ------------------------------------ ##
9053 _ASBOX
9054     ) |
9055       sed "s/^/$as_me: WARNING:     /" >&2
9056     ;;
9057 esac
9058 echo "$as_me:$LINENO: checking for $ac_header" >&5
9059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9061   echo $ECHO_N "(cached) $ECHO_C" >&6
9062 else
9063   eval "$as_ac_Header=$ac_header_preproc"
9064 fi
9065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9067
9068 fi
9069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9070   cat >>confdefs.h <<_ACEOF
9071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9072 _ACEOF
9073
9074 cat >>confdefs.h <<\_ACEOF
9075 #define HAVE_NETINFO 1
9076 _ACEOF
9077
9078 fi
9079
9080 done
9081
9082
9083
9084 for ac_header in sun/audioio.h sys/audioio.h
9085 do
9086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9088   echo "$as_me:$LINENO: checking for $ac_header" >&5
9089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9091   echo $ECHO_N "(cached) $ECHO_C" >&6
9092 fi
9093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9095 else
9096   # Is the header compilable?
9097 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9099 cat >conftest.$ac_ext <<_ACEOF
9100 #line $LINENO "configure"
9101 /* confdefs.h.  */
9102 _ACEOF
9103 cat confdefs.h >>conftest.$ac_ext
9104 cat >>conftest.$ac_ext <<_ACEOF
9105 /* end confdefs.h.  */
9106 $ac_includes_default
9107 #include <$ac_header>
9108 _ACEOF
9109 rm -f conftest.$ac_objext
9110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9111   (eval $ac_compile) 2>&5
9112   ac_status=$?
9113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114   (exit $ac_status); } &&
9115          { ac_try='test -s conftest.$ac_objext'
9116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117   (eval $ac_try) 2>&5
9118   ac_status=$?
9119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120   (exit $ac_status); }; }; then
9121   ac_header_compiler=yes
9122 else
9123   echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.$ac_ext >&5
9125
9126 ac_header_compiler=no
9127 fi
9128 rm -f conftest.$ac_objext conftest.$ac_ext
9129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9130 echo "${ECHO_T}$ac_header_compiler" >&6
9131
9132 # Is the header present?
9133 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9135 cat >conftest.$ac_ext <<_ACEOF
9136 #line $LINENO "configure"
9137 /* confdefs.h.  */
9138 _ACEOF
9139 cat confdefs.h >>conftest.$ac_ext
9140 cat >>conftest.$ac_ext <<_ACEOF
9141 /* end confdefs.h.  */
9142 #include <$ac_header>
9143 _ACEOF
9144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9145   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9146   ac_status=$?
9147   grep -v '^ *+' conftest.er1 >conftest.err
9148   rm -f conftest.er1
9149   cat conftest.err >&5
9150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151   (exit $ac_status); } >/dev/null; then
9152   if test -s conftest.err; then
9153     ac_cpp_err=$ac_c_preproc_warn_flag
9154   else
9155     ac_cpp_err=
9156   fi
9157 else
9158   ac_cpp_err=yes
9159 fi
9160 if test -z "$ac_cpp_err"; then
9161   ac_header_preproc=yes
9162 else
9163   echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.$ac_ext >&5
9165
9166   ac_header_preproc=no
9167 fi
9168 rm -f conftest.err conftest.$ac_ext
9169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9170 echo "${ECHO_T}$ac_header_preproc" >&6
9171
9172 # So?  What about this header?
9173 case $ac_header_compiler:$ac_header_preproc in
9174   yes:no )
9175     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9179     (
9180       cat <<\_ASBOX
9181 ## ------------------------------------ ##
9182 ## Report this to bug-autoconf@gnu.org. ##
9183 ## ------------------------------------ ##
9184 _ASBOX
9185     ) |
9186       sed "s/^/$as_me: WARNING:     /" >&2
9187     ;;
9188   no:yes )
9189     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9191     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9192 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9195     (
9196       cat <<\_ASBOX
9197 ## ------------------------------------ ##
9198 ## Report this to bug-autoconf@gnu.org. ##
9199 ## ------------------------------------ ##
9200 _ASBOX
9201     ) |
9202       sed "s/^/$as_me: WARNING:     /" >&2
9203     ;;
9204 esac
9205 echo "$as_me:$LINENO: checking for $ac_header" >&5
9206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9208   echo $ECHO_N "(cached) $ECHO_C" >&6
9209 else
9210   eval "$as_ac_Header=$ac_header_preproc"
9211 fi
9212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9214
9215 fi
9216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9217   cat >>confdefs.h <<_ACEOF
9218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9219 _ACEOF
9220
9221 fi
9222
9223 done
9224
9225
9226
9227 for ac_header in sys/clkdefs.h sys/file.h
9228 do
9229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9231   echo "$as_me:$LINENO: checking for $ac_header" >&5
9232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9234   echo $ECHO_N "(cached) $ECHO_C" >&6
9235 fi
9236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9238 else
9239   # Is the header compilable?
9240 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9242 cat >conftest.$ac_ext <<_ACEOF
9243 #line $LINENO "configure"
9244 /* confdefs.h.  */
9245 _ACEOF
9246 cat confdefs.h >>conftest.$ac_ext
9247 cat >>conftest.$ac_ext <<_ACEOF
9248 /* end confdefs.h.  */
9249 $ac_includes_default
9250 #include <$ac_header>
9251 _ACEOF
9252 rm -f conftest.$ac_objext
9253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9254   (eval $ac_compile) 2>&5
9255   ac_status=$?
9256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257   (exit $ac_status); } &&
9258          { ac_try='test -s conftest.$ac_objext'
9259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260   (eval $ac_try) 2>&5
9261   ac_status=$?
9262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263   (exit $ac_status); }; }; then
9264   ac_header_compiler=yes
9265 else
9266   echo "$as_me: failed program was:" >&5
9267 sed 's/^/| /' conftest.$ac_ext >&5
9268
9269 ac_header_compiler=no
9270 fi
9271 rm -f conftest.$ac_objext conftest.$ac_ext
9272 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9273 echo "${ECHO_T}$ac_header_compiler" >&6
9274
9275 # Is the header present?
9276 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9277 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9278 cat >conftest.$ac_ext <<_ACEOF
9279 #line $LINENO "configure"
9280 /* confdefs.h.  */
9281 _ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h.  */
9285 #include <$ac_header>
9286 _ACEOF
9287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9288   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9289   ac_status=$?
9290   grep -v '^ *+' conftest.er1 >conftest.err
9291   rm -f conftest.er1
9292   cat conftest.err >&5
9293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294   (exit $ac_status); } >/dev/null; then
9295   if test -s conftest.err; then
9296     ac_cpp_err=$ac_c_preproc_warn_flag
9297   else
9298     ac_cpp_err=
9299   fi
9300 else
9301   ac_cpp_err=yes
9302 fi
9303 if test -z "$ac_cpp_err"; then
9304   ac_header_preproc=yes
9305 else
9306   echo "$as_me: failed program was:" >&5
9307 sed 's/^/| /' conftest.$ac_ext >&5
9308
9309   ac_header_preproc=no
9310 fi
9311 rm -f conftest.err conftest.$ac_ext
9312 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9313 echo "${ECHO_T}$ac_header_preproc" >&6
9314
9315 # So?  What about this header?
9316 case $ac_header_compiler:$ac_header_preproc in
9317   yes:no )
9318     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9319 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9320     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9322     (
9323       cat <<\_ASBOX
9324 ## ------------------------------------ ##
9325 ## Report this to bug-autoconf@gnu.org. ##
9326 ## ------------------------------------ ##
9327 _ASBOX
9328     ) |
9329       sed "s/^/$as_me: WARNING:     /" >&2
9330     ;;
9331   no:yes )
9332     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9334     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9335 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9336     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9338     (
9339       cat <<\_ASBOX
9340 ## ------------------------------------ ##
9341 ## Report this to bug-autoconf@gnu.org. ##
9342 ## ------------------------------------ ##
9343 _ASBOX
9344     ) |
9345       sed "s/^/$as_me: WARNING:     /" >&2
9346     ;;
9347 esac
9348 echo "$as_me:$LINENO: checking for $ac_header" >&5
9349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9351   echo $ECHO_N "(cached) $ECHO_C" >&6
9352 else
9353   eval "$as_ac_Header=$ac_header_preproc"
9354 fi
9355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9357
9358 fi
9359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9360   cat >>confdefs.h <<_ACEOF
9361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9362 _ACEOF
9363
9364 fi
9365
9366 done
9367
9368 case "$host" in
9369  *-*-sunos4*) ;;
9370  *)
9371 for ac_header in sys/ioctl.h
9372 do
9373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9375   echo "$as_me:$LINENO: checking for $ac_header" >&5
9376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9378   echo $ECHO_N "(cached) $ECHO_C" >&6
9379 fi
9380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9382 else
9383   # Is the header compilable?
9384 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9386 cat >conftest.$ac_ext <<_ACEOF
9387 #line $LINENO "configure"
9388 /* confdefs.h.  */
9389 _ACEOF
9390 cat confdefs.h >>conftest.$ac_ext
9391 cat >>conftest.$ac_ext <<_ACEOF
9392 /* end confdefs.h.  */
9393 $ac_includes_default
9394 #include <$ac_header>
9395 _ACEOF
9396 rm -f conftest.$ac_objext
9397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9398   (eval $ac_compile) 2>&5
9399   ac_status=$?
9400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); } &&
9402          { ac_try='test -s conftest.$ac_objext'
9403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404   (eval $ac_try) 2>&5
9405   ac_status=$?
9406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407   (exit $ac_status); }; }; then
9408   ac_header_compiler=yes
9409 else
9410   echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9412
9413 ac_header_compiler=no
9414 fi
9415 rm -f conftest.$ac_objext conftest.$ac_ext
9416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9417 echo "${ECHO_T}$ac_header_compiler" >&6
9418
9419 # Is the header present?
9420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9422 cat >conftest.$ac_ext <<_ACEOF
9423 #line $LINENO "configure"
9424 /* confdefs.h.  */
9425 _ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h.  */
9429 #include <$ac_header>
9430 _ACEOF
9431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9432   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9433   ac_status=$?
9434   grep -v '^ *+' conftest.er1 >conftest.err
9435   rm -f conftest.er1
9436   cat conftest.err >&5
9437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438   (exit $ac_status); } >/dev/null; then
9439   if test -s conftest.err; then
9440     ac_cpp_err=$ac_c_preproc_warn_flag
9441   else
9442     ac_cpp_err=
9443   fi
9444 else
9445   ac_cpp_err=yes
9446 fi
9447 if test -z "$ac_cpp_err"; then
9448   ac_header_preproc=yes
9449 else
9450   echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.$ac_ext >&5
9452
9453   ac_header_preproc=no
9454 fi
9455 rm -f conftest.err conftest.$ac_ext
9456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9457 echo "${ECHO_T}$ac_header_preproc" >&6
9458
9459 # So?  What about this header?
9460 case $ac_header_compiler:$ac_header_preproc in
9461   yes:no )
9462     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9464     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9466     (
9467       cat <<\_ASBOX
9468 ## ------------------------------------ ##
9469 ## Report this to bug-autoconf@gnu.org. ##
9470 ## ------------------------------------ ##
9471 _ASBOX
9472     ) |
9473       sed "s/^/$as_me: WARNING:     /" >&2
9474     ;;
9475   no:yes )
9476     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9478     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9479 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9480     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9482     (
9483       cat <<\_ASBOX
9484 ## ------------------------------------ ##
9485 ## Report this to bug-autoconf@gnu.org. ##
9486 ## ------------------------------------ ##
9487 _ASBOX
9488     ) |
9489       sed "s/^/$as_me: WARNING:     /" >&2
9490     ;;
9491 esac
9492 echo "$as_me:$LINENO: checking for $ac_header" >&5
9493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9495   echo $ECHO_N "(cached) $ECHO_C" >&6
9496 else
9497   eval "$as_ac_Header=$ac_header_preproc"
9498 fi
9499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9501
9502 fi
9503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9504   cat >>confdefs.h <<_ACEOF
9505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9506 _ACEOF
9507
9508 fi
9509
9510 done
9511
9512     ;;
9513 esac
9514
9515 for ac_header in sys/ipc.h
9516 do
9517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9519   echo "$as_me:$LINENO: checking for $ac_header" >&5
9520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9522   echo $ECHO_N "(cached) $ECHO_C" >&6
9523 fi
9524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9526 else
9527   # Is the header compilable?
9528 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9530 cat >conftest.$ac_ext <<_ACEOF
9531 #line $LINENO "configure"
9532 /* confdefs.h.  */
9533 _ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h.  */
9537 $ac_includes_default
9538 #include <$ac_header>
9539 _ACEOF
9540 rm -f conftest.$ac_objext
9541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9542   (eval $ac_compile) 2>&5
9543   ac_status=$?
9544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545   (exit $ac_status); } &&
9546          { ac_try='test -s conftest.$ac_objext'
9547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548   (eval $ac_try) 2>&5
9549   ac_status=$?
9550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551   (exit $ac_status); }; }; then
9552   ac_header_compiler=yes
9553 else
9554   echo "$as_me: failed program was:" >&5
9555 sed 's/^/| /' conftest.$ac_ext >&5
9556
9557 ac_header_compiler=no
9558 fi
9559 rm -f conftest.$ac_objext conftest.$ac_ext
9560 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9561 echo "${ECHO_T}$ac_header_compiler" >&6
9562
9563 # Is the header present?
9564 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9566 cat >conftest.$ac_ext <<_ACEOF
9567 #line $LINENO "configure"
9568 /* confdefs.h.  */
9569 _ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h.  */
9573 #include <$ac_header>
9574 _ACEOF
9575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9576   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9577   ac_status=$?
9578   grep -v '^ *+' conftest.er1 >conftest.err
9579   rm -f conftest.er1
9580   cat conftest.err >&5
9581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582   (exit $ac_status); } >/dev/null; then
9583   if test -s conftest.err; then
9584     ac_cpp_err=$ac_c_preproc_warn_flag
9585   else
9586     ac_cpp_err=
9587   fi
9588 else
9589   ac_cpp_err=yes
9590 fi
9591 if test -z "$ac_cpp_err"; then
9592   ac_header_preproc=yes
9593 else
9594   echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9596
9597   ac_header_preproc=no
9598 fi
9599 rm -f conftest.err conftest.$ac_ext
9600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9601 echo "${ECHO_T}$ac_header_preproc" >&6
9602
9603 # So?  What about this header?
9604 case $ac_header_compiler:$ac_header_preproc in
9605   yes:no )
9606     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9610     (
9611       cat <<\_ASBOX
9612 ## ------------------------------------ ##
9613 ## Report this to bug-autoconf@gnu.org. ##
9614 ## ------------------------------------ ##
9615 _ASBOX
9616     ) |
9617       sed "s/^/$as_me: WARNING:     /" >&2
9618     ;;
9619   no:yes )
9620     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9622     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9624     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9626     (
9627       cat <<\_ASBOX
9628 ## ------------------------------------ ##
9629 ## Report this to bug-autoconf@gnu.org. ##
9630 ## ------------------------------------ ##
9631 _ASBOX
9632     ) |
9633       sed "s/^/$as_me: WARNING:     /" >&2
9634     ;;
9635 esac
9636 echo "$as_me:$LINENO: checking for $ac_header" >&5
9637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9639   echo $ECHO_N "(cached) $ECHO_C" >&6
9640 else
9641   eval "$as_ac_Header=$ac_header_preproc"
9642 fi
9643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9645
9646 fi
9647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9648   cat >>confdefs.h <<_ACEOF
9649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9650 _ACEOF
9651
9652 fi
9653
9654 done
9655
9656
9657
9658
9659
9660
9661 for ac_header in sys/lock.h sys/mman.h sys/modem.h sys/param.h sys/ppsclock.h
9662 do
9663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9665   echo "$as_me:$LINENO: checking for $ac_header" >&5
9666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9668   echo $ECHO_N "(cached) $ECHO_C" >&6
9669 fi
9670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9672 else
9673   # Is the header compilable?
9674 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9676 cat >conftest.$ac_ext <<_ACEOF
9677 #line $LINENO "configure"
9678 /* confdefs.h.  */
9679 _ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h.  */
9683 $ac_includes_default
9684 #include <$ac_header>
9685 _ACEOF
9686 rm -f conftest.$ac_objext
9687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9688   (eval $ac_compile) 2>&5
9689   ac_status=$?
9690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691   (exit $ac_status); } &&
9692          { ac_try='test -s conftest.$ac_objext'
9693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694   (eval $ac_try) 2>&5
9695   ac_status=$?
9696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697   (exit $ac_status); }; }; then
9698   ac_header_compiler=yes
9699 else
9700   echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.$ac_ext >&5
9702
9703 ac_header_compiler=no
9704 fi
9705 rm -f conftest.$ac_objext conftest.$ac_ext
9706 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9707 echo "${ECHO_T}$ac_header_compiler" >&6
9708
9709 # Is the header present?
9710 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9712 cat >conftest.$ac_ext <<_ACEOF
9713 #line $LINENO "configure"
9714 /* confdefs.h.  */
9715 _ACEOF
9716 cat confdefs.h >>conftest.$ac_ext
9717 cat >>conftest.$ac_ext <<_ACEOF
9718 /* end confdefs.h.  */
9719 #include <$ac_header>
9720 _ACEOF
9721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9722   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9723   ac_status=$?
9724   grep -v '^ *+' conftest.er1 >conftest.err
9725   rm -f conftest.er1
9726   cat conftest.err >&5
9727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728   (exit $ac_status); } >/dev/null; then
9729   if test -s conftest.err; then
9730     ac_cpp_err=$ac_c_preproc_warn_flag
9731   else
9732     ac_cpp_err=
9733   fi
9734 else
9735   ac_cpp_err=yes
9736 fi
9737 if test -z "$ac_cpp_err"; then
9738   ac_header_preproc=yes
9739 else
9740   echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9742
9743   ac_header_preproc=no
9744 fi
9745 rm -f conftest.err conftest.$ac_ext
9746 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9747 echo "${ECHO_T}$ac_header_preproc" >&6
9748
9749 # So?  What about this header?
9750 case $ac_header_compiler:$ac_header_preproc in
9751   yes:no )
9752     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9753 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9754     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9755 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9756     (
9757       cat <<\_ASBOX
9758 ## ------------------------------------ ##
9759 ## Report this to bug-autoconf@gnu.org. ##
9760 ## ------------------------------------ ##
9761 _ASBOX
9762     ) |
9763       sed "s/^/$as_me: WARNING:     /" >&2
9764     ;;
9765   no:yes )
9766     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9767 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9768     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9769 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9770     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9772     (
9773       cat <<\_ASBOX
9774 ## ------------------------------------ ##
9775 ## Report this to bug-autoconf@gnu.org. ##
9776 ## ------------------------------------ ##
9777 _ASBOX
9778     ) |
9779       sed "s/^/$as_me: WARNING:     /" >&2
9780     ;;
9781 esac
9782 echo "$as_me:$LINENO: checking for $ac_header" >&5
9783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9785   echo $ECHO_N "(cached) $ECHO_C" >&6
9786 else
9787   eval "$as_ac_Header=$ac_header_preproc"
9788 fi
9789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9791
9792 fi
9793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9794   cat >>confdefs.h <<_ACEOF
9795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9796 _ACEOF
9797
9798 fi
9799
9800 done
9801
9802
9803
9804
9805
9806 for ac_header in sys/ppstime.h sys/proc.h sys/resource.h sys/sched.h
9807 do
9808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9810   echo "$as_me:$LINENO: checking for $ac_header" >&5
9811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9813   echo $ECHO_N "(cached) $ECHO_C" >&6
9814 fi
9815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9817 else
9818   # Is the header compilable?
9819 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9821 cat >conftest.$ac_ext <<_ACEOF
9822 #line $LINENO "configure"
9823 /* confdefs.h.  */
9824 _ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h.  */
9828 $ac_includes_default
9829 #include <$ac_header>
9830 _ACEOF
9831 rm -f conftest.$ac_objext
9832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9833   (eval $ac_compile) 2>&5
9834   ac_status=$?
9835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836   (exit $ac_status); } &&
9837          { ac_try='test -s conftest.$ac_objext'
9838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839   (eval $ac_try) 2>&5
9840   ac_status=$?
9841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842   (exit $ac_status); }; }; then
9843   ac_header_compiler=yes
9844 else
9845   echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9847
9848 ac_header_compiler=no
9849 fi
9850 rm -f conftest.$ac_objext conftest.$ac_ext
9851 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9852 echo "${ECHO_T}$ac_header_compiler" >&6
9853
9854 # Is the header present?
9855 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9857 cat >conftest.$ac_ext <<_ACEOF
9858 #line $LINENO "configure"
9859 /* confdefs.h.  */
9860 _ACEOF
9861 cat confdefs.h >>conftest.$ac_ext
9862 cat >>conftest.$ac_ext <<_ACEOF
9863 /* end confdefs.h.  */
9864 #include <$ac_header>
9865 _ACEOF
9866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9867   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9868   ac_status=$?
9869   grep -v '^ *+' conftest.er1 >conftest.err
9870   rm -f conftest.er1
9871   cat conftest.err >&5
9872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873   (exit $ac_status); } >/dev/null; then
9874   if test -s conftest.err; then
9875     ac_cpp_err=$ac_c_preproc_warn_flag
9876   else
9877     ac_cpp_err=
9878   fi
9879 else
9880   ac_cpp_err=yes
9881 fi
9882 if test -z "$ac_cpp_err"; then
9883   ac_header_preproc=yes
9884 else
9885   echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.$ac_ext >&5
9887
9888   ac_header_preproc=no
9889 fi
9890 rm -f conftest.err conftest.$ac_ext
9891 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9892 echo "${ECHO_T}$ac_header_preproc" >&6
9893
9894 # So?  What about this header?
9895 case $ac_header_compiler:$ac_header_preproc in
9896   yes:no )
9897     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9898 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9899     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9901     (
9902       cat <<\_ASBOX
9903 ## ------------------------------------ ##
9904 ## Report this to bug-autoconf@gnu.org. ##
9905 ## ------------------------------------ ##
9906 _ASBOX
9907     ) |
9908       sed "s/^/$as_me: WARNING:     /" >&2
9909     ;;
9910   no:yes )
9911     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9913     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9915     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9917     (
9918       cat <<\_ASBOX
9919 ## ------------------------------------ ##
9920 ## Report this to bug-autoconf@gnu.org. ##
9921 ## ------------------------------------ ##
9922 _ASBOX
9923     ) |
9924       sed "s/^/$as_me: WARNING:     /" >&2
9925     ;;
9926 esac
9927 echo "$as_me:$LINENO: checking for $ac_header" >&5
9928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9930   echo $ECHO_N "(cached) $ECHO_C" >&6
9931 else
9932   eval "$as_ac_Header=$ac_header_preproc"
9933 fi
9934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9936
9937 fi
9938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9939   cat >>confdefs.h <<_ACEOF
9940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9941 _ACEOF
9942
9943 fi
9944
9945 done
9946
9947 case "$host" in
9948  *-*-sco*)
9949
9950 for ac_header in sys/sio.h
9951 do
9952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9954   echo "$as_me:$LINENO: checking for $ac_header" >&5
9955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9957   echo $ECHO_N "(cached) $ECHO_C" >&6
9958 fi
9959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9961 else
9962   # Is the header compilable?
9963 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9965 cat >conftest.$ac_ext <<_ACEOF
9966 #line $LINENO "configure"
9967 /* confdefs.h.  */
9968 _ACEOF
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h.  */
9972 $ac_includes_default
9973 #include <$ac_header>
9974 _ACEOF
9975 rm -f conftest.$ac_objext
9976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9977   (eval $ac_compile) 2>&5
9978   ac_status=$?
9979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980   (exit $ac_status); } &&
9981          { ac_try='test -s conftest.$ac_objext'
9982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9983   (eval $ac_try) 2>&5
9984   ac_status=$?
9985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986   (exit $ac_status); }; }; then
9987   ac_header_compiler=yes
9988 else
9989   echo "$as_me: failed program was:" >&5
9990 sed 's/^/| /' conftest.$ac_ext >&5
9991
9992 ac_header_compiler=no
9993 fi
9994 rm -f conftest.$ac_objext conftest.$ac_ext
9995 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9996 echo "${ECHO_T}$ac_header_compiler" >&6
9997
9998 # Is the header present?
9999 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10001 cat >conftest.$ac_ext <<_ACEOF
10002 #line $LINENO "configure"
10003 /* confdefs.h.  */
10004 _ACEOF
10005 cat confdefs.h >>conftest.$ac_ext
10006 cat >>conftest.$ac_ext <<_ACEOF
10007 /* end confdefs.h.  */
10008 #include <$ac_header>
10009 _ACEOF
10010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10011   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10012   ac_status=$?
10013   grep -v '^ *+' conftest.er1 >conftest.err
10014   rm -f conftest.er1
10015   cat conftest.err >&5
10016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017   (exit $ac_status); } >/dev/null; then
10018   if test -s conftest.err; then
10019     ac_cpp_err=$ac_c_preproc_warn_flag
10020   else
10021     ac_cpp_err=
10022   fi
10023 else
10024   ac_cpp_err=yes
10025 fi
10026 if test -z "$ac_cpp_err"; then
10027   ac_header_preproc=yes
10028 else
10029   echo "$as_me: failed program was:" >&5
10030 sed 's/^/| /' conftest.$ac_ext >&5
10031
10032   ac_header_preproc=no
10033 fi
10034 rm -f conftest.err conftest.$ac_ext
10035 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10036 echo "${ECHO_T}$ac_header_preproc" >&6
10037
10038 # So?  What about this header?
10039 case $ac_header_compiler:$ac_header_preproc in
10040   yes:no )
10041     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10043     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10045     (
10046       cat <<\_ASBOX
10047 ## ------------------------------------ ##
10048 ## Report this to bug-autoconf@gnu.org. ##
10049 ## ------------------------------------ ##
10050 _ASBOX
10051     ) |
10052       sed "s/^/$as_me: WARNING:     /" >&2
10053     ;;
10054   no:yes )
10055     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10056 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10057     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10058 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10059     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10061     (
10062       cat <<\_ASBOX
10063 ## ------------------------------------ ##
10064 ## Report this to bug-autoconf@gnu.org. ##
10065 ## ------------------------------------ ##
10066 _ASBOX
10067     ) |
10068       sed "s/^/$as_me: WARNING:     /" >&2
10069     ;;
10070 esac
10071 echo "$as_me:$LINENO: checking for $ac_header" >&5
10072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10074   echo $ECHO_N "(cached) $ECHO_C" >&6
10075 else
10076   eval "$as_ac_Header=$ac_header_preproc"
10077 fi
10078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10080
10081 fi
10082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10083   cat >>confdefs.h <<_ACEOF
10084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10085 _ACEOF
10086
10087 fi
10088
10089 done
10090
10091     ;;
10092 esac
10093
10094
10095
10096
10097 for ac_header in sys/select.h sys/shm.h sys/signal.h sys/sockio.h
10098 do
10099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10101   echo "$as_me:$LINENO: checking for $ac_header" >&5
10102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10104   echo $ECHO_N "(cached) $ECHO_C" >&6
10105 fi
10106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10108 else
10109   # Is the header compilable?
10110 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10112 cat >conftest.$ac_ext <<_ACEOF
10113 #line $LINENO "configure"
10114 /* confdefs.h.  */
10115 _ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h.  */
10119 $ac_includes_default
10120 #include <$ac_header>
10121 _ACEOF
10122 rm -f conftest.$ac_objext
10123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10124   (eval $ac_compile) 2>&5
10125   ac_status=$?
10126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127   (exit $ac_status); } &&
10128          { ac_try='test -s conftest.$ac_objext'
10129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130   (eval $ac_try) 2>&5
10131   ac_status=$?
10132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133   (exit $ac_status); }; }; then
10134   ac_header_compiler=yes
10135 else
10136   echo "$as_me: failed program was:" >&5
10137 sed 's/^/| /' conftest.$ac_ext >&5
10138
10139 ac_header_compiler=no
10140 fi
10141 rm -f conftest.$ac_objext conftest.$ac_ext
10142 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10143 echo "${ECHO_T}$ac_header_compiler" >&6
10144
10145 # Is the header present?
10146 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10148 cat >conftest.$ac_ext <<_ACEOF
10149 #line $LINENO "configure"
10150 /* confdefs.h.  */
10151 _ACEOF
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h.  */
10155 #include <$ac_header>
10156 _ACEOF
10157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10158   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10159   ac_status=$?
10160   grep -v '^ *+' conftest.er1 >conftest.err
10161   rm -f conftest.er1
10162   cat conftest.err >&5
10163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164   (exit $ac_status); } >/dev/null; then
10165   if test -s conftest.err; then
10166     ac_cpp_err=$ac_c_preproc_warn_flag
10167   else
10168     ac_cpp_err=
10169   fi
10170 else
10171   ac_cpp_err=yes
10172 fi
10173 if test -z "$ac_cpp_err"; then
10174   ac_header_preproc=yes
10175 else
10176   echo "$as_me: failed program was:" >&5
10177 sed 's/^/| /' conftest.$ac_ext >&5
10178
10179   ac_header_preproc=no
10180 fi
10181 rm -f conftest.err conftest.$ac_ext
10182 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10183 echo "${ECHO_T}$ac_header_preproc" >&6
10184
10185 # So?  What about this header?
10186 case $ac_header_compiler:$ac_header_preproc in
10187   yes:no )
10188     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10192     (
10193       cat <<\_ASBOX
10194 ## ------------------------------------ ##
10195 ## Report this to bug-autoconf@gnu.org. ##
10196 ## ------------------------------------ ##
10197 _ASBOX
10198     ) |
10199       sed "s/^/$as_me: WARNING:     /" >&2
10200     ;;
10201   no:yes )
10202     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10204     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10206     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10208     (
10209       cat <<\_ASBOX
10210 ## ------------------------------------ ##
10211 ## Report this to bug-autoconf@gnu.org. ##
10212 ## ------------------------------------ ##
10213 _ASBOX
10214     ) |
10215       sed "s/^/$as_me: WARNING:     /" >&2
10216     ;;
10217 esac
10218 echo "$as_me:$LINENO: checking for $ac_header" >&5
10219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10221   echo $ECHO_N "(cached) $ECHO_C" >&6
10222 else
10223   eval "$as_ac_Header=$ac_header_preproc"
10224 fi
10225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10227
10228 fi
10229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10230   cat >>confdefs.h <<_ACEOF
10231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10232 _ACEOF
10233
10234 fi
10235
10236 done
10237
10238
10239
10240 for ac_header in machine/soundcard.h sys/soundcard.h
10241 do
10242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10244   echo "$as_me:$LINENO: checking for $ac_header" >&5
10245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10247   echo $ECHO_N "(cached) $ECHO_C" >&6
10248 fi
10249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10251 else
10252   # Is the header compilable?
10253 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10255 cat >conftest.$ac_ext <<_ACEOF
10256 #line $LINENO "configure"
10257 /* confdefs.h.  */
10258 _ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h.  */
10262 $ac_includes_default
10263 #include <$ac_header>
10264 _ACEOF
10265 rm -f conftest.$ac_objext
10266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10267   (eval $ac_compile) 2>&5
10268   ac_status=$?
10269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270   (exit $ac_status); } &&
10271          { ac_try='test -s conftest.$ac_objext'
10272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273   (eval $ac_try) 2>&5
10274   ac_status=$?
10275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276   (exit $ac_status); }; }; then
10277   ac_header_compiler=yes
10278 else
10279   echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10281
10282 ac_header_compiler=no
10283 fi
10284 rm -f conftest.$ac_objext conftest.$ac_ext
10285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10286 echo "${ECHO_T}$ac_header_compiler" >&6
10287
10288 # Is the header present?
10289 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10291 cat >conftest.$ac_ext <<_ACEOF
10292 #line $LINENO "configure"
10293 /* confdefs.h.  */
10294 _ACEOF
10295 cat confdefs.h >>conftest.$ac_ext
10296 cat >>conftest.$ac_ext <<_ACEOF
10297 /* end confdefs.h.  */
10298 #include <$ac_header>
10299 _ACEOF
10300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10301   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10302   ac_status=$?
10303   grep -v '^ *+' conftest.er1 >conftest.err
10304   rm -f conftest.er1
10305   cat conftest.err >&5
10306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307   (exit $ac_status); } >/dev/null; then
10308   if test -s conftest.err; then
10309     ac_cpp_err=$ac_c_preproc_warn_flag
10310   else
10311     ac_cpp_err=
10312   fi
10313 else
10314   ac_cpp_err=yes
10315 fi
10316 if test -z "$ac_cpp_err"; then
10317   ac_header_preproc=yes
10318 else
10319   echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10321
10322   ac_header_preproc=no
10323 fi
10324 rm -f conftest.err conftest.$ac_ext
10325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10326 echo "${ECHO_T}$ac_header_preproc" >&6
10327
10328 # So?  What about this header?
10329 case $ac_header_compiler:$ac_header_preproc in
10330   yes:no )
10331     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10333     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10335     (
10336       cat <<\_ASBOX
10337 ## ------------------------------------ ##
10338 ## Report this to bug-autoconf@gnu.org. ##
10339 ## ------------------------------------ ##
10340 _ASBOX
10341     ) |
10342       sed "s/^/$as_me: WARNING:     /" >&2
10343     ;;
10344   no:yes )
10345     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10346 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10347     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10348 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10349     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10351     (
10352       cat <<\_ASBOX
10353 ## ------------------------------------ ##
10354 ## Report this to bug-autoconf@gnu.org. ##
10355 ## ------------------------------------ ##
10356 _ASBOX
10357     ) |
10358       sed "s/^/$as_me: WARNING:     /" >&2
10359     ;;
10360 esac
10361 echo "$as_me:$LINENO: checking for $ac_header" >&5
10362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10364   echo $ECHO_N "(cached) $ECHO_C" >&6
10365 else
10366   eval "$as_ac_Header=$ac_header_preproc"
10367 fi
10368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10370
10371 fi
10372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10373   cat >>confdefs.h <<_ACEOF
10374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10375 _ACEOF
10376
10377 fi
10378
10379 done
10380
10381
10382
10383 for ac_header in sys/stat.h sys/stream.h
10384 do
10385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10387   echo "$as_me:$LINENO: checking for $ac_header" >&5
10388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10390   echo $ECHO_N "(cached) $ECHO_C" >&6
10391 fi
10392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10394 else
10395   # Is the header compilable?
10396 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10398 cat >conftest.$ac_ext <<_ACEOF
10399 #line $LINENO "configure"
10400 /* confdefs.h.  */
10401 _ACEOF
10402 cat confdefs.h >>conftest.$ac_ext
10403 cat >>conftest.$ac_ext <<_ACEOF
10404 /* end confdefs.h.  */
10405 $ac_includes_default
10406 #include <$ac_header>
10407 _ACEOF
10408 rm -f conftest.$ac_objext
10409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10410   (eval $ac_compile) 2>&5
10411   ac_status=$?
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   (exit $ac_status); } &&
10414          { ac_try='test -s conftest.$ac_objext'
10415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10416   (eval $ac_try) 2>&5
10417   ac_status=$?
10418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419   (exit $ac_status); }; }; then
10420   ac_header_compiler=yes
10421 else
10422   echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10424
10425 ac_header_compiler=no
10426 fi
10427 rm -f conftest.$ac_objext conftest.$ac_ext
10428 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10429 echo "${ECHO_T}$ac_header_compiler" >&6
10430
10431 # Is the header present?
10432 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10433 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10434 cat >conftest.$ac_ext <<_ACEOF
10435 #line $LINENO "configure"
10436 /* confdefs.h.  */
10437 _ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h.  */
10441 #include <$ac_header>
10442 _ACEOF
10443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10444   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10445   ac_status=$?
10446   grep -v '^ *+' conftest.er1 >conftest.err
10447   rm -f conftest.er1
10448   cat conftest.err >&5
10449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450   (exit $ac_status); } >/dev/null; then
10451   if test -s conftest.err; then
10452     ac_cpp_err=$ac_c_preproc_warn_flag
10453   else
10454     ac_cpp_err=
10455   fi
10456 else
10457   ac_cpp_err=yes
10458 fi
10459 if test -z "$ac_cpp_err"; then
10460   ac_header_preproc=yes
10461 else
10462   echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.$ac_ext >&5
10464
10465   ac_header_preproc=no
10466 fi
10467 rm -f conftest.err conftest.$ac_ext
10468 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10469 echo "${ECHO_T}$ac_header_preproc" >&6
10470
10471 # So?  What about this header?
10472 case $ac_header_compiler:$ac_header_preproc in
10473   yes:no )
10474     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10475 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10476     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10478     (
10479       cat <<\_ASBOX
10480 ## ------------------------------------ ##
10481 ## Report this to bug-autoconf@gnu.org. ##
10482 ## ------------------------------------ ##
10483 _ASBOX
10484     ) |
10485       sed "s/^/$as_me: WARNING:     /" >&2
10486     ;;
10487   no:yes )
10488     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10489 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10490     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10491 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10492     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10494     (
10495       cat <<\_ASBOX
10496 ## ------------------------------------ ##
10497 ## Report this to bug-autoconf@gnu.org. ##
10498 ## ------------------------------------ ##
10499 _ASBOX
10500     ) |
10501       sed "s/^/$as_me: WARNING:     /" >&2
10502     ;;
10503 esac
10504 echo "$as_me:$LINENO: checking for $ac_header" >&5
10505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10507   echo $ECHO_N "(cached) $ECHO_C" >&6
10508 else
10509   eval "$as_ac_Header=$ac_header_preproc"
10510 fi
10511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10513
10514 fi
10515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10516   cat >>confdefs.h <<_ACEOF
10517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10518 _ACEOF
10519
10520 fi
10521
10522 done
10523
10524
10525
10526
10527
10528 for ac_header in sys/stropts.h sys/sysctl.h sys/syssgi.h sys/systune.h
10529 do
10530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10532   echo "$as_me:$LINENO: checking for $ac_header" >&5
10533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10535   echo $ECHO_N "(cached) $ECHO_C" >&6
10536 fi
10537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10539 else
10540   # Is the header compilable?
10541 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10543 cat >conftest.$ac_ext <<_ACEOF
10544 #line $LINENO "configure"
10545 /* confdefs.h.  */
10546 _ACEOF
10547 cat confdefs.h >>conftest.$ac_ext
10548 cat >>conftest.$ac_ext <<_ACEOF
10549 /* end confdefs.h.  */
10550 $ac_includes_default
10551 #include <$ac_header>
10552 _ACEOF
10553 rm -f conftest.$ac_objext
10554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10555   (eval $ac_compile) 2>&5
10556   ac_status=$?
10557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558   (exit $ac_status); } &&
10559          { ac_try='test -s conftest.$ac_objext'
10560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10561   (eval $ac_try) 2>&5
10562   ac_status=$?
10563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564   (exit $ac_status); }; }; then
10565   ac_header_compiler=yes
10566 else
10567   echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.$ac_ext >&5
10569
10570 ac_header_compiler=no
10571 fi
10572 rm -f conftest.$ac_objext conftest.$ac_ext
10573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10574 echo "${ECHO_T}$ac_header_compiler" >&6
10575
10576 # Is the header present?
10577 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10579 cat >conftest.$ac_ext <<_ACEOF
10580 #line $LINENO "configure"
10581 /* confdefs.h.  */
10582 _ACEOF
10583 cat confdefs.h >>conftest.$ac_ext
10584 cat >>conftest.$ac_ext <<_ACEOF
10585 /* end confdefs.h.  */
10586 #include <$ac_header>
10587 _ACEOF
10588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10589   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10590   ac_status=$?
10591   grep -v '^ *+' conftest.er1 >conftest.err
10592   rm -f conftest.er1
10593   cat conftest.err >&5
10594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595   (exit $ac_status); } >/dev/null; then
10596   if test -s conftest.err; then
10597     ac_cpp_err=$ac_c_preproc_warn_flag
10598   else
10599     ac_cpp_err=
10600   fi
10601 else
10602   ac_cpp_err=yes
10603 fi
10604 if test -z "$ac_cpp_err"; then
10605   ac_header_preproc=yes
10606 else
10607   echo "$as_me: failed program was:" >&5
10608 sed 's/^/| /' conftest.$ac_ext >&5
10609
10610   ac_header_preproc=no
10611 fi
10612 rm -f conftest.err conftest.$ac_ext
10613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10614 echo "${ECHO_T}$ac_header_preproc" >&6
10615
10616 # So?  What about this header?
10617 case $ac_header_compiler:$ac_header_preproc in
10618   yes:no )
10619     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10621     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10623     (
10624       cat <<\_ASBOX
10625 ## ------------------------------------ ##
10626 ## Report this to bug-autoconf@gnu.org. ##
10627 ## ------------------------------------ ##
10628 _ASBOX
10629     ) |
10630       sed "s/^/$as_me: WARNING:     /" >&2
10631     ;;
10632   no:yes )
10633     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10635     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10636 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10637     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10639     (
10640       cat <<\_ASBOX
10641 ## ------------------------------------ ##
10642 ## Report this to bug-autoconf@gnu.org. ##
10643 ## ------------------------------------ ##
10644 _ASBOX
10645     ) |
10646       sed "s/^/$as_me: WARNING:     /" >&2
10647     ;;
10648 esac
10649 echo "$as_me:$LINENO: checking for $ac_header" >&5
10650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10652   echo $ECHO_N "(cached) $ECHO_C" >&6
10653 else
10654   eval "$as_ac_Header=$ac_header_preproc"
10655 fi
10656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10658
10659 fi
10660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10661   cat >>confdefs.h <<_ACEOF
10662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10663 _ACEOF
10664
10665 fi
10666
10667 done
10668
10669
10670
10671
10672 for ac_header in sys/termios.h sys/time.h sys/signal.h
10673 do
10674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10676   echo "$as_me:$LINENO: checking for $ac_header" >&5
10677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10679   echo $ECHO_N "(cached) $ECHO_C" >&6
10680 fi
10681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10683 else
10684   # Is the header compilable?
10685 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10686 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10687 cat >conftest.$ac_ext <<_ACEOF
10688 #line $LINENO "configure"
10689 /* confdefs.h.  */
10690 _ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h.  */
10694 $ac_includes_default
10695 #include <$ac_header>
10696 _ACEOF
10697 rm -f conftest.$ac_objext
10698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10699   (eval $ac_compile) 2>&5
10700   ac_status=$?
10701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702   (exit $ac_status); } &&
10703          { ac_try='test -s conftest.$ac_objext'
10704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705   (eval $ac_try) 2>&5
10706   ac_status=$?
10707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708   (exit $ac_status); }; }; then
10709   ac_header_compiler=yes
10710 else
10711   echo "$as_me: failed program was:" >&5
10712 sed 's/^/| /' conftest.$ac_ext >&5
10713
10714 ac_header_compiler=no
10715 fi
10716 rm -f conftest.$ac_objext conftest.$ac_ext
10717 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10718 echo "${ECHO_T}$ac_header_compiler" >&6
10719
10720 # Is the header present?
10721 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10723 cat >conftest.$ac_ext <<_ACEOF
10724 #line $LINENO "configure"
10725 /* confdefs.h.  */
10726 _ACEOF
10727 cat confdefs.h >>conftest.$ac_ext
10728 cat >>conftest.$ac_ext <<_ACEOF
10729 /* end confdefs.h.  */
10730 #include <$ac_header>
10731 _ACEOF
10732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10733   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10734   ac_status=$?
10735   grep -v '^ *+' conftest.er1 >conftest.err
10736   rm -f conftest.er1
10737   cat conftest.err >&5
10738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739   (exit $ac_status); } >/dev/null; then
10740   if test -s conftest.err; then
10741     ac_cpp_err=$ac_c_preproc_warn_flag
10742   else
10743     ac_cpp_err=
10744   fi
10745 else
10746   ac_cpp_err=yes
10747 fi
10748 if test -z "$ac_cpp_err"; then
10749   ac_header_preproc=yes
10750 else
10751   echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.$ac_ext >&5
10753
10754   ac_header_preproc=no
10755 fi
10756 rm -f conftest.err conftest.$ac_ext
10757 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10758 echo "${ECHO_T}$ac_header_preproc" >&6
10759
10760 # So?  What about this header?
10761 case $ac_header_compiler:$ac_header_preproc in
10762   yes:no )
10763     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10765     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10767     (
10768       cat <<\_ASBOX
10769 ## ------------------------------------ ##
10770 ## Report this to bug-autoconf@gnu.org. ##
10771 ## ------------------------------------ ##
10772 _ASBOX
10773     ) |
10774       sed "s/^/$as_me: WARNING:     /" >&2
10775     ;;
10776   no:yes )
10777     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10778 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10779     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10780 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10781     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10783     (
10784       cat <<\_ASBOX
10785 ## ------------------------------------ ##
10786 ## Report this to bug-autoconf@gnu.org. ##
10787 ## ------------------------------------ ##
10788 _ASBOX
10789     ) |
10790       sed "s/^/$as_me: WARNING:     /" >&2
10791     ;;
10792 esac
10793 echo "$as_me:$LINENO: checking for $ac_header" >&5
10794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10796   echo $ECHO_N "(cached) $ECHO_C" >&6
10797 else
10798   eval "$as_ac_Header=$ac_header_preproc"
10799 fi
10800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10802
10803 fi
10804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10805   cat >>confdefs.h <<_ACEOF
10806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10807 _ACEOF
10808
10809 fi
10810
10811 done
10812
10813 cat >conftest.$ac_ext <<_ACEOF
10814 #line $LINENO "configure"
10815 /* confdefs.h.  */
10816 _ACEOF
10817 cat confdefs.h >>conftest.$ac_ext
10818 cat >>conftest.$ac_ext <<_ACEOF
10819 /* end confdefs.h.  */
10820 #include <sys/timepps.h>
10821 #ifdef PPS_API_VERS_1
10822 yes
10823 #endif
10824
10825 _ACEOF
10826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10827   $EGREP "yes" >/dev/null 2>&1; then
10828
10829 for ac_header in sys/timepps.h
10830 do
10831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10833   echo "$as_me:$LINENO: checking for $ac_header" >&5
10834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10836   echo $ECHO_N "(cached) $ECHO_C" >&6
10837 fi
10838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10840 else
10841   # Is the header compilable?
10842 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10844 cat >conftest.$ac_ext <<_ACEOF
10845 #line $LINENO "configure"
10846 /* confdefs.h.  */
10847 _ACEOF
10848 cat confdefs.h >>conftest.$ac_ext
10849 cat >>conftest.$ac_ext <<_ACEOF
10850 /* end confdefs.h.  */
10851 $ac_includes_default
10852 #include <$ac_header>
10853 _ACEOF
10854 rm -f conftest.$ac_objext
10855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10856   (eval $ac_compile) 2>&5
10857   ac_status=$?
10858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859   (exit $ac_status); } &&
10860          { ac_try='test -s conftest.$ac_objext'
10861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10862   (eval $ac_try) 2>&5
10863   ac_status=$?
10864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865   (exit $ac_status); }; }; then
10866   ac_header_compiler=yes
10867 else
10868   echo "$as_me: failed program was:" >&5
10869 sed 's/^/| /' conftest.$ac_ext >&5
10870
10871 ac_header_compiler=no
10872 fi
10873 rm -f conftest.$ac_objext conftest.$ac_ext
10874 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10875 echo "${ECHO_T}$ac_header_compiler" >&6
10876
10877 # Is the header present?
10878 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10880 cat >conftest.$ac_ext <<_ACEOF
10881 #line $LINENO "configure"
10882 /* confdefs.h.  */
10883 _ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h.  */
10887 #include <$ac_header>
10888 _ACEOF
10889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10890   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10891   ac_status=$?
10892   grep -v '^ *+' conftest.er1 >conftest.err
10893   rm -f conftest.er1
10894   cat conftest.err >&5
10895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896   (exit $ac_status); } >/dev/null; then
10897   if test -s conftest.err; then
10898     ac_cpp_err=$ac_c_preproc_warn_flag
10899   else
10900     ac_cpp_err=
10901   fi
10902 else
10903   ac_cpp_err=yes
10904 fi
10905 if test -z "$ac_cpp_err"; then
10906   ac_header_preproc=yes
10907 else
10908   echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.$ac_ext >&5
10910
10911   ac_header_preproc=no
10912 fi
10913 rm -f conftest.err conftest.$ac_ext
10914 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10915 echo "${ECHO_T}$ac_header_preproc" >&6
10916
10917 # So?  What about this header?
10918 case $ac_header_compiler:$ac_header_preproc in
10919   yes:no )
10920     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10922     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10924     (
10925       cat <<\_ASBOX
10926 ## ------------------------------------ ##
10927 ## Report this to bug-autoconf@gnu.org. ##
10928 ## ------------------------------------ ##
10929 _ASBOX
10930     ) |
10931       sed "s/^/$as_me: WARNING:     /" >&2
10932     ;;
10933   no:yes )
10934     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10936     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10937 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10938     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10940     (
10941       cat <<\_ASBOX
10942 ## ------------------------------------ ##
10943 ## Report this to bug-autoconf@gnu.org. ##
10944 ## ------------------------------------ ##
10945 _ASBOX
10946     ) |
10947       sed "s/^/$as_me: WARNING:     /" >&2
10948     ;;
10949 esac
10950 echo "$as_me:$LINENO: checking for $ac_header" >&5
10951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10953   echo $ECHO_N "(cached) $ECHO_C" >&6
10954 else
10955   eval "$as_ac_Header=$ac_header_preproc"
10956 fi
10957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10959
10960 fi
10961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10962   cat >>confdefs.h <<_ACEOF
10963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10964 _ACEOF
10965
10966 fi
10967
10968 done
10969
10970 fi
10971 rm -f conftest*
10972
10973
10974
10975
10976
10977
10978 for ac_header in sys/timers.h sys/timex.h sys/tpro.h sys/types.h sys/wait.h
10979 do
10980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10982   echo "$as_me:$LINENO: checking for $ac_header" >&5
10983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10985   echo $ECHO_N "(cached) $ECHO_C" >&6
10986 fi
10987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10989 else
10990   # Is the header compilable?
10991 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10993 cat >conftest.$ac_ext <<_ACEOF
10994 #line $LINENO "configure"
10995 /* confdefs.h.  */
10996 _ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h.  */
11000 $ac_includes_default
11001 #include <$ac_header>
11002 _ACEOF
11003 rm -f conftest.$ac_objext
11004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11005   (eval $ac_compile) 2>&5
11006   ac_status=$?
11007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008   (exit $ac_status); } &&
11009          { ac_try='test -s conftest.$ac_objext'
11010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11011   (eval $ac_try) 2>&5
11012   ac_status=$?
11013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014   (exit $ac_status); }; }; then
11015   ac_header_compiler=yes
11016 else
11017   echo "$as_me: failed program was:" >&5
11018 sed 's/^/| /' conftest.$ac_ext >&5
11019
11020 ac_header_compiler=no
11021 fi
11022 rm -f conftest.$ac_objext conftest.$ac_ext
11023 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11024 echo "${ECHO_T}$ac_header_compiler" >&6
11025
11026 # Is the header present?
11027 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11029 cat >conftest.$ac_ext <<_ACEOF
11030 #line $LINENO "configure"
11031 /* confdefs.h.  */
11032 _ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h.  */
11036 #include <$ac_header>
11037 _ACEOF
11038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11039   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11040   ac_status=$?
11041   grep -v '^ *+' conftest.er1 >conftest.err
11042   rm -f conftest.er1
11043   cat conftest.err >&5
11044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045   (exit $ac_status); } >/dev/null; then
11046   if test -s conftest.err; then
11047     ac_cpp_err=$ac_c_preproc_warn_flag
11048   else
11049     ac_cpp_err=
11050   fi
11051 else
11052   ac_cpp_err=yes
11053 fi
11054 if test -z "$ac_cpp_err"; then
11055   ac_header_preproc=yes
11056 else
11057   echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11059
11060   ac_header_preproc=no
11061 fi
11062 rm -f conftest.err conftest.$ac_ext
11063 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11064 echo "${ECHO_T}$ac_header_preproc" >&6
11065
11066 # So?  What about this header?
11067 case $ac_header_compiler:$ac_header_preproc in
11068   yes:no )
11069     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11073     (
11074       cat <<\_ASBOX
11075 ## ------------------------------------ ##
11076 ## Report this to bug-autoconf@gnu.org. ##
11077 ## ------------------------------------ ##
11078 _ASBOX
11079     ) |
11080       sed "s/^/$as_me: WARNING:     /" >&2
11081     ;;
11082   no:yes )
11083     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11085     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11086 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11087     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11089     (
11090       cat <<\_ASBOX
11091 ## ------------------------------------ ##
11092 ## Report this to bug-autoconf@gnu.org. ##
11093 ## ------------------------------------ ##
11094 _ASBOX
11095     ) |
11096       sed "s/^/$as_me: WARNING:     /" >&2
11097     ;;
11098 esac
11099 echo "$as_me:$LINENO: checking for $ac_header" >&5
11100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11102   echo $ECHO_N "(cached) $ECHO_C" >&6
11103 else
11104   eval "$as_ac_Header=$ac_header_preproc"
11105 fi
11106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11108
11109 fi
11110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11111   cat >>confdefs.h <<_ACEOF
11112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11113 _ACEOF
11114
11115 fi
11116
11117 done
11118
11119 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11120 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11121 if test "${ac_cv_header_time+set}" = set; then
11122   echo $ECHO_N "(cached) $ECHO_C" >&6
11123 else
11124   cat >conftest.$ac_ext <<_ACEOF
11125 #line $LINENO "configure"
11126 /* confdefs.h.  */
11127 _ACEOF
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h.  */
11131 #include <sys/types.h>
11132 #include <sys/time.h>
11133 #include <time.h>
11134
11135 int
11136 main ()
11137 {
11138 if ((struct tm *) 0)
11139 return 0;
11140   ;
11141   return 0;
11142 }
11143 _ACEOF
11144 rm -f conftest.$ac_objext
11145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11146   (eval $ac_compile) 2>&5
11147   ac_status=$?
11148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149   (exit $ac_status); } &&
11150          { ac_try='test -s conftest.$ac_objext'
11151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11152   (eval $ac_try) 2>&5
11153   ac_status=$?
11154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155   (exit $ac_status); }; }; then
11156   ac_cv_header_time=yes
11157 else
11158   echo "$as_me: failed program was:" >&5
11159 sed 's/^/| /' conftest.$ac_ext >&5
11160
11161 ac_cv_header_time=no
11162 fi
11163 rm -f conftest.$ac_objext conftest.$ac_ext
11164 fi
11165 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11166 echo "${ECHO_T}$ac_cv_header_time" >&6
11167 if test $ac_cv_header_time = yes; then
11168
11169 cat >>confdefs.h <<\_ACEOF
11170 #define TIME_WITH_SYS_TIME 1
11171 _ACEOF
11172
11173 fi
11174
11175 case "$host" in
11176 *-convex-*)
11177
11178
11179 for ac_header in /sys/sync/queue.h /sys/sync/sema.h
11180 do
11181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11183   echo "$as_me:$LINENO: checking for $ac_header" >&5
11184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11186   echo $ECHO_N "(cached) $ECHO_C" >&6
11187 fi
11188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11190 else
11191   # Is the header compilable?
11192 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11194 cat >conftest.$ac_ext <<_ACEOF
11195 #line $LINENO "configure"
11196 /* confdefs.h.  */
11197 _ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h.  */
11201 $ac_includes_default
11202 #include <$ac_header>
11203 _ACEOF
11204 rm -f conftest.$ac_objext
11205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11206   (eval $ac_compile) 2>&5
11207   ac_status=$?
11208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209   (exit $ac_status); } &&
11210          { ac_try='test -s conftest.$ac_objext'
11211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212   (eval $ac_try) 2>&5
11213   ac_status=$?
11214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215   (exit $ac_status); }; }; then
11216   ac_header_compiler=yes
11217 else
11218   echo "$as_me: failed program was:" >&5
11219 sed 's/^/| /' conftest.$ac_ext >&5
11220
11221 ac_header_compiler=no
11222 fi
11223 rm -f conftest.$ac_objext conftest.$ac_ext
11224 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11225 echo "${ECHO_T}$ac_header_compiler" >&6
11226
11227 # Is the header present?
11228 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11230 cat >conftest.$ac_ext <<_ACEOF
11231 #line $LINENO "configure"
11232 /* confdefs.h.  */
11233 _ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h.  */
11237 #include <$ac_header>
11238 _ACEOF
11239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11240   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11241   ac_status=$?
11242   grep -v '^ *+' conftest.er1 >conftest.err
11243   rm -f conftest.er1
11244   cat conftest.err >&5
11245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246   (exit $ac_status); } >/dev/null; then
11247   if test -s conftest.err; then
11248     ac_cpp_err=$ac_c_preproc_warn_flag
11249   else
11250     ac_cpp_err=
11251   fi
11252 else
11253   ac_cpp_err=yes
11254 fi
11255 if test -z "$ac_cpp_err"; then
11256   ac_header_preproc=yes
11257 else
11258   echo "$as_me: failed program was:" >&5
11259 sed 's/^/| /' conftest.$ac_ext >&5
11260
11261   ac_header_preproc=no
11262 fi
11263 rm -f conftest.err conftest.$ac_ext
11264 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11265 echo "${ECHO_T}$ac_header_preproc" >&6
11266
11267 # So?  What about this header?
11268 case $ac_header_compiler:$ac_header_preproc in
11269   yes:no )
11270     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11272     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11274     (
11275       cat <<\_ASBOX
11276 ## ------------------------------------ ##
11277 ## Report this to bug-autoconf@gnu.org. ##
11278 ## ------------------------------------ ##
11279 _ASBOX
11280     ) |
11281       sed "s/^/$as_me: WARNING:     /" >&2
11282     ;;
11283   no:yes )
11284     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11285 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11286     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11287 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11288     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11290     (
11291       cat <<\_ASBOX
11292 ## ------------------------------------ ##
11293 ## Report this to bug-autoconf@gnu.org. ##
11294 ## ------------------------------------ ##
11295 _ASBOX
11296     ) |
11297       sed "s/^/$as_me: WARNING:     /" >&2
11298     ;;
11299 esac
11300 echo "$as_me:$LINENO: checking for $ac_header" >&5
11301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11303   echo $ECHO_N "(cached) $ECHO_C" >&6
11304 else
11305   eval "$as_ac_Header=$ac_header_preproc"
11306 fi
11307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11309
11310 fi
11311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11312   cat >>confdefs.h <<_ACEOF
11313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11314 _ACEOF
11315
11316 fi
11317
11318 done
11319
11320   ;;
11321 *-*-bsdi*)
11322
11323
11324
11325 for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
11326 do
11327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11329   echo "$as_me:$LINENO: checking for $ac_header" >&5
11330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11332   echo $ECHO_N "(cached) $ECHO_C" >&6
11333 fi
11334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11336 else
11337   # Is the header compilable?
11338 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11340 cat >conftest.$ac_ext <<_ACEOF
11341 #line $LINENO "configure"
11342 /* confdefs.h.  */
11343 _ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h.  */
11347 $ac_includes_default
11348 #include <$ac_header>
11349 _ACEOF
11350 rm -f conftest.$ac_objext
11351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11352   (eval $ac_compile) 2>&5
11353   ac_status=$?
11354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355   (exit $ac_status); } &&
11356          { ac_try='test -s conftest.$ac_objext'
11357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11358   (eval $ac_try) 2>&5
11359   ac_status=$?
11360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361   (exit $ac_status); }; }; then
11362   ac_header_compiler=yes
11363 else
11364   echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.$ac_ext >&5
11366
11367 ac_header_compiler=no
11368 fi
11369 rm -f conftest.$ac_objext conftest.$ac_ext
11370 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11371 echo "${ECHO_T}$ac_header_compiler" >&6
11372
11373 # Is the header present?
11374 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11376 cat >conftest.$ac_ext <<_ACEOF
11377 #line $LINENO "configure"
11378 /* confdefs.h.  */
11379 _ACEOF
11380 cat confdefs.h >>conftest.$ac_ext
11381 cat >>conftest.$ac_ext <<_ACEOF
11382 /* end confdefs.h.  */
11383 #include <$ac_header>
11384 _ACEOF
11385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11386   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11387   ac_status=$?
11388   grep -v '^ *+' conftest.er1 >conftest.err
11389   rm -f conftest.er1
11390   cat conftest.err >&5
11391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392   (exit $ac_status); } >/dev/null; then
11393   if test -s conftest.err; then
11394     ac_cpp_err=$ac_c_preproc_warn_flag
11395   else
11396     ac_cpp_err=
11397   fi
11398 else
11399   ac_cpp_err=yes
11400 fi
11401 if test -z "$ac_cpp_err"; then
11402   ac_header_preproc=yes
11403 else
11404   echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11406
11407   ac_header_preproc=no
11408 fi
11409 rm -f conftest.err conftest.$ac_ext
11410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11411 echo "${ECHO_T}$ac_header_preproc" >&6
11412
11413 # So?  What about this header?
11414 case $ac_header_compiler:$ac_header_preproc in
11415   yes:no )
11416     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11418     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11420     (
11421       cat <<\_ASBOX
11422 ## ------------------------------------ ##
11423 ## Report this to bug-autoconf@gnu.org. ##
11424 ## ------------------------------------ ##
11425 _ASBOX
11426     ) |
11427       sed "s/^/$as_me: WARNING:     /" >&2
11428     ;;
11429   no:yes )
11430     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11432     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11436     (
11437       cat <<\_ASBOX
11438 ## ------------------------------------ ##
11439 ## Report this to bug-autoconf@gnu.org. ##
11440 ## ------------------------------------ ##
11441 _ASBOX
11442     ) |
11443       sed "s/^/$as_me: WARNING:     /" >&2
11444     ;;
11445 esac
11446 echo "$as_me:$LINENO: checking for $ac_header" >&5
11447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11449   echo $ECHO_N "(cached) $ECHO_C" >&6
11450 else
11451   eval "$as_ac_Header=$ac_header_preproc"
11452 fi
11453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11455
11456 fi
11457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11458   cat >>confdefs.h <<_ACEOF
11459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11460 _ACEOF
11461
11462 fi
11463
11464 done
11465
11466   ;;
11467 esac
11468
11469 if test "${ac_cv_header_nlist_h+set}" = set; then
11470   echo "$as_me:$LINENO: checking for nlist.h" >&5
11471 echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6
11472 if test "${ac_cv_header_nlist_h+set}" = set; then
11473   echo $ECHO_N "(cached) $ECHO_C" >&6
11474 fi
11475 echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
11476 echo "${ECHO_T}$ac_cv_header_nlist_h" >&6
11477 else
11478   # Is the header compilable?
11479 echo "$as_me:$LINENO: checking nlist.h usability" >&5
11480 echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6
11481 cat >conftest.$ac_ext <<_ACEOF
11482 #line $LINENO "configure"
11483 /* confdefs.h.  */
11484 _ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h.  */
11488 $ac_includes_default
11489 #include <nlist.h>
11490 _ACEOF
11491 rm -f conftest.$ac_objext
11492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11493   (eval $ac_compile) 2>&5
11494   ac_status=$?
11495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496   (exit $ac_status); } &&
11497          { ac_try='test -s conftest.$ac_objext'
11498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499   (eval $ac_try) 2>&5
11500   ac_status=$?
11501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502   (exit $ac_status); }; }; then
11503   ac_header_compiler=yes
11504 else
11505   echo "$as_me: failed program was:" >&5
11506 sed 's/^/| /' conftest.$ac_ext >&5
11507
11508 ac_header_compiler=no
11509 fi
11510 rm -f conftest.$ac_objext conftest.$ac_ext
11511 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11512 echo "${ECHO_T}$ac_header_compiler" >&6
11513
11514 # Is the header present?
11515 echo "$as_me:$LINENO: checking nlist.h presence" >&5
11516 echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6
11517 cat >conftest.$ac_ext <<_ACEOF
11518 #line $LINENO "configure"
11519 /* confdefs.h.  */
11520 _ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h.  */
11524 #include <nlist.h>
11525 _ACEOF
11526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11527   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11528   ac_status=$?
11529   grep -v '^ *+' conftest.er1 >conftest.err
11530   rm -f conftest.er1
11531   cat conftest.err >&5
11532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533   (exit $ac_status); } >/dev/null; then
11534   if test -s conftest.err; then
11535     ac_cpp_err=$ac_c_preproc_warn_flag
11536   else
11537     ac_cpp_err=
11538   fi
11539 else
11540   ac_cpp_err=yes
11541 fi
11542 if test -z "$ac_cpp_err"; then
11543   ac_header_preproc=yes
11544 else
11545   echo "$as_me: failed program was:" >&5
11546 sed 's/^/| /' conftest.$ac_ext >&5
11547
11548   ac_header_preproc=no
11549 fi
11550 rm -f conftest.err conftest.$ac_ext
11551 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11552 echo "${ECHO_T}$ac_header_preproc" >&6
11553
11554 # So?  What about this header?
11555 case $ac_header_compiler:$ac_header_preproc in
11556   yes:no )
11557     { echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
11558 echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11559     { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5
11560 echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;}
11561     (
11562       cat <<\_ASBOX
11563 ## ------------------------------------ ##
11564 ## Report this to bug-autoconf@gnu.org. ##
11565 ## ------------------------------------ ##
11566 _ASBOX
11567     ) |
11568       sed "s/^/$as_me: WARNING:     /" >&2
11569     ;;
11570   no:yes )
11571     { echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled" >&5
11572 echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;}
11573     { echo "$as_me:$LINENO: WARNING: nlist.h: check for missing prerequisite headers?" >&5
11574 echo "$as_me: WARNING: nlist.h: check for missing prerequisite headers?" >&2;}
11575     { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5
11576 echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;}
11577     (
11578       cat <<\_ASBOX
11579 ## ------------------------------------ ##
11580 ## Report this to bug-autoconf@gnu.org. ##
11581 ## ------------------------------------ ##
11582 _ASBOX
11583     ) |
11584       sed "s/^/$as_me: WARNING:     /" >&2
11585     ;;
11586 esac
11587 echo "$as_me:$LINENO: checking for nlist.h" >&5
11588 echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6
11589 if test "${ac_cv_header_nlist_h+set}" = set; then
11590   echo $ECHO_N "(cached) $ECHO_C" >&6
11591 else
11592   ac_cv_header_nlist_h=$ac_header_preproc
11593 fi
11594 echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
11595 echo "${ECHO_T}$ac_cv_header_nlist_h" >&6
11596
11597 fi
11598 if test $ac_cv_header_nlist_h = yes; then
11599
11600 cat >>confdefs.h <<\_ACEOF
11601 #define NLIST_STRUCT 1
11602 _ACEOF
11603
11604 echo "$as_me:$LINENO: checking for n_un in struct nlist" >&5
11605 echo $ECHO_N "checking for n_un in struct nlist... $ECHO_C" >&6
11606 if test "${ac_cv_struct_nlist_n_un+set}" = set; then
11607   echo $ECHO_N "(cached) $ECHO_C" >&6
11608 else
11609   cat >conftest.$ac_ext <<_ACEOF
11610 #line $LINENO "configure"
11611 /* confdefs.h.  */
11612 _ACEOF
11613 cat confdefs.h >>conftest.$ac_ext
11614 cat >>conftest.$ac_ext <<_ACEOF
11615 /* end confdefs.h.  */
11616 #include <nlist.h>
11617 int
11618 main ()
11619 {
11620 struct nlist n; n.n_un.n_name = 0;
11621   ;
11622   return 0;
11623 }
11624 _ACEOF
11625 rm -f conftest.$ac_objext
11626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11627   (eval $ac_compile) 2>&5
11628   ac_status=$?
11629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630   (exit $ac_status); } &&
11631          { ac_try='test -s conftest.$ac_objext'
11632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633   (eval $ac_try) 2>&5
11634   ac_status=$?
11635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636   (exit $ac_status); }; }; then
11637   ac_cv_struct_nlist_n_un=yes
11638 else
11639   echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11641
11642 ac_cv_struct_nlist_n_un=no
11643 fi
11644 rm -f conftest.$ac_objext conftest.$ac_ext
11645 fi
11646 echo "$as_me:$LINENO: result: $ac_cv_struct_nlist_n_un" >&5
11647 echo "${ECHO_T}$ac_cv_struct_nlist_n_un" >&6
11648 if test $ac_cv_struct_nlist_n_un = yes; then
11649
11650 cat >>confdefs.h <<\_ACEOF
11651 #define NLIST_NAME_UNION 1
11652 _ACEOF
11653
11654 fi
11655
11656 fi
11657
11658
11659
11660
11661 for ac_header in resolv.h
11662 do
11663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11664 echo "$as_me:$LINENO: checking for $ac_header" >&5
11665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11667   echo $ECHO_N "(cached) $ECHO_C" >&6
11668 else
11669   cat >conftest.$ac_ext <<_ACEOF
11670 #line $LINENO "configure"
11671 /* confdefs.h.  */
11672 _ACEOF
11673 cat confdefs.h >>conftest.$ac_ext
11674 cat >>conftest.$ac_ext <<_ACEOF
11675 /* end confdefs.h.  */
11676 #if HAVE_SYS_TYPES_H
11677 #include <sys/types.h>
11678 #endif
11679 #if HAVE_NETINET_IN_H
11680 #include <netinet/in.h>
11681 #endif
11682 #if HAVE_ARPA_NAMESER_H
11683 #include <arpa/nameser.h>
11684 #endif
11685
11686
11687 #include <$ac_header>
11688 _ACEOF
11689 rm -f conftest.$ac_objext
11690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11691   (eval $ac_compile) 2>&5
11692   ac_status=$?
11693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694   (exit $ac_status); } &&
11695          { ac_try='test -s conftest.$ac_objext'
11696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697   (eval $ac_try) 2>&5
11698   ac_status=$?
11699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700   (exit $ac_status); }; }; then
11701   eval "$as_ac_Header=yes"
11702 else
11703   echo "$as_me: failed program was:" >&5
11704 sed 's/^/| /' conftest.$ac_ext >&5
11705
11706 eval "$as_ac_Header=no"
11707 fi
11708 rm -f conftest.$ac_objext conftest.$ac_ext
11709 fi
11710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11713   cat >>confdefs.h <<_ACEOF
11714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11715 _ACEOF
11716
11717 fi
11718
11719 done
11720
11721
11722 echo "$as_me:$LINENO: checking for basic volatile support" >&5
11723 echo $ECHO_N "checking for basic volatile support... $ECHO_C" >&6
11724 if test "${ac_cv_c_volatile+set}" = set; then
11725   echo $ECHO_N "(cached) $ECHO_C" >&6
11726 else
11727   cat >conftest.$ac_ext <<_ACEOF
11728 #line $LINENO "configure"
11729 /* confdefs.h.  */
11730 _ACEOF
11731 cat confdefs.h >>conftest.$ac_ext
11732 cat >>conftest.$ac_ext <<_ACEOF
11733 /* end confdefs.h.  */
11734
11735 int
11736 main ()
11737 {
11738
11739 volatile int x;
11740   ;
11741   return 0;
11742 }
11743 _ACEOF
11744 rm -f conftest.$ac_objext
11745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11746   (eval $ac_compile) 2>&5
11747   ac_status=$?
11748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749   (exit $ac_status); } &&
11750          { ac_try='test -s conftest.$ac_objext'
11751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11752   (eval $ac_try) 2>&5
11753   ac_status=$?
11754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755   (exit $ac_status); }; }; then
11756   ac_cv_c_volatile=yes
11757 else
11758   echo "$as_me: failed program was:" >&5
11759 sed 's/^/| /' conftest.$ac_ext >&5
11760
11761 ac_cv_c_volatile=no
11762 fi
11763 rm -f conftest.$ac_objext conftest.$ac_ext
11764
11765 fi
11766 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11767 echo "${ECHO_T}$ac_cv_c_volatile" >&6
11768 case "$ac_cv_c_volatile" in
11769  yes)
11770     ;;
11771  *)
11772 cat >>confdefs.h <<\_ACEOF
11773 #define volatile
11774 _ACEOF
11775
11776     ;;
11777 esac
11778
11779 case "$host" in
11780  sparc-*-solaris2*)
11781     # Assume that solaris2 is Ansi C...
11782     ;;
11783  *)
11784
11785
11786
11787 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
11788 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
11789 if test "${am_cv_prog_cc_stdc+set}" = set; then
11790   echo $ECHO_N "(cached) $ECHO_C" >&6
11791 else
11792   am_cv_prog_cc_stdc=no
11793 ac_save_CC="$CC"
11794 # Don't try gcc -ansi; that turns off useful extensions and
11795 # breaks some systems' header files.
11796 # AIX                   -qlanglvl=ansi
11797 # Ultrix and OSF/1      -std1
11798 # HP-UX 10.20 and later -Ae
11799 # HP-UX older versions  -Aa -D_HPUX_SOURCE
11800 # SVR4                  -Xc -D__EXTENSIONS__
11801 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11802 do
11803   CC="$ac_save_CC $ac_arg"
11804   cat >conftest.$ac_ext <<_ACEOF
11805 #line $LINENO "configure"
11806 /* confdefs.h.  */
11807 _ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h.  */
11811 #include <stdarg.h>
11812 #include <stdio.h>
11813 #include <sys/types.h>
11814 #include <sys/stat.h>
11815 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11816 struct buf { int x; };
11817 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11818 static char *e (p, i)
11819      char **p;
11820      int i;
11821 {
11822   return p[i];
11823 }
11824 static char *f (char * (*g) (char **, int), char **p, ...)
11825 {
11826   char *s;
11827   va_list v;
11828   va_start (v,p);
11829   s = g (p, va_arg (v,int));
11830   va_end (v);
11831   return s;
11832 }
11833 int test (int i, double x);
11834 struct s1 {int (*f) (int a);};
11835 struct s2 {int (*f) (double a);};
11836 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11837 int argc;
11838 char **argv;
11839
11840 int
11841 main ()
11842 {
11843
11844 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11845
11846   ;
11847   return 0;
11848 }
11849 _ACEOF
11850 rm -f conftest.$ac_objext
11851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11852   (eval $ac_compile) 2>&5
11853   ac_status=$?
11854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855   (exit $ac_status); } &&
11856          { ac_try='test -s conftest.$ac_objext'
11857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858   (eval $ac_try) 2>&5
11859   ac_status=$?
11860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861   (exit $ac_status); }; }; then
11862   am_cv_prog_cc_stdc="$ac_arg"; break
11863 else
11864   echo "$as_me: failed program was:" >&5
11865 sed 's/^/| /' conftest.$ac_ext >&5
11866
11867 fi
11868 rm -f conftest.$ac_objext conftest.$ac_ext
11869 done
11870 CC="$ac_save_CC"
11871
11872 fi
11873
11874 if test -z "$am_cv_prog_cc_stdc"; then
11875   echo "$as_me:$LINENO: result: none needed" >&5
11876 echo "${ECHO_T}none needed" >&6
11877 else
11878   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
11879 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
11880 fi
11881 case "x$am_cv_prog_cc_stdc" in
11882   x|xno) ;;
11883   *) CC="$CC $am_cv_prog_cc_stdc" ;;
11884 esac
11885
11886
11887
11888 echo "$as_me:$LINENO: checking for function prototypes" >&5
11889 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
11890 if test "$am_cv_prog_cc_stdc" != no; then
11891   echo "$as_me:$LINENO: result: yes" >&5
11892 echo "${ECHO_T}yes" >&6
11893
11894 cat >>confdefs.h <<\_ACEOF
11895 #define PROTOTYPES 1
11896 _ACEOF
11897
11898   U= ANSI2KNR=
11899 else
11900   echo "$as_me:$LINENO: result: no" >&5
11901 echo "${ECHO_T}no" >&6
11902   U=_ ANSI2KNR=./ansi2knr
11903 fi
11904 # Ensure some checks needed by ansi2knr itself.
11905 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11906 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11907 if test "${ac_cv_header_stdc+set}" = set; then
11908   echo $ECHO_N "(cached) $ECHO_C" >&6
11909 else
11910   cat >conftest.$ac_ext <<_ACEOF
11911 #line $LINENO "configure"
11912 /* confdefs.h.  */
11913 _ACEOF
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h.  */
11917 #include <stdlib.h>
11918 #include <stdarg.h>
11919 #include <string.h>
11920 #include <float.h>
11921
11922 int
11923 main ()
11924 {
11925
11926   ;
11927   return 0;
11928 }
11929 _ACEOF
11930 rm -f conftest.$ac_objext
11931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11932   (eval $ac_compile) 2>&5
11933   ac_status=$?
11934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935   (exit $ac_status); } &&
11936          { ac_try='test -s conftest.$ac_objext'
11937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938   (eval $ac_try) 2>&5
11939   ac_status=$?
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); }; }; then
11942   ac_cv_header_stdc=yes
11943 else
11944   echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11946
11947 ac_cv_header_stdc=no
11948 fi
11949 rm -f conftest.$ac_objext conftest.$ac_ext
11950
11951 if test $ac_cv_header_stdc = yes; then
11952   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11953   cat >conftest.$ac_ext <<_ACEOF
11954 #line $LINENO "configure"
11955 /* confdefs.h.  */
11956 _ACEOF
11957 cat confdefs.h >>conftest.$ac_ext
11958 cat >>conftest.$ac_ext <<_ACEOF
11959 /* end confdefs.h.  */
11960 #include <string.h>
11961
11962 _ACEOF
11963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11964   $EGREP "memchr" >/dev/null 2>&1; then
11965   :
11966 else
11967   ac_cv_header_stdc=no
11968 fi
11969 rm -f conftest*
11970
11971 fi
11972
11973 if test $ac_cv_header_stdc = yes; then
11974   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11975   cat >conftest.$ac_ext <<_ACEOF
11976 #line $LINENO "configure"
11977 /* confdefs.h.  */
11978 _ACEOF
11979 cat confdefs.h >>conftest.$ac_ext
11980 cat >>conftest.$ac_ext <<_ACEOF
11981 /* end confdefs.h.  */
11982 #include <stdlib.h>
11983
11984 _ACEOF
11985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11986   $EGREP "free" >/dev/null 2>&1; then
11987   :
11988 else
11989   ac_cv_header_stdc=no
11990 fi
11991 rm -f conftest*
11992
11993 fi
11994
11995 if test $ac_cv_header_stdc = yes; then
11996   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11997   if test "$cross_compiling" = yes; then
11998   :
11999 else
12000   cat >conftest.$ac_ext <<_ACEOF
12001 #line $LINENO "configure"
12002 /* confdefs.h.  */
12003 _ACEOF
12004 cat confdefs.h >>conftest.$ac_ext
12005 cat >>conftest.$ac_ext <<_ACEOF
12006 /* end confdefs.h.  */
12007 #include <ctype.h>
12008 #if ((' ' & 0x0FF) == 0x020)
12009 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12010 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12011 #else
12012 # define ISLOWER(c) \
12013                    (('a' <= (c) && (c) <= 'i') \
12014                      || ('j' <= (c) && (c) <= 'r') \
12015                      || ('s' <= (c) && (c) <= 'z'))
12016 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12017 #endif
12018
12019 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12020 int
12021 main ()
12022 {
12023   int i;
12024   for (i = 0; i < 256; i++)
12025     if (XOR (islower (i), ISLOWER (i))
12026         || toupper (i) != TOUPPER (i))
12027       exit(2);
12028   exit (0);
12029 }
12030 _ACEOF
12031 rm -f conftest$ac_exeext
12032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12033   (eval $ac_link) 2>&5
12034   ac_status=$?
12035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038   (eval $ac_try) 2>&5
12039   ac_status=$?
12040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041   (exit $ac_status); }; }; then
12042   :
12043 else
12044   echo "$as_me: program exited with status $ac_status" >&5
12045 echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12047
12048 ( exit $ac_status )
12049 ac_cv_header_stdc=no
12050 fi
12051 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12052 fi
12053 fi
12054 fi
12055 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12056 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12057 if test $ac_cv_header_stdc = yes; then
12058
12059 cat >>confdefs.h <<\_ACEOF
12060 #define STDC_HEADERS 1
12061 _ACEOF
12062
12063 fi
12064
12065
12066 for ac_header in string.h
12067 do
12068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12070   echo "$as_me:$LINENO: checking for $ac_header" >&5
12071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12073   echo $ECHO_N "(cached) $ECHO_C" >&6
12074 fi
12075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12077 else
12078   # Is the header compilable?
12079 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12081 cat >conftest.$ac_ext <<_ACEOF
12082 #line $LINENO "configure"
12083 /* confdefs.h.  */
12084 _ACEOF
12085 cat confdefs.h >>conftest.$ac_ext
12086 cat >>conftest.$ac_ext <<_ACEOF
12087 /* end confdefs.h.  */
12088 $ac_includes_default
12089 #include <$ac_header>
12090 _ACEOF
12091 rm -f conftest.$ac_objext
12092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12093   (eval $ac_compile) 2>&5
12094   ac_status=$?
12095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096   (exit $ac_status); } &&
12097          { ac_try='test -s conftest.$ac_objext'
12098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099   (eval $ac_try) 2>&5
12100   ac_status=$?
12101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102   (exit $ac_status); }; }; then
12103   ac_header_compiler=yes
12104 else
12105   echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.$ac_ext >&5
12107
12108 ac_header_compiler=no
12109 fi
12110 rm -f conftest.$ac_objext conftest.$ac_ext
12111 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12112 echo "${ECHO_T}$ac_header_compiler" >&6
12113
12114 # Is the header present?
12115 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12117 cat >conftest.$ac_ext <<_ACEOF
12118 #line $LINENO "configure"
12119 /* confdefs.h.  */
12120 _ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h.  */
12124 #include <$ac_header>
12125 _ACEOF
12126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12127   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12128   ac_status=$?
12129   grep -v '^ *+' conftest.er1 >conftest.err
12130   rm -f conftest.er1
12131   cat conftest.err >&5
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); } >/dev/null; then
12134   if test -s conftest.err; then
12135     ac_cpp_err=$ac_c_preproc_warn_flag
12136   else
12137     ac_cpp_err=
12138   fi
12139 else
12140   ac_cpp_err=yes
12141 fi
12142 if test -z "$ac_cpp_err"; then
12143   ac_header_preproc=yes
12144 else
12145   echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.$ac_ext >&5
12147
12148   ac_header_preproc=no
12149 fi
12150 rm -f conftest.err conftest.$ac_ext
12151 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12152 echo "${ECHO_T}$ac_header_preproc" >&6
12153
12154 # So?  What about this header?
12155 case $ac_header_compiler:$ac_header_preproc in
12156   yes:no )
12157     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12159     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12161     (
12162       cat <<\_ASBOX
12163 ## ------------------------------------ ##
12164 ## Report this to bug-autoconf@gnu.org. ##
12165 ## ------------------------------------ ##
12166 _ASBOX
12167     ) |
12168       sed "s/^/$as_me: WARNING:     /" >&2
12169     ;;
12170   no:yes )
12171     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12173     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12174 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12175     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12176 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12177     (
12178       cat <<\_ASBOX
12179 ## ------------------------------------ ##
12180 ## Report this to bug-autoconf@gnu.org. ##
12181 ## ------------------------------------ ##
12182 _ASBOX
12183     ) |
12184       sed "s/^/$as_me: WARNING:     /" >&2
12185     ;;
12186 esac
12187 echo "$as_me:$LINENO: checking for $ac_header" >&5
12188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12190   echo $ECHO_N "(cached) $ECHO_C" >&6
12191 else
12192   eval "$as_ac_Header=$ac_header_preproc"
12193 fi
12194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12196
12197 fi
12198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12199   cat >>confdefs.h <<_ACEOF
12200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12201 _ACEOF
12202
12203 fi
12204
12205 done
12206
12207
12208     ;;
12209 esac
12210 echo "$as_me:$LINENO: checking if C compiler permits function prototypes" >&5
12211 echo $ECHO_N "checking if C compiler permits function prototypes... $ECHO_C" >&6
12212 if test "${ac_cv_have_prototypes+set}" = set; then
12213   echo $ECHO_N "(cached) $ECHO_C" >&6
12214 else
12215   cat >conftest.$ac_ext <<_ACEOF
12216 #line $LINENO "configure"
12217 /* confdefs.h.  */
12218 _ACEOF
12219 cat confdefs.h >>conftest.$ac_ext
12220 cat >>conftest.$ac_ext <<_ACEOF
12221 /* end confdefs.h.  */
12222
12223 extern int foo (short);
12224 int foo(short i) { return i; }
12225 int
12226 main ()
12227 {
12228
12229 int i;
12230   ;
12231   return 0;
12232 }
12233 _ACEOF
12234 rm -f conftest.$ac_objext
12235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12236   (eval $ac_compile) 2>&5
12237   ac_status=$?
12238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239   (exit $ac_status); } &&
12240          { ac_try='test -s conftest.$ac_objext'
12241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12242   (eval $ac_try) 2>&5
12243   ac_status=$?
12244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245   (exit $ac_status); }; }; then
12246   ac_cv_have_prototypes=yes
12247 else
12248   echo "$as_me: failed program was:" >&5
12249 sed 's/^/| /' conftest.$ac_ext >&5
12250
12251 ac_cv_have_prototypes=no
12252 fi
12253 rm -f conftest.$ac_objext conftest.$ac_ext
12254
12255 fi
12256 echo "$as_me:$LINENO: result: $ac_cv_have_prototypes" >&5
12257 echo "${ECHO_T}$ac_cv_have_prototypes" >&6
12258 if test "$ac_cv_have_prototypes" = yes; then
12259
12260 cat >>confdefs.h <<\_ACEOF
12261 #define HAVE_PROTOTYPES 1
12262 _ACEOF
12263
12264 fi
12265
12266 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12267 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12268 if test "${ac_cv_c_const+set}" = set; then
12269   echo $ECHO_N "(cached) $ECHO_C" >&6
12270 else
12271   cat >conftest.$ac_ext <<_ACEOF
12272 #line $LINENO "configure"
12273 /* confdefs.h.  */
12274 _ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h.  */
12278
12279 int
12280 main ()
12281 {
12282 /* FIXME: Include the comments suggested by Paul. */
12283 #ifndef __cplusplus
12284   /* Ultrix mips cc rejects this.  */
12285   typedef int charset[2];
12286   const charset x;
12287   /* SunOS 4.1.1 cc rejects this.  */
12288   char const *const *ccp;
12289   char **p;
12290   /* NEC SVR4.0.2 mips cc rejects this.  */
12291   struct point {int x, y;};
12292   static struct point const zero = {0,0};
12293   /* AIX XL C 1.02.0.0 rejects this.
12294      It does not let you subtract one const X* pointer from another in
12295      an arm of an if-expression whose if-part is not a constant
12296      expression */
12297   const char *g = "string";
12298   ccp = &g + (g ? g-g : 0);
12299   /* HPUX 7.0 cc rejects these. */
12300   ++ccp;
12301   p = (char**) ccp;
12302   ccp = (char const *const *) p;
12303   { /* SCO 3.2v4 cc rejects this.  */
12304     char *t;
12305     char const *s = 0 ? (char *) 0 : (char const *) 0;
12306
12307     *t++ = 0;
12308   }
12309   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12310     int x[] = {25, 17};
12311     const int *foo = &x[0];
12312     ++foo;
12313   }
12314   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12315     typedef const int *iptr;
12316     iptr p = 0;
12317     ++p;
12318   }
12319   { /* AIX XL C 1.02.0.0 rejects this saying
12320        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12321     struct s { int j; const int *ap[3]; };
12322     struct s *b; b->j = 5;
12323   }
12324   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12325     const int foo = 10;
12326   }
12327 #endif
12328
12329   ;
12330   return 0;
12331 }
12332 _ACEOF
12333 rm -f conftest.$ac_objext
12334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12335   (eval $ac_compile) 2>&5
12336   ac_status=$?
12337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338   (exit $ac_status); } &&
12339          { ac_try='test -s conftest.$ac_objext'
12340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341   (eval $ac_try) 2>&5
12342   ac_status=$?
12343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344   (exit $ac_status); }; }; then
12345   ac_cv_c_const=yes
12346 else
12347   echo "$as_me: failed program was:" >&5
12348 sed 's/^/| /' conftest.$ac_ext >&5
12349
12350 ac_cv_c_const=no
12351 fi
12352 rm -f conftest.$ac_objext conftest.$ac_ext
12353 fi
12354 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12355 echo "${ECHO_T}$ac_cv_c_const" >&6
12356 if test $ac_cv_c_const = no; then
12357
12358 cat >>confdefs.h <<\_ACEOF
12359 #define const
12360 _ACEOF
12361
12362 fi
12363
12364 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12365 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
12366 if test "${ac_cv_c_bigendian+set}" = set; then
12367   echo $ECHO_N "(cached) $ECHO_C" >&6
12368 else
12369   # See if sys/param.h defines the BYTE_ORDER macro.
12370 cat >conftest.$ac_ext <<_ACEOF
12371 #line $LINENO "configure"
12372 /* confdefs.h.  */
12373 _ACEOF
12374 cat confdefs.h >>conftest.$ac_ext
12375 cat >>conftest.$ac_ext <<_ACEOF
12376 /* end confdefs.h.  */
12377 #include <sys/types.h>
12378 #include <sys/param.h>
12379
12380 int
12381 main ()
12382 {
12383 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12384  bogus endian macros
12385 #endif
12386
12387   ;
12388   return 0;
12389 }
12390 _ACEOF
12391 rm -f conftest.$ac_objext
12392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12393   (eval $ac_compile) 2>&5
12394   ac_status=$?
12395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396   (exit $ac_status); } &&
12397          { ac_try='test -s conftest.$ac_objext'
12398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399   (eval $ac_try) 2>&5
12400   ac_status=$?
12401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402   (exit $ac_status); }; }; then
12403   # It does; now see whether it defined to BIG_ENDIAN or not.
12404 cat >conftest.$ac_ext <<_ACEOF
12405 #line $LINENO "configure"
12406 /* confdefs.h.  */
12407 _ACEOF
12408 cat confdefs.h >>conftest.$ac_ext
12409 cat >>conftest.$ac_ext <<_ACEOF
12410 /* end confdefs.h.  */
12411 #include <sys/types.h>
12412 #include <sys/param.h>
12413
12414 int
12415 main ()
12416 {
12417 #if BYTE_ORDER != BIG_ENDIAN
12418  not big endian
12419 #endif
12420
12421   ;
12422   return 0;
12423 }
12424 _ACEOF
12425 rm -f conftest.$ac_objext
12426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12427   (eval $ac_compile) 2>&5
12428   ac_status=$?
12429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   (exit $ac_status); } &&
12431          { ac_try='test -s conftest.$ac_objext'
12432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433   (eval $ac_try) 2>&5
12434   ac_status=$?
12435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436   (exit $ac_status); }; }; then
12437   ac_cv_c_bigendian=yes
12438 else
12439   echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12441
12442 ac_cv_c_bigendian=no
12443 fi
12444 rm -f conftest.$ac_objext conftest.$ac_ext
12445 else
12446   echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12448
12449 # It does not; compile a test program.
12450 if test "$cross_compiling" = yes; then
12451   # try to guess the endianness by grepping values into an object file
12452   ac_cv_c_bigendian=unknown
12453   cat >conftest.$ac_ext <<_ACEOF
12454 #line $LINENO "configure"
12455 /* confdefs.h.  */
12456 _ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h.  */
12460 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12461 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12462 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12463 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12464 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12465 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12466 int
12467 main ()
12468 {
12469  _ascii (); _ebcdic ();
12470   ;
12471   return 0;
12472 }
12473 _ACEOF
12474 rm -f conftest.$ac_objext
12475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12476   (eval $ac_compile) 2>&5
12477   ac_status=$?
12478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479   (exit $ac_status); } &&
12480          { ac_try='test -s conftest.$ac_objext'
12481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482   (eval $ac_try) 2>&5
12483   ac_status=$?
12484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485   (exit $ac_status); }; }; then
12486   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
12487   ac_cv_c_bigendian=yes
12488 fi
12489 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12490   if test "$ac_cv_c_bigendian" = unknown; then
12491     ac_cv_c_bigendian=no
12492   else
12493     # finding both strings is unlikely to happen, but who knows?
12494     ac_cv_c_bigendian=unknown
12495   fi
12496 fi
12497 else
12498   echo "$as_me: failed program was:" >&5
12499 sed 's/^/| /' conftest.$ac_ext >&5
12500
12501 fi
12502 rm -f conftest.$ac_objext conftest.$ac_ext
12503 else
12504   cat >conftest.$ac_ext <<_ACEOF
12505 #line $LINENO "configure"
12506 /* confdefs.h.  */
12507 _ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h.  */
12511 int
12512 main ()
12513 {
12514   /* Are we little or big endian?  From Harbison&Steele.  */
12515   union
12516   {
12517     long l;
12518     char c[sizeof (long)];
12519   } u;
12520   u.l = 1;
12521   exit (u.c[sizeof (long) - 1] == 1);
12522 }
12523 _ACEOF
12524 rm -f conftest$ac_exeext
12525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12526   (eval $ac_link) 2>&5
12527   ac_status=$?
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531   (eval $ac_try) 2>&5
12532   ac_status=$?
12533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534   (exit $ac_status); }; }; then
12535   ac_cv_c_bigendian=no
12536 else
12537   echo "$as_me: program exited with status $ac_status" >&5
12538 echo "$as_me: failed program was:" >&5
12539 sed 's/^/| /' conftest.$ac_ext >&5
12540
12541 ( exit $ac_status )
12542 ac_cv_c_bigendian=yes
12543 fi
12544 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12545 fi
12546 fi
12547 rm -f conftest.$ac_objext conftest.$ac_ext
12548 fi
12549 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12550 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
12551 case $ac_cv_c_bigendian in
12552   yes)
12553
12554 cat >>confdefs.h <<\_ACEOF
12555 #define WORDS_BIGENDIAN 1
12556 _ACEOF
12557  ;;
12558   no)
12559      ;;
12560   *)
12561     { { echo "$as_me:$LINENO: error: unknown endianness
12562 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12563 echo "$as_me: error: unknown endianness
12564 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12565    { (exit 1); exit 1; }; } ;;
12566 esac
12567
12568 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12569 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12570 if test "${ac_cv_type_signal+set}" = set; then
12571   echo $ECHO_N "(cached) $ECHO_C" >&6
12572 else
12573   cat >conftest.$ac_ext <<_ACEOF
12574 #line $LINENO "configure"
12575 /* confdefs.h.  */
12576 _ACEOF
12577 cat confdefs.h >>conftest.$ac_ext
12578 cat >>conftest.$ac_ext <<_ACEOF
12579 /* end confdefs.h.  */
12580 #include <sys/types.h>
12581 #include <signal.h>
12582 #ifdef signal
12583 # undef signal
12584 #endif
12585 #ifdef __cplusplus
12586 extern "C" void (*signal (int, void (*)(int)))(int);
12587 #else
12588 void (*signal ()) ();
12589 #endif
12590
12591 int
12592 main ()
12593 {
12594 int i;
12595   ;
12596   return 0;
12597 }
12598 _ACEOF
12599 rm -f conftest.$ac_objext
12600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12601   (eval $ac_compile) 2>&5
12602   ac_status=$?
12603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604   (exit $ac_status); } &&
12605          { ac_try='test -s conftest.$ac_objext'
12606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12607   (eval $ac_try) 2>&5
12608   ac_status=$?
12609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610   (exit $ac_status); }; }; then
12611   ac_cv_type_signal=void
12612 else
12613   echo "$as_me: failed program was:" >&5
12614 sed 's/^/| /' conftest.$ac_ext >&5
12615
12616 ac_cv_type_signal=int
12617 fi
12618 rm -f conftest.$ac_objext conftest.$ac_ext
12619 fi
12620 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12621 echo "${ECHO_T}$ac_cv_type_signal" >&6
12622
12623 cat >>confdefs.h <<_ACEOF
12624 #define RETSIGTYPE $ac_cv_type_signal
12625 _ACEOF
12626
12627
12628 echo "$as_me:$LINENO: checking for off_t" >&5
12629 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12630 if test "${ac_cv_type_off_t+set}" = set; then
12631   echo $ECHO_N "(cached) $ECHO_C" >&6
12632 else
12633   cat >conftest.$ac_ext <<_ACEOF
12634 #line $LINENO "configure"
12635 /* confdefs.h.  */
12636 _ACEOF
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h.  */
12640 $ac_includes_default
12641 int
12642 main ()
12643 {
12644 if ((off_t *) 0)
12645   return 0;
12646 if (sizeof (off_t))
12647   return 0;
12648   ;
12649   return 0;
12650 }
12651 _ACEOF
12652 rm -f conftest.$ac_objext
12653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12654   (eval $ac_compile) 2>&5
12655   ac_status=$?
12656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657   (exit $ac_status); } &&
12658          { ac_try='test -s conftest.$ac_objext'
12659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660   (eval $ac_try) 2>&5
12661   ac_status=$?
12662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663   (exit $ac_status); }; }; then
12664   ac_cv_type_off_t=yes
12665 else
12666   echo "$as_me: failed program was:" >&5
12667 sed 's/^/| /' conftest.$ac_ext >&5
12668
12669 ac_cv_type_off_t=no
12670 fi
12671 rm -f conftest.$ac_objext conftest.$ac_ext
12672 fi
12673 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12674 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12675 if test $ac_cv_type_off_t = yes; then
12676   :
12677 else
12678
12679 cat >>confdefs.h <<_ACEOF
12680 #define off_t long
12681 _ACEOF
12682
12683 fi
12684
12685 echo "$as_me:$LINENO: checking for size_t" >&5
12686 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12687 if test "${ac_cv_type_size_t+set}" = set; then
12688   echo $ECHO_N "(cached) $ECHO_C" >&6
12689 else
12690   cat >conftest.$ac_ext <<_ACEOF
12691 #line $LINENO "configure"
12692 /* confdefs.h.  */
12693 _ACEOF
12694 cat confdefs.h >>conftest.$ac_ext
12695 cat >>conftest.$ac_ext <<_ACEOF
12696 /* end confdefs.h.  */
12697 $ac_includes_default
12698 int
12699 main ()
12700 {
12701 if ((size_t *) 0)
12702   return 0;
12703 if (sizeof (size_t))
12704   return 0;
12705   ;
12706   return 0;
12707 }
12708 _ACEOF
12709 rm -f conftest.$ac_objext
12710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12711   (eval $ac_compile) 2>&5
12712   ac_status=$?
12713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714   (exit $ac_status); } &&
12715          { ac_try='test -s conftest.$ac_objext'
12716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717   (eval $ac_try) 2>&5
12718   ac_status=$?
12719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720   (exit $ac_status); }; }; then
12721   ac_cv_type_size_t=yes
12722 else
12723   echo "$as_me: failed program was:" >&5
12724 sed 's/^/| /' conftest.$ac_ext >&5
12725
12726 ac_cv_type_size_t=no
12727 fi
12728 rm -f conftest.$ac_objext conftest.$ac_ext
12729 fi
12730 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12731 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12732 if test $ac_cv_type_size_t = yes; then
12733   :
12734 else
12735
12736 cat >>confdefs.h <<_ACEOF
12737 #define size_t unsigned
12738 _ACEOF
12739
12740 fi
12741
12742 echo "$as_me:$LINENO: checking for time_t" >&5
12743 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
12744 if test "${ac_cv_type_time_t+set}" = set; then
12745   echo $ECHO_N "(cached) $ECHO_C" >&6
12746 else
12747   cat >conftest.$ac_ext <<_ACEOF
12748 #line $LINENO "configure"
12749 /* confdefs.h.  */
12750 _ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h.  */
12754 $ac_includes_default
12755 int
12756 main ()
12757 {
12758 if ((time_t *) 0)
12759   return 0;
12760 if (sizeof (time_t))
12761   return 0;
12762   ;
12763   return 0;
12764 }
12765 _ACEOF
12766 rm -f conftest.$ac_objext
12767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12768   (eval $ac_compile) 2>&5
12769   ac_status=$?
12770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771   (exit $ac_status); } &&
12772          { ac_try='test -s conftest.$ac_objext'
12773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774   (eval $ac_try) 2>&5
12775   ac_status=$?
12776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777   (exit $ac_status); }; }; then
12778   ac_cv_type_time_t=yes
12779 else
12780   echo "$as_me: failed program was:" >&5
12781 sed 's/^/| /' conftest.$ac_ext >&5
12782
12783 ac_cv_type_time_t=no
12784 fi
12785 rm -f conftest.$ac_objext conftest.$ac_ext
12786 fi
12787 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
12788 echo "${ECHO_T}$ac_cv_type_time_t" >&6
12789 if test $ac_cv_type_time_t = yes; then
12790   :
12791 else
12792
12793 cat >>confdefs.h <<_ACEOF
12794 #define time_t long
12795 _ACEOF
12796
12797 fi
12798
12799 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12800 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12801 if test "${ac_cv_struct_tm+set}" = set; then
12802   echo $ECHO_N "(cached) $ECHO_C" >&6
12803 else
12804   cat >conftest.$ac_ext <<_ACEOF
12805 #line $LINENO "configure"
12806 /* confdefs.h.  */
12807 _ACEOF
12808 cat confdefs.h >>conftest.$ac_ext
12809 cat >>conftest.$ac_ext <<_ACEOF
12810 /* end confdefs.h.  */
12811 #include <sys/types.h>
12812 #include <time.h>
12813
12814 int
12815 main ()
12816 {
12817 struct tm *tp; tp->tm_sec;
12818   ;
12819   return 0;
12820 }
12821 _ACEOF
12822 rm -f conftest.$ac_objext
12823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12824   (eval $ac_compile) 2>&5
12825   ac_status=$?
12826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827   (exit $ac_status); } &&
12828          { ac_try='test -s conftest.$ac_objext'
12829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830   (eval $ac_try) 2>&5
12831   ac_status=$?
12832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833   (exit $ac_status); }; }; then
12834   ac_cv_struct_tm=time.h
12835 else
12836   echo "$as_me: failed program was:" >&5
12837 sed 's/^/| /' conftest.$ac_ext >&5
12838
12839 ac_cv_struct_tm=sys/time.h
12840 fi
12841 rm -f conftest.$ac_objext conftest.$ac_ext
12842 fi
12843 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12844 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12845 if test $ac_cv_struct_tm = sys/time.h; then
12846
12847 cat >>confdefs.h <<\_ACEOF
12848 #define TM_IN_SYS_TIME 1
12849 _ACEOF
12850
12851 fi
12852
12853
12854 echo "$as_me:$LINENO: checking for u_int8_t" >&5
12855 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
12856 if test "${ac_cv_type_u_int8_t+set}" = set; then
12857   echo $ECHO_N "(cached) $ECHO_C" >&6
12858 else
12859   cat >conftest.$ac_ext <<_ACEOF
12860 #line $LINENO "configure"
12861 /* confdefs.h.  */
12862 _ACEOF
12863 cat confdefs.h >>conftest.$ac_ext
12864 cat >>conftest.$ac_ext <<_ACEOF
12865 /* end confdefs.h.  */
12866 #include <sys/types.h>
12867 int
12868 main ()
12869 {
12870 u_int8_t len = 42; return 0;
12871   ;
12872   return 0;
12873 }
12874 _ACEOF
12875 rm -f conftest.$ac_objext
12876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12877   (eval $ac_compile) 2>&5
12878   ac_status=$?
12879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880   (exit $ac_status); } &&
12881          { ac_try='test -s conftest.$ac_objext'
12882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12883   (eval $ac_try) 2>&5
12884   ac_status=$?
12885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886   (exit $ac_status); }; }; then
12887   ac_cv_type_u_int8_t=yes
12888 else
12889   echo "$as_me: failed program was:" >&5
12890 sed 's/^/| /' conftest.$ac_ext >&5
12891
12892 ac_cv_type_u_int8_t=no
12893 fi
12894 rm -f conftest.$ac_objext conftest.$ac_ext
12895
12896 fi
12897 echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
12898 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
12899 if test $ac_cv_type_u_int8_t = yes; then
12900
12901 cat >>confdefs.h <<\_ACEOF
12902 #define HAVE_TYPE_U_INT8_T 1
12903 _ACEOF
12904
12905 fi
12906
12907 echo "$as_me:$LINENO: checking for u_int64_t" >&5
12908 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
12909 if test "${ac_cv_type_u_int64_t+set}" = set; then
12910   echo $ECHO_N "(cached) $ECHO_C" >&6
12911 else
12912   cat >conftest.$ac_ext <<_ACEOF
12913 #line $LINENO "configure"
12914 /* confdefs.h.  */
12915 _ACEOF
12916 cat confdefs.h >>conftest.$ac_ext
12917 cat >>conftest.$ac_ext <<_ACEOF
12918 /* end confdefs.h.  */
12919 #include <sys/types.h>
12920 int
12921 main ()
12922 {
12923 u_int64_t len = 42; return 0;
12924   ;
12925   return 0;
12926 }
12927 _ACEOF
12928 rm -f conftest.$ac_objext
12929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12930   (eval $ac_compile) 2>&5
12931   ac_status=$?
12932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933   (exit $ac_status); } &&
12934          { ac_try='test -s conftest.$ac_objext'
12935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12936   (eval $ac_try) 2>&5
12937   ac_status=$?
12938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939   (exit $ac_status); }; }; then
12940   ac_cv_type_u_int64_t=yes
12941 else
12942   echo "$as_me: failed program was:" >&5
12943 sed 's/^/| /' conftest.$ac_ext >&5
12944
12945 ac_cv_type_u_int64_t=no
12946 fi
12947 rm -f conftest.$ac_objext conftest.$ac_ext
12948
12949 fi
12950 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12951 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
12952 if test $ac_cv_type_u_int64_t = yes; then
12953
12954 cat >>confdefs.h <<\_ACEOF
12955 #define HAVE_TYPE_U_INT64_T 1
12956 _ACEOF
12957
12958 fi
12959
12960 echo "$as_me:$LINENO: checking for a fallback value for HZ" >&5
12961 echo $ECHO_N "checking for a fallback value for HZ... $ECHO_C" >&6
12962 if test "${ac_cv_var_default_hz+set}" = set; then
12963   echo $ECHO_N "(cached) $ECHO_C" >&6
12964 else
12965   ac_cv_var_default_hz=100
12966 case "$host" in
12967  alpha*-dec-osf4*|alpha*-dec-osf5*)
12968     ac_cv_var_default_hz=1024
12969     ;;
12970  mips-dec-ultrix4*)
12971     ac_cv_var_default_hz=256
12972     ;;
12973 esac
12974 fi
12975 echo "$as_me:$LINENO: result: $ac_cv_var_default_hz" >&5
12976 echo "${ECHO_T}$ac_cv_var_default_hz" >&6
12977
12978 cat >>confdefs.h <<_ACEOF
12979 #define DEFAULT_HZ $ac_cv_var_default_hz
12980 _ACEOF
12981
12982
12983 echo "$as_me:$LINENO: checking if we need to override the system's value for HZ" >&5
12984 echo $ECHO_N "checking if we need to override the system's value for HZ... $ECHO_C" >&6
12985 if test "${ac_cv_var_override_hz+set}" = set; then
12986   echo $ECHO_N "(cached) $ECHO_C" >&6
12987 else
12988   ac_cv_var_override_hz=no
12989 case "$host" in
12990  alpha*-dec-osf4*|alpha*-dec-osf5*)
12991     ac_cv_var_override_hz=yes
12992     ;;
12993  mips-dec-ultrix4*)
12994     ac_cv_var_override_hz=yes
12995     ;;
12996  *-*-freebsd*)
12997     ac_cv_var_override_hz=yes
12998     ;;
12999  *-*-sunos4*)
13000     ac_cv_var_override_hz=yes
13001     ;;
13002 esac
13003 fi
13004 echo "$as_me:$LINENO: result: $ac_cv_var_override_hz" >&5
13005 echo "${ECHO_T}$ac_cv_var_override_hz" >&6
13006 case "$ac_cv_var_override_hz" in
13007  yes)
13008
13009 cat >>confdefs.h <<\_ACEOF
13010 #define OVERRIDE_HZ 1
13011 _ACEOF
13012
13013     ;;
13014 esac
13015
13016
13017
13018 echo "$as_me:$LINENO: checking struct sigaction for sa_sigaction" >&5
13019 echo $ECHO_N "checking struct sigaction for sa_sigaction... $ECHO_C" >&6
13020 if test "${ac_cv_struct_sigaction_has_sa_sigaction+set}" = set; then
13021   echo $ECHO_N "(cached) $ECHO_C" >&6
13022 else
13023
13024     cat >conftest.$ac_ext <<_ACEOF
13025 #line $LINENO "configure"
13026 /* confdefs.h.  */
13027 _ACEOF
13028 cat confdefs.h >>conftest.$ac_ext
13029 cat >>conftest.$ac_ext <<_ACEOF
13030 /* end confdefs.h.  */
13031 #include <signal.h>
13032 int
13033 main ()
13034 {
13035 struct sigaction act; act.sa_sigaction = 0;
13036   ;
13037   return 0;
13038 }
13039 _ACEOF
13040 rm -f conftest.$ac_objext
13041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13042   (eval $ac_compile) 2>&5
13043   ac_status=$?
13044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045   (exit $ac_status); } &&
13046          { ac_try='test -s conftest.$ac_objext'
13047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048   (eval $ac_try) 2>&5
13049   ac_status=$?
13050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051   (exit $ac_status); }; }; then
13052   ac_cv_struct_sigaction_has_sa_sigaction=yes
13053 else
13054   echo "$as_me: failed program was:" >&5
13055 sed 's/^/| /' conftest.$ac_ext >&5
13056
13057 ac_cv_struct_sigaction_has_sa_sigaction=no
13058
13059 fi
13060 rm -f conftest.$ac_objext conftest.$ac_ext
13061
13062
13063 fi
13064 echo "$as_me:$LINENO: result: $ac_cv_struct_sigaction_has_sa_sigaction" >&5
13065 echo "${ECHO_T}$ac_cv_struct_sigaction_has_sa_sigaction" >&6
13066 if test $ac_cv_struct_sigaction_has_sa_sigaction = yes; then
13067
13068 cat >>confdefs.h <<\_ACEOF
13069 #define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1
13070 _ACEOF
13071
13072 fi
13073
13074 echo "$as_me:$LINENO: checking for struct ppsclockev" >&5
13075 echo $ECHO_N "checking for struct ppsclockev... $ECHO_C" >&6
13076 if test "${ac_cv_struct_ppsclockev+set}" = set; then
13077   echo $ECHO_N "(cached) $ECHO_C" >&6
13078 else
13079   cat >conftest.$ac_ext <<_ACEOF
13080 #line $LINENO "configure"
13081 /* confdefs.h.  */
13082 _ACEOF
13083 cat confdefs.h >>conftest.$ac_ext
13084 cat >>conftest.$ac_ext <<_ACEOF
13085 /* end confdefs.h.  */
13086
13087 #include <sys/types.h>
13088 #ifdef HAVE_SYS_TERMIOS_H
13089 # include <sys/termios.h>
13090 #endif
13091 #ifdef HAVE_SYS_TIME_H
13092 # include <sys/time.h>
13093 #endif
13094 #ifdef HAVE_SYS_PPSCLOCK_H
13095 # include <sys/ppsclock.h>
13096 #endif
13097 int
13098 main ()
13099 {
13100
13101 extern struct ppsclockev *pce;
13102 return pce->serial;
13103   ;
13104   return 0;
13105 }
13106 _ACEOF
13107 rm -f conftest.$ac_objext
13108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13109   (eval $ac_compile) 2>&5
13110   ac_status=$?
13111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112   (exit $ac_status); } &&
13113          { ac_try='test -s conftest.$ac_objext'
13114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115   (eval $ac_try) 2>&5
13116   ac_status=$?
13117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118   (exit $ac_status); }; }; then
13119   ac_cv_struct_ppsclockev=yes
13120 else
13121   echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.$ac_ext >&5
13123
13124 ac_cv_struct_ppsclockev=no
13125 fi
13126 rm -f conftest.$ac_objext conftest.$ac_ext
13127
13128 fi
13129 echo "$as_me:$LINENO: result: $ac_cv_struct_ppsclockev" >&5
13130 echo "${ECHO_T}$ac_cv_struct_ppsclockev" >&6
13131 if test $ac_cv_struct_ppsclockev = yes; then
13132
13133 cat >>confdefs.h <<\_ACEOF
13134 #define HAVE_STRUCT_PPSCLOCKEV 1
13135 _ACEOF
13136
13137 fi
13138
13139 echo "$as_me:$LINENO: checking struct sockaddr for sa_len" >&5
13140 echo $ECHO_N "checking struct sockaddr for sa_len... $ECHO_C" >&6
13141 if test "${ac_cv_struct_sockaddr_has_sa_len+set}" = set; then
13142   echo $ECHO_N "(cached) $ECHO_C" >&6
13143 else
13144   cat >conftest.$ac_ext <<_ACEOF
13145 #line $LINENO "configure"
13146 /* confdefs.h.  */
13147 _ACEOF
13148 cat confdefs.h >>conftest.$ac_ext
13149 cat >>conftest.$ac_ext <<_ACEOF
13150 /* end confdefs.h.  */
13151
13152 #include <sys/types.h>
13153 #include <sys/socket.h>
13154 int
13155 main ()
13156 {
13157
13158 extern struct sockaddr *ps;
13159 return ps->sa_len;
13160   ;
13161   return 0;
13162 }
13163 _ACEOF
13164 rm -f conftest.$ac_objext
13165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13166   (eval $ac_compile) 2>&5
13167   ac_status=$?
13168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169   (exit $ac_status); } &&
13170          { ac_try='test -s conftest.$ac_objext'
13171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13172   (eval $ac_try) 2>&5
13173   ac_status=$?
13174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175   (exit $ac_status); }; }; then
13176   ac_cv_struct_sockaddr_has_sa_len=yes
13177 else
13178   echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13180
13181 ac_cv_struct_sockaddr_has_sa_len=no
13182 fi
13183 rm -f conftest.$ac_objext conftest.$ac_ext
13184
13185 fi
13186 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_has_sa_len" >&5
13187 echo "${ECHO_T}$ac_cv_struct_sockaddr_has_sa_len" >&6
13188 if test $ac_cv_struct_sockaddr_has_sa_len = yes; then
13189
13190 cat >>confdefs.h <<\_ACEOF
13191 #define HAVE_SA_LEN_IN_STRUCT_SOCKADDR 1
13192 _ACEOF
13193
13194 fi
13195
13196 echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
13197 echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
13198 if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
13199   echo $ECHO_N "(cached) $ECHO_C" >&6
13200 else
13201
13202         cat >conftest.$ac_ext <<_ACEOF
13203 #line $LINENO "configure"
13204 /* confdefs.h.  */
13205 _ACEOF
13206 cat confdefs.h >>conftest.$ac_ext
13207 cat >>conftest.$ac_ext <<_ACEOF
13208 /* end confdefs.h.  */
13209
13210 #include <sys/types.h>
13211 #include <sys/socket.h>
13212
13213 int
13214 main ()
13215 {
13216  struct sockaddr_storage s; s.ss_family = 1;
13217   ;
13218   return 0;
13219 }
13220 _ACEOF
13221 rm -f conftest.$ac_objext
13222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13223   (eval $ac_compile) 2>&5
13224   ac_status=$?
13225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226   (exit $ac_status); } &&
13227          { ac_try='test -s conftest.$ac_objext'
13228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13229   (eval $ac_try) 2>&5
13230   ac_status=$?
13231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232   (exit $ac_status); }; }; then
13233    ac_cv_have_ss_family_in_struct_ss="yes"
13234 else
13235   echo "$as_me: failed program was:" >&5
13236 sed 's/^/| /' conftest.$ac_ext >&5
13237
13238  ac_cv_have_ss_family_in_struct_ss="no"
13239 fi
13240 rm -f conftest.$ac_objext conftest.$ac_ext
13241
13242 fi
13243 echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
13244 echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
13245 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
13246
13247 cat >>confdefs.h <<\_ACEOF
13248 #define HAVE_SS_FAMILY_IN_SS 1
13249 _ACEOF
13250
13251 else
13252     # Hack around a problem...
13253     case "$host" in
13254      *-*-hpux11.11) CPPFLAGS="$CPPFLAGS -D_NETINET_IN6_H"
13255         ;;
13256     esac
13257 fi
13258
13259 echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
13260 echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
13261 if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
13262   echo $ECHO_N "(cached) $ECHO_C" >&6
13263 else
13264
13265         cat >conftest.$ac_ext <<_ACEOF
13266 #line $LINENO "configure"
13267 /* confdefs.h.  */
13268 _ACEOF
13269 cat confdefs.h >>conftest.$ac_ext
13270 cat >>conftest.$ac_ext <<_ACEOF
13271 /* end confdefs.h.  */
13272
13273 #include <sys/types.h>
13274 #include <sys/socket.h>
13275
13276 int
13277 main ()
13278 {
13279  struct sockaddr_storage s; s.__ss_family = 1;
13280   ;
13281   return 0;
13282 }
13283 _ACEOF
13284 rm -f conftest.$ac_objext
13285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13286   (eval $ac_compile) 2>&5
13287   ac_status=$?
13288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289   (exit $ac_status); } &&
13290          { ac_try='test -s conftest.$ac_objext'
13291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292   (eval $ac_try) 2>&5
13293   ac_status=$?
13294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295   (exit $ac_status); }; }; then
13296    ac_cv_have___ss_family_in_struct_ss="yes"
13297 else
13298   echo "$as_me: failed program was:" >&5
13299 sed 's/^/| /' conftest.$ac_ext >&5
13300
13301  ac_cv_have___ss_family_in_struct_ss="no"
13302
13303 fi
13304 rm -f conftest.$ac_objext conftest.$ac_ext
13305
13306 fi
13307 echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
13308 echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
13309 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
13310
13311 cat >>confdefs.h <<\_ACEOF
13312 #define HAVE___SS_FAMILY_IN_SS 1
13313 _ACEOF
13314
13315 fi
13316
13317
13318
13319
13320 case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
13321   *yes*)
13322     echo "$as_me:$LINENO: checking for struct snd_size" >&5
13323 echo $ECHO_N "checking for struct snd_size... $ECHO_C" >&6
13324 if test "${ac_cv_struct_snd_size+set}" = set; then
13325   echo $ECHO_N "(cached) $ECHO_C" >&6
13326 else
13327   cat >conftest.$ac_ext <<_ACEOF
13328 #line $LINENO "configure"
13329 /* confdefs.h.  */
13330 _ACEOF
13331 cat confdefs.h >>conftest.$ac_ext
13332 cat >>conftest.$ac_ext <<_ACEOF
13333 /* end confdefs.h.  */
13334
13335 #ifdef HAVE_MACHINE_SOUNDCARD_H
13336 # include <machine/soundcard.h>
13337 #endif
13338 #ifdef HAVE_SYS_SOUNDCARD_H
13339 # include <sys/soundcard.h>
13340 #endif
13341 int
13342 main ()
13343 {
13344
13345 extern struct snd_size *ss;
13346 return ss->rec_size;
13347   ;
13348   return 0;
13349 }
13350 _ACEOF
13351 rm -f conftest.$ac_objext
13352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13353   (eval $ac_compile) 2>&5
13354   ac_status=$?
13355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356   (exit $ac_status); } &&
13357          { ac_try='test -s conftest.$ac_objext'
13358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13359   (eval $ac_try) 2>&5
13360   ac_status=$?
13361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362   (exit $ac_status); }; }; then
13363   ac_cv_struct_snd_size=yes
13364 else
13365   echo "$as_me: failed program was:" >&5
13366 sed 's/^/| /' conftest.$ac_ext >&5
13367
13368 ac_cv_struct_snd_size=no
13369 fi
13370 rm -f conftest.$ac_objext conftest.$ac_ext
13371
13372 fi
13373 echo "$as_me:$LINENO: result: $ac_cv_struct_snd_size" >&5
13374 echo "${ECHO_T}$ac_cv_struct_snd_size" >&6
13375     case "$ac_cv_struct_snd_size" in
13376      yes)
13377 cat >>confdefs.h <<\_ACEOF
13378 #define HAVE_STRUCT_SND_SIZE 1
13379 _ACEOF
13380  ;;
13381     esac
13382     ;;
13383 esac
13384
13385 echo "$as_me:$LINENO: checking struct clockinfo for hz" >&5
13386 echo $ECHO_N "checking struct clockinfo for hz... $ECHO_C" >&6
13387 if test "${ac_cv_struct_clockinfo_has_hz+set}" = set; then
13388   echo $ECHO_N "(cached) $ECHO_C" >&6
13389 else
13390   cat >conftest.$ac_ext <<_ACEOF
13391 #line $LINENO "configure"
13392 /* confdefs.h.  */
13393 _ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h.  */
13397
13398 #include <sys/time.h>
13399 int
13400 main ()
13401 {
13402
13403 extern struct clockinfo *pc;
13404 return pc->hz;
13405   ;
13406   return 0;
13407 }
13408 _ACEOF
13409 rm -f conftest.$ac_objext
13410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13411   (eval $ac_compile) 2>&5
13412   ac_status=$?
13413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414   (exit $ac_status); } &&
13415          { ac_try='test -s conftest.$ac_objext'
13416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13417   (eval $ac_try) 2>&5
13418   ac_status=$?
13419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420   (exit $ac_status); }; }; then
13421   ac_cv_struct_clockinfo_has_hz=yes
13422 else
13423   echo "$as_me: failed program was:" >&5
13424 sed 's/^/| /' conftest.$ac_ext >&5
13425
13426 ac_cv_struct_clockinfo_has_hz=no
13427 fi
13428 rm -f conftest.$ac_objext conftest.$ac_ext
13429
13430 fi
13431 echo "$as_me:$LINENO: result: $ac_cv_struct_clockinfo_has_hz" >&5
13432 echo "${ECHO_T}$ac_cv_struct_clockinfo_has_hz" >&6
13433 if test $ac_cv_struct_clockinfo_has_hz = yes; then
13434
13435 cat >>confdefs.h <<\_ACEOF
13436 #define HAVE_HZ_IN_STRUCT_CLOCKINFO 1
13437 _ACEOF
13438
13439 fi
13440
13441 echo "$as_me:$LINENO: checking struct clockinfo for tickadj" >&5
13442 echo $ECHO_N "checking struct clockinfo for tickadj... $ECHO_C" >&6
13443 if test "${ac_cv_struct_clockinfo_has_tickadj+set}" = set; then
13444   echo $ECHO_N "(cached) $ECHO_C" >&6
13445 else
13446   cat >conftest.$ac_ext <<_ACEOF
13447 #line $LINENO "configure"
13448 /* confdefs.h.  */
13449 _ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h.  */
13453
13454 #include <sys/time.h>
13455 int
13456 main ()
13457 {
13458
13459 extern struct clockinfo *pc;
13460 return pc->tickadj;
13461   ;
13462   return 0;
13463 }
13464 _ACEOF
13465 rm -f conftest.$ac_objext
13466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13467   (eval $ac_compile) 2>&5
13468   ac_status=$?
13469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470   (exit $ac_status); } &&
13471          { ac_try='test -s conftest.$ac_objext'
13472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473   (eval $ac_try) 2>&5
13474   ac_status=$?
13475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476   (exit $ac_status); }; }; then
13477   ac_cv_struct_clockinfo_has_tickadj=yes
13478 else
13479   echo "$as_me: failed program was:" >&5
13480 sed 's/^/| /' conftest.$ac_ext >&5
13481
13482 ac_cv_struct_clockinfo_has_tickadj=no
13483 fi
13484 rm -f conftest.$ac_objext conftest.$ac_ext
13485
13486 fi
13487 echo "$as_me:$LINENO: result: $ac_cv_struct_clockinfo_has_tickadj" >&5
13488 echo "${ECHO_T}$ac_cv_struct_clockinfo_has_tickadj" >&6
13489 if test $ac_cv_struct_clockinfo_has_tickadj = yes; then
13490
13491 cat >>confdefs.h <<\_ACEOF
13492 #define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1
13493 _ACEOF
13494
13495 fi
13496
13497 echo "$as_me:$LINENO: checking for struct timespec" >&5
13498 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
13499 if test "${ac_cv_struct_timespec+set}" = set; then
13500   echo $ECHO_N "(cached) $ECHO_C" >&6
13501 else
13502   cat >conftest.$ac_ext <<_ACEOF
13503 #line $LINENO "configure"
13504 /* confdefs.h.  */
13505 _ACEOF
13506 cat confdefs.h >>conftest.$ac_ext
13507 cat >>conftest.$ac_ext <<_ACEOF
13508 /* end confdefs.h.  */
13509
13510 #include <sys/time.h>
13511 /* Under SunOS, timespec is in sys/timepps.h, which needs errno.h and FRAC */
13512 #ifdef HAVE_ERRNO_H
13513 # include <errno.h>
13514 #endif
13515 #ifdef HAVE_SYS_TIMEPPS_H
13516 # define FRAC 4294967296
13517 # include <sys/timepps.h>
13518 #endif
13519 int
13520 main ()
13521 {
13522 struct timespec n;
13523   ;
13524   return 0;
13525 }
13526 _ACEOF
13527 rm -f conftest.$ac_objext
13528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13529   (eval $ac_compile) 2>&5
13530   ac_status=$?
13531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532   (exit $ac_status); } &&
13533          { ac_try='test -s conftest.$ac_objext'
13534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535   (eval $ac_try) 2>&5
13536   ac_status=$?
13537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538   (exit $ac_status); }; }; then
13539   ac_cv_struct_timespec=yes
13540 else
13541   echo "$as_me: failed program was:" >&5
13542 sed 's/^/| /' conftest.$ac_ext >&5
13543
13544 ac_cv_struct_timespec=no
13545 fi
13546 rm -f conftest.$ac_objext conftest.$ac_ext
13547 fi
13548 echo "$as_me:$LINENO: result: $ac_cv_struct_timespec" >&5
13549 echo "${ECHO_T}$ac_cv_struct_timespec" >&6
13550 if test $ac_cv_struct_timespec = yes; then
13551
13552 cat >>confdefs.h <<\_ACEOF
13553 #define HAVE_STRUCT_TIMESPEC 1
13554 _ACEOF
13555
13556 fi
13557
13558 echo "$as_me:$LINENO: checking for struct ntptimeval" >&5
13559 echo $ECHO_N "checking for struct ntptimeval... $ECHO_C" >&6
13560 if test "${ac_cv_struct_ntptimeval+set}" = set; then
13561   echo $ECHO_N "(cached) $ECHO_C" >&6
13562 else
13563   cat >conftest.$ac_ext <<_ACEOF
13564 #line $LINENO "configure"
13565 /* confdefs.h.  */
13566 _ACEOF
13567 cat confdefs.h >>conftest.$ac_ext
13568 cat >>conftest.$ac_ext <<_ACEOF
13569 /* end confdefs.h.  */
13570
13571 #include <sys/time.h>
13572 #include <sys/timex.h>
13573 int
13574 main ()
13575 {
13576 struct ntptimeval n;
13577   ;
13578   return 0;
13579 }
13580 _ACEOF
13581 rm -f conftest.$ac_objext
13582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13583   (eval $ac_compile) 2>&5
13584   ac_status=$?
13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586   (exit $ac_status); } &&
13587          { ac_try='test -s conftest.$ac_objext'
13588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13589   (eval $ac_try) 2>&5
13590   ac_status=$?
13591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592   (exit $ac_status); }; }; then
13593   ac_cv_struct_ntptimeval=yes
13594 else
13595   echo "$as_me: failed program was:" >&5
13596 sed 's/^/| /' conftest.$ac_ext >&5
13597
13598 ac_cv_struct_ntptimeval=no
13599 fi
13600 rm -f conftest.$ac_objext conftest.$ac_ext
13601 fi
13602 echo "$as_me:$LINENO: result: $ac_cv_struct_ntptimeval" >&5
13603 echo "${ECHO_T}$ac_cv_struct_ntptimeval" >&6
13604 if test $ac_cv_struct_ntptimeval = yes; then
13605
13606 cat >>confdefs.h <<\_ACEOF
13607 #define HAVE_STRUCT_NTPTIMEVAL 1
13608 _ACEOF
13609
13610 fi
13611
13612 echo "$as_me:$LINENO: checking for struct ntptimeval.time.tv_nsec" >&5
13613 echo $ECHO_N "checking for struct ntptimeval.time.tv_nsec... $ECHO_C" >&6
13614 if test "${ac_cv_member_struct_ntptimeval_time_tv_nsec+set}" = set; then
13615   echo $ECHO_N "(cached) $ECHO_C" >&6
13616 else
13617   cat >conftest.$ac_ext <<_ACEOF
13618 #line $LINENO "configure"
13619 /* confdefs.h.  */
13620 _ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h.  */
13624 #ifdef HAVE_SYS_TIME_H
13625 #include <sys/time.h>
13626 #else
13627 # ifdef HAVE_TIME_H
13628 # include <time.h>
13629 # endif
13630 #endif
13631 #ifdef HAVE_SYS_TIMEX_H
13632 #include <sys/timex.h>
13633 #else
13634 # ifdef HAVE_TIMEX_H
13635 # include <timex.h>
13636 # endif
13637 #endif
13638
13639 int
13640 main ()
13641 {
13642 static struct ntptimeval ac_aggr;
13643 if (ac_aggr.time.tv_nsec)
13644 return 0;
13645   ;
13646   return 0;
13647 }
13648 _ACEOF
13649 rm -f conftest.$ac_objext
13650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13651   (eval $ac_compile) 2>&5
13652   ac_status=$?
13653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654   (exit $ac_status); } &&
13655          { ac_try='test -s conftest.$ac_objext'
13656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657   (eval $ac_try) 2>&5
13658   ac_status=$?
13659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660   (exit $ac_status); }; }; then
13661   ac_cv_member_struct_ntptimeval_time_tv_nsec=yes
13662 else
13663   echo "$as_me: failed program was:" >&5
13664 sed 's/^/| /' conftest.$ac_ext >&5
13665
13666 cat >conftest.$ac_ext <<_ACEOF
13667 #line $LINENO "configure"
13668 /* confdefs.h.  */
13669 _ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h.  */
13673 #ifdef HAVE_SYS_TIME_H
13674 #include <sys/time.h>
13675 #else
13676 # ifdef HAVE_TIME_H
13677 # include <time.h>
13678 # endif
13679 #endif
13680 #ifdef HAVE_SYS_TIMEX_H
13681 #include <sys/timex.h>
13682 #else
13683 # ifdef HAVE_TIMEX_H
13684 # include <timex.h>
13685 # endif
13686 #endif
13687
13688 int
13689 main ()
13690 {
13691 static struct ntptimeval ac_aggr;
13692 if (sizeof ac_aggr.time.tv_nsec)
13693 return 0;
13694   ;
13695   return 0;
13696 }
13697 _ACEOF
13698 rm -f conftest.$ac_objext
13699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13700   (eval $ac_compile) 2>&5
13701   ac_status=$?
13702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703   (exit $ac_status); } &&
13704          { ac_try='test -s conftest.$ac_objext'
13705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13706   (eval $ac_try) 2>&5
13707   ac_status=$?
13708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709   (exit $ac_status); }; }; then
13710   ac_cv_member_struct_ntptimeval_time_tv_nsec=yes
13711 else
13712   echo "$as_me: failed program was:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13714
13715 ac_cv_member_struct_ntptimeval_time_tv_nsec=no
13716 fi
13717 rm -f conftest.$ac_objext conftest.$ac_ext
13718 fi
13719 rm -f conftest.$ac_objext conftest.$ac_ext
13720 fi
13721 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ntptimeval_time_tv_nsec" >&5
13722 echo "${ECHO_T}$ac_cv_member_struct_ntptimeval_time_tv_nsec" >&6
13723 if test $ac_cv_member_struct_ntptimeval_time_tv_nsec = yes; then
13724
13725 cat >>confdefs.h <<_ACEOF
13726 #define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
13727 _ACEOF
13728
13729
13730 fi
13731
13732
13733 echo "$as_me:$LINENO: checking for inline" >&5
13734 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13735 if test "${ac_cv_c_inline+set}" = set; then
13736   echo $ECHO_N "(cached) $ECHO_C" >&6
13737 else
13738   ac_cv_c_inline=no
13739 for ac_kw in inline __inline__ __inline; do
13740   cat >conftest.$ac_ext <<_ACEOF
13741 #line $LINENO "configure"
13742 /* confdefs.h.  */
13743 _ACEOF
13744 cat confdefs.h >>conftest.$ac_ext
13745 cat >>conftest.$ac_ext <<_ACEOF
13746 /* end confdefs.h.  */
13747 #ifndef __cplusplus
13748 typedef int foo_t;
13749 static $ac_kw foo_t static_foo () {return 0; }
13750 $ac_kw foo_t foo () {return 0; }
13751 #endif
13752
13753 _ACEOF
13754 rm -f conftest.$ac_objext
13755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13756   (eval $ac_compile) 2>&5
13757   ac_status=$?
13758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759   (exit $ac_status); } &&
13760          { ac_try='test -s conftest.$ac_objext'
13761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13762   (eval $ac_try) 2>&5
13763   ac_status=$?
13764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765   (exit $ac_status); }; }; then
13766   ac_cv_c_inline=$ac_kw; break
13767 else
13768   echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13770
13771 fi
13772 rm -f conftest.$ac_objext conftest.$ac_ext
13773 done
13774
13775 fi
13776 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13777 echo "${ECHO_T}$ac_cv_c_inline" >&6
13778 case $ac_cv_c_inline in
13779   inline | yes) ;;
13780   no)
13781 cat >>confdefs.h <<\_ACEOF
13782 #define inline
13783 _ACEOF
13784  ;;
13785   *)  cat >>confdefs.h <<_ACEOF
13786 #define inline $ac_cv_c_inline
13787 _ACEOF
13788  ;;
13789 esac
13790
13791
13792 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
13793 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
13794 if test "${ac_cv_c_char_unsigned+set}" = set; then
13795   echo $ECHO_N "(cached) $ECHO_C" >&6
13796 else
13797   cat >conftest.$ac_ext <<_ACEOF
13798 #line $LINENO "configure"
13799 /* confdefs.h.  */
13800 _ACEOF
13801 cat confdefs.h >>conftest.$ac_ext
13802 cat >>conftest.$ac_ext <<_ACEOF
13803 /* end confdefs.h.  */
13804 $ac_includes_default
13805 int
13806 main ()
13807 {
13808 static int test_array [1 - 2 * !(((char) -1) < 0)];
13809 test_array [0] = 0
13810
13811   ;
13812   return 0;
13813 }
13814 _ACEOF
13815 rm -f conftest.$ac_objext
13816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13817   (eval $ac_compile) 2>&5
13818   ac_status=$?
13819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820   (exit $ac_status); } &&
13821          { ac_try='test -s conftest.$ac_objext'
13822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823   (eval $ac_try) 2>&5
13824   ac_status=$?
13825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826   (exit $ac_status); }; }; then
13827   ac_cv_c_char_unsigned=no
13828 else
13829   echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13831
13832 ac_cv_c_char_unsigned=yes
13833 fi
13834 rm -f conftest.$ac_objext conftest.$ac_ext
13835 fi
13836 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
13837 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
13838 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
13839   cat >>confdefs.h <<\_ACEOF
13840 #define __CHAR_UNSIGNED__ 1
13841 _ACEOF
13842
13843 fi
13844                 echo "$as_me:$LINENO: checking for signed char" >&5
13845 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
13846 if test "${ac_cv_type_signed_char+set}" = set; then
13847   echo $ECHO_N "(cached) $ECHO_C" >&6
13848 else
13849   cat >conftest.$ac_ext <<_ACEOF
13850 #line $LINENO "configure"
13851 /* confdefs.h.  */
13852 _ACEOF
13853 cat confdefs.h >>conftest.$ac_ext
13854 cat >>conftest.$ac_ext <<_ACEOF
13855 /* end confdefs.h.  */
13856 $ac_includes_default
13857 int
13858 main ()
13859 {
13860 if ((signed char *) 0)
13861   return 0;
13862 if (sizeof (signed char))
13863   return 0;
13864   ;
13865   return 0;
13866 }
13867 _ACEOF
13868 rm -f conftest.$ac_objext
13869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13870   (eval $ac_compile) 2>&5
13871   ac_status=$?
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); } &&
13874          { ac_try='test -s conftest.$ac_objext'
13875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876   (eval $ac_try) 2>&5
13877   ac_status=$?
13878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879   (exit $ac_status); }; }; then
13880   ac_cv_type_signed_char=yes
13881 else
13882   echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13884
13885 ac_cv_type_signed_char=no
13886 fi
13887 rm -f conftest.$ac_objext conftest.$ac_ext
13888 fi
13889 echo "$as_me:$LINENO: result: $ac_cv_type_signed_char" >&5
13890 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
13891
13892 echo "$as_me:$LINENO: checking size of signed char" >&5
13893 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
13894 if test "${ac_cv_sizeof_signed_char+set}" = set; then
13895   echo $ECHO_N "(cached) $ECHO_C" >&6
13896 else
13897   if test "$ac_cv_type_signed_char" = yes; then
13898   # The cast to unsigned long works around a bug in the HP C Compiler
13899   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13900   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13901   # This bug is HP SR number 8606223364.
13902   if test "$cross_compiling" = yes; then
13903   # Depending upon the size, compute the lo and hi bounds.
13904 cat >conftest.$ac_ext <<_ACEOF
13905 #line $LINENO "configure"
13906 /* confdefs.h.  */
13907 _ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h.  */
13911 $ac_includes_default
13912 int
13913 main ()
13914 {
13915 static int test_array [1 - 2 * !(((long) (sizeof (signed char))) >= 0)];
13916 test_array [0] = 0
13917
13918   ;
13919   return 0;
13920 }
13921 _ACEOF
13922 rm -f conftest.$ac_objext
13923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13924   (eval $ac_compile) 2>&5
13925   ac_status=$?
13926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927   (exit $ac_status); } &&
13928          { ac_try='test -s conftest.$ac_objext'
13929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930   (eval $ac_try) 2>&5
13931   ac_status=$?
13932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933   (exit $ac_status); }; }; then
13934   ac_lo=0 ac_mid=0
13935   while :; do
13936     cat >conftest.$ac_ext <<_ACEOF
13937 #line $LINENO "configure"
13938 /* confdefs.h.  */
13939 _ACEOF
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h.  */
13943 $ac_includes_default
13944 int
13945 main ()
13946 {
13947 static int test_array [1 - 2 * !(((long) (sizeof (signed char))) <= $ac_mid)];
13948 test_array [0] = 0
13949
13950   ;
13951   return 0;
13952 }
13953 _ACEOF
13954 rm -f conftest.$ac_objext
13955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13956   (eval $ac_compile) 2>&5
13957   ac_status=$?
13958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959   (exit $ac_status); } &&
13960          { ac_try='test -s conftest.$ac_objext'
13961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13962   (eval $ac_try) 2>&5
13963   ac_status=$?
13964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965   (exit $ac_status); }; }; then
13966   ac_hi=$ac_mid; break
13967 else
13968   echo "$as_me: failed program was:" >&5
13969 sed 's/^/| /' conftest.$ac_ext >&5
13970
13971 ac_lo=`expr $ac_mid + 1`
13972                     if test $ac_lo -le $ac_mid; then
13973                       ac_lo= ac_hi=
13974                       break
13975                     fi
13976                     ac_mid=`expr 2 '*' $ac_mid + 1`
13977 fi
13978 rm -f conftest.$ac_objext conftest.$ac_ext
13979   done
13980 else
13981   echo "$as_me: failed program was:" >&5
13982 sed 's/^/| /' conftest.$ac_ext >&5
13983
13984 cat >conftest.$ac_ext <<_ACEOF
13985 #line $LINENO "configure"
13986 /* confdefs.h.  */
13987 _ACEOF
13988 cat confdefs.h >>conftest.$ac_ext
13989 cat >>conftest.$ac_ext <<_ACEOF
13990 /* end confdefs.h.  */
13991 $ac_includes_default
13992 int
13993 main ()
13994 {
13995 static int test_array [1 - 2 * !(((long) (sizeof (signed char))) < 0)];
13996 test_array [0] = 0
13997
13998   ;
13999   return 0;
14000 }
14001 _ACEOF
14002 rm -f conftest.$ac_objext
14003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14004   (eval $ac_compile) 2>&5
14005   ac_status=$?
14006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007   (exit $ac_status); } &&
14008          { ac_try='test -s conftest.$ac_objext'
14009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010   (eval $ac_try) 2>&5
14011   ac_status=$?
14012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013   (exit $ac_status); }; }; then
14014   ac_hi=-1 ac_mid=-1
14015   while :; do
14016     cat >conftest.$ac_ext <<_ACEOF
14017 #line $LINENO "configure"
14018 /* confdefs.h.  */
14019 _ACEOF
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h.  */
14023 $ac_includes_default
14024 int
14025 main ()
14026 {
14027 static int test_array [1 - 2 * !(((long) (sizeof (signed char))) >= $ac_mid)];
14028 test_array [0] = 0
14029
14030   ;
14031   return 0;
14032 }
14033 _ACEOF
14034 rm -f conftest.$ac_objext
14035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14036   (eval $ac_compile) 2>&5
14037   ac_status=$?
14038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039   (exit $ac_status); } &&
14040          { ac_try='test -s conftest.$ac_objext'
14041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14042   (eval $ac_try) 2>&5
14043   ac_status=$?
14044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045   (exit $ac_status); }; }; then
14046   ac_lo=$ac_mid; break
14047 else
14048   echo "$as_me: failed program was:" >&5
14049 sed 's/^/| /' conftest.$ac_ext >&5
14050
14051 ac_hi=`expr '(' $ac_mid ')' - 1`
14052                        if test $ac_mid -le $ac_hi; then
14053                          ac_lo= ac_hi=
14054                          break
14055                        fi
14056                        ac_mid=`expr 2 '*' $ac_mid`
14057 fi
14058 rm -f conftest.$ac_objext conftest.$ac_ext
14059   done
14060 else
14061   echo "$as_me: failed program was:" >&5
14062 sed 's/^/| /' conftest.$ac_ext >&5
14063
14064 ac_lo= ac_hi=
14065 fi
14066 rm -f conftest.$ac_objext conftest.$ac_ext
14067 fi
14068 rm -f conftest.$ac_objext conftest.$ac_ext
14069 # Binary search between lo and hi bounds.
14070 while test "x$ac_lo" != "x$ac_hi"; do
14071   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14072   cat >conftest.$ac_ext <<_ACEOF
14073 #line $LINENO "configure"
14074 /* confdefs.h.  */
14075 _ACEOF
14076 cat confdefs.h >>conftest.$ac_ext
14077 cat >>conftest.$ac_ext <<_ACEOF
14078 /* end confdefs.h.  */
14079 $ac_includes_default
14080 int
14081 main ()
14082 {
14083 static int test_array [1 - 2 * !(((long) (sizeof (signed char))) <= $ac_mid)];
14084 test_array [0] = 0
14085
14086   ;
14087   return 0;
14088 }
14089 _ACEOF
14090 rm -f conftest.$ac_objext
14091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14092   (eval $ac_compile) 2>&5
14093   ac_status=$?
14094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095   (exit $ac_status); } &&
14096          { ac_try='test -s conftest.$ac_objext'
14097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098   (eval $ac_try) 2>&5
14099   ac_status=$?
14100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101   (exit $ac_status); }; }; then
14102   ac_hi=$ac_mid
14103 else
14104   echo "$as_me: failed program was:" >&5
14105 sed 's/^/| /' conftest.$ac_ext >&5
14106
14107 ac_lo=`expr '(' $ac_mid ')' + 1`
14108 fi
14109 rm -f conftest.$ac_objext conftest.$ac_ext
14110 done
14111 case $ac_lo in
14112 ?*) ac_cv_sizeof_signed_char=$ac_lo;;
14113 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char), 77
14114 See \`config.log' for more details." >&5
14115 echo "$as_me: error: cannot compute sizeof (signed char), 77
14116 See \`config.log' for more details." >&2;}
14117    { (exit 1); exit 1; }; } ;;
14118 esac
14119 else
14120   if test "$cross_compiling" = yes; then
14121   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14122 See \`config.log' for more details." >&5
14123 echo "$as_me: error: cannot run test program while cross compiling
14124 See \`config.log' for more details." >&2;}
14125    { (exit 1); exit 1; }; }
14126 else
14127   cat >conftest.$ac_ext <<_ACEOF
14128 #line $LINENO "configure"
14129 /* confdefs.h.  */
14130 _ACEOF
14131 cat confdefs.h >>conftest.$ac_ext
14132 cat >>conftest.$ac_ext <<_ACEOF
14133 /* end confdefs.h.  */
14134 $ac_includes_default
14135 long longval () { return (long) (sizeof (signed char)); }
14136 unsigned long ulongval () { return (long) (sizeof (signed char)); }
14137 #include <stdio.h>
14138 #include <stdlib.h>
14139 int
14140 main ()
14141 {
14142
14143   FILE *f = fopen ("conftest.val", "w");
14144   if (! f)
14145     exit (1);
14146   if (((long) (sizeof (signed char))) < 0)
14147     {
14148       long i = longval ();
14149       if (i != ((long) (sizeof (signed char))))
14150         exit (1);
14151       fprintf (f, "%ld\n", i);
14152     }
14153   else
14154     {
14155       unsigned long i = ulongval ();
14156       if (i != ((long) (sizeof (signed char))))
14157         exit (1);
14158       fprintf (f, "%lu\n", i);
14159     }
14160   exit (ferror (f) || fclose (f) != 0);
14161
14162   ;
14163   return 0;
14164 }
14165 _ACEOF
14166 rm -f conftest$ac_exeext
14167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14168   (eval $ac_link) 2>&5
14169   ac_status=$?
14170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173   (eval $ac_try) 2>&5
14174   ac_status=$?
14175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176   (exit $ac_status); }; }; then
14177   ac_cv_sizeof_signed_char=`cat conftest.val`
14178 else
14179   echo "$as_me: program exited with status $ac_status" >&5
14180 echo "$as_me: failed program was:" >&5
14181 sed 's/^/| /' conftest.$ac_ext >&5
14182
14183 ( exit $ac_status )
14184 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char), 77
14185 See \`config.log' for more details." >&5
14186 echo "$as_me: error: cannot compute sizeof (signed char), 77
14187 See \`config.log' for more details." >&2;}
14188    { (exit 1); exit 1; }; }
14189 fi
14190 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14191 fi
14192 fi
14193 rm -f conftest.val
14194 else
14195   ac_cv_sizeof_signed_char=0
14196 fi
14197 fi
14198 echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
14199 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
14200 cat >>confdefs.h <<_ACEOF
14201 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
14202 _ACEOF
14203
14204
14205 echo "$as_me:$LINENO: checking for int" >&5
14206 echo $ECHO_N "checking for int... $ECHO_C" >&6
14207 if test "${ac_cv_type_int+set}" = set; then
14208   echo $ECHO_N "(cached) $ECHO_C" >&6
14209 else
14210   cat >conftest.$ac_ext <<_ACEOF
14211 #line $LINENO "configure"
14212 /* confdefs.h.  */
14213 _ACEOF
14214 cat confdefs.h >>conftest.$ac_ext
14215 cat >>conftest.$ac_ext <<_ACEOF
14216 /* end confdefs.h.  */
14217 $ac_includes_default
14218 int
14219 main ()
14220 {
14221 if ((int *) 0)
14222   return 0;
14223 if (sizeof (int))
14224   return 0;
14225   ;
14226   return 0;
14227 }
14228 _ACEOF
14229 rm -f conftest.$ac_objext
14230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14231   (eval $ac_compile) 2>&5
14232   ac_status=$?
14233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234   (exit $ac_status); } &&
14235          { ac_try='test -s conftest.$ac_objext'
14236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237   (eval $ac_try) 2>&5
14238   ac_status=$?
14239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240   (exit $ac_status); }; }; then
14241   ac_cv_type_int=yes
14242 else
14243   echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.$ac_ext >&5
14245
14246 ac_cv_type_int=no
14247 fi
14248 rm -f conftest.$ac_objext conftest.$ac_ext
14249 fi
14250 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14251 echo "${ECHO_T}$ac_cv_type_int" >&6
14252
14253 echo "$as_me:$LINENO: checking size of int" >&5
14254 echo $ECHO_N "checking size of int... $ECHO_C" >&6
14255 if test "${ac_cv_sizeof_int+set}" = set; then
14256   echo $ECHO_N "(cached) $ECHO_C" >&6
14257 else
14258   if test "$ac_cv_type_int" = yes; then
14259   # The cast to unsigned long works around a bug in the HP C Compiler
14260   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14261   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14262   # This bug is HP SR number 8606223364.
14263   if test "$cross_compiling" = yes; then
14264   # Depending upon the size, compute the lo and hi bounds.
14265 cat >conftest.$ac_ext <<_ACEOF
14266 #line $LINENO "configure"
14267 /* confdefs.h.  */
14268 _ACEOF
14269 cat confdefs.h >>conftest.$ac_ext
14270 cat >>conftest.$ac_ext <<_ACEOF
14271 /* end confdefs.h.  */
14272 $ac_includes_default
14273 int
14274 main ()
14275 {
14276 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14277 test_array [0] = 0
14278
14279   ;
14280   return 0;
14281 }
14282 _ACEOF
14283 rm -f conftest.$ac_objext
14284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14285   (eval $ac_compile) 2>&5
14286   ac_status=$?
14287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288   (exit $ac_status); } &&
14289          { ac_try='test -s conftest.$ac_objext'
14290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291   (eval $ac_try) 2>&5
14292   ac_status=$?
14293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294   (exit $ac_status); }; }; then
14295   ac_lo=0 ac_mid=0
14296   while :; do
14297     cat >conftest.$ac_ext <<_ACEOF
14298 #line $LINENO "configure"
14299 /* confdefs.h.  */
14300 _ACEOF
14301 cat confdefs.h >>conftest.$ac_ext
14302 cat >>conftest.$ac_ext <<_ACEOF
14303 /* end confdefs.h.  */
14304 $ac_includes_default
14305 int
14306 main ()
14307 {
14308 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14309 test_array [0] = 0
14310
14311   ;
14312   return 0;
14313 }
14314 _ACEOF
14315 rm -f conftest.$ac_objext
14316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14317   (eval $ac_compile) 2>&5
14318   ac_status=$?
14319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320   (exit $ac_status); } &&
14321          { ac_try='test -s conftest.$ac_objext'
14322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323   (eval $ac_try) 2>&5
14324   ac_status=$?
14325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326   (exit $ac_status); }; }; then
14327   ac_hi=$ac_mid; break
14328 else
14329   echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14331
14332 ac_lo=`expr $ac_mid + 1`
14333                     if test $ac_lo -le $ac_mid; then
14334                       ac_lo= ac_hi=
14335                       break
14336                     fi
14337                     ac_mid=`expr 2 '*' $ac_mid + 1`
14338 fi
14339 rm -f conftest.$ac_objext conftest.$ac_ext
14340   done
14341 else
14342   echo "$as_me: failed program was:" >&5
14343 sed 's/^/| /' conftest.$ac_ext >&5
14344
14345 cat >conftest.$ac_ext <<_ACEOF
14346 #line $LINENO "configure"
14347 /* confdefs.h.  */
14348 _ACEOF
14349 cat confdefs.h >>conftest.$ac_ext
14350 cat >>conftest.$ac_ext <<_ACEOF
14351 /* end confdefs.h.  */
14352 $ac_includes_default
14353 int
14354 main ()
14355 {
14356 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14357 test_array [0] = 0
14358
14359   ;
14360   return 0;
14361 }
14362 _ACEOF
14363 rm -f conftest.$ac_objext
14364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14365   (eval $ac_compile) 2>&5
14366   ac_status=$?
14367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368   (exit $ac_status); } &&
14369          { ac_try='test -s conftest.$ac_objext'
14370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14371   (eval $ac_try) 2>&5
14372   ac_status=$?
14373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374   (exit $ac_status); }; }; then
14375   ac_hi=-1 ac_mid=-1
14376   while :; do
14377     cat >conftest.$ac_ext <<_ACEOF
14378 #line $LINENO "configure"
14379 /* confdefs.h.  */
14380 _ACEOF
14381 cat confdefs.h >>conftest.$ac_ext
14382 cat >>conftest.$ac_ext <<_ACEOF
14383 /* end confdefs.h.  */
14384 $ac_includes_default
14385 int
14386 main ()
14387 {
14388 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14389 test_array [0] = 0
14390
14391   ;
14392   return 0;
14393 }
14394 _ACEOF
14395 rm -f conftest.$ac_objext
14396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14397   (eval $ac_compile) 2>&5
14398   ac_status=$?
14399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400   (exit $ac_status); } &&
14401          { ac_try='test -s conftest.$ac_objext'
14402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14403   (eval $ac_try) 2>&5
14404   ac_status=$?
14405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406   (exit $ac_status); }; }; then
14407   ac_lo=$ac_mid; break
14408 else
14409   echo "$as_me: failed program was:" >&5
14410 sed 's/^/| /' conftest.$ac_ext >&5
14411
14412 ac_hi=`expr '(' $ac_mid ')' - 1`
14413                        if test $ac_mid -le $ac_hi; then
14414                          ac_lo= ac_hi=
14415                          break
14416                        fi
14417                        ac_mid=`expr 2 '*' $ac_mid`
14418 fi
14419 rm -f conftest.$ac_objext conftest.$ac_ext
14420   done
14421 else
14422   echo "$as_me: failed program was:" >&5
14423 sed 's/^/| /' conftest.$ac_ext >&5
14424
14425 ac_lo= ac_hi=
14426 fi
14427 rm -f conftest.$ac_objext conftest.$ac_ext
14428 fi
14429 rm -f conftest.$ac_objext conftest.$ac_ext
14430 # Binary search between lo and hi bounds.
14431 while test "x$ac_lo" != "x$ac_hi"; do
14432   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14433   cat >conftest.$ac_ext <<_ACEOF
14434 #line $LINENO "configure"
14435 /* confdefs.h.  */
14436 _ACEOF
14437 cat confdefs.h >>conftest.$ac_ext
14438 cat >>conftest.$ac_ext <<_ACEOF
14439 /* end confdefs.h.  */
14440 $ac_includes_default
14441 int
14442 main ()
14443 {
14444 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14445 test_array [0] = 0
14446
14447   ;
14448   return 0;
14449 }
14450 _ACEOF
14451 rm -f conftest.$ac_objext
14452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14453   (eval $ac_compile) 2>&5
14454   ac_status=$?
14455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456   (exit $ac_status); } &&
14457          { ac_try='test -s conftest.$ac_objext'
14458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14459   (eval $ac_try) 2>&5
14460   ac_status=$?
14461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462   (exit $ac_status); }; }; then
14463   ac_hi=$ac_mid
14464 else
14465   echo "$as_me: failed program was:" >&5
14466 sed 's/^/| /' conftest.$ac_ext >&5
14467
14468 ac_lo=`expr '(' $ac_mid ')' + 1`
14469 fi
14470 rm -f conftest.$ac_objext conftest.$ac_ext
14471 done
14472 case $ac_lo in
14473 ?*) ac_cv_sizeof_int=$ac_lo;;
14474 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14475 See \`config.log' for more details." >&5
14476 echo "$as_me: error: cannot compute sizeof (int), 77
14477 See \`config.log' for more details." >&2;}
14478    { (exit 1); exit 1; }; } ;;
14479 esac
14480 else
14481   if test "$cross_compiling" = yes; then
14482   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14483 See \`config.log' for more details." >&5
14484 echo "$as_me: error: cannot run test program while cross compiling
14485 See \`config.log' for more details." >&2;}
14486    { (exit 1); exit 1; }; }
14487 else
14488   cat >conftest.$ac_ext <<_ACEOF
14489 #line $LINENO "configure"
14490 /* confdefs.h.  */
14491 _ACEOF
14492 cat confdefs.h >>conftest.$ac_ext
14493 cat >>conftest.$ac_ext <<_ACEOF
14494 /* end confdefs.h.  */
14495 $ac_includes_default
14496 long longval () { return (long) (sizeof (int)); }
14497 unsigned long ulongval () { return (long) (sizeof (int)); }
14498 #include <stdio.h>
14499 #include <stdlib.h>
14500 int
14501 main ()
14502 {
14503
14504   FILE *f = fopen ("conftest.val", "w");
14505   if (! f)
14506     exit (1);
14507   if (((long) (sizeof (int))) < 0)
14508     {
14509       long i = longval ();
14510       if (i != ((long) (sizeof (int))))
14511         exit (1);
14512       fprintf (f, "%ld\n", i);
14513     }
14514   else
14515     {
14516       unsigned long i = ulongval ();
14517       if (i != ((long) (sizeof (int))))
14518         exit (1);
14519       fprintf (f, "%lu\n", i);
14520     }
14521   exit (ferror (f) || fclose (f) != 0);
14522
14523   ;
14524   return 0;
14525 }
14526 _ACEOF
14527 rm -f conftest$ac_exeext
14528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14529   (eval $ac_link) 2>&5
14530   ac_status=$?
14531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534   (eval $ac_try) 2>&5
14535   ac_status=$?
14536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537   (exit $ac_status); }; }; then
14538   ac_cv_sizeof_int=`cat conftest.val`
14539 else
14540   echo "$as_me: program exited with status $ac_status" >&5
14541 echo "$as_me: failed program was:" >&5
14542 sed 's/^/| /' conftest.$ac_ext >&5
14543
14544 ( exit $ac_status )
14545 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14546 See \`config.log' for more details." >&5
14547 echo "$as_me: error: cannot compute sizeof (int), 77
14548 See \`config.log' for more details." >&2;}
14549    { (exit 1); exit 1; }; }
14550 fi
14551 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14552 fi
14553 fi
14554 rm -f conftest.val
14555 else
14556   ac_cv_sizeof_int=0
14557 fi
14558 fi
14559 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14560 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14561 cat >>confdefs.h <<_ACEOF
14562 #define SIZEOF_INT $ac_cv_sizeof_int
14563 _ACEOF
14564
14565
14566 echo "$as_me:$LINENO: checking for long" >&5
14567 echo $ECHO_N "checking for long... $ECHO_C" >&6
14568 if test "${ac_cv_type_long+set}" = set; then
14569   echo $ECHO_N "(cached) $ECHO_C" >&6
14570 else
14571   cat >conftest.$ac_ext <<_ACEOF
14572 #line $LINENO "configure"
14573 /* confdefs.h.  */
14574 _ACEOF
14575 cat confdefs.h >>conftest.$ac_ext
14576 cat >>conftest.$ac_ext <<_ACEOF
14577 /* end confdefs.h.  */
14578 $ac_includes_default
14579 int
14580 main ()
14581 {
14582 if ((long *) 0)
14583   return 0;
14584 if (sizeof (long))
14585   return 0;
14586   ;
14587   return 0;
14588 }
14589 _ACEOF
14590 rm -f conftest.$ac_objext
14591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14592   (eval $ac_compile) 2>&5
14593   ac_status=$?
14594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595   (exit $ac_status); } &&
14596          { ac_try='test -s conftest.$ac_objext'
14597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598   (eval $ac_try) 2>&5
14599   ac_status=$?
14600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601   (exit $ac_status); }; }; then
14602   ac_cv_type_long=yes
14603 else
14604   echo "$as_me: failed program was:" >&5
14605 sed 's/^/| /' conftest.$ac_ext >&5
14606
14607 ac_cv_type_long=no
14608 fi
14609 rm -f conftest.$ac_objext conftest.$ac_ext
14610 fi
14611 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14612 echo "${ECHO_T}$ac_cv_type_long" >&6
14613
14614 echo "$as_me:$LINENO: checking size of long" >&5
14615 echo $ECHO_N "checking size of long... $ECHO_C" >&6
14616 if test "${ac_cv_sizeof_long+set}" = set; then
14617   echo $ECHO_N "(cached) $ECHO_C" >&6
14618 else
14619   if test "$ac_cv_type_long" = yes; then
14620   # The cast to unsigned long works around a bug in the HP C Compiler
14621   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14622   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14623   # This bug is HP SR number 8606223364.
14624   if test "$cross_compiling" = yes; then
14625   # Depending upon the size, compute the lo and hi bounds.
14626 cat >conftest.$ac_ext <<_ACEOF
14627 #line $LINENO "configure"
14628 /* confdefs.h.  */
14629 _ACEOF
14630 cat confdefs.h >>conftest.$ac_ext
14631 cat >>conftest.$ac_ext <<_ACEOF
14632 /* end confdefs.h.  */
14633 $ac_includes_default
14634 int
14635 main ()
14636 {
14637 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14638 test_array [0] = 0
14639
14640   ;
14641   return 0;
14642 }
14643 _ACEOF
14644 rm -f conftest.$ac_objext
14645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14646   (eval $ac_compile) 2>&5
14647   ac_status=$?
14648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649   (exit $ac_status); } &&
14650          { ac_try='test -s conftest.$ac_objext'
14651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14652   (eval $ac_try) 2>&5
14653   ac_status=$?
14654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655   (exit $ac_status); }; }; then
14656   ac_lo=0 ac_mid=0
14657   while :; do
14658     cat >conftest.$ac_ext <<_ACEOF
14659 #line $LINENO "configure"
14660 /* confdefs.h.  */
14661 _ACEOF
14662 cat confdefs.h >>conftest.$ac_ext
14663 cat >>conftest.$ac_ext <<_ACEOF
14664 /* end confdefs.h.  */
14665 $ac_includes_default
14666 int
14667 main ()
14668 {
14669 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14670 test_array [0] = 0
14671
14672   ;
14673   return 0;
14674 }
14675 _ACEOF
14676 rm -f conftest.$ac_objext
14677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14678   (eval $ac_compile) 2>&5
14679   ac_status=$?
14680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681   (exit $ac_status); } &&
14682          { ac_try='test -s conftest.$ac_objext'
14683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14684   (eval $ac_try) 2>&5
14685   ac_status=$?
14686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687   (exit $ac_status); }; }; then
14688   ac_hi=$ac_mid; break
14689 else
14690   echo "$as_me: failed program was:" >&5
14691 sed 's/^/| /' conftest.$ac_ext >&5
14692
14693 ac_lo=`expr $ac_mid + 1`
14694                     if test $ac_lo -le $ac_mid; then
14695                       ac_lo= ac_hi=
14696                       break
14697                     fi
14698                     ac_mid=`expr 2 '*' $ac_mid + 1`
14699 fi
14700 rm -f conftest.$ac_objext conftest.$ac_ext
14701   done
14702 else
14703   echo "$as_me: failed program was:" >&5
14704 sed 's/^/| /' conftest.$ac_ext >&5
14705
14706 cat >conftest.$ac_ext <<_ACEOF
14707 #line $LINENO "configure"
14708 /* confdefs.h.  */
14709 _ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h.  */
14713 $ac_includes_default
14714 int
14715 main ()
14716 {
14717 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14718 test_array [0] = 0
14719
14720   ;
14721   return 0;
14722 }
14723 _ACEOF
14724 rm -f conftest.$ac_objext
14725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14726   (eval $ac_compile) 2>&5
14727   ac_status=$?
14728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729   (exit $ac_status); } &&
14730          { ac_try='test -s conftest.$ac_objext'
14731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732   (eval $ac_try) 2>&5
14733   ac_status=$?
14734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735   (exit $ac_status); }; }; then
14736   ac_hi=-1 ac_mid=-1
14737   while :; do
14738     cat >conftest.$ac_ext <<_ACEOF
14739 #line $LINENO "configure"
14740 /* confdefs.h.  */
14741 _ACEOF
14742 cat confdefs.h >>conftest.$ac_ext
14743 cat >>conftest.$ac_ext <<_ACEOF
14744 /* end confdefs.h.  */
14745 $ac_includes_default
14746 int
14747 main ()
14748 {
14749 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14750 test_array [0] = 0
14751
14752   ;
14753   return 0;
14754 }
14755 _ACEOF
14756 rm -f conftest.$ac_objext
14757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14758   (eval $ac_compile) 2>&5
14759   ac_status=$?
14760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761   (exit $ac_status); } &&
14762          { ac_try='test -s conftest.$ac_objext'
14763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14764   (eval $ac_try) 2>&5
14765   ac_status=$?
14766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767   (exit $ac_status); }; }; then
14768   ac_lo=$ac_mid; break
14769 else
14770   echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14772
14773 ac_hi=`expr '(' $ac_mid ')' - 1`
14774                        if test $ac_mid -le $ac_hi; then
14775                          ac_lo= ac_hi=
14776                          break
14777                        fi
14778                        ac_mid=`expr 2 '*' $ac_mid`
14779 fi
14780 rm -f conftest.$ac_objext conftest.$ac_ext
14781   done
14782 else
14783   echo "$as_me: failed program was:" >&5
14784 sed 's/^/| /' conftest.$ac_ext >&5
14785
14786 ac_lo= ac_hi=
14787 fi
14788 rm -f conftest.$ac_objext conftest.$ac_ext
14789 fi
14790 rm -f conftest.$ac_objext conftest.$ac_ext
14791 # Binary search between lo and hi bounds.
14792 while test "x$ac_lo" != "x$ac_hi"; do
14793   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14794   cat >conftest.$ac_ext <<_ACEOF
14795 #line $LINENO "configure"
14796 /* confdefs.h.  */
14797 _ACEOF
14798 cat confdefs.h >>conftest.$ac_ext
14799 cat >>conftest.$ac_ext <<_ACEOF
14800 /* end confdefs.h.  */
14801 $ac_includes_default
14802 int
14803 main ()
14804 {
14805 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14806 test_array [0] = 0
14807
14808   ;
14809   return 0;
14810 }
14811 _ACEOF
14812 rm -f conftest.$ac_objext
14813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14814   (eval $ac_compile) 2>&5
14815   ac_status=$?
14816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817   (exit $ac_status); } &&
14818          { ac_try='test -s conftest.$ac_objext'
14819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14820   (eval $ac_try) 2>&5
14821   ac_status=$?
14822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823   (exit $ac_status); }; }; then
14824   ac_hi=$ac_mid
14825 else
14826   echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14828
14829 ac_lo=`expr '(' $ac_mid ')' + 1`
14830 fi
14831 rm -f conftest.$ac_objext conftest.$ac_ext
14832 done
14833 case $ac_lo in
14834 ?*) ac_cv_sizeof_long=$ac_lo;;
14835 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14836 See \`config.log' for more details." >&5
14837 echo "$as_me: error: cannot compute sizeof (long), 77
14838 See \`config.log' for more details." >&2;}
14839    { (exit 1); exit 1; }; } ;;
14840 esac
14841 else
14842   if test "$cross_compiling" = yes; then
14843   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14844 See \`config.log' for more details." >&5
14845 echo "$as_me: error: cannot run test program while cross compiling
14846 See \`config.log' for more details." >&2;}
14847    { (exit 1); exit 1; }; }
14848 else
14849   cat >conftest.$ac_ext <<_ACEOF
14850 #line $LINENO "configure"
14851 /* confdefs.h.  */
14852 _ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h.  */
14856 $ac_includes_default
14857 long longval () { return (long) (sizeof (long)); }
14858 unsigned long ulongval () { return (long) (sizeof (long)); }
14859 #include <stdio.h>
14860 #include <stdlib.h>
14861 int
14862 main ()
14863 {
14864
14865   FILE *f = fopen ("conftest.val", "w");
14866   if (! f)
14867     exit (1);
14868   if (((long) (sizeof (long))) < 0)
14869     {
14870       long i = longval ();
14871       if (i != ((long) (sizeof (long))))
14872         exit (1);
14873       fprintf (f, "%ld\n", i);
14874     }
14875   else
14876     {
14877       unsigned long i = ulongval ();
14878       if (i != ((long) (sizeof (long))))
14879         exit (1);
14880       fprintf (f, "%lu\n", i);
14881     }
14882   exit (ferror (f) || fclose (f) != 0);
14883
14884   ;
14885   return 0;
14886 }
14887 _ACEOF
14888 rm -f conftest$ac_exeext
14889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14890   (eval $ac_link) 2>&5
14891   ac_status=$?
14892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14895   (eval $ac_try) 2>&5
14896   ac_status=$?
14897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898   (exit $ac_status); }; }; then
14899   ac_cv_sizeof_long=`cat conftest.val`
14900 else
14901   echo "$as_me: program exited with status $ac_status" >&5
14902 echo "$as_me: failed program was:" >&5
14903 sed 's/^/| /' conftest.$ac_ext >&5
14904
14905 ( exit $ac_status )
14906 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14907 See \`config.log' for more details." >&5
14908 echo "$as_me: error: cannot compute sizeof (long), 77
14909 See \`config.log' for more details." >&2;}
14910    { (exit 1); exit 1; }; }
14911 fi
14912 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14913 fi
14914 fi
14915 rm -f conftest.val
14916 else
14917   ac_cv_sizeof_long=0
14918 fi
14919 fi
14920 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14921 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
14922 cat >>confdefs.h <<_ACEOF
14923 #define SIZEOF_LONG $ac_cv_sizeof_long
14924 _ACEOF
14925
14926
14927
14928 echo "$as_me:$LINENO: checking for s_char" >&5
14929 echo $ECHO_N "checking for s_char... $ECHO_C" >&6
14930 if test "${ac_cv_type_s_char+set}" = set; then
14931   echo $ECHO_N "(cached) $ECHO_C" >&6
14932 else
14933   cat >conftest.$ac_ext <<_ACEOF
14934 #line $LINENO "configure"
14935 /* confdefs.h.  */
14936 _ACEOF
14937 cat confdefs.h >>conftest.$ac_ext
14938 cat >>conftest.$ac_ext <<_ACEOF
14939 /* end confdefs.h.  */
14940 $ac_includes_default
14941 int
14942 main ()
14943 {
14944 if ((s_char *) 0)
14945   return 0;
14946 if (sizeof (s_char))
14947   return 0;
14948   ;
14949   return 0;
14950 }
14951 _ACEOF
14952 rm -f conftest.$ac_objext
14953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14954   (eval $ac_compile) 2>&5
14955   ac_status=$?
14956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957   (exit $ac_status); } &&
14958          { ac_try='test -s conftest.$ac_objext'
14959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14960   (eval $ac_try) 2>&5
14961   ac_status=$?
14962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963   (exit $ac_status); }; }; then
14964   ac_cv_type_s_char=yes
14965 else
14966   echo "$as_me: failed program was:" >&5
14967 sed 's/^/| /' conftest.$ac_ext >&5
14968
14969 ac_cv_type_s_char=no
14970 fi
14971 rm -f conftest.$ac_objext conftest.$ac_ext
14972 fi
14973 echo "$as_me:$LINENO: result: $ac_cv_type_s_char" >&5
14974 echo "${ECHO_T}$ac_cv_type_s_char" >&6
14975 if test $ac_cv_type_s_char = yes; then
14976
14977 cat >>confdefs.h <<_ACEOF
14978 #define HAVE_S_CHAR 1
14979 _ACEOF
14980
14981
14982 fi
14983
14984 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
14985  *yes)
14986     # We have a typedef for s_char.  Might as well believe it...
14987     ;;
14988  no0no)
14989     # We have signed chars, can't say 'signed char', no s_char typedef.
14990
14991 cat >>confdefs.h <<\_ACEOF
14992 #define NEED_S_CHAR_TYPEDEF 1
14993 _ACEOF
14994
14995     ;;
14996  no1no)
14997     # We have signed chars, can say 'signed char', no s_char typedef.
14998     cat >>confdefs.h <<\_ACEOF
14999 #define NEED_S_CHAR_TYPEDEF 1
15000 _ACEOF
15001
15002     ;;
15003  yes0no)
15004     # We have unsigned chars, can't say 'signed char', no s_char typedef.
15005     { { echo "$as_me:$LINENO: error: No way to specify a signed character!" >&5
15006 echo "$as_me: error: No way to specify a signed character!" >&2;}
15007    { (exit 1); exit 1; }; }
15008     ;;
15009  yes1no)
15010     # We have unsigned chars, can say 'signed char', no s_char typedef.
15011     cat >>confdefs.h <<\_ACEOF
15012 #define NEED_S_CHAR_TYPEDEF 1
15013 _ACEOF
15014
15015     ;;
15016 esac
15017 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
15018 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
15019 if test "${ac_cv_type_uid_t+set}" = set; then
15020   echo $ECHO_N "(cached) $ECHO_C" >&6
15021 else
15022   cat >conftest.$ac_ext <<_ACEOF
15023 #line $LINENO "configure"
15024 /* confdefs.h.  */
15025 _ACEOF
15026 cat confdefs.h >>conftest.$ac_ext
15027 cat >>conftest.$ac_ext <<_ACEOF
15028 /* end confdefs.h.  */
15029 #include <sys/types.h>
15030
15031 _ACEOF
15032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15033   $EGREP "uid_t" >/dev/null 2>&1; then
15034   ac_cv_type_uid_t=yes
15035 else
15036   ac_cv_type_uid_t=no
15037 fi
15038 rm -f conftest*
15039
15040 fi
15041 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
15042 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
15043 if test $ac_cv_type_uid_t = no; then
15044
15045 cat >>confdefs.h <<\_ACEOF
15046 #define uid_t int
15047 _ACEOF
15048
15049
15050 cat >>confdefs.h <<\_ACEOF
15051 #define gid_t int
15052 _ACEOF
15053
15054 fi
15055
15056
15057 case "$host" in
15058  *-*-linux*)
15059
15060
15061 for ac_func in __adjtimex __ntp_gettime
15062 do
15063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15064 echo "$as_me:$LINENO: checking for $ac_func" >&5
15065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15066 if eval "test \"\${$as_ac_var+set}\" = set"; then
15067   echo $ECHO_N "(cached) $ECHO_C" >&6
15068 else
15069   cat >conftest.$ac_ext <<_ACEOF
15070 #line $LINENO "configure"
15071 /* confdefs.h.  */
15072 _ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h.  */
15076 /* System header to define __stub macros and hopefully few prototypes,
15077     which can conflict with char $ac_func (); below.
15078     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15079     <limits.h> exists even on freestanding compilers.  */
15080 #ifdef __STDC__
15081 # include <limits.h>
15082 #else
15083 # include <assert.h>
15084 #endif
15085 /* Override any gcc2 internal prototype to avoid an error.  */
15086 #ifdef __cplusplus
15087 extern "C"
15088 {
15089 #endif
15090 /* We use char because int might match the return type of a gcc2
15091    builtin and then its argument prototype would still apply.  */
15092 char $ac_func ();
15093 /* The GNU C library defines this for functions which it implements
15094     to always fail with ENOSYS.  Some functions are actually named
15095     something starting with __ and the normal name is an alias.  */
15096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15097 choke me
15098 #else
15099 char (*f) () = $ac_func;
15100 #endif
15101 #ifdef __cplusplus
15102 }
15103 #endif
15104
15105 int
15106 main ()
15107 {
15108 return f != $ac_func;
15109   ;
15110   return 0;
15111 }
15112 _ACEOF
15113 rm -f conftest.$ac_objext conftest$ac_exeext
15114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15115   (eval $ac_link) 2>&5
15116   ac_status=$?
15117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118   (exit $ac_status); } &&
15119          { ac_try='test -s conftest$ac_exeext'
15120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121   (eval $ac_try) 2>&5
15122   ac_status=$?
15123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124   (exit $ac_status); }; }; then
15125   eval "$as_ac_var=yes"
15126 else
15127   echo "$as_me: failed program was:" >&5
15128 sed 's/^/| /' conftest.$ac_ext >&5
15129
15130 eval "$as_ac_var=no"
15131 fi
15132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15133 fi
15134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15135 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15136 if test `eval echo '${'$as_ac_var'}'` = yes; then
15137   cat >>confdefs.h <<_ACEOF
15138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15139 _ACEOF
15140
15141 fi
15142 done
15143
15144     ;;
15145 esac
15146 case "$host" in
15147  *-*-aix[45]*)
15148         # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
15149         # (returning ENOSYS).  I didn't check 4.2.  If, in the future,
15150         # IBM pulls its thumbs out long enough to implement clock_settime,
15151         # this conditional will need to change.  Maybe use AC_TRY_RUN
15152         # instead to try to set the time to itself and check errno.
15153     ;;
15154  *)
15155
15156 for ac_func in clock_gettime clock_settime
15157 do
15158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15159 echo "$as_me:$LINENO: checking for $ac_func" >&5
15160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15161 if eval "test \"\${$as_ac_var+set}\" = set"; then
15162   echo $ECHO_N "(cached) $ECHO_C" >&6
15163 else
15164   cat >conftest.$ac_ext <<_ACEOF
15165 #line $LINENO "configure"
15166 /* confdefs.h.  */
15167 _ACEOF
15168 cat confdefs.h >>conftest.$ac_ext
15169 cat >>conftest.$ac_ext <<_ACEOF
15170 /* end confdefs.h.  */
15171 /* System header to define __stub macros and hopefully few prototypes,
15172     which can conflict with char $ac_func (); below.
15173     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15174     <limits.h> exists even on freestanding compilers.  */
15175 #ifdef __STDC__
15176 # include <limits.h>
15177 #else
15178 # include <assert.h>
15179 #endif
15180 /* Override any gcc2 internal prototype to avoid an error.  */
15181 #ifdef __cplusplus
15182 extern "C"
15183 {
15184 #endif
15185 /* We use char because int might match the return type of a gcc2
15186    builtin and then its argument prototype would still apply.  */
15187 char $ac_func ();
15188 /* The GNU C library defines this for functions which it implements
15189     to always fail with ENOSYS.  Some functions are actually named
15190     something starting with __ and the normal name is an alias.  */
15191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15192 choke me
15193 #else
15194 char (*f) () = $ac_func;
15195 #endif
15196 #ifdef __cplusplus
15197 }
15198 #endif
15199
15200 int
15201 main ()
15202 {
15203 return f != $ac_func;
15204   ;
15205   return 0;
15206 }
15207 _ACEOF
15208 rm -f conftest.$ac_objext conftest$ac_exeext
15209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15210   (eval $ac_link) 2>&5
15211   ac_status=$?
15212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213   (exit $ac_status); } &&
15214          { ac_try='test -s conftest$ac_exeext'
15215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15216   (eval $ac_try) 2>&5
15217   ac_status=$?
15218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219   (exit $ac_status); }; }; then
15220   eval "$as_ac_var=yes"
15221 else
15222   echo "$as_me: failed program was:" >&5
15223 sed 's/^/| /' conftest.$ac_ext >&5
15224
15225 eval "$as_ac_var=no"
15226 fi
15227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15228 fi
15229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15230 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15231 if test `eval echo '${'$as_ac_var'}'` = yes; then
15232   cat >>confdefs.h <<_ACEOF
15233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15234 _ACEOF
15235
15236 fi
15237 done
15238
15239     ;;
15240 esac
15241
15242 for ac_func in daemon
15243 do
15244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15245 echo "$as_me:$LINENO: checking for $ac_func" >&5
15246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15247 if eval "test \"\${$as_ac_var+set}\" = set"; then
15248   echo $ECHO_N "(cached) $ECHO_C" >&6
15249 else
15250   cat >conftest.$ac_ext <<_ACEOF
15251 #line $LINENO "configure"
15252 /* confdefs.h.  */
15253 _ACEOF
15254 cat confdefs.h >>conftest.$ac_ext
15255 cat >>conftest.$ac_ext <<_ACEOF
15256 /* end confdefs.h.  */
15257 /* System header to define __stub macros and hopefully few prototypes,
15258     which can conflict with char $ac_func (); below.
15259     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15260     <limits.h> exists even on freestanding compilers.  */
15261 #ifdef __STDC__
15262 # include <limits.h>
15263 #else
15264 # include <assert.h>
15265 #endif
15266 /* Override any gcc2 internal prototype to avoid an error.  */
15267 #ifdef __cplusplus
15268 extern "C"
15269 {
15270 #endif
15271 /* We use char because int might match the return type of a gcc2
15272    builtin and then its argument prototype would still apply.  */
15273 char $ac_func ();
15274 /* The GNU C library defines this for functions which it implements
15275     to always fail with ENOSYS.  Some functions are actually named
15276     something starting with __ and the normal name is an alias.  */
15277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15278 choke me
15279 #else
15280 char (*f) () = $ac_func;
15281 #endif
15282 #ifdef __cplusplus
15283 }
15284 #endif
15285
15286 int
15287 main ()
15288 {
15289 return f != $ac_func;
15290   ;
15291   return 0;
15292 }
15293 _ACEOF
15294 rm -f conftest.$ac_objext conftest$ac_exeext
15295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15296   (eval $ac_link) 2>&5
15297   ac_status=$?
15298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299   (exit $ac_status); } &&
15300          { ac_try='test -s conftest$ac_exeext'
15301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302   (eval $ac_try) 2>&5
15303   ac_status=$?
15304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305   (exit $ac_status); }; }; then
15306   eval "$as_ac_var=yes"
15307 else
15308   echo "$as_me: failed program was:" >&5
15309 sed 's/^/| /' conftest.$ac_ext >&5
15310
15311 eval "$as_ac_var=no"
15312 fi
15313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15314 fi
15315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15317 if test `eval echo '${'$as_ac_var'}'` = yes; then
15318   cat >>confdefs.h <<_ACEOF
15319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15320 _ACEOF
15321
15322 fi
15323 done
15324
15325
15326 for ac_func in finite
15327 do
15328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15329 echo "$as_me:$LINENO: checking for $ac_func" >&5
15330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15331 if eval "test \"\${$as_ac_var+set}\" = set"; then
15332   echo $ECHO_N "(cached) $ECHO_C" >&6
15333 else
15334   cat >conftest.$ac_ext <<_ACEOF
15335 #line $LINENO "configure"
15336 /* confdefs.h.  */
15337 _ACEOF
15338 cat confdefs.h >>conftest.$ac_ext
15339 cat >>conftest.$ac_ext <<_ACEOF
15340 /* end confdefs.h.  */
15341 /* System header to define __stub macros and hopefully few prototypes,
15342     which can conflict with char $ac_func (); below.
15343     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15344     <limits.h> exists even on freestanding compilers.  */
15345 #ifdef __STDC__
15346 # include <limits.h>
15347 #else
15348 # include <assert.h>
15349 #endif
15350 /* Override any gcc2 internal prototype to avoid an error.  */
15351 #ifdef __cplusplus
15352 extern "C"
15353 {
15354 #endif
15355 /* We use char because int might match the return type of a gcc2
15356    builtin and then its argument prototype would still apply.  */
15357 char $ac_func ();
15358 /* The GNU C library defines this for functions which it implements
15359     to always fail with ENOSYS.  Some functions are actually named
15360     something starting with __ and the normal name is an alias.  */
15361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15362 choke me
15363 #else
15364 char (*f) () = $ac_func;
15365 #endif
15366 #ifdef __cplusplus
15367 }
15368 #endif
15369
15370 int
15371 main ()
15372 {
15373 return f != $ac_func;
15374   ;
15375   return 0;
15376 }
15377 _ACEOF
15378 rm -f conftest.$ac_objext conftest$ac_exeext
15379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15380   (eval $ac_link) 2>&5
15381   ac_status=$?
15382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383   (exit $ac_status); } &&
15384          { ac_try='test -s conftest$ac_exeext'
15385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15386   (eval $ac_try) 2>&5
15387   ac_status=$?
15388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389   (exit $ac_status); }; }; then
15390   eval "$as_ac_var=yes"
15391 else
15392   echo "$as_me: failed program was:" >&5
15393 sed 's/^/| /' conftest.$ac_ext >&5
15394
15395 eval "$as_ac_var=no"
15396 fi
15397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15398 fi
15399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15400 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15401 if test `eval echo '${'$as_ac_var'}'` = yes; then
15402   cat >>confdefs.h <<_ACEOF
15403 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15404 _ACEOF
15405
15406 else
15407
15408 for ac_func in isfinite
15409 do
15410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15411 echo "$as_me:$LINENO: checking for $ac_func" >&5
15412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15413 if eval "test \"\${$as_ac_var+set}\" = set"; then
15414   echo $ECHO_N "(cached) $ECHO_C" >&6
15415 else
15416   cat >conftest.$ac_ext <<_ACEOF
15417 #line $LINENO "configure"
15418 /* confdefs.h.  */
15419 _ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h.  */
15423 /* System header to define __stub macros and hopefully few prototypes,
15424     which can conflict with char $ac_func (); below.
15425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15426     <limits.h> exists even on freestanding compilers.  */
15427 #ifdef __STDC__
15428 # include <limits.h>
15429 #else
15430 # include <assert.h>
15431 #endif
15432 /* Override any gcc2 internal prototype to avoid an error.  */
15433 #ifdef __cplusplus
15434 extern "C"
15435 {
15436 #endif
15437 /* We use char because int might match the return type of a gcc2
15438    builtin and then its argument prototype would still apply.  */
15439 char $ac_func ();
15440 /* The GNU C library defines this for functions which it implements
15441     to always fail with ENOSYS.  Some functions are actually named
15442     something starting with __ and the normal name is an alias.  */
15443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15444 choke me
15445 #else
15446 char (*f) () = $ac_func;
15447 #endif
15448 #ifdef __cplusplus
15449 }
15450 #endif
15451
15452 int
15453 main ()
15454 {
15455 return f != $ac_func;
15456   ;
15457   return 0;
15458 }
15459 _ACEOF
15460 rm -f conftest.$ac_objext conftest$ac_exeext
15461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15462   (eval $ac_link) 2>&5
15463   ac_status=$?
15464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465   (exit $ac_status); } &&
15466          { ac_try='test -s conftest$ac_exeext'
15467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468   (eval $ac_try) 2>&5
15469   ac_status=$?
15470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471   (exit $ac_status); }; }; then
15472   eval "$as_ac_var=yes"
15473 else
15474   echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15476
15477 eval "$as_ac_var=no"
15478 fi
15479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15480 fi
15481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15483 if test `eval echo '${'$as_ac_var'}'` = yes; then
15484   cat >>confdefs.h <<_ACEOF
15485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15486 _ACEOF
15487
15488 else
15489   echo "$as_me:$LINENO: checking for isfinite with <math.h>" >&5
15490 echo $ECHO_N "checking for isfinite with <math.h>... $ECHO_C" >&6
15491     _libs=$LIBS
15492     LIBS="$LIBS -lm"
15493     cat >conftest.$ac_ext <<_ACEOF
15494 #line $LINENO "configure"
15495 /* confdefs.h.  */
15496 _ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h.  */
15500 #include <math.h>
15501 int
15502 main ()
15503 {
15504 float f = 0.0; isfinite(f)
15505   ;
15506   return 0;
15507 }
15508 _ACEOF
15509 rm -f conftest.$ac_objext conftest$ac_exeext
15510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15511   (eval $ac_link) 2>&5
15512   ac_status=$?
15513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514   (exit $ac_status); } &&
15515          { ac_try='test -s conftest$ac_exeext'
15516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517   (eval $ac_try) 2>&5
15518   ac_status=$?
15519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520   (exit $ac_status); }; }; then
15521   echo "$as_me:$LINENO: result: yes" >&5
15522 echo "${ECHO_T}yes" >&6
15523       cat >>confdefs.h <<\_ACEOF
15524 #define HAVE_ISFINITE 1
15525 _ACEOF
15526
15527 else
15528   echo "$as_me: failed program was:" >&5
15529 sed 's/^/| /' conftest.$ac_ext >&5
15530
15531 echo "$as_me:$LINENO: result: no" >&5
15532 echo "${ECHO_T}no" >&6
15533 fi
15534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15535     LIBS=$_libs
15536 fi
15537 done
15538
15539 fi
15540 done
15541
15542
15543
15544
15545
15546 for ac_func in getbootfile getclock getdtablesize getrusage
15547 do
15548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15549 echo "$as_me:$LINENO: checking for $ac_func" >&5
15550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15551 if eval "test \"\${$as_ac_var+set}\" = set"; then
15552   echo $ECHO_N "(cached) $ECHO_C" >&6
15553 else
15554   cat >conftest.$ac_ext <<_ACEOF
15555 #line $LINENO "configure"
15556 /* confdefs.h.  */
15557 _ACEOF
15558 cat confdefs.h >>conftest.$ac_ext
15559 cat >>conftest.$ac_ext <<_ACEOF
15560 /* end confdefs.h.  */
15561 /* System header to define __stub macros and hopefully few prototypes,
15562     which can conflict with char $ac_func (); below.
15563     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15564     <limits.h> exists even on freestanding compilers.  */
15565 #ifdef __STDC__
15566 # include <limits.h>
15567 #else
15568 # include <assert.h>
15569 #endif
15570 /* Override any gcc2 internal prototype to avoid an error.  */
15571 #ifdef __cplusplus
15572 extern "C"
15573 {
15574 #endif
15575 /* We use char because int might match the return type of a gcc2
15576    builtin and then its argument prototype would still apply.  */
15577 char $ac_func ();
15578 /* The GNU C library defines this for functions which it implements
15579     to always fail with ENOSYS.  Some functions are actually named
15580     something starting with __ and the normal name is an alias.  */
15581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15582 choke me
15583 #else
15584 char (*f) () = $ac_func;
15585 #endif
15586 #ifdef __cplusplus
15587 }
15588 #endif
15589
15590 int
15591 main ()
15592 {
15593 return f != $ac_func;
15594   ;
15595   return 0;
15596 }
15597 _ACEOF
15598 rm -f conftest.$ac_objext conftest$ac_exeext
15599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15600   (eval $ac_link) 2>&5
15601   ac_status=$?
15602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603   (exit $ac_status); } &&
15604          { ac_try='test -s conftest$ac_exeext'
15605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606   (eval $ac_try) 2>&5
15607   ac_status=$?
15608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609   (exit $ac_status); }; }; then
15610   eval "$as_ac_var=yes"
15611 else
15612   echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.$ac_ext >&5
15614
15615 eval "$as_ac_var=no"
15616 fi
15617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15618 fi
15619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15620 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15621 if test `eval echo '${'$as_ac_var'}'` = yes; then
15622   cat >>confdefs.h <<_ACEOF
15623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15624 _ACEOF
15625
15626 fi
15627 done
15628
15629 echo "$as_me:$LINENO: checking for gettimeofday" >&5
15630 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
15631 if test "${ac_cv_func_gettimeofday+set}" = set; then
15632   echo $ECHO_N "(cached) $ECHO_C" >&6
15633 else
15634   cat >conftest.$ac_ext <<_ACEOF
15635 #line $LINENO "configure"
15636 /* confdefs.h.  */
15637 _ACEOF
15638 cat confdefs.h >>conftest.$ac_ext
15639 cat >>conftest.$ac_ext <<_ACEOF
15640 /* end confdefs.h.  */
15641 /* System header to define __stub macros and hopefully few prototypes,
15642     which can conflict with char gettimeofday (); below.
15643     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15644     <limits.h> exists even on freestanding compilers.  */
15645 #ifdef __STDC__
15646 # include <limits.h>
15647 #else
15648 # include <assert.h>
15649 #endif
15650 /* Override any gcc2 internal prototype to avoid an error.  */
15651 #ifdef __cplusplus
15652 extern "C"
15653 {
15654 #endif
15655 /* We use char because int might match the return type of a gcc2
15656    builtin and then its argument prototype would still apply.  */
15657 char gettimeofday ();
15658 /* The GNU C library defines this for functions which it implements
15659     to always fail with ENOSYS.  Some functions are actually named
15660     something starting with __ and the normal name is an alias.  */
15661 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
15662 choke me
15663 #else
15664 char (*f) () = gettimeofday;
15665 #endif
15666 #ifdef __cplusplus
15667 }
15668 #endif
15669
15670 int
15671 main ()
15672 {
15673 return f != gettimeofday;
15674   ;
15675   return 0;
15676 }
15677 _ACEOF
15678 rm -f conftest.$ac_objext conftest$ac_exeext
15679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15680   (eval $ac_link) 2>&5
15681   ac_status=$?
15682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683   (exit $ac_status); } &&
15684          { ac_try='test -s conftest$ac_exeext'
15685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686   (eval $ac_try) 2>&5
15687   ac_status=$?
15688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689   (exit $ac_status); }; }; then
15690   ac_cv_func_gettimeofday=yes
15691 else
15692   echo "$as_me: failed program was:" >&5
15693 sed 's/^/| /' conftest.$ac_ext >&5
15694
15695 ac_cv_func_gettimeofday=no
15696 fi
15697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15698 fi
15699 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
15700 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
15701 if test $ac_cv_func_gettimeofday = yes; then
15702   :
15703 else
15704
15705 case "$host" in
15706   *-*-mpeix*) ac_cv_func_gettimeofday=yes
15707     ;;
15708 esac
15709 fi
15710
15711 case "$host" in
15712  *-pc-cygwin*)
15713     ;;
15714  *)
15715 for ac_func in getuid
15716 do
15717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15718 echo "$as_me:$LINENO: checking for $ac_func" >&5
15719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15720 if eval "test \"\${$as_ac_var+set}\" = set"; then
15721   echo $ECHO_N "(cached) $ECHO_C" >&6
15722 else
15723   cat >conftest.$ac_ext <<_ACEOF
15724 #line $LINENO "configure"
15725 /* confdefs.h.  */
15726 _ACEOF
15727 cat confdefs.h >>conftest.$ac_ext
15728 cat >>conftest.$ac_ext <<_ACEOF
15729 /* end confdefs.h.  */
15730 /* System header to define __stub macros and hopefully few prototypes,
15731     which can conflict with char $ac_func (); below.
15732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15733     <limits.h> exists even on freestanding compilers.  */
15734 #ifdef __STDC__
15735 # include <limits.h>
15736 #else
15737 # include <assert.h>
15738 #endif
15739 /* Override any gcc2 internal prototype to avoid an error.  */
15740 #ifdef __cplusplus
15741 extern "C"
15742 {
15743 #endif
15744 /* We use char because int might match the return type of a gcc2
15745    builtin and then its argument prototype would still apply.  */
15746 char $ac_func ();
15747 /* The GNU C library defines this for functions which it implements
15748     to always fail with ENOSYS.  Some functions are actually named
15749     something starting with __ and the normal name is an alias.  */
15750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15751 choke me
15752 #else
15753 char (*f) () = $ac_func;
15754 #endif
15755 #ifdef __cplusplus
15756 }
15757 #endif
15758
15759 int
15760 main ()
15761 {
15762 return f != $ac_func;
15763   ;
15764   return 0;
15765 }
15766 _ACEOF
15767 rm -f conftest.$ac_objext conftest$ac_exeext
15768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15769   (eval $ac_link) 2>&5
15770   ac_status=$?
15771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772   (exit $ac_status); } &&
15773          { ac_try='test -s conftest$ac_exeext'
15774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775   (eval $ac_try) 2>&5
15776   ac_status=$?
15777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); }; }; then
15779   eval "$as_ac_var=yes"
15780 else
15781   echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15783
15784 eval "$as_ac_var=no"
15785 fi
15786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15787 fi
15788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15790 if test `eval echo '${'$as_ac_var'}'` = yes; then
15791   cat >>confdefs.h <<_ACEOF
15792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15793 _ACEOF
15794
15795 fi
15796 done
15797
15798     ;;
15799 esac
15800
15801 for ac_func in hstrerror
15802 do
15803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15804 echo "$as_me:$LINENO: checking for $ac_func" >&5
15805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15806 if eval "test \"\${$as_ac_var+set}\" = set"; then
15807   echo $ECHO_N "(cached) $ECHO_C" >&6
15808 else
15809   cat >conftest.$ac_ext <<_ACEOF
15810 #line $LINENO "configure"
15811 /* confdefs.h.  */
15812 _ACEOF
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h.  */
15816 /* System header to define __stub macros and hopefully few prototypes,
15817     which can conflict with char $ac_func (); below.
15818     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15819     <limits.h> exists even on freestanding compilers.  */
15820 #ifdef __STDC__
15821 # include <limits.h>
15822 #else
15823 # include <assert.h>
15824 #endif
15825 /* Override any gcc2 internal prototype to avoid an error.  */
15826 #ifdef __cplusplus
15827 extern "C"
15828 {
15829 #endif
15830 /* We use char because int might match the return type of a gcc2
15831    builtin and then its argument prototype would still apply.  */
15832 char $ac_func ();
15833 /* The GNU C library defines this for functions which it implements
15834     to always fail with ENOSYS.  Some functions are actually named
15835     something starting with __ and the normal name is an alias.  */
15836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15837 choke me
15838 #else
15839 char (*f) () = $ac_func;
15840 #endif
15841 #ifdef __cplusplus
15842 }
15843 #endif
15844
15845 int
15846 main ()
15847 {
15848 return f != $ac_func;
15849   ;
15850   return 0;
15851 }
15852 _ACEOF
15853 rm -f conftest.$ac_objext conftest$ac_exeext
15854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15855   (eval $ac_link) 2>&5
15856   ac_status=$?
15857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858   (exit $ac_status); } &&
15859          { ac_try='test -s conftest$ac_exeext'
15860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15861   (eval $ac_try) 2>&5
15862   ac_status=$?
15863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864   (exit $ac_status); }; }; then
15865   eval "$as_ac_var=yes"
15866 else
15867   echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15869
15870 eval "$as_ac_var=no"
15871 fi
15872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15873 fi
15874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15875 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15876 if test `eval echo '${'$as_ac_var'}'` = yes; then
15877   cat >>confdefs.h <<_ACEOF
15878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15879 _ACEOF
15880
15881 fi
15882 done
15883
15884 echo "$as_me:$LINENO: checking for inet_ntop" >&5
15885 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
15886 if test "${ac_cv_func_inet_ntop+set}" = set; then
15887   echo $ECHO_N "(cached) $ECHO_C" >&6
15888 else
15889   cat >conftest.$ac_ext <<_ACEOF
15890 #line $LINENO "configure"
15891 /* confdefs.h.  */
15892 _ACEOF
15893 cat confdefs.h >>conftest.$ac_ext
15894 cat >>conftest.$ac_ext <<_ACEOF
15895 /* end confdefs.h.  */
15896 /* System header to define __stub macros and hopefully few prototypes,
15897     which can conflict with char inet_ntop (); below.
15898     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15899     <limits.h> exists even on freestanding compilers.  */
15900 #ifdef __STDC__
15901 # include <limits.h>
15902 #else
15903 # include <assert.h>
15904 #endif
15905 /* Override any gcc2 internal prototype to avoid an error.  */
15906 #ifdef __cplusplus
15907 extern "C"
15908 {
15909 #endif
15910 /* We use char because int might match the return type of a gcc2
15911    builtin and then its argument prototype would still apply.  */
15912 char inet_ntop ();
15913 /* The GNU C library defines this for functions which it implements
15914     to always fail with ENOSYS.  Some functions are actually named
15915     something starting with __ and the normal name is an alias.  */
15916 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
15917 choke me
15918 #else
15919 char (*f) () = inet_ntop;
15920 #endif
15921 #ifdef __cplusplus
15922 }
15923 #endif
15924
15925 int
15926 main ()
15927 {
15928 return f != inet_ntop;
15929   ;
15930   return 0;
15931 }
15932 _ACEOF
15933 rm -f conftest.$ac_objext conftest$ac_exeext
15934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15935   (eval $ac_link) 2>&5
15936   ac_status=$?
15937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938   (exit $ac_status); } &&
15939          { ac_try='test -s conftest$ac_exeext'
15940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15941   (eval $ac_try) 2>&5
15942   ac_status=$?
15943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944   (exit $ac_status); }; }; then
15945   ac_cv_func_inet_ntop=yes
15946 else
15947   echo "$as_me: failed program was:" >&5
15948 sed 's/^/| /' conftest.$ac_ext >&5
15949
15950 ac_cv_func_inet_ntop=no
15951 fi
15952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15953 fi
15954 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
15955 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
15956 if test $ac_cv_func_inet_ntop = yes; then
15957   :
15958 else
15959
15960 cat >>confdefs.h <<\_ACEOF
15961 #define ISC_PLATFORM_NEEDNTOP 1
15962 _ACEOF
15963
15964 fi
15965
15966
15967
15968
15969
15970
15971 for ac_func in K_open kvm_open memcpy memmove memset
15972 do
15973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15974 echo "$as_me:$LINENO: checking for $ac_func" >&5
15975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15976 if eval "test \"\${$as_ac_var+set}\" = set"; then
15977   echo $ECHO_N "(cached) $ECHO_C" >&6
15978 else
15979   cat >conftest.$ac_ext <<_ACEOF
15980 #line $LINENO "configure"
15981 /* confdefs.h.  */
15982 _ACEOF
15983 cat confdefs.h >>conftest.$ac_ext
15984 cat >>conftest.$ac_ext <<_ACEOF
15985 /* end confdefs.h.  */
15986 /* System header to define __stub macros and hopefully few prototypes,
15987     which can conflict with char $ac_func (); below.
15988     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15989     <limits.h> exists even on freestanding compilers.  */
15990 #ifdef __STDC__
15991 # include <limits.h>
15992 #else
15993 # include <assert.h>
15994 #endif
15995 /* Override any gcc2 internal prototype to avoid an error.  */
15996 #ifdef __cplusplus
15997 extern "C"
15998 {
15999 #endif
16000 /* We use char because int might match the return type of a gcc2
16001    builtin and then its argument prototype would still apply.  */
16002 char $ac_func ();
16003 /* The GNU C library defines this for functions which it implements
16004     to always fail with ENOSYS.  Some functions are actually named
16005     something starting with __ and the normal name is an alias.  */
16006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16007 choke me
16008 #else
16009 char (*f) () = $ac_func;
16010 #endif
16011 #ifdef __cplusplus
16012 }
16013 #endif
16014
16015 int
16016 main ()
16017 {
16018 return f != $ac_func;
16019   ;
16020   return 0;
16021 }
16022 _ACEOF
16023 rm -f conftest.$ac_objext conftest$ac_exeext
16024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16025   (eval $ac_link) 2>&5
16026   ac_status=$?
16027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028   (exit $ac_status); } &&
16029          { ac_try='test -s conftest$ac_exeext'
16030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16031   (eval $ac_try) 2>&5
16032   ac_status=$?
16033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034   (exit $ac_status); }; }; then
16035   eval "$as_ac_var=yes"
16036 else
16037   echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16039
16040 eval "$as_ac_var=no"
16041 fi
16042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16043 fi
16044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16045 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16046 if test `eval echo '${'$as_ac_var'}'` = yes; then
16047   cat >>confdefs.h <<_ACEOF
16048 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16049 _ACEOF
16050
16051 fi
16052 done
16053
16054 case "$host" in
16055  *-*-sco3.2v5.0.*)
16056     # Just stubs.  Idiots.
16057     ;;
16058  *)
16059 for ac_func in mkstemp
16060 do
16061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16062 echo "$as_me:$LINENO: checking for $ac_func" >&5
16063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16064 if eval "test \"\${$as_ac_var+set}\" = set"; then
16065   echo $ECHO_N "(cached) $ECHO_C" >&6
16066 else
16067   cat >conftest.$ac_ext <<_ACEOF
16068 #line $LINENO "configure"
16069 /* confdefs.h.  */
16070 _ACEOF
16071 cat confdefs.h >>conftest.$ac_ext
16072 cat >>conftest.$ac_ext <<_ACEOF
16073 /* end confdefs.h.  */
16074 /* System header to define __stub macros and hopefully few prototypes,
16075     which can conflict with char $ac_func (); below.
16076     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16077     <limits.h> exists even on freestanding compilers.  */
16078 #ifdef __STDC__
16079 # include <limits.h>
16080 #else
16081 # include <assert.h>
16082 #endif
16083 /* Override any gcc2 internal prototype to avoid an error.  */
16084 #ifdef __cplusplus
16085 extern "C"
16086 {
16087 #endif
16088 /* We use char because int might match the return type of a gcc2
16089    builtin and then its argument prototype would still apply.  */
16090 char $ac_func ();
16091 /* The GNU C library defines this for functions which it implements
16092     to always fail with ENOSYS.  Some functions are actually named
16093     something starting with __ and the normal name is an alias.  */
16094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16095 choke me
16096 #else
16097 char (*f) () = $ac_func;
16098 #endif
16099 #ifdef __cplusplus
16100 }
16101 #endif
16102
16103 int
16104 main ()
16105 {
16106 return f != $ac_func;
16107   ;
16108   return 0;
16109 }
16110 _ACEOF
16111 rm -f conftest.$ac_objext conftest$ac_exeext
16112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16113   (eval $ac_link) 2>&5
16114   ac_status=$?
16115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116   (exit $ac_status); } &&
16117          { ac_try='test -s conftest$ac_exeext'
16118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16119   (eval $ac_try) 2>&5
16120   ac_status=$?
16121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122   (exit $ac_status); }; }; then
16123   eval "$as_ac_var=yes"
16124 else
16125   echo "$as_me: failed program was:" >&5
16126 sed 's/^/| /' conftest.$ac_ext >&5
16127
16128 eval "$as_ac_var=no"
16129 fi
16130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16131 fi
16132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16134 if test `eval echo '${'$as_ac_var'}'` = yes; then
16135   cat >>confdefs.h <<_ACEOF
16136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16137 _ACEOF
16138
16139 fi
16140 done
16141
16142     ;;
16143 esac
16144
16145 for ac_func in mktime
16146 do
16147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16148 echo "$as_me:$LINENO: checking for $ac_func" >&5
16149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16150 if eval "test \"\${$as_ac_var+set}\" = set"; then
16151   echo $ECHO_N "(cached) $ECHO_C" >&6
16152 else
16153   cat >conftest.$ac_ext <<_ACEOF
16154 #line $LINENO "configure"
16155 /* confdefs.h.  */
16156 _ACEOF
16157 cat confdefs.h >>conftest.$ac_ext
16158 cat >>conftest.$ac_ext <<_ACEOF
16159 /* end confdefs.h.  */
16160 /* System header to define __stub macros and hopefully few prototypes,
16161     which can conflict with char $ac_func (); below.
16162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16163     <limits.h> exists even on freestanding compilers.  */
16164 #ifdef __STDC__
16165 # include <limits.h>
16166 #else
16167 # include <assert.h>
16168 #endif
16169 /* Override any gcc2 internal prototype to avoid an error.  */
16170 #ifdef __cplusplus
16171 extern "C"
16172 {
16173 #endif
16174 /* We use char because int might match the return type of a gcc2
16175    builtin and then its argument prototype would still apply.  */
16176 char $ac_func ();
16177 /* The GNU C library defines this for functions which it implements
16178     to always fail with ENOSYS.  Some functions are actually named
16179     something starting with __ and the normal name is an alias.  */
16180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16181 choke me
16182 #else
16183 char (*f) () = $ac_func;
16184 #endif
16185 #ifdef __cplusplus
16186 }
16187 #endif
16188
16189 int
16190 main ()
16191 {
16192 return f != $ac_func;
16193   ;
16194   return 0;
16195 }
16196 _ACEOF
16197 rm -f conftest.$ac_objext conftest$ac_exeext
16198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16199   (eval $ac_link) 2>&5
16200   ac_status=$?
16201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202   (exit $ac_status); } &&
16203          { ac_try='test -s conftest$ac_exeext'
16204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205   (eval $ac_try) 2>&5
16206   ac_status=$?
16207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208   (exit $ac_status); }; }; then
16209   eval "$as_ac_var=yes"
16210 else
16211   echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16213
16214 eval "$as_ac_var=no"
16215 fi
16216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16217 fi
16218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16219 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16220 if test `eval echo '${'$as_ac_var'}'` = yes; then
16221   cat >>confdefs.h <<_ACEOF
16222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16223 _ACEOF
16224
16225 fi
16226 done
16227
16228 case "$host" in
16229  *-*-aix[45]*)
16230     # Just a stub.  Idiots.
16231     ;;
16232  *-*-irix[45]*)
16233     # Just a stub in "old" Irix.  Idiots.
16234     ;;
16235  *-*-qnx*)
16236     # Apparently there but not working in QNX.  Idiots?
16237     ;;
16238  *-*-sco3.2v5.0.*)
16239     # Just a stub.  Idiots.
16240     ;;
16241  alpha*-dec-osf4*|alpha*-dec-osf5*)
16242     # mlockall is there, as a #define calling memlk via <sys/mman.h>
16243     # Not easy to test for - cheat.
16244
16245 for ac_func in memlk
16246 do
16247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16248 echo "$as_me:$LINENO: checking for $ac_func" >&5
16249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16250 if eval "test \"\${$as_ac_var+set}\" = set"; then
16251   echo $ECHO_N "(cached) $ECHO_C" >&6
16252 else
16253   cat >conftest.$ac_ext <<_ACEOF
16254 #line $LINENO "configure"
16255 /* confdefs.h.  */
16256 _ACEOF
16257 cat confdefs.h >>conftest.$ac_ext
16258 cat >>conftest.$ac_ext <<_ACEOF
16259 /* end confdefs.h.  */
16260 /* System header to define __stub macros and hopefully few prototypes,
16261     which can conflict with char $ac_func (); below.
16262     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16263     <limits.h> exists even on freestanding compilers.  */
16264 #ifdef __STDC__
16265 # include <limits.h>
16266 #else
16267 # include <assert.h>
16268 #endif
16269 /* Override any gcc2 internal prototype to avoid an error.  */
16270 #ifdef __cplusplus
16271 extern "C"
16272 {
16273 #endif
16274 /* We use char because int might match the return type of a gcc2
16275    builtin and then its argument prototype would still apply.  */
16276 char $ac_func ();
16277 /* The GNU C library defines this for functions which it implements
16278     to always fail with ENOSYS.  Some functions are actually named
16279     something starting with __ and the normal name is an alias.  */
16280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16281 choke me
16282 #else
16283 char (*f) () = $ac_func;
16284 #endif
16285 #ifdef __cplusplus
16286 }
16287 #endif
16288
16289 int
16290 main ()
16291 {
16292 return f != $ac_func;
16293   ;
16294   return 0;
16295 }
16296 _ACEOF
16297 rm -f conftest.$ac_objext conftest$ac_exeext
16298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16299   (eval $ac_link) 2>&5
16300   ac_status=$?
16301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302   (exit $ac_status); } &&
16303          { ac_try='test -s conftest$ac_exeext'
16304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16305   (eval $ac_try) 2>&5
16306   ac_status=$?
16307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308   (exit $ac_status); }; }; then
16309   eval "$as_ac_var=yes"
16310 else
16311   echo "$as_me: failed program was:" >&5
16312 sed 's/^/| /' conftest.$ac_ext >&5
16313
16314 eval "$as_ac_var=no"
16315 fi
16316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16317 fi
16318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16320 if test `eval echo '${'$as_ac_var'}'` = yes; then
16321   cat >>confdefs.h <<_ACEOF
16322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16323 _ACEOF
16324  ac_cv_func_mlockall='yes'
16325 fi
16326 done
16327
16328
16329 for ac_func in mlockall
16330 do
16331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16332 echo "$as_me:$LINENO: checking for $ac_func" >&5
16333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16334 if eval "test \"\${$as_ac_var+set}\" = set"; then
16335   echo $ECHO_N "(cached) $ECHO_C" >&6
16336 else
16337   cat >conftest.$ac_ext <<_ACEOF
16338 #line $LINENO "configure"
16339 /* confdefs.h.  */
16340 _ACEOF
16341 cat confdefs.h >>conftest.$ac_ext
16342 cat >>conftest.$ac_ext <<_ACEOF
16343 /* end confdefs.h.  */
16344 /* System header to define __stub macros and hopefully few prototypes,
16345     which can conflict with char $ac_func (); below.
16346     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16347     <limits.h> exists even on freestanding compilers.  */
16348 #ifdef __STDC__
16349 # include <limits.h>
16350 #else
16351 # include <assert.h>
16352 #endif
16353 /* Override any gcc2 internal prototype to avoid an error.  */
16354 #ifdef __cplusplus
16355 extern "C"
16356 {
16357 #endif
16358 /* We use char because int might match the return type of a gcc2
16359    builtin and then its argument prototype would still apply.  */
16360 char $ac_func ();
16361 /* The GNU C library defines this for functions which it implements
16362     to always fail with ENOSYS.  Some functions are actually named
16363     something starting with __ and the normal name is an alias.  */
16364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16365 choke me
16366 #else
16367 char (*f) () = $ac_func;
16368 #endif
16369 #ifdef __cplusplus
16370 }
16371 #endif
16372
16373 int
16374 main ()
16375 {
16376 return f != $ac_func;
16377   ;
16378   return 0;
16379 }
16380 _ACEOF
16381 rm -f conftest.$ac_objext conftest$ac_exeext
16382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16383   (eval $ac_link) 2>&5
16384   ac_status=$?
16385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386   (exit $ac_status); } &&
16387          { ac_try='test -s conftest$ac_exeext'
16388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16389   (eval $ac_try) 2>&5
16390   ac_status=$?
16391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392   (exit $ac_status); }; }; then
16393   eval "$as_ac_var=yes"
16394 else
16395   echo "$as_me: failed program was:" >&5
16396 sed 's/^/| /' conftest.$ac_ext >&5
16397
16398 eval "$as_ac_var=no"
16399 fi
16400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16401 fi
16402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16403 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16404 if test `eval echo '${'$as_ac_var'}'` = yes; then
16405   cat >>confdefs.h <<_ACEOF
16406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16407 _ACEOF
16408
16409 fi
16410 done
16411
16412     ;;
16413  *)
16414 for ac_func in mlockall
16415 do
16416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16417 echo "$as_me:$LINENO: checking for $ac_func" >&5
16418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16419 if eval "test \"\${$as_ac_var+set}\" = set"; then
16420   echo $ECHO_N "(cached) $ECHO_C" >&6
16421 else
16422   cat >conftest.$ac_ext <<_ACEOF
16423 #line $LINENO "configure"
16424 /* confdefs.h.  */
16425 _ACEOF
16426 cat confdefs.h >>conftest.$ac_ext
16427 cat >>conftest.$ac_ext <<_ACEOF
16428 /* end confdefs.h.  */
16429 /* System header to define __stub macros and hopefully few prototypes,
16430     which can conflict with char $ac_func (); below.
16431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16432     <limits.h> exists even on freestanding compilers.  */
16433 #ifdef __STDC__
16434 # include <limits.h>
16435 #else
16436 # include <assert.h>
16437 #endif
16438 /* Override any gcc2 internal prototype to avoid an error.  */
16439 #ifdef __cplusplus
16440 extern "C"
16441 {
16442 #endif
16443 /* We use char because int might match the return type of a gcc2
16444    builtin and then its argument prototype would still apply.  */
16445 char $ac_func ();
16446 /* The GNU C library defines this for functions which it implements
16447     to always fail with ENOSYS.  Some functions are actually named
16448     something starting with __ and the normal name is an alias.  */
16449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16450 choke me
16451 #else
16452 char (*f) () = $ac_func;
16453 #endif
16454 #ifdef __cplusplus
16455 }
16456 #endif
16457
16458 int
16459 main ()
16460 {
16461 return f != $ac_func;
16462   ;
16463   return 0;
16464 }
16465 _ACEOF
16466 rm -f conftest.$ac_objext conftest$ac_exeext
16467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16468   (eval $ac_link) 2>&5
16469   ac_status=$?
16470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471   (exit $ac_status); } &&
16472          { ac_try='test -s conftest$ac_exeext'
16473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474   (eval $ac_try) 2>&5
16475   ac_status=$?
16476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477   (exit $ac_status); }; }; then
16478   eval "$as_ac_var=yes"
16479 else
16480   echo "$as_me: failed program was:" >&5
16481 sed 's/^/| /' conftest.$ac_ext >&5
16482
16483 eval "$as_ac_var=no"
16484 fi
16485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16486 fi
16487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16488 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16489 if test `eval echo '${'$as_ac_var'}'` = yes; then
16490   cat >>confdefs.h <<_ACEOF
16491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16492 _ACEOF
16493
16494 fi
16495 done
16496
16497     ;;
16498 esac
16499
16500
16501
16502
16503 for ac_func in mrand48 srand48 nice nlist
16504 do
16505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16506 echo "$as_me:$LINENO: checking for $ac_func" >&5
16507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16508 if eval "test \"\${$as_ac_var+set}\" = set"; then
16509   echo $ECHO_N "(cached) $ECHO_C" >&6
16510 else
16511   cat >conftest.$ac_ext <<_ACEOF
16512 #line $LINENO "configure"
16513 /* confdefs.h.  */
16514 _ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h.  */
16518 /* System header to define __stub macros and hopefully few prototypes,
16519     which can conflict with char $ac_func (); below.
16520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16521     <limits.h> exists even on freestanding compilers.  */
16522 #ifdef __STDC__
16523 # include <limits.h>
16524 #else
16525 # include <assert.h>
16526 #endif
16527 /* Override any gcc2 internal prototype to avoid an error.  */
16528 #ifdef __cplusplus
16529 extern "C"
16530 {
16531 #endif
16532 /* We use char because int might match the return type of a gcc2
16533    builtin and then its argument prototype would still apply.  */
16534 char $ac_func ();
16535 /* The GNU C library defines this for functions which it implements
16536     to always fail with ENOSYS.  Some functions are actually named
16537     something starting with __ and the normal name is an alias.  */
16538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16539 choke me
16540 #else
16541 char (*f) () = $ac_func;
16542 #endif
16543 #ifdef __cplusplus
16544 }
16545 #endif
16546
16547 int
16548 main ()
16549 {
16550 return f != $ac_func;
16551   ;
16552   return 0;
16553 }
16554 _ACEOF
16555 rm -f conftest.$ac_objext conftest$ac_exeext
16556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16557   (eval $ac_link) 2>&5
16558   ac_status=$?
16559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560   (exit $ac_status); } &&
16561          { ac_try='test -s conftest$ac_exeext'
16562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563   (eval $ac_try) 2>&5
16564   ac_status=$?
16565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566   (exit $ac_status); }; }; then
16567   eval "$as_ac_var=yes"
16568 else
16569   echo "$as_me: failed program was:" >&5
16570 sed 's/^/| /' conftest.$ac_ext >&5
16571
16572 eval "$as_ac_var=no"
16573 fi
16574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16575 fi
16576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16577 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16578 if test `eval echo '${'$as_ac_var'}'` = yes; then
16579   cat >>confdefs.h <<_ACEOF
16580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16581 _ACEOF
16582
16583 fi
16584 done
16585
16586 case "$host" in
16587  *-*-solaris2.6)
16588     # Broken...
16589     ;;
16590  *)
16591
16592 for ac_func in ntp_adjtime ntp_gettime
16593 do
16594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16595 echo "$as_me:$LINENO: checking for $ac_func" >&5
16596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16597 if eval "test \"\${$as_ac_var+set}\" = set"; then
16598   echo $ECHO_N "(cached) $ECHO_C" >&6
16599 else
16600   cat >conftest.$ac_ext <<_ACEOF
16601 #line $LINENO "configure"
16602 /* confdefs.h.  */
16603 _ACEOF
16604 cat confdefs.h >>conftest.$ac_ext
16605 cat >>conftest.$ac_ext <<_ACEOF
16606 /* end confdefs.h.  */
16607 /* System header to define __stub macros and hopefully few prototypes,
16608     which can conflict with char $ac_func (); below.
16609     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16610     <limits.h> exists even on freestanding compilers.  */
16611 #ifdef __STDC__
16612 # include <limits.h>
16613 #else
16614 # include <assert.h>
16615 #endif
16616 /* Override any gcc2 internal prototype to avoid an error.  */
16617 #ifdef __cplusplus
16618 extern "C"
16619 {
16620 #endif
16621 /* We use char because int might match the return type of a gcc2
16622    builtin and then its argument prototype would still apply.  */
16623 char $ac_func ();
16624 /* The GNU C library defines this for functions which it implements
16625     to always fail with ENOSYS.  Some functions are actually named
16626     something starting with __ and the normal name is an alias.  */
16627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16628 choke me
16629 #else
16630 char (*f) () = $ac_func;
16631 #endif
16632 #ifdef __cplusplus
16633 }
16634 #endif
16635
16636 int
16637 main ()
16638 {
16639 return f != $ac_func;
16640   ;
16641   return 0;
16642 }
16643 _ACEOF
16644 rm -f conftest.$ac_objext conftest$ac_exeext
16645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16646   (eval $ac_link) 2>&5
16647   ac_status=$?
16648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649   (exit $ac_status); } &&
16650          { ac_try='test -s conftest$ac_exeext'
16651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16652   (eval $ac_try) 2>&5
16653   ac_status=$?
16654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655   (exit $ac_status); }; }; then
16656   eval "$as_ac_var=yes"
16657 else
16658   echo "$as_me: failed program was:" >&5
16659 sed 's/^/| /' conftest.$ac_ext >&5
16660
16661 eval "$as_ac_var=no"
16662 fi
16663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16664 fi
16665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16667 if test `eval echo '${'$as_ac_var'}'` = yes; then
16668   cat >>confdefs.h <<_ACEOF
16669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16670 _ACEOF
16671
16672 fi
16673 done
16674
16675     ;;
16676 esac
16677
16678
16679
16680
16681
16682 for ac_func in plock pututline pututxline readlink rtprio
16683 do
16684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16685 echo "$as_me:$LINENO: checking for $ac_func" >&5
16686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16687 if eval "test \"\${$as_ac_var+set}\" = set"; then
16688   echo $ECHO_N "(cached) $ECHO_C" >&6
16689 else
16690   cat >conftest.$ac_ext <<_ACEOF
16691 #line $LINENO "configure"
16692 /* confdefs.h.  */
16693 _ACEOF
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h.  */
16697 /* System header to define __stub macros and hopefully few prototypes,
16698     which can conflict with char $ac_func (); below.
16699     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16700     <limits.h> exists even on freestanding compilers.  */
16701 #ifdef __STDC__
16702 # include <limits.h>
16703 #else
16704 # include <assert.h>
16705 #endif
16706 /* Override any gcc2 internal prototype to avoid an error.  */
16707 #ifdef __cplusplus
16708 extern "C"
16709 {
16710 #endif
16711 /* We use char because int might match the return type of a gcc2
16712    builtin and then its argument prototype would still apply.  */
16713 char $ac_func ();
16714 /* The GNU C library defines this for functions which it implements
16715     to always fail with ENOSYS.  Some functions are actually named
16716     something starting with __ and the normal name is an alias.  */
16717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16718 choke me
16719 #else
16720 char (*f) () = $ac_func;
16721 #endif
16722 #ifdef __cplusplus
16723 }
16724 #endif
16725
16726 int
16727 main ()
16728 {
16729 return f != $ac_func;
16730   ;
16731   return 0;
16732 }
16733 _ACEOF
16734 rm -f conftest.$ac_objext conftest$ac_exeext
16735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16736   (eval $ac_link) 2>&5
16737   ac_status=$?
16738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739   (exit $ac_status); } &&
16740          { ac_try='test -s conftest$ac_exeext'
16741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742   (eval $ac_try) 2>&5
16743   ac_status=$?
16744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745   (exit $ac_status); }; }; then
16746   eval "$as_ac_var=yes"
16747 else
16748   echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16750
16751 eval "$as_ac_var=no"
16752 fi
16753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16754 fi
16755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16756 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16757 if test `eval echo '${'$as_ac_var'}'` = yes; then
16758   cat >>confdefs.h <<_ACEOF
16759 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16760 _ACEOF
16761
16762 fi
16763 done
16764
16765 case "$ac_cv_func_mrand48" in
16766  yes) ;;
16767  *)
16768 for ac_func in random
16769 do
16770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16771 echo "$as_me:$LINENO: checking for $ac_func" >&5
16772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16773 if eval "test \"\${$as_ac_var+set}\" = set"; then
16774   echo $ECHO_N "(cached) $ECHO_C" >&6
16775 else
16776   cat >conftest.$ac_ext <<_ACEOF
16777 #line $LINENO "configure"
16778 /* confdefs.h.  */
16779 _ACEOF
16780 cat confdefs.h >>conftest.$ac_ext
16781 cat >>conftest.$ac_ext <<_ACEOF
16782 /* end confdefs.h.  */
16783 /* System header to define __stub macros and hopefully few prototypes,
16784     which can conflict with char $ac_func (); below.
16785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16786     <limits.h> exists even on freestanding compilers.  */
16787 #ifdef __STDC__
16788 # include <limits.h>
16789 #else
16790 # include <assert.h>
16791 #endif
16792 /* Override any gcc2 internal prototype to avoid an error.  */
16793 #ifdef __cplusplus
16794 extern "C"
16795 {
16796 #endif
16797 /* We use char because int might match the return type of a gcc2
16798    builtin and then its argument prototype would still apply.  */
16799 char $ac_func ();
16800 /* The GNU C library defines this for functions which it implements
16801     to always fail with ENOSYS.  Some functions are actually named
16802     something starting with __ and the normal name is an alias.  */
16803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16804 choke me
16805 #else
16806 char (*f) () = $ac_func;
16807 #endif
16808 #ifdef __cplusplus
16809 }
16810 #endif
16811
16812 int
16813 main ()
16814 {
16815 return f != $ac_func;
16816   ;
16817   return 0;
16818 }
16819 _ACEOF
16820 rm -f conftest.$ac_objext conftest$ac_exeext
16821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16822   (eval $ac_link) 2>&5
16823   ac_status=$?
16824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825   (exit $ac_status); } &&
16826          { ac_try='test -s conftest$ac_exeext'
16827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16828   (eval $ac_try) 2>&5
16829   ac_status=$?
16830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831   (exit $ac_status); }; }; then
16832   eval "$as_ac_var=yes"
16833 else
16834   echo "$as_me: failed program was:" >&5
16835 sed 's/^/| /' conftest.$ac_ext >&5
16836
16837 eval "$as_ac_var=no"
16838 fi
16839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16840 fi
16841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16842 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16843 if test `eval echo '${'$as_ac_var'}'` = yes; then
16844   cat >>confdefs.h <<_ACEOF
16845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16846 _ACEOF
16847
16848 else
16849   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16850 fi
16851 done
16852
16853  ;;
16854 esac
16855 case "$host" in
16856  *-*-aix[45]*)
16857     # Just a stub in AIX 4.  Idiots.
16858     ;;
16859  *-*-solaris2.5*)
16860     # Just stubs in solaris2.5.  Idiots.
16861     ;;
16862  *)
16863 for ac_func in sched_setscheduler
16864 do
16865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16866 echo "$as_me:$LINENO: checking for $ac_func" >&5
16867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16868 if eval "test \"\${$as_ac_var+set}\" = set"; then
16869   echo $ECHO_N "(cached) $ECHO_C" >&6
16870 else
16871   cat >conftest.$ac_ext <<_ACEOF
16872 #line $LINENO "configure"
16873 /* confdefs.h.  */
16874 _ACEOF
16875 cat confdefs.h >>conftest.$ac_ext
16876 cat >>conftest.$ac_ext <<_ACEOF
16877 /* end confdefs.h.  */
16878 /* System header to define __stub macros and hopefully few prototypes,
16879     which can conflict with char $ac_func (); below.
16880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16881     <limits.h> exists even on freestanding compilers.  */
16882 #ifdef __STDC__
16883 # include <limits.h>
16884 #else
16885 # include <assert.h>
16886 #endif
16887 /* Override any gcc2 internal prototype to avoid an error.  */
16888 #ifdef __cplusplus
16889 extern "C"
16890 {
16891 #endif
16892 /* We use char because int might match the return type of a gcc2
16893    builtin and then its argument prototype would still apply.  */
16894 char $ac_func ();
16895 /* The GNU C library defines this for functions which it implements
16896     to always fail with ENOSYS.  Some functions are actually named
16897     something starting with __ and the normal name is an alias.  */
16898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16899 choke me
16900 #else
16901 char (*f) () = $ac_func;
16902 #endif
16903 #ifdef __cplusplus
16904 }
16905 #endif
16906
16907 int
16908 main ()
16909 {
16910 return f != $ac_func;
16911   ;
16912   return 0;
16913 }
16914 _ACEOF
16915 rm -f conftest.$ac_objext conftest$ac_exeext
16916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16917   (eval $ac_link) 2>&5
16918   ac_status=$?
16919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920   (exit $ac_status); } &&
16921          { ac_try='test -s conftest$ac_exeext'
16922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16923   (eval $ac_try) 2>&5
16924   ac_status=$?
16925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926   (exit $ac_status); }; }; then
16927   eval "$as_ac_var=yes"
16928 else
16929   echo "$as_me: failed program was:" >&5
16930 sed 's/^/| /' conftest.$ac_ext >&5
16931
16932 eval "$as_ac_var=no"
16933 fi
16934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16935 fi
16936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16937 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16938 if test `eval echo '${'$as_ac_var'}'` = yes; then
16939   cat >>confdefs.h <<_ACEOF
16940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16941 _ACEOF
16942
16943 fi
16944 done
16945
16946     ;;
16947 esac
16948
16949
16950
16951
16952 for ac_func in setlinebuf setpgid setpriority setsid
16953 do
16954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16955 echo "$as_me:$LINENO: checking for $ac_func" >&5
16956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16957 if eval "test \"\${$as_ac_var+set}\" = set"; then
16958   echo $ECHO_N "(cached) $ECHO_C" >&6
16959 else
16960   cat >conftest.$ac_ext <<_ACEOF
16961 #line $LINENO "configure"
16962 /* confdefs.h.  */
16963 _ACEOF
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h.  */
16967 /* System header to define __stub macros and hopefully few prototypes,
16968     which can conflict with char $ac_func (); below.
16969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16970     <limits.h> exists even on freestanding compilers.  */
16971 #ifdef __STDC__
16972 # include <limits.h>
16973 #else
16974 # include <assert.h>
16975 #endif
16976 /* Override any gcc2 internal prototype to avoid an error.  */
16977 #ifdef __cplusplus
16978 extern "C"
16979 {
16980 #endif
16981 /* We use char because int might match the return type of a gcc2
16982    builtin and then its argument prototype would still apply.  */
16983 char $ac_func ();
16984 /* The GNU C library defines this for functions which it implements
16985     to always fail with ENOSYS.  Some functions are actually named
16986     something starting with __ and the normal name is an alias.  */
16987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16988 choke me
16989 #else
16990 char (*f) () = $ac_func;
16991 #endif
16992 #ifdef __cplusplus
16993 }
16994 #endif
16995
16996 int
16997 main ()
16998 {
16999 return f != $ac_func;
17000   ;
17001   return 0;
17002 }
17003 _ACEOF
17004 rm -f conftest.$ac_objext conftest$ac_exeext
17005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17006   (eval $ac_link) 2>&5
17007   ac_status=$?
17008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009   (exit $ac_status); } &&
17010          { ac_try='test -s conftest$ac_exeext'
17011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17012   (eval $ac_try) 2>&5
17013   ac_status=$?
17014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015   (exit $ac_status); }; }; then
17016   eval "$as_ac_var=yes"
17017 else
17018   echo "$as_me: failed program was:" >&5
17019 sed 's/^/| /' conftest.$ac_ext >&5
17020
17021 eval "$as_ac_var=no"
17022 fi
17023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17024 fi
17025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17027 if test `eval echo '${'$as_ac_var'}'` = yes; then
17028   cat >>confdefs.h <<_ACEOF
17029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17030 _ACEOF
17031
17032 fi
17033 done
17034
17035
17036 for ac_func in setrlimit
17037 do
17038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17039 echo "$as_me:$LINENO: checking for $ac_func" >&5
17040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17041 if eval "test \"\${$as_ac_var+set}\" = set"; then
17042   echo $ECHO_N "(cached) $ECHO_C" >&6
17043 else
17044   cat >conftest.$ac_ext <<_ACEOF
17045 #line $LINENO "configure"
17046 /* confdefs.h.  */
17047 _ACEOF
17048 cat confdefs.h >>conftest.$ac_ext
17049 cat >>conftest.$ac_ext <<_ACEOF
17050 /* end confdefs.h.  */
17051 /* System header to define __stub macros and hopefully few prototypes,
17052     which can conflict with char $ac_func (); below.
17053     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17054     <limits.h> exists even on freestanding compilers.  */
17055 #ifdef __STDC__
17056 # include <limits.h>
17057 #else
17058 # include <assert.h>
17059 #endif
17060 /* Override any gcc2 internal prototype to avoid an error.  */
17061 #ifdef __cplusplus
17062 extern "C"
17063 {
17064 #endif
17065 /* We use char because int might match the return type of a gcc2
17066    builtin and then its argument prototype would still apply.  */
17067 char $ac_func ();
17068 /* The GNU C library defines this for functions which it implements
17069     to always fail with ENOSYS.  Some functions are actually named
17070     something starting with __ and the normal name is an alias.  */
17071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17072 choke me
17073 #else
17074 char (*f) () = $ac_func;
17075 #endif
17076 #ifdef __cplusplus
17077 }
17078 #endif
17079
17080 int
17081 main ()
17082 {
17083 return f != $ac_func;
17084   ;
17085   return 0;
17086 }
17087 _ACEOF
17088 rm -f conftest.$ac_objext conftest$ac_exeext
17089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17090   (eval $ac_link) 2>&5
17091   ac_status=$?
17092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093   (exit $ac_status); } &&
17094          { ac_try='test -s conftest$ac_exeext'
17095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17096   (eval $ac_try) 2>&5
17097   ac_status=$?
17098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099   (exit $ac_status); }; }; then
17100   eval "$as_ac_var=yes"
17101 else
17102   echo "$as_me: failed program was:" >&5
17103 sed 's/^/| /' conftest.$ac_ext >&5
17104
17105 eval "$as_ac_var=no"
17106 fi
17107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17108 fi
17109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17110 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17111 if test `eval echo '${'$as_ac_var'}'` = yes; then
17112   cat >>confdefs.h <<_ACEOF
17113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17114 _ACEOF
17115
17116 fi
17117 done
17118
17119
17120 for ac_func in settimeofday
17121 do
17122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17123 echo "$as_me:$LINENO: checking for $ac_func" >&5
17124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17125 if eval "test \"\${$as_ac_var+set}\" = set"; then
17126   echo $ECHO_N "(cached) $ECHO_C" >&6
17127 else
17128   cat >conftest.$ac_ext <<_ACEOF
17129 #line $LINENO "configure"
17130 /* confdefs.h.  */
17131 _ACEOF
17132 cat confdefs.h >>conftest.$ac_ext
17133 cat >>conftest.$ac_ext <<_ACEOF
17134 /* end confdefs.h.  */
17135 /* System header to define __stub macros and hopefully few prototypes,
17136     which can conflict with char $ac_func (); below.
17137     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17138     <limits.h> exists even on freestanding compilers.  */
17139 #ifdef __STDC__
17140 # include <limits.h>
17141 #else
17142 # include <assert.h>
17143 #endif
17144 /* Override any gcc2 internal prototype to avoid an error.  */
17145 #ifdef __cplusplus
17146 extern "C"
17147 {
17148 #endif
17149 /* We use char because int might match the return type of a gcc2
17150    builtin and then its argument prototype would still apply.  */
17151 char $ac_func ();
17152 /* The GNU C library defines this for functions which it implements
17153     to always fail with ENOSYS.  Some functions are actually named
17154     something starting with __ and the normal name is an alias.  */
17155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17156 choke me
17157 #else
17158 char (*f) () = $ac_func;
17159 #endif
17160 #ifdef __cplusplus
17161 }
17162 #endif
17163
17164 int
17165 main ()
17166 {
17167 return f != $ac_func;
17168   ;
17169   return 0;
17170 }
17171 _ACEOF
17172 rm -f conftest.$ac_objext conftest$ac_exeext
17173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17174   (eval $ac_link) 2>&5
17175   ac_status=$?
17176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177   (exit $ac_status); } &&
17178          { ac_try='test -s conftest$ac_exeext'
17179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17180   (eval $ac_try) 2>&5
17181   ac_status=$?
17182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183   (exit $ac_status); }; }; then
17184   eval "$as_ac_var=yes"
17185 else
17186   echo "$as_me: failed program was:" >&5
17187 sed 's/^/| /' conftest.$ac_ext >&5
17188
17189 eval "$as_ac_var=no"
17190 fi
17191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17192 fi
17193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17195 if test `eval echo '${'$as_ac_var'}'` = yes; then
17196   cat >>confdefs.h <<_ACEOF
17197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17198 _ACEOF
17199
17200 else
17201
17202 case "$host" in
17203   *-*-mpeix*) ac_cv_func_settimeofday=yes
17204     ;;
17205 esac
17206 fi
17207 done
17208
17209
17210
17211 for ac_func in setvbuf sigaction
17212 do
17213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17214 echo "$as_me:$LINENO: checking for $ac_func" >&5
17215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17216 if eval "test \"\${$as_ac_var+set}\" = set"; then
17217   echo $ECHO_N "(cached) $ECHO_C" >&6
17218 else
17219   cat >conftest.$ac_ext <<_ACEOF
17220 #line $LINENO "configure"
17221 /* confdefs.h.  */
17222 _ACEOF
17223 cat confdefs.h >>conftest.$ac_ext
17224 cat >>conftest.$ac_ext <<_ACEOF
17225 /* end confdefs.h.  */
17226 /* System header to define __stub macros and hopefully few prototypes,
17227     which can conflict with char $ac_func (); below.
17228     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17229     <limits.h> exists even on freestanding compilers.  */
17230 #ifdef __STDC__
17231 # include <limits.h>
17232 #else
17233 # include <assert.h>
17234 #endif
17235 /* Override any gcc2 internal prototype to avoid an error.  */
17236 #ifdef __cplusplus
17237 extern "C"
17238 {
17239 #endif
17240 /* We use char because int might match the return type of a gcc2
17241    builtin and then its argument prototype would still apply.  */
17242 char $ac_func ();
17243 /* The GNU C library defines this for functions which it implements
17244     to always fail with ENOSYS.  Some functions are actually named
17245     something starting with __ and the normal name is an alias.  */
17246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17247 choke me
17248 #else
17249 char (*f) () = $ac_func;
17250 #endif
17251 #ifdef __cplusplus
17252 }
17253 #endif
17254
17255 int
17256 main ()
17257 {
17258 return f != $ac_func;
17259   ;
17260   return 0;
17261 }
17262 _ACEOF
17263 rm -f conftest.$ac_objext conftest$ac_exeext
17264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17265   (eval $ac_link) 2>&5
17266   ac_status=$?
17267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268   (exit $ac_status); } &&
17269          { ac_try='test -s conftest$ac_exeext'
17270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17271   (eval $ac_try) 2>&5
17272   ac_status=$?
17273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274   (exit $ac_status); }; }; then
17275   eval "$as_ac_var=yes"
17276 else
17277   echo "$as_me: failed program was:" >&5
17278 sed 's/^/| /' conftest.$ac_ext >&5
17279
17280 eval "$as_ac_var=no"
17281 fi
17282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17283 fi
17284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17286 if test `eval echo '${'$as_ac_var'}'` = yes; then
17287   cat >>confdefs.h <<_ACEOF
17288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17289 _ACEOF
17290
17291 fi
17292 done
17293
17294
17295
17296
17297
17298
17299
17300
17301 for ac_func in sigvec sigset sigsuspend stime strchr sysconf sysctl
17302 do
17303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17304 echo "$as_me:$LINENO: checking for $ac_func" >&5
17305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17306 if eval "test \"\${$as_ac_var+set}\" = set"; then
17307   echo $ECHO_N "(cached) $ECHO_C" >&6
17308 else
17309   cat >conftest.$ac_ext <<_ACEOF
17310 #line $LINENO "configure"
17311 /* confdefs.h.  */
17312 _ACEOF
17313 cat confdefs.h >>conftest.$ac_ext
17314 cat >>conftest.$ac_ext <<_ACEOF
17315 /* end confdefs.h.  */
17316 /* System header to define __stub macros and hopefully few prototypes,
17317     which can conflict with char $ac_func (); below.
17318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17319     <limits.h> exists even on freestanding compilers.  */
17320 #ifdef __STDC__
17321 # include <limits.h>
17322 #else
17323 # include <assert.h>
17324 #endif
17325 /* Override any gcc2 internal prototype to avoid an error.  */
17326 #ifdef __cplusplus
17327 extern "C"
17328 {
17329 #endif
17330 /* We use char because int might match the return type of a gcc2
17331    builtin and then its argument prototype would still apply.  */
17332 char $ac_func ();
17333 /* The GNU C library defines this for functions which it implements
17334     to always fail with ENOSYS.  Some functions are actually named
17335     something starting with __ and the normal name is an alias.  */
17336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17337 choke me
17338 #else
17339 char (*f) () = $ac_func;
17340 #endif
17341 #ifdef __cplusplus
17342 }
17343 #endif
17344
17345 int
17346 main ()
17347 {
17348 return f != $ac_func;
17349   ;
17350   return 0;
17351 }
17352 _ACEOF
17353 rm -f conftest.$ac_objext conftest$ac_exeext
17354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17355   (eval $ac_link) 2>&5
17356   ac_status=$?
17357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358   (exit $ac_status); } &&
17359          { ac_try='test -s conftest$ac_exeext'
17360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17361   (eval $ac_try) 2>&5
17362   ac_status=$?
17363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364   (exit $ac_status); }; }; then
17365   eval "$as_ac_var=yes"
17366 else
17367   echo "$as_me: failed program was:" >&5
17368 sed 's/^/| /' conftest.$ac_ext >&5
17369
17370 eval "$as_ac_var=no"
17371 fi
17372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17373 fi
17374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17375 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17376 if test `eval echo '${'$as_ac_var'}'` = yes; then
17377   cat >>confdefs.h <<_ACEOF
17378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17379 _ACEOF
17380
17381 fi
17382 done
17383
17384
17385
17386
17387
17388 for ac_func in snprintf strdup strerror strstr
17389 do
17390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17391 echo "$as_me:$LINENO: checking for $ac_func" >&5
17392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17393 if eval "test \"\${$as_ac_var+set}\" = set"; then
17394   echo $ECHO_N "(cached) $ECHO_C" >&6
17395 else
17396   cat >conftest.$ac_ext <<_ACEOF
17397 #line $LINENO "configure"
17398 /* confdefs.h.  */
17399 _ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h.  */
17403 /* System header to define __stub macros and hopefully few prototypes,
17404     which can conflict with char $ac_func (); below.
17405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17406     <limits.h> exists even on freestanding compilers.  */
17407 #ifdef __STDC__
17408 # include <limits.h>
17409 #else
17410 # include <assert.h>
17411 #endif
17412 /* Override any gcc2 internal prototype to avoid an error.  */
17413 #ifdef __cplusplus
17414 extern "C"
17415 {
17416 #endif
17417 /* We use char because int might match the return type of a gcc2
17418    builtin and then its argument prototype would still apply.  */
17419 char $ac_func ();
17420 /* The GNU C library defines this for functions which it implements
17421     to always fail with ENOSYS.  Some functions are actually named
17422     something starting with __ and the normal name is an alias.  */
17423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17424 choke me
17425 #else
17426 char (*f) () = $ac_func;
17427 #endif
17428 #ifdef __cplusplus
17429 }
17430 #endif
17431
17432 int
17433 main ()
17434 {
17435 return f != $ac_func;
17436   ;
17437   return 0;
17438 }
17439 _ACEOF
17440 rm -f conftest.$ac_objext conftest$ac_exeext
17441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17442   (eval $ac_link) 2>&5
17443   ac_status=$?
17444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445   (exit $ac_status); } &&
17446          { ac_try='test -s conftest$ac_exeext'
17447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17448   (eval $ac_try) 2>&5
17449   ac_status=$?
17450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451   (exit $ac_status); }; }; then
17452   eval "$as_ac_var=yes"
17453 else
17454   echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.$ac_ext >&5
17456
17457 eval "$as_ac_var=no"
17458 fi
17459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17460 fi
17461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17463 if test `eval echo '${'$as_ac_var'}'` = yes; then
17464   cat >>confdefs.h <<_ACEOF
17465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17466 _ACEOF
17467
17468 fi
17469 done
17470
17471
17472 for ac_func in timegm
17473 do
17474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17475 echo "$as_me:$LINENO: checking for $ac_func" >&5
17476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17477 if eval "test \"\${$as_ac_var+set}\" = set"; then
17478   echo $ECHO_N "(cached) $ECHO_C" >&6
17479 else
17480   cat >conftest.$ac_ext <<_ACEOF
17481 #line $LINENO "configure"
17482 /* confdefs.h.  */
17483 _ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h.  */
17487 /* System header to define __stub macros and hopefully few prototypes,
17488     which can conflict with char $ac_func (); below.
17489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17490     <limits.h> exists even on freestanding compilers.  */
17491 #ifdef __STDC__
17492 # include <limits.h>
17493 #else
17494 # include <assert.h>
17495 #endif
17496 /* Override any gcc2 internal prototype to avoid an error.  */
17497 #ifdef __cplusplus
17498 extern "C"
17499 {
17500 #endif
17501 /* We use char because int might match the return type of a gcc2
17502    builtin and then its argument prototype would still apply.  */
17503 char $ac_func ();
17504 /* The GNU C library defines this for functions which it implements
17505     to always fail with ENOSYS.  Some functions are actually named
17506     something starting with __ and the normal name is an alias.  */
17507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17508 choke me
17509 #else
17510 char (*f) () = $ac_func;
17511 #endif
17512 #ifdef __cplusplus
17513 }
17514 #endif
17515
17516 int
17517 main ()
17518 {
17519 return f != $ac_func;
17520   ;
17521   return 0;
17522 }
17523 _ACEOF
17524 rm -f conftest.$ac_objext conftest$ac_exeext
17525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17526   (eval $ac_link) 2>&5
17527   ac_status=$?
17528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529   (exit $ac_status); } &&
17530          { ac_try='test -s conftest$ac_exeext'
17531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17532   (eval $ac_try) 2>&5
17533   ac_status=$?
17534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535   (exit $ac_status); }; }; then
17536   eval "$as_ac_var=yes"
17537 else
17538   echo "$as_me: failed program was:" >&5
17539 sed 's/^/| /' conftest.$ac_ext >&5
17540
17541 eval "$as_ac_var=no"
17542 fi
17543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17544 fi
17545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17546 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17547 if test `eval echo '${'$as_ac_var'}'` = yes; then
17548   cat >>confdefs.h <<_ACEOF
17549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17550 _ACEOF
17551
17552 fi
17553 done
17554
17555 case "$host" in
17556  *-*-aix[45]*)
17557     # Just stubs.  Idiots.
17558     ;;
17559  *-*-netbsd1*)
17560     # Just stubs.  Idiots.
17561     ;;
17562  *-*-netbsdelf1*)
17563     # Just stubs.  Idiots.
17564     ;;
17565  *-*-openbsd*)
17566     # Just stubs.  Idiots.
17567     ;;
17568  *)
17569
17570 for ac_func in timer_create timer_settime
17571 do
17572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17573 echo "$as_me:$LINENO: checking for $ac_func" >&5
17574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17575 if eval "test \"\${$as_ac_var+set}\" = set"; then
17576   echo $ECHO_N "(cached) $ECHO_C" >&6
17577 else
17578   cat >conftest.$ac_ext <<_ACEOF
17579 #line $LINENO "configure"
17580 /* confdefs.h.  */
17581 _ACEOF
17582 cat confdefs.h >>conftest.$ac_ext
17583 cat >>conftest.$ac_ext <<_ACEOF
17584 /* end confdefs.h.  */
17585 /* System header to define __stub macros and hopefully few prototypes,
17586     which can conflict with char $ac_func (); below.
17587     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17588     <limits.h> exists even on freestanding compilers.  */
17589 #ifdef __STDC__
17590 # include <limits.h>
17591 #else
17592 # include <assert.h>
17593 #endif
17594 /* Override any gcc2 internal prototype to avoid an error.  */
17595 #ifdef __cplusplus
17596 extern "C"
17597 {
17598 #endif
17599 /* We use char because int might match the return type of a gcc2
17600    builtin and then its argument prototype would still apply.  */
17601 char $ac_func ();
17602 /* The GNU C library defines this for functions which it implements
17603     to always fail with ENOSYS.  Some functions are actually named
17604     something starting with __ and the normal name is an alias.  */
17605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17606 choke me
17607 #else
17608 char (*f) () = $ac_func;
17609 #endif
17610 #ifdef __cplusplus
17611 }
17612 #endif
17613
17614 int
17615 main ()
17616 {
17617 return f != $ac_func;
17618   ;
17619   return 0;
17620 }
17621 _ACEOF
17622 rm -f conftest.$ac_objext conftest$ac_exeext
17623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17624   (eval $ac_link) 2>&5
17625   ac_status=$?
17626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627   (exit $ac_status); } &&
17628          { ac_try='test -s conftest$ac_exeext'
17629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17630   (eval $ac_try) 2>&5
17631   ac_status=$?
17632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633   (exit $ac_status); }; }; then
17634   eval "$as_ac_var=yes"
17635 else
17636   echo "$as_me: failed program was:" >&5
17637 sed 's/^/| /' conftest.$ac_ext >&5
17638
17639 eval "$as_ac_var=no"
17640 fi
17641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17642 fi
17643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17645 if test `eval echo '${'$as_ac_var'}'` = yes; then
17646   cat >>confdefs.h <<_ACEOF
17647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17648 _ACEOF
17649
17650 fi
17651 done
17652
17653     ;;
17654 esac
17655 case "$host" in
17656  *-pc-cygwin*)
17657     # I have no idea...
17658     ;;
17659  *)
17660 for ac_func in umask
17661 do
17662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17663 echo "$as_me:$LINENO: checking for $ac_func" >&5
17664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17665 if eval "test \"\${$as_ac_var+set}\" = set"; then
17666   echo $ECHO_N "(cached) $ECHO_C" >&6
17667 else
17668   cat >conftest.$ac_ext <<_ACEOF
17669 #line $LINENO "configure"
17670 /* confdefs.h.  */
17671 _ACEOF
17672 cat confdefs.h >>conftest.$ac_ext
17673 cat >>conftest.$ac_ext <<_ACEOF
17674 /* end confdefs.h.  */
17675 /* System header to define __stub macros and hopefully few prototypes,
17676     which can conflict with char $ac_func (); below.
17677     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17678     <limits.h> exists even on freestanding compilers.  */
17679 #ifdef __STDC__
17680 # include <limits.h>
17681 #else
17682 # include <assert.h>
17683 #endif
17684 /* Override any gcc2 internal prototype to avoid an error.  */
17685 #ifdef __cplusplus
17686 extern "C"
17687 {
17688 #endif
17689 /* We use char because int might match the return type of a gcc2
17690    builtin and then its argument prototype would still apply.  */
17691 char $ac_func ();
17692 /* The GNU C library defines this for functions which it implements
17693     to always fail with ENOSYS.  Some functions are actually named
17694     something starting with __ and the normal name is an alias.  */
17695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17696 choke me
17697 #else
17698 char (*f) () = $ac_func;
17699 #endif
17700 #ifdef __cplusplus
17701 }
17702 #endif
17703
17704 int
17705 main ()
17706 {
17707 return f != $ac_func;
17708   ;
17709   return 0;
17710 }
17711 _ACEOF
17712 rm -f conftest.$ac_objext conftest$ac_exeext
17713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17714   (eval $ac_link) 2>&5
17715   ac_status=$?
17716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717   (exit $ac_status); } &&
17718          { ac_try='test -s conftest$ac_exeext'
17719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720   (eval $ac_try) 2>&5
17721   ac_status=$?
17722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723   (exit $ac_status); }; }; then
17724   eval "$as_ac_var=yes"
17725 else
17726   echo "$as_me: failed program was:" >&5
17727 sed 's/^/| /' conftest.$ac_ext >&5
17728
17729 eval "$as_ac_var=no"
17730 fi
17731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17732 fi
17733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17735 if test `eval echo '${'$as_ac_var'}'` = yes; then
17736   cat >>confdefs.h <<_ACEOF
17737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17738 _ACEOF
17739
17740 fi
17741 done
17742
17743     ;;
17744 esac
17745
17746
17747
17748
17749 for ac_func in uname updwtmp updwtmpx vsprintf
17750 do
17751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17752 echo "$as_me:$LINENO: checking for $ac_func" >&5
17753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17754 if eval "test \"\${$as_ac_var+set}\" = set"; then
17755   echo $ECHO_N "(cached) $ECHO_C" >&6
17756 else
17757   cat >conftest.$ac_ext <<_ACEOF
17758 #line $LINENO "configure"
17759 /* confdefs.h.  */
17760 _ACEOF
17761 cat confdefs.h >>conftest.$ac_ext
17762 cat >>conftest.$ac_ext <<_ACEOF
17763 /* end confdefs.h.  */
17764 /* System header to define __stub macros and hopefully few prototypes,
17765     which can conflict with char $ac_func (); below.
17766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17767     <limits.h> exists even on freestanding compilers.  */
17768 #ifdef __STDC__
17769 # include <limits.h>
17770 #else
17771 # include <assert.h>
17772 #endif
17773 /* Override any gcc2 internal prototype to avoid an error.  */
17774 #ifdef __cplusplus
17775 extern "C"
17776 {
17777 #endif
17778 /* We use char because int might match the return type of a gcc2
17779    builtin and then its argument prototype would still apply.  */
17780 char $ac_func ();
17781 /* The GNU C library defines this for functions which it implements
17782     to always fail with ENOSYS.  Some functions are actually named
17783     something starting with __ and the normal name is an alias.  */
17784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17785 choke me
17786 #else
17787 char (*f) () = $ac_func;
17788 #endif
17789 #ifdef __cplusplus
17790 }
17791 #endif
17792
17793 int
17794 main ()
17795 {
17796 return f != $ac_func;
17797   ;
17798   return 0;
17799 }
17800 _ACEOF
17801 rm -f conftest.$ac_objext conftest$ac_exeext
17802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17803   (eval $ac_link) 2>&5
17804   ac_status=$?
17805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806   (exit $ac_status); } &&
17807          { ac_try='test -s conftest$ac_exeext'
17808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17809   (eval $ac_try) 2>&5
17810   ac_status=$?
17811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812   (exit $ac_status); }; }; then
17813   eval "$as_ac_var=yes"
17814 else
17815   echo "$as_me: failed program was:" >&5
17816 sed 's/^/| /' conftest.$ac_ext >&5
17817
17818 eval "$as_ac_var=no"
17819 fi
17820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17821 fi
17822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17823 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17824 if test `eval echo '${'$as_ac_var'}'` = yes; then
17825   cat >>confdefs.h <<_ACEOF
17826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17827 _ACEOF
17828
17829 fi
17830 done
17831
17832
17833 case "$host" in
17834  *-*-sunos4*)
17835
17836 cat >>confdefs.h <<\_ACEOF
17837 #define SPRINTF_CHAR 1
17838 _ACEOF
17839
17840     ;;
17841 esac
17842
17843 echo "$as_me:$LINENO: checking number of arguments to gettimeofday()" >&5
17844 echo $ECHO_N "checking number of arguments to gettimeofday()... $ECHO_C" >&6
17845 if test "${ac_cv_func_Xettimeofday_nargs+set}" = set; then
17846   echo $ECHO_N "(cached) $ECHO_C" >&6
17847 else
17848   cat >conftest.$ac_ext <<_ACEOF
17849 #line $LINENO "configure"
17850 /* confdefs.h.  */
17851 _ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h.  */
17855 #include <sys/time.h>
17856 int
17857 main ()
17858 {
17859
17860 gettimeofday((struct timeval*)0,(struct timezone*)0);
17861 settimeofday((struct timeval*)0,(struct timezone*)0);
17862
17863   ;
17864   return 0;
17865 }
17866 _ACEOF
17867 rm -f conftest.$ac_objext
17868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17869   (eval $ac_compile) 2>&5
17870   ac_status=$?
17871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872   (exit $ac_status); } &&
17873          { ac_try='test -s conftest.$ac_objext'
17874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17875   (eval $ac_try) 2>&5
17876   ac_status=$?
17877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878   (exit $ac_status); }; }; then
17879   ac_cv_func_Xettimeofday_nargs=2
17880 else
17881   echo "$as_me: failed program was:" >&5
17882 sed 's/^/| /' conftest.$ac_ext >&5
17883
17884 ac_cv_func_Xettimeofday_nargs=1
17885 fi
17886 rm -f conftest.$ac_objext conftest.$ac_ext
17887
17888 fi
17889 echo "$as_me:$LINENO: result: $ac_cv_func_Xettimeofday_nargs" >&5
17890 echo "${ECHO_T}$ac_cv_func_Xettimeofday_nargs" >&6
17891 if test $ac_cv_func_Xettimeofday_nargs = 1; then
17892
17893 cat >>confdefs.h <<\_ACEOF
17894 #define SYSV_TIMEOFDAY 1
17895 _ACEOF
17896
17897 fi
17898
17899 echo "$as_me:$LINENO: checking number of arguments taken by setpgrp()" >&5
17900 echo $ECHO_N "checking number of arguments taken by setpgrp()... $ECHO_C" >&6
17901 if test "${ac_cv_func_setpgrp_nargs+set}" = set; then
17902   echo $ECHO_N "(cached) $ECHO_C" >&6
17903 else
17904   cat >conftest.$ac_ext <<_ACEOF
17905 #line $LINENO "configure"
17906 /* confdefs.h.  */
17907 _ACEOF
17908 cat confdefs.h >>conftest.$ac_ext
17909 cat >>conftest.$ac_ext <<_ACEOF
17910 /* end confdefs.h.  */
17911
17912 #ifdef HAVE_SYS_TYPES_H
17913 # include <sys/types.h>
17914 #endif
17915 #ifdef HAVE_UNISTD_H
17916 # include <unistd.h>
17917 #endif
17918
17919 int
17920 main ()
17921 {
17922 setpgrp(0,0);
17923   ;
17924   return 0;
17925 }
17926 _ACEOF
17927 rm -f conftest.$ac_objext
17928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17929   (eval $ac_compile) 2>&5
17930   ac_status=$?
17931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932   (exit $ac_status); } &&
17933          { ac_try='test -s conftest.$ac_objext'
17934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17935   (eval $ac_try) 2>&5
17936   ac_status=$?
17937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938   (exit $ac_status); }; }; then
17939   ac_cv_func_setpgrp_nargs=2
17940 else
17941   echo "$as_me: failed program was:" >&5
17942 sed 's/^/| /' conftest.$ac_ext >&5
17943
17944 ac_cv_func_setpgrp_nargs=0
17945 fi
17946 rm -f conftest.$ac_objext conftest.$ac_ext
17947
17948 fi
17949 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_nargs" >&5
17950 echo "${ECHO_T}$ac_cv_func_setpgrp_nargs" >&6
17951 if test $ac_cv_func_setpgrp_nargs = 0; then
17952
17953 cat >>confdefs.h <<\_ACEOF
17954 #define HAVE_SETPGRP_0 1
17955 _ACEOF
17956
17957 fi
17958
17959 save_CFLAGS=$CFLAGS
17960 CFLAGS="$CFLAGS -I$srcdir/include"
17961
17962 echo "$as_me:$LINENO: checking argument pointer type of qsort()'s compare function and base" >&5
17963 echo $ECHO_N "checking argument pointer type of qsort()'s compare function and base... $ECHO_C" >&6
17964 if test "${ac_cv_func_qsort_argtype+set}" = set; then
17965   echo $ECHO_N "(cached) $ECHO_C" >&6
17966 else
17967   cat >conftest.$ac_ext <<_ACEOF
17968 #line $LINENO "configure"
17969 /* confdefs.h.  */
17970 _ACEOF
17971 cat confdefs.h >>conftest.$ac_ext
17972 cat >>conftest.$ac_ext <<_ACEOF
17973 /* end confdefs.h.  */
17974
17975 #include "l_stdlib.h"
17976
17977 #ifdef HAVE_PROTOTYPES
17978 #define P(x) x
17979 #else
17980 #define P(x) ()
17981 #endif
17982
17983 extern void *base;
17984 extern sortfunc P((const void *, const void *));
17985 int sortfunc(a, b)
17986   const void *a;
17987   const void *b; { return 0; }
17988
17989 int
17990 main ()
17991 {
17992
17993 qsort(base, 2, sizeof(char *), sortfunc);
17994
17995   ;
17996   return 0;
17997 }
17998 _ACEOF
17999 rm -f conftest.$ac_objext
18000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18001   (eval $ac_compile) 2>&5
18002   ac_status=$?
18003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004   (exit $ac_status); } &&
18005          { ac_try='test -s conftest.$ac_objext'
18006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18007   (eval $ac_try) 2>&5
18008   ac_status=$?
18009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010   (exit $ac_status); }; }; then
18011   ac_cv_func_qsort_argtype=void
18012 else
18013   echo "$as_me: failed program was:" >&5
18014 sed 's/^/| /' conftest.$ac_ext >&5
18015
18016 ac_cv_func_qsort_argtype=char
18017 fi
18018 rm -f conftest.$ac_objext conftest.$ac_ext
18019
18020 fi
18021 echo "$as_me:$LINENO: result: $ac_cv_func_qsort_argtype" >&5
18022 echo "${ECHO_T}$ac_cv_func_qsort_argtype" >&6
18023 case "$ac_cv_func_qsort_argtype" in
18024  void)
18025
18026 cat >>confdefs.h <<\_ACEOF
18027 #define QSORT_USES_VOID_P 1
18028 _ACEOF
18029
18030     ;;
18031 esac
18032
18033 CFLAGS=$save_CFLAGS
18034
18035 echo "$as_me:$LINENO: checking if we need to declare 'errno'" >&5
18036 echo $ECHO_N "checking if we need to declare 'errno'... $ECHO_C" >&6
18037 if test "${ac_cv_decl_errno+set}" = set; then
18038   echo $ECHO_N "(cached) $ECHO_C" >&6
18039 else
18040   cat >conftest.$ac_ext <<_ACEOF
18041 #line $LINENO "configure"
18042 /* confdefs.h.  */
18043 _ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h.  */
18047 #ifdef HAVE_ERRNO_H
18048 #include <errno.h>
18049 #endif
18050 int
18051 main ()
18052 {
18053 errno = 0;
18054   ;
18055   return 0;
18056 }
18057 _ACEOF
18058 rm -f conftest.$ac_objext
18059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18060   (eval $ac_compile) 2>&5
18061   ac_status=$?
18062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063   (exit $ac_status); } &&
18064          { ac_try='test -s conftest.$ac_objext'
18065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066   (eval $ac_try) 2>&5
18067   ac_status=$?
18068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069   (exit $ac_status); }; }; then
18070   ac_cv_decl_errno=no
18071 else
18072   echo "$as_me: failed program was:" >&5
18073 sed 's/^/| /' conftest.$ac_ext >&5
18074
18075 ac_cv_decl_errno=yes
18076 fi
18077 rm -f conftest.$ac_objext conftest.$ac_ext
18078 fi
18079 echo "$as_me:$LINENO: result: $ac_cv_decl_errno" >&5
18080 echo "${ECHO_T}$ac_cv_decl_errno" >&6
18081 case "$ac_cv_decl_errno" in
18082  yes)
18083 cat >>confdefs.h <<\_ACEOF
18084 #define DECL_ERRNO 1
18085 _ACEOF
18086  ;;
18087 esac
18088
18089 echo "$as_me:$LINENO: checking if we may declare 'h_errno'" >&5
18090 echo $ECHO_N "checking if we may declare 'h_errno'... $ECHO_C" >&6
18091 if test "${ac_cv_decl_h_errno+set}" = set; then
18092   echo $ECHO_N "(cached) $ECHO_C" >&6
18093 else
18094   cat >conftest.$ac_ext <<_ACEOF
18095 #line $LINENO "configure"
18096 /* confdefs.h.  */
18097 _ACEOF
18098 cat confdefs.h >>conftest.$ac_ext
18099 cat >>conftest.$ac_ext <<_ACEOF
18100 /* end confdefs.h.  */
18101 #include <sys/types.h>
18102 #ifdef HAVE_NETINET_IN_H
18103 #include <netinet/in.h>
18104 #endif
18105 #ifdef HAVE_ARPA_NAMESER_H
18106 #include <arpa/nameser.h>
18107 #endif
18108 #ifdef HAVE_NETDB_H
18109 #include <netdb.h>
18110 #endif
18111 #ifdef HAVE_RESOLV_H
18112 #include <resolv.h>
18113 #endif
18114 int
18115 main ()
18116 {
18117 extern int h_errno;
18118   ;
18119   return 0;
18120 }
18121 _ACEOF
18122 rm -f conftest.$ac_objext
18123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18124   (eval $ac_compile) 2>&5
18125   ac_status=$?
18126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127   (exit $ac_status); } &&
18128          { ac_try='test -s conftest.$ac_objext'
18129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18130   (eval $ac_try) 2>&5
18131   ac_status=$?
18132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133   (exit $ac_status); }; }; then
18134   ac_cv_decl_h_errno=yes
18135 else
18136   echo "$as_me: failed program was:" >&5
18137 sed 's/^/| /' conftest.$ac_ext >&5
18138
18139 ac_cv_decl_h_errno=no
18140 fi
18141 rm -f conftest.$ac_objext conftest.$ac_ext
18142 fi
18143 echo "$as_me:$LINENO: result: $ac_cv_decl_h_errno" >&5
18144 echo "${ECHO_T}$ac_cv_decl_h_errno" >&6
18145 case "$ac_cv_decl_h_errno" in
18146  yes)
18147 cat >>confdefs.h <<\_ACEOF
18148 #define DECL_H_ERRNO 1
18149 _ACEOF
18150  ;;
18151 esac
18152
18153 echo "$as_me:$LINENO: checking if declaring 'char *sys_errlist[]' is ok" >&5
18154 echo $ECHO_N "checking if declaring 'char *sys_errlist[]' is ok... $ECHO_C" >&6
18155 if test "${ac_cv_decl_sys_errlist+set}" = set; then
18156   echo $ECHO_N "(cached) $ECHO_C" >&6
18157 else
18158   cat >conftest.$ac_ext <<_ACEOF
18159 #line $LINENO "configure"
18160 /* confdefs.h.  */
18161 _ACEOF
18162 cat confdefs.h >>conftest.$ac_ext
18163 cat >>conftest.$ac_ext <<_ACEOF
18164 /* end confdefs.h.  */
18165 #include <stdio.h>
18166 #ifdef HAVE_ERRNO_H
18167 #include <errno.h>
18168 #endif
18169 int
18170 main ()
18171 {
18172 extern char *sys_errlist[];
18173
18174   ;
18175   return 0;
18176 }
18177 _ACEOF
18178 rm -f conftest.$ac_objext
18179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18180   (eval $ac_compile) 2>&5
18181   ac_status=$?
18182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183   (exit $ac_status); } &&
18184          { ac_try='test -s conftest.$ac_objext'
18185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186   (eval $ac_try) 2>&5
18187   ac_status=$?
18188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189   (exit $ac_status); }; }; then
18190   ac_cv_decl_sys_errlist=yes
18191 else
18192   echo "$as_me: failed program was:" >&5
18193 sed 's/^/| /' conftest.$ac_ext >&5
18194
18195 ac_cv_decl_sys_errlist=no
18196 fi
18197 rm -f conftest.$ac_objext conftest.$ac_ext
18198 fi
18199 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_errlist" >&5
18200 echo "${ECHO_T}$ac_cv_decl_sys_errlist" >&6
18201 case "$ac_cv_decl_sys_errlist" in
18202  yes)
18203 cat >>confdefs.h <<\_ACEOF
18204 #define CHAR_SYS_ERRLIST 1
18205 _ACEOF
18206  ;;
18207 esac
18208
18209 echo "$as_me:$LINENO: checking if declaring 'syscall()' is ok" >&5
18210 echo $ECHO_N "checking if declaring 'syscall()' is ok... $ECHO_C" >&6
18211 if test "${ac_cv_decl_syscall+set}" = set; then
18212   echo $ECHO_N "(cached) $ECHO_C" >&6
18213 else
18214   cat >conftest.$ac_ext <<_ACEOF
18215 #line $LINENO "configure"
18216 /* confdefs.h.  */
18217 _ACEOF
18218 cat confdefs.h >>conftest.$ac_ext
18219 cat >>conftest.$ac_ext <<_ACEOF
18220 /* end confdefs.h.  */
18221
18222 #ifdef HAVE_SYS_TYPES_H
18223 # include <sys/types.h>
18224 #endif
18225 #ifdef HAVE_UNISTD_H
18226 # include <unistd.h>
18227 #endif
18228 #ifdef HAVE_PROTOTYPES
18229 #define P(x) x
18230 #else
18231 #define P(x) ()
18232 #endif
18233
18234 int
18235 main ()
18236 {
18237 extern int syscall P((int, ...));
18238   ;
18239   return 0;
18240 }
18241 _ACEOF
18242 rm -f conftest.$ac_objext
18243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18244   (eval $ac_compile) 2>&5
18245   ac_status=$?
18246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247   (exit $ac_status); } &&
18248          { ac_try='test -s conftest.$ac_objext'
18249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18250   (eval $ac_try) 2>&5
18251   ac_status=$?
18252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253   (exit $ac_status); }; }; then
18254   ac_cv_decl_syscall=yes
18255 else
18256   echo "$as_me: failed program was:" >&5
18257 sed 's/^/| /' conftest.$ac_ext >&5
18258
18259 ac_cv_decl_syscall=no
18260 fi
18261 rm -f conftest.$ac_objext conftest.$ac_ext
18262 fi
18263 echo "$as_me:$LINENO: result: $ac_cv_decl_syscall" >&5
18264 echo "${ECHO_T}$ac_cv_decl_syscall" >&6
18265 case "$ac_cv_decl_syscall" in
18266  yes)
18267 cat >>confdefs.h <<\_ACEOF
18268 #define DECL_SYSCALL 1
18269 _ACEOF
18270  ;;
18271 esac
18272
18273 case "$host" in
18274  *-*-aix4.3.*)
18275
18276 cat >>confdefs.h <<\_ACEOF
18277 #define DECL_HSTRERROR_0 1
18278 _ACEOF
18279                 # Needed for XLC under AIX 4.3.2
18280     ;;
18281  *-*-mpeix*)
18282
18283 cat >>confdefs.h <<\_ACEOF
18284 #define DECL_ADJTIME_0 1
18285 _ACEOF
18286
18287
18288 cat >>confdefs.h <<\_ACEOF
18289 #define DECL_INET_NTOA_0 1
18290 _ACEOF
18291
18292
18293 cat >>confdefs.h <<\_ACEOF
18294 #define DECL_MKTEMP_0 1
18295 _ACEOF
18296
18297
18298 cat >>confdefs.h <<\_ACEOF
18299 #define DECL_MRAND48_0 1
18300 _ACEOF
18301
18302
18303 cat >>confdefs.h <<\_ACEOF
18304 #define DECL_SELECT_0 1
18305 _ACEOF
18306
18307
18308 cat >>confdefs.h <<\_ACEOF
18309 #define DECL_SETITIMER_0 1
18310 _ACEOF
18311
18312
18313 cat >>confdefs.h <<\_ACEOF
18314 #define DECL_SRAND48_0 1
18315 _ACEOF
18316
18317
18318 cat >>confdefs.h <<\_ACEOF
18319 #define DECL_SYSLOG_0 1
18320 _ACEOF
18321
18322
18323 cat >>confdefs.h <<\_ACEOF
18324 #define DECL_TIMEOFDAY_0 1
18325 _ACEOF
18326
18327     ;;
18328  *-*-osf[45]*)
18329
18330 cat >>confdefs.h <<\_ACEOF
18331 #define DECL_PLOCK_0 1
18332 _ACEOF
18333
18334
18335 cat >>confdefs.h <<\_ACEOF
18336 #define DECL_STIME_1 1
18337 _ACEOF
18338
18339     ;;
18340  *-*-qnx*)
18341
18342 cat >>confdefs.h <<\_ACEOF
18343 #define DECL_ADJTIME_0 1
18344 _ACEOF
18345
18346     ;;
18347  *-*-riscos4*)
18348
18349 cat >>confdefs.h <<\_ACEOF
18350 #define DECL_ADJTIME_0 1
18351 _ACEOF
18352
18353
18354 cat >>confdefs.h <<\_ACEOF
18355 #define DECL_BZERO_0 1
18356 _ACEOF
18357
18358
18359 cat >>confdefs.h <<\_ACEOF
18360 #define DECL_IOCTL_0 1
18361 _ACEOF
18362
18363
18364 cat >>confdefs.h <<\_ACEOF
18365 #define DECL_IPC_0 1
18366 _ACEOF
18367
18368
18369 cat >>confdefs.h <<\_ACEOF
18370 #define DECL_MEMMOVE_0 1
18371 _ACEOF
18372
18373
18374 cat >>confdefs.h <<\_ACEOF
18375 #define DECL_MKTEMP_0 1
18376 _ACEOF
18377
18378
18379 cat >>confdefs.h <<\_ACEOF
18380 #define DECL_RENAME_0 1
18381 _ACEOF
18382
18383
18384 cat >>confdefs.h <<\_ACEOF
18385 #define DECL_SELECT_0 1
18386 _ACEOF
18387
18388
18389 cat >>confdefs.h <<\_ACEOF
18390 #define DECL_SETITIMER_0 1
18391 _ACEOF
18392
18393
18394 cat >>confdefs.h <<\_ACEOF
18395 #define DECL_SETPRIORITY_0 1
18396 _ACEOF
18397
18398
18399 cat >>confdefs.h <<\_ACEOF
18400 #define DECL_STDIO_0 1
18401 _ACEOF
18402
18403
18404 cat >>confdefs.h <<\_ACEOF
18405 #define DECL_STRTOL_0 1
18406 _ACEOF
18407
18408
18409 cat >>confdefs.h <<\_ACEOF
18410 #define DECL_SYSLOG_0 1
18411 _ACEOF
18412
18413
18414 cat >>confdefs.h <<\_ACEOF
18415 #define DECL_TIME_0 1
18416 _ACEOF
18417
18418
18419 cat >>confdefs.h <<\_ACEOF
18420 #define DECL_TIMEOFDAY_0 1
18421 _ACEOF
18422
18423
18424 cat >>confdefs.h <<\_ACEOF
18425 #define DECL_TOLOWER_0 1
18426 _ACEOF
18427
18428     ;;
18429  *-*-solaris2*)
18430
18431 cat >>confdefs.h <<\_ACEOF
18432 #define DECL_MKSTEMP_0 1
18433 _ACEOF
18434
18435
18436 cat >>confdefs.h <<\_ACEOF
18437 #define DECL_SETPRIORITY_1 1
18438 _ACEOF
18439
18440     case "$host" in
18441      *-*-solaris2.4)
18442
18443 cat >>confdefs.h <<\_ACEOF
18444 #define DECL_TIMEOFDAY_0 1
18445 _ACEOF
18446
18447         ;;
18448     esac
18449     ;;
18450  *-*-sunos4*)
18451
18452 cat >>confdefs.h <<\_ACEOF
18453 #define DECL_ADJTIME_0 1
18454 _ACEOF
18455
18456
18457 cat >>confdefs.h <<\_ACEOF
18458 #define DECL_BCOPY_0 1
18459 _ACEOF
18460
18461
18462 cat >>confdefs.h <<\_ACEOF
18463 #define DECL_BZERO_0 1
18464 _ACEOF
18465
18466
18467 cat >>confdefs.h <<\_ACEOF
18468 #define DECL_IOCTL_0 1
18469 _ACEOF
18470
18471
18472 cat >>confdefs.h <<\_ACEOF
18473 #define DECL_IPC_0 1
18474 _ACEOF
18475
18476
18477 cat >>confdefs.h <<\_ACEOF
18478 #define DECL_MEMMOVE_0 1
18479 _ACEOF
18480
18481
18482 cat >>confdefs.h <<\_ACEOF
18483 #define DECL_MKTEMP_0 1
18484 _ACEOF
18485
18486
18487 cat >>confdefs.h <<\_ACEOF
18488 #define DECL_MKSTEMP_0 1
18489 _ACEOF
18490
18491
18492 cat >>confdefs.h <<\_ACEOF
18493 #define DECL_MRAND48_0 1
18494 _ACEOF
18495
18496
18497 cat >>confdefs.h <<\_ACEOF
18498 #define DECL_RENAME_0 1
18499 _ACEOF
18500
18501
18502 cat >>confdefs.h <<\_ACEOF
18503 #define DECL_SELECT_0 1
18504 _ACEOF
18505
18506
18507 cat >>confdefs.h <<\_ACEOF
18508 #define DECL_SETITIMER_0 1
18509 _ACEOF
18510
18511
18512 cat >>confdefs.h <<\_ACEOF
18513 #define DECL_SETPRIORITY_0 1
18514 _ACEOF
18515
18516
18517 cat >>confdefs.h <<\_ACEOF
18518 #define DECL_SIGVEC_0 1
18519 _ACEOF
18520
18521
18522 cat >>confdefs.h <<\_ACEOF
18523 #define DECL_SRAND48_0 1
18524 _ACEOF
18525
18526     case "`basename $ac_cv_prog_CC`" in
18527      acc*) ;;
18528      *)
18529 cat >>confdefs.h <<\_ACEOF
18530 #define DECL_STDIO_0 1
18531 _ACEOF
18532
18533         ;;
18534     esac
18535
18536 cat >>confdefs.h <<\_ACEOF
18537 #define DECL_STRTOL_0 1
18538 _ACEOF
18539
18540
18541 cat >>confdefs.h <<\_ACEOF
18542 #define DECL_SYSLOG_0 1
18543 _ACEOF
18544
18545
18546 cat >>confdefs.h <<\_ACEOF
18547 #define DECL_TIME_0 1
18548 _ACEOF
18549
18550
18551 cat >>confdefs.h <<\_ACEOF
18552 #define DECL_TIMEOFDAY_0 1
18553 _ACEOF
18554
18555
18556 cat >>confdefs.h <<\_ACEOF
18557 #define DECL_TOLOWER_0 1
18558 _ACEOF
18559
18560
18561 cat >>confdefs.h <<\_ACEOF
18562 #define DECL_TOUPPER_0 1
18563 _ACEOF
18564
18565
18566 cat >>confdefs.h <<\_ACEOF
18567 #define DECL_STRERROR_0 1
18568 _ACEOF
18569
18570     ;;
18571  *-*-ultrix4*)
18572
18573 cat >>confdefs.h <<\_ACEOF
18574 #define DECL_ADJTIME_0 1
18575 _ACEOF
18576
18577
18578 cat >>confdefs.h <<\_ACEOF
18579 #define DECL_BZERO_0 1
18580 _ACEOF
18581
18582
18583 cat >>confdefs.h <<\_ACEOF
18584 #define DECL_CFSETISPEED_0 1
18585 _ACEOF
18586
18587
18588 cat >>confdefs.h <<\_ACEOF
18589 #define DECL_IOCTL_0 1
18590 _ACEOF
18591
18592
18593 cat >>confdefs.h <<\_ACEOF
18594 #define DECL_IPC_0 1
18595 _ACEOF
18596
18597
18598 cat >>confdefs.h <<\_ACEOF
18599 #define DECL_MKTEMP_0 1
18600 _ACEOF
18601
18602
18603 cat >>confdefs.h <<\_ACEOF
18604 #define DECL_MRAND48_0 1
18605 _ACEOF
18606
18607
18608 cat >>confdefs.h <<\_ACEOF
18609 #define DECL_NLIST_0 1
18610 _ACEOF
18611
18612
18613 cat >>confdefs.h <<\_ACEOF
18614 #define DECL_PLOCK_0 1
18615 _ACEOF
18616
18617
18618 cat >>confdefs.h <<\_ACEOF
18619 #define DECL_SELECT_0 1
18620 _ACEOF
18621
18622
18623 cat >>confdefs.h <<\_ACEOF
18624 #define DECL_SETITIMER_0 1
18625 _ACEOF
18626
18627
18628 cat >>confdefs.h <<\_ACEOF
18629 #define DECL_SETPRIORITY_0 1
18630 _ACEOF
18631
18632
18633 cat >>confdefs.h <<\_ACEOF
18634 #define DECL_SRAND48_0 1
18635 _ACEOF
18636
18637
18638 cat >>confdefs.h <<\_ACEOF
18639 #define DECL_STIME_0 1
18640 _ACEOF
18641
18642
18643 cat >>confdefs.h <<\_ACEOF
18644 #define DECL_SYSLOG_0 1
18645 _ACEOF
18646
18647
18648 cat >>confdefs.h <<\_ACEOF
18649 #define DECL_TIMEOFDAY_0 1
18650 _ACEOF
18651
18652     ;;
18653 esac
18654
18655 case "$host" in
18656  *-*-sco3.2*)
18657
18658 cat >>confdefs.h <<\_ACEOF
18659 #define TERMIOS_NEEDS__SVID3 1
18660 _ACEOF
18661
18662     ;;
18663 esac
18664
18665 echo "$as_me:$LINENO: checking if we need extra room for SO_RCVBUF" >&5
18666 echo $ECHO_N "checking if we need extra room for SO_RCVBUF... $ECHO_C" >&6
18667 if test "${ac_cv_var_rcvbuf_slop+set}" = set; then
18668   echo $ECHO_N "(cached) $ECHO_C" >&6
18669 else
18670   ans=no
18671 case "$host" in
18672  *-*-hpux[567]*)
18673     ans=yes
18674     ;;
18675 esac
18676 ac_cv_var_rcvbuf_slop=$ans
18677 fi
18678 echo "$as_me:$LINENO: result: $ac_cv_var_rcvbuf_slop" >&5
18679 echo "${ECHO_T}$ac_cv_var_rcvbuf_slop" >&6
18680 case "$ac_cv_var_rcvbuf_slop" in
18681  yes)
18682 cat >>confdefs.h <<\_ACEOF
18683 #define NEED_RCVBUF_SLOP 1
18684 _ACEOF
18685  ;;
18686 esac
18687
18688 echo "$as_me:$LINENO: checking if we will open the broadcast socket" >&5
18689 echo $ECHO_N "checking if we will open the broadcast socket... $ECHO_C" >&6
18690 if test "${ac_cv_var_open_bcast_socket+set}" = set; then
18691   echo $ECHO_N "(cached) $ECHO_C" >&6
18692 else
18693   ans=yes
18694 case "$host" in
18695  *-*-domainos)
18696     ans=no
18697     ;;
18698 esac
18699 ac_cv_var_open_bcast_socket=$ans
18700 fi
18701 echo "$as_me:$LINENO: result: $ac_cv_var_open_bcast_socket" >&5
18702 echo "${ECHO_T}$ac_cv_var_open_bcast_socket" >&6
18703 case "$ac_cv_var_open_bcast_socket" in
18704  yes)
18705 cat >>confdefs.h <<\_ACEOF
18706 #define OPEN_BCAST_SOCKET 1
18707 _ACEOF
18708  ;;
18709 esac
18710
18711 echo "$as_me:$LINENO: checking if we want the HPUX version of FindConfig()" >&5
18712 echo $ECHO_N "checking if we want the HPUX version of FindConfig()... $ECHO_C" >&6
18713 if test "${ac_cv_var_hpux_findconfig+set}" = set; then
18714   echo $ECHO_N "(cached) $ECHO_C" >&6
18715 else
18716   ans=no
18717 case "$host" in
18718  *-*-hpux*)
18719     ans=yes
18720     ;;
18721 esac
18722 ac_cv_var_hpux_findconfig=$ans
18723 fi
18724 echo "$as_me:$LINENO: result: $ac_cv_var_hpux_findconfig" >&5
18725 echo "${ECHO_T}$ac_cv_var_hpux_findconfig" >&6
18726 case "$ac_cv_var_hpux_findconfig" in
18727  yes)
18728 cat >>confdefs.h <<\_ACEOF
18729 #define NEED_HPUX_FINDCONFIG 1
18730 _ACEOF
18731  ;;
18732 esac
18733
18734 echo "$as_me:$LINENO: checking if process groups are set with -pid" >&5
18735 echo $ECHO_N "checking if process groups are set with -pid... $ECHO_C" >&6
18736 if test "${ac_cv_arg_setpgrp_negpid+set}" = set; then
18737   echo $ECHO_N "(cached) $ECHO_C" >&6
18738 else
18739   case "$host" in
18740  *-*-hpux[567]*)
18741     ans=no
18742     ;;
18743  *-*-hpux*)
18744     ans=yes
18745     ;;
18746  *-*-linux*)
18747     ans=yes
18748     ;;
18749  *-*-sunos3*)
18750     ans=yes
18751     ;;
18752  *-*-ultrix2*)
18753     ans=yes
18754     ;;
18755  *)
18756     ans=no
18757     ;;
18758 esac
18759 ac_cv_arg_setpgrp_negpid=$ans
18760 fi
18761 echo "$as_me:$LINENO: result: $ac_cv_arg_setpgrp_negpid" >&5
18762 echo "${ECHO_T}$ac_cv_arg_setpgrp_negpid" >&6
18763 case "$ac_cv_arg_setpgrp_negpid" in
18764  yes)
18765 cat >>confdefs.h <<\_ACEOF
18766 #define UDP_BACKWARDS_SETOWN 1
18767 _ACEOF
18768  ;;
18769 esac
18770
18771 echo "$as_me:$LINENO: checking if we need a ctty for F_SETOWN" >&5
18772 echo $ECHO_N "checking if we need a ctty for F_SETOWN... $ECHO_C" >&6
18773 if test "${ac_cv_func_ctty_for_f_setown+set}" = set; then
18774   echo $ECHO_N "(cached) $ECHO_C" >&6
18775 else
18776   case "$host" in
18777  *-*-bsdi[23]*)
18778     ans=yes
18779     ;;
18780  *-*-freebsd*)
18781     ans=yes
18782     ;;
18783  *-*-netbsd*)
18784     ans=yes
18785     ;;
18786  *-*-openbsd*)
18787     ans=yes
18788     ;;
18789  *-*-osf*)
18790     ans=yes
18791     ;;
18792  *) ans=no
18793     ;;
18794 esac
18795 ac_cv_func_ctty_for_f_setown=$ans
18796 fi
18797 echo "$as_me:$LINENO: result: $ac_cv_func_ctty_for_f_setown" >&5
18798 echo "${ECHO_T}$ac_cv_func_ctty_for_f_setown" >&6
18799 case "$ac_cv_func_ctty_for_f_setown" in
18800  yes)
18801 cat >>confdefs.h <<\_ACEOF
18802 #define USE_FSETOWNCTTY 1
18803 _ACEOF
18804  ;;
18805 esac
18806
18807 ntp_warning='GRONK'
18808 echo "$as_me:$LINENO: checking if we'll use clock_settime or settimeofday or stime" >&5
18809 echo $ECHO_N "checking if we'll use clock_settime or settimeofday or stime... $ECHO_C" >&6
18810 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
18811  yes*)
18812     ntp_warning=''
18813     ans='clock_settime()'
18814     ;;
18815  noyes*)
18816     ntp_warning='But clock_settime() would be better (if we had it)'
18817     ans='settimeofday()'
18818     ;;
18819  nonoyes)
18820     ntp_warning='Which is the worst of the three'
18821     ans='stime()'
18822     ;;
18823  *)
18824     case "$build" in
18825      $host) ntp_warning='Which leaves us with nothing to use!'
18826     ans=none
18827     ;;
18828 esac
18829 esac
18830 echo "$as_me:$LINENO: result: $ans" >&5
18831 echo "${ECHO_T}$ans" >&6
18832 case "$ntp_warning" in
18833  '') ;;
18834  *) { echo "$as_me:$LINENO: WARNING: *** $ntp_warning ***" >&5
18835 echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
18836     ;;
18837 esac
18838
18839 echo "$as_me:$LINENO: checking if we have a losing syscall()" >&5
18840 echo $ECHO_N "checking if we have a losing syscall()... $ECHO_C" >&6
18841 if test "${ac_cv_var_syscall_bug+set}" = set; then
18842   echo $ECHO_N "(cached) $ECHO_C" >&6
18843 else
18844   case "$host" in
18845  *-*-solaris2.4*)
18846     ans=yes
18847     ;;
18848  *) ans=no
18849     ;;
18850 esac
18851 ac_cv_var_syscall_bug=$ans
18852 fi
18853 echo "$as_me:$LINENO: result: $ac_cv_var_syscall_bug" >&5
18854 echo "${ECHO_T}$ac_cv_var_syscall_bug" >&6
18855 case "$ac_cv_var_syscall_bug" in
18856  yes)
18857 cat >>confdefs.h <<\_ACEOF
18858 #define SYSCALL_BUG 1
18859 _ACEOF
18860  ;;
18861 esac
18862
18863 echo "$as_me:$LINENO: checking for Streams/TLI" >&5
18864 echo $ECHO_N "checking for Streams/TLI... $ECHO_C" >&6
18865 if test "${ac_cv_var_streams_tli+set}" = set; then
18866   echo $ECHO_N "(cached) $ECHO_C" >&6
18867 else
18868    case "$ac_cv_header_sys_stropts_h" in
18869   yes)
18870      ans=no
18871      # There must be a better way...
18872      case "$host" in
18873       *-*-ptx*)
18874          ans=yes
18875          ;;
18876      esac
18877      ;;
18878  esac
18879  ac_cv_var_streams_tli=$ans
18880 fi
18881 echo "$as_me:$LINENO: result: $ac_cv_var_streams_tli" >&5
18882 echo "${ECHO_T}$ac_cv_var_streams_tli" >&6
18883 case "$ac_cv_var_streams_tli" in
18884  yes)
18885
18886 cat >>confdefs.h <<\_ACEOF
18887 #define STREAMS_TLI 1
18888 _ACEOF
18889
18890     ;;
18891 esac
18892
18893 echo "$as_me:$LINENO: checking for SIGIO" >&5
18894 echo $ECHO_N "checking for SIGIO... $ECHO_C" >&6
18895 if test "${ac_cv_hdr_def_sigio+set}" = set; then
18896   echo $ECHO_N "(cached) $ECHO_C" >&6
18897 else
18898   cat >conftest.$ac_ext <<_ACEOF
18899 #line $LINENO "configure"
18900 /* confdefs.h.  */
18901 _ACEOF
18902 cat confdefs.h >>conftest.$ac_ext
18903 cat >>conftest.$ac_ext <<_ACEOF
18904 /* end confdefs.h.  */
18905 #include <signal.h>
18906 #ifdef SIGIO
18907    yes
18908 #endif
18909
18910 _ACEOF
18911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18912   $EGREP "yes" >/dev/null 2>&1; then
18913   ac_cv_hdr_def_sigio=yes
18914 else
18915   ac_cv_hdr_def_sigio=no
18916 fi
18917 rm -f conftest*
18918
18919 fi
18920 echo "$as_me:$LINENO: result: $ac_cv_hdr_def_sigio" >&5
18921 echo "${ECHO_T}$ac_cv_hdr_def_sigio" >&6
18922
18923 echo "$as_me:$LINENO: checking if we want to use signalled IO" >&5
18924 echo $ECHO_N "checking if we want to use signalled IO... $ECHO_C" >&6
18925 if test "${ac_cv_var_signalled_io+set}" = set; then
18926   echo $ECHO_N "(cached) $ECHO_C" >&6
18927 else
18928   ans=no
18929 case "$ac_cv_hdr_def_sigio" in
18930  yes)
18931     ans=yes
18932     case "$host" in
18933      alpha*-dec-osf4*|alpha*-dec-osf5*)
18934         ans=no
18935         ;;
18936      *-convex-*)
18937         ans=no
18938         ;;
18939      *-dec-*)
18940         ans=no
18941         ;;
18942      *-pc-cygwin*)
18943         ans=no
18944         ;;
18945      *-sni-sysv*)
18946         ans=no
18947         ;;
18948      *-univel-sysv*)
18949         ans=no
18950         ;;
18951      *-*-irix6*)
18952         ans=no
18953         ;;
18954      *-*-freebsd*)
18955         ans=no
18956         ;;
18957      *-*-linux*)
18958         ans=no
18959         ;;
18960      *-*-unicosmp*)
18961         ans=no
18962         ;;
18963     esac
18964     ;;
18965 esac
18966 ac_cv_var_signalled_io=$ans
18967 fi
18968 echo "$as_me:$LINENO: result: $ac_cv_var_signalled_io" >&5
18969 echo "${ECHO_T}$ac_cv_var_signalled_io" >&6
18970 case "$ac_cv_var_signalled_io" in
18971  yes)
18972 cat >>confdefs.h <<\_ACEOF
18973 #define HAVE_SIGNALED_IO 1
18974 _ACEOF
18975  ;;
18976 esac
18977
18978 echo "$as_me:$LINENO: checking for SIGPOLL" >&5
18979 echo $ECHO_N "checking for SIGPOLL... $ECHO_C" >&6
18980 if test "${ac_cv_hdr_def_sigpoll+set}" = set; then
18981   echo $ECHO_N "(cached) $ECHO_C" >&6
18982 else
18983   cat >conftest.$ac_ext <<_ACEOF
18984 #line $LINENO "configure"
18985 /* confdefs.h.  */
18986 _ACEOF
18987 cat confdefs.h >>conftest.$ac_ext
18988 cat >>conftest.$ac_ext <<_ACEOF
18989 /* end confdefs.h.  */
18990 #include <signal.h>
18991 #ifdef SIGPOLL
18992   yes
18993 #endif
18994
18995 _ACEOF
18996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18997   $EGREP "yes" >/dev/null 2>&1; then
18998   ac_cv_hdr_def_sigpoll=yes
18999 else
19000   ac_cv_hdr_def_sigpoll=no
19001 fi
19002 rm -f conftest*
19003
19004 fi
19005 echo "$as_me:$LINENO: result: $ac_cv_hdr_def_sigpoll" >&5
19006 echo "${ECHO_T}$ac_cv_hdr_def_sigpoll" >&6
19007
19008 echo "$as_me:$LINENO: checking for SIGSYS" >&5
19009 echo $ECHO_N "checking for SIGSYS... $ECHO_C" >&6
19010 if test "${ac_cv_hdr_def_sigsys+set}" = set; then
19011   echo $ECHO_N "(cached) $ECHO_C" >&6
19012 else
19013   cat >conftest.$ac_ext <<_ACEOF
19014 #line $LINENO "configure"
19015 /* confdefs.h.  */
19016 _ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h.  */
19020 #include <signal.h>
19021 #ifdef SIGSYS
19022   yes
19023 #endif
19024
19025 _ACEOF
19026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19027   $EGREP "yes" >/dev/null 2>&1; then
19028   ac_cv_hdr_def_sigsys=yes
19029 else
19030   ac_cv_hdr_def_sigsys=no
19031 fi
19032 rm -f conftest*
19033
19034 fi
19035 echo "$as_me:$LINENO: result: $ac_cv_hdr_def_sigsys" >&5
19036 echo "${ECHO_T}$ac_cv_hdr_def_sigsys" >&6
19037
19038 echo "$as_me:$LINENO: checking if we can use SIGPOLL for UDP I/O" >&5
19039 echo $ECHO_N "checking if we can use SIGPOLL for UDP I/O... $ECHO_C" >&6
19040 if test "${ac_cv_var_use_udp_sigpoll+set}" = set; then
19041   echo $ECHO_N "(cached) $ECHO_C" >&6
19042 else
19043   ans=no
19044 case "$ac_cv_hdr_def_sigpoll" in
19045  yes)
19046     case "$host" in
19047      mips-sgi-irix*)
19048         ans=no
19049         ;;
19050      vax-dec-bsd)
19051         ans=no
19052         ;;
19053      *-pc-cygwin*)
19054         ans=no
19055         ;;
19056      *-sni-sysv*)
19057         ans=no
19058         ;;
19059      *-*-aix[45]*)
19060         ans=no
19061         ;;
19062      *-*-hpux*)
19063         ans=no
19064         ;;
19065      *-*-linux*)
19066         ans=no
19067         ;;
19068      *-*-osf*)
19069         ans=no
19070         ;;
19071      *-*-qnx*)
19072         ans=no
19073         ;;
19074      *-*-sunos*)
19075         ans=no
19076         ;;
19077      *-*-ultrix*)
19078         ans=no
19079         ;;
19080      *-*-unicosmp*)
19081         ans=no
19082         ;;
19083      *) ans=yes
19084         ;;
19085     esac
19086     ;;
19087 esac
19088 ac_cv_var_use_udp_sigpoll=$ans
19089 fi
19090 echo "$as_me:$LINENO: result: $ac_cv_var_use_udp_sigpoll" >&5
19091 echo "${ECHO_T}$ac_cv_var_use_udp_sigpoll" >&6
19092 case "$ac_cv_var_use_udp_sigpoll" in
19093  yes)
19094 cat >>confdefs.h <<\_ACEOF
19095 #define USE_UDP_SIGPOLL 1
19096 _ACEOF
19097  ;;
19098 esac
19099
19100 echo "$as_me:$LINENO: checking if we can use SIGPOLL for TTY I/O" >&5
19101 echo $ECHO_N "checking if we can use SIGPOLL for TTY I/O... $ECHO_C" >&6
19102 if test "${ac_cv_var_use_tty_sigpoll+set}" = set; then
19103   echo $ECHO_N "(cached) $ECHO_C" >&6
19104 else
19105   ans=no
19106 case "$ac_cv_hdr_def_sigpoll" in
19107  yes)
19108     case "$host" in
19109      mips-sgi-irix*)
19110         ans=no
19111         ;;
19112      vax-dec-bsd)
19113         ans=no
19114         ;;
19115      *-pc-cygwin*)
19116         ans=no
19117         ;;
19118      *-sni-sysv*)
19119         ans=no
19120         ;;
19121      *-*-aix[45]*)
19122         ans=no
19123         ;;
19124      *-*-hpux*)
19125         ans=no
19126         ;;
19127      *-*-linux*)
19128         ans=no
19129         ;;
19130      *-*-osf*)
19131         ans=no
19132         ;;
19133      *-*-sunos*)
19134         ans=no
19135         ;;
19136      *-*-ultrix*)
19137         ans=no
19138         ;;
19139      *-*-qnx*)
19140         ans=no
19141         ;;
19142      *-*-unicosmp*)
19143         ans=no
19144         ;;
19145      *) ans=yes
19146         ;;
19147     esac
19148     ;;
19149 esac
19150 ac_cv_var_use_tty_sigpoll=$ans
19151 fi
19152 echo "$as_me:$LINENO: result: $ac_cv_var_use_tty_sigpoll" >&5
19153 echo "${ECHO_T}$ac_cv_var_use_tty_sigpoll" >&6
19154 case "$ac_cv_var_use_tty_sigpoll" in
19155  yes)
19156 cat >>confdefs.h <<\_ACEOF
19157 #define USE_TTY_SIGPOLL 1
19158 _ACEOF
19159  ;;
19160 esac
19161
19162 case "$ac_cv_header_sys_sio_h" in
19163  yes)
19164     echo "$as_me:$LINENO: checking sys/sio.h for TIOCDCDTIMESTAMP" >&5
19165 echo $ECHO_N "checking sys/sio.h for TIOCDCDTIMESTAMP... $ECHO_C" >&6
19166 if test "${ac_cv_hdr_def_tiocdcdtimestamp+set}" = set; then
19167   echo $ECHO_N "(cached) $ECHO_C" >&6
19168 else
19169   cat >conftest.$ac_ext <<_ACEOF
19170 #line $LINENO "configure"
19171 /* confdefs.h.  */
19172 _ACEOF
19173 cat confdefs.h >>conftest.$ac_ext
19174 cat >>conftest.$ac_ext <<_ACEOF
19175 /* end confdefs.h.  */
19176 #include <sys/sio.h>
19177 #ifdef TIOCDCDTIMESTAMP
19178   yes
19179 #endif
19180
19181 _ACEOF
19182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19183   $EGREP "yes" >/dev/null 2>&1; then
19184   ac_cv_hdr_def_tiocdcdtimestamp=yes
19185 else
19186   ac_cv_hdr_def_tiocdcdtimestamp=no
19187 fi
19188 rm -f conftest*
19189
19190 fi
19191 echo "$as_me:$LINENO: result: $ac_cv_hdr_def_tiocdcdtimestamp" >&5
19192 echo "${ECHO_T}$ac_cv_hdr_def_tiocdcdtimestamp" >&6
19193     ;;
19194 esac
19195
19196 case "$ac_cv_hdr_def_tiocdcdtimestamp" in
19197  yes)
19198     ac_cv_var_oncore_ok=yes
19199     ;;
19200 esac
19201
19202 echo "$as_me:$LINENO: checking if nlist() values might require extra indirection" >&5
19203 echo $ECHO_N "checking if nlist() values might require extra indirection... $ECHO_C" >&6
19204 if test "${ac_cv_var_nlist_extra_indirection+set}" = set; then
19205   echo $ECHO_N "(cached) $ECHO_C" >&6
19206 else
19207   ans=no
19208 case "$host" in
19209  *-*-aix*)
19210     ans=yes
19211     ;;
19212 esac
19213 ac_cv_var_nlist_extra_indirection=$ans
19214 fi
19215 echo "$as_me:$LINENO: result: $ac_cv_var_nlist_extra_indirection" >&5
19216 echo "${ECHO_T}$ac_cv_var_nlist_extra_indirection" >&6
19217 case "$ac_cv_var_nlist_extra_indirection" in
19218  yes)
19219 cat >>confdefs.h <<\_ACEOF
19220 #define NLIST_EXTRA_INDIRECTION 1
19221 _ACEOF
19222  ;;
19223 esac
19224
19225 echo "$as_me:$LINENO: checking for a minimum recommended value of tickadj" >&5
19226 echo $ECHO_N "checking for a minimum recommended value of tickadj... $ECHO_C" >&6
19227 if test "${ac_cv_var_min_rec_tickadj+set}" = set; then
19228   echo $ECHO_N "(cached) $ECHO_C" >&6
19229 else
19230   ans=no
19231 case "$host" in
19232  *-*-aix*)
19233     ans=40
19234     ;;
19235 esac
19236 ac_cv_var_min_rec_tickadj=$ans
19237 fi
19238 echo "$as_me:$LINENO: result: $ac_cv_var_min_rec_tickadj" >&5
19239 echo "${ECHO_T}$ac_cv_var_min_rec_tickadj" >&6
19240 case "$ac_cv_var_min_rec_tickadj" in
19241  ''|no) ;;
19242  *)
19243 cat >>confdefs.h <<_ACEOF
19244 #define MIN_REC_TICKADJ $ac_cv_var_min_rec_tickadj
19245 _ACEOF
19246  ;;
19247 esac
19248
19249 echo "$as_me:$LINENO: checking if the TTY code permits PARENB and IGNPAR" >&5
19250 echo $ECHO_N "checking if the TTY code permits PARENB and IGNPAR... $ECHO_C" >&6
19251 if test "${ac_cv_var_no_parenb_ignpar+set}" = set; then
19252   echo $ECHO_N "(cached) $ECHO_C" >&6
19253 else
19254   ans=no
19255 case "$host" in
19256  i?86-*-linux*)
19257     ans=yes
19258     ;;
19259  mips-sgi-irix*)
19260     ans=yes
19261     ;;
19262  i?86-*-freebsd[123].*)
19263     ;;
19264  i?86-*-freebsd*)
19265     ans=yes
19266     ;;
19267  *-*-unicosmp*)
19268     ans=yes
19269     ;;
19270 esac
19271 ac_cv_var_no_parenb_ignpar=$ans
19272 fi
19273 echo "$as_me:$LINENO: result: $ac_cv_var_no_parenb_ignpar" >&5
19274 echo "${ECHO_T}$ac_cv_var_no_parenb_ignpar" >&6
19275 case "$ac_cv_var_no_parenb_ignpar" in
19276  yes)
19277 cat >>confdefs.h <<\_ACEOF
19278 #define NO_PARENB_IGNPAR 1
19279 _ACEOF
19280  ;;
19281 esac
19282
19283 echo "$as_me:$LINENO: checking if we're including debugging code" >&5
19284 echo $ECHO_N "checking if we're including debugging code... $ECHO_C" >&6
19285 # Check whether --enable-debugging or --disable-debugging was given.
19286 if test "${enable_debugging+set}" = set; then
19287   enableval="$enable_debugging"
19288   ntp_ok=$enableval
19289 else
19290   ntp_ok=yes
19291 fi;
19292 if test "$ntp_ok" = "yes"; then
19293
19294 cat >>confdefs.h <<\_ACEOF
19295 #define DEBUG 1
19296 _ACEOF
19297
19298 fi
19299 echo "$as_me:$LINENO: result: $ntp_ok" >&5
19300 echo "${ECHO_T}$ntp_ok" >&6
19301
19302 echo "$as_me:$LINENO: checking for a the number of minutes in a DST adjustment" >&5
19303 echo $ECHO_N "checking for a the number of minutes in a DST adjustment... $ECHO_C" >&6
19304 # Check whether --enable-dst_minutes or --disable-dst_minutes was given.
19305 if test "${enable_dst_minutes+set}" = set; then
19306   enableval="$enable_dst_minutes"
19307   ans=$enableval
19308 else
19309   ans=60
19310 fi;
19311
19312 cat >>confdefs.h <<_ACEOF
19313 #define DSTMINUTES $ans
19314 _ACEOF
19315
19316 echo "$as_me:$LINENO: result: $ans" >&5
19317 echo "${ECHO_T}$ans" >&6
19318
19319 echo "$as_me:$LINENO: checking if we have the tty_clk line discipline/streams module" >&5
19320 echo $ECHO_N "checking if we have the tty_clk line discipline/streams module... $ECHO_C" >&6
19321 if test "${ac_cv_var_tty_clk+set}" = set; then
19322   echo $ECHO_N "(cached) $ECHO_C" >&6
19323 else
19324   case "$ac_cv_header_sys_clkdefs_h$ac_cv_hdr_def_tiocdcdtimestamp" in
19325   *yes*) ac_cv_var_tty_clk=yes ;;
19326  esac
19327 fi
19328 echo "$as_me:$LINENO: result: $ac_cv_var_tty_clk" >&5
19329 echo "${ECHO_T}$ac_cv_var_tty_clk" >&6
19330 case "$ac_cv_var_tty_clk" in
19331  yes)
19332 cat >>confdefs.h <<\_ACEOF
19333 #define TTYCLK 1
19334 _ACEOF
19335  ;;
19336 esac
19337
19338 echo "$as_me:$LINENO: checking for the ppsclock streams module" >&5
19339 echo $ECHO_N "checking for the ppsclock streams module... $ECHO_C" >&6
19340 if test "${ac_cv_var_ppsclock+set}" = set; then
19341   echo $ECHO_N "(cached) $ECHO_C" >&6
19342 else
19343   ac_cv_var_ppsclock=$ac_cv_struct_ppsclockev
19344 fi
19345 echo "$as_me:$LINENO: result: $ac_cv_var_ppsclock" >&5
19346 echo "${ECHO_T}$ac_cv_var_ppsclock" >&6
19347 case "$ac_cv_var_ppsclock" in
19348  yes)
19349 cat >>confdefs.h <<\_ACEOF
19350 #define PPS 1
19351 _ACEOF
19352  ;;
19353 esac
19354
19355 echo "$as_me:$LINENO: checking for kernel multicast support" >&5
19356 echo $ECHO_N "checking for kernel multicast support... $ECHO_C" >&6
19357 if test "${ac_cv_var_mcast+set}" = set; then
19358   echo $ECHO_N "(cached) $ECHO_C" >&6
19359 else
19360   ac_cv_var_mcast=no
19361   case "$host" in
19362    i386-sequent-sysv4) ;;
19363    *) cat >conftest.$ac_ext <<_ACEOF
19364 #line $LINENO "configure"
19365 /* confdefs.h.  */
19366 _ACEOF
19367 cat confdefs.h >>conftest.$ac_ext
19368 cat >>conftest.$ac_ext <<_ACEOF
19369 /* end confdefs.h.  */
19370 #include <netinet/in.h>
19371 #ifdef IP_ADD_MEMBERSHIP
19372    yes
19373 #endif
19374
19375 _ACEOF
19376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19377   $EGREP "yes" >/dev/null 2>&1; then
19378   ac_cv_var_mcast=yes
19379 fi
19380 rm -f conftest*
19381  ;;
19382   esac
19383 fi
19384 echo "$as_me:$LINENO: result: $ac_cv_var_mcast" >&5
19385 echo "${ECHO_T}$ac_cv_var_mcast" >&6
19386 case "$ac_cv_var_mcast" in
19387  yes)
19388 cat >>confdefs.h <<\_ACEOF
19389 #define MCAST 1
19390 _ACEOF
19391  ;;
19392 esac
19393
19394 echo "$as_me:$LINENO: checking availability of ntp_{adj,get}time()" >&5
19395 echo $ECHO_N "checking availability of ntp_{adj,get}time()... $ECHO_C" >&6
19396 if test "${ac_cv_var_ntp_syscalls+set}" = set; then
19397   echo $ECHO_N "(cached) $ECHO_C" >&6
19398 else
19399   ac_cv_var_ntp_syscalls=no
19400  case "$ac_cv_func___adjtimex" in
19401   yes)
19402     ac_cv_var_ntp_syscalls=libc
19403     ;;
19404   *) case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime" in
19405       yesyes)
19406         ac_cv_var_ntp_syscalls=libc
19407         ;;
19408       *) cat >conftest.$ac_ext <<_ACEOF
19409 #line $LINENO "configure"
19410 /* confdefs.h.  */
19411 _ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h.  */
19415 #include <sys/syscall.h>
19416 #if defined(SYS_ntp_gettime) && defined(SYS_ntp_adjtime)
19417            yes
19418 #endif
19419
19420 _ACEOF
19421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19422   $EGREP "yes" >/dev/null 2>&1; then
19423   ac_cv_var_ntp_syscalls=kernel
19424 fi
19425 rm -f conftest*
19426
19427          ;;
19428      esac
19429      ;;
19430  esac
19431 fi
19432 echo "$as_me:$LINENO: result: $ac_cv_var_ntp_syscalls" >&5
19433 echo "${ECHO_T}$ac_cv_var_ntp_syscalls" >&6
19434 case "$ac_cv_var_ntp_syscalls" in
19435  libc)
19436
19437 cat >>confdefs.h <<\_ACEOF
19438 #define NTP_SYSCALLS_LIBC 1
19439 _ACEOF
19440
19441     ;;
19442  kernel)
19443
19444 cat >>confdefs.h <<\_ACEOF
19445 #define NTP_SYSCALLS_STD 1
19446 _ACEOF
19447
19448     ;;
19449  *)
19450     ;;
19451 esac
19452
19453 echo "$as_me:$LINENO: checking if sys/timex.h has STA_FLL" >&5
19454 echo $ECHO_N "checking if sys/timex.h has STA_FLL... $ECHO_C" >&6
19455 if test "${ac_cv_var_sta_fll+set}" = set; then
19456   echo $ECHO_N "(cached) $ECHO_C" >&6
19457 else
19458   cat >conftest.$ac_ext <<_ACEOF
19459 #line $LINENO "configure"
19460 /* confdefs.h.  */
19461 _ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h.  */
19465 #include <sys/timex.h>
19466 #ifdef STA_FLL
19467     yes
19468 #endif
19469
19470 _ACEOF
19471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19472   $EGREP "yes" >/dev/null 2>&1; then
19473   ac_cv_var_sta_fll=yes
19474 else
19475   ac_cv_var_sta_fll=no
19476 fi
19477 rm -f conftest*
19478
19479 fi
19480 echo "$as_me:$LINENO: result: $ac_cv_var_sta_fll" >&5
19481 echo "${ECHO_T}$ac_cv_var_sta_fll" >&6
19482
19483 echo "$as_me:$LINENO: checking if we have kernel PLL support" >&5
19484 echo $ECHO_N "checking if we have kernel PLL support... $ECHO_C" >&6
19485 if test "${ac_cv_var_kernel_pll+set}" = set; then
19486   echo $ECHO_N "(cached) $ECHO_C" >&6
19487 else
19488   case "$ac_cv_header_sys_timex_h$ac_cv_struct_ntptimeval$ac_cv_var_sta_fll$ac_cv_var_ntp_syscalls" in
19489  *no*)
19490     ac_cv_var_kernel_pll=no
19491     ;;
19492  *) ac_cv_var_kernel_pll=yes
19493     ;;
19494 esac
19495 fi
19496 echo "$as_me:$LINENO: result: $ac_cv_var_kernel_pll" >&5
19497 echo "${ECHO_T}$ac_cv_var_kernel_pll" >&6
19498 case "$ac_cv_var_kernel_pll" in
19499  yes)
19500
19501 cat >>confdefs.h <<\_ACEOF
19502 #define KERNEL_PLL 1
19503 _ACEOF
19504
19505     ;;
19506 esac
19507
19508 echo "$as_me:$LINENO: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
19509 echo $ECHO_N "checking if SIOCGIFCONF returns buffer size in the buffer... $ECHO_C" >&6
19510 if test "${ac_cv_var_size_returned_in_buffer+set}" = set; then
19511   echo $ECHO_N "(cached) $ECHO_C" >&6
19512 else
19513   ans=no
19514   case "$host" in
19515    *-fujitsu-uxp*)
19516       ans=yes
19517       ;;
19518    *-ncr-sysv4*)
19519       ans=yes
19520       ;;
19521    *-univel-sysv*)
19522       ans=yes
19523       ;;
19524   esac
19525   ac_cv_var_size_returned_in_buffer=$ans
19526 fi
19527 echo "$as_me:$LINENO: result: $ac_cv_var_size_returned_in_buffer" >&5
19528 echo "${ECHO_T}$ac_cv_var_size_returned_in_buffer" >&6
19529 case "$ac_cv_var_size_returned_in_buffer" in
19530  yes)
19531 cat >>confdefs.h <<\_ACEOF
19532 #define SIZE_RETURNED_IN_BUFFER 1
19533 _ACEOF
19534  ;;
19535 esac
19536
19537
19538 # Check for ioctls TIOCGPPSEV
19539 echo "$as_me:$LINENO: checking ioctl TIOCGPPSEV" >&5
19540 echo $ECHO_N "checking ioctl TIOCGPPSEV... $ECHO_C" >&6
19541 if test "$ac_cv_header_termios_h" = "yes"; then
19542     cat >conftest.$ac_ext <<_ACEOF
19543 #line $LINENO "configure"
19544 /* confdefs.h.  */
19545 _ACEOF
19546 cat confdefs.h >>conftest.$ac_ext
19547 cat >>conftest.$ac_ext <<_ACEOF
19548 /* end confdefs.h.  */
19549 #include <termios.h>
19550 #ifdef TIOCGPPSEV
19551          yes
19552 #endif
19553
19554 _ACEOF
19555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19556   $EGREP "yes" >/dev/null 2>&1; then
19557   ntp_ok=yes
19558 else
19559   ntp_ok=no
19560 fi
19561 rm -f conftest*
19562
19563 else
19564 ntp_ok=no
19565 fi
19566 if test "$ntp_ok" = "yes"; then
19567
19568 cat >>confdefs.h <<\_ACEOF
19569 #define HAVE_TIOCGPPSEV 1
19570 _ACEOF
19571
19572     ac_cv_var_oncore_ok=yes
19573 fi
19574 echo "$as_me:$LINENO: result: $ntp_ok" >&5
19575 echo "${ECHO_T}$ntp_ok" >&6
19576
19577 # Check for ioctls TIOCSPPS
19578 echo "$as_me:$LINENO: checking ioctl TIOCSPPS" >&5
19579 echo $ECHO_N "checking ioctl TIOCSPPS... $ECHO_C" >&6
19580 if test "$ac_cv_header_termios_h" = "yes"; then
19581     cat >conftest.$ac_ext <<_ACEOF
19582 #line $LINENO "configure"
19583 /* confdefs.h.  */
19584 _ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h.  */
19588 #include <termios.h>
19589 #ifdef TIOCSPPS
19590          yes
19591 #endif
19592
19593 _ACEOF
19594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19595   $EGREP "yes" >/dev/null 2>&1; then
19596   ntp_ok=yes
19597 else
19598   ntp_ok=no
19599 fi
19600 rm -f conftest*
19601
19602 else
19603     ntp_ok=no
19604 fi
19605
19606 if test "$ntp_ok" = "yes"; then
19607
19608 cat >>confdefs.h <<\_ACEOF
19609 #define HAVE_TIOCSPPS 1
19610 _ACEOF
19611
19612 fi
19613 echo "$as_me:$LINENO: result: $ntp_ok" >&5
19614 echo "${ECHO_T}$ntp_ok" >&6
19615
19616 # Check for ioctls CIOGETEV
19617 echo "$as_me:$LINENO: checking ioctl CIOGETEV" >&5
19618 echo $ECHO_N "checking ioctl CIOGETEV... $ECHO_C" >&6
19619 if test "$ac_cv_header_sys_ppsclock_h" = "yes"; then
19620     cat >conftest.$ac_ext <<_ACEOF
19621 #line $LINENO "configure"
19622 /* confdefs.h.  */
19623 _ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h.  */
19627 #include <sys/ppsclock.h>
19628 #ifdef CIOGETEV
19629          yes
19630 #endif
19631
19632 _ACEOF
19633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19634   $EGREP "yes" >/dev/null 2>&1; then
19635   ntp_ok=yes
19636 else
19637   ntp_ok=no
19638 fi
19639 rm -f conftest*
19640
19641 else
19642 ntp_ok=no
19643 fi
19644 if test "$ntp_ok" = "yes"; then
19645     ac_cv_var_oncore_ok=yes
19646
19647 cat >>confdefs.h <<\_ACEOF
19648 #define HAVE_CIOGETEV 1
19649 _ACEOF
19650
19651 fi
19652 echo "$as_me:$LINENO: result: $ntp_ok" >&5
19653 echo "${ECHO_T}$ntp_ok" >&6
19654
19655
19656 # ATOM/PPSAPI stuff.
19657
19658 # ATOM used to require struct timespec, but that's been fixed now.
19659
19660 # case "$ac_cv_struct_timespec" in
19661 #  'yes')
19662 #     ac_cv_var_atom_ok=yes
19663 #     ;;
19664 # esac
19665 ac_cv_var_atom_ok=yes
19666
19667 # Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
19668
19669 # The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
19670
19671 # The PPSAPI needs ATOM
19672
19673 # The PPSAPI needs struct timespec.
19674
19675 case "$ac_cv_c_inline$ac_cv_struct_timespec$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h" in
19676  inlineyes*yes*)
19677
19678 cat >>confdefs.h <<\_ACEOF
19679 #define HAVE_PPSAPI 1
19680 _ACEOF
19681
19682     ac_cv_var_oncore_ok=yes
19683     ac_cv_var_ripe_ncc_ok=yes
19684     ac_cv_var_jupiter_ok=yes
19685     ;;
19686 esac
19687
19688 # Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
19689 if test "${ac_cv_header_linux_serial_h+set}" = set; then
19690   echo "$as_me:$LINENO: checking for linux/serial.h" >&5
19691 echo $ECHO_N "checking for linux/serial.h... $ECHO_C" >&6
19692 if test "${ac_cv_header_linux_serial_h+set}" = set; then
19693   echo $ECHO_N "(cached) $ECHO_C" >&6
19694 fi
19695 echo "$as_me:$LINENO: result: $ac_cv_header_linux_serial_h" >&5
19696 echo "${ECHO_T}$ac_cv_header_linux_serial_h" >&6
19697 else
19698   # Is the header compilable?
19699 echo "$as_me:$LINENO: checking linux/serial.h usability" >&5
19700 echo $ECHO_N "checking linux/serial.h usability... $ECHO_C" >&6
19701 cat >conftest.$ac_ext <<_ACEOF
19702 #line $LINENO "configure"
19703 /* confdefs.h.  */
19704 _ACEOF
19705 cat confdefs.h >>conftest.$ac_ext
19706 cat >>conftest.$ac_ext <<_ACEOF
19707 /* end confdefs.h.  */
19708 $ac_includes_default
19709 #include <linux/serial.h>
19710 _ACEOF
19711 rm -f conftest.$ac_objext
19712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19713   (eval $ac_compile) 2>&5
19714   ac_status=$?
19715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716   (exit $ac_status); } &&
19717          { ac_try='test -s conftest.$ac_objext'
19718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19719   (eval $ac_try) 2>&5
19720   ac_status=$?
19721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722   (exit $ac_status); }; }; then
19723   ac_header_compiler=yes
19724 else
19725   echo "$as_me: failed program was:" >&5
19726 sed 's/^/| /' conftest.$ac_ext >&5
19727
19728 ac_header_compiler=no
19729 fi
19730 rm -f conftest.$ac_objext conftest.$ac_ext
19731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19732 echo "${ECHO_T}$ac_header_compiler" >&6
19733
19734 # Is the header present?
19735 echo "$as_me:$LINENO: checking linux/serial.h presence" >&5
19736 echo $ECHO_N "checking linux/serial.h presence... $ECHO_C" >&6
19737 cat >conftest.$ac_ext <<_ACEOF
19738 #line $LINENO "configure"
19739 /* confdefs.h.  */
19740 _ACEOF
19741 cat confdefs.h >>conftest.$ac_ext
19742 cat >>conftest.$ac_ext <<_ACEOF
19743 /* end confdefs.h.  */
19744 #include <linux/serial.h>
19745 _ACEOF
19746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19747   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19748   ac_status=$?
19749   grep -v '^ *+' conftest.er1 >conftest.err
19750   rm -f conftest.er1
19751   cat conftest.err >&5
19752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753   (exit $ac_status); } >/dev/null; then
19754   if test -s conftest.err; then
19755     ac_cpp_err=$ac_c_preproc_warn_flag
19756   else
19757     ac_cpp_err=
19758   fi
19759 else
19760   ac_cpp_err=yes
19761 fi
19762 if test -z "$ac_cpp_err"; then
19763   ac_header_preproc=yes
19764 else
19765   echo "$as_me: failed program was:" >&5
19766 sed 's/^/| /' conftest.$ac_ext >&5
19767
19768   ac_header_preproc=no
19769 fi
19770 rm -f conftest.err conftest.$ac_ext
19771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19772 echo "${ECHO_T}$ac_header_preproc" >&6
19773
19774 # So?  What about this header?
19775 case $ac_header_compiler:$ac_header_preproc in
19776   yes:no )
19777     { echo "$as_me:$LINENO: WARNING: linux/serial.h: accepted by the compiler, rejected by the preprocessor!" >&5
19778 echo "$as_me: WARNING: linux/serial.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19779     { echo "$as_me:$LINENO: WARNING: linux/serial.h: proceeding with the preprocessor's result" >&5
19780 echo "$as_me: WARNING: linux/serial.h: proceeding with the preprocessor's result" >&2;}
19781     (
19782       cat <<\_ASBOX
19783 ## ------------------------------------ ##
19784 ## Report this to bug-autoconf@gnu.org. ##
19785 ## ------------------------------------ ##
19786 _ASBOX
19787     ) |
19788       sed "s/^/$as_me: WARNING:     /" >&2
19789     ;;
19790   no:yes )
19791     { echo "$as_me:$LINENO: WARNING: linux/serial.h: present but cannot be compiled" >&5
19792 echo "$as_me: WARNING: linux/serial.h: present but cannot be compiled" >&2;}
19793     { echo "$as_me:$LINENO: WARNING: linux/serial.h: check for missing prerequisite headers?" >&5
19794 echo "$as_me: WARNING: linux/serial.h: check for missing prerequisite headers?" >&2;}
19795     { echo "$as_me:$LINENO: WARNING: linux/serial.h: proceeding with the preprocessor's result" >&5
19796 echo "$as_me: WARNING: linux/serial.h: proceeding with the preprocessor's result" >&2;}
19797     (
19798       cat <<\_ASBOX
19799 ## ------------------------------------ ##
19800 ## Report this to bug-autoconf@gnu.org. ##
19801 ## ------------------------------------ ##
19802 _ASBOX
19803     ) |
19804       sed "s/^/$as_me: WARNING:     /" >&2
19805     ;;
19806 esac
19807 echo "$as_me:$LINENO: checking for linux/serial.h" >&5
19808 echo $ECHO_N "checking for linux/serial.h... $ECHO_C" >&6
19809 if test "${ac_cv_header_linux_serial_h+set}" = set; then
19810   echo $ECHO_N "(cached) $ECHO_C" >&6
19811 else
19812   ac_cv_header_linux_serial_h=$ac_header_preproc
19813 fi
19814 echo "$as_me:$LINENO: result: $ac_cv_header_linux_serial_h" >&5
19815 echo "${ECHO_T}$ac_cv_header_linux_serial_h" >&6
19816
19817 fi
19818
19819
19820 echo "$as_me:$LINENO: checking ioctl TIOCGSERIAL" >&5
19821 echo $ECHO_N "checking ioctl TIOCGSERIAL... $ECHO_C" >&6
19822 case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
19823   yesyes)
19824     cat >conftest.$ac_ext <<_ACEOF
19825 #line $LINENO "configure"
19826 /* confdefs.h.  */
19827 _ACEOF
19828 cat confdefs.h >>conftest.$ac_ext
19829 cat >>conftest.$ac_ext <<_ACEOF
19830 /* end confdefs.h.  */
19831 #include <sys/time.h>
19832 typedef int u_int;
19833
19834 #include <sys/ppsclock.h>
19835 #include <linux/serial.h>
19836
19837 #ifdef TIOCGSERIAL
19838 #ifdef TIOCSSERIAL
19839 #ifdef ASYNC_PPS_CD_POS
19840 #ifdef ASYNC_PPS_CD_NEG
19841 #ifdef CIOGETEV
19842          yes
19843 #endif
19844 #endif
19845 #endif
19846 #endif
19847 #endif
19848
19849 _ACEOF
19850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19851   $EGREP "yes" >/dev/null 2>&1; then
19852   ntp_ok=yes
19853 fi
19854 rm -f conftest*
19855
19856         ;;
19857   *)
19858         ntp_ok=no
19859         ;;
19860 esac
19861 if test "$ntp_ok" = "yes"; then
19862
19863 cat >>confdefs.h <<\_ACEOF
19864 #define HAVE_TIO_SERIAL_STUFF 1
19865 _ACEOF
19866
19867 fi
19868 echo "$as_me:$LINENO: result: $ntp_ok" >&5
19869 echo "${ECHO_T}$ntp_ok" >&6
19870
19871 # Check for SHMEM_STATUS support
19872 echo "$as_me:$LINENO: checking SHMEM_STATUS support" >&5
19873 echo $ECHO_N "checking SHMEM_STATUS support... $ECHO_C" >&6
19874 case "$ac_cv_header_sys_mman_h" in
19875  yes) ntp_ok=yes ;;
19876  *)   ntp_ok=no  ;;
19877 esac
19878 if test "$ntp_ok" = "yes"; then
19879
19880 cat >>confdefs.h <<\_ACEOF
19881 #define ONCORE_SHMEM_STATUS 1
19882 _ACEOF
19883
19884 fi
19885 echo "$as_me:$LINENO: result: $ntp_ok" >&5
19886 echo "${ECHO_T}$ntp_ok" >&6
19887
19888
19889 ntp_refclock=no
19890
19891 # HPUX only, and by explicit request
19892 echo "$as_me:$LINENO: checking Datum/Bancomm bc635/VME interface" >&5
19893 echo $ECHO_N "checking Datum/Bancomm bc635/VME interface... $ECHO_C" >&6
19894 # Check whether --enable-BANCOMM or --disable-BANCOMM was given.
19895 if test "${enable_BANCOMM+set}" = set; then
19896   enableval="$enable_BANCOMM"
19897   ntp_ok=$enableval
19898 else
19899   ntp_ok=no
19900 fi;
19901 if test "$ntp_ok" = "yes"; then
19902     ntp_refclock=yes
19903
19904 cat >>confdefs.h <<\_ACEOF
19905 #define CLOCK_BANC 1
19906 _ACEOF
19907
19908 fi
19909 echo "$as_me:$LINENO: result: $ntp_ok" >&5
19910 echo "${ECHO_T}$ntp_ok" >&6
19911 case "$ntp_ok$host" in
19912  yes*-*-hpux*) ;;
19913  yes*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
19914 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
19915 esac
19916
19917 #HPUX only, and only by explicit request
19918 echo "$as_me:$LINENO: checking TrueTime GPS receiver/VME interface" >&5
19919 echo $ECHO_N "checking TrueTime GPS receiver/VME interface... $ECHO_C" >&6
19920 # Check whether --enable-GPSVME or --disable-GPSVME was given.
19921 if test "${enable_GPSVME+set}" = set; then
19922   enableval="$enable_GPSVME"
19923   ntp_ok=$enableval
19924 else
19925   ntp_ok=no
19926 fi;
19927 if test "$ntp_ok" = "yes"; then
19928     ntp_refclock=yes
19929
19930 cat >>confdefs.h <<\_ACEOF
19931 #define CLOCK_GPSVME 1
19932 _ACEOF
19933
19934 fi
19935 echo "$as_me:$LINENO: result: $ntp_ok" >&5
19936 echo "${ECHO_T}$ntp_ok" >&6
19937 case "$ntp_ok$host" in
19938  yes*-*-hpux*) ;;
19939  yes*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
19940 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
19941 esac
19942
19943 echo "$as_me:$LINENO: checking for PCL720 clock support" >&5
19944 echo $ECHO_N "checking for PCL720 clock support... $ECHO_C" >&6
19945 case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
19946  yesyesyes)
19947
19948 cat >>confdefs.h <<\_ACEOF
19949 #define CLOCK_PPS720 1
19950 _ACEOF
19951
19952     ans=yes
19953     ;;
19954  *)
19955     ans=no
19956     ;;
19957 esac
19958 echo "$as_me:$LINENO: result: $ans" >&5
19959 echo "${ECHO_T}$ans" >&6
19960
19961 echo "$as_me:$LINENO: checking for default inclusion of all suitable non-PARSE clocks" >&5
19962 echo $ECHO_N "checking for default inclusion of all suitable non-PARSE clocks... $ECHO_C" >&6
19963 # Check whether --enable-all-clocks or --disable-all-clocks was given.
19964 if test "${enable_all_clocks+set}" = set; then
19965   enableval="$enable_all_clocks"
19966   ntp_eac=$enableval
19967 else
19968   ntp_eac=yes
19969 fi;
19970 echo "$as_me:$LINENO: result: $ntp_eac" >&5
19971 echo "${ECHO_T}$ntp_eac" >&6
19972
19973 echo "$as_me:$LINENO: checking if we have support for PARSE clocks" >&5
19974 echo $ECHO_N "checking if we have support for PARSE clocks... $ECHO_C" >&6
19975 case "$ac_cv_var_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
19976  yes*yes*)
19977     ntp_canparse=yes
19978     ;;
19979  *) ntp_canparse=no
19980     ;;
19981 esac
19982 echo "$as_me:$LINENO: result: $ntp_canparse" >&5
19983 echo "${ECHO_T}$ntp_canparse" >&6
19984
19985 echo "$as_me:$LINENO: checking if we have support for audio clocks" >&5
19986 echo $ECHO_N "checking if we have support for audio clocks... $ECHO_C" >&6
19987 case "$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
19988  *yes*)
19989     ntp_canaudio=yes
19990
19991 cat >>confdefs.h <<\_ACEOF
19992 #define HAVE_AUDIO
19993 _ACEOF
19994
19995     ;;
19996  *) ntp_canaudio=no ;;
19997 esac
19998 echo "$as_me:$LINENO: result: $ntp_canaudio" >&5
19999 echo "${ECHO_T}$ntp_canaudio" >&6
20000
20001 echo "$as_me:$LINENO: checking if we have support for the SHM refclock interface" >&5
20002 echo $ECHO_N "checking if we have support for the SHM refclock interface... $ECHO_C" >&6
20003 case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
20004  yesyes)
20005     ntp_canshm=yes
20006     ;;
20007  *) ntp_canshm=no ;;
20008 esac
20009 echo "$as_me:$LINENO: result: $ntp_canshm" >&5
20010 echo "${ECHO_T}$ntp_canshm" >&6
20011
20012 # Requires modem control
20013 echo "$as_me:$LINENO: checking ACTS modem service" >&5
20014 echo $ECHO_N "checking ACTS modem service... $ECHO_C" >&6
20015 # Check whether --enable-ACTS or --disable-ACTS was given.
20016 if test "${enable_ACTS+set}" = set; then
20017   enableval="$enable_ACTS"
20018   ntp_ok=$enableval
20019 else
20020   cat >conftest.$ac_ext <<_ACEOF
20021 #line $LINENO "configure"
20022 /* confdefs.h.  */
20023 _ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h.  */
20027 #include <termios.h>
20028 #ifdef HAVE_SYS_IOCTL_H
20029 #include <sys/ioctl.h>
20030 #endif
20031 #ifdef TIOCMBIS
20032          yes
20033 #endif
20034
20035 _ACEOF
20036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20037   $EGREP "yes" >/dev/null 2>&1; then
20038   ntp_ok=$ntp_eac
20039 else
20040   ntp_ok=no
20041 fi
20042 rm -f conftest*
20043
20044 fi;
20045 if test "$ntp_ok" = "yes"; then
20046     ntp_refclock=yes
20047
20048 cat >>confdefs.h <<\_ACEOF
20049 #define CLOCK_ACTS 1
20050 _ACEOF
20051
20052 fi
20053 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20054 echo "${ECHO_T}$ntp_ok" >&6
20055
20056 echo "$as_me:$LINENO: checking Arbiter 1088A/B GPS receiver" >&5
20057 echo $ECHO_N "checking Arbiter 1088A/B GPS receiver... $ECHO_C" >&6
20058 # Check whether --enable-ARBITER or --disable-ARBITER was given.
20059 if test "${enable_ARBITER+set}" = set; then
20060   enableval="$enable_ARBITER"
20061   ntp_ok=$enableval
20062 else
20063   ntp_ok=$ntp_eac
20064 fi;
20065 if test "$ntp_ok" = "yes"; then
20066     ntp_refclock=yes
20067
20068 cat >>confdefs.h <<\_ACEOF
20069 #define CLOCK_ARBITER 1
20070 _ACEOF
20071
20072 fi
20073 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20074 echo "${ECHO_T}$ntp_ok" >&6
20075
20076 echo "$as_me:$LINENO: checking Arcron MSF receiver" >&5
20077 echo $ECHO_N "checking Arcron MSF receiver... $ECHO_C" >&6
20078 # Check whether --enable-ARCRON_MSF or --disable-ARCRON_MSF was given.
20079 if test "${enable_ARCRON_MSF+set}" = set; then
20080   enableval="$enable_ARCRON_MSF"
20081   ntp_ok=$enableval
20082 else
20083   ntp_ok=$ntp_eac
20084 fi;
20085 if test "$ntp_ok" = "yes"; then
20086     ntp_refclock=yes
20087
20088 cat >>confdefs.h <<\_ACEOF
20089 #define CLOCK_ARCRON_MSF 1
20090 _ACEOF
20091
20092 fi
20093 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20094 echo "${ECHO_T}$ntp_ok" >&6
20095
20096 echo "$as_me:$LINENO: checking Austron 2200A/2201A GPS receiver" >&5
20097 echo $ECHO_N "checking Austron 2200A/2201A GPS receiver... $ECHO_C" >&6
20098 # Check whether --enable-AS2201 or --disable-AS2201 was given.
20099 if test "${enable_AS2201+set}" = set; then
20100   enableval="$enable_AS2201"
20101   ntp_ok=$enableval
20102 else
20103   ntp_ok=$ntp_eac
20104 fi;
20105 if test "$ntp_ok" = "yes"; then
20106     ntp_refclock=yes
20107
20108 cat >>confdefs.h <<\_ACEOF
20109 #define CLOCK_AS2201 1
20110 _ACEOF
20111
20112 fi
20113 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20114 echo "${ECHO_T}$ntp_ok" >&6
20115
20116 echo "$as_me:$LINENO: checking ATOM PPS interface" >&5
20117 echo $ECHO_N "checking ATOM PPS interface... $ECHO_C" >&6
20118 # Check whether --enable-ATOM or --disable-ATOM was given.
20119 if test "${enable_ATOM+set}" = set; then
20120   enableval="$enable_ATOM"
20121   ntp_ok=$enableval
20122 else
20123   ntp_ok=$ntp_eac
20124 fi;
20125 case "$ac_cv_var_atom_ok" in
20126  no) ntp_ok=no ;;
20127 esac
20128 if test "$ntp_ok" = "yes"; then
20129     ntp_refclock=yes
20130
20131 cat >>confdefs.h <<\_ACEOF
20132 #define CLOCK_ATOM 1
20133 _ACEOF
20134
20135 fi
20136 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20137 echo "${ECHO_T}$ntp_ok" >&6
20138
20139 echo "$as_me:$LINENO: checking Chrono-log K-series WWVB receiver" >&5
20140 echo $ECHO_N "checking Chrono-log K-series WWVB receiver... $ECHO_C" >&6
20141 # Check whether --enable-CHRONOLOG or --disable-CHRONOLOG was given.
20142 if test "${enable_CHRONOLOG+set}" = set; then
20143   enableval="$enable_CHRONOLOG"
20144   ntp_ok=$enableval
20145 else
20146   ntp_ok=$ntp_eac
20147 fi;
20148 if test "$ntp_ok" = "yes"; then
20149     ntp_refclock=yes
20150
20151 cat >>confdefs.h <<\_ACEOF
20152 #define CLOCK_CHRONOLOG 1
20153 _ACEOF
20154
20155 fi
20156 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20157 echo "${ECHO_T}$ntp_ok" >&6
20158
20159 echo "$as_me:$LINENO: checking CHU modem/decoder" >&5
20160 echo $ECHO_N "checking CHU modem/decoder... $ECHO_C" >&6
20161 # Check whether --enable-CHU or --disable-CHU was given.
20162 if test "${enable_CHU+set}" = set; then
20163   enableval="$enable_CHU"
20164   ntp_ok=$enableval
20165 else
20166   ntp_ok=$ntp_eac
20167 fi;
20168 if test "$ntp_ok" = "yes"; then
20169     ntp_refclock=yes
20170
20171 cat >>confdefs.h <<\_ACEOF
20172 #define CLOCK_CHU 1
20173 _ACEOF
20174
20175 fi
20176 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20177 echo "${ECHO_T}$ntp_ok" >&6
20178 ac_refclock_chu=$ntp_ok
20179
20180 echo "$as_me:$LINENO: checking CHU audio/decoder" >&5
20181 echo $ECHO_N "checking CHU audio/decoder... $ECHO_C" >&6
20182 # Check whether --enable-AUDIO-CHU or --disable-AUDIO-CHU was given.
20183 if test "${enable_AUDIO_CHU+set}" = set; then
20184   enableval="$enable_AUDIO_CHU"
20185   ntp_ok=$enableval
20186 else
20187   case "$ntp_eac$ac_refclock_chu$ntp_canaudio" in
20188  *no*)  ntp_ok=no  ;;
20189  *)     ntp_ok=yes ;;
20190 esac
20191 fi;
20192 if test "$ntp_ok" = "yes"; then
20193
20194 cat >>confdefs.h <<\_ACEOF
20195 #define AUDIO_CHU 1
20196 _ACEOF
20197
20198 fi
20199 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20200 echo "${ECHO_T}$ntp_ok" >&6
20201 # We used to check for sunos/solaris target...
20202 case "$ntp_ok$ac_refclock_chu$ntp_canaudio" in
20203  yes*no*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is...no ***" >&5
20204 echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;} ;;
20205 esac
20206
20207 # Not under HP-UX
20208 echo "$as_me:$LINENO: checking Datum Programmable Time System" >&5
20209 echo $ECHO_N "checking Datum Programmable Time System... $ECHO_C" >&6
20210 # Check whether --enable-DATUM or --disable-DATUM was given.
20211 if test "${enable_DATUM+set}" = set; then
20212   enableval="$enable_DATUM"
20213   ntp_ok=$enableval
20214 else
20215   case "$ac_cv_header_termios_h" in
20216     yes)
20217         ntp_ok=$ntp_eac
20218         ;;
20219     *) ntp_ok=no
20220         ;;
20221     esac
20222 fi;
20223 if test "$ntp_ok" = "yes"; then
20224     ntp_refclock=yes
20225
20226 cat >>confdefs.h <<\_ACEOF
20227 #define CLOCK_DATUM 1
20228 _ACEOF
20229
20230 fi
20231 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20232 echo "${ECHO_T}$ntp_ok" >&6
20233
20234 echo "$as_me:$LINENO: checking Dumb generic hh:mm:ss local clock" >&5
20235 echo $ECHO_N "checking Dumb generic hh:mm:ss local clock... $ECHO_C" >&6
20236 # Check whether --enable-DUMBCLOCK or --disable-DUMBCLOCK was given.
20237 if test "${enable_DUMBCLOCK+set}" = set; then
20238   enableval="$enable_DUMBCLOCK"
20239   ntp_ok=$enableval
20240 else
20241   ntp_ok=$ntp_eac
20242 fi;
20243 if test "$ntp_ok" = "yes"; then
20244     ntp_refclock=yes
20245
20246 cat >>confdefs.h <<\_ACEOF
20247 #define CLOCK_DUMBCLOCK 1
20248 _ACEOF
20249
20250 fi
20251 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20252 echo "${ECHO_T}$ntp_ok" >&6
20253
20254 echo "$as_me:$LINENO: checking Forum Graphic GPS" >&5
20255 echo $ECHO_N "checking Forum Graphic GPS... $ECHO_C" >&6
20256 # Check whether --enable-FG or --disable-FG was given.
20257 if test "${enable_FG+set}" = set; then
20258   enableval="$enable_FG"
20259   ntp_ok=$enableval
20260 else
20261   ntp_ok=$ntp_eac
20262 fi;
20263 if test "$ntp_ok" = "yes"; then
20264     ntp_refclock=yes
20265
20266 cat >>confdefs.h <<\_ACEOF
20267 #define CLOCK_FG 1
20268 _ACEOF
20269
20270 fi
20271 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20272 echo "${ECHO_T}$ntp_ok" >&6
20273
20274 # Requires modem control
20275 echo "$as_me:$LINENO: checking Heath GC-1000 WWV/WWVH receiver" >&5
20276 echo $ECHO_N "checking Heath GC-1000 WWV/WWVH receiver... $ECHO_C" >&6
20277 # Check whether --enable-HEATH or --disable-HEATH was given.
20278 if test "${enable_HEATH+set}" = set; then
20279   enableval="$enable_HEATH"
20280   ntp_ok=$enableval
20281 else
20282   cat >conftest.$ac_ext <<_ACEOF
20283 #line $LINENO "configure"
20284 /* confdefs.h.  */
20285 _ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h.  */
20289 #include <termios.h>
20290 #ifdef HAVE_SYS_IOCTL_H
20291 #include <sys/ioctl.h>
20292 #endif
20293 #ifdef TIOCMBIS
20294          yes
20295 #endif
20296
20297 _ACEOF
20298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20299   $EGREP "yes" >/dev/null 2>&1; then
20300   ntp_ok=$ntp_eac
20301 else
20302   ntp_ok=no
20303 fi
20304 rm -f conftest*
20305
20306 fi;
20307 if test "$ntp_ok" = "yes"; then
20308     ntp_refclock=yes
20309
20310 cat >>confdefs.h <<\_ACEOF
20311 #define CLOCK_HEATH 1
20312 _ACEOF
20313
20314 fi
20315 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20316 echo "${ECHO_T}$ntp_ok" >&6
20317
20318 echo "$as_me:$LINENO: checking for hopf serial clock device" >&5
20319 echo $ECHO_N "checking for hopf serial clock device... $ECHO_C" >&6
20320 # Check whether --enable-HOPFSERIAL or --disable-HOPFSERIAL was given.
20321 if test "${enable_HOPFSERIAL+set}" = set; then
20322   enableval="$enable_HOPFSERIAL"
20323   ntp_ok=$enableval
20324 else
20325   ntp_ok=$ntp_eac
20326 fi;
20327 if test "$ntp_ok" = "yes"; then
20328     ntp_refclock=yes
20329
20330 cat >>confdefs.h <<\_ACEOF
20331 #define CLOCK_HOPF_SERIAL 1
20332 _ACEOF
20333
20334 fi
20335 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20336 echo "${ECHO_T}$ntp_ok" >&6
20337
20338 echo "$as_me:$LINENO: checking for hopf PCI clock 6039" >&5
20339 echo $ECHO_N "checking for hopf PCI clock 6039... $ECHO_C" >&6
20340 # Check whether --enable-HOPFPCI or --disable-HOPFPCI was given.
20341 if test "${enable_HOPFPCI+set}" = set; then
20342   enableval="$enable_HOPFPCI"
20343   ntp_ok=$enableval
20344 else
20345   ntp_ok=$ntp_eac
20346 fi;
20347 if test "$ntp_ok" = "yes"; then
20348     ntp_refclock=yes
20349
20350 cat >>confdefs.h <<\_ACEOF
20351 #define CLOCK_HOPF_PCI 1
20352 _ACEOF
20353
20354 fi
20355 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20356 echo "${ECHO_T}$ntp_ok" >&6
20357
20358 echo "$as_me:$LINENO: checking HP 58503A GPS receiver" >&5
20359 echo $ECHO_N "checking HP 58503A GPS receiver... $ECHO_C" >&6
20360 # Check whether --enable-HPGPS or --disable-HPGPS was given.
20361 if test "${enable_HPGPS+set}" = set; then
20362   enableval="$enable_HPGPS"
20363   ntp_ok=$enableval
20364 else
20365   ntp_ok=$ntp_eac
20366 fi;
20367 if test "$ntp_ok" = "yes"; then
20368     ntp_refclock=yes
20369
20370 cat >>confdefs.h <<\_ACEOF
20371 #define CLOCK_HPGPS 1
20372 _ACEOF
20373
20374 fi
20375 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20376 echo "${ECHO_T}$ntp_ok" >&6
20377
20378 echo "$as_me:$LINENO: checking IRIG audio decoder" >&5
20379 echo $ECHO_N "checking IRIG audio decoder... $ECHO_C" >&6
20380 # Check whether --enable-IRIG or --disable-IRIG was given.
20381 if test "${enable_IRIG+set}" = set; then
20382   enableval="$enable_IRIG"
20383   ntp_ok=$enableval
20384 else
20385   case "$ntp_eac$ntp_canaudio" in
20386      *no*)      ntp_ok=no  ;;
20387      *)         ntp_ok=yes ;;
20388     esac
20389 fi;
20390 if test "$ntp_ok" = "yes"; then
20391     ntp_refclock=yes
20392
20393 cat >>confdefs.h <<\_ACEOF
20394 #define CLOCK_IRIG 1
20395 _ACEOF
20396
20397 fi
20398 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20399 echo "${ECHO_T}$ntp_ok" >&6
20400 case "$ntp_ok$ntp_canaudio" in
20401  yesno) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
20402 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
20403 esac
20404
20405 echo "$as_me:$LINENO: checking for JJY receiver" >&5
20406 echo $ECHO_N "checking for JJY receiver... $ECHO_C" >&6
20407 # Check whether --enable-JJY or --disable-JJY was given.
20408 if test "${enable_JJY+set}" = set; then
20409   enableval="$enable_JJY"
20410   ntp_ok=$enableval
20411 else
20412   ntp_ok=$ntp_eac
20413 fi;
20414 if test "$ntp_ok" = "yes"; then
20415     ntp_refclock=yes
20416
20417 cat >>confdefs.h <<\_ACEOF
20418 #define CLOCK_JJY 1
20419 _ACEOF
20420
20421 fi
20422 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20423 echo "${ECHO_T}$ntp_ok" >&6
20424
20425 echo "$as_me:$LINENO: checking Rockwell Jupiter GPS receiver" >&5
20426 echo $ECHO_N "checking Rockwell Jupiter GPS receiver... $ECHO_C" >&6
20427 # Check whether --enable-JUPITER or --disable-JUPITER was given.
20428 if test "${enable_JUPITER+set}" = set; then
20429   enableval="$enable_JUPITER"
20430   ntp_ok=$enableval
20431 else
20432   ntp_ok=$ntp_eac
20433 fi;
20434 case "$ac_cv_var_jupiter_ok" in
20435  no) ntp_ok=no ;;
20436 esac
20437 if test "$ntp_ok" = "yes"; then
20438     ntp_refclock=yes
20439
20440 cat >>confdefs.h <<\_ACEOF
20441 #define CLOCK_JUPITER 1
20442 _ACEOF
20443
20444 fi
20445 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20446 echo "${ECHO_T}$ntp_ok" >&6
20447
20448 echo "$as_me:$LINENO: checking Leitch CSD 5300 Master Clock System Driver" >&5
20449 echo $ECHO_N "checking Leitch CSD 5300 Master Clock System Driver... $ECHO_C" >&6
20450 # Check whether --enable-LEITCH or --disable-LEITCH was given.
20451 if test "${enable_LEITCH+set}" = set; then
20452   enableval="$enable_LEITCH"
20453   ntp_ok=$enableval
20454 else
20455   ntp_ok=$ntp_eac
20456 fi;
20457 if test "$ntp_ok" = "yes"; then
20458     ntp_refclock=yes
20459
20460 cat >>confdefs.h <<\_ACEOF
20461 #define CLOCK_LEITCH 1
20462 _ACEOF
20463
20464 fi
20465 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20466 echo "${ECHO_T}$ntp_ok" >&6
20467
20468 echo "$as_me:$LINENO: checking local clock reference" >&5
20469 echo $ECHO_N "checking local clock reference... $ECHO_C" >&6
20470 # Check whether --enable-LOCAL-CLOCK or --disable-LOCAL-CLOCK was given.
20471 if test "${enable_LOCAL_CLOCK+set}" = set; then
20472   enableval="$enable_LOCAL_CLOCK"
20473   ntp_ok=$enableval
20474 else
20475   ntp_ok=$ntp_eac
20476 fi;
20477 if test "$ntp_ok" = "yes"; then
20478     ntp_refclock=yes
20479
20480 cat >>confdefs.h <<\_ACEOF
20481 #define CLOCK_LOCAL 1
20482 _ACEOF
20483
20484 fi
20485 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20486 echo "${ECHO_T}$ntp_ok" >&6
20487
20488 echo "$as_me:$LINENO: checking EES M201 MSF receiver" >&5
20489 echo $ECHO_N "checking EES M201 MSF receiver... $ECHO_C" >&6
20490 # Check whether --enable-MSFEES or --disable-MSFEES was given.
20491 if test "${enable_MSFEES+set}" = set; then
20492   enableval="$enable_MSFEES"
20493   ntp_ok=$enableval
20494 else
20495   ntp_ok=$ntp_eac
20496 fi;
20497 if test "$ntp_ok" = "yes"; then
20498     ntp_refclock=yes
20499
20500 cat >>confdefs.h <<\_ACEOF
20501 #define CLOCK_MSFEES 1
20502 _ACEOF
20503
20504 fi
20505 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20506 echo "${ECHO_T}$ntp_ok" >&6
20507
20508 # Not Ultrix
20509 echo "$as_me:$LINENO: checking Magnavox MX4200 GPS receiver" >&5
20510 echo $ECHO_N "checking Magnavox MX4200 GPS receiver... $ECHO_C" >&6
20511 # Check whether --enable-MX4200 or --disable-MX4200 was given.
20512 if test "${enable_MX4200+set}" = set; then
20513   enableval="$enable_MX4200"
20514   ntp_ok=$enableval
20515 else
20516   case "$ac_cv_var_ppsclock" in
20517      yes) ntp_ok=$ntp_eac
20518         ;;
20519      *) ntp_ok=no
20520         ;;
20521     esac
20522 fi;
20523 if test "$ntp_ok" = "yes"; then
20524     ntp_refclock=yes
20525
20526 cat >>confdefs.h <<\_ACEOF
20527 #define CLOCK_MX4200 1
20528 _ACEOF
20529
20530 fi
20531 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20532 echo "${ECHO_T}$ntp_ok" >&6
20533 case "$ntp_ok$host" in
20534  yes*-*-ultrix*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
20535 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
20536 esac
20537
20538 echo "$as_me:$LINENO: checking for NeoClock4X receiver" >&5
20539 echo $ECHO_N "checking for NeoClock4X receiver... $ECHO_C" >&6
20540 # Check whether --enable-NEOCLOCK4X or --disable-NEOCLOCK4X was given.
20541 if test "${enable_NEOCLOCK4X+set}" = set; then
20542   enableval="$enable_NEOCLOCK4X"
20543   ntp_ok=$enableval
20544 else
20545   ntp_ok=$ntp_eac
20546 fi;
20547 if test "$ntp_ok" = "yes"; then
20548     ntp_refclock=yes
20549
20550 cat >>confdefs.h <<\_ACEOF
20551 #define CLOCK_NEOCLOCK4X 1
20552 _ACEOF
20553
20554 fi
20555 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20556 echo "${ECHO_T}$ntp_ok" >&6
20557
20558 echo "$as_me:$LINENO: checking NMEA GPS receiver" >&5
20559 echo $ECHO_N "checking NMEA GPS receiver... $ECHO_C" >&6
20560 # Check whether --enable-NMEA or --disable-NMEA was given.
20561 if test "${enable_NMEA+set}" = set; then
20562   enableval="$enable_NMEA"
20563   ntp_ok=$enableval
20564 else
20565   ntp_ok=$ntp_eac
20566 fi;
20567 if test "$ntp_ok" = "yes"; then
20568     ntp_refclock=yes
20569
20570 cat >>confdefs.h <<\_ACEOF
20571 #define CLOCK_NMEA 1
20572 _ACEOF
20573
20574 fi
20575 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20576 echo "${ECHO_T}$ntp_ok" >&6
20577
20578 echo "$as_me:$LINENO: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
20579 echo $ECHO_N "checking for ONCORE Motorola VP/UT Oncore GPS... $ECHO_C" >&6
20580 # Check whether --enable-ONCORE or --disable-ONCORE was given.
20581 if test "${enable_ONCORE+set}" = set; then
20582   enableval="$enable_ONCORE"
20583   ntp_ok=$enableval
20584 else
20585   ntp_ok=$ntp_eac
20586 fi;
20587 case "$ac_cv_var_oncore_ok" in
20588  no) ntp_ok=no ;;
20589 esac
20590 if test "$ntp_ok" = "yes"; then
20591     ntp_refclock=yes
20592
20593 cat >>confdefs.h <<\_ACEOF
20594 #define CLOCK_ONCORE 1
20595 _ACEOF
20596
20597 fi
20598 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20599 echo "${ECHO_T}$ntp_ok" >&6
20600
20601 echo "$as_me:$LINENO: checking for Palisade clock" >&5
20602 echo $ECHO_N "checking for Palisade clock... $ECHO_C" >&6
20603 # Check whether --enable-PALISADE or --disable-PALISADE was given.
20604 if test "${enable_PALISADE+set}" = set; then
20605   enableval="$enable_PALISADE"
20606   ntp_ok=$enableval
20607 else
20608   case "$ac_cv_header_termios_h" in
20609     yes)
20610         ntp_ok=$ntp_eac
20611         ;;
20612     *) ntp_ok=no
20613         ;;
20614     esac
20615 fi;
20616
20617 if test "$ntp_ok" = "yes"; then
20618     ntp_refclock=yes
20619
20620 cat >>confdefs.h <<\_ACEOF
20621 #define CLOCK_PALISADE 1
20622 _ACEOF
20623
20624 fi
20625 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20626 echo "${ECHO_T}$ntp_ok" >&6
20627
20628 echo "$as_me:$LINENO: checking Conrad parallel port radio clock" >&5
20629 echo $ECHO_N "checking Conrad parallel port radio clock... $ECHO_C" >&6
20630 # Check whether --enable-PCF or --disable-PCF was given.
20631 if test "${enable_PCF+set}" = set; then
20632   enableval="$enable_PCF"
20633   ntp_ok=$enableval
20634 else
20635   ntp_ok=$ntp_eac
20636 fi;
20637 if test "$ntp_ok" = "yes"; then
20638     ntp_refclock=yes
20639
20640 cat >>confdefs.h <<\_ACEOF
20641 #define CLOCK_PCF 1
20642 _ACEOF
20643
20644 fi
20645 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20646 echo "${ECHO_T}$ntp_ok" >&6
20647
20648 echo "$as_me:$LINENO: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
20649 echo $ECHO_N "checking PST/Traconex 1020 WWV/WWVH receiver... $ECHO_C" >&6
20650 # Check whether --enable-PST or --disable-PST was given.
20651 if test "${enable_PST+set}" = set; then
20652   enableval="$enable_PST"
20653   ntp_ok=$enableval
20654 else
20655   ntp_ok=$ntp_eac
20656 fi;
20657 if test "$ntp_ok" = "yes"; then
20658     ntp_refclock=yes
20659
20660 cat >>confdefs.h <<\_ACEOF
20661 #define CLOCK_PST 1
20662 _ACEOF
20663
20664 fi
20665 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20666 echo "${ECHO_T}$ntp_ok" >&6
20667
20668 # Requires modem control
20669 echo "$as_me:$LINENO: checking PTB modem service" >&5
20670 echo $ECHO_N "checking PTB modem service... $ECHO_C" >&6
20671 # Check whether --enable-PTBACTS or --disable-PTBACTS was given.
20672 if test "${enable_PTBACTS+set}" = set; then
20673   enableval="$enable_PTBACTS"
20674   ntp_ok=$enableval
20675 else
20676   cat >conftest.$ac_ext <<_ACEOF
20677 #line $LINENO "configure"
20678 /* confdefs.h.  */
20679 _ACEOF
20680 cat confdefs.h >>conftest.$ac_ext
20681 cat >>conftest.$ac_ext <<_ACEOF
20682 /* end confdefs.h.  */
20683 #include <termios.h>
20684 #ifdef HAVE_SYS_IOCTL_H
20685 #include <sys/ioctl.h>
20686 #endif
20687 #ifdef TIOCMBIS
20688          yes
20689 #endif
20690
20691 _ACEOF
20692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20693   $EGREP "yes" >/dev/null 2>&1; then
20694   ntp_ok=$ntp_eac
20695 else
20696   ntp_ok=no
20697 fi
20698 rm -f conftest*
20699
20700 fi;
20701 if test "$ntp_ok" = "yes"; then
20702     ntp_refclock=yes
20703
20704 cat >>confdefs.h <<\_ACEOF
20705 #define CLOCK_PTBACTS 1
20706 _ACEOF
20707
20708 fi
20709 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20710 echo "${ECHO_T}$ntp_ok" >&6
20711
20712 echo "$as_me:$LINENO: checking RIPENCC specific Trimble driver" >&5
20713 echo $ECHO_N "checking RIPENCC specific Trimble driver... $ECHO_C" >&6
20714 # Check whether --enable-RIPENCC or --disable-RIPENCC was given.
20715 if test "${enable_RIPENCC+set}" = set; then
20716   enableval="$enable_RIPENCC"
20717   ntp_ok=$enableval
20718 else
20719   ntp_ok=no
20720 fi;
20721 # 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
20722 case "$ac_cv_var_ripe_ncc_ok" in
20723  no) ntp_ok=no ;;
20724 esac
20725 if test "$ntp_ok" = "yes"; then
20726     ntp_refclock=yes
20727
20728 cat >>confdefs.h <<\_ACEOF
20729 #define CLOCK_RIPENCC
20730 _ACEOF
20731
20732 fi
20733 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20734 echo "${ECHO_T}$ntp_ok" >&6
20735
20736 # Danny Meyer says SHM compiles (with a few warnings) under Win32.
20737 # For *IX, we need sys/ipc.h and sys/shm.h.
20738 echo "$as_me:$LINENO: checking for SHM clock attached thru shared memory" >&5
20739 echo $ECHO_N "checking for SHM clock attached thru shared memory... $ECHO_C" >&6
20740 # Check whether --enable-SHM or --disable-SHM was given.
20741 if test "${enable_SHM+set}" = set; then
20742   enableval="$enable_SHM"
20743   ntp_ok=$enableval
20744 else
20745   case "$ntp_eac$ntp_canshm" in
20746  *no*)  ntp_ok=no  ;;
20747  *)     ntp_ok=yes ;;
20748 esac
20749 fi;
20750 if test "$ntp_ok" = "yes"; then
20751     ntp_refclock=yes
20752
20753 cat >>confdefs.h <<\_ACEOF
20754 #define CLOCK_SHM 1
20755 _ACEOF
20756
20757 fi
20758 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20759 echo "${ECHO_T}$ntp_ok" >&6
20760
20761 echo "$as_me:$LINENO: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
20762 echo $ECHO_N "checking Spectracom 8170/Netclock/2 WWVB receiver... $ECHO_C" >&6
20763 # Check whether --enable-SPECTRACOM or --disable-SPECTRACOM was given.
20764 if test "${enable_SPECTRACOM+set}" = set; then
20765   enableval="$enable_SPECTRACOM"
20766   ntp_ok=$enableval
20767 else
20768   ntp_ok=$ntp_eac
20769 fi;
20770 if test "$ntp_ok" = "yes"; then
20771     ntp_refclock=yes
20772
20773 cat >>confdefs.h <<\_ACEOF
20774 #define CLOCK_SPECTRACOM 1
20775 _ACEOF
20776
20777 fi
20778 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20779 echo "${ECHO_T}$ntp_ok" >&6
20780
20781 echo "$as_me:$LINENO: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
20782 echo $ECHO_N "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... $ECHO_C" >&6
20783 # Check whether --enable-TPRO or --disable-TPRO was given.
20784 if test "${enable_TPRO+set}" = set; then
20785   enableval="$enable_TPRO"
20786   ntp_ok=$enableval
20787 else
20788   case "$ac_cv_header_sys_tpro_h" in
20789      yes)
20790         ntp_ok=$ntp_eac
20791         ;;
20792      *) ntp_ok=no
20793         ;;
20794     esac
20795 fi;
20796 if test "$ntp_ok" = "yes"; then
20797     ntp_refclock=yes
20798
20799 cat >>confdefs.h <<\_ACEOF
20800 #define CLOCK_TPRO 1
20801 _ACEOF
20802
20803 fi
20804 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20805 echo "${ECHO_T}$ntp_ok" >&6
20806 case "$ntp_ok$ac_cv_header_sys_tpro" in
20807  yesno) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
20808 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
20809 esac
20810
20811 echo "$as_me:$LINENO: checking TRAK 8810 GPS receiver" >&5
20812 echo $ECHO_N "checking TRAK 8810 GPS receiver... $ECHO_C" >&6
20813 # Check whether --enable-TRAK or --disable-TRAK was given.
20814 if test "${enable_TRAK+set}" = set; then
20815   enableval="$enable_TRAK"
20816   ntp_ok=$enableval
20817 else
20818   ntp_ok=$ntp_eac
20819 fi;
20820 if test "$ntp_ok" = "yes"; then
20821     ntp_refclock=yes
20822
20823 cat >>confdefs.h <<\_ACEOF
20824 #define CLOCK_TRAK 1
20825 _ACEOF
20826
20827 fi
20828 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20829 echo "${ECHO_T}$ntp_ok" >&6
20830
20831 # Not on a vax-dec-bsd
20832 echo "$as_me:$LINENO: checking Kinemetrics/TrueTime receivers" >&5
20833 echo $ECHO_N "checking Kinemetrics/TrueTime receivers... $ECHO_C" >&6
20834 # Check whether --enable-TRUETIME or --disable-TRUETIME was given.
20835 if test "${enable_TRUETIME+set}" = set; then
20836   enableval="$enable_TRUETIME"
20837   ntp_ok=$enableval
20838 else
20839   case "$host" in
20840      vax-dec-bsd)
20841         ntp_ok=no
20842         ;;
20843      *)
20844         ntp_ok=$ntp_eac
20845         ;;
20846     esac
20847 fi;
20848 if test "$ntp_ok" = "yes"; then
20849     ntp_refclock=yes
20850
20851 cat >>confdefs.h <<\_ACEOF
20852 #define CLOCK_TRUETIME 1
20853 _ACEOF
20854
20855 fi
20856 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20857 echo "${ECHO_T}$ntp_ok" >&6
20858 case "$ntp_ok$host" in
20859  yesvax-dec-bsd) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
20860 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
20861 esac
20862
20863 echo "$as_me:$LINENO: checking TrueTime 560 IRIG-B decoder" >&5
20864 echo $ECHO_N "checking TrueTime 560 IRIG-B decoder... $ECHO_C" >&6
20865 # Check whether --enable-TT560 or --disable-TT560 was given.
20866 if test "${enable_TT560+set}" = set; then
20867   enableval="$enable_TT560"
20868   ntp_ok=$enableval
20869 else
20870   ntp_ok=no
20871 fi;
20872 if test "$ntp_ok" = "yes"; then
20873     ntp_refclock=yes
20874
20875 cat >>confdefs.h <<\_ACEOF
20876 #define CLOCK_TT560
20877 _ACEOF
20878
20879 fi
20880 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20881 echo "${ECHO_T}$ntp_ok" >&6
20882
20883 echo "$as_me:$LINENO: checking Ultralink M320 WWVB receiver" >&5
20884 echo $ECHO_N "checking Ultralink M320 WWVB receiver... $ECHO_C" >&6
20885 # Check whether --enable-ULINK or --disable-ULINK was given.
20886 if test "${enable_ULINK+set}" = set; then
20887   enableval="$enable_ULINK"
20888   ntp_ok=$enableval
20889 else
20890   ntp_ok=$ntp_eac
20891 fi;
20892 if test "$ntp_ok" = "yes"; then
20893     ntp_refclock=yes
20894
20895 cat >>confdefs.h <<\_ACEOF
20896 #define CLOCK_ULINK 1
20897 _ACEOF
20898
20899 fi
20900 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20901 echo "${ECHO_T}$ntp_ok" >&6
20902
20903 # Requires modem control
20904 echo "$as_me:$LINENO: checking USNO modem service" >&5
20905 echo $ECHO_N "checking USNO modem service... $ECHO_C" >&6
20906 # Check whether --enable-USNO or --disable-USNO was given.
20907 if test "${enable_USNO+set}" = set; then
20908   enableval="$enable_USNO"
20909   ntp_ok=$enableval
20910 else
20911   cat >conftest.$ac_ext <<_ACEOF
20912 #line $LINENO "configure"
20913 /* confdefs.h.  */
20914 _ACEOF
20915 cat confdefs.h >>conftest.$ac_ext
20916 cat >>conftest.$ac_ext <<_ACEOF
20917 /* end confdefs.h.  */
20918 #include <termios.h>
20919 #ifdef HAVE_SYS_IOCTL_H
20920 #include <sys/ioctl.h>
20921 #endif
20922 #ifdef TIOCMBIS
20923          yes
20924 #endif
20925
20926 _ACEOF
20927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20928   $EGREP "yes" >/dev/null 2>&1; then
20929   ntp_ok=$ntp_eac
20930 else
20931   ntp_ok=no
20932 fi
20933 rm -f conftest*
20934
20935 fi;
20936 if test "$ntp_ok" = "yes"; then
20937     ntp_refclock=yes
20938
20939 cat >>confdefs.h <<\_ACEOF
20940 #define CLOCK_USNO 1
20941 _ACEOF
20942
20943 fi
20944 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20945 echo "${ECHO_T}$ntp_ok" >&6
20946
20947 echo "$as_me:$LINENO: checking WWV receiver" >&5
20948 echo $ECHO_N "checking WWV receiver... $ECHO_C" >&6
20949 # Check whether --enable-WWV or --disable-WWV was given.
20950 if test "${enable_WWV+set}" = set; then
20951   enableval="$enable_WWV"
20952   ntp_ok=$enableval
20953 else
20954   case "$ntp_eac$ntp_canaudio" in
20955      *no*)      ntp_ok=no  ;;
20956      *)         ntp_ok=yes ;;
20957     esac
20958 fi;
20959 if test "$ntp_ok" = "yes"; then
20960     ntp_refclock=yes
20961
20962 cat >>confdefs.h <<\_ACEOF
20963 #define CLOCK_WWV 1
20964 _ACEOF
20965
20966 fi
20967 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20968 echo "${ECHO_T}$ntp_ok" >&6
20969 case "$ntp_ok$ntp_canaudio" in
20970  yesno) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
20971 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
20972 esac
20973
20974 echo "$as_me:$LINENO: checking for Zyfer receiver" >&5
20975 echo $ECHO_N "checking for Zyfer receiver... $ECHO_C" >&6
20976 # Check whether --enable-ZYFER or --disable-ZYFER was given.
20977 if test "${enable_ZYFER+set}" = set; then
20978   enableval="$enable_ZYFER"
20979   ntp_ok=$enableval
20980 else
20981   ntp_ok=$ntp_eac
20982 fi;
20983 if test "$ntp_ok" = "yes"; then
20984     ntp_refclock=yes
20985
20986 cat >>confdefs.h <<\_ACEOF
20987 #define CLOCK_ZYFER 1
20988 _ACEOF
20989
20990 fi
20991 echo "$as_me:$LINENO: result: $ntp_ok" >&5
20992 echo "${ECHO_T}$ntp_ok" >&6
20993
20994 echo "$as_me:$LINENO: checking for default inclusion of all suitable PARSE clocks" >&5
20995 echo $ECHO_N "checking for default inclusion of all suitable PARSE clocks... $ECHO_C" >&6
20996 # Check whether --enable-parse-clocks or --disable-parse-clocks was given.
20997 if test "${enable_parse_clocks+set}" = set; then
20998   enableval="$enable_parse_clocks"
20999   ntp_eapc=$enableval
21000 else
21001   case "$ntp_eac" in
21002      yes) ntp_eapc=$ntp_canparse ;;
21003      *) ntp_eapc=no ;;
21004     esac
21005     ntp_eapc=no
21006 fi;
21007 echo "$as_me:$LINENO: result: $ntp_eapc" >&5
21008 echo "${ECHO_T}$ntp_eapc" >&6
21009
21010 case "$ntp_eac$ntp_eapc$ntp_canparse" in
21011  noyes*)
21012     { { echo "$as_me:$LINENO: error: \"--enable-parse-clocks\" requires \"--enable-all-clocks\"." >&5
21013 echo "$as_me: error: \"--enable-parse-clocks\" requires \"--enable-all-clocks\"." >&2;}
21014    { (exit 1); exit 1; }; }
21015     ;;
21016  yesyesno)
21017     { { echo "$as_me:$LINENO: error: You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" >&5
21018 echo "$as_me: error: You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" >&2;}
21019    { (exit 1); exit 1; }; }
21020     ;;
21021  *) ;;
21022 esac
21023
21024 ntp_libparse=no
21025 ntp_parseutil=no
21026 ntp_rawdcf=no
21027
21028 echo "$as_me:$LINENO: checking Diem Computime Radio Clock" >&5
21029 echo $ECHO_N "checking Diem Computime Radio Clock... $ECHO_C" >&6
21030 # Check whether --enable-COMPUTIME or --disable-COMPUTIME was given.
21031 if test "${enable_COMPUTIME+set}" = set; then
21032   enableval="$enable_COMPUTIME"
21033   ntp_ok=$enableval
21034 else
21035   ntp_ok=$ntp_eapc
21036 fi;
21037 if test "$ntp_ok" = "yes"; then
21038     ntp_libparse=yes
21039     ntp_refclock=yes
21040
21041 cat >>confdefs.h <<\_ACEOF
21042 #define CLOCK_COMPUTIME 1
21043 _ACEOF
21044
21045 fi
21046 echo "$as_me:$LINENO: result: $ntp_ok" >&5
21047 echo "${ECHO_T}$ntp_ok" >&6
21048 case "$ntp_ok$ntp_canparse" in
21049  yesno)
21050     { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
21051 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
21052    { (exit 1); exit 1; }; }
21053     ;;
21054 esac
21055
21056 echo "$as_me:$LINENO: checking ELV/DCF7000 clock" >&5
21057 echo $ECHO_N "checking ELV/DCF7000 clock... $ECHO_C" >&6
21058 # Check whether --enable-DCF7000 or --disable-DCF7000 was given.
21059 if test "${enable_DCF7000+set}" = set; then
21060   enableval="$enable_DCF7000"
21061   ntp_ok=$enableval
21062 else
21063   ntp_ok=$ntp_eapc
21064 fi;
21065 if test "$ntp_ok" = "yes"; then
21066     ntp_libparse=yes
21067     ntp_refclock=yes
21068
21069 cat >>confdefs.h <<\_ACEOF
21070 #define CLOCK_DCF7000 1
21071 _ACEOF
21072
21073 fi
21074 echo "$as_me:$LINENO: result: $ntp_ok" >&5
21075 echo "${ECHO_T}$ntp_ok" >&6
21076 case "$ntp_ok$ntp_canparse" in
21077  yesno)
21078     { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
21079 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
21080    { (exit 1); exit 1; }; }
21081     ;;
21082 esac
21083
21084 echo "$as_me:$LINENO: checking HOPF 6021 clock" >&5
21085 echo $ECHO_N "checking HOPF 6021 clock... $ECHO_C" >&6
21086 # Check whether --enable-HOPF6021 or --disable-HOPF6021 was given.
21087 if test "${enable_HOPF6021+set}" = set; then
21088   enableval="$enable_HOPF6021"
21089   ntp_ok=$enableval
21090 else
21091   ntp_ok=$ntp_eapc
21092 fi;
21093 if test "$ntp_ok" = "yes"; then
21094     ntp_libparse=yes
21095     ntp_refclock=yes
21096
21097 cat >>confdefs.h <<\_ACEOF
21098 #define CLOCK_HOPF6021 1
21099 _ACEOF
21100
21101 fi
21102 echo "$as_me:$LINENO: result: $ntp_ok" >&5
21103 echo "${ECHO_T}$ntp_ok" >&6
21104 case "$ntp_ok$ntp_canparse" in
21105  yesno)
21106     { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
21107 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
21108    { (exit 1); exit 1; }; }
21109     ;;
21110 esac
21111
21112 echo "$as_me:$LINENO: checking Meinberg clocks" >&5
21113 echo $ECHO_N "checking Meinberg clocks... $ECHO_C" >&6
21114 # Check whether --enable-MEINBERG or --disable-MEINBERG was given.
21115 if test "${enable_MEINBERG+set}" = set; then
21116   enableval="$enable_MEINBERG"
21117   ntp_ok=$enableval
21118 else
21119   ntp_ok=$ntp_eapc
21120 fi;
21121 if test "$ntp_ok" = "yes"; then
21122     ntp_libparse=yes
21123     ntp_refclock=yes
21124
21125 cat >>confdefs.h <<\_ACEOF
21126 #define CLOCK_MEINBERG 1
21127 _ACEOF
21128
21129 fi
21130 echo "$as_me:$LINENO: result: $ntp_ok" >&5
21131 echo "${ECHO_T}$ntp_ok" >&6
21132 case "$ntp_ok$ntp_canparse" in
21133  yesno)
21134     { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
21135 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
21136    { (exit 1); exit 1; }; }
21137     ;;
21138 esac
21139
21140 echo "$as_me:$LINENO: checking DCF77 raw time code" >&5
21141 echo $ECHO_N "checking DCF77 raw time code... $ECHO_C" >&6
21142 # Check whether --enable-RAWDCF or --disable-RAWDCF was given.
21143 if test "${enable_RAWDCF+set}" = set; then
21144   enableval="$enable_RAWDCF"
21145   ntp_ok=$enableval
21146 else
21147   ntp_ok=$ntp_eapc
21148 fi;
21149 if test "$ntp_ok" = "yes"; then
21150     ntp_libparse=yes
21151     ntp_parseutil=yes
21152     ntp_refclock=yes
21153     ntp_rawdcf=yes
21154
21155 cat >>confdefs.h <<\_ACEOF
21156 #define CLOCK_RAWDCF 1
21157 _ACEOF
21158
21159 fi
21160 echo "$as_me:$LINENO: result: $ntp_ok" >&5
21161 echo "${ECHO_T}$ntp_ok" >&6
21162 case "$ntp_ok$ntp_canparse" in
21163  yesno)
21164     { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
21165 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
21166    { (exit 1); exit 1; }; }
21167     ;;
21168 esac
21169
21170 case "$ntp_rawdcf" in
21171  yes)
21172     echo "$as_me:$LINENO: checking if we must enable parity for RAWDCF" >&5
21173 echo $ECHO_N "checking if we must enable parity for RAWDCF... $ECHO_C" >&6
21174 if test "${ac_cv_var_rawdcf_parity+set}" = set; then
21175   echo $ECHO_N "(cached) $ECHO_C" >&6
21176 else
21177   ans=no
21178     case "$host" in
21179      *-*-linux*)
21180         ans=yes
21181         ;;
21182     esac
21183     ac_cv_var_rawdcf_parity=$ans
21184 fi
21185 echo "$as_me:$LINENO: result: $ac_cv_var_rawdcf_parity" >&5
21186 echo "${ECHO_T}$ac_cv_var_rawdcf_parity" >&6
21187     case "$ac_cv_var_rawdcf_parity" in
21188      yes)
21189 cat >>confdefs.h <<\_ACEOF
21190 #define RAWDCF_NO_IGNPAR 1
21191 _ACEOF
21192  ;;
21193     esac
21194     ;;
21195
21196  *) # HMS: Is this a good idea?
21197     ac_cv_var_rawdcf_parity=no
21198     ;;
21199 esac
21200
21201 echo "$as_me:$LINENO: checking RCC 8000 clock" >&5
21202 echo $ECHO_N "checking RCC 8000 clock... $ECHO_C" >&6
21203 # Check whether --enable-RCC8000 or --disable-RCC8000 was given.
21204 if test "${enable_RCC8000+set}" = set; then
21205   enableval="$enable_RCC8000"
21206   ntp_ok=$enableval
21207 else
21208   ntp_ok=$ntp_eapc
21209 fi;
21210 if test "$ntp_ok" = "yes"; then
21211     ntp_libparse=yes
21212     ntp_refclock=yes
21213
21214 cat >>confdefs.h <<\_ACEOF
21215 #define CLOCK_RCC8000 1
21216 _ACEOF
21217
21218 fi
21219 echo "$as_me:$LINENO: result: $ntp_ok" >&5
21220 echo "${ECHO_T}$ntp_ok" >&6
21221 case "$ntp_ok$ntp_canparse" in
21222  yesno)
21223     { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
21224 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
21225    { (exit 1); exit 1; }; }
21226     ;;
21227 esac
21228
21229 echo "$as_me:$LINENO: checking Schmid DCF77 clock" >&5
21230 echo $ECHO_N "checking Schmid DCF77 clock... $ECHO_C" >&6
21231 # Check whether --enable-SCHMID or --disable-SCHMID was given.
21232 if test "${enable_SCHMID+set}" = set; then
21233   enableval="$enable_SCHMID"
21234   ntp_ok=$enableval
21235 else
21236   ntp_ok=$ntp_eapc
21237 fi;
21238 if test "$ntp_ok" = "yes"; then
21239     ntp_libparse=yes
21240     ntp_refclock=yes
21241
21242 cat >>confdefs.h <<\_ACEOF
21243 #define CLOCK_SCHMID 1
21244 _ACEOF
21245
21246 fi
21247 echo "$as_me:$LINENO: result: $ntp_ok" >&5
21248 echo "${ECHO_T}$ntp_ok" >&6
21249 case "$ntp_ok$ntp_canparse" in
21250  yesno)
21251     { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
21252 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
21253    { (exit 1); exit 1; }; }
21254     ;;
21255 esac
21256
21257 echo "$as_me:$LINENO: checking Trimble GPS receiver/TAIP protocol" >&5
21258 echo $ECHO_N "checking Trimble GPS receiver/TAIP protocol... $ECHO_C" >&6
21259 # Check whether --enable-TRIMTAIP or --disable-TRIMTAIP was given.
21260 if test "${enable_TRIMTAIP+set}" = set; then
21261   enableval="$enable_TRIMTAIP"
21262   ntp_ok=$enableval
21263 else
21264   ntp_ok=$ntp_eapc
21265 fi;
21266 if test "$ntp_ok" = "yes"; then
21267     ntp_libparse=yes
21268     ntp_refclock=yes
21269
21270 cat >>confdefs.h <<\_ACEOF
21271 #define CLOCK_TRIMTAIP 1
21272 _ACEOF
21273
21274 fi
21275 echo "$as_me:$LINENO: result: $ntp_ok" >&5
21276 echo "${ECHO_T}$ntp_ok" >&6
21277 case "$ntp_ok$ntp_canparse" in
21278  yesno)
21279     { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
21280 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
21281    { (exit 1); exit 1; }; }
21282     ;;
21283 esac
21284
21285 echo "$as_me:$LINENO: checking Trimble GPS receiver/TSIP protocol" >&5
21286 echo $ECHO_N "checking Trimble GPS receiver/TSIP protocol... $ECHO_C" >&6
21287 # Check whether --enable-TRIMTSIP or --disable-TRIMTSIP was given.
21288 if test "${enable_TRIMTSIP+set}" = set; then
21289   enableval="$enable_TRIMTSIP"
21290   ntp_ok=$enableval
21291 else
21292   ntp_ok=$ntp_eapc
21293 fi;
21294 if test "$ntp_ok" = "yes"; then
21295     ntp_libparse=yes
21296     ntp_refclock=yes
21297
21298 cat >>confdefs.h <<\_ACEOF
21299 #define CLOCK_TRIMTSIP 1
21300 _ACEOF
21301
21302 fi
21303 echo "$as_me:$LINENO: result: $ntp_ok" >&5
21304 echo "${ECHO_T}$ntp_ok" >&6
21305 case "$ntp_ok$ntp_canparse" in
21306  yesno)
21307     { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
21308 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
21309    { (exit 1); exit 1; }; }
21310     ;;
21311 esac
21312
21313 echo "$as_me:$LINENO: checking WHARTON 400A Series clock" >&5
21314 echo $ECHO_N "checking WHARTON 400A Series clock... $ECHO_C" >&6
21315 # Check whether --enable-WHARTON or --disable-WHARTON was given.
21316 if test "${enable_WHARTON+set}" = set; then
21317   enableval="$enable_WHARTON"
21318   ntp_ok=$enableval
21319 else
21320   ntp_ok=$ntp_eapc
21321 fi;
21322 if test "$ntp_ok" = "yes"; then
21323     ntp_libparse=yes
21324     ntp_refclock=yes
21325
21326 cat >>confdefs.h <<\_ACEOF
21327 #define CLOCK_WHARTON_400A 1
21328 _ACEOF
21329
21330 fi
21331 echo "$as_me:$LINENO: result: $ntp_ok" >&5
21332 echo "${ECHO_T}$ntp_ok" >&6
21333 case "$ntp_ok$ntp_canparse" in
21334  yesno)
21335     { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
21336 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
21337    { (exit 1); exit 1; }; }
21338     ;;
21339 esac
21340
21341 echo "$as_me:$LINENO: checking VARITEXT clock" >&5
21342 echo $ECHO_N "checking VARITEXT clock... $ECHO_C" >&6
21343 # Check whether --enable-VARITEXT or --disable-VARITEXT was given.
21344 if test "${enable_VARITEXT+set}" = set; then
21345   enableval="$enable_VARITEXT"
21346   ntp_ok=$enableval
21347 else
21348   ntp_ok=$ntp_eapc
21349 fi;
21350 if test "$ntp_ok" = "yes"; then
21351     ntp_libparse=yes
21352     ntp_refclock=yes
21353
21354 cat >>confdefs.h <<\_ACEOF
21355 #define CLOCK_VARITEXT 1
21356 _ACEOF
21357
21358 fi
21359 echo "$as_me:$LINENO: result: $ntp_ok" >&5
21360 echo "${ECHO_T}$ntp_ok" >&6
21361 case "$ntp_ok$ntp_canparse" in
21362  yesno)
21363     { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
21364 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
21365    { (exit 1); exit 1; }; }
21366     ;;
21367 esac
21368
21369
21370
21371
21372 echo "$as_me:$LINENO: checking if we need to make and use the parse libraries" >&5
21373 echo $ECHO_N "checking if we need to make and use the parse libraries... $ECHO_C" >&6
21374 ans=no
21375 case "$ntp_libparse" in
21376  yes)
21377     ans=yes
21378
21379 cat >>confdefs.h <<\_ACEOF
21380 #define CLOCK_PARSE 1
21381 _ACEOF
21382
21383     LIBPARSE=../libparse/libparse.a
21384     MAKE_LIBPARSE=libparse.a
21385     MAKE_CHECK_Y2K=check_y2k
21386
21387 cat >>confdefs.h <<\_ACEOF
21388 #define PPS_SAMPLE 1
21389 _ACEOF
21390
21391     cat >>confdefs.h <<\_ACEOF
21392 #define CLOCK_ATOM 1
21393 _ACEOF
21394
21395     ;;
21396 esac
21397 echo "$as_me:$LINENO: result: $ans" >&5
21398 echo "${ECHO_T}$ans" >&6
21399
21400 # AC_SUBST(RSAOBJS)
21401 # AC_SUBST(RSASRCS)
21402 # AC_SUBST(RSADIR)
21403 # AC_SUBST(RSAREF)
21404 # AC_SUBST(LIBRSAREF)
21405 # AC_SUBST(MAKE_LIBRSAREF)
21406
21407
21408
21409
21410
21411
21412
21413 echo "$as_me:$LINENO: checking for openssl library directory" >&5
21414 echo $ECHO_N "checking for openssl library directory... $ECHO_C" >&6
21415
21416 # Check whether --with-openssl-libdir or --without-openssl-libdir was given.
21417 if test "${with_openssl_libdir+set}" = set; then
21418   withval="$with_openssl_libdir"
21419   ans=$withval
21420 else
21421   ans=yes
21422 fi;
21423 case "$ans" in
21424  no) ;;
21425  yes) # Look in:
21426     ans="/usr/lib /usr/lib/openssl /usr/local/lib /usr/local/ssl/lib"
21427     ;;
21428  *) # Look where they said
21429     ;;
21430 esac
21431 case "$ans" in
21432  no) ;;
21433  *) # Look for libcrypto.a and libssl.a:
21434     for i in $ans no
21435     do
21436         case "$host" in
21437          *-*-darwin*)
21438             test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
21439             ;;
21440          *)
21441             test -f $i/libcrypto.a -a -f $i/libssl.a && break
21442             ;;
21443         esac
21444     done
21445     case "$i" in
21446      no)
21447         ans=no
21448         OPENSSL_LIB=
21449         ;;
21450      *) ans=$i
21451         OPENSSL_LIB=$ans
21452         ;;
21453     esac
21454     ;;
21455 esac
21456 echo "$as_me:$LINENO: result: $ans" >&5
21457 echo "${ECHO_T}$ans" >&6
21458
21459 echo "$as_me:$LINENO: checking for openssl include directory" >&5
21460 echo $ECHO_N "checking for openssl include directory... $ECHO_C" >&6
21461
21462 # Check whether --with-openssl-incdir or --without-openssl-incdir was given.
21463 if test "${with_openssl_incdir+set}" = set; then
21464   withval="$with_openssl_incdir"
21465   ans=$withval
21466 else
21467   ans=yes
21468 fi;
21469 case "$ans" in
21470  no) ;;
21471  yes) # look in:
21472     ans="/usr/include /usr/local/include /usr/local/ssl/include"
21473     ;;
21474  *) # Look where they said
21475     ;;
21476 esac
21477 case "$ans" in
21478  no) ;;
21479  *) # look for openssl/opensslconf.h:
21480     for i in $ans no
21481     do
21482         test -f $i/openssl/opensslconf.h && break
21483     done
21484     case "$i" in
21485      no)
21486         ans=no
21487         OPENSSL_INC=
21488         ;;
21489      *) ans=$i
21490         OPENSSL_INC=$ans
21491         ;;
21492     esac
21493     ;;
21494 esac
21495 echo "$as_me:$LINENO: result: $ans" >&5
21496 echo "${ECHO_T}$ans" >&6
21497
21498
21499 # Check whether --with-crypto or --without-crypto was given.
21500 if test "${with_crypto+set}" = set; then
21501   withval="$with_crypto"
21502   ans=$withval
21503 else
21504   ans=yes
21505 fi;
21506 case "$ans" in
21507  no) ;;
21508  yes|openssl)
21509     if test -z "$OPENSSL_LIB" -o -z "$OPENSSL_INC"
21510     then
21511         ans=no
21512     else
21513         # We have OpenSSL inc/lib - use them.
21514         ans=openssl
21515         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INC"
21516         LDFLAGS="$LDFLAGS -L$OPENSSL_LIB"
21517         LCRYPTO=-lcrypto
21518
21519         MAKE_NTP_KEYGEN=ntp-keygen
21520
21521 cat >>confdefs.h <<\_ACEOF
21522 #define OPENSSL
21523 _ACEOF
21524
21525
21526
21527 for ac_func in EVP_md2 EVP_mdc2
21528 do
21529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21530 echo "$as_me:$LINENO: checking for $ac_func" >&5
21531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21532 if eval "test \"\${$as_ac_var+set}\" = set"; then
21533   echo $ECHO_N "(cached) $ECHO_C" >&6
21534 else
21535   cat >conftest.$ac_ext <<_ACEOF
21536 #line $LINENO "configure"
21537 /* confdefs.h.  */
21538 _ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h.  */
21542 /* System header to define __stub macros and hopefully few prototypes,
21543     which can conflict with char $ac_func (); below.
21544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21545     <limits.h> exists even on freestanding compilers.  */
21546 #ifdef __STDC__
21547 # include <limits.h>
21548 #else
21549 # include <assert.h>
21550 #endif
21551 /* Override any gcc2 internal prototype to avoid an error.  */
21552 #ifdef __cplusplus
21553 extern "C"
21554 {
21555 #endif
21556 /* We use char because int might match the return type of a gcc2
21557    builtin and then its argument prototype would still apply.  */
21558 char $ac_func ();
21559 /* The GNU C library defines this for functions which it implements
21560     to always fail with ENOSYS.  Some functions are actually named
21561     something starting with __ and the normal name is an alias.  */
21562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21563 choke me
21564 #else
21565 char (*f) () = $ac_func;
21566 #endif
21567 #ifdef __cplusplus
21568 }
21569 #endif
21570
21571 int
21572 main ()
21573 {
21574 return f != $ac_func;
21575   ;
21576   return 0;
21577 }
21578 _ACEOF
21579 rm -f conftest.$ac_objext conftest$ac_exeext
21580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21581   (eval $ac_link) 2>&5
21582   ac_status=$?
21583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584   (exit $ac_status); } &&
21585          { ac_try='test -s conftest$ac_exeext'
21586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21587   (eval $ac_try) 2>&5
21588   ac_status=$?
21589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590   (exit $ac_status); }; }; then
21591   eval "$as_ac_var=yes"
21592 else
21593   echo "$as_me: failed program was:" >&5
21594 sed 's/^/| /' conftest.$ac_ext >&5
21595
21596 eval "$as_ac_var=no"
21597 fi
21598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21599 fi
21600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21602 if test `eval echo '${'$as_ac_var'}'` = yes; then
21603   cat >>confdefs.h <<_ACEOF
21604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21605 _ACEOF
21606
21607 fi
21608 done
21609
21610     fi
21611     ;;
21612 esac
21613 echo "$as_me:$LINENO: checking for the level of crypto support" >&5
21614 echo $ECHO_N "checking for the level of crypto support... $ECHO_C" >&6
21615 echo "$as_me:$LINENO: result: $ans" >&5
21616 echo "${ECHO_T}$ans" >&6
21617
21618 echo "$as_me:$LINENO: checking if we want to compile with ElectricFence" >&5
21619 echo $ECHO_N "checking if we want to compile with ElectricFence... $ECHO_C" >&6
21620
21621 # Check whether --with-electricfence or --without-electricfence was given.
21622 if test "${with_electricfence+set}" = set; then
21623   withval="$with_electricfence"
21624   ans=$withval
21625 else
21626   ans=no
21627 fi;
21628 case "$ans" in
21629  no) ;;
21630  *)
21631     LIBS="$LIBS \${top_builddir}/ElectricFence/libefence.a"
21632     EF_PROGS="eftest tstheap"
21633
21634     EF_LIBS=libefence.a
21635
21636     ans=yes
21637     ;;
21638 esac
21639 echo "$as_me:$LINENO: result: $ans" >&5
21640 echo "${ECHO_T}$ans" >&6
21641
21642 echo "$as_me:$LINENO: checking if we want to try SNTP" >&5
21643 echo $ECHO_N "checking if we want to try SNTP... $ECHO_C" >&6
21644
21645 # Check whether --with-sntp or --without-sntp was given.
21646 if test "${with_sntp+set}" = set; then
21647   withval="$with_sntp"
21648   ans=$withval
21649 else
21650   ans=no
21651 fi;
21652 case "$ans" in
21653  no) ;;
21654  *)
21655     MAKE_SNTP="sntp"
21656
21657     ans=yes
21658     ;;
21659 esac
21660 echo "$as_me:$LINENO: result: $ans" >&5
21661 echo "${ECHO_T}$ans" >&6
21662
21663
21664
21665
21666 echo "$as_me:$LINENO: checking if we can make dcf parse utilities" >&5
21667 echo $ECHO_N "checking if we can make dcf parse utilities... $ECHO_C" >&6
21668 ans=no
21669 if test "$ntp_parseutil" = "yes"; then
21670     case "$host" in
21671      *-*-sunos4*|*-*-solaris2*|*-*-linux*)
21672         ans="dcfd testdcf"
21673         DCFD=dcfd
21674         TESTDCF=testdcf
21675         ;;
21676     esac
21677 fi
21678 echo "$as_me:$LINENO: result: $ans" >&5
21679 echo "${ECHO_T}$ans" >&6
21680
21681
21682 echo "$as_me:$LINENO: checking if we can build kernel streams modules for parse" >&5
21683 echo $ECHO_N "checking if we can build kernel streams modules for parse... $ECHO_C" >&6
21684 ans=no
21685 case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
21686  yesyes)
21687     case "$host" in
21688      sparc-*-sunos4*)
21689         case "$ac_cv_var_kernel_pll" in
21690         yes)
21691
21692 cat >>confdefs.h <<\_ACEOF
21693 #define PPS_SYNC 1
21694 _ACEOF
21695
21696             ;;
21697         esac
21698         ans=parsestreams
21699         MAKE_PARSEKMODULE=parsestreams.loadable_module.o
21700         ;;
21701      sparc-*-solaris2*)
21702         ans=parsesolaris
21703         MAKE_PARSEKMODULE=parse
21704         ;;
21705     esac
21706     ;;
21707 esac
21708 echo "$as_me:$LINENO: result: $ans" >&5
21709 echo "${ECHO_T}$ans" >&6
21710
21711 echo "$as_me:$LINENO: checking if we need basic refclock support" >&5
21712 echo $ECHO_N "checking if we need basic refclock support... $ECHO_C" >&6
21713 if test "$ntp_refclock" = "yes"; then
21714
21715 cat >>confdefs.h <<\_ACEOF
21716 #define REFCLOCK 1
21717 _ACEOF
21718
21719 fi
21720 echo "$as_me:$LINENO: result: $ntp_refclock" >&5
21721 echo "${ECHO_T}$ntp_refclock" >&6
21722
21723
21724
21725 echo "$as_me:$LINENO: checking if we want HP-UX adjtimed support" >&5
21726 echo $ECHO_N "checking if we want HP-UX adjtimed support... $ECHO_C" >&6
21727 case "$host" in
21728  *-*-hpux[56789]*)
21729     ans=yes
21730     ;;
21731  *) ans=no
21732     ;;
21733 esac
21734 if test "$ans" = "yes"; then
21735     MAKE_ADJTIMED=adjtimed
21736
21737 cat >>confdefs.h <<\_ACEOF
21738 #define NEED_HPUX_ADJTIME 1
21739 _ACEOF
21740
21741 fi
21742 echo "$as_me:$LINENO: result: $ans" >&5
21743 echo "${ECHO_T}$ans" >&6
21744
21745 echo "$as_me:$LINENO: checking if we want QNX adjtime support" >&5
21746 echo $ECHO_N "checking if we want QNX adjtime support... $ECHO_C" >&6
21747 case "$host" in
21748  *-*-qnx*)
21749     ans=yes
21750     ;;
21751  *) ans=no
21752     ;;
21753 esac
21754 if test "$ans" = "yes"; then
21755
21756 cat >>confdefs.h <<\_ACEOF
21757 #define NEED_QNX_ADJTIME 1
21758 _ACEOF
21759
21760 fi
21761 echo "$as_me:$LINENO: result: $ans" >&5
21762 echo "${ECHO_T}$ans" >&6
21763
21764 echo "$as_me:$LINENO: checking if we can read kmem" >&5
21765 echo $ECHO_N "checking if we can read kmem... $ECHO_C" >&6
21766 if test "${ac_cv_var_can_kmem+set}" = set; then
21767   echo $ECHO_N "(cached) $ECHO_C" >&6
21768 else
21769   # Check whether --enable-kmem or --disable-kmem was given.
21770 if test "${enable_kmem+set}" = set; then
21771   enableval="$enable_kmem"
21772   ans=$enableval
21773 else
21774   case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
21775      *yes*)
21776         ans=yes
21777         ;;
21778      *) ans=no
21779         ;;
21780     esac
21781     case "$host" in
21782      *-*-aix*)
21783         #ans=no
21784         ;;
21785      *-*-domainos)      # Won't be found...
21786         ans=no
21787         ;;
21788      *-*-hpux*)
21789         #ans=no
21790         ;;
21791      *-*-irix[456]*)
21792         ans=no
21793         ;;
21794      *-*-linux*)
21795         ans=no
21796         ;;
21797      *-*-winnt3.5)
21798         ans=no
21799         ;;
21800      *-*-unicosmp*)
21801         ans=no
21802         ;;
21803     esac
21804
21805 fi;
21806 ac_cv_var_can_kmem=$ans
21807 fi
21808 echo "$as_me:$LINENO: result: $ac_cv_var_can_kmem" >&5
21809 echo "${ECHO_T}$ac_cv_var_can_kmem" >&6
21810
21811 case "$ac_cv_var_can_kmem" in
21812  *yes*) ;;
21813  *)
21814 cat >>confdefs.h <<\_ACEOF
21815 #define NOKMEM 1
21816 _ACEOF
21817  ;;
21818 esac
21819
21820 echo "$as_me:$LINENO: checking if adjtime is accurate" >&5
21821 echo $ECHO_N "checking if adjtime is accurate... $ECHO_C" >&6
21822 if test "${ac_cv_var_adjtime_is_accurate+set}" = set; then
21823   echo $ECHO_N "(cached) $ECHO_C" >&6
21824 else
21825   # Check whether --enable-accurate-adjtime or --disable-accurate-adjtime was given.
21826 if test "${enable_accurate_adjtime+set}" = set; then
21827   enableval="$enable_accurate_adjtime"
21828   ans=$enableval
21829 else
21830   case "$host" in
21831       i386-sequent-ptx*)
21832          ans=no
21833          ;;
21834       i386-unknown-osf1*)
21835          ans=yes
21836          ;;
21837       mips-sgi-irix[456]*)
21838          ans=yes
21839          ;;
21840       *-fujitsu-uxp*)
21841          ans=yes
21842          ;;
21843       *-ibm-aix[45]*)
21844          ans=yes
21845          ;;
21846       *-*-linux*)
21847          ans=yes
21848          ;;
21849       *-*-solaris2.[01])
21850          ans=no
21851          ;;
21852       *-*-solaris2*)
21853          ans=yes
21854          ;;
21855       *-*-unicosmp*)
21856          ans=yes
21857          ;;
21858       *) ans=no
21859          ;;
21860      esac
21861
21862 fi;
21863 ac_cv_var_adjtime_is_accurate=$ans
21864 fi
21865 echo "$as_me:$LINENO: result: $ac_cv_var_adjtime_is_accurate" >&5
21866 echo "${ECHO_T}$ac_cv_var_adjtime_is_accurate" >&6
21867 case "$ac_cv_var_adjtime_is_accurate" in
21868  yes)
21869 cat >>confdefs.h <<\_ACEOF
21870 #define ADJTIME_IS_ACCURATE 1
21871 _ACEOF
21872  ;;
21873 esac
21874
21875 echo "$as_me:$LINENO: checking the name of 'tick' in the kernel" >&5
21876 echo $ECHO_N "checking the name of 'tick' in the kernel... $ECHO_C" >&6
21877 if test "${ac_cv_var_nlist_tick+set}" = set; then
21878   echo $ECHO_N "(cached) $ECHO_C" >&6
21879 else
21880   ans=_tick
21881 case "$host" in
21882  m68*-hp-hpux*) # HP9000/300?
21883     ans=_old_tick
21884     ;;
21885  *-apple-aux[23]*)
21886     ans=tick
21887     ;;
21888  *-hp-hpux*)
21889     ans=old_tick
21890     ;;
21891  *-ibm-aix[345]*)
21892     ans=no
21893     ;;
21894  *-*-mpeix*)
21895     ans=no
21896     ;;
21897  *-*-ptx*)
21898     ans=tick
21899     ;;
21900  *-*-sco3.2v[45]*)
21901     ans=no
21902     ;;
21903  *-*-solaris2*)
21904     ans=nsec_per_tick
21905     ;;
21906  *-*-sysv4*)
21907     ans=tick
21908     ;;
21909 esac
21910 ac_cv_var_nlist_tick=$ans
21911 fi
21912 echo "$as_me:$LINENO: result: $ac_cv_var_nlist_tick" >&5
21913 echo "${ECHO_T}$ac_cv_var_nlist_tick" >&6
21914 case "$ac_cv_var_nlist_tick" in
21915  ''|no) ;;      # HMS: I think we can only get 'no' here...
21916  *)
21917 cat >>confdefs.h <<_ACEOF
21918 #define K_TICK_NAME "$ac_cv_var_nlist_tick"
21919 _ACEOF
21920  ;;
21921 esac
21922 #
21923 echo "$as_me:$LINENO: checking for the units of 'tick'" >&5
21924 echo $ECHO_N "checking for the units of 'tick'... $ECHO_C" >&6
21925 if test "${ac_cv_var_tick_nano+set}" = set; then
21926   echo $ECHO_N "(cached) $ECHO_C" >&6
21927 else
21928   ans=usec
21929 case "$host" in
21930  *-*-solaris2*)
21931     ans=nsec
21932     ;;
21933 esac
21934 ac_cv_var_tick_nano=$ans
21935 fi
21936 echo "$as_me:$LINENO: result: $ac_cv_var_tick_nano" >&5
21937 echo "${ECHO_T}$ac_cv_var_tick_nano" >&6
21938 case "$ac_cv_var_tick_nano" in
21939  nsec)
21940
21941 cat >>confdefs.h <<\_ACEOF
21942 #define TICK_NANO 1
21943 _ACEOF
21944
21945     ;;
21946 esac
21947 #
21948 echo "$as_me:$LINENO: checking the name of 'tickadj' in the kernel" >&5
21949 echo $ECHO_N "checking the name of 'tickadj' in the kernel... $ECHO_C" >&6
21950 if test "${ac_cv_var_nlist_tickadj+set}" = set; then
21951   echo $ECHO_N "(cached) $ECHO_C" >&6
21952 else
21953   ans=_tickadj
21954 case "$host" in
21955  m68*-hp-hpux*) # HP9000/300?
21956     ans=_tickadj
21957     ;;
21958  *-apple-aux[23]*)
21959     ans=tickadj
21960     ;;
21961  *-hp-hpux10*)
21962     ans=no
21963     ;;
21964  *-hp-hpux9*)
21965     ans=no
21966     ;;
21967  *-hp-hpux*)
21968     ans=tickadj
21969     ;;
21970  *-*-aix*)
21971     ans=tickadj
21972     ;;
21973  *-*-mpeix*)
21974     ans=no
21975     ;;
21976  *-*-ptx*)
21977     ans=tickadj
21978     ;;
21979  *-*-sco3.2v4*)
21980     ans=no
21981     ;;
21982  *-*-sco3.2v5.0*)
21983     ans=clock_drift
21984     ;;
21985  *-*-solaris2*)
21986     ans=no      # hrestime_adj
21987     ;;
21988  *-*-sysv4*)
21989     ans=tickadj
21990     ;;
21991 esac
21992 ac_cv_var_nlist_tickadj=$ans
21993 fi
21994 echo "$as_me:$LINENO: result: $ac_cv_var_nlist_tickadj" >&5
21995 echo "${ECHO_T}$ac_cv_var_nlist_tickadj" >&6
21996 case "$ac_cv_var_nlist_tickadj" in
21997  ''|no) ;;      # HMS: I think we can only get 'no' here...
21998  *)
21999 cat >>confdefs.h <<_ACEOF
22000 #define K_TICKADJ_NAME "$ac_cv_var_nlist_tickadj"
22001 _ACEOF
22002  ;;
22003 esac
22004 #
22005 echo "$as_me:$LINENO: checking for the units of 'tickadj'" >&5
22006 echo $ECHO_N "checking for the units of 'tickadj'... $ECHO_C" >&6
22007 if test "${ac_cv_var_tickadj_nano+set}" = set; then
22008   echo $ECHO_N "(cached) $ECHO_C" >&6
22009 else
22010   ans=usec
22011 case "$host" in
22012  *-*-solaris2*)
22013     ans=nsec
22014     ;;
22015 esac
22016 ac_cv_var_tickadj_nano=$ans
22017 fi
22018 echo "$as_me:$LINENO: result: $ac_cv_var_tickadj_nano" >&5
22019 echo "${ECHO_T}$ac_cv_var_tickadj_nano" >&6
22020 case "$ac_cv_var_tickadj_nano" in
22021  nsec)
22022
22023 cat >>confdefs.h <<\_ACEOF
22024 #define TICKADJ_NANO 1
22025 _ACEOF
22026
22027     ;;
22028 esac
22029 #
22030 echo "$as_me:$LINENO: checking half-heartedly for 'dosynctodr' in the kernel" >&5
22031 echo $ECHO_N "checking half-heartedly for 'dosynctodr' in the kernel... $ECHO_C" >&6
22032 if test "${ac_cv_var_nlist_dosynctodr+set}" = set; then
22033   echo $ECHO_N "(cached) $ECHO_C" >&6
22034 else
22035   case "$host" in
22036  *-apple-aux[23]*)
22037     ans=no
22038     ;;
22039  *-sni-sysv*)
22040     ans=dosynctodr
22041     ;;
22042  *-*-aix*)
22043     ans=dosynctodr
22044     ;;
22045  *-*-hpux*)
22046     ans=no
22047     ;;
22048  *-*-mpeix*)
22049     ans=no
22050     ;;
22051  *-*-nextstep*)
22052     ans=_dosynctodr
22053     ;;
22054  *-*-ptx*)
22055     ans=doresettodr
22056     ;;
22057  *-*-sco3.2v4*)
22058     ans=no
22059     ;;
22060  *-*-sco3.2v5*)
22061     ans=track_rtc
22062     ;;
22063  *-*-solaris2*)
22064     ans=dosynctodr
22065     ;;
22066  *-*-sysv4*)
22067     ans=doresettodr
22068     ;;
22069  *)
22070     ans=_dosynctodr
22071     ;;
22072 esac
22073 ac_cv_var_nlist_dosynctodr=$ans
22074 fi
22075 echo "$as_me:$LINENO: result: $ac_cv_var_nlist_dosynctodr" >&5
22076 echo "${ECHO_T}$ac_cv_var_nlist_dosynctodr" >&6
22077 case "$ac_cv_var_nlist_dosynctodr" in
22078  no) ;;
22079  *)
22080 cat >>confdefs.h <<_ACEOF
22081 #define K_DOSYNCTODR_NAME "$ac_cv_var_nlist_dosynctodr"
22082 _ACEOF
22083
22084      ;;
22085 esac
22086 #
22087 echo "$as_me:$LINENO: checking half-heartedly for 'noprintf' in the kernel" >&5
22088 echo $ECHO_N "checking half-heartedly for 'noprintf' in the kernel... $ECHO_C" >&6
22089 if test "${ac_cv_var_nlist_noprintf+set}" = set; then
22090   echo $ECHO_N "(cached) $ECHO_C" >&6
22091 else
22092   case "$host" in
22093  *-apple-aux[23]*)
22094     ans=no
22095     ;;
22096  *-sni-sysv*)
22097     ans=noprintf
22098     ;;
22099  *-*-aix*)
22100     ans=noprintf
22101     ;;
22102  *-*-hpux*)
22103     ans=no
22104     ;;
22105  *-*-mpeix*)
22106     ans=no
22107     ;;
22108  *-*-ptx*)
22109     ans=noprintf
22110     ;;
22111  *-*-nextstep*)
22112     ans=_noprintf
22113     ;;
22114  *-*-solaris2*)
22115     ans=noprintf
22116     ;;
22117  *-*-sysv4*)
22118     ans=noprintf
22119     ;;
22120  *)
22121     ans=_noprintf
22122     ;;
22123 esac
22124 ac_cv_var_nlist_noprintf=$ans
22125 fi
22126 echo "$as_me:$LINENO: result: $ac_cv_var_nlist_noprintf" >&5
22127 echo "${ECHO_T}$ac_cv_var_nlist_noprintf" >&6
22128 case "$ac_cv_var_nlist_noprintf" in
22129  no) ;;
22130  *)
22131 cat >>confdefs.h <<_ACEOF
22132 #define K_NOPRINTF_NAME "$ac_cv_var_nlist_noprintf"
22133 _ACEOF
22134
22135      ;;
22136 esac
22137
22138
22139
22140
22141 echo "$as_me:$LINENO: checking for a default value for 'tick'" >&5
22142 echo $ECHO_N "checking for a default value for 'tick'... $ECHO_C" >&6
22143 if test "${ac_cv_var_tick+set}" = set; then
22144   echo $ECHO_N "(cached) $ECHO_C" >&6
22145 else
22146   # Check whether --enable-tick or --disable-tick was given.
22147 if test "${enable_tick+set}" = set; then
22148   enableval="$enable_tick"
22149   ans=$enableval
22150 else
22151   ans=no
22152      case "$host" in
22153       XXX-*-pc-cygwin*)
22154          ;;
22155       *-univel-sysv*)
22156          ans=10000
22157          ;;
22158       *-*-irix*)
22159          ans=10000
22160          ;;
22161       *-*-linux*)
22162          ans=txc.tick
22163          ;;
22164       *-*-mpeix*)
22165          ans=no
22166          ;;
22167       *-*-winnt3.5)
22168          ans='(every / 10)'
22169          ;;
22170       *-*-unicosmp*)
22171          ans=10000
22172          ;;
22173       *)
22174          ans='1000000L/hz'
22175          ;;
22176      esac
22177 fi;
22178 ac_cv_var_tick=$ans
22179 fi
22180 echo "$as_me:$LINENO: result: $ac_cv_var_tick" >&5
22181 echo "${ECHO_T}$ac_cv_var_tick" >&6
22182 case "$ac_cv_var_tick" in
22183  ''|no) ;;      # HMS: I think we can only get 'no' here...
22184  *)
22185 cat >>confdefs.h <<_ACEOF
22186 #define PRESET_TICK $ac_cv_var_tick
22187 _ACEOF
22188  ;;
22189 esac
22190
22191 echo "$as_me:$LINENO: checking for a default value for 'tickadj'" >&5
22192 echo $ECHO_N "checking for a default value for 'tickadj'... $ECHO_C" >&6
22193 if test "${ac_cv_var_tickadj+set}" = set; then
22194   echo $ECHO_N "(cached) $ECHO_C" >&6
22195 else
22196   # Check whether --enable-tickadj or --disable-tickadj was given.
22197 if test "${enable_tickadj+set}" = set; then
22198   enableval="$enable_tickadj"
22199   ans=$enableval
22200 else
22201   ans='500/hz'
22202   case "$host" in
22203    *-fujitsu-uxp*)
22204       case "$ac_cv_var_adjtime_is_accurate" in
22205        yes) ans='tick/16' ;;
22206       esac
22207       ;;
22208    XXX-*-pc-cygwin*)
22209       ans=no
22210       ;;
22211    *-univel-sysv*)
22212       ans=80
22213       ;;
22214    *-*-aix*)
22215       case "$ac_cv_var_can_kmem" in
22216        no) ans=1000 ;;
22217       esac
22218       ;;
22219    *-*-domainos)        # Skippy: won't be found...
22220       case "$ac_cv_var_can_kmem" in
22221        no) ans=668 ;;
22222       esac
22223       ;;
22224    *-*-hpux*)
22225       case "$ac_cv_var_adjtime_is_accurate" in
22226        yes) ans='tick/16' ;;
22227       esac
22228       ;;
22229    *-*-irix*)
22230       ans=150
22231       ;;
22232    *-*-mpeix*)
22233       ans=no
22234       ;;
22235    *-*-sco3.2v5.0*)
22236       ans=10000L/hz
22237       ;;
22238    *-*-solaris2*)
22239       case "$ac_cv_var_adjtime_is_accurate" in
22240        yes)
22241           #ans='tick/16'
22242           ;;
22243       esac
22244       ;;
22245    *-*-winnt3.5)
22246       ans=50
22247       ;;
22248    *-*-unicosmp*)
22249       ans=150
22250       ;;
22251   esac
22252 fi;
22253 ac_cv_var_tickadj=$ans
22254 fi
22255 echo "$as_me:$LINENO: result: $ac_cv_var_tickadj" >&5
22256 echo "${ECHO_T}$ac_cv_var_tickadj" >&6
22257 case "$ac_cv_var_tickadj" in
22258  ''|no) ;;      # HMS: I think we can only get 'no' here...
22259  *)
22260 cat >>confdefs.h <<_ACEOF
22261 #define PRESET_TICKADJ $ac_cv_var_tickadj
22262 _ACEOF
22263  ;;
22264 esac
22265
22266 # Newer versions of ReliantUNIX round adjtime() values down to
22267 # 1/100s (system tick). Sigh ...
22268 # Unfortunately, there is no easy way to know if particular release
22269 # has this "feature" or any obvious way to test for it.
22270 case "$host" in
22271  mips-sni-sysv4*)
22272 cat >>confdefs.h <<\_ACEOF
22273 #define RELIANTUNIX_CLOCK 1
22274 _ACEOF
22275  ;;
22276 esac
22277
22278 case "$host" in
22279  *-*-sco3.2v5*)
22280 cat >>confdefs.h <<\_ACEOF
22281 #define SCO5_CLOCK 1
22282 _ACEOF
22283  ;;
22284 esac
22285
22286 ac_cv_make_tickadj=yes
22287 case "$ac_cv_var_can_kmem$ac_cv_var_tick$ac_cv_var_tickadj" in
22288  nonono)        # Don't read KMEM, no presets.  Bogus.
22289     { echo "$as_me:$LINENO: WARNING: Can't read kmem" >&5
22290 echo "$as_me: WARNING: Can't read kmem" >&2;}
22291     ac_cv_make_tickadj=no
22292     ;;
22293  nono*)         # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
22294     { echo "$as_me:$LINENO: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&5
22295 echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&2;}
22296     ac_cv_make_tickadj=no
22297     ;;
22298  no*no)         # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Bogus.
22299     { echo "$as_me:$LINENO: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&5
22300 echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&2;}
22301     ac_cv_make_tickadj=no
22302     ;;
22303  no*)           # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ.  Cool.
22304     ;;
22305  yesnono)       # Read KMEM, no presets.  Cool.
22306     ;;
22307  yesno*)        # Read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
22308     { echo "$as_me:$LINENO: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&5
22309 echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&2;}
22310     ;;
22311  yes*no)        # Read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Cool.
22312     ;;
22313  yes*)          # READ KMEM, PRESET_TICK and PRESET_TICKADJ.
22314     ;;
22315  *)             # Generally bogus.
22316     { { echo "$as_me:$LINENO: error: This shouldn't happen." >&5
22317 echo "$as_me: error: This shouldn't happen." >&2;}
22318    { (exit 1); exit 1; }; }
22319     ;;
22320 esac
22321
22322
22323 echo "$as_me:$LINENO: checking if we want and can make the ntptime utility" >&5
22324 echo $ECHO_N "checking if we want and can make the ntptime utility... $ECHO_C" >&6
22325 if test "${ac_cv_make_ntptime+set}" = set; then
22326   echo $ECHO_N "(cached) $ECHO_C" >&6
22327 else
22328   case "$host" in
22329  *) case "$ac_cv_struct_ntptimeval$ac_cv_var_kernel_pll" in
22330      yesyes)
22331         ans=yes
22332         ;;
22333      *)
22334         ans=no
22335         ;;
22336     esac
22337     ;;
22338 esac
22339 ac_cv_make_ntptime=$ans
22340 fi
22341 echo "$as_me:$LINENO: result: $ac_cv_make_ntptime" >&5
22342 echo "${ECHO_T}$ac_cv_make_ntptime" >&6
22343 case "$ac_cv_make_ntptime" in
22344  yes)
22345     MAKE_NTPTIME=ntptime
22346     ;;
22347 esac
22348
22349
22350 case "$host" in
22351  mips-sni-sysv4*)
22352     # tickadj is pretty useless on newer versions of ReliantUNIX
22353     # Do not bother
22354     ac_cv_make_tickadj=no
22355     ;;
22356  *-*-irix*)
22357     ac_cv_make_tickadj=no
22358     ;;
22359  *-*-solaris2*)
22360     # DLM says tickadj is a no-no starting with solaris2.5
22361     case "$host" in
22362      *-*-solaris2.1[0-9]*)
22363         ac_cv_make_tickadj=no
22364         ;;
22365      *-*-solaris2.[0-4]*) ;;
22366      *) ac_cv_make_tickadj=no ;;
22367     esac
22368     ;;
22369  *-*-unicosmp*)
22370     ac_cv_make_tickadj=no
22371     ;;
22372 esac
22373 echo "$as_me:$LINENO: checking if we want and can make the tickadj utility" >&5
22374 echo $ECHO_N "checking if we want and can make the tickadj utility... $ECHO_C" >&6
22375 if test "${ac_cv_make_tickadj+set}" = set; then
22376   echo $ECHO_N "(cached) $ECHO_C" >&6
22377 else
22378   ac_cv_make_tickadj=yes
22379 fi
22380 echo "$as_me:$LINENO: result: $ac_cv_make_tickadj" >&5
22381 echo "${ECHO_T}$ac_cv_make_tickadj" >&6
22382 case "$ac_cv_make_tickadj" in
22383  yes)
22384     MAKE_TICKADJ=tickadj
22385     ;;
22386 esac
22387
22388
22389 echo "$as_me:$LINENO: checking if we want and can make the timetrim utility" >&5
22390 echo $ECHO_N "checking if we want and can make the timetrim utility... $ECHO_C" >&6
22391 if test "${ac_cv_make_timetrim+set}" = set; then
22392   echo $ECHO_N "(cached) $ECHO_C" >&6
22393 else
22394   case "$host" in
22395  *-*-irix*)
22396     ac_cv_make_timetrim=yes
22397     ;;
22398  *-*-unicosmp*)
22399     ac_cv_make_timetrim=yes
22400     ;;
22401  *)
22402     ac_cv_make_timetrim=no
22403     ;;
22404 esac
22405 fi
22406 echo "$as_me:$LINENO: result: $ac_cv_make_timetrim" >&5
22407 echo "${ECHO_T}$ac_cv_make_timetrim" >&6
22408 case "$ac_cv_make_timetrim" in
22409  yes)
22410     MAKE_TIMETRIM=timetrim
22411     ;;
22412 esac
22413
22414
22415
22416 echo "$as_me:$LINENO: checking if we want to build the NTPD simulator" >&5
22417 echo $ECHO_N "checking if we want to build the NTPD simulator... $ECHO_C" >&6
22418 if test "${ac_cv_var_ntpd_sim+set}" = set; then
22419   echo $ECHO_N "(cached) $ECHO_C" >&6
22420 else
22421   # Check whether --enable-simulator or --disable-simulator was given.
22422 if test "${enable_simulator+set}" = set; then
22423   enableval="$enable_simulator"
22424   ans=$enableval
22425 else
22426   ans=no
22427 fi;
22428 ac_cv_var_ntpd_sim=$ans
22429 fi
22430 echo "$as_me:$LINENO: result: $ac_cv_var_ntpd_sim" >&5
22431 echo "${ECHO_T}$ac_cv_var_ntpd_sim" >&6
22432 case "$ac_cv_var_ntpd_sim" in
22433  yes)
22434     MAKE_NTPDSIM=ntpdsim
22435     MAKE_LIBNTPSIM=libntpsim.a
22436     ;;
22437 esac
22438
22439 echo "$as_me:$LINENO: checking if we want UDP wildcard delivery" >&5
22440 echo $ECHO_N "checking if we want UDP wildcard delivery... $ECHO_C" >&6
22441 if test "${ac_cv_var_udp_wildcard_delivery+set}" = set; then
22442   echo $ECHO_N "(cached) $ECHO_C" >&6
22443 else
22444   # Check whether --enable-udp-wildcard or --disable-udp-wildcard was given.
22445 if test "${enable_udp_wildcard+set}" = set; then
22446   enableval="$enable_udp_wildcard"
22447   ans=$enableval
22448 else
22449   ans=no
22450      case "$host" in
22451       *-fujitsu-uxp*)
22452          ans=yes
22453          ;;
22454       *-univel-sysv*)
22455          ans=yes
22456          ;;
22457       *-*-aix3.2*)
22458          ans=yes
22459          ;;
22460       *-*-aix[45]*)
22461          ans=yes
22462          ;;
22463       *-*-bsdi*)
22464          ans=yes
22465          ;;
22466       *-*-domainos)
22467          ans=yes
22468          ;;
22469       *-*-freebsd*)
22470         ans=yes
22471         ;;
22472       *-*-hpux*)
22473          ans=yes
22474          ;;
22475       *-*-irix6*)
22476          ans=yes
22477          ;;
22478       *-*-linux*)
22479          ans=yes
22480          ;;
22481       *-*-mpeix*)
22482          ans=yes
22483          ;;
22484       *-*-osf*)
22485          ans=yes
22486          ;;
22487       *-*-ptx*)
22488          ans=yes
22489          ;;
22490       *-*-solaris2*)
22491          ans=yes
22492          ;;
22493       *-*-sunos4*)
22494          ans=yes
22495          ;;
22496       *-*-unicosmp*)
22497          ans=yes
22498          ;;
22499      esac
22500 fi;
22501 ac_cv_var_udp_wildcard_delivery=$ans
22502 fi
22503 echo "$as_me:$LINENO: result: $ac_cv_var_udp_wildcard_delivery" >&5
22504 echo "${ECHO_T}$ac_cv_var_udp_wildcard_delivery" >&6
22505 case "$ac_cv_var_udp_wildcard_delivery" in
22506  yes)
22507 cat >>confdefs.h <<\_ACEOF
22508 #define UDP_WILDCARD_DELIVERY 1
22509 _ACEOF
22510  ;;
22511 esac
22512
22513 case "$build" in
22514  $host)
22515     ;;
22516  *) case "$host" in
22517      *-*-vxworks*)
22518         LDFLAGS="$LDFLAGS -r"
22519         ;;
22520     esac
22521     ;;
22522 esac
22523
22524 echo "$as_me:$LINENO: checking if we should always slew the time" >&5
22525 echo $ECHO_N "checking if we should always slew the time... $ECHO_C" >&6
22526 if test "${ac_cv_var_slew_always+set}" = set; then
22527   echo $ECHO_N "(cached) $ECHO_C" >&6
22528 else
22529   # Check whether --enable-slew-always or --disable-slew-always was given.
22530 if test "${enable_slew_always+set}" = set; then
22531   enableval="$enable_slew_always"
22532   ans=$enableval
22533 else
22534   case "$host" in
22535       *-apple-aux[23]*)
22536          ans=yes
22537          ;;
22538       *-*-bsdi[012]*)
22539          ans=no
22540          ;;
22541       *-*-bsdi*)
22542          ans=yes
22543          ;;
22544       *-*-openvms*)     # HMS: won't be found
22545          ans=yes
22546          ;;
22547       *) ans=no
22548          ;;
22549      esac
22550
22551 fi;
22552 ac_cv_var_slew_always=$ans
22553 fi
22554 echo "$as_me:$LINENO: result: $ac_cv_var_slew_always" >&5
22555 echo "${ECHO_T}$ac_cv_var_slew_always" >&6
22556 case "$ac_cv_var_slew_always" in
22557  yes)
22558 cat >>confdefs.h <<\_ACEOF
22559 #define SLEWALWAYS 1
22560 _ACEOF
22561  ;;
22562 esac
22563
22564 echo "$as_me:$LINENO: checking if we should step and slew the time" >&5
22565 echo $ECHO_N "checking if we should step and slew the time... $ECHO_C" >&6
22566 if test "${ac_cv_var_step_slew+set}" = set; then
22567   echo $ECHO_N "(cached) $ECHO_C" >&6
22568 else
22569   # Check whether --enable-step-slew or --disable-step-slew was given.
22570 if test "${enable_step_slew+set}" = set; then
22571   enableval="$enable_step_slew"
22572   ans=$enableval
22573 else
22574   case "$host" in
22575       *-sni-sysv*)
22576          ans=yes
22577          ;;
22578       *-univel-sysv*)
22579          ans=no
22580          ;;
22581       *-*-ptx*)
22582          ans=yes
22583          ;;
22584       *-*-solaris2.1[0-9]*)
22585          ans-no
22586          ;;
22587       *-*-solaris2.[012]*)
22588          ans=yes
22589          ;;
22590       *-*-sysv4*)       # HMS: Does this catch Fujitsu UXP?
22591          ans=yes
22592          ;;
22593       *) ans=no
22594          ;;
22595      esac
22596
22597 fi;
22598 ac_cv_var_step_slew=$ans
22599 fi
22600 echo "$as_me:$LINENO: result: $ac_cv_var_step_slew" >&5
22601 echo "${ECHO_T}$ac_cv_var_step_slew" >&6
22602 case "$ac_cv_var_step_slew" in
22603  yes)
22604 cat >>confdefs.h <<\_ACEOF
22605 #define STEP_SLEW 1
22606 _ACEOF
22607  ;;
22608 esac
22609
22610 echo "$as_me:$LINENO: checking if ntpdate should step the time" >&5
22611 echo $ECHO_N "checking if ntpdate should step the time... $ECHO_C" >&6
22612 if test "${ac_cv_var_ntpdate_step+set}" = set; then
22613   echo $ECHO_N "(cached) $ECHO_C" >&6
22614 else
22615   # Check whether --enable-ntpdate-step or --disable-ntpdate-step was given.
22616 if test "${enable_ntpdate_step+set}" = set; then
22617   enableval="$enable_ntpdate_step"
22618   ans=$enableval
22619 else
22620   case "$host" in
22621       *-apple-aux[23]*)
22622          ans=yes
22623          ;;
22624       *) ans=no
22625          ;;
22626      esac
22627
22628 fi;
22629 ac_cv_var_ntpdate_step=$ans
22630 fi
22631 echo "$as_me:$LINENO: result: $ac_cv_var_ntpdate_step" >&5
22632 echo "${ECHO_T}$ac_cv_var_ntpdate_step" >&6
22633 case "$ac_cv_var_ntpdate_step" in
22634  yes)
22635 cat >>confdefs.h <<\_ACEOF
22636 #define FORCE_NTPDATE_STEP 1
22637 _ACEOF
22638  ;;
22639 esac
22640
22641 echo "$as_me:$LINENO: checking if we should sync TODR clock every hour" >&5
22642 echo $ECHO_N "checking if we should sync TODR clock every hour... $ECHO_C" >&6
22643 if test "${ac_cv_var_sync_todr+set}" = set; then
22644   echo $ECHO_N "(cached) $ECHO_C" >&6
22645 else
22646   # Check whether --enable-hourly-todr-sync or --disable-hourly-todr-sync was given.
22647 if test "${enable_hourly_todr_sync+set}" = set; then
22648   enableval="$enable_hourly_todr_sync"
22649   ans=$enableval
22650 else
22651   case "$host" in
22652       *-*-nextstep*)
22653          ans=yes
22654          ;;
22655       *-*-openvms*)     # HMS: won't be found
22656          ans=yes
22657          ;;
22658       *) ans=no
22659          ;;
22660      esac
22661 fi;
22662 ac_cv_var_sync_todr=$ans
22663 fi
22664 echo "$as_me:$LINENO: result: $ac_cv_var_sync_todr" >&5
22665 echo "${ECHO_T}$ac_cv_var_sync_todr" >&6
22666 case "$ac_cv_var_sync_todr" in
22667  yes)
22668 cat >>confdefs.h <<\_ACEOF
22669 #define DOSYNCTODR 1
22670 _ACEOF
22671  ;;
22672 esac
22673
22674 echo "$as_me:$LINENO: checking if we should avoid kernel FLL bug" >&5
22675 echo $ECHO_N "checking if we should avoid kernel FLL bug... $ECHO_C" >&6
22676 if test "${ac_cv_var_kernel_fll_bug+set}" = set; then
22677   echo $ECHO_N "(cached) $ECHO_C" >&6
22678 else
22679   # Check whether --enable-kernel-fll-bug or --disable-kernel-fll-bug was given.
22680 if test "${enable_kernel_fll_bug+set}" = set; then
22681   enableval="$enable_kernel_fll_bug"
22682   ans=$enableval
22683 else
22684   case "$host" in
22685      *-*-solaris2.6)
22686          unamev=`uname -v`
22687          case "$unamev" in
22688           Generic_105181-*)
22689              old_IFS="$IFS"
22690              IFS="-"
22691              set $unamev
22692              IFS="$old_IFS"
22693              if test "$2" -ge 17
22694              then
22695                 # Generic_105181-17 and higher
22696                 ans=no
22697              else
22698                 ans=yes
22699              fi
22700              ;;
22701           *) ans=yes
22702              ;;
22703          esac
22704          ;;
22705      *-*-solaris2.7)
22706          unamev=`uname -v`
22707          case "$unamev" in
22708           Generic_106541-*)
22709              old_IFS="$IFS"
22710              IFS="-"
22711              set $unamev
22712              IFS="$old_IFS"
22713              if test "$2" -ge 07
22714              then
22715                 # Generic_106541-07 and higher
22716                 ans=no
22717              else
22718                 ans=yes
22719              fi
22720              ;;
22721           *) ans=yes
22722              ;;
22723          esac
22724          ;;
22725      *) ans=no
22726          ;;
22727     esac
22728
22729 fi;
22730 ac_cv_var_kernel_fll_bug=$ans
22731 fi
22732 echo "$as_me:$LINENO: result: $ac_cv_var_kernel_fll_bug" >&5
22733 echo "${ECHO_T}$ac_cv_var_kernel_fll_bug" >&6
22734 case "$ac_cv_var_kernel_fll_bug" in
22735  yes)
22736 cat >>confdefs.h <<\_ACEOF
22737 #define KERNEL_FLL_BUG 1
22738 _ACEOF
22739  ;;
22740 esac
22741
22742 echo "$as_me:$LINENO: checking if we should use the IRIG sawtooth filter" >&5
22743 echo $ECHO_N "checking if we should use the IRIG sawtooth filter... $ECHO_C" >&6
22744 if test "${ac_cv_var_irig_sucks+set}" = set; then
22745   echo $ECHO_N "(cached) $ECHO_C" >&6
22746 else
22747   # Check whether --enable-irig-sawtooth or --disable-irig-sawtooth was given.
22748 if test "${enable_irig_sawtooth+set}" = set; then
22749   enableval="$enable_irig_sawtooth"
22750   ans=$enableval
22751 else
22752   case "$host" in
22753      *-*-solaris2.[89])
22754         ans=yes
22755         ;;
22756      *-*-solaris2.1[0-9]*)
22757         ans=yes
22758         ;;
22759      *) ans=no
22760         ;;
22761     esac
22762
22763 fi;
22764 ac_cv_var_irig_sucks=$ans
22765 fi
22766 echo "$as_me:$LINENO: result: $ac_cv_var_irig_sucks" >&5
22767 echo "${ECHO_T}$ac_cv_var_irig_sucks" >&6
22768 case "$ac_cv_var_irig_sucks" in
22769  yes)
22770 cat >>confdefs.h <<\_ACEOF
22771 #define IRIG_SUCKS 1
22772 _ACEOF
22773  ;;
22774 esac
22775
22776 echo "$as_me:$LINENO: checking if we should enable NIST lockclock scheme" >&5
22777 echo $ECHO_N "checking if we should enable NIST lockclock scheme... $ECHO_C" >&6
22778 if test "${ac_cv_var_nist_lockclock+set}" = set; then
22779   echo $ECHO_N "(cached) $ECHO_C" >&6
22780 else
22781   # Check whether --enable-nist or --disable-nist was given.
22782 if test "${enable_nist+set}" = set; then
22783   enableval="$enable_nist"
22784   ans=$enableval
22785 else
22786   ans=no
22787 fi;
22788 ac_cv_var_nist_lockclock=$ans
22789 fi
22790 echo "$as_me:$LINENO: result: $ac_cv_var_nist_lockclock" >&5
22791 echo "${ECHO_T}$ac_cv_var_nist_lockclock" >&6
22792 case "$ac_cv_var_nist_lockclock" in
22793  yes)
22794 cat >>confdefs.h <<\_ACEOF
22795 #define LOCKCLOCK 1
22796 _ACEOF
22797  ;;
22798 esac
22799
22800 #
22801 # ISC stuff
22802 #
22803
22804 if test $ac_cv_struct_sockaddr_has_sa_len = yes; then
22805
22806 cat >>confdefs.h <<\_ACEOF
22807 #define ISC_PLATFORM_HAVESALEN
22808 _ACEOF
22809
22810 fi
22811
22812 echo "$as_me:$LINENO: checking for IPv6 structures" >&5
22813 echo $ECHO_N "checking for IPv6 structures... $ECHO_C" >&6
22814 cat >conftest.$ac_ext <<_ACEOF
22815 #line $LINENO "configure"
22816 /* confdefs.h.  */
22817 _ACEOF
22818 cat confdefs.h >>conftest.$ac_ext
22819 cat >>conftest.$ac_ext <<_ACEOF
22820 /* end confdefs.h.  */
22821
22822 #include <sys/types.h>
22823 #include <sys/socket.h>
22824 #include <netinet/in.h>
22825 int
22826 main ()
22827 {
22828 struct sockaddr_in6 sin6; return (0);
22829   ;
22830   return 0;
22831 }
22832 _ACEOF
22833 rm -f conftest.$ac_objext
22834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22835   (eval $ac_compile) 2>&5
22836   ac_status=$?
22837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838   (exit $ac_status); } &&
22839          { ac_try='test -s conftest.$ac_objext'
22840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22841   (eval $ac_try) 2>&5
22842   ac_status=$?
22843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844   (exit $ac_status); }; }; then
22845   echo "$as_me:$LINENO: result: yes" >&5
22846 echo "${ECHO_T}yes" >&6
22847          found_ipv6=yes
22848 else
22849   echo "$as_me: failed program was:" >&5
22850 sed 's/^/| /' conftest.$ac_ext >&5
22851
22852 echo "$as_me:$LINENO: result: no" >&5
22853 echo "${ECHO_T}no" >&6
22854          found_ipv6=no
22855 fi
22856 rm -f conftest.$ac_objext conftest.$ac_ext
22857
22858 echo "$as_me:$LINENO: checking for struct if_laddrconf" >&5
22859 echo $ECHO_N "checking for struct if_laddrconf... $ECHO_C" >&6
22860 cat >conftest.$ac_ext <<_ACEOF
22861 #line $LINENO "configure"
22862 /* confdefs.h.  */
22863 _ACEOF
22864 cat confdefs.h >>conftest.$ac_ext
22865 cat >>conftest.$ac_ext <<_ACEOF
22866 /* end confdefs.h.  */
22867
22868 #include <sys/types.h>
22869 #include <net/if6.h>
22870
22871 int
22872 main ()
22873 {
22874  struct if_laddrconf a;
22875   ;
22876   return 0;
22877 }
22878 _ACEOF
22879 rm -f conftest.$ac_objext conftest$ac_exeext
22880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22881   (eval $ac_link) 2>&5
22882   ac_status=$?
22883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884   (exit $ac_status); } &&
22885          { ac_try='test -s conftest$ac_exeext'
22886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22887   (eval $ac_try) 2>&5
22888   ac_status=$?
22889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890   (exit $ac_status); }; }; then
22891   echo "$as_me:$LINENO: result: yes" >&5
22892 echo "${ECHO_T}yes" >&6
22893
22894 cat >>confdefs.h <<\_ACEOF
22895 #define ISC_PLATFORM_HAVEIF_LADDRCONF
22896 _ACEOF
22897
22898 else
22899   echo "$as_me: failed program was:" >&5
22900 sed 's/^/| /' conftest.$ac_ext >&5
22901
22902 echo "$as_me:$LINENO: result: no" >&5
22903 echo "${ECHO_T}no" >&6
22904 fi
22905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22906
22907 echo "$as_me:$LINENO: checking for struct if_laddrreq" >&5
22908 echo $ECHO_N "checking for struct if_laddrreq... $ECHO_C" >&6
22909 cat >conftest.$ac_ext <<_ACEOF
22910 #line $LINENO "configure"
22911 /* confdefs.h.  */
22912 _ACEOF
22913 cat confdefs.h >>conftest.$ac_ext
22914 cat >>conftest.$ac_ext <<_ACEOF
22915 /* end confdefs.h.  */
22916
22917 #include <sys/types.h>
22918 #include <net/if6.h>
22919
22920 int
22921 main ()
22922 {
22923  struct if_laddrreq a;
22924   ;
22925   return 0;
22926 }
22927 _ACEOF
22928 rm -f conftest.$ac_objext conftest$ac_exeext
22929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22930   (eval $ac_link) 2>&5
22931   ac_status=$?
22932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933   (exit $ac_status); } &&
22934          { ac_try='test -s conftest$ac_exeext'
22935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22936   (eval $ac_try) 2>&5
22937   ac_status=$?
22938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939   (exit $ac_status); }; }; then
22940   echo "$as_me:$LINENO: result: yes" >&5
22941 echo "${ECHO_T}yes" >&6
22942
22943 cat >>confdefs.h <<\_ACEOF
22944 #define ISC_PLATFORM_HAVEIF_LADDRREQ
22945 _ACEOF
22946
22947 else
22948   echo "$as_me: failed program was:" >&5
22949 sed 's/^/| /' conftest.$ac_ext >&5
22950
22951 echo "$as_me:$LINENO: result: no" >&5
22952 echo "${ECHO_T}no" >&6
22953 fi
22954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22955
22956 case "$found_ipv6" in
22957  yes)
22958
22959 cat >>confdefs.h <<\_ACEOF
22960 #define ISC_PLATFORM_HAVEIPV6
22961 _ACEOF
22962
22963
22964 cat >>confdefs.h <<\_ACEOF
22965 #define WANT_IPV6
22966 _ACEOF
22967
22968
22969     echo "$as_me:$LINENO: checking for in6_pktinfo" >&5
22970 echo $ECHO_N "checking for in6_pktinfo... $ECHO_C" >&6
22971     cat >conftest.$ac_ext <<_ACEOF
22972 #line $LINENO "configure"
22973 /* confdefs.h.  */
22974 _ACEOF
22975 cat confdefs.h >>conftest.$ac_ext
22976 cat >>conftest.$ac_ext <<_ACEOF
22977 /* end confdefs.h.  */
22978
22979 #include <sys/types.h>
22980 #include <sys/socket.h>
22981 #include <netinet/in.h>
22982 $isc_netinetin6_hack
22983 $isc_netinet6in6_hack
22984
22985 int
22986 main ()
22987 {
22988 struct in6_pktinfo xyzzy; return (0);
22989   ;
22990   return 0;
22991 }
22992 _ACEOF
22993 rm -f conftest.$ac_objext
22994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22995   (eval $ac_compile) 2>&5
22996   ac_status=$?
22997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998   (exit $ac_status); } &&
22999          { ac_try='test -s conftest.$ac_objext'
23000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23001   (eval $ac_try) 2>&5
23002   ac_status=$?
23003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004   (exit $ac_status); }; }; then
23005   echo "$as_me:$LINENO: result: yes" >&5
23006 echo "${ECHO_T}yes" >&6
23007
23008 cat >>confdefs.h <<\_ACEOF
23009 #define ISC_PLATFORM_HAVEIN6PKTINFO
23010 _ACEOF
23011
23012 else
23013   echo "$as_me: failed program was:" >&5
23014 sed 's/^/| /' conftest.$ac_ext >&5
23015
23016 echo "$as_me:$LINENO: result: no -- disabling runtime ipv6 support" >&5
23017 echo "${ECHO_T}no -- disabling runtime ipv6 support" >&6
23018 fi
23019 rm -f conftest.$ac_objext conftest.$ac_ext
23020
23021     echo "$as_me:$LINENO: checking for in6addr_any" >&5
23022 echo $ECHO_N "checking for in6addr_any... $ECHO_C" >&6
23023     cat >conftest.$ac_ext <<_ACEOF
23024 #line $LINENO "configure"
23025 /* confdefs.h.  */
23026 _ACEOF
23027 cat confdefs.h >>conftest.$ac_ext
23028 cat >>conftest.$ac_ext <<_ACEOF
23029 /* end confdefs.h.  */
23030
23031 #include <sys/types.h>
23032 #include <sys/socket.h>
23033 #include <netinet/in.h>
23034 $isc_netinetin6_hack
23035 $isc_netinet6in6_hack
23036 $isc_in_addr6_hack
23037
23038 int
23039 main ()
23040 {
23041 struct in6_addr in6; in6 = in6addr_any; return (in6.s6_addr[0]);
23042   ;
23043   return 0;
23044 }
23045 _ACEOF
23046 rm -f conftest.$ac_objext conftest$ac_exeext
23047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23048   (eval $ac_link) 2>&5
23049   ac_status=$?
23050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051   (exit $ac_status); } &&
23052          { ac_try='test -s conftest$ac_exeext'
23053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23054   (eval $ac_try) 2>&5
23055   ac_status=$?
23056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057   (exit $ac_status); }; }; then
23058   echo "$as_me:$LINENO: result: yes" >&5
23059 echo "${ECHO_T}yes" >&6
23060 else
23061   echo "$as_me: failed program was:" >&5
23062 sed 's/^/| /' conftest.$ac_ext >&5
23063
23064 echo "$as_me:$LINENO: result: no" >&5
23065 echo "${ECHO_T}no" >&6
23066
23067 cat >>confdefs.h <<\_ACEOF
23068 #define ISC_PLATFORM_NEEDIN6ADDRANY
23069 _ACEOF
23070
23071
23072 fi
23073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23074     ;;
23075 esac
23076
23077 #
23078 # Look for a sysctl call to get the list of network interfaces.
23079 #
23080 echo "$as_me:$LINENO: checking for interface list sysctl" >&5
23081 echo $ECHO_N "checking for interface list sysctl... $ECHO_C" >&6
23082 cat >conftest.$ac_ext <<_ACEOF
23083 #line $LINENO "configure"
23084 /* confdefs.h.  */
23085 _ACEOF
23086 cat confdefs.h >>conftest.$ac_ext
23087 cat >>conftest.$ac_ext <<_ACEOF
23088 /* end confdefs.h.  */
23089
23090 #include <sys/param.h>
23091 #include <sys/sysctl.h>
23092 #include <sys/socket.h>
23093 #ifdef NET_RT_IFLIST
23094 found_rt_iflist
23095 #endif
23096
23097 _ACEOF
23098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23099   $EGREP "found_rt_iflist" >/dev/null 2>&1; then
23100   echo "$as_me:$LINENO: result: yes" >&5
23101 echo "${ECHO_T}yes" >&6
23102
23103 cat >>confdefs.h <<\_ACEOF
23104 #define HAVE_IFLIST_SYSCTL 1
23105 _ACEOF
23106
23107 else
23108   echo "$as_me:$LINENO: result: no" >&5
23109 echo "${ECHO_T}no" >&6
23110 fi
23111 rm -f conftest*
23112
23113
23114 case "$build" in
23115  $host)
23116     ;;
23117  *) case "$host" in
23118      *-*-vxworks*)
23119         LDFLAGS="$LDFLAGS -r"
23120         ;;
23121     esac
23122     ;;
23123 esac
23124
23125
23126         ac_expanded=`(
23127             test "x$prefix" = xNONE && prefix="$ac_default_prefix"
23128             test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
23129             eval echo \""$sysconfdir"\"
23130         )`
23131
23132 cat >>confdefs.h <<_ACEOF
23133 #define NTP_KEYSDIR "$ac_expanded"
23134 _ACEOF
23135
23136
23137
23138
23139 if test -d $srcdir/arlib
23140 then
23141
23142 # Check whether --with-arlib or --without-arlib was given.
23143 if test "${with_arlib+set}" = set; then
23144   withval="$with_arlib"
23145   ans=$withval
23146 else
23147   ans=no
23148 fi;
23149
23150     case "$ans" in
23151      yes)
23152         ARLIB_DIR=arlib
23153
23154
23155 subdirs="$subdirs arlib"
23156
23157         ;;
23158     esac
23159 fi
23160
23161           ac_config_files="$ac_config_files Makefile"
23162
23163           ac_config_files="$ac_config_files ElectricFence/Makefile"
23164
23165           ac_config_files="$ac_config_files adjtimed/Makefile"
23166
23167           ac_config_files="$ac_config_files clockstuff/Makefile"
23168
23169           ac_config_files="$ac_config_files include/Makefile"
23170
23171           ac_config_files="$ac_config_files include/isc/Makefile"
23172
23173           ac_config_files="$ac_config_files kernel/Makefile"
23174
23175           ac_config_files="$ac_config_files kernel/sys/Makefile"
23176
23177           ac_config_files="$ac_config_files libntp/Makefile"
23178
23179           ac_config_files="$ac_config_files libparse/Makefile"
23180
23181           ac_config_files="$ac_config_files ntpd/Makefile"
23182
23183           ac_config_files="$ac_config_files ntpdate/Makefile"
23184
23185           ac_config_files="$ac_config_files ntpdc/Makefile"
23186
23187           ac_config_files="$ac_config_files ntpdc/nl.pl"
23188
23189           ac_config_files="$ac_config_files ntpq/Makefile"
23190
23191           ac_config_files="$ac_config_files parseutil/Makefile"
23192
23193           ac_config_files="$ac_config_files scripts/Makefile"
23194
23195           ac_config_files="$ac_config_files scripts/calc_tickadj"
23196
23197           ac_config_files="$ac_config_files scripts/checktime"
23198
23199           ac_config_files="$ac_config_files scripts/freq_adj"
23200
23201           ac_config_files="$ac_config_files scripts/mkver"
23202
23203           ac_config_files="$ac_config_files scripts/ntp-wait"
23204
23205           ac_config_files="$ac_config_files scripts/ntpsweep"
23206
23207           ac_config_files="$ac_config_files scripts/ntptrace"
23208
23209           ac_config_files="$ac_config_files scripts/ntpver"
23210
23211           ac_config_files="$ac_config_files scripts/plot_summary"
23212
23213           ac_config_files="$ac_config_files scripts/summary"
23214
23215           ac_config_files="$ac_config_files util/Makefile"
23216
23217
23218 case "$MAKE_SNTP" in
23219  '') ;;
23220  *)
23221
23222
23223 subdirs="$subdirs sntp"
23224
23225     ;;
23226 esac
23227
23228 cat >confcache <<\_ACEOF
23229 # This file is a shell script that caches the results of configure
23230 # tests run on this system so they can be shared between configure
23231 # scripts and configure runs, see configure's option --config-cache.
23232 # It is not useful on other systems.  If it contains results you don't
23233 # want to keep, you may remove or edit it.
23234 #
23235 # config.status only pays attention to the cache file if you give it
23236 # the --recheck option to rerun configure.
23237 #
23238 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23239 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23240 # following values.
23241
23242 _ACEOF
23243
23244 # The following way of writing the cache mishandles newlines in values,
23245 # but we know of no workaround that is simple, portable, and efficient.
23246 # So, don't put newlines in cache variables' values.
23247 # Ultrix sh set writes to stderr and can't be redirected directly,
23248 # and sets the high bit in the cache file unless we assign to the vars.
23249 {
23250   (set) 2>&1 |
23251     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23252     *ac_space=\ *)
23253       # `set' does not quote correctly, so add quotes (double-quote
23254       # substitution turns \\\\ into \\, and sed turns \\ into \).
23255       sed -n \
23256         "s/'/'\\\\''/g;
23257           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23258       ;;
23259     *)
23260       # `set' quotes correctly as required by POSIX, so do not add quotes.
23261       sed -n \
23262         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23263       ;;
23264     esac;
23265 } |
23266   sed '
23267      t clear
23268      : clear
23269      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23270      t end
23271      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23272      : end' >>confcache
23273 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23274   if test -w $cache_file; then
23275     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23276     cat confcache >$cache_file
23277   else
23278     echo "not updating unwritable cache $cache_file"
23279   fi
23280 fi
23281 rm -f confcache
23282
23283 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23284 # Let make expand exec_prefix.
23285 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23286
23287 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23288 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23289 # trailing colons and then remove the whole line if VPATH becomes empty
23290 # (actually we leave an empty line to preserve line numbers).
23291 if test "x$srcdir" = x.; then
23292   ac_vpsub='/^[         ]*VPATH[        ]*=/{
23293 s/:*\$(srcdir):*/:/;
23294 s/:*\${srcdir}:*/:/;
23295 s/:*@srcdir@:*/:/;
23296 s/^\([^=]*=[    ]*\):*/\1/;
23297 s/:*$//;
23298 s/^[^=]*=[      ]*$//;
23299 }'
23300 fi
23301
23302 DEFS=-DHAVE_CONFIG_H
23303
23304 ac_libobjs=
23305 ac_ltlibobjs=
23306 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23307   # 1. Remove the extension, and $U if already installed.
23308   ac_i=`echo "$ac_i" |
23309          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23310   # 2. Add them.
23311   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23312   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23313 done
23314 LIBOBJS=$ac_libobjs
23315
23316 LTLIBOBJS=$ac_ltlibobjs
23317
23318
23319 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23320   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23321 Usually this means the macro was only invoked conditionally." >&5
23322 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23323 Usually this means the macro was only invoked conditionally." >&2;}
23324    { (exit 1); exit 1; }; }
23325 fi
23326 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23327   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23328 Usually this means the macro was only invoked conditionally." >&5
23329 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23330 Usually this means the macro was only invoked conditionally." >&2;}
23331    { (exit 1); exit 1; }; }
23332 fi
23333 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23334   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23335 Usually this means the macro was only invoked conditionally." >&5
23336 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23337 Usually this means the macro was only invoked conditionally." >&2;}
23338    { (exit 1); exit 1; }; }
23339 fi
23340
23341 : ${CONFIG_STATUS=./config.status}
23342 ac_clean_files_save=$ac_clean_files
23343 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23344 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23345 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23346 cat >$CONFIG_STATUS <<_ACEOF
23347 #! $SHELL
23348 # Generated by $as_me.
23349 # Run this file to recreate the current configuration.
23350 # Compiler output produced by configure, useful for debugging
23351 # configure, is in config.log if it exists.
23352
23353 debug=false
23354 ac_cs_recheck=false
23355 ac_cs_silent=false
23356 SHELL=\${CONFIG_SHELL-$SHELL}
23357 _ACEOF
23358
23359 cat >>$CONFIG_STATUS <<\_ACEOF
23360 ## --------------------- ##
23361 ## M4sh Initialization.  ##
23362 ## --------------------- ##
23363
23364 # Be Bourne compatible
23365 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23366   emulate sh
23367   NULLCMD=:
23368   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23369   # is contrary to our usage.  Disable this feature.
23370   alias -g '${1+"$@"}'='"$@"'
23371 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23372   set -o posix
23373 fi
23374
23375 # Support unset when possible.
23376 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23377   as_unset=unset
23378 else
23379   as_unset=false
23380 fi
23381
23382
23383 # Work around bugs in pre-3.0 UWIN ksh.
23384 $as_unset ENV MAIL MAILPATH
23385 PS1='$ '
23386 PS2='> '
23387 PS4='+ '
23388
23389 # NLS nuisances.
23390 for as_var in \
23391   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23392   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23393   LC_TELEPHONE LC_TIME
23394 do
23395   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23396     eval $as_var=C; export $as_var
23397   else
23398     $as_unset $as_var
23399   fi
23400 done
23401
23402 # Required to use basename.
23403 if expr a : '\(a\)' >/dev/null 2>&1; then
23404   as_expr=expr
23405 else
23406   as_expr=false
23407 fi
23408
23409 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23410   as_basename=basename
23411 else
23412   as_basename=false
23413 fi
23414
23415
23416 # Name of the executable.
23417 as_me=`$as_basename "$0" ||
23418 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23419          X"$0" : 'X\(//\)$' \| \
23420          X"$0" : 'X\(/\)$' \| \
23421          .     : '\(.\)' 2>/dev/null ||
23422 echo X/"$0" |
23423     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23424           /^X\/\(\/\/\)$/{ s//\1/; q; }
23425           /^X\/\(\/\).*/{ s//\1/; q; }
23426           s/.*/./; q'`
23427
23428
23429 # PATH needs CR, and LINENO needs CR and PATH.
23430 # Avoid depending upon Character Ranges.
23431 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23432 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23433 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23434 as_cr_digits='0123456789'
23435 as_cr_alnum=$as_cr_Letters$as_cr_digits
23436
23437 # The user is always right.
23438 if test "${PATH_SEPARATOR+set}" != set; then
23439   echo "#! /bin/sh" >conf$$.sh
23440   echo  "exit 0"   >>conf$$.sh
23441   chmod +x conf$$.sh
23442   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23443     PATH_SEPARATOR=';'
23444   else
23445     PATH_SEPARATOR=:
23446   fi
23447   rm -f conf$$.sh
23448 fi
23449
23450
23451   as_lineno_1=$LINENO
23452   as_lineno_2=$LINENO
23453   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23454   test "x$as_lineno_1" != "x$as_lineno_2" &&
23455   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23456   # Find who we are.  Look in the path if we contain no path at all
23457   # relative or not.
23458   case $0 in
23459     *[\\/]* ) as_myself=$0 ;;
23460     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23461 for as_dir in $PATH
23462 do
23463   IFS=$as_save_IFS
23464   test -z "$as_dir" && as_dir=.
23465   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23466 done
23467
23468        ;;
23469   esac
23470   # We did not find ourselves, most probably we were run as `sh COMMAND'
23471   # in which case we are not to be found in the path.
23472   if test "x$as_myself" = x; then
23473     as_myself=$0
23474   fi
23475   if test ! -f "$as_myself"; then
23476     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23477 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23478    { (exit 1); exit 1; }; }
23479   fi
23480   case $CONFIG_SHELL in
23481   '')
23482     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23483 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23484 do
23485   IFS=$as_save_IFS
23486   test -z "$as_dir" && as_dir=.
23487   for as_base in sh bash ksh sh5; do
23488          case $as_dir in
23489          /*)
23490            if ("$as_dir/$as_base" -c '
23491   as_lineno_1=$LINENO
23492   as_lineno_2=$LINENO
23493   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23494   test "x$as_lineno_1" != "x$as_lineno_2" &&
23495   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23496              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23497              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23498              CONFIG_SHELL=$as_dir/$as_base
23499              export CONFIG_SHELL
23500              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23501            fi;;
23502          esac
23503        done
23504 done
23505 ;;
23506   esac
23507
23508   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23509   # uniformly replaced by the line number.  The first 'sed' inserts a
23510   # line-number line before each line; the second 'sed' does the real
23511   # work.  The second script uses 'N' to pair each line-number line
23512   # with the numbered line, and appends trailing '-' during
23513   # substitution so that $LINENO is not a special case at line end.
23514   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23515   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23516   sed '=' <$as_myself |
23517     sed '
23518       N
23519       s,$,-,
23520       : loop
23521       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23522       t loop
23523       s,-$,,
23524       s,^['$as_cr_digits']*\n,,
23525     ' >$as_me.lineno &&
23526   chmod +x $as_me.lineno ||
23527     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23528 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23529    { (exit 1); exit 1; }; }
23530
23531   # Don't try to exec as it changes $[0], causing all sort of problems
23532   # (the dirname of $[0] is not the place where we might find the
23533   # original and so on.  Autoconf is especially sensible to this).
23534   . ./$as_me.lineno
23535   # Exit status is that of the last command.
23536   exit
23537 }
23538
23539
23540 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23541   *c*,-n*) ECHO_N= ECHO_C='
23542 ' ECHO_T='      ' ;;
23543   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23544   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23545 esac
23546
23547 if expr a : '\(a\)' >/dev/null 2>&1; then
23548   as_expr=expr
23549 else
23550   as_expr=false
23551 fi
23552
23553 rm -f conf$$ conf$$.exe conf$$.file
23554 echo >conf$$.file
23555 if ln -s conf$$.file conf$$ 2>/dev/null; then
23556   # We could just check for DJGPP; but this test a) works b) is more generic
23557   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23558   if test -f conf$$.exe; then
23559     # Don't use ln at all; we don't have any links
23560     as_ln_s='cp -p'
23561   else
23562     as_ln_s='ln -s'
23563   fi
23564 elif ln conf$$.file conf$$ 2>/dev/null; then
23565   as_ln_s=ln
23566 else
23567   as_ln_s='cp -p'
23568 fi
23569 rm -f conf$$ conf$$.exe conf$$.file
23570
23571 if mkdir -p . 2>/dev/null; then
23572   as_mkdir_p=:
23573 else
23574   as_mkdir_p=false
23575 fi
23576
23577 as_executable_p="test -f"
23578
23579 # Sed expression to map a string onto a valid CPP name.
23580 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23581
23582 # Sed expression to map a string onto a valid variable name.
23583 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23584
23585
23586 # IFS
23587 # We need space, tab and new line, in precisely that order.
23588 as_nl='
23589 '
23590 IFS="   $as_nl"
23591
23592 # CDPATH.
23593 $as_unset CDPATH
23594
23595 exec 6>&1
23596
23597 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23598 # report actual input values of CONFIG_FILES etc. instead of their
23599 # values after options handling.  Logging --version etc. is OK.
23600 exec 5>>config.log
23601 {
23602   echo
23603   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23604 ## Running $as_me. ##
23605 _ASBOX
23606 } >&5
23607 cat >&5 <<_CSEOF
23608
23609 This file was extended by $as_me, which was
23610 generated by GNU Autoconf 2.57.  Invocation command line was
23611
23612   CONFIG_FILES    = $CONFIG_FILES
23613   CONFIG_HEADERS  = $CONFIG_HEADERS
23614   CONFIG_LINKS    = $CONFIG_LINKS
23615   CONFIG_COMMANDS = $CONFIG_COMMANDS
23616   $ $0 $@
23617
23618 _CSEOF
23619 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23620 echo >&5
23621 _ACEOF
23622
23623 # Files that config.status was made for.
23624 if test -n "$ac_config_files"; then
23625   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23626 fi
23627
23628 if test -n "$ac_config_headers"; then
23629   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23630 fi
23631
23632 if test -n "$ac_config_links"; then
23633   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23634 fi
23635
23636 if test -n "$ac_config_commands"; then
23637   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23638 fi
23639
23640 cat >>$CONFIG_STATUS <<\_ACEOF
23641
23642 ac_cs_usage="\
23643 \`$as_me' instantiates files from templates according to the
23644 current configuration.
23645
23646 Usage: $0 [OPTIONS] [FILE]...
23647
23648   -h, --help       print this help, then exit
23649   -V, --version    print version number, then exit
23650   -q, --quiet      do not print progress messages
23651   -d, --debug      don't remove temporary files
23652       --recheck    update $as_me by reconfiguring in the same conditions
23653   --file=FILE[:TEMPLATE]
23654                    instantiate the configuration file FILE
23655   --header=FILE[:TEMPLATE]
23656                    instantiate the configuration header FILE
23657
23658 Configuration files:
23659 $config_files
23660
23661 Configuration headers:
23662 $config_headers
23663
23664 Configuration commands:
23665 $config_commands
23666
23667 Report bugs to <bug-autoconf@gnu.org>."
23668 _ACEOF
23669
23670 cat >>$CONFIG_STATUS <<_ACEOF
23671 ac_cs_version="\\
23672 config.status
23673 configured by $0, generated by GNU Autoconf 2.57,
23674   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23675
23676 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23677 Free Software Foundation, Inc.
23678 This config.status script is free software; the Free Software Foundation
23679 gives unlimited permission to copy, distribute and modify it."
23680 srcdir=$srcdir
23681 INSTALL="$INSTALL"
23682 _ACEOF
23683
23684 cat >>$CONFIG_STATUS <<\_ACEOF
23685 # If no file are specified by the user, then we need to provide default
23686 # value.  By we need to know if files were specified by the user.
23687 ac_need_defaults=:
23688 while test $# != 0
23689 do
23690   case $1 in
23691   --*=*)
23692     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23693     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23694     ac_shift=:
23695     ;;
23696   -*)
23697     ac_option=$1
23698     ac_optarg=$2
23699     ac_shift=shift
23700     ;;
23701   *) # This is not an option, so the user has probably given explicit
23702      # arguments.
23703      ac_option=$1
23704      ac_need_defaults=false;;
23705   esac
23706
23707   case $ac_option in
23708   # Handling of the options.
23709 _ACEOF
23710 cat >>$CONFIG_STATUS <<\_ACEOF
23711   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23712     ac_cs_recheck=: ;;
23713   --version | --vers* | -V )
23714     echo "$ac_cs_version"; exit 0 ;;
23715   --he | --h)
23716     # Conflict between --help and --header
23717     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23718 Try \`$0 --help' for more information." >&5
23719 echo "$as_me: error: ambiguous option: $1
23720 Try \`$0 --help' for more information." >&2;}
23721    { (exit 1); exit 1; }; };;
23722   --help | --hel | -h )
23723     echo "$ac_cs_usage"; exit 0 ;;
23724   --debug | --d* | -d )
23725     debug=: ;;
23726   --file | --fil | --fi | --f )
23727     $ac_shift
23728     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23729     ac_need_defaults=false;;
23730   --header | --heade | --head | --hea )
23731     $ac_shift
23732     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23733     ac_need_defaults=false;;
23734   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23735   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23736     ac_cs_silent=: ;;
23737
23738   # This is an error.
23739   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23740 Try \`$0 --help' for more information." >&5
23741 echo "$as_me: error: unrecognized option: $1
23742 Try \`$0 --help' for more information." >&2;}
23743    { (exit 1); exit 1; }; } ;;
23744
23745   *) ac_config_targets="$ac_config_targets $1" ;;
23746
23747   esac
23748   shift
23749 done
23750
23751 ac_configure_extra_args=
23752
23753 if $ac_cs_silent; then
23754   exec 6>/dev/null
23755   ac_configure_extra_args="$ac_configure_extra_args --silent"
23756 fi
23757
23758 _ACEOF
23759 cat >>$CONFIG_STATUS <<_ACEOF
23760 if \$ac_cs_recheck; then
23761   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23762   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23763 fi
23764
23765 _ACEOF
23766
23767 cat >>$CONFIG_STATUS <<_ACEOF
23768 #
23769 # INIT-COMMANDS section.
23770 #
23771
23772 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23773
23774 _ACEOF
23775
23776
23777
23778 cat >>$CONFIG_STATUS <<\_ACEOF
23779 for ac_config_target in $ac_config_targets
23780 do
23781   case "$ac_config_target" in
23782   # Handling of arguments.
23783   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23784   "ElectricFence/Makefile" ) CONFIG_FILES="$CONFIG_FILES ElectricFence/Makefile" ;;
23785   "adjtimed/Makefile" ) CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
23786   "clockstuff/Makefile" ) CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
23787   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
23788   "include/isc/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
23789   "kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
23790   "kernel/sys/Makefile" ) CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
23791   "libntp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
23792   "libparse/Makefile" ) CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
23793   "ntpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
23794   "ntpdate/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
23795   "ntpdc/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
23796   "ntpdc/nl.pl" ) CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
23797   "ntpq/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
23798   "parseutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
23799   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
23800   "scripts/calc_tickadj" ) CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj" ;;
23801   "scripts/checktime" ) CONFIG_FILES="$CONFIG_FILES scripts/checktime" ;;
23802   "scripts/freq_adj" ) CONFIG_FILES="$CONFIG_FILES scripts/freq_adj" ;;
23803   "scripts/mkver" ) CONFIG_FILES="$CONFIG_FILES scripts/mkver" ;;
23804   "scripts/ntp-wait" ) CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait" ;;
23805   "scripts/ntpsweep" ) CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep" ;;
23806   "scripts/ntptrace" ) CONFIG_FILES="$CONFIG_FILES scripts/ntptrace" ;;
23807   "scripts/ntpver" ) CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
23808   "scripts/plot_summary" ) CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
23809   "scripts/summary" ) CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
23810   "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
23811   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23812   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23813   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23814 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23815    { (exit 1); exit 1; }; };;
23816   esac
23817 done
23818
23819 # If the user did not use the arguments to specify the items to instantiate,
23820 # then the envvar interface is used.  Set only those that are not.
23821 # We use the long form for the default assignment because of an extremely
23822 # bizarre bug on SunOS 4.1.3.
23823 if $ac_need_defaults; then
23824   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23825   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23826   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23827 fi
23828
23829 # Have a temporary directory for convenience.  Make it in the build tree
23830 # simply because there is no reason to put it here, and in addition,
23831 # creating and moving files from /tmp can sometimes cause problems.
23832 # Create a temporary directory, and hook for its removal unless debugging.
23833 $debug ||
23834 {
23835   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23836   trap '{ (exit 1); exit 1; }' 1 2 13 15
23837 }
23838
23839 # Create a (secure) tmp directory for tmp files.
23840
23841 {
23842   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23843   test -n "$tmp" && test -d "$tmp"
23844 }  ||
23845 {
23846   tmp=./confstat$$-$RANDOM
23847   (umask 077 && mkdir $tmp)
23848 } ||
23849 {
23850    echo "$me: cannot create a temporary directory in ." >&2
23851    { (exit 1); exit 1; }
23852 }
23853
23854 _ACEOF
23855
23856 cat >>$CONFIG_STATUS <<_ACEOF
23857
23858 #
23859 # CONFIG_FILES section.
23860 #
23861
23862 # No need to generate the scripts if there are no CONFIG_FILES.
23863 # This happens for instance when ./config.status config.h
23864 if test -n "\$CONFIG_FILES"; then
23865   # Protect against being on the right side of a sed subst in config.status.
23866   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23867    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23868 s,@SHELL@,$SHELL,;t t
23869 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23870 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23871 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23872 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23873 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23874 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23875 s,@exec_prefix@,$exec_prefix,;t t
23876 s,@prefix@,$prefix,;t t
23877 s,@program_transform_name@,$program_transform_name,;t t
23878 s,@bindir@,$bindir,;t t
23879 s,@sbindir@,$sbindir,;t t
23880 s,@libexecdir@,$libexecdir,;t t
23881 s,@datadir@,$datadir,;t t
23882 s,@sysconfdir@,$sysconfdir,;t t
23883 s,@sharedstatedir@,$sharedstatedir,;t t
23884 s,@localstatedir@,$localstatedir,;t t
23885 s,@libdir@,$libdir,;t t
23886 s,@includedir@,$includedir,;t t
23887 s,@oldincludedir@,$oldincludedir,;t t
23888 s,@infodir@,$infodir,;t t
23889 s,@mandir@,$mandir,;t t
23890 s,@build_alias@,$build_alias,;t t
23891 s,@host_alias@,$host_alias,;t t
23892 s,@target_alias@,$target_alias,;t t
23893 s,@DEFS@,$DEFS,;t t
23894 s,@ECHO_C@,$ECHO_C,;t t
23895 s,@ECHO_N@,$ECHO_N,;t t
23896 s,@ECHO_T@,$ECHO_T,;t t
23897 s,@LIBS@,$LIBS,;t t
23898 s,@build@,$build,;t t
23899 s,@build_cpu@,$build_cpu,;t t
23900 s,@build_vendor@,$build_vendor,;t t
23901 s,@build_os@,$build_os,;t t
23902 s,@host@,$host,;t t
23903 s,@host_cpu@,$host_cpu,;t t
23904 s,@host_vendor@,$host_vendor,;t t
23905 s,@host_os@,$host_os,;t t
23906 s,@target@,$target,;t t
23907 s,@target_cpu@,$target_cpu,;t t
23908 s,@target_vendor@,$target_vendor,;t t
23909 s,@target_os@,$target_os,;t t
23910 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23911 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23912 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23913 s,@CYGPATH_W@,$CYGPATH_W,;t t
23914 s,@PACKAGE@,$PACKAGE,;t t
23915 s,@VERSION@,$VERSION,;t t
23916 s,@ACLOCAL@,$ACLOCAL,;t t
23917 s,@AUTOCONF@,$AUTOCONF,;t t
23918 s,@AUTOMAKE@,$AUTOMAKE,;t t
23919 s,@AUTOHEADER@,$AUTOHEADER,;t t
23920 s,@MAKEINFO@,$MAKEINFO,;t t
23921 s,@AMTAR@,$AMTAR,;t t
23922 s,@install_sh@,$install_sh,;t t
23923 s,@STRIP@,$STRIP,;t t
23924 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23925 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23926 s,@AWK@,$AWK,;t t
23927 s,@SET_MAKE@,$SET_MAKE,;t t
23928 s,@am__leading_dot@,$am__leading_dot,;t t
23929 s,@CC@,$CC,;t t
23930 s,@CFLAGS@,$CFLAGS,;t t
23931 s,@LDFLAGS@,$LDFLAGS,;t t
23932 s,@CPPFLAGS@,$CPPFLAGS,;t t
23933 s,@ac_ct_CC@,$ac_ct_CC,;t t
23934 s,@EXEEXT@,$EXEEXT,;t t
23935 s,@OBJEXT@,$OBJEXT,;t t
23936 s,@DEPDIR@,$DEPDIR,;t t
23937 s,@am__include@,$am__include,;t t
23938 s,@am__quote@,$am__quote,;t t
23939 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23940 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23941 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23942 s,@CCDEPMODE@,$CCDEPMODE,;t t
23943 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23944 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23945 s,@CPP@,$CPP,;t t
23946 s,@EGREP@,$EGREP,;t t
23947 s,@LN_S@,$LN_S,;t t
23948 s,@RANLIB@,$RANLIB,;t t
23949 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23950 s,@PATH_SH@,$PATH_SH,;t t
23951 s,@PATH_PERL@,$PATH_PERL,;t t
23952 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
23953 s,@U@,$U,;t t
23954 s,@ANSI2KNR@,$ANSI2KNR,;t t
23955 s,@LIBOBJS@,$LIBOBJS,;t t
23956 s,@LIBPARSE@,$LIBPARSE,;t t
23957 s,@MAKE_LIBPARSE@,$MAKE_LIBPARSE,;t t
23958 s,@MAKE_LIBPARSE_KERNEL@,$MAKE_LIBPARSE_KERNEL,;t t
23959 s,@MAKE_CHECK_Y2K@,$MAKE_CHECK_Y2K,;t t
23960 s,@OPENSSL@,$OPENSSL,;t t
23961 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
23962 s,@OPENSSL_LIB@,$OPENSSL_LIB,;t t
23963 s,@MAKE_NTP_KEYGEN@,$MAKE_NTP_KEYGEN,;t t
23964 s,@LCRYPTO@,$LCRYPTO,;t t
23965 s,@EF_PROGS@,$EF_PROGS,;t t
23966 s,@EF_LIBS@,$EF_LIBS,;t t
23967 s,@MAKE_SNTP@,$MAKE_SNTP,;t t
23968 s,@TESTDCF@,$TESTDCF,;t t
23969 s,@DCFD@,$DCFD,;t t
23970 s,@MAKE_PARSEKMODULE@,$MAKE_PARSEKMODULE,;t t
23971 s,@PROPDELAY@,$PROPDELAY,;t t
23972 s,@CHUTEST@,$CHUTEST,;t t
23973 s,@CLKTEST@,$CLKTEST,;t t
23974 s,@MAKE_ADJTIMED@,$MAKE_ADJTIMED,;t t
23975 s,@MAKE_NTPTIME@,$MAKE_NTPTIME,;t t
23976 s,@MAKE_TICKADJ@,$MAKE_TICKADJ,;t t
23977 s,@MAKE_TIMETRIM@,$MAKE_TIMETRIM,;t t
23978 s,@MAKE_LIBNTPSIM@,$MAKE_LIBNTPSIM,;t t
23979 s,@MAKE_NTPDSIM@,$MAKE_NTPDSIM,;t t
23980 s,@ARLIB_DIR@,$ARLIB_DIR,;t t
23981 s,@subdirs@,$subdirs,;t t
23982 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23983 CEOF
23984
23985 _ACEOF
23986
23987   cat >>$CONFIG_STATUS <<\_ACEOF
23988   # Split the substitutions into bite-sized pieces for seds with
23989   # small command number limits, like on Digital OSF/1 and HP-UX.
23990   ac_max_sed_lines=48
23991   ac_sed_frag=1 # Number of current file.
23992   ac_beg=1 # First line for current file.
23993   ac_end=$ac_max_sed_lines # Line after last line for current file.
23994   ac_more_lines=:
23995   ac_sed_cmds=
23996   while $ac_more_lines; do
23997     if test $ac_beg -gt 1; then
23998       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23999     else
24000       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24001     fi
24002     if test ! -s $tmp/subs.frag; then
24003       ac_more_lines=false
24004     else
24005       # The purpose of the label and of the branching condition is to
24006       # speed up the sed processing (if there are no `@' at all, there
24007       # is no need to browse any of the substitutions).
24008       # These are the two extra sed commands mentioned above.
24009       (echo ':t
24010   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24011       if test -z "$ac_sed_cmds"; then
24012         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24013       else
24014         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24015       fi
24016       ac_sed_frag=`expr $ac_sed_frag + 1`
24017       ac_beg=$ac_end
24018       ac_end=`expr $ac_end + $ac_max_sed_lines`
24019     fi
24020   done
24021   if test -z "$ac_sed_cmds"; then
24022     ac_sed_cmds=cat
24023   fi
24024 fi # test -n "$CONFIG_FILES"
24025
24026 _ACEOF
24027 cat >>$CONFIG_STATUS <<\_ACEOF
24028 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24029   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24030   case $ac_file in
24031   - | *:- | *:-:* ) # input from stdin
24032         cat >$tmp/stdin
24033         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24034         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24035   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24036         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24037   * )   ac_file_in=$ac_file.in ;;
24038   esac
24039
24040   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24041   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24042 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24043          X"$ac_file" : 'X\(//\)[^/]' \| \
24044          X"$ac_file" : 'X\(//\)$' \| \
24045          X"$ac_file" : 'X\(/\)' \| \
24046          .     : '\(.\)' 2>/dev/null ||
24047 echo X"$ac_file" |
24048     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24049           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24050           /^X\(\/\/\)$/{ s//\1/; q; }
24051           /^X\(\/\).*/{ s//\1/; q; }
24052           s/.*/./; q'`
24053   { if $as_mkdir_p; then
24054     mkdir -p "$ac_dir"
24055   else
24056     as_dir="$ac_dir"
24057     as_dirs=
24058     while test ! -d "$as_dir"; do
24059       as_dirs="$as_dir $as_dirs"
24060       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24061 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24062          X"$as_dir" : 'X\(//\)[^/]' \| \
24063          X"$as_dir" : 'X\(//\)$' \| \
24064          X"$as_dir" : 'X\(/\)' \| \
24065          .     : '\(.\)' 2>/dev/null ||
24066 echo X"$as_dir" |
24067     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24068           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24069           /^X\(\/\/\)$/{ s//\1/; q; }
24070           /^X\(\/\).*/{ s//\1/; q; }
24071           s/.*/./; q'`
24072     done
24073     test ! -n "$as_dirs" || mkdir $as_dirs
24074   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24075 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24076    { (exit 1); exit 1; }; }; }
24077
24078   ac_builddir=.
24079
24080 if test "$ac_dir" != .; then
24081   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24082   # A "../" for each directory in $ac_dir_suffix.
24083   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24084 else
24085   ac_dir_suffix= ac_top_builddir=
24086 fi
24087
24088 case $srcdir in
24089   .)  # No --srcdir option.  We are building in place.
24090     ac_srcdir=.
24091     if test -z "$ac_top_builddir"; then
24092        ac_top_srcdir=.
24093     else
24094        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24095     fi ;;
24096   [\\/]* | ?:[\\/]* )  # Absolute path.
24097     ac_srcdir=$srcdir$ac_dir_suffix;
24098     ac_top_srcdir=$srcdir ;;
24099   *) # Relative path.
24100     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24101     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24102 esac
24103 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24104 # absolute.
24105 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24106 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24107 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24108 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24109
24110
24111   case $INSTALL in
24112   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24113   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24114   esac
24115
24116   if test x"$ac_file" != x-; then
24117     { echo "$as_me:$LINENO: creating $ac_file" >&5
24118 echo "$as_me: creating $ac_file" >&6;}
24119     rm -f "$ac_file"
24120   fi
24121   # Let's still pretend it is `configure' which instantiates (i.e., don't
24122   # use $as_me), people would be surprised to read:
24123   #    /* config.h.  Generated by config.status.  */
24124   if test x"$ac_file" = x-; then
24125     configure_input=
24126   else
24127     configure_input="$ac_file.  "
24128   fi
24129   configure_input=$configure_input"Generated from `echo $ac_file_in |
24130                                      sed 's,.*/,,'` by configure."
24131
24132   # First look for the input files in the build tree, otherwise in the
24133   # src tree.
24134   ac_file_inputs=`IFS=:
24135     for f in $ac_file_in; do
24136       case $f in
24137       -) echo $tmp/stdin ;;
24138       [\\/$]*)
24139          # Absolute (can't be DOS-style, as IFS=:)
24140          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24141 echo "$as_me: error: cannot find input file: $f" >&2;}
24142    { (exit 1); exit 1; }; }
24143          echo $f;;
24144       *) # Relative
24145          if test -f "$f"; then
24146            # Build tree
24147            echo $f
24148          elif test -f "$srcdir/$f"; then
24149            # Source tree
24150            echo $srcdir/$f
24151          else
24152            # /dev/null tree
24153            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24154 echo "$as_me: error: cannot find input file: $f" >&2;}
24155    { (exit 1); exit 1; }; }
24156          fi;;
24157       esac
24158     done` || { (exit 1); exit 1; }
24159 _ACEOF
24160 cat >>$CONFIG_STATUS <<_ACEOF
24161   sed "$ac_vpsub
24162 $extrasub
24163 _ACEOF
24164 cat >>$CONFIG_STATUS <<\_ACEOF
24165 :t
24166 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24167 s,@configure_input@,$configure_input,;t t
24168 s,@srcdir@,$ac_srcdir,;t t
24169 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24170 s,@top_srcdir@,$ac_top_srcdir,;t t
24171 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24172 s,@builddir@,$ac_builddir,;t t
24173 s,@abs_builddir@,$ac_abs_builddir,;t t
24174 s,@top_builddir@,$ac_top_builddir,;t t
24175 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24176 s,@INSTALL@,$ac_INSTALL,;t t
24177 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24178   rm -f $tmp/stdin
24179   if test x"$ac_file" != x-; then
24180     mv $tmp/out $ac_file
24181   else
24182     cat $tmp/out
24183     rm -f $tmp/out
24184   fi
24185
24186   # Run the commands associated with the file.
24187   case $ac_file in
24188     ntpdc/nl.pl ) chmod +x ntpdc/nl.pl ;;
24189     scripts/calc_tickadj ) chmod +x scripts/calc_tickadj ;;
24190     scripts/checktime ) chmod +x scripts/checktime ;;
24191     scripts/freq_adj ) chmod +x scripts/freq_adj ;;
24192     scripts/mkver ) chmod +x scripts/mkver ;;
24193     scripts/ntp-wait ) chmod +x scripts/ntp-wait ;;
24194     scripts/ntpsweep ) chmod +x scripts/ntpsweep ;;
24195     scripts/ntptrace ) chmod +x scripts/ntptrace ;;
24196     scripts/ntpver ) chmod +x scripts/ntpver ;;
24197     scripts/plot_summary ) chmod +x scripts/plot_summary ;;
24198     scripts/summary ) chmod +x scripts/summary ;;
24199   esac
24200 done
24201 _ACEOF
24202 cat >>$CONFIG_STATUS <<\_ACEOF
24203
24204 #
24205 # CONFIG_HEADER section.
24206 #
24207
24208 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24209 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24210 #
24211 # ac_d sets the value in "#define NAME VALUE" lines.
24212 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24213 ac_dB='[        ].*$,\1#\2'
24214 ac_dC=' '
24215 ac_dD=',;t'
24216 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24217 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24218 ac_uB='$,\1#\2define\3'
24219 ac_uC=' '
24220 ac_uD=',;t'
24221
24222 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24223   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24224   case $ac_file in
24225   - | *:- | *:-:* ) # input from stdin
24226         cat >$tmp/stdin
24227         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24228         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24229   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24230         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24231   * )   ac_file_in=$ac_file.in ;;
24232   esac
24233
24234   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24235 echo "$as_me: creating $ac_file" >&6;}
24236
24237   # First look for the input files in the build tree, otherwise in the
24238   # src tree.
24239   ac_file_inputs=`IFS=:
24240     for f in $ac_file_in; do
24241       case $f in
24242       -) echo $tmp/stdin ;;
24243       [\\/$]*)
24244          # Absolute (can't be DOS-style, as IFS=:)
24245          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24246 echo "$as_me: error: cannot find input file: $f" >&2;}
24247    { (exit 1); exit 1; }; }
24248          echo $f;;
24249       *) # Relative
24250          if test -f "$f"; then
24251            # Build tree
24252            echo $f
24253          elif test -f "$srcdir/$f"; then
24254            # Source tree
24255            echo $srcdir/$f
24256          else
24257            # /dev/null tree
24258            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24259 echo "$as_me: error: cannot find input file: $f" >&2;}
24260    { (exit 1); exit 1; }; }
24261          fi;;
24262       esac
24263     done` || { (exit 1); exit 1; }
24264   # Remove the trailing spaces.
24265   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24266
24267 _ACEOF
24268
24269 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24270 # `conftest.undefs', that substitutes the proper values into
24271 # config.h.in to produce config.h.  The first handles `#define'
24272 # templates, and the second `#undef' templates.
24273 # And first: Protect against being on the right side of a sed subst in
24274 # config.status.  Protect against being in an unquoted here document
24275 # in config.status.
24276 rm -f conftest.defines conftest.undefs
24277 # Using a here document instead of a string reduces the quoting nightmare.
24278 # Putting comments in sed scripts is not portable.
24279 #
24280 # `end' is used to avoid that the second main sed command (meant for
24281 # 0-ary CPP macros) applies to n-ary macro definitions.
24282 # See the Autoconf documentation for `clear'.
24283 cat >confdef2sed.sed <<\_ACEOF
24284 s/[\\&,]/\\&/g
24285 s,[\\$`],\\&,g
24286 t clear
24287 : clear
24288 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24289 t end
24290 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24291 : end
24292 _ACEOF
24293 # If some macros were called several times there might be several times
24294 # the same #defines, which is useless.  Nevertheless, we may not want to
24295 # sort them, since we want the *last* AC-DEFINE to be honored.
24296 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24297 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24298 rm -f confdef2sed.sed
24299
24300 # This sed command replaces #undef with comments.  This is necessary, for
24301 # example, in the case of _POSIX_SOURCE, which is predefined and required
24302 # on some systems where configure will not decide to define it.
24303 cat >>conftest.undefs <<\_ACEOF
24304 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24305 _ACEOF
24306
24307 # Break up conftest.defines because some shells have a limit on the size
24308 # of here documents, and old seds have small limits too (100 cmds).
24309 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24310 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24311 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24312 echo '  :' >>$CONFIG_STATUS
24313 rm -f conftest.tail
24314 while grep . conftest.defines >/dev/null
24315 do
24316   # Write a limited-size here document to $tmp/defines.sed.
24317   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24318   # Speed up: don't consider the non `#define' lines.
24319   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24320   # Work around the forget-to-reset-the-flag bug.
24321   echo 't clr' >>$CONFIG_STATUS
24322   echo ': clr' >>$CONFIG_STATUS
24323   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24324   echo 'CEOF
24325   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24326   rm -f $tmp/in
24327   mv $tmp/out $tmp/in
24328 ' >>$CONFIG_STATUS
24329   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24330   rm -f conftest.defines
24331   mv conftest.tail conftest.defines
24332 done
24333 rm -f conftest.defines
24334 echo '  fi # grep' >>$CONFIG_STATUS
24335 echo >>$CONFIG_STATUS
24336
24337 # Break up conftest.undefs because some shells have a limit on the size
24338 # of here documents, and old seds have small limits too (100 cmds).
24339 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24340 rm -f conftest.tail
24341 while grep . conftest.undefs >/dev/null
24342 do
24343   # Write a limited-size here document to $tmp/undefs.sed.
24344   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24345   # Speed up: don't consider the non `#undef'
24346   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24347   # Work around the forget-to-reset-the-flag bug.
24348   echo 't clr' >>$CONFIG_STATUS
24349   echo ': clr' >>$CONFIG_STATUS
24350   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24351   echo 'CEOF
24352   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24353   rm -f $tmp/in
24354   mv $tmp/out $tmp/in
24355 ' >>$CONFIG_STATUS
24356   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24357   rm -f conftest.undefs
24358   mv conftest.tail conftest.undefs
24359 done
24360 rm -f conftest.undefs
24361
24362 cat >>$CONFIG_STATUS <<\_ACEOF
24363   # Let's still pretend it is `configure' which instantiates (i.e., don't
24364   # use $as_me), people would be surprised to read:
24365   #    /* config.h.  Generated by config.status.  */
24366   if test x"$ac_file" = x-; then
24367     echo "/* Generated by configure.  */" >$tmp/config.h
24368   else
24369     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24370   fi
24371   cat $tmp/in >>$tmp/config.h
24372   rm -f $tmp/in
24373   if test x"$ac_file" != x-; then
24374     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24375       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24376 echo "$as_me: $ac_file is unchanged" >&6;}
24377     else
24378       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24379 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24380          X"$ac_file" : 'X\(//\)[^/]' \| \
24381          X"$ac_file" : 'X\(//\)$' \| \
24382          X"$ac_file" : 'X\(/\)' \| \
24383          .     : '\(.\)' 2>/dev/null ||
24384 echo X"$ac_file" |
24385     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24386           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24387           /^X\(\/\/\)$/{ s//\1/; q; }
24388           /^X\(\/\).*/{ s//\1/; q; }
24389           s/.*/./; q'`
24390       { if $as_mkdir_p; then
24391     mkdir -p "$ac_dir"
24392   else
24393     as_dir="$ac_dir"
24394     as_dirs=
24395     while test ! -d "$as_dir"; do
24396       as_dirs="$as_dir $as_dirs"
24397       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24398 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24399          X"$as_dir" : 'X\(//\)[^/]' \| \
24400          X"$as_dir" : 'X\(//\)$' \| \
24401          X"$as_dir" : 'X\(/\)' \| \
24402          .     : '\(.\)' 2>/dev/null ||
24403 echo X"$as_dir" |
24404     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24405           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24406           /^X\(\/\/\)$/{ s//\1/; q; }
24407           /^X\(\/\).*/{ s//\1/; q; }
24408           s/.*/./; q'`
24409     done
24410     test ! -n "$as_dirs" || mkdir $as_dirs
24411   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24412 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24413    { (exit 1); exit 1; }; }; }
24414
24415       rm -f $ac_file
24416       mv $tmp/config.h $ac_file
24417     fi
24418   else
24419     cat $tmp/config.h
24420     rm -f $tmp/config.h
24421   fi
24422 # Compute $ac_file's index in $config_headers.
24423 _am_stamp_count=1
24424 for _am_header in $config_headers :; do
24425   case $_am_header in
24426     $ac_file | $ac_file:* )
24427       break ;;
24428     * )
24429       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24430   esac
24431 done
24432 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24433 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24434          X$ac_file : 'X\(//\)[^/]' \| \
24435          X$ac_file : 'X\(//\)$' \| \
24436          X$ac_file : 'X\(/\)' \| \
24437          .     : '\(.\)' 2>/dev/null ||
24438 echo X$ac_file |
24439     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24440           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24441           /^X\(\/\/\)$/{ s//\1/; q; }
24442           /^X\(\/\).*/{ s//\1/; q; }
24443           s/.*/./; q'`/stamp-h$_am_stamp_count
24444 done
24445 _ACEOF
24446 cat >>$CONFIG_STATUS <<\_ACEOF
24447
24448 #
24449 # CONFIG_COMMANDS section.
24450 #
24451 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24452   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24453   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24454   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24455 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24456          X"$ac_dest" : 'X\(//\)[^/]' \| \
24457          X"$ac_dest" : 'X\(//\)$' \| \
24458          X"$ac_dest" : 'X\(/\)' \| \
24459          .     : '\(.\)' 2>/dev/null ||
24460 echo X"$ac_dest" |
24461     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24462           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24463           /^X\(\/\/\)$/{ s//\1/; q; }
24464           /^X\(\/\).*/{ s//\1/; q; }
24465           s/.*/./; q'`
24466   ac_builddir=.
24467
24468 if test "$ac_dir" != .; then
24469   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24470   # A "../" for each directory in $ac_dir_suffix.
24471   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24472 else
24473   ac_dir_suffix= ac_top_builddir=
24474 fi
24475
24476 case $srcdir in
24477   .)  # No --srcdir option.  We are building in place.
24478     ac_srcdir=.
24479     if test -z "$ac_top_builddir"; then
24480        ac_top_srcdir=.
24481     else
24482        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24483     fi ;;
24484   [\\/]* | ?:[\\/]* )  # Absolute path.
24485     ac_srcdir=$srcdir$ac_dir_suffix;
24486     ac_top_srcdir=$srcdir ;;
24487   *) # Relative path.
24488     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24489     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24490 esac
24491 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24492 # absolute.
24493 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24494 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24495 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24496 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24497
24498
24499   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24500 echo "$as_me: executing $ac_dest commands" >&6;}
24501   case $ac_dest in
24502     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24503   # Strip MF so we end up with the name of the file.
24504   mf=`echo "$mf" | sed -e 's/:.*$//'`
24505   # Check whether this is an Automake generated Makefile or not.
24506   # We used to match only the files named `Makefile.in', but
24507   # some people rename them; so instead we look at the file content.
24508   # Grep'ing the first line is not enough: some people post-process
24509   # each Makefile.in and add a new line on top of each file to say so.
24510   # So let's grep whole file.
24511   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24512     dirpart=`(dirname "$mf") 2>/dev/null ||
24513 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24514          X"$mf" : 'X\(//\)[^/]' \| \
24515          X"$mf" : 'X\(//\)$' \| \
24516          X"$mf" : 'X\(/\)' \| \
24517          .     : '\(.\)' 2>/dev/null ||
24518 echo X"$mf" |
24519     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24520           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24521           /^X\(\/\/\)$/{ s//\1/; q; }
24522           /^X\(\/\).*/{ s//\1/; q; }
24523           s/.*/./; q'`
24524   else
24525     continue
24526   fi
24527   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
24528   # Extract the definition of DEP_FILES from the Makefile without
24529   # running `make'.
24530   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
24531   test -z "$DEPDIR" && continue
24532   # When using ansi2knr, U may be empty or an underscore; expand it
24533   U=`sed -n -e '/^U = / s///p' < "$mf"`
24534   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
24535   # We invoke sed twice because it is the simplest approach to
24536   # changing $(DEPDIR) to its actual value in the expansion.
24537   for file in `sed -n -e '
24538     /^DEP_FILES = .*\\\\$/ {
24539       s/^DEP_FILES = //
24540       :loop
24541         s/\\\\$//
24542         p
24543         n
24544         /\\\\$/ b loop
24545       p
24546     }
24547     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
24548        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24549     # Make sure the directory exists.
24550     test -f "$dirpart/$file" && continue
24551     fdir=`(dirname "$file") 2>/dev/null ||
24552 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24553          X"$file" : 'X\(//\)[^/]' \| \
24554          X"$file" : 'X\(//\)$' \| \
24555          X"$file" : 'X\(/\)' \| \
24556          .     : '\(.\)' 2>/dev/null ||
24557 echo X"$file" |
24558     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24559           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24560           /^X\(\/\/\)$/{ s//\1/; q; }
24561           /^X\(\/\).*/{ s//\1/; q; }
24562           s/.*/./; q'`
24563     { if $as_mkdir_p; then
24564     mkdir -p $dirpart/$fdir
24565   else
24566     as_dir=$dirpart/$fdir
24567     as_dirs=
24568     while test ! -d "$as_dir"; do
24569       as_dirs="$as_dir $as_dirs"
24570       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24571 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24572          X"$as_dir" : 'X\(//\)[^/]' \| \
24573          X"$as_dir" : 'X\(//\)$' \| \
24574          X"$as_dir" : 'X\(/\)' \| \
24575          .     : '\(.\)' 2>/dev/null ||
24576 echo X"$as_dir" |
24577     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24578           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24579           /^X\(\/\/\)$/{ s//\1/; q; }
24580           /^X\(\/\).*/{ s//\1/; q; }
24581           s/.*/./; q'`
24582     done
24583     test ! -n "$as_dirs" || mkdir $as_dirs
24584   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24585 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24586    { (exit 1); exit 1; }; }; }
24587
24588     # echo "creating $dirpart/$file"
24589     echo '# dummy' > "$dirpart/$file"
24590   done
24591 done
24592  ;;
24593   esac
24594 done
24595 _ACEOF
24596
24597 cat >>$CONFIG_STATUS <<\_ACEOF
24598
24599 { (exit 0); exit 0; }
24600 _ACEOF
24601 chmod +x $CONFIG_STATUS
24602 ac_clean_files=$ac_clean_files_save
24603
24604
24605 # configure is writing to config.log, and then calls config.status.
24606 # config.status does its own redirection, appending to config.log.
24607 # Unfortunately, on DOS this fails, as config.log is still kept open
24608 # by configure, so config.status won't be able to write to it; its
24609 # output is simply discarded.  So we exec the FD to /dev/null,
24610 # effectively closing config.log, so it can be properly (re)opened and
24611 # appended to by config.status.  When coming back to configure, we
24612 # need to make the FD available again.
24613 if test "$no_create" != yes; then
24614   ac_cs_success=:
24615   ac_config_status_args=
24616   test "$silent" = yes &&
24617     ac_config_status_args="$ac_config_status_args --quiet"
24618   exec 5>/dev/null
24619   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24620   exec 5>>config.log
24621   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24622   # would make configure fail if this is the last instruction.
24623   $ac_cs_success || { (exit 1); exit 1; }
24624 fi
24625
24626 #
24627 # CONFIG_SUBDIRS section.
24628 #
24629 if test "$no_recursion" != yes; then
24630
24631   # Remove --cache-file and --srcdir arguments so they do not pile up.
24632   ac_sub_configure_args=
24633   ac_prev=
24634   for ac_arg in $ac_configure_args; do
24635     if test -n "$ac_prev"; then
24636       ac_prev=
24637       continue
24638     fi
24639     case $ac_arg in
24640     -cache-file | --cache-file | --cache-fil | --cache-fi \
24641     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24642       ac_prev=cache_file ;;
24643     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24644     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24645     | --c=*)
24646       ;;
24647     --config-cache | -C)
24648       ;;
24649     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24650       ac_prev=srcdir ;;
24651     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24652       ;;
24653     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24654       ac_prev=prefix ;;
24655     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24656       ;;
24657     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24658     esac
24659   done
24660
24661   # Always prepend --prefix to ensure using the same prefix
24662   # in subdir configurations.
24663   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24664
24665   ac_popdir=`pwd`
24666   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24667
24668     # Do not complain, so a configure script can configure whichever
24669     # parts of a large source tree are present.
24670     test -d $srcdir/$ac_dir || continue
24671
24672     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24673 echo "$as_me: configuring in $ac_dir" >&6;}
24674     { if $as_mkdir_p; then
24675     mkdir -p "$ac_dir"
24676   else
24677     as_dir="$ac_dir"
24678     as_dirs=
24679     while test ! -d "$as_dir"; do
24680       as_dirs="$as_dir $as_dirs"
24681       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24682 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24683          X"$as_dir" : 'X\(//\)[^/]' \| \
24684          X"$as_dir" : 'X\(//\)$' \| \
24685          X"$as_dir" : 'X\(/\)' \| \
24686          .     : '\(.\)' 2>/dev/null ||
24687 echo X"$as_dir" |
24688     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24689           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24690           /^X\(\/\/\)$/{ s//\1/; q; }
24691           /^X\(\/\).*/{ s//\1/; q; }
24692           s/.*/./; q'`
24693     done
24694     test ! -n "$as_dirs" || mkdir $as_dirs
24695   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24696 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24697    { (exit 1); exit 1; }; }; }
24698
24699     ac_builddir=.
24700
24701 if test "$ac_dir" != .; then
24702   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24703   # A "../" for each directory in $ac_dir_suffix.
24704   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24705 else
24706   ac_dir_suffix= ac_top_builddir=
24707 fi
24708
24709 case $srcdir in
24710   .)  # No --srcdir option.  We are building in place.
24711     ac_srcdir=.
24712     if test -z "$ac_top_builddir"; then
24713        ac_top_srcdir=.
24714     else
24715        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24716     fi ;;
24717   [\\/]* | ?:[\\/]* )  # Absolute path.
24718     ac_srcdir=$srcdir$ac_dir_suffix;
24719     ac_top_srcdir=$srcdir ;;
24720   *) # Relative path.
24721     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24722     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24723 esac
24724 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24725 # absolute.
24726 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24727 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24728 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24729 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24730
24731
24732     cd $ac_dir
24733
24734     # Check for guested configure; otherwise get Cygnus style configure.
24735     if test -f $ac_srcdir/configure.gnu; then
24736       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24737     elif test -f $ac_srcdir/configure; then
24738       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24739     elif test -f $ac_srcdir/configure.in; then
24740       ac_sub_configure=$ac_configure
24741     else
24742       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24743 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24744       ac_sub_configure=
24745     fi
24746
24747     # The recursion is here.
24748     if test -n "$ac_sub_configure"; then
24749       # Make the cache file name correct relative to the subdirectory.
24750       case $cache_file in
24751       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24752       *) # Relative path.
24753         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24754       esac
24755
24756       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24757 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24758       # The eval makes quoting arguments work.
24759       eval $ac_sub_configure $ac_sub_configure_args \
24760            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24761         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24762 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24763    { (exit 1); exit 1; }; }
24764     fi
24765
24766     cd $ac_popdir
24767   done
24768 fi
24769