xref: /freebsd/contrib/ntp/configure (revision 6780ab54325a71e7e70112b11657973edde8655e)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.53.
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
10if expr a : '\(a\)' >/dev/null 2>&1; then
11  as_expr=expr
12else
13  as_expr=false
14fi
15
16
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26  set -o posix
27fi
28
29# NLS nuisances.
30# Support unset when possible.
31if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32  as_unset=unset
33else
34  as_unset=false
35fi
36
37(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38    { $as_unset LANG || test "${LANG+set}" != set; } ||
39      { LANG=C; export LANG; }
40(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42      { LC_ALL=C; export LC_ALL; }
43(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45      { LC_TIME=C; export LC_TIME; }
46(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48      { LC_CTYPE=C; export LC_CTYPE; }
49(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51      { LANGUAGE=C; export LANGUAGE; }
52(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54      { LC_COLLATE=C; export LC_COLLATE; }
55(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57      { LC_NUMERIC=C; export LC_NUMERIC; }
58(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60      { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
63# Name of the executable.
64as_me=`(basename "$0") 2>/dev/null ||
65$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66	 X"$0" : 'X\(//\)$' \| \
67	 X"$0" : 'X\(/\)$' \| \
68	 .     : '\(.\)' 2>/dev/null ||
69echo X/"$0" |
70    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
72  	  /^X\/\(\/\).*/{ s//\1/; q; }
73  	  s/.*/./; q'`
74
75# PATH needs CR, and LINENO needs CR and PATH.
76# Avoid depending upon Character Ranges.
77as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80as_cr_digits='0123456789'
81as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83# The user is always right.
84if test "${PATH_SEPARATOR+set}" != set; then
85  echo "#! /bin/sh" >conftest.sh
86  echo  "exit 0"   >>conftest.sh
87  chmod +x conftest.sh
88  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89    PATH_SEPARATOR=';'
90  else
91    PATH_SEPARATOR=:
92  fi
93  rm -f conftest.sh
94fi
95
96
97  as_lineno_1=$LINENO
98  as_lineno_2=$LINENO
99  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100  test "x$as_lineno_1" != "x$as_lineno_2" &&
101  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102  # Find who we are.  Look in the path if we contain no path at all
103  # relative or not.
104  case $0 in
105    *[\\/]* ) as_myself=$0 ;;
106    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107for as_dir in $PATH
108do
109  IFS=$as_save_IFS
110  test -z "$as_dir" && as_dir=.
111  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112done
113
114       ;;
115  esac
116  # We did not find ourselves, most probably we were run as `sh COMMAND'
117  # in which case we are not to be found in the path.
118  if test "x$as_myself" = x; then
119    as_myself=$0
120  fi
121  if test ! -f "$as_myself"; then
122    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123   { (exit 1); exit 1; }; }
124  fi
125  case $CONFIG_SHELL in
126  '')
127    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129do
130  IFS=$as_save_IFS
131  test -z "$as_dir" && as_dir=.
132  for as_base in sh bash ksh sh5; do
133	 case $as_dir in
134	 /*)
135	   if ("$as_dir/$as_base" -c '
136  as_lineno_1=$LINENO
137  as_lineno_2=$LINENO
138  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139  test "x$as_lineno_1" != "x$as_lineno_2" &&
140  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141	     CONFIG_SHELL=$as_dir/$as_base
142	     export CONFIG_SHELL
143	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144	   fi;;
145	 esac
146       done
147done
148;;
149  esac
150
151  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152  # uniformly replaced by the line number.  The first 'sed' inserts a
153  # line-number line before each line; the second 'sed' does the real
154  # work.  The second script uses 'N' to pair each line-number line
155  # with the numbered line, and appends trailing '-' during
156  # substitution so that $LINENO is not a special case at line end.
157  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
159  sed '=' <$as_myself |
160    sed '
161      N
162      s,$,-,
163      : loop
164      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165      t loop
166      s,-$,,
167      s,^['$as_cr_digits']*\n,,
168    ' >$as_me.lineno &&
169  chmod +x $as_me.lineno ||
170    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171   { (exit 1); exit 1; }; }
172
173  # Don't try to exec as it changes $[0], causing all sort of problems
174  # (the dirname of $[0] is not the place where we might find the
175  # original and so on.  Autoconf is especially sensible to this).
176  . ./$as_me.lineno
177  # Exit status is that of the last command.
178  exit
179}
180
181
182case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183  *c*,-n*) ECHO_N= ECHO_C='
184' ECHO_T='	' ;;
185  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
187esac
188
189if expr a : '\(a\)' >/dev/null 2>&1; then
190  as_expr=expr
191else
192  as_expr=false
193fi
194
195rm -f conf$$ conf$$.exe conf$$.file
196echo >conf$$.file
197if ln -s conf$$.file conf$$ 2>/dev/null; then
198  # We could just check for DJGPP; but this test a) works b) is more generic
199  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200  if test -f conf$$.exe; then
201    # Don't use ln at all; we don't have any links
202    as_ln_s='cp -p'
203  else
204    as_ln_s='ln -s'
205  fi
206elif ln conf$$.file conf$$ 2>/dev/null; then
207  as_ln_s=ln
208else
209  as_ln_s='cp -p'
210fi
211rm -f conf$$ conf$$.exe conf$$.file
212
213as_executable_p="test -f"
214
215# Sed expression to map a string onto a valid CPP name.
216as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218# Sed expression to map a string onto a valid variable name.
219as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222# IFS
223# We need space, tab and new line, in precisely that order.
224as_nl='
225'
226IFS=" 	$as_nl"
227
228# CDPATH.
229$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
232# Name of the host.
233# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234# so uname gets run too.
235ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237exec 6>&1
238
239#
240# Initializations.
241#
242ac_default_prefix=/usr/local
243cross_compiling=no
244subdirs=
245MFLAGS=
246MAKEFLAGS=
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249# Maximum number of lines to put in a shell here document.
250# This variable seems obsolete.  It should probably be removed, and
251# only ac_max_sed_lines should be used.
252: ${ac_max_here_lines=38}
253
254# Identity of this package.
255PACKAGE_NAME=
256PACKAGE_TARNAME=
257PACKAGE_VERSION=
258PACKAGE_STRING=
259PACKAGE_BUGREPORT=
260
261ac_unique_file="ntpd/ntp_refclock.c"
262# Factoring default headers for most tests.
263ac_includes_default="\
264#include <stdio.h>
265#if HAVE_SYS_TYPES_H
266# include <sys/types.h>
267#endif
268#if HAVE_SYS_STAT_H
269# include <sys/stat.h>
270#endif
271#if STDC_HEADERS
272# include <stdlib.h>
273# include <stddef.h>
274#else
275# if HAVE_STDLIB_H
276#  include <stdlib.h>
277# endif
278#endif
279#if HAVE_STRING_H
280# if !STDC_HEADERS && HAVE_MEMORY_H
281#  include <memory.h>
282# endif
283# include <string.h>
284#endif
285#if HAVE_STRINGS_H
286# include <strings.h>
287#endif
288#if HAVE_INTTYPES_H
289# include <inttypes.h>
290#else
291# if HAVE_STDINT_H
292#  include <stdint.h>
293# endif
294#endif
295#if HAVE_UNISTD_H
296# include <unistd.h>
297#endif"
298
299
300# Initialize some variables set by options.
301ac_init_help=
302ac_init_version=false
303# The variables have the same names as the options, with
304# dashes changed to underlines.
305cache_file=/dev/null
306exec_prefix=NONE
307no_create=
308no_recursion=
309prefix=NONE
310program_prefix=NONE
311program_suffix=NONE
312program_transform_name=s,x,x,
313silent=
314site=
315srcdir=
316verbose=
317x_includes=NONE
318x_libraries=NONE
319
320# Installation directory options.
321# These are left unexpanded so users can "make install exec_prefix=/foo"
322# and all the variables that are supposed to be based on exec_prefix
323# by default will actually change.
324# Use braces instead of parens because sh, perl, etc. also accept them.
325bindir='${exec_prefix}/bin'
326sbindir='${exec_prefix}/sbin'
327libexecdir='${exec_prefix}/libexec'
328datadir='${prefix}/share'
329sysconfdir='${prefix}/etc'
330sharedstatedir='${prefix}/com'
331localstatedir='${prefix}/var'
332libdir='${exec_prefix}/lib'
333includedir='${prefix}/include'
334oldincludedir='/usr/include'
335infodir='${prefix}/info'
336mandir='${prefix}/man'
337
338ac_prev=
339for ac_option
340do
341  # If the previous option needs an argument, assign it.
342  if test -n "$ac_prev"; then
343    eval "$ac_prev=\$ac_option"
344    ac_prev=
345    continue
346  fi
347
348  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349
350  # Accept the important Cygnus configure options, so we can diagnose typos.
351
352  case $ac_option in
353
354  -bindir | --bindir | --bindi | --bind | --bin | --bi)
355    ac_prev=bindir ;;
356  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357    bindir=$ac_optarg ;;
358
359  -build | --build | --buil | --bui | --bu)
360    ac_prev=build_alias ;;
361  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362    build_alias=$ac_optarg ;;
363
364  -cache-file | --cache-file | --cache-fil | --cache-fi \
365  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366    ac_prev=cache_file ;;
367  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369    cache_file=$ac_optarg ;;
370
371  --config-cache | -C)
372    cache_file=config.cache ;;
373
374  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375    ac_prev=datadir ;;
376  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377  | --da=*)
378    datadir=$ac_optarg ;;
379
380  -disable-* | --disable-*)
381    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382    # Reject names that are not valid shell variable names.
383    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385   { (exit 1); exit 1; }; }
386    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387    eval "enable_$ac_feature=no" ;;
388
389  -enable-* | --enable-*)
390    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391    # Reject names that are not valid shell variable names.
392    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394   { (exit 1); exit 1; }; }
395    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396    case $ac_option in
397      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398      *) ac_optarg=yes ;;
399    esac
400    eval "enable_$ac_feature='$ac_optarg'" ;;
401
402  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404  | --exec | --exe | --ex)
405    ac_prev=exec_prefix ;;
406  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408  | --exec=* | --exe=* | --ex=*)
409    exec_prefix=$ac_optarg ;;
410
411  -gas | --gas | --ga | --g)
412    # Obsolete; use --with-gas.
413    with_gas=yes ;;
414
415  -help | --help | --hel | --he | -h)
416    ac_init_help=long ;;
417  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418    ac_init_help=recursive ;;
419  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420    ac_init_help=short ;;
421
422  -host | --host | --hos | --ho)
423    ac_prev=host_alias ;;
424  -host=* | --host=* | --hos=* | --ho=*)
425    host_alias=$ac_optarg ;;
426
427  -includedir | --includedir | --includedi | --included | --include \
428  | --includ | --inclu | --incl | --inc)
429    ac_prev=includedir ;;
430  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431  | --includ=* | --inclu=* | --incl=* | --inc=*)
432    includedir=$ac_optarg ;;
433
434  -infodir | --infodir | --infodi | --infod | --info | --inf)
435    ac_prev=infodir ;;
436  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437    infodir=$ac_optarg ;;
438
439  -libdir | --libdir | --libdi | --libd)
440    ac_prev=libdir ;;
441  -libdir=* | --libdir=* | --libdi=* | --libd=*)
442    libdir=$ac_optarg ;;
443
444  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445  | --libexe | --libex | --libe)
446    ac_prev=libexecdir ;;
447  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448  | --libexe=* | --libex=* | --libe=*)
449    libexecdir=$ac_optarg ;;
450
451  -localstatedir | --localstatedir | --localstatedi | --localstated \
452  | --localstate | --localstat | --localsta | --localst \
453  | --locals | --local | --loca | --loc | --lo)
454    ac_prev=localstatedir ;;
455  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458    localstatedir=$ac_optarg ;;
459
460  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461    ac_prev=mandir ;;
462  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463    mandir=$ac_optarg ;;
464
465  -nfp | --nfp | --nf)
466    # Obsolete; use --without-fp.
467    with_fp=no ;;
468
469  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470  | --no-cr | --no-c | -n)
471    no_create=yes ;;
472
473  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475    no_recursion=yes ;;
476
477  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479  | --oldin | --oldi | --old | --ol | --o)
480    ac_prev=oldincludedir ;;
481  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484    oldincludedir=$ac_optarg ;;
485
486  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487    ac_prev=prefix ;;
488  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489    prefix=$ac_optarg ;;
490
491  -program-prefix | --program-prefix | --program-prefi | --program-pref \
492  | --program-pre | --program-pr | --program-p)
493    ac_prev=program_prefix ;;
494  -program-prefix=* | --program-prefix=* | --program-prefi=* \
495  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496    program_prefix=$ac_optarg ;;
497
498  -program-suffix | --program-suffix | --program-suffi | --program-suff \
499  | --program-suf | --program-su | --program-s)
500    ac_prev=program_suffix ;;
501  -program-suffix=* | --program-suffix=* | --program-suffi=* \
502  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503    program_suffix=$ac_optarg ;;
504
505  -program-transform-name | --program-transform-name \
506  | --program-transform-nam | --program-transform-na \
507  | --program-transform-n | --program-transform- \
508  | --program-transform | --program-transfor \
509  | --program-transfo | --program-transf \
510  | --program-trans | --program-tran \
511  | --progr-tra | --program-tr | --program-t)
512    ac_prev=program_transform_name ;;
513  -program-transform-name=* | --program-transform-name=* \
514  | --program-transform-nam=* | --program-transform-na=* \
515  | --program-transform-n=* | --program-transform-=* \
516  | --program-transform=* | --program-transfor=* \
517  | --program-transfo=* | --program-transf=* \
518  | --program-trans=* | --program-tran=* \
519  | --progr-tra=* | --program-tr=* | --program-t=*)
520    program_transform_name=$ac_optarg ;;
521
522  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523  | -silent | --silent | --silen | --sile | --sil)
524    silent=yes ;;
525
526  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527    ac_prev=sbindir ;;
528  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529  | --sbi=* | --sb=*)
530    sbindir=$ac_optarg ;;
531
532  -sharedstatedir | --sharedstatedir | --sharedstatedi \
533  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534  | --sharedst | --shareds | --shared | --share | --shar \
535  | --sha | --sh)
536    ac_prev=sharedstatedir ;;
537  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540  | --sha=* | --sh=*)
541    sharedstatedir=$ac_optarg ;;
542
543  -site | --site | --sit)
544    ac_prev=site ;;
545  -site=* | --site=* | --sit=*)
546    site=$ac_optarg ;;
547
548  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549    ac_prev=srcdir ;;
550  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551    srcdir=$ac_optarg ;;
552
553  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554  | --syscon | --sysco | --sysc | --sys | --sy)
555    ac_prev=sysconfdir ;;
556  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558    sysconfdir=$ac_optarg ;;
559
560  -target | --target | --targe | --targ | --tar | --ta | --t)
561    ac_prev=target_alias ;;
562  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563    target_alias=$ac_optarg ;;
564
565  -v | -verbose | --verbose | --verbos | --verbo | --verb)
566    verbose=yes ;;
567
568  -version | --version | --versio | --versi | --vers | -V)
569    ac_init_version=: ;;
570
571  -with-* | --with-*)
572    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573    # Reject names that are not valid shell variable names.
574    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575      { echo "$as_me: error: invalid package name: $ac_package" >&2
576   { (exit 1); exit 1; }; }
577    ac_package=`echo $ac_package| sed 's/-/_/g'`
578    case $ac_option in
579      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580      *) ac_optarg=yes ;;
581    esac
582    eval "with_$ac_package='$ac_optarg'" ;;
583
584  -without-* | --without-*)
585    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586    # Reject names that are not valid shell variable names.
587    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588      { echo "$as_me: error: invalid package name: $ac_package" >&2
589   { (exit 1); exit 1; }; }
590    ac_package=`echo $ac_package | sed 's/-/_/g'`
591    eval "with_$ac_package=no" ;;
592
593  --x)
594    # Obsolete; use --with-x.
595    with_x=yes ;;
596
597  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598  | --x-incl | --x-inc | --x-in | --x-i)
599    ac_prev=x_includes ;;
600  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602    x_includes=$ac_optarg ;;
603
604  -x-libraries | --x-libraries | --x-librarie | --x-librari \
605  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606    ac_prev=x_libraries ;;
607  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609    x_libraries=$ac_optarg ;;
610
611  -*) { echo "$as_me: error: unrecognized option: $ac_option
612Try \`$0 --help' for more information." >&2
613   { (exit 1); exit 1; }; }
614    ;;
615
616  *=*)
617    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618    # Reject names that are not valid shell variable names.
619    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621   { (exit 1); exit 1; }; }
622    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623    eval "$ac_envvar='$ac_optarg'"
624    export $ac_envvar ;;
625
626  *)
627    # FIXME: should be removed in autoconf 3.0.
628    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
632    ;;
633
634  esac
635done
636
637if test -n "$ac_prev"; then
638  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639  { echo "$as_me: error: missing argument to $ac_option" >&2
640   { (exit 1); exit 1; }; }
641fi
642
643# Be sure to have absolute paths.
644for ac_var in exec_prefix prefix
645do
646  eval ac_val=$`echo $ac_var`
647  case $ac_val in
648    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650   { (exit 1); exit 1; }; };;
651  esac
652done
653
654# Be sure to have absolute paths.
655for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656              localstatedir libdir includedir oldincludedir infodir mandir
657do
658  eval ac_val=$`echo $ac_var`
659  case $ac_val in
660    [\\/$]* | ?:[\\/]* ) ;;
661    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662   { (exit 1); exit 1; }; };;
663  esac
664done
665
666# There might be people who depend on the old broken behavior: `$host'
667# used to hold the argument of --host etc.
668# FIXME: To remove some day.
669build=$build_alias
670host=$host_alias
671target=$target_alias
672
673# FIXME: To remove some day.
674if test "x$host_alias" != x; then
675  if test "x$build_alias" = x; then
676    cross_compiling=maybe
677    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678    If a cross compiler is detected then cross compile mode will be used." >&2
679  elif test "x$build_alias" != "x$host_alias"; then
680    cross_compiling=yes
681  fi
682fi
683
684ac_tool_prefix=
685test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687test "$silent" = yes && exec 6>/dev/null
688
689
690# Find the source files, if location was not specified.
691if test -z "$srcdir"; then
692  ac_srcdir_defaulted=yes
693  # Try the directory containing this script, then its parent.
694  ac_confdir=`(dirname "$0") 2>/dev/null ||
695$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696         X"$0" : 'X\(//\)[^/]' \| \
697         X"$0" : 'X\(//\)$' \| \
698         X"$0" : 'X\(/\)' \| \
699         .     : '\(.\)' 2>/dev/null ||
700echo X"$0" |
701    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703  	  /^X\(\/\/\)$/{ s//\1/; q; }
704  	  /^X\(\/\).*/{ s//\1/; q; }
705  	  s/.*/./; q'`
706  srcdir=$ac_confdir
707  if test ! -r $srcdir/$ac_unique_file; then
708    srcdir=..
709  fi
710else
711  ac_srcdir_defaulted=no
712fi
713if test ! -r $srcdir/$ac_unique_file; then
714  if test "$ac_srcdir_defaulted" = yes; then
715    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716   { (exit 1); exit 1; }; }
717  else
718    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719   { (exit 1); exit 1; }; }
720  fi
721fi
722srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723ac_env_build_alias_set=${build_alias+set}
724ac_env_build_alias_value=$build_alias
725ac_cv_env_build_alias_set=${build_alias+set}
726ac_cv_env_build_alias_value=$build_alias
727ac_env_host_alias_set=${host_alias+set}
728ac_env_host_alias_value=$host_alias
729ac_cv_env_host_alias_set=${host_alias+set}
730ac_cv_env_host_alias_value=$host_alias
731ac_env_target_alias_set=${target_alias+set}
732ac_env_target_alias_value=$target_alias
733ac_cv_env_target_alias_set=${target_alias+set}
734ac_cv_env_target_alias_value=$target_alias
735ac_env_CC_set=${CC+set}
736ac_env_CC_value=$CC
737ac_cv_env_CC_set=${CC+set}
738ac_cv_env_CC_value=$CC
739ac_env_CFLAGS_set=${CFLAGS+set}
740ac_env_CFLAGS_value=$CFLAGS
741ac_cv_env_CFLAGS_set=${CFLAGS+set}
742ac_cv_env_CFLAGS_value=$CFLAGS
743ac_env_LDFLAGS_set=${LDFLAGS+set}
744ac_env_LDFLAGS_value=$LDFLAGS
745ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746ac_cv_env_LDFLAGS_value=$LDFLAGS
747ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748ac_env_CPPFLAGS_value=$CPPFLAGS
749ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751ac_env_CPP_set=${CPP+set}
752ac_env_CPP_value=$CPP
753ac_cv_env_CPP_set=${CPP+set}
754ac_cv_env_CPP_value=$CPP
755
756#
757# Report the --help message.
758#
759if test "$ac_init_help" = "long"; then
760  # Omit some internal or obsolete options to make the list less imposing.
761  # This message is too long to be a string in the A/UX 3.1 sh.
762  cat <<_ACEOF
763\`configure' configures this package to adapt to many kinds of systems.
764
765Usage: $0 [OPTION]... [VAR=VALUE]...
766
767To assign environment variables (e.g., CC, CFLAGS...), specify them as
768VAR=VALUE.  See below for descriptions of some of the useful variables.
769
770Defaults for the options are specified in brackets.
771
772Configuration:
773  -h, --help              display this help and exit
774      --help=short        display options specific to this package
775      --help=recursive    display the short help of all the included packages
776  -V, --version           display version information and exit
777  -q, --quiet, --silent   do not print \`checking...' messages
778      --cache-file=FILE   cache test results in FILE [disabled]
779  -C, --config-cache      alias for \`--cache-file=config.cache'
780  -n, --no-create         do not create output files
781      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
782
783_ACEOF
784
785  cat <<_ACEOF
786Installation directories:
787  --prefix=PREFIX         install architecture-independent files in PREFIX
788                          [$ac_default_prefix]
789  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
790                          [PREFIX]
791
792By default, \`make install' will install all the files in
793\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
794an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795for instance \`--prefix=\$HOME'.
796
797For better control, use the options below.
798
799Fine tuning of the installation directories:
800  --bindir=DIR           user executables [EPREFIX/bin]
801  --sbindir=DIR          system admin executables [EPREFIX/sbin]
802  --libexecdir=DIR       program executables [EPREFIX/libexec]
803  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
804  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
805  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
806  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
807  --libdir=DIR           object code libraries [EPREFIX/lib]
808  --includedir=DIR       C header files [PREFIX/include]
809  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
810  --infodir=DIR          info documentation [PREFIX/info]
811  --mandir=DIR           man documentation [PREFIX/man]
812_ACEOF
813
814  cat <<\_ACEOF
815
816Program names:
817  --program-prefix=PREFIX            prepend PREFIX to installed program names
818  --program-suffix=SUFFIX            append SUFFIX to installed program names
819  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
820
821System types:
822  --build=BUILD     configure for building on BUILD [guessed]
823  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
824  --target=TARGET   configure for building compilers for TARGET [HOST]
825_ACEOF
826fi
827
828if test -n "$ac_init_help"; then
829
830  cat <<\_ACEOF
831
832Optional Features:
833  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
834  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
835  --disable-dependency-tracking Speeds up one-time builds
836  --enable-dependency-tracking  Do not reject slow dependency extractors
837  --enable-debugging      + include debugging code
838  --enable-dst-minutes=60 + minutes per DST adjustment
839  --enable-BANCOMM        - Datum/Bancomm bc635/VME interface
840  --enable-GPSVME         - TrueTime GPS receiver/VME interface
841  --enable-SHM            - SHM clock attached thru shared memory
842  --enable-all-clocks     + include all suitable non-PARSE clocks:
843  --enable-ACTS           + ACTS modem service
844  --enable-ARBITER        + Arbiter 1088A/B GPS receiver
845  --enable-ARCRON-MSF     + Arcron MSF receiver
846  --enable-AS2201         + Austron 2200A/2201A GPS receiver
847  --enable-ATOM           s ATOM PPS interface
848  --enable-CHRONOLOG      + Chrono-log K-series WWVB receiver
849  --enable-CHU            - CHU modem/decoder
850  --enable-AUDIO-CHU      s CHU audio/decoder
851  --enable-DATUM          s Datum Programmable Time System
852  --enable-DUMBCLOCK      + Dumb generic hh:mm:ss local clock
853  --enable-FG             + Forum Graphic GPS
854  --enable-HEATH          s Heath GC-1000 WWV/WWVH receiver
855  --enable-HOPFSERIAL     + hopf serial clock device
856  --enable-HOPFPCI        + hopf 6039 PCI board
857  --enable-HPGPS          + HP 58503A GPS receiver
858  --enable-IRIG           s IRIG audio decoder
859  --enable-JJY            + JJY receiver
860  --enable-JUPITER        s Rockwell Jupiter GPS receiver
861  --enable-LEITCH         + Leitch CSD 5300 Master Clock System Driver
862  --enable-LOCAL-CLOCK    + local clock reference
863  --enable-MSFEES         + EES M201 MSF receiver
864  --enable-MX4200         s Magnavox MX4200 GPS receiver
865  --enable-NEOCLOCK4X     - NeoClock4X DCF77 / TDF receiver
866  --enable-NMEA           + NMEA GPS receiver
867  --enable-ONCORE         s Motorola VP/UT Oncore GPS receiver
868  --enable-PALISADE       + Palisade clock
869  --enable-PCF            + Conrad parallel port radio clock
870  --enable-PST            + PST/Traconex 1020 WWV/WWVH receiver
871  --enable-PTBACTS        s PTB modem service
872  --enable-RIPENCC        - RIPENCC specific Trimble driver
873  --enable-SPECTRACOM     + Spectracom 8170/Netclock/2 WWVB receiver
874  --enable-TPRO           s KSI/Odetics TPRO/S GPS receiver/IRIG interface
875  --enable-TRAK           + TRAK 8810 GPS receiver
876  --enable-TRUETIME       s Kinemetrics/TrueTime receivers
877  --enable-TT560          - TrueTime 560 IRIG-B decoder
878  --enable-ULINK          + Ultralink WWVB receiver
879  --enable-USNO           s USNO modem service
880  --enable-WWV            + WWV Audio receiver
881  --enable-ZYFER          + Zyfer GPStarplus receiver
882  --enable-parse-clocks   - include all suitable PARSE clocks:
883  --enable-COMPUTIME      s Diem Computime Radio Clock
884  --enable-DCF7000        s ELV/DCF7000 clock
885  --enable-HOPF6021       s HOPF 6021 clock
886  --enable-MEINBERG       s Meinberg clocks
887  --enable-RAWDCF         s DCF77 raw time code
888  --enable-RCC8000        s RCC 8000 clock
889  --enable-SCHMID         s Schmid DCF77 clock
890  --enable-TRIMTAIP       s Trimble GPS receiver/TAIP protocol
891  --enable-TRIMTSIP       s Trimble GPS receiver/TSIP protocol
892  --enable-WHARTON        s WHARTON 400A Series clock
893  --enable-VARITEXT       s VARITEXT clock
894  --enable-kmem           s read /dev/kmem for tick and/or tickadj
895  --enable-accurate-adjtime
896                          s the adjtime() call is accurate
897  --enable-tick=VALUE     s force a value for 'tick'
898  --enable-tickadj=VALUE  s force a value for 'tickadj'
899  --enable-udp-wildcard   s use UDP wildcard delivery
900  --enable-slew-always    s always slew the time
901  --enable-step-slew      s step and slew the time
902  --enable-ntpdate-step   s if ntpdate should step the time
903  --enable-hourly-todr-sync
904                          s if we should sync TODR hourly
905  --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
906
907Optional Packages:
908  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
909  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
910  --with-openssl-libdir   + =/something/reasonable
911  --with-openssl-incdir   + =/something/reasonable
912  --with-crypto           + ={autokey,rsaref}
913  --with-electricfence    - compile with ElectricFence malloc debugger
914
915Some influential environment variables:
916  CC          C compiler command
917  CFLAGS      C compiler flags
918  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
919              nonstandard directory <lib dir>
920  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
921              headers in a nonstandard directory <include dir>
922  CPP         C preprocessor
923
924Use these variables to override the choices made by `configure' or to help
925it to find libraries and programs with nonstandard names/locations.
926
927_ACEOF
928fi
929
930if test "$ac_init_help" = "recursive"; then
931  # If there are subdirs, report their specific --help.
932  ac_popdir=`pwd`
933  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
934    test -d $ac_dir || continue
935    ac_builddir=.
936
937if test "$ac_dir" != .; then
938  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
939  # A "../" for each directory in $ac_dir_suffix.
940  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
941else
942  ac_dir_suffix= ac_top_builddir=
943fi
944
945case $srcdir in
946  .)  # No --srcdir option.  We are building in place.
947    ac_srcdir=.
948    if test -z "$ac_top_builddir"; then
949       ac_top_srcdir=.
950    else
951       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
952    fi ;;
953  [\\/]* | ?:[\\/]* )  # Absolute path.
954    ac_srcdir=$srcdir$ac_dir_suffix;
955    ac_top_srcdir=$srcdir ;;
956  *) # Relative path.
957    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
958    ac_top_srcdir=$ac_top_builddir$srcdir ;;
959esac
960# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
961# absolute.
962ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
963ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
964ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
965ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
966
967    cd $ac_dir
968    # Check for guested configure; otherwise get Cygnus style configure.
969    if test -f $ac_srcdir/configure.gnu; then
970      echo
971      $SHELL $ac_srcdir/configure.gnu  --help=recursive
972    elif test -f $ac_srcdir/configure; then
973      echo
974      $SHELL $ac_srcdir/configure  --help=recursive
975    elif test -f $ac_srcdir/configure.ac ||
976           test -f $ac_srcdir/configure.in; then
977      echo
978      $ac_configure --help
979    else
980      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
981    fi
982    cd $ac_popdir
983  done
984fi
985
986test -n "$ac_init_help" && exit 0
987if $ac_init_version; then
988  cat <<\_ACEOF
989
990Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
991Free Software Foundation, Inc.
992This configure script is free software; the Free Software Foundation
993gives unlimited permission to copy, distribute and modify it.
994_ACEOF
995  exit 0
996fi
997exec 5>config.log
998cat >&5 <<_ACEOF
999This file contains any messages produced by compilers while
1000running configure, to aid debugging if configure makes a mistake.
1001
1002It was created by $as_me, which was
1003generated by GNU Autoconf 2.53.  Invocation command line was
1004
1005  $ $0 $@
1006
1007_ACEOF
1008{
1009cat <<_ASUNAME
1010## --------- ##
1011## Platform. ##
1012## --------- ##
1013
1014hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1015uname -m = `(uname -m) 2>/dev/null || echo unknown`
1016uname -r = `(uname -r) 2>/dev/null || echo unknown`
1017uname -s = `(uname -s) 2>/dev/null || echo unknown`
1018uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019
1020/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1021/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1022
1023/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1024/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1025/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1026hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1027/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1028/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1029/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1030
1031_ASUNAME
1032
1033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1034for as_dir in $PATH
1035do
1036  IFS=$as_save_IFS
1037  test -z "$as_dir" && as_dir=.
1038  echo "PATH: $as_dir"
1039done
1040
1041} >&5
1042
1043cat >&5 <<_ACEOF
1044
1045
1046## ----------- ##
1047## Core tests. ##
1048## ----------- ##
1049
1050_ACEOF
1051
1052
1053# Keep a trace of the command line.
1054# Strip out --no-create and --no-recursion so they do not pile up.
1055# Also quote any args containing shell meta-characters.
1056ac_configure_args=
1057ac_sep=
1058for ac_arg
1059do
1060  case $ac_arg in
1061  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062  | --no-cr | --no-c | -n ) continue ;;
1063  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065    continue ;;
1066  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068  esac
1069  case " $ac_configure_args " in
1070    *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1071    *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1072       ac_sep=" " ;;
1073  esac
1074  # Get rid of the leading space.
1075done
1076
1077# When interrupted or exit'd, cleanup temporary files, and complete
1078# config.log.  We remove comments because anyway the quotes in there
1079# would cause problems or look ugly.
1080# WARNING: Be sure not to use single quotes in there, as some shells,
1081# such as our DU 5.0 friend, will then `close' the trap.
1082trap 'exit_status=$?
1083  # Save into config.log some information that might help in debugging.
1084  {
1085    echo
1086    cat <<\_ASBOX
1087## ---------------- ##
1088## Cache variables. ##
1089## ---------------- ##
1090_ASBOX
1091    echo
1092    # The following way of writing the cache mishandles newlines in values,
1093{
1094  (set) 2>&1 |
1095    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1096    *ac_space=\ *)
1097      sed -n \
1098        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1099    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1100      ;;
1101    *)
1102      sed -n \
1103        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1104      ;;
1105    esac;
1106}
1107    echo
1108    if test -s confdefs.h; then
1109      cat <<\_ASBOX
1110## ----------- ##
1111## confdefs.h. ##
1112## ----------- ##
1113_ASBOX
1114      echo
1115      sed "/^$/d" confdefs.h
1116      echo
1117    fi
1118    test "$ac_signal" != 0 &&
1119      echo "$as_me: caught signal $ac_signal"
1120    echo "$as_me: exit $exit_status"
1121  } >&5
1122  rm -f core core.* *.core &&
1123  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1124    exit $exit_status
1125     ' 0
1126for ac_signal in 1 2 13 15; do
1127  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1128done
1129ac_signal=0
1130
1131# confdefs.h avoids OS command line length limits that DEFS can exceed.
1132rm -rf conftest* confdefs.h
1133# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1134echo >confdefs.h
1135
1136# Predefined preprocessor variables.
1137
1138cat >>confdefs.h <<_ACEOF
1139#define PACKAGE_NAME "$PACKAGE_NAME"
1140_ACEOF
1141
1142
1143cat >>confdefs.h <<_ACEOF
1144#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1145_ACEOF
1146
1147
1148cat >>confdefs.h <<_ACEOF
1149#define PACKAGE_VERSION "$PACKAGE_VERSION"
1150_ACEOF
1151
1152
1153cat >>confdefs.h <<_ACEOF
1154#define PACKAGE_STRING "$PACKAGE_STRING"
1155_ACEOF
1156
1157
1158cat >>confdefs.h <<_ACEOF
1159#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1160_ACEOF
1161
1162
1163# Let the site file select an alternate cache file if it wants to.
1164# Prefer explicitly selected file to automatically selected ones.
1165if test -z "$CONFIG_SITE"; then
1166  if test "x$prefix" != xNONE; then
1167    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1168  else
1169    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1170  fi
1171fi
1172for ac_site_file in $CONFIG_SITE; do
1173  if test -r "$ac_site_file"; then
1174    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1175echo "$as_me: loading site script $ac_site_file" >&6;}
1176    sed 's/^/| /' "$ac_site_file" >&5
1177    . "$ac_site_file"
1178  fi
1179done
1180
1181if test -r "$cache_file"; then
1182  # Some versions of bash will fail to source /dev/null (special
1183  # files actually), so we avoid doing that.
1184  if test -f "$cache_file"; then
1185    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1186echo "$as_me: loading cache $cache_file" >&6;}
1187    case $cache_file in
1188      [\\/]* | ?:[\\/]* ) . $cache_file;;
1189      *)                      . ./$cache_file;;
1190    esac
1191  fi
1192else
1193  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1194echo "$as_me: creating cache $cache_file" >&6;}
1195  >$cache_file
1196fi
1197
1198# Check that the precious variables saved in the cache have kept the same
1199# value.
1200ac_cache_corrupted=false
1201for ac_var in `(set) 2>&1 |
1202               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1203  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1204  eval ac_new_set=\$ac_env_${ac_var}_set
1205  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1206  eval ac_new_val="\$ac_env_${ac_var}_value"
1207  case $ac_old_set,$ac_new_set in
1208    set,)
1209      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1210echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1211      ac_cache_corrupted=: ;;
1212    ,set)
1213      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1214echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1215      ac_cache_corrupted=: ;;
1216    ,);;
1217    *)
1218      if test "x$ac_old_val" != "x$ac_new_val"; then
1219        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1220echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1221        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1222echo "$as_me:   former value:  $ac_old_val" >&2;}
1223        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1224echo "$as_me:   current value: $ac_new_val" >&2;}
1225        ac_cache_corrupted=:
1226      fi;;
1227  esac
1228  # Pass precious variables to config.status.
1229  if test "$ac_new_set" = set; then
1230    case $ac_new_val in
1231    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1232      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1233    *) ac_arg=$ac_var=$ac_new_val ;;
1234    esac
1235    case " $ac_configure_args " in
1236      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1237      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1238    esac
1239  fi
1240done
1241if $ac_cache_corrupted; then
1242  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1243echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1244  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1245echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1246   { (exit 1); exit 1; }; }
1247fi
1248
1249ac_ext=c
1250ac_cpp='$CPP $CPPFLAGS'
1251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1253ac_compiler_gnu=$ac_cv_c_compiler_gnu
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272ac_aux_dir=
1273for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1274  if test -f $ac_dir/install-sh; then
1275    ac_aux_dir=$ac_dir
1276    ac_install_sh="$ac_aux_dir/install-sh -c"
1277    break
1278  elif test -f $ac_dir/install.sh; then
1279    ac_aux_dir=$ac_dir
1280    ac_install_sh="$ac_aux_dir/install.sh -c"
1281    break
1282  elif test -f $ac_dir/shtool; then
1283    ac_aux_dir=$ac_dir
1284    ac_install_sh="$ac_aux_dir/shtool install -c"
1285    break
1286  fi
1287done
1288if test -z "$ac_aux_dir"; then
1289  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1290echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1291   { (exit 1); exit 1; }; }
1292fi
1293ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1294ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1295ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1296
1297# Make sure we can run config.sub.
1298$ac_config_sub sun4 >/dev/null 2>&1 ||
1299  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1300echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1301   { (exit 1); exit 1; }; }
1302
1303echo "$as_me:$LINENO: checking build system type" >&5
1304echo $ECHO_N "checking build system type... $ECHO_C" >&6
1305if test "${ac_cv_build+set}" = set; then
1306  echo $ECHO_N "(cached) $ECHO_C" >&6
1307else
1308  ac_cv_build_alias=$build_alias
1309test -z "$ac_cv_build_alias" &&
1310  ac_cv_build_alias=`$ac_config_guess`
1311test -z "$ac_cv_build_alias" &&
1312  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1313echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1314   { (exit 1); exit 1; }; }
1315ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1316  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1317echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1318   { (exit 1); exit 1; }; }
1319
1320fi
1321echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1322echo "${ECHO_T}$ac_cv_build" >&6
1323build=$ac_cv_build
1324build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1325build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1326build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1327
1328
1329echo "$as_me:$LINENO: checking host system type" >&5
1330echo $ECHO_N "checking host system type... $ECHO_C" >&6
1331if test "${ac_cv_host+set}" = set; then
1332  echo $ECHO_N "(cached) $ECHO_C" >&6
1333else
1334  ac_cv_host_alias=$host_alias
1335test -z "$ac_cv_host_alias" &&
1336  ac_cv_host_alias=$ac_cv_build_alias
1337ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1338  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1339echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1340   { (exit 1); exit 1; }; }
1341
1342fi
1343echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1344echo "${ECHO_T}$ac_cv_host" >&6
1345host=$ac_cv_host
1346host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1347host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1348host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1349
1350
1351echo "$as_me:$LINENO: checking target system type" >&5
1352echo $ECHO_N "checking target system type... $ECHO_C" >&6
1353if test "${ac_cv_target+set}" = set; then
1354  echo $ECHO_N "(cached) $ECHO_C" >&6
1355else
1356  ac_cv_target_alias=$target_alias
1357test "x$ac_cv_target_alias" = "x" &&
1358  ac_cv_target_alias=$ac_cv_host_alias
1359ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1360  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1361echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1362   { (exit 1); exit 1; }; }
1363
1364fi
1365echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1366echo "${ECHO_T}$ac_cv_target" >&6
1367target=$ac_cv_target
1368target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1369target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1370target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1371
1372
1373# The aliases save the names the user supplied, while $host etc.
1374# will get canonicalized.
1375test -n "$target_alias" &&
1376  test "$program_prefix$program_suffix$program_transform_name" = \
1377    NONENONEs,x,x, &&
1378  program_prefix=${target_alias}-
1379
1380cat >>confdefs.h <<_ACEOF
1381#define STR_SYSTEM "$host"
1382_ACEOF
1383
1384
1385
1386
1387		    		    		    ac_config_headers="$ac_config_headers config.h"
1388
1389test "$program_prefix" != NONE &&
1390  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1391# Use a double $ so make ignores it.
1392test "$program_suffix" != NONE &&
1393  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1394# Double any \ or $.  echo might interpret backslashes.
1395# By default was `s,x,x', remove it if useless.
1396cat <<\_ACEOF >conftest.sed
1397s/[\\$]/&&/g;s/;s,x,x,$//
1398_ACEOF
1399program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1400rm conftest.sed
1401
1402# Find a good install program.  We prefer a C program (faster),
1403# so one script is as good as another.  But avoid the broken or
1404# incompatible versions:
1405# SysV /etc/install, /usr/sbin/install
1406# SunOS /usr/etc/install
1407# IRIX /sbin/install
1408# AIX /bin/install
1409# AmigaOS /C/install, which installs bootblocks on floppy discs
1410# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1411# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1412# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1413# ./install, which can be erroneously created by make from ./install.sh.
1414echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1415echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1416if test -z "$INSTALL"; then
1417if test "${ac_cv_path_install+set}" = set; then
1418  echo $ECHO_N "(cached) $ECHO_C" >&6
1419else
1420  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1421for as_dir in $PATH
1422do
1423  IFS=$as_save_IFS
1424  test -z "$as_dir" && as_dir=.
1425  # Account for people who put trailing slashes in PATH elements.
1426case $as_dir/ in
1427  ./ | .// | /cC/* | \
1428  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1429  /usr/ucb/* ) ;;
1430  *)
1431    # OSF1 and SCO ODT 3.0 have their own names for install.
1432    # Don't use installbsd from OSF since it installs stuff as root
1433    # by default.
1434    for ac_prog in ginstall scoinst install; do
1435      for ac_exec_ext in '' $ac_executable_extensions; do
1436        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1437          if test $ac_prog = install &&
1438            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1439            # AIX install.  It has an incompatible calling convention.
1440            :
1441          elif test $ac_prog = install &&
1442            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1443            # program-specific install script used by HP pwplus--don't use.
1444            :
1445          else
1446            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1447            break 3
1448          fi
1449        fi
1450      done
1451    done
1452    ;;
1453esac
1454done
1455
1456
1457fi
1458  if test "${ac_cv_path_install+set}" = set; then
1459    INSTALL=$ac_cv_path_install
1460  else
1461    # As a last resort, use the slow shell script.  We don't cache a
1462    # path for INSTALL within a source directory, because that will
1463    # break other packages using the cache if that directory is
1464    # removed, or if the path is relative.
1465    INSTALL=$ac_install_sh
1466  fi
1467fi
1468echo "$as_me:$LINENO: result: $INSTALL" >&5
1469echo "${ECHO_T}$INSTALL" >&6
1470
1471# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1472# It thinks the first close brace ends the variable substitution.
1473test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1474
1475test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1476
1477test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1478
1479echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1480echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1481# Just in case
1482sleep 1
1483echo timestamp > conftest.file
1484# Do `set' in a subshell so we don't clobber the current shell's
1485# arguments.  Must try -L first in case configure is actually a
1486# symlink; some systems play weird games with the mod time of symlinks
1487# (eg FreeBSD returns the mod time of the symlink's containing
1488# directory).
1489if (
1490   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1491   if test "$*" = "X"; then
1492      # -L didn't work.
1493      set X `ls -t $srcdir/configure conftest.file`
1494   fi
1495   rm -f conftest.file
1496   if test "$*" != "X $srcdir/configure conftest.file" \
1497      && test "$*" != "X conftest.file $srcdir/configure"; then
1498
1499      # If neither matched, then we have a broken ls.  This can happen
1500      # if, for instance, CONFIG_SHELL is bash and it inherits a
1501      # broken ls alias from the environment.  This has actually
1502      # happened.  Such a system could not be considered "sane".
1503      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1504alias in your environment" >&5
1505echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1506alias in your environment" >&2;}
1507   { (exit 1); exit 1; }; }
1508   fi
1509
1510   test "$2" = conftest.file
1511   )
1512then
1513   # Ok.
1514   :
1515else
1516   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1517Check your system clock" >&5
1518echo "$as_me: error: newly created file is older than distributed files!
1519Check your system clock" >&2;}
1520   { (exit 1); exit 1; }; }
1521fi
1522echo "$as_me:$LINENO: result: yes" >&5
1523echo "${ECHO_T}yes" >&6
1524
1525# expand $ac_aux_dir to an absolute path
1526am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
1527
1528test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1529# Use eval to expand $SHELL
1530if eval "$MISSING --run true"; then
1531  am_missing_run="$MISSING --run "
1532else
1533  am_missing_run=
1534  am_backtick='`'
1535  { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1536echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1537fi
1538
1539for ac_prog in gawk mawk nawk awk
1540do
1541  # Extract the first word of "$ac_prog", so it can be a program name with args.
1542set dummy $ac_prog; ac_word=$2
1543echo "$as_me:$LINENO: checking for $ac_word" >&5
1544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1545if test "${ac_cv_prog_AWK+set}" = set; then
1546  echo $ECHO_N "(cached) $ECHO_C" >&6
1547else
1548  if test -n "$AWK"; then
1549  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1550else
1551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1552for as_dir in $PATH
1553do
1554  IFS=$as_save_IFS
1555  test -z "$as_dir" && as_dir=.
1556  for ac_exec_ext in '' $ac_executable_extensions; do
1557  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1558    ac_cv_prog_AWK="$ac_prog"
1559    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1560    break 2
1561  fi
1562done
1563done
1564
1565fi
1566fi
1567AWK=$ac_cv_prog_AWK
1568if test -n "$AWK"; then
1569  echo "$as_me:$LINENO: result: $AWK" >&5
1570echo "${ECHO_T}$AWK" >&6
1571else
1572  echo "$as_me:$LINENO: result: no" >&5
1573echo "${ECHO_T}no" >&6
1574fi
1575
1576  test -n "$AWK" && break
1577done
1578
1579echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1580echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1581set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1582if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1583  echo $ECHO_N "(cached) $ECHO_C" >&6
1584else
1585  cat >conftest.make <<\_ACEOF
1586all:
1587	@echo 'ac_maketemp="${MAKE}"'
1588_ACEOF
1589# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1590eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1591if test -n "$ac_maketemp"; then
1592  eval ac_cv_prog_make_${ac_make}_set=yes
1593else
1594  eval ac_cv_prog_make_${ac_make}_set=no
1595fi
1596rm -f conftest.make
1597fi
1598if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1599  echo "$as_me:$LINENO: result: yes" >&5
1600echo "${ECHO_T}yes" >&6
1601  SET_MAKE=
1602else
1603  echo "$as_me:$LINENO: result: no" >&5
1604echo "${ECHO_T}no" >&6
1605  SET_MAKE="MAKE=${MAKE-make}"
1606fi
1607
1608# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1609if test "${enable_dependency_tracking+set}" = set; then
1610  enableval="$enable_dependency_tracking"
1611
1612fi;
1613if test "x$enable_dependency_tracking" != xno; then
1614  am_depcomp="$ac_aux_dir/depcomp"
1615  AMDEPBACKSLASH='\'
1616fi
1617
1618
1619if test "x$enable_dependency_tracking" != xno; then
1620  AMDEP_TRUE=
1621  AMDEP_FALSE='#'
1622else
1623  AMDEP_TRUE='#'
1624  AMDEP_FALSE=
1625fi
1626
1627
1628
1629
1630rm -f .deps 2>/dev/null
1631mkdir .deps 2>/dev/null
1632if test -d .deps; then
1633  DEPDIR=.deps
1634else
1635  # MS-DOS does not allow filenames that begin with a dot.
1636  DEPDIR=_deps
1637fi
1638rmdir .deps 2>/dev/null
1639
1640
1641# test to see if srcdir already configured
1642if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1643   test -f $srcdir/config.status; then
1644  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1645echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1646   { (exit 1); exit 1; }; }
1647fi
1648
1649# Define the identity of the package.
1650PACKAGE=ntp
1651VERSION=4.1.1b
1652
1653cat >>confdefs.h <<_ACEOF
1654#define PACKAGE "$PACKAGE"
1655_ACEOF
1656
1657
1658cat >>confdefs.h <<_ACEOF
1659#define VERSION "$VERSION"
1660_ACEOF
1661
1662
1663# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
1664# the ones we care about.
1665
1666# Autoconf 2.50 always computes EXEEXT.  However we need to be
1667# compatible with 2.13, for now.  So we always define EXEEXT, but we
1668# don't compute it.
1669
1670# Similar for OBJEXT -- only we only use OBJEXT if the user actually
1671# requests that it be used.  This is a bit dumb.
1672: ${OBJEXT=o}
1673
1674
1675# Some tools Automake needs.
1676
1677ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1678
1679
1680AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1681
1682
1683AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1684
1685
1686AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1687
1688
1689MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1690
1691
1692AMTAR=${AMTAR-"${am_missing_run}tar"}
1693
1694install_sh=${install_sh-"$am_aux_dir/install-sh"}
1695
1696INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1697
1698# We need awk for the "check" target.  The system "awk" is bad on
1699# some platforms.
1700
1701		# We need the cross-compile-aware SIZEOF stuff.
1702
1703ac_cv_var_atom_ok=no
1704ac_cv_var_oncore_ok=no
1705ac_cv_var_ripe_ncc_ok=no
1706
1707iCFLAGS="$CFLAGS"
1708
1709ac_ext=c
1710ac_cpp='$CPP $CPPFLAGS'
1711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1713ac_compiler_gnu=$ac_cv_c_compiler_gnu
1714if test -n "$ac_tool_prefix"; then
1715  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1716set dummy ${ac_tool_prefix}gcc; ac_word=$2
1717echo "$as_me:$LINENO: checking for $ac_word" >&5
1718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719if test "${ac_cv_prog_CC+set}" = set; then
1720  echo $ECHO_N "(cached) $ECHO_C" >&6
1721else
1722  if test -n "$CC"; then
1723  ac_cv_prog_CC="$CC" # Let the user override the test.
1724else
1725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726for as_dir in $PATH
1727do
1728  IFS=$as_save_IFS
1729  test -z "$as_dir" && as_dir=.
1730  for ac_exec_ext in '' $ac_executable_extensions; do
1731  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1733    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734    break 2
1735  fi
1736done
1737done
1738
1739fi
1740fi
1741CC=$ac_cv_prog_CC
1742if test -n "$CC"; then
1743  echo "$as_me:$LINENO: result: $CC" >&5
1744echo "${ECHO_T}$CC" >&6
1745else
1746  echo "$as_me:$LINENO: result: no" >&5
1747echo "${ECHO_T}no" >&6
1748fi
1749
1750fi
1751if test -z "$ac_cv_prog_CC"; then
1752  ac_ct_CC=$CC
1753  # Extract the first word of "gcc", so it can be a program name with args.
1754set dummy gcc; ac_word=$2
1755echo "$as_me:$LINENO: checking for $ac_word" >&5
1756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1758  echo $ECHO_N "(cached) $ECHO_C" >&6
1759else
1760  if test -n "$ac_ct_CC"; then
1761  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1762else
1763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764for as_dir in $PATH
1765do
1766  IFS=$as_save_IFS
1767  test -z "$as_dir" && as_dir=.
1768  for ac_exec_ext in '' $ac_executable_extensions; do
1769  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770    ac_cv_prog_ac_ct_CC="gcc"
1771    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772    break 2
1773  fi
1774done
1775done
1776
1777fi
1778fi
1779ac_ct_CC=$ac_cv_prog_ac_ct_CC
1780if test -n "$ac_ct_CC"; then
1781  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1782echo "${ECHO_T}$ac_ct_CC" >&6
1783else
1784  echo "$as_me:$LINENO: result: no" >&5
1785echo "${ECHO_T}no" >&6
1786fi
1787
1788  CC=$ac_ct_CC
1789else
1790  CC="$ac_cv_prog_CC"
1791fi
1792
1793if test -z "$CC"; then
1794  if test -n "$ac_tool_prefix"; then
1795  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1796set dummy ${ac_tool_prefix}cc; ac_word=$2
1797echo "$as_me:$LINENO: checking for $ac_word" >&5
1798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799if test "${ac_cv_prog_CC+set}" = set; then
1800  echo $ECHO_N "(cached) $ECHO_C" >&6
1801else
1802  if test -n "$CC"; then
1803  ac_cv_prog_CC="$CC" # Let the user override the test.
1804else
1805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1806for as_dir in $PATH
1807do
1808  IFS=$as_save_IFS
1809  test -z "$as_dir" && as_dir=.
1810  for ac_exec_ext in '' $ac_executable_extensions; do
1811  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1812    ac_cv_prog_CC="${ac_tool_prefix}cc"
1813    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1814    break 2
1815  fi
1816done
1817done
1818
1819fi
1820fi
1821CC=$ac_cv_prog_CC
1822if test -n "$CC"; then
1823  echo "$as_me:$LINENO: result: $CC" >&5
1824echo "${ECHO_T}$CC" >&6
1825else
1826  echo "$as_me:$LINENO: result: no" >&5
1827echo "${ECHO_T}no" >&6
1828fi
1829
1830fi
1831if test -z "$ac_cv_prog_CC"; then
1832  ac_ct_CC=$CC
1833  # Extract the first word of "cc", so it can be a program name with args.
1834set dummy cc; ac_word=$2
1835echo "$as_me:$LINENO: checking for $ac_word" >&5
1836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1837if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1838  echo $ECHO_N "(cached) $ECHO_C" >&6
1839else
1840  if test -n "$ac_ct_CC"; then
1841  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1842else
1843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844for as_dir in $PATH
1845do
1846  IFS=$as_save_IFS
1847  test -z "$as_dir" && as_dir=.
1848  for ac_exec_ext in '' $ac_executable_extensions; do
1849  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1850    ac_cv_prog_ac_ct_CC="cc"
1851    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1852    break 2
1853  fi
1854done
1855done
1856
1857fi
1858fi
1859ac_ct_CC=$ac_cv_prog_ac_ct_CC
1860if test -n "$ac_ct_CC"; then
1861  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1862echo "${ECHO_T}$ac_ct_CC" >&6
1863else
1864  echo "$as_me:$LINENO: result: no" >&5
1865echo "${ECHO_T}no" >&6
1866fi
1867
1868  CC=$ac_ct_CC
1869else
1870  CC="$ac_cv_prog_CC"
1871fi
1872
1873fi
1874if test -z "$CC"; then
1875  # Extract the first word of "cc", so it can be a program name with args.
1876set dummy cc; ac_word=$2
1877echo "$as_me:$LINENO: checking for $ac_word" >&5
1878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1879if test "${ac_cv_prog_CC+set}" = set; then
1880  echo $ECHO_N "(cached) $ECHO_C" >&6
1881else
1882  if test -n "$CC"; then
1883  ac_cv_prog_CC="$CC" # Let the user override the test.
1884else
1885  ac_prog_rejected=no
1886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887for as_dir in $PATH
1888do
1889  IFS=$as_save_IFS
1890  test -z "$as_dir" && as_dir=.
1891  for ac_exec_ext in '' $ac_executable_extensions; do
1892  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1893    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1894       ac_prog_rejected=yes
1895       continue
1896     fi
1897    ac_cv_prog_CC="cc"
1898    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899    break 2
1900  fi
1901done
1902done
1903
1904if test $ac_prog_rejected = yes; then
1905  # We found a bogon in the path, so make sure we never use it.
1906  set dummy $ac_cv_prog_CC
1907  shift
1908  if test $# != 0; then
1909    # We chose a different compiler from the bogus one.
1910    # However, it has the same basename, so the bogon will be chosen
1911    # first if we set CC to just the basename; use the full file name.
1912    shift
1913    set dummy "$as_dir/$ac_word" ${1+"$@"}
1914    shift
1915    ac_cv_prog_CC="$@"
1916  fi
1917fi
1918fi
1919fi
1920CC=$ac_cv_prog_CC
1921if test -n "$CC"; then
1922  echo "$as_me:$LINENO: result: $CC" >&5
1923echo "${ECHO_T}$CC" >&6
1924else
1925  echo "$as_me:$LINENO: result: no" >&5
1926echo "${ECHO_T}no" >&6
1927fi
1928
1929fi
1930if test -z "$CC"; then
1931  if test -n "$ac_tool_prefix"; then
1932  for ac_prog in cl
1933  do
1934    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1935set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1936echo "$as_me:$LINENO: checking for $ac_word" >&5
1937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1938if test "${ac_cv_prog_CC+set}" = set; then
1939  echo $ECHO_N "(cached) $ECHO_C" >&6
1940else
1941  if test -n "$CC"; then
1942  ac_cv_prog_CC="$CC" # Let the user override the test.
1943else
1944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945for as_dir in $PATH
1946do
1947  IFS=$as_save_IFS
1948  test -z "$as_dir" && as_dir=.
1949  for ac_exec_ext in '' $ac_executable_extensions; do
1950  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1951    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1952    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953    break 2
1954  fi
1955done
1956done
1957
1958fi
1959fi
1960CC=$ac_cv_prog_CC
1961if test -n "$CC"; then
1962  echo "$as_me:$LINENO: result: $CC" >&5
1963echo "${ECHO_T}$CC" >&6
1964else
1965  echo "$as_me:$LINENO: result: no" >&5
1966echo "${ECHO_T}no" >&6
1967fi
1968
1969    test -n "$CC" && break
1970  done
1971fi
1972if test -z "$CC"; then
1973  ac_ct_CC=$CC
1974  for ac_prog in cl
1975do
1976  # Extract the first word of "$ac_prog", so it can be a program name with args.
1977set dummy $ac_prog; ac_word=$2
1978echo "$as_me:$LINENO: checking for $ac_word" >&5
1979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1981  echo $ECHO_N "(cached) $ECHO_C" >&6
1982else
1983  if test -n "$ac_ct_CC"; then
1984  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1985else
1986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987for as_dir in $PATH
1988do
1989  IFS=$as_save_IFS
1990  test -z "$as_dir" && as_dir=.
1991  for ac_exec_ext in '' $ac_executable_extensions; do
1992  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1993    ac_cv_prog_ac_ct_CC="$ac_prog"
1994    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995    break 2
1996  fi
1997done
1998done
1999
2000fi
2001fi
2002ac_ct_CC=$ac_cv_prog_ac_ct_CC
2003if test -n "$ac_ct_CC"; then
2004  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2005echo "${ECHO_T}$ac_ct_CC" >&6
2006else
2007  echo "$as_me:$LINENO: result: no" >&5
2008echo "${ECHO_T}no" >&6
2009fi
2010
2011  test -n "$ac_ct_CC" && break
2012done
2013
2014  CC=$ac_ct_CC
2015fi
2016
2017fi
2018
2019
2020test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2021echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2022   { (exit 1); exit 1; }; }
2023
2024# Provide some information about the compiler.
2025echo "$as_me:$LINENO:" \
2026     "checking for C compiler version" >&5
2027ac_compiler=`set X $ac_compile; echo $2`
2028{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2029  (eval $ac_compiler --version </dev/null >&5) 2>&5
2030  ac_status=$?
2031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032  (exit $ac_status); }
2033{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2034  (eval $ac_compiler -v </dev/null >&5) 2>&5
2035  ac_status=$?
2036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037  (exit $ac_status); }
2038{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2039  (eval $ac_compiler -V </dev/null >&5) 2>&5
2040  ac_status=$?
2041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042  (exit $ac_status); }
2043
2044cat >conftest.$ac_ext <<_ACEOF
2045#line $LINENO "configure"
2046#include "confdefs.h"
2047
2048#ifdef F77_DUMMY_MAIN
2049#  ifdef __cplusplus
2050     extern "C"
2051#  endif
2052   int F77_DUMMY_MAIN() { return 1; }
2053#endif
2054int
2055main ()
2056{
2057
2058  ;
2059  return 0;
2060}
2061_ACEOF
2062ac_clean_files_save=$ac_clean_files
2063ac_clean_files="$ac_clean_files a.out a.exe"
2064# Try to create an executable without -o first, disregard a.out.
2065# It will help us diagnose broken compilers, and finding out an intuition
2066# of exeext.
2067echo "$as_me:$LINENO: checking for C compiler default output" >&5
2068echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2069ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2070if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2071  (eval $ac_link_default) 2>&5
2072  ac_status=$?
2073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074  (exit $ac_status); }; then
2075  # Find the output, starting from the most likely.  This scheme is
2076# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2077# resort.
2078
2079# Be careful to initialize this variable, since it used to be cached.
2080# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2081ac_cv_exeext=
2082for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2083                ls a.out conftest 2>/dev/null;
2084                ls a.* conftest.* 2>/dev/null`; do
2085  case $ac_file in
2086    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2087    a.out ) # We found the default executable, but exeext='' is most
2088            # certainly right.
2089            break;;
2090    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2091          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2092          export ac_cv_exeext
2093          break;;
2094    * ) break;;
2095  esac
2096done
2097else
2098  echo "$as_me: failed program was:" >&5
2099cat conftest.$ac_ext >&5
2100{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2101echo "$as_me: error: C compiler cannot create executables" >&2;}
2102   { (exit 77); exit 77; }; }
2103fi
2104
2105ac_exeext=$ac_cv_exeext
2106echo "$as_me:$LINENO: result: $ac_file" >&5
2107echo "${ECHO_T}$ac_file" >&6
2108
2109# Check the compiler produces executables we can run.  If not, either
2110# the compiler is broken, or we cross compile.
2111echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2112echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2113# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2114# If not cross compiling, check that we can run a simple program.
2115if test "$cross_compiling" != yes; then
2116  if { ac_try='./$ac_file'
2117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2118  (eval $ac_try) 2>&5
2119  ac_status=$?
2120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121  (exit $ac_status); }; }; then
2122    cross_compiling=no
2123  else
2124    if test "$cross_compiling" = maybe; then
2125	cross_compiling=yes
2126    else
2127	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2128If you meant to cross compile, use \`--host'." >&5
2129echo "$as_me: error: cannot run C compiled programs.
2130If you meant to cross compile, use \`--host'." >&2;}
2131   { (exit 1); exit 1; }; }
2132    fi
2133  fi
2134fi
2135echo "$as_me:$LINENO: result: yes" >&5
2136echo "${ECHO_T}yes" >&6
2137
2138rm -f a.out a.exe conftest$ac_cv_exeext
2139ac_clean_files=$ac_clean_files_save
2140# Check the compiler produces executables we can run.  If not, either
2141# the compiler is broken, or we cross compile.
2142echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2143echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2144echo "$as_me:$LINENO: result: $cross_compiling" >&5
2145echo "${ECHO_T}$cross_compiling" >&6
2146
2147echo "$as_me:$LINENO: checking for suffix of executables" >&5
2148echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2150  (eval $ac_link) 2>&5
2151  ac_status=$?
2152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153  (exit $ac_status); }; then
2154  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2155# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2156# work properly (i.e., refer to `conftest.exe'), while it won't with
2157# `rm'.
2158for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2159  case $ac_file in
2160    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2161    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2162          export ac_cv_exeext
2163          break;;
2164    * ) break;;
2165  esac
2166done
2167else
2168  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2169echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2170   { (exit 1); exit 1; }; }
2171fi
2172
2173rm -f conftest$ac_cv_exeext
2174echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2175echo "${ECHO_T}$ac_cv_exeext" >&6
2176
2177rm -f conftest.$ac_ext
2178EXEEXT=$ac_cv_exeext
2179ac_exeext=$EXEEXT
2180echo "$as_me:$LINENO: checking for suffix of object files" >&5
2181echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2182if test "${ac_cv_objext+set}" = set; then
2183  echo $ECHO_N "(cached) $ECHO_C" >&6
2184else
2185  cat >conftest.$ac_ext <<_ACEOF
2186#line $LINENO "configure"
2187#include "confdefs.h"
2188
2189#ifdef F77_DUMMY_MAIN
2190#  ifdef __cplusplus
2191     extern "C"
2192#  endif
2193   int F77_DUMMY_MAIN() { return 1; }
2194#endif
2195int
2196main ()
2197{
2198
2199  ;
2200  return 0;
2201}
2202_ACEOF
2203rm -f conftest.o conftest.obj
2204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2205  (eval $ac_compile) 2>&5
2206  ac_status=$?
2207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208  (exit $ac_status); }; then
2209  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2210  case $ac_file in
2211    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2212    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2213       break;;
2214  esac
2215done
2216else
2217  echo "$as_me: failed program was:" >&5
2218cat conftest.$ac_ext >&5
2219{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2220echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2221   { (exit 1); exit 1; }; }
2222fi
2223
2224rm -f conftest.$ac_cv_objext conftest.$ac_ext
2225fi
2226echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2227echo "${ECHO_T}$ac_cv_objext" >&6
2228OBJEXT=$ac_cv_objext
2229ac_objext=$OBJEXT
2230echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2231echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2232if test "${ac_cv_c_compiler_gnu+set}" = set; then
2233  echo $ECHO_N "(cached) $ECHO_C" >&6
2234else
2235  cat >conftest.$ac_ext <<_ACEOF
2236#line $LINENO "configure"
2237#include "confdefs.h"
2238
2239#ifdef F77_DUMMY_MAIN
2240#  ifdef __cplusplus
2241     extern "C"
2242#  endif
2243   int F77_DUMMY_MAIN() { return 1; }
2244#endif
2245int
2246main ()
2247{
2248#ifndef __GNUC__
2249       choke me
2250#endif
2251
2252  ;
2253  return 0;
2254}
2255_ACEOF
2256rm -f conftest.$ac_objext
2257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258  (eval $ac_compile) 2>&5
2259  ac_status=$?
2260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261  (exit $ac_status); } &&
2262         { ac_try='test -s conftest.$ac_objext'
2263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264  (eval $ac_try) 2>&5
2265  ac_status=$?
2266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267  (exit $ac_status); }; }; then
2268  ac_compiler_gnu=yes
2269else
2270  echo "$as_me: failed program was:" >&5
2271cat conftest.$ac_ext >&5
2272ac_compiler_gnu=no
2273fi
2274rm -f conftest.$ac_objext conftest.$ac_ext
2275ac_cv_c_compiler_gnu=$ac_compiler_gnu
2276
2277fi
2278echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2279echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2280GCC=`test $ac_compiler_gnu = yes && echo yes`
2281ac_test_CFLAGS=${CFLAGS+set}
2282ac_save_CFLAGS=$CFLAGS
2283CFLAGS="-g"
2284echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2285echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2286if test "${ac_cv_prog_cc_g+set}" = set; then
2287  echo $ECHO_N "(cached) $ECHO_C" >&6
2288else
2289  cat >conftest.$ac_ext <<_ACEOF
2290#line $LINENO "configure"
2291#include "confdefs.h"
2292
2293#ifdef F77_DUMMY_MAIN
2294#  ifdef __cplusplus
2295     extern "C"
2296#  endif
2297   int F77_DUMMY_MAIN() { return 1; }
2298#endif
2299int
2300main ()
2301{
2302
2303  ;
2304  return 0;
2305}
2306_ACEOF
2307rm -f conftest.$ac_objext
2308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309  (eval $ac_compile) 2>&5
2310  ac_status=$?
2311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312  (exit $ac_status); } &&
2313         { ac_try='test -s conftest.$ac_objext'
2314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315  (eval $ac_try) 2>&5
2316  ac_status=$?
2317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318  (exit $ac_status); }; }; then
2319  ac_cv_prog_cc_g=yes
2320else
2321  echo "$as_me: failed program was:" >&5
2322cat conftest.$ac_ext >&5
2323ac_cv_prog_cc_g=no
2324fi
2325rm -f conftest.$ac_objext conftest.$ac_ext
2326fi
2327echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2328echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2329if test "$ac_test_CFLAGS" = set; then
2330  CFLAGS=$ac_save_CFLAGS
2331elif test $ac_cv_prog_cc_g = yes; then
2332  if test "$GCC" = yes; then
2333    CFLAGS="-g -O2"
2334  else
2335    CFLAGS="-g"
2336  fi
2337else
2338  if test "$GCC" = yes; then
2339    CFLAGS="-O2"
2340  else
2341    CFLAGS=
2342  fi
2343fi
2344# Some people use a C++ compiler to compile C.  Since we use `exit',
2345# in C++ we need to declare it.  In case someone uses the same compiler
2346# for both compiling C and C++ we need to have the C++ compiler decide
2347# the declaration of exit, since it's the most demanding environment.
2348cat >conftest.$ac_ext <<_ACEOF
2349#ifndef __cplusplus
2350  choke me
2351#endif
2352_ACEOF
2353rm -f conftest.$ac_objext
2354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355  (eval $ac_compile) 2>&5
2356  ac_status=$?
2357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358  (exit $ac_status); } &&
2359         { ac_try='test -s conftest.$ac_objext'
2360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361  (eval $ac_try) 2>&5
2362  ac_status=$?
2363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364  (exit $ac_status); }; }; then
2365  for ac_declaration in \
2366   ''\
2367   '#include <stdlib.h>' \
2368   'extern "C" void std::exit (int) throw (); using std::exit;' \
2369   'extern "C" void std::exit (int); using std::exit;' \
2370   'extern "C" void exit (int) throw ();' \
2371   'extern "C" void exit (int);' \
2372   'void exit (int);'
2373do
2374  cat >conftest.$ac_ext <<_ACEOF
2375#line $LINENO "configure"
2376#include "confdefs.h"
2377#include <stdlib.h>
2378$ac_declaration
2379#ifdef F77_DUMMY_MAIN
2380#  ifdef __cplusplus
2381     extern "C"
2382#  endif
2383   int F77_DUMMY_MAIN() { return 1; }
2384#endif
2385int
2386main ()
2387{
2388exit (42);
2389  ;
2390  return 0;
2391}
2392_ACEOF
2393rm -f conftest.$ac_objext
2394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2395  (eval $ac_compile) 2>&5
2396  ac_status=$?
2397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398  (exit $ac_status); } &&
2399         { ac_try='test -s conftest.$ac_objext'
2400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401  (eval $ac_try) 2>&5
2402  ac_status=$?
2403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404  (exit $ac_status); }; }; then
2405  :
2406else
2407  echo "$as_me: failed program was:" >&5
2408cat conftest.$ac_ext >&5
2409continue
2410fi
2411rm -f conftest.$ac_objext conftest.$ac_ext
2412  cat >conftest.$ac_ext <<_ACEOF
2413#line $LINENO "configure"
2414#include "confdefs.h"
2415$ac_declaration
2416#ifdef F77_DUMMY_MAIN
2417#  ifdef __cplusplus
2418     extern "C"
2419#  endif
2420   int F77_DUMMY_MAIN() { return 1; }
2421#endif
2422int
2423main ()
2424{
2425exit (42);
2426  ;
2427  return 0;
2428}
2429_ACEOF
2430rm -f conftest.$ac_objext
2431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2432  (eval $ac_compile) 2>&5
2433  ac_status=$?
2434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435  (exit $ac_status); } &&
2436         { ac_try='test -s conftest.$ac_objext'
2437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438  (eval $ac_try) 2>&5
2439  ac_status=$?
2440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441  (exit $ac_status); }; }; then
2442  break
2443else
2444  echo "$as_me: failed program was:" >&5
2445cat conftest.$ac_ext >&5
2446fi
2447rm -f conftest.$ac_objext conftest.$ac_ext
2448done
2449rm -f conftest*
2450if test -n "$ac_declaration"; then
2451  echo '#ifdef __cplusplus' >>confdefs.h
2452  echo $ac_declaration      >>confdefs.h
2453  echo '#endif'             >>confdefs.h
2454fi
2455
2456else
2457  echo "$as_me: failed program was:" >&5
2458cat conftest.$ac_ext >&5
2459fi
2460rm -f conftest.$ac_objext conftest.$ac_ext
2461ac_ext=c
2462ac_cpp='$CPP $CPPFLAGS'
2463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2465ac_compiler_gnu=$ac_cv_c_compiler_gnu
2466
2467ac_config_commands="$ac_config_commands default-1"
2468
2469am_make=${MAKE-make}
2470cat > confinc << 'END'
2471doit:
2472	@echo done
2473END
2474# If we don't find an include directive, just comment out the code.
2475echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2476echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2477am__include='#'
2478am__quote=
2479_am_result=none
2480# First try GNU make style include.
2481echo "include confinc" > confmf
2482# We grep out `Entering directory' and `Leaving directory'
2483# messages which can occur if `w' ends up in MAKEFLAGS.
2484# In particular we don't look at `^make:' because GNU make might
2485# be invoked under some other name (usually "gmake"), in which
2486# case it prints its new name instead of `make'.
2487if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2488   am__include=include
2489   am__quote=
2490   _am_result=GNU
2491fi
2492# Now try BSD make style include.
2493if test "$am__include" = "#"; then
2494   echo '.include "confinc"' > confmf
2495   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2496      am__include=.include
2497      am__quote='"'
2498      _am_result=BSD
2499   fi
2500fi
2501
2502
2503echo "$as_me:$LINENO: result: $_am_result" >&5
2504echo "${ECHO_T}$_am_result" >&6
2505rm -f confinc confmf
2506
2507
2508depcc="$CC"   am_compiler_list=
2509
2510echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2511echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2512if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2513  echo $ECHO_N "(cached) $ECHO_C" >&6
2514else
2515  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2516  # We make a subdir and do the tests there.  Otherwise we can end up
2517  # making bogus files that we don't know about and never remove.  For
2518  # instance it was reported that on HP-UX the gcc test will end up
2519  # making a dummy file named `D' -- because `-MD' means `put the output
2520  # in D'.
2521  mkdir conftest.dir
2522  # Copy depcomp to subdir because otherwise we won't find it if we're
2523  # using a relative directory.
2524  cp "$am_depcomp" conftest.dir
2525  cd conftest.dir
2526
2527  am_cv_CC_dependencies_compiler_type=none
2528  if test "$am_compiler_list" = ""; then
2529     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2530  fi
2531  for depmode in $am_compiler_list; do
2532    # We need to recreate these files for each test, as the compiler may
2533    # overwrite some of them when testing with obscure command lines.
2534    # This happens at least with the AIX C compiler.
2535    echo '#include "conftest.h"' > conftest.c
2536    echo 'int i;' > conftest.h
2537    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2538
2539    case $depmode in
2540    nosideeffect)
2541      # after this tag, mechanisms are not by side-effect, so they'll
2542      # only be used when explicitly requested
2543      if test "x$enable_dependency_tracking" = xyes; then
2544	continue
2545      else
2546	break
2547      fi
2548      ;;
2549    none) break ;;
2550    esac
2551    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2552    # mode.  It turns out that the SunPro C++ compiler does not properly
2553    # handle `-M -o', and we need to detect this.
2554    if depmode=$depmode \
2555       source=conftest.c object=conftest.o \
2556       depfile=conftest.Po tmpdepfile=conftest.TPo \
2557       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2558       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2559       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2560      am_cv_CC_dependencies_compiler_type=$depmode
2561      break
2562    fi
2563  done
2564
2565  cd ..
2566  rm -rf conftest.dir
2567else
2568  am_cv_CC_dependencies_compiler_type=none
2569fi
2570
2571fi
2572echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2573echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2574CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2575
2576
2577
2578echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2579echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2580if test "${ac_cv_prog_cc_stdc+set}" = set; then
2581  echo $ECHO_N "(cached) $ECHO_C" >&6
2582else
2583  ac_cv_prog_cc_stdc=no
2584ac_save_CC=$CC
2585cat >conftest.$ac_ext <<_ACEOF
2586#line $LINENO "configure"
2587#include "confdefs.h"
2588#include <stdarg.h>
2589#include <stdio.h>
2590#include <sys/types.h>
2591#include <sys/stat.h>
2592/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2593struct buf { int x; };
2594FILE * (*rcsopen) (struct buf *, struct stat *, int);
2595static char *e (p, i)
2596     char **p;
2597     int i;
2598{
2599  return p[i];
2600}
2601static char *f (char * (*g) (char **, int), char **p, ...)
2602{
2603  char *s;
2604  va_list v;
2605  va_start (v,p);
2606  s = g (p, va_arg (v,int));
2607  va_end (v);
2608  return s;
2609}
2610int test (int i, double x);
2611struct s1 {int (*f) (int a);};
2612struct s2 {int (*f) (double a);};
2613int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2614int argc;
2615char **argv;
2616#ifdef F77_DUMMY_MAIN
2617#  ifdef __cplusplus
2618     extern "C"
2619#  endif
2620   int F77_DUMMY_MAIN() { return 1; }
2621#endif
2622int
2623main ()
2624{
2625return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2626  ;
2627  return 0;
2628}
2629_ACEOF
2630# Don't try gcc -ansi; that turns off useful extensions and
2631# breaks some systems' header files.
2632# AIX			-qlanglvl=ansi
2633# Ultrix and OSF/1	-std1
2634# HP-UX 10.20 and later	-Ae
2635# HP-UX older versions	-Aa -D_HPUX_SOURCE
2636# SVR4			-Xc -D__EXTENSIONS__
2637for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2638do
2639  CC="$ac_save_CC $ac_arg"
2640  rm -f conftest.$ac_objext
2641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2642  (eval $ac_compile) 2>&5
2643  ac_status=$?
2644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645  (exit $ac_status); } &&
2646         { ac_try='test -s conftest.$ac_objext'
2647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648  (eval $ac_try) 2>&5
2649  ac_status=$?
2650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651  (exit $ac_status); }; }; then
2652  ac_cv_prog_cc_stdc=$ac_arg
2653break
2654else
2655  echo "$as_me: failed program was:" >&5
2656cat conftest.$ac_ext >&5
2657fi
2658rm -f conftest.$ac_objext
2659done
2660rm -f conftest.$ac_ext conftest.$ac_objext
2661CC=$ac_save_CC
2662
2663fi
2664
2665case "x$ac_cv_prog_cc_stdc" in
2666  x|xno)
2667    echo "$as_me:$LINENO: result: none needed" >&5
2668echo "${ECHO_T}none needed" >&6 ;;
2669  *)
2670    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2671echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2672    CC="$CC $ac_cv_prog_cc_stdc" ;;
2673esac
2674
2675ac_ext=c
2676ac_cpp='$CPP $CPPFLAGS'
2677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2679ac_compiler_gnu=$ac_cv_c_compiler_gnu
2680echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2681echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2682# On Suns, sometimes $CPP names a directory.
2683if test -n "$CPP" && test -d "$CPP"; then
2684  CPP=
2685fi
2686if test -z "$CPP"; then
2687  if test "${ac_cv_prog_CPP+set}" = set; then
2688  echo $ECHO_N "(cached) $ECHO_C" >&6
2689else
2690      # Double quotes because CPP needs to be expanded
2691    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2692    do
2693      ac_preproc_ok=false
2694for ac_c_preproc_warn_flag in '' yes
2695do
2696  # Use a header file that comes with gcc, so configuring glibc
2697  # with a fresh cross-compiler works.
2698  # On the NeXT, cc -E runs the code through the compiler's parser,
2699  # not just through cpp. "Syntax error" is here to catch this case.
2700  cat >conftest.$ac_ext <<_ACEOF
2701#line $LINENO "configure"
2702#include "confdefs.h"
2703#include <assert.h>
2704                     Syntax error
2705_ACEOF
2706if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2707  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2708  ac_status=$?
2709  egrep -v '^ *\+' conftest.er1 >conftest.err
2710  rm -f conftest.er1
2711  cat conftest.err >&5
2712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713  (exit $ac_status); } >/dev/null; then
2714  if test -s conftest.err; then
2715    ac_cpp_err=$ac_c_preproc_warn_flag
2716  else
2717    ac_cpp_err=
2718  fi
2719else
2720  ac_cpp_err=yes
2721fi
2722if test -z "$ac_cpp_err"; then
2723  :
2724else
2725  echo "$as_me: failed program was:" >&5
2726  cat conftest.$ac_ext >&5
2727  # Broken: fails on valid input.
2728continue
2729fi
2730rm -f conftest.err conftest.$ac_ext
2731
2732  # OK, works on sane cases.  Now check whether non-existent headers
2733  # can be detected and how.
2734  cat >conftest.$ac_ext <<_ACEOF
2735#line $LINENO "configure"
2736#include "confdefs.h"
2737#include <ac_nonexistent.h>
2738_ACEOF
2739if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2740  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2741  ac_status=$?
2742  egrep -v '^ *\+' conftest.er1 >conftest.err
2743  rm -f conftest.er1
2744  cat conftest.err >&5
2745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746  (exit $ac_status); } >/dev/null; then
2747  if test -s conftest.err; then
2748    ac_cpp_err=$ac_c_preproc_warn_flag
2749  else
2750    ac_cpp_err=
2751  fi
2752else
2753  ac_cpp_err=yes
2754fi
2755if test -z "$ac_cpp_err"; then
2756  # Broken: success on invalid input.
2757continue
2758else
2759  echo "$as_me: failed program was:" >&5
2760  cat conftest.$ac_ext >&5
2761  # Passes both tests.
2762ac_preproc_ok=:
2763break
2764fi
2765rm -f conftest.err conftest.$ac_ext
2766
2767done
2768# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2769rm -f conftest.err conftest.$ac_ext
2770if $ac_preproc_ok; then
2771  break
2772fi
2773
2774    done
2775    ac_cv_prog_CPP=$CPP
2776
2777fi
2778  CPP=$ac_cv_prog_CPP
2779else
2780  ac_cv_prog_CPP=$CPP
2781fi
2782echo "$as_me:$LINENO: result: $CPP" >&5
2783echo "${ECHO_T}$CPP" >&6
2784ac_preproc_ok=false
2785for ac_c_preproc_warn_flag in '' yes
2786do
2787  # Use a header file that comes with gcc, so configuring glibc
2788  # with a fresh cross-compiler works.
2789  # On the NeXT, cc -E runs the code through the compiler's parser,
2790  # not just through cpp. "Syntax error" is here to catch this case.
2791  cat >conftest.$ac_ext <<_ACEOF
2792#line $LINENO "configure"
2793#include "confdefs.h"
2794#include <assert.h>
2795                     Syntax error
2796_ACEOF
2797if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2798  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2799  ac_status=$?
2800  egrep -v '^ *\+' conftest.er1 >conftest.err
2801  rm -f conftest.er1
2802  cat conftest.err >&5
2803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804  (exit $ac_status); } >/dev/null; then
2805  if test -s conftest.err; then
2806    ac_cpp_err=$ac_c_preproc_warn_flag
2807  else
2808    ac_cpp_err=
2809  fi
2810else
2811  ac_cpp_err=yes
2812fi
2813if test -z "$ac_cpp_err"; then
2814  :
2815else
2816  echo "$as_me: failed program was:" >&5
2817  cat conftest.$ac_ext >&5
2818  # Broken: fails on valid input.
2819continue
2820fi
2821rm -f conftest.err conftest.$ac_ext
2822
2823  # OK, works on sane cases.  Now check whether non-existent headers
2824  # can be detected and how.
2825  cat >conftest.$ac_ext <<_ACEOF
2826#line $LINENO "configure"
2827#include "confdefs.h"
2828#include <ac_nonexistent.h>
2829_ACEOF
2830if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2831  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2832  ac_status=$?
2833  egrep -v '^ *\+' conftest.er1 >conftest.err
2834  rm -f conftest.er1
2835  cat conftest.err >&5
2836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837  (exit $ac_status); } >/dev/null; then
2838  if test -s conftest.err; then
2839    ac_cpp_err=$ac_c_preproc_warn_flag
2840  else
2841    ac_cpp_err=
2842  fi
2843else
2844  ac_cpp_err=yes
2845fi
2846if test -z "$ac_cpp_err"; then
2847  # Broken: success on invalid input.
2848continue
2849else
2850  echo "$as_me: failed program was:" >&5
2851  cat conftest.$ac_ext >&5
2852  # Passes both tests.
2853ac_preproc_ok=:
2854break
2855fi
2856rm -f conftest.err conftest.$ac_ext
2857
2858done
2859# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2860rm -f conftest.err conftest.$ac_ext
2861if $ac_preproc_ok; then
2862  :
2863else
2864  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2865echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2866   { (exit 1); exit 1; }; }
2867fi
2868
2869ac_ext=c
2870ac_cpp='$CPP $CPPFLAGS'
2871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2873ac_compiler_gnu=$ac_cv_c_compiler_gnu
2874
2875
2876case "$host" in
2877 *-*-amigaos)
2878    CFLAGS="$CFLAGS -Dfork=vfork -DSYS_AMIGA"
2879    ;;
2880 *-pc-cygwin*)
2881    CFLAGS="$CFLAGS -DSYS_CYGWIN32"
2882    ;;
2883 i386-sequent-sysv4)
2884    case "$CC" in
2885     cc)
2886	CFLAGS="$CFLAGS -Wc,+abi-socket"
2887	;;
2888    esac
2889    ;;
2890 alpha*-dec-osf*)
2891    case "$CC" in
2892     cc)
2893	CFLAGS="$CFLAGS -std1"
2894	;;
2895    esac
2896    ;;
2897 *-*-mpeix*)
2898    CPPFLAGS="$CPPFLAGS -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE -I/SYSLOG/PUB"
2899    LDFLAGS="$LDFLAGS -L/SYSLOG/PUB"
2900    LIBS="$LIBS -lcurses"
2901    ;;
2902esac
2903
2904case "$build" in
2905 $host)
2906    ;;
2907 *) case "$host" in
2908     *-*-vxworks*)
2909	# Quick and dirty sanity check
2910	case "$VX_KERNEL" in
2911	 '') { { echo "$as_me:$LINENO: error: Please follow the directions in html/vxworks.html!" >&5
2912echo "$as_me: error: Please follow the directions in html/vxworks.html!" >&2;}
2913   { (exit 1); exit 1; }; }
2914	    ;;
2915	esac
2916        CFLAGS="$CFLAGS -DSYS_VXWORKS"
2917        ;;
2918    esac
2919    ;;
2920esac
2921
2922for ac_prog in gawk mawk nawk awk
2923do
2924  # Extract the first word of "$ac_prog", so it can be a program name with args.
2925set dummy $ac_prog; ac_word=$2
2926echo "$as_me:$LINENO: checking for $ac_word" >&5
2927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2928if test "${ac_cv_prog_AWK+set}" = set; then
2929  echo $ECHO_N "(cached) $ECHO_C" >&6
2930else
2931  if test -n "$AWK"; then
2932  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2933else
2934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935for as_dir in $PATH
2936do
2937  IFS=$as_save_IFS
2938  test -z "$as_dir" && as_dir=.
2939  for ac_exec_ext in '' $ac_executable_extensions; do
2940  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2941    ac_cv_prog_AWK="$ac_prog"
2942    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2943    break 2
2944  fi
2945done
2946done
2947
2948fi
2949fi
2950AWK=$ac_cv_prog_AWK
2951if test -n "$AWK"; then
2952  echo "$as_me:$LINENO: result: $AWK" >&5
2953echo "${ECHO_T}$AWK" >&6
2954else
2955  echo "$as_me:$LINENO: result: no" >&5
2956echo "${ECHO_T}no" >&6
2957fi
2958
2959  test -n "$AWK" && break
2960done
2961
2962echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
2963echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2964set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2965if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2966  echo $ECHO_N "(cached) $ECHO_C" >&6
2967else
2968  cat >conftest.make <<\_ACEOF
2969all:
2970	@echo 'ac_maketemp="${MAKE}"'
2971_ACEOF
2972# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2973eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2974if test -n "$ac_maketemp"; then
2975  eval ac_cv_prog_make_${ac_make}_set=yes
2976else
2977  eval ac_cv_prog_make_${ac_make}_set=no
2978fi
2979rm -f conftest.make
2980fi
2981if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2982  echo "$as_me:$LINENO: result: yes" >&5
2983echo "${ECHO_T}yes" >&6
2984  SET_MAKE=
2985else
2986  echo "$as_me:$LINENO: result: no" >&5
2987echo "${ECHO_T}no" >&6
2988  SET_MAKE="MAKE=${MAKE-make}"
2989fi
2990
2991
2992rm -f conftest*
2993
2994case "$GCC" in
2995 yes)
2996    CFLAGS="$CFLAGS -Wall"
2997    # CFLAGS="$CFLAGS -Wcast-align"
2998    CFLAGS="$CFLAGS -Wcast-qual"
2999    # CFLAGS="$CFLAGS -Wconversion"
3000    # CFLAGS="$CFLAGS -Werror"
3001    CFLAGS="$CFLAGS -Wmissing-prototypes"
3002    CFLAGS="$CFLAGS -Wpointer-arith"
3003    CFLAGS="$CFLAGS -Wshadow"
3004    CFLAGS="$CFLAGS -Wstrict-prototypes"
3005    # CFLAGS="$CFLAGS -Wtraditional"
3006    # CFLAGS="$CFLAGS -Wwrite-strings"
3007
3008    echo "$as_me:$LINENO: checking whether ${CC-cc} -pipe works" >&5
3009echo $ECHO_N "checking whether ${CC-cc} -pipe works... $ECHO_C" >&6
3010if test "${ac_cv_prog_cc_pipe+set}" = set; then
3011  echo $ECHO_N "(cached) $ECHO_C" >&6
3012else
3013  echo 'void f(){}' > conftest.c
3014    if test -z "`${CC-cc} -pipe -c conftest.c 2>&1`" -a -s conftest.o; then
3015      ac_cv_prog_cc_pipe=yes
3016    else
3017      ac_cv_prog_cc_pipe=no
3018    fi
3019    rm -f conftest*
3020
3021fi
3022echo "$as_me:$LINENO: result: $ac_cv_prog_cc_pipe" >&5
3023echo "${ECHO_T}$ac_cv_prog_cc_pipe" >&6
3024
3025    case "$ac_cv_prog_cc_pipe" in
3026     yes)
3027	CFLAGS="$CFLAGS -pipe"
3028	;;
3029    esac
3030    ;;
3031esac
3032
3033ac_busted_vpath_in_make=no
3034
3035case "$host" in
3036 *-next-nextstep3)
3037    CFLAGS="$CFLAGS -posix"
3038    ;;
3039 *-*-irix6.1*)	# 64 bit only
3040    # busted vpath?
3041    ;;
3042 *-*-irix6*)	# 6.2 (and later?)
3043    ac_busted_vpath_in_make=yes
3044    # don't pass -n32 to gcc, it cannot handle and doesn't need it
3045    if test "$GCC" != yes; then
3046      case "$CFLAGS" in
3047       *-n32*) ;;
3048       *-n64*) ;;
3049       *) case "$iCFLAGS" in
3050	   '') CFLAGS="-O2 -g3 -n32" ;;
3051	   *)  CFLAGS="$CFLAGS -n32" ;;
3052	  esac
3053	  ;;
3054      esac
3055      case "$LDFLAGS" in
3056       *-n32*) ;;
3057       *-n64*) ;;
3058       *) LDFLAGS="$LDFLAGS -n32" ;;
3059      esac
3060    fi
3061    ;;
3062 *-*-solaris2.5.1)
3063    ac_busted_vpath_in_make=yes
3064    ;;
3065esac
3066
3067case "$ac_busted_vpath_in_make$srcdir" in
3068 no*) ;;
3069 yes.) ;;
3070 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | sed -e 's/GNU Make version \(1-9.]*\).*/\1/' -e q`" in
3071     '')
3072	{ { echo "$as_me:$LINENO: error: building outside of the main directory requires GNU make" >&5
3073echo "$as_me: error: building outside of the main directory requires GNU make" >&2;}
3074   { (exit 1); exit 1; }; }
3075	;;
3076     *) ;;
3077    esac
3078    ;;
3079esac
3080
3081
3082echo "$as_me:$LINENO: checking whether ln -s works" >&5
3083echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3084LN_S=$as_ln_s
3085if test "$LN_S" = "ln -s"; then
3086  echo "$as_me:$LINENO: result: yes" >&5
3087echo "${ECHO_T}yes" >&6
3088else
3089  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3090echo "${ECHO_T}no, using $LN_S" >&6
3091fi
3092
3093
3094if test $ac_cv_c_compiler_gnu = yes; then
3095    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3096echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3097if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3098  echo $ECHO_N "(cached) $ECHO_C" >&6
3099else
3100    ac_pattern="Autoconf.*'x'"
3101  cat >conftest.$ac_ext <<_ACEOF
3102#line $LINENO "configure"
3103#include "confdefs.h"
3104#include <sgtty.h>
3105Autoconf TIOCGETP
3106_ACEOF
3107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3108  egrep "$ac_pattern" >/dev/null 2>&1; then
3109  ac_cv_prog_gcc_traditional=yes
3110else
3111  ac_cv_prog_gcc_traditional=no
3112fi
3113rm -f conftest*
3114
3115
3116  if test $ac_cv_prog_gcc_traditional = no; then
3117    cat >conftest.$ac_ext <<_ACEOF
3118#line $LINENO "configure"
3119#include "confdefs.h"
3120#include <termio.h>
3121Autoconf TCGETA
3122_ACEOF
3123if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3124  egrep "$ac_pattern" >/dev/null 2>&1; then
3125  ac_cv_prog_gcc_traditional=yes
3126fi
3127rm -f conftest*
3128
3129  fi
3130fi
3131echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3132echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3133  if test $ac_cv_prog_gcc_traditional = yes; then
3134    CC="$CC -traditional"
3135  fi
3136fi
3137
3138
3139echo "$as_me:$LINENO: checking for AIX" >&5
3140echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3141cat >conftest.$ac_ext <<_ACEOF
3142#line $LINENO "configure"
3143#include "confdefs.h"
3144#ifdef _AIX
3145  yes
3146#endif
3147
3148_ACEOF
3149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3150  egrep "yes" >/dev/null 2>&1; then
3151  echo "$as_me:$LINENO: result: yes" >&5
3152echo "${ECHO_T}yes" >&6
3153cat >>confdefs.h <<\_ACEOF
3154#define _ALL_SOURCE 1
3155_ACEOF
3156
3157else
3158  echo "$as_me:$LINENO: result: no" >&5
3159echo "${ECHO_T}no" >&6
3160fi
3161rm -f conftest*
3162
3163
3164echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3165echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3166if test "${ac_cv_header_stdc+set}" = set; then
3167  echo $ECHO_N "(cached) $ECHO_C" >&6
3168else
3169  cat >conftest.$ac_ext <<_ACEOF
3170#line $LINENO "configure"
3171#include "confdefs.h"
3172#include <stdlib.h>
3173#include <stdarg.h>
3174#include <string.h>
3175#include <float.h>
3176
3177_ACEOF
3178if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3179  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3180  ac_status=$?
3181  egrep -v '^ *\+' conftest.er1 >conftest.err
3182  rm -f conftest.er1
3183  cat conftest.err >&5
3184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185  (exit $ac_status); } >/dev/null; then
3186  if test -s conftest.err; then
3187    ac_cpp_err=$ac_c_preproc_warn_flag
3188  else
3189    ac_cpp_err=
3190  fi
3191else
3192  ac_cpp_err=yes
3193fi
3194if test -z "$ac_cpp_err"; then
3195  ac_cv_header_stdc=yes
3196else
3197  echo "$as_me: failed program was:" >&5
3198  cat conftest.$ac_ext >&5
3199  ac_cv_header_stdc=no
3200fi
3201rm -f conftest.err conftest.$ac_ext
3202
3203if test $ac_cv_header_stdc = yes; then
3204  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3205  cat >conftest.$ac_ext <<_ACEOF
3206#line $LINENO "configure"
3207#include "confdefs.h"
3208#include <string.h>
3209
3210_ACEOF
3211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3212  egrep "memchr" >/dev/null 2>&1; then
3213  :
3214else
3215  ac_cv_header_stdc=no
3216fi
3217rm -f conftest*
3218
3219fi
3220
3221if test $ac_cv_header_stdc = yes; then
3222  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3223  cat >conftest.$ac_ext <<_ACEOF
3224#line $LINENO "configure"
3225#include "confdefs.h"
3226#include <stdlib.h>
3227
3228_ACEOF
3229if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3230  egrep "free" >/dev/null 2>&1; then
3231  :
3232else
3233  ac_cv_header_stdc=no
3234fi
3235rm -f conftest*
3236
3237fi
3238
3239if test $ac_cv_header_stdc = yes; then
3240  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3241  if test "$cross_compiling" = yes; then
3242  :
3243else
3244  cat >conftest.$ac_ext <<_ACEOF
3245#line $LINENO "configure"
3246#include "confdefs.h"
3247#include <ctype.h>
3248#if ((' ' & 0x0FF) == 0x020)
3249# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3250# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3251#else
3252# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3253                     || ('j' <= (c) && (c) <= 'r') \
3254                     || ('s' <= (c) && (c) <= 'z'))
3255# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3256#endif
3257
3258#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3259int
3260main ()
3261{
3262  int i;
3263  for (i = 0; i < 256; i++)
3264    if (XOR (islower (i), ISLOWER (i))
3265        || toupper (i) != TOUPPER (i))
3266      exit(2);
3267  exit (0);
3268}
3269_ACEOF
3270rm -f conftest$ac_exeext
3271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3272  (eval $ac_link) 2>&5
3273  ac_status=$?
3274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277  (eval $ac_try) 2>&5
3278  ac_status=$?
3279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280  (exit $ac_status); }; }; then
3281  :
3282else
3283  echo "$as_me: program exited with status $ac_status" >&5
3284echo "$as_me: failed program was:" >&5
3285cat conftest.$ac_ext >&5
3286( exit $ac_status )
3287ac_cv_header_stdc=no
3288fi
3289rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3290fi
3291fi
3292fi
3293echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3294echo "${ECHO_T}$ac_cv_header_stdc" >&6
3295if test $ac_cv_header_stdc = yes; then
3296
3297cat >>confdefs.h <<\_ACEOF
3298#define STDC_HEADERS 1
3299_ACEOF
3300
3301fi
3302
3303# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3314                  inttypes.h stdint.h unistd.h
3315do
3316as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3317echo "$as_me:$LINENO: checking for $ac_header" >&5
3318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3319if eval "test \"\${$as_ac_Header+set}\" = set"; then
3320  echo $ECHO_N "(cached) $ECHO_C" >&6
3321else
3322  cat >conftest.$ac_ext <<_ACEOF
3323#line $LINENO "configure"
3324#include "confdefs.h"
3325$ac_includes_default
3326
3327#include <$ac_header>
3328_ACEOF
3329rm -f conftest.$ac_objext
3330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3331  (eval $ac_compile) 2>&5
3332  ac_status=$?
3333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334  (exit $ac_status); } &&
3335         { ac_try='test -s conftest.$ac_objext'
3336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3337  (eval $ac_try) 2>&5
3338  ac_status=$?
3339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340  (exit $ac_status); }; }; then
3341  eval "$as_ac_Header=yes"
3342else
3343  echo "$as_me: failed program was:" >&5
3344cat conftest.$ac_ext >&5
3345eval "$as_ac_Header=no"
3346fi
3347rm -f conftest.$ac_objext conftest.$ac_ext
3348fi
3349echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3350echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3351if test `eval echo '${'$as_ac_Header'}'` = yes; then
3352  cat >>confdefs.h <<_ACEOF
3353#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3354_ACEOF
3355
3356fi
3357
3358done
3359
3360
3361if test "${ac_cv_header_minix_config_h+set}" = set; then
3362  echo "$as_me:$LINENO: checking for minix/config.h" >&5
3363echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3364if test "${ac_cv_header_minix_config_h+set}" = set; then
3365  echo $ECHO_N "(cached) $ECHO_C" >&6
3366fi
3367echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3368echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3369else
3370  # Is the header compilable?
3371echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3372echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3373cat >conftest.$ac_ext <<_ACEOF
3374#line $LINENO "configure"
3375#include "confdefs.h"
3376$ac_includes_default
3377#include <minix/config.h>
3378_ACEOF
3379rm -f conftest.$ac_objext
3380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3381  (eval $ac_compile) 2>&5
3382  ac_status=$?
3383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384  (exit $ac_status); } &&
3385         { ac_try='test -s conftest.$ac_objext'
3386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387  (eval $ac_try) 2>&5
3388  ac_status=$?
3389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390  (exit $ac_status); }; }; then
3391  ac_header_compiler=yes
3392else
3393  echo "$as_me: failed program was:" >&5
3394cat conftest.$ac_ext >&5
3395ac_header_compiler=no
3396fi
3397rm -f conftest.$ac_objext conftest.$ac_ext
3398echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3399echo "${ECHO_T}$ac_header_compiler" >&6
3400
3401# Is the header present?
3402echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3403echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3404cat >conftest.$ac_ext <<_ACEOF
3405#line $LINENO "configure"
3406#include "confdefs.h"
3407#include <minix/config.h>
3408_ACEOF
3409if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3410  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3411  ac_status=$?
3412  egrep -v '^ *\+' conftest.er1 >conftest.err
3413  rm -f conftest.er1
3414  cat conftest.err >&5
3415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416  (exit $ac_status); } >/dev/null; then
3417  if test -s conftest.err; then
3418    ac_cpp_err=$ac_c_preproc_warn_flag
3419  else
3420    ac_cpp_err=
3421  fi
3422else
3423  ac_cpp_err=yes
3424fi
3425if test -z "$ac_cpp_err"; then
3426  ac_header_preproc=yes
3427else
3428  echo "$as_me: failed program was:" >&5
3429  cat conftest.$ac_ext >&5
3430  ac_header_preproc=no
3431fi
3432rm -f conftest.err conftest.$ac_ext
3433echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3434echo "${ECHO_T}$ac_header_preproc" >&6
3435
3436# So?  What about this header?
3437case $ac_header_compiler:$ac_header_preproc in
3438  yes:no )
3439    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3440echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3441    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3442echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
3443  no:yes )
3444    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3445echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3446    { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3447echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3448    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3449echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
3450esac
3451echo "$as_me:$LINENO: checking for minix/config.h" >&5
3452echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3453if test "${ac_cv_header_minix_config_h+set}" = set; then
3454  echo $ECHO_N "(cached) $ECHO_C" >&6
3455else
3456  ac_cv_header_minix_config_h=$ac_header_preproc
3457fi
3458echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3459echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3460
3461fi
3462if test $ac_cv_header_minix_config_h = yes; then
3463  MINIX=yes
3464else
3465  MINIX=
3466fi
3467
3468
3469if test "$MINIX" = yes; then
3470
3471cat >>confdefs.h <<\_ACEOF
3472#define _POSIX_SOURCE 1
3473_ACEOF
3474
3475
3476cat >>confdefs.h <<\_ACEOF
3477#define _POSIX_1_SOURCE 2
3478_ACEOF
3479
3480
3481cat >>confdefs.h <<\_ACEOF
3482#define _MINIX 1
3483_ACEOF
3484
3485fi
3486
3487echo "$as_me:$LINENO: checking for library containing strerror" >&5
3488echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3489if test "${ac_cv_search_strerror+set}" = set; then
3490  echo $ECHO_N "(cached) $ECHO_C" >&6
3491else
3492  ac_func_search_save_LIBS=$LIBS
3493ac_cv_search_strerror=no
3494cat >conftest.$ac_ext <<_ACEOF
3495#line $LINENO "configure"
3496#include "confdefs.h"
3497
3498/* Override any gcc2 internal prototype to avoid an error.  */
3499#ifdef __cplusplus
3500extern "C"
3501#endif
3502/* We use char because int might match the return type of a gcc2
3503   builtin and then its argument prototype would still apply.  */
3504char strerror ();
3505#ifdef F77_DUMMY_MAIN
3506#  ifdef __cplusplus
3507     extern "C"
3508#  endif
3509   int F77_DUMMY_MAIN() { return 1; }
3510#endif
3511int
3512main ()
3513{
3514strerror ();
3515  ;
3516  return 0;
3517}
3518_ACEOF
3519rm -f conftest.$ac_objext conftest$ac_exeext
3520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3521  (eval $ac_link) 2>&5
3522  ac_status=$?
3523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524  (exit $ac_status); } &&
3525         { ac_try='test -s conftest$ac_exeext'
3526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527  (eval $ac_try) 2>&5
3528  ac_status=$?
3529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530  (exit $ac_status); }; }; then
3531  ac_cv_search_strerror="none required"
3532else
3533  echo "$as_me: failed program was:" >&5
3534cat conftest.$ac_ext >&5
3535fi
3536rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3537if test "$ac_cv_search_strerror" = no; then
3538  for ac_lib in cposix; do
3539    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3540    cat >conftest.$ac_ext <<_ACEOF
3541#line $LINENO "configure"
3542#include "confdefs.h"
3543
3544/* Override any gcc2 internal prototype to avoid an error.  */
3545#ifdef __cplusplus
3546extern "C"
3547#endif
3548/* We use char because int might match the return type of a gcc2
3549   builtin and then its argument prototype would still apply.  */
3550char strerror ();
3551#ifdef F77_DUMMY_MAIN
3552#  ifdef __cplusplus
3553     extern "C"
3554#  endif
3555   int F77_DUMMY_MAIN() { return 1; }
3556#endif
3557int
3558main ()
3559{
3560strerror ();
3561  ;
3562  return 0;
3563}
3564_ACEOF
3565rm -f conftest.$ac_objext conftest$ac_exeext
3566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3567  (eval $ac_link) 2>&5
3568  ac_status=$?
3569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570  (exit $ac_status); } &&
3571         { ac_try='test -s conftest$ac_exeext'
3572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573  (eval $ac_try) 2>&5
3574  ac_status=$?
3575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576  (exit $ac_status); }; }; then
3577  ac_cv_search_strerror="-l$ac_lib"
3578break
3579else
3580  echo "$as_me: failed program was:" >&5
3581cat conftest.$ac_ext >&5
3582fi
3583rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3584  done
3585fi
3586LIBS=$ac_func_search_save_LIBS
3587fi
3588echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3589echo "${ECHO_T}$ac_cv_search_strerror" >&6
3590if test "$ac_cv_search_strerror" != no; then
3591  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3592
3593fi
3594
3595if test -n "$ac_tool_prefix"; then
3596  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3597set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3598echo "$as_me:$LINENO: checking for $ac_word" >&5
3599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3600if test "${ac_cv_prog_RANLIB+set}" = set; then
3601  echo $ECHO_N "(cached) $ECHO_C" >&6
3602else
3603  if test -n "$RANLIB"; then
3604  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3605else
3606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607for as_dir in $PATH
3608do
3609  IFS=$as_save_IFS
3610  test -z "$as_dir" && as_dir=.
3611  for ac_exec_ext in '' $ac_executable_extensions; do
3612  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3613    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3614    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3615    break 2
3616  fi
3617done
3618done
3619
3620fi
3621fi
3622RANLIB=$ac_cv_prog_RANLIB
3623if test -n "$RANLIB"; then
3624  echo "$as_me:$LINENO: result: $RANLIB" >&5
3625echo "${ECHO_T}$RANLIB" >&6
3626else
3627  echo "$as_me:$LINENO: result: no" >&5
3628echo "${ECHO_T}no" >&6
3629fi
3630
3631fi
3632if test -z "$ac_cv_prog_RANLIB"; then
3633  ac_ct_RANLIB=$RANLIB
3634  # Extract the first word of "ranlib", so it can be a program name with args.
3635set dummy ranlib; ac_word=$2
3636echo "$as_me:$LINENO: checking for $ac_word" >&5
3637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3638if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3639  echo $ECHO_N "(cached) $ECHO_C" >&6
3640else
3641  if test -n "$ac_ct_RANLIB"; then
3642  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3643else
3644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645for as_dir in $PATH
3646do
3647  IFS=$as_save_IFS
3648  test -z "$as_dir" && as_dir=.
3649  for ac_exec_ext in '' $ac_executable_extensions; do
3650  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3651    ac_cv_prog_ac_ct_RANLIB="ranlib"
3652    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3653    break 2
3654  fi
3655done
3656done
3657
3658  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3659fi
3660fi
3661ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3662if test -n "$ac_ct_RANLIB"; then
3663  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3664echo "${ECHO_T}$ac_ct_RANLIB" >&6
3665else
3666  echo "$as_me:$LINENO: result: no" >&5
3667echo "${ECHO_T}no" >&6
3668fi
3669
3670  RANLIB=$ac_ct_RANLIB
3671else
3672  RANLIB="$ac_cv_prog_RANLIB"
3673fi
3674
3675# Extract the first word of "sh", so it can be a program name with args.
3676set dummy sh; ac_word=$2
3677echo "$as_me:$LINENO: checking for $ac_word" >&5
3678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3679if test "${ac_cv_path_PATH_SH+set}" = set; then
3680  echo $ECHO_N "(cached) $ECHO_C" >&6
3681else
3682  case $PATH_SH in
3683  [\\/]* | ?:[\\/]*)
3684  ac_cv_path_PATH_SH="$PATH_SH" # Let the user override the test with a path.
3685  ;;
3686  *)
3687  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688for as_dir in $PATH
3689do
3690  IFS=$as_save_IFS
3691  test -z "$as_dir" && as_dir=.
3692  for ac_exec_ext in '' $ac_executable_extensions; do
3693  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3694    ac_cv_path_PATH_SH="$as_dir/$ac_word$ac_exec_ext"
3695    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3696    break 2
3697  fi
3698done
3699done
3700
3701  ;;
3702esac
3703fi
3704PATH_SH=$ac_cv_path_PATH_SH
3705
3706if test -n "$PATH_SH"; then
3707  echo "$as_me:$LINENO: result: $PATH_SH" >&5
3708echo "${ECHO_T}$PATH_SH" >&6
3709else
3710  echo "$as_me:$LINENO: result: no" >&5
3711echo "${ECHO_T}no" >&6
3712fi
3713
3714# Extract the first word of "perl", so it can be a program name with args.
3715set dummy perl; ac_word=$2
3716echo "$as_me:$LINENO: checking for $ac_word" >&5
3717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3718if test "${ac_cv_path_PATH_PERL+set}" = set; then
3719  echo $ECHO_N "(cached) $ECHO_C" >&6
3720else
3721  case $PATH_PERL in
3722  [\\/]* | ?:[\\/]*)
3723  ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
3724  ;;
3725  *)
3726  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727for as_dir in $PATH
3728do
3729  IFS=$as_save_IFS
3730  test -z "$as_dir" && as_dir=.
3731  for ac_exec_ext in '' $ac_executable_extensions; do
3732  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3733    ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
3734    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3735    break 2
3736  fi
3737done
3738done
3739
3740  ;;
3741esac
3742fi
3743PATH_PERL=$ac_cv_path_PATH_PERL
3744
3745if test -n "$PATH_PERL"; then
3746  echo "$as_me:$LINENO: result: $PATH_PERL" >&5
3747echo "${ECHO_T}$PATH_PERL" >&6
3748else
3749  echo "$as_me:$LINENO: result: no" >&5
3750echo "${ECHO_T}no" >&6
3751fi
3752
3753
3754 cat >conftest.$ac_ext <<_ACEOF
3755#line $LINENO "configure"
3756#include "confdefs.h"
3757#define ACAT(a,b)a ## b
3758ACAT(Cir,cus)
3759
3760_ACEOF
3761if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3762  egrep "Circus" >/dev/null 2>&1; then
3763  cat >>confdefs.h <<\_ACEOF
3764#define ULONG_CONST(a) a ## UL
3765_ACEOF
3766
3767else
3768  cat >conftest.$ac_ext <<_ACEOF
3769#line $LINENO "configure"
3770#include "confdefs.h"
3771#define RCAT(a,b)a/**/b
3772RCAT(Rei,ser)
3773
3774_ACEOF
3775if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3776  egrep "Reiser" >/dev/null 2>&1; then
3777  cat >>confdefs.h <<\_ACEOF
3778#define ULONG_CONST(a) a/**/L
3779_ACEOF
3780
3781else
3782  { { echo "$as_me:$LINENO: error: How do we create an unsigned long constant?" >&5
3783echo "$as_me: error: How do we create an unsigned long constant?" >&2;}
3784   { (exit 1); exit 1; }; }
3785fi
3786rm -f conftest*
3787
3788fi
3789rm -f conftest*
3790
3791
3792case "$host" in
3793 *-*-vxworks*)
3794    ac_link="$ac_link $VX_KERNEL"
3795    ;;
3796esac
3797
3798# Find a good install program.  We prefer a C program (faster),
3799# so one script is as good as another.  But avoid the broken or
3800# incompatible versions:
3801# SysV /etc/install, /usr/sbin/install
3802# SunOS /usr/etc/install
3803# IRIX /sbin/install
3804# AIX /bin/install
3805# AmigaOS /C/install, which installs bootblocks on floppy discs
3806# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3807# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3808# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3809# ./install, which can be erroneously created by make from ./install.sh.
3810echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3811echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3812if test -z "$INSTALL"; then
3813if test "${ac_cv_path_install+set}" = set; then
3814  echo $ECHO_N "(cached) $ECHO_C" >&6
3815else
3816  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817for as_dir in $PATH
3818do
3819  IFS=$as_save_IFS
3820  test -z "$as_dir" && as_dir=.
3821  # Account for people who put trailing slashes in PATH elements.
3822case $as_dir/ in
3823  ./ | .// | /cC/* | \
3824  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3825  /usr/ucb/* ) ;;
3826  *)
3827    # OSF1 and SCO ODT 3.0 have their own names for install.
3828    # Don't use installbsd from OSF since it installs stuff as root
3829    # by default.
3830    for ac_prog in ginstall scoinst install; do
3831      for ac_exec_ext in '' $ac_executable_extensions; do
3832        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3833          if test $ac_prog = install &&
3834            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3835            # AIX install.  It has an incompatible calling convention.
3836            :
3837          elif test $ac_prog = install &&
3838            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3839            # program-specific install script used by HP pwplus--don't use.
3840            :
3841          else
3842            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3843            break 3
3844          fi
3845        fi
3846      done
3847    done
3848    ;;
3849esac
3850done
3851
3852
3853fi
3854  if test "${ac_cv_path_install+set}" = set; then
3855    INSTALL=$ac_cv_path_install
3856  else
3857    # As a last resort, use the slow shell script.  We don't cache a
3858    # path for INSTALL within a source directory, because that will
3859    # break other packages using the cache if that directory is
3860    # removed, or if the path is relative.
3861    INSTALL=$ac_install_sh
3862  fi
3863fi
3864echo "$as_me:$LINENO: result: $INSTALL" >&5
3865echo "${ECHO_T}$INSTALL" >&6
3866
3867# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3868# It thinks the first close brace ends the variable substitution.
3869test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3870
3871test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3872
3873test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3874
3875
3876case "$host" in
3877 *-pc-cygwin*)
3878
3879echo "$as_me:$LINENO: checking for main in -ladvapi32" >&5
3880echo $ECHO_N "checking for main in -ladvapi32... $ECHO_C" >&6
3881if test "${ac_cv_lib_advapi32_main+set}" = set; then
3882  echo $ECHO_N "(cached) $ECHO_C" >&6
3883else
3884  ac_check_lib_save_LIBS=$LIBS
3885LIBS="-ladvapi32  $LIBS"
3886cat >conftest.$ac_ext <<_ACEOF
3887#line $LINENO "configure"
3888#include "confdefs.h"
3889
3890
3891#ifdef F77_DUMMY_MAIN
3892#  ifdef __cplusplus
3893     extern "C"
3894#  endif
3895   int F77_DUMMY_MAIN() { return 1; }
3896#endif
3897int
3898main ()
3899{
3900main ();
3901  ;
3902  return 0;
3903}
3904_ACEOF
3905rm -f conftest.$ac_objext conftest$ac_exeext
3906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3907  (eval $ac_link) 2>&5
3908  ac_status=$?
3909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910  (exit $ac_status); } &&
3911         { ac_try='test -s conftest$ac_exeext'
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_cv_lib_advapi32_main=yes
3918else
3919  echo "$as_me: failed program was:" >&5
3920cat conftest.$ac_ext >&5
3921ac_cv_lib_advapi32_main=no
3922fi
3923rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3924LIBS=$ac_check_lib_save_LIBS
3925fi
3926echo "$as_me:$LINENO: result: $ac_cv_lib_advapi32_main" >&5
3927echo "${ECHO_T}$ac_cv_lib_advapi32_main" >&6
3928if test $ac_cv_lib_advapi32_main = yes; then
3929  cat >>confdefs.h <<_ACEOF
3930#define HAVE_LIBADVAPI32 1
3931_ACEOF
3932
3933  LIBS="-ladvapi32 $LIBS"
3934
3935fi
3936
3937    ;;
3938esac
3939
3940echo "$as_me:$LINENO: checking for nlist in -lelf" >&5
3941echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6
3942if test "${ac_cv_lib_elf_nlist+set}" = set; then
3943  echo $ECHO_N "(cached) $ECHO_C" >&6
3944else
3945  ac_check_lib_save_LIBS=$LIBS
3946LIBS="-lelf  $LIBS"
3947cat >conftest.$ac_ext <<_ACEOF
3948#line $LINENO "configure"
3949#include "confdefs.h"
3950
3951/* Override any gcc2 internal prototype to avoid an error.  */
3952#ifdef __cplusplus
3953extern "C"
3954#endif
3955/* We use char because int might match the return type of a gcc2
3956   builtin and then its argument prototype would still apply.  */
3957char nlist ();
3958#ifdef F77_DUMMY_MAIN
3959#  ifdef __cplusplus
3960     extern "C"
3961#  endif
3962   int F77_DUMMY_MAIN() { return 1; }
3963#endif
3964int
3965main ()
3966{
3967nlist ();
3968  ;
3969  return 0;
3970}
3971_ACEOF
3972rm -f conftest.$ac_objext conftest$ac_exeext
3973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3974  (eval $ac_link) 2>&5
3975  ac_status=$?
3976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977  (exit $ac_status); } &&
3978         { ac_try='test -s conftest$ac_exeext'
3979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980  (eval $ac_try) 2>&5
3981  ac_status=$?
3982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983  (exit $ac_status); }; }; then
3984  ac_cv_lib_elf_nlist=yes
3985else
3986  echo "$as_me: failed program was:" >&5
3987cat conftest.$ac_ext >&5
3988ac_cv_lib_elf_nlist=no
3989fi
3990rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3991LIBS=$ac_check_lib_save_LIBS
3992fi
3993echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5
3994echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6
3995if test $ac_cv_lib_elf_nlist = yes; then
3996  cat >>confdefs.h <<_ACEOF
3997#define HAVE_LIBELF 1
3998_ACEOF
3999
4000  LIBS="-lelf $LIBS"
4001
4002fi
4003
4004echo "$as_me:$LINENO: checking for main in -lkvm" >&5
4005echo $ECHO_N "checking for main in -lkvm... $ECHO_C" >&6
4006if test "${ac_cv_lib_kvm_main+set}" = set; then
4007  echo $ECHO_N "(cached) $ECHO_C" >&6
4008else
4009  ac_check_lib_save_LIBS=$LIBS
4010LIBS="-lkvm  $LIBS"
4011cat >conftest.$ac_ext <<_ACEOF
4012#line $LINENO "configure"
4013#include "confdefs.h"
4014
4015
4016#ifdef F77_DUMMY_MAIN
4017#  ifdef __cplusplus
4018     extern "C"
4019#  endif
4020   int F77_DUMMY_MAIN() { return 1; }
4021#endif
4022int
4023main ()
4024{
4025main ();
4026  ;
4027  return 0;
4028}
4029_ACEOF
4030rm -f conftest.$ac_objext conftest$ac_exeext
4031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4032  (eval $ac_link) 2>&5
4033  ac_status=$?
4034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035  (exit $ac_status); } &&
4036         { ac_try='test -s conftest$ac_exeext'
4037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038  (eval $ac_try) 2>&5
4039  ac_status=$?
4040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041  (exit $ac_status); }; }; then
4042  ac_cv_lib_kvm_main=yes
4043else
4044  echo "$as_me: failed program was:" >&5
4045cat conftest.$ac_ext >&5
4046ac_cv_lib_kvm_main=no
4047fi
4048rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4049LIBS=$ac_check_lib_save_LIBS
4050fi
4051echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_main" >&5
4052echo "${ECHO_T}$ac_cv_lib_kvm_main" >&6
4053if test $ac_cv_lib_kvm_main = yes; then
4054  cat >>confdefs.h <<_ACEOF
4055#define HAVE_LIBKVM 1
4056_ACEOF
4057
4058  LIBS="-lkvm $LIBS"
4059
4060fi
4061
4062echo "$as_me:$LINENO: checking for nlist in -lld" >&5
4063echo $ECHO_N "checking for nlist in -lld... $ECHO_C" >&6
4064if test "${ac_cv_lib_ld_nlist+set}" = set; then
4065  echo $ECHO_N "(cached) $ECHO_C" >&6
4066else
4067  ac_check_lib_save_LIBS=$LIBS
4068LIBS="-lld  $LIBS"
4069cat >conftest.$ac_ext <<_ACEOF
4070#line $LINENO "configure"
4071#include "confdefs.h"
4072
4073/* Override any gcc2 internal prototype to avoid an error.  */
4074#ifdef __cplusplus
4075extern "C"
4076#endif
4077/* We use char because int might match the return type of a gcc2
4078   builtin and then its argument prototype would still apply.  */
4079char nlist ();
4080#ifdef F77_DUMMY_MAIN
4081#  ifdef __cplusplus
4082     extern "C"
4083#  endif
4084   int F77_DUMMY_MAIN() { return 1; }
4085#endif
4086int
4087main ()
4088{
4089nlist ();
4090  ;
4091  return 0;
4092}
4093_ACEOF
4094rm -f conftest.$ac_objext conftest$ac_exeext
4095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4096  (eval $ac_link) 2>&5
4097  ac_status=$?
4098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099  (exit $ac_status); } &&
4100         { ac_try='test -s conftest$ac_exeext'
4101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102  (eval $ac_try) 2>&5
4103  ac_status=$?
4104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105  (exit $ac_status); }; }; then
4106  ac_cv_lib_ld_nlist=yes
4107else
4108  echo "$as_me: failed program was:" >&5
4109cat conftest.$ac_ext >&5
4110ac_cv_lib_ld_nlist=no
4111fi
4112rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4113LIBS=$ac_check_lib_save_LIBS
4114fi
4115echo "$as_me:$LINENO: result: $ac_cv_lib_ld_nlist" >&5
4116echo "${ECHO_T}$ac_cv_lib_ld_nlist" >&6
4117if test $ac_cv_lib_ld_nlist = yes; then
4118  cat >>confdefs.h <<_ACEOF
4119#define HAVE_LIBLD 1
4120_ACEOF
4121
4122  LIBS="-lld $LIBS"
4123
4124fi
4125
4126
4127echo "$as_me:$LINENO: checking for nlist in -lmld" >&5
4128echo $ECHO_N "checking for nlist in -lmld... $ECHO_C" >&6
4129if test "${ac_cv_lib_mld_nlist+set}" = set; then
4130  echo $ECHO_N "(cached) $ECHO_C" >&6
4131else
4132  ac_check_lib_save_LIBS=$LIBS
4133LIBS="-lmld  $LIBS"
4134cat >conftest.$ac_ext <<_ACEOF
4135#line $LINENO "configure"
4136#include "confdefs.h"
4137
4138/* Override any gcc2 internal prototype to avoid an error.  */
4139#ifdef __cplusplus
4140extern "C"
4141#endif
4142/* We use char because int might match the return type of a gcc2
4143   builtin and then its argument prototype would still apply.  */
4144char nlist ();
4145#ifdef F77_DUMMY_MAIN
4146#  ifdef __cplusplus
4147     extern "C"
4148#  endif
4149   int F77_DUMMY_MAIN() { return 1; }
4150#endif
4151int
4152main ()
4153{
4154nlist ();
4155  ;
4156  return 0;
4157}
4158_ACEOF
4159rm -f conftest.$ac_objext conftest$ac_exeext
4160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4161  (eval $ac_link) 2>&5
4162  ac_status=$?
4163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164  (exit $ac_status); } &&
4165         { ac_try='test -s conftest$ac_exeext'
4166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167  (eval $ac_try) 2>&5
4168  ac_status=$?
4169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170  (exit $ac_status); }; }; then
4171  ac_cv_lib_mld_nlist=yes
4172else
4173  echo "$as_me: failed program was:" >&5
4174cat conftest.$ac_ext >&5
4175ac_cv_lib_mld_nlist=no
4176fi
4177rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4178LIBS=$ac_check_lib_save_LIBS
4179fi
4180echo "$as_me:$LINENO: result: $ac_cv_lib_mld_nlist" >&5
4181echo "${ECHO_T}$ac_cv_lib_mld_nlist" >&6
4182if test $ac_cv_lib_mld_nlist = yes; then
4183  cat >>confdefs.h <<_ACEOF
4184#define HAVE_LIBMLD 1
4185_ACEOF
4186
4187  LIBS="-lmld $LIBS"
4188
4189fi
4190
4191echo "$as_me:$LINENO: checking for gethostent" >&5
4192echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
4193if test "${ac_cv_func_gethostent+set}" = set; then
4194  echo $ECHO_N "(cached) $ECHO_C" >&6
4195else
4196  cat >conftest.$ac_ext <<_ACEOF
4197#line $LINENO "configure"
4198#include "confdefs.h"
4199/* System header to define __stub macros and hopefully few prototypes,
4200    which can conflict with char gethostent (); below.  */
4201#include <assert.h>
4202/* Override any gcc2 internal prototype to avoid an error.  */
4203#ifdef __cplusplus
4204extern "C"
4205#endif
4206/* We use char because int might match the return type of a gcc2
4207   builtin and then its argument prototype would still apply.  */
4208char gethostent ();
4209char (*f) ();
4210
4211#ifdef F77_DUMMY_MAIN
4212#  ifdef __cplusplus
4213     extern "C"
4214#  endif
4215   int F77_DUMMY_MAIN() { return 1; }
4216#endif
4217int
4218main ()
4219{
4220/* The GNU C library defines this for functions which it implements
4221    to always fail with ENOSYS.  Some functions are actually named
4222    something starting with __ and the normal name is an alias.  */
4223#if defined (__stub_gethostent) || defined (__stub___gethostent)
4224choke me
4225#else
4226f = gethostent;
4227#endif
4228
4229  ;
4230  return 0;
4231}
4232_ACEOF
4233rm -f conftest.$ac_objext conftest$ac_exeext
4234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4235  (eval $ac_link) 2>&5
4236  ac_status=$?
4237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238  (exit $ac_status); } &&
4239         { ac_try='test -s conftest$ac_exeext'
4240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241  (eval $ac_try) 2>&5
4242  ac_status=$?
4243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244  (exit $ac_status); }; }; then
4245  ac_cv_func_gethostent=yes
4246else
4247  echo "$as_me: failed program was:" >&5
4248cat conftest.$ac_ext >&5
4249ac_cv_func_gethostent=no
4250fi
4251rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4252fi
4253echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
4254echo "${ECHO_T}$ac_cv_func_gethostent" >&6
4255if test $ac_cv_func_gethostent = yes; then
4256  :
4257else
4258
4259echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
4260echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
4261if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
4262  echo $ECHO_N "(cached) $ECHO_C" >&6
4263else
4264  ac_check_lib_save_LIBS=$LIBS
4265LIBS="-lnsl -lsocket $LIBS"
4266cat >conftest.$ac_ext <<_ACEOF
4267#line $LINENO "configure"
4268#include "confdefs.h"
4269
4270/* Override any gcc2 internal prototype to avoid an error.  */
4271#ifdef __cplusplus
4272extern "C"
4273#endif
4274/* We use char because int might match the return type of a gcc2
4275   builtin and then its argument prototype would still apply.  */
4276char gethostent ();
4277#ifdef F77_DUMMY_MAIN
4278#  ifdef __cplusplus
4279     extern "C"
4280#  endif
4281   int F77_DUMMY_MAIN() { return 1; }
4282#endif
4283int
4284main ()
4285{
4286gethostent ();
4287  ;
4288  return 0;
4289}
4290_ACEOF
4291rm -f conftest.$ac_objext conftest$ac_exeext
4292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4293  (eval $ac_link) 2>&5
4294  ac_status=$?
4295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296  (exit $ac_status); } &&
4297         { ac_try='test -s conftest$ac_exeext'
4298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299  (eval $ac_try) 2>&5
4300  ac_status=$?
4301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302  (exit $ac_status); }; }; then
4303  ac_cv_lib_nsl_gethostent=yes
4304else
4305  echo "$as_me: failed program was:" >&5
4306cat conftest.$ac_ext >&5
4307ac_cv_lib_nsl_gethostent=no
4308fi
4309rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4310LIBS=$ac_check_lib_save_LIBS
4311fi
4312echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
4313echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
4314if test $ac_cv_lib_nsl_gethostent = yes; then
4315  cat >>confdefs.h <<_ACEOF
4316#define HAVE_LIBNSL 1
4317_ACEOF
4318
4319  LIBS="-lnsl $LIBS"
4320
4321fi
4322
4323fi
4324
4325echo "$as_me:$LINENO: checking for openlog" >&5
4326echo $ECHO_N "checking for openlog... $ECHO_C" >&6
4327if test "${ac_cv_func_openlog+set}" = set; then
4328  echo $ECHO_N "(cached) $ECHO_C" >&6
4329else
4330  cat >conftest.$ac_ext <<_ACEOF
4331#line $LINENO "configure"
4332#include "confdefs.h"
4333/* System header to define __stub macros and hopefully few prototypes,
4334    which can conflict with char openlog (); below.  */
4335#include <assert.h>
4336/* Override any gcc2 internal prototype to avoid an error.  */
4337#ifdef __cplusplus
4338extern "C"
4339#endif
4340/* We use char because int might match the return type of a gcc2
4341   builtin and then its argument prototype would still apply.  */
4342char openlog ();
4343char (*f) ();
4344
4345#ifdef F77_DUMMY_MAIN
4346#  ifdef __cplusplus
4347     extern "C"
4348#  endif
4349   int F77_DUMMY_MAIN() { return 1; }
4350#endif
4351int
4352main ()
4353{
4354/* The GNU C library defines this for functions which it implements
4355    to always fail with ENOSYS.  Some functions are actually named
4356    something starting with __ and the normal name is an alias.  */
4357#if defined (__stub_openlog) || defined (__stub___openlog)
4358choke me
4359#else
4360f = openlog;
4361#endif
4362
4363  ;
4364  return 0;
4365}
4366_ACEOF
4367rm -f conftest.$ac_objext conftest$ac_exeext
4368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4369  (eval $ac_link) 2>&5
4370  ac_status=$?
4371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372  (exit $ac_status); } &&
4373         { ac_try='test -s conftest$ac_exeext'
4374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375  (eval $ac_try) 2>&5
4376  ac_status=$?
4377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378  (exit $ac_status); }; }; then
4379  ac_cv_func_openlog=yes
4380else
4381  echo "$as_me: failed program was:" >&5
4382cat conftest.$ac_ext >&5
4383ac_cv_func_openlog=no
4384fi
4385rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4386fi
4387echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
4388echo "${ECHO_T}$ac_cv_func_openlog" >&6
4389if test $ac_cv_func_openlog = yes; then
4390  :
4391else
4392
4393echo "$as_me:$LINENO: checking for openlog in -lgen" >&5
4394echo $ECHO_N "checking for openlog in -lgen... $ECHO_C" >&6
4395if test "${ac_cv_lib_gen_openlog+set}" = set; then
4396  echo $ECHO_N "(cached) $ECHO_C" >&6
4397else
4398  ac_check_lib_save_LIBS=$LIBS
4399LIBS="-lgen  $LIBS"
4400cat >conftest.$ac_ext <<_ACEOF
4401#line $LINENO "configure"
4402#include "confdefs.h"
4403
4404/* Override any gcc2 internal prototype to avoid an error.  */
4405#ifdef __cplusplus
4406extern "C"
4407#endif
4408/* We use char because int might match the return type of a gcc2
4409   builtin and then its argument prototype would still apply.  */
4410char openlog ();
4411#ifdef F77_DUMMY_MAIN
4412#  ifdef __cplusplus
4413     extern "C"
4414#  endif
4415   int F77_DUMMY_MAIN() { return 1; }
4416#endif
4417int
4418main ()
4419{
4420openlog ();
4421  ;
4422  return 0;
4423}
4424_ACEOF
4425rm -f conftest.$ac_objext conftest$ac_exeext
4426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4427  (eval $ac_link) 2>&5
4428  ac_status=$?
4429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430  (exit $ac_status); } &&
4431         { ac_try='test -s conftest$ac_exeext'
4432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433  (eval $ac_try) 2>&5
4434  ac_status=$?
4435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436  (exit $ac_status); }; }; then
4437  ac_cv_lib_gen_openlog=yes
4438else
4439  echo "$as_me: failed program was:" >&5
4440cat conftest.$ac_ext >&5
4441ac_cv_lib_gen_openlog=no
4442fi
4443rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4444LIBS=$ac_check_lib_save_LIBS
4445fi
4446echo "$as_me:$LINENO: result: $ac_cv_lib_gen_openlog" >&5
4447echo "${ECHO_T}$ac_cv_lib_gen_openlog" >&6
4448if test $ac_cv_lib_gen_openlog = yes; then
4449  cat >>confdefs.h <<_ACEOF
4450#define HAVE_LIBGEN 1
4451_ACEOF
4452
4453  LIBS="-lgen $LIBS"
4454
4455else
4456
4457echo "$as_me:$LINENO: checking for openlog in -lsyslog" >&5
4458echo $ECHO_N "checking for openlog in -lsyslog... $ECHO_C" >&6
4459if test "${ac_cv_lib_syslog_openlog+set}" = set; then
4460  echo $ECHO_N "(cached) $ECHO_C" >&6
4461else
4462  ac_check_lib_save_LIBS=$LIBS
4463LIBS="-lsyslog -lsocket $LIBS"
4464cat >conftest.$ac_ext <<_ACEOF
4465#line $LINENO "configure"
4466#include "confdefs.h"
4467
4468/* Override any gcc2 internal prototype to avoid an error.  */
4469#ifdef __cplusplus
4470extern "C"
4471#endif
4472/* We use char because int might match the return type of a gcc2
4473   builtin and then its argument prototype would still apply.  */
4474char openlog ();
4475#ifdef F77_DUMMY_MAIN
4476#  ifdef __cplusplus
4477     extern "C"
4478#  endif
4479   int F77_DUMMY_MAIN() { return 1; }
4480#endif
4481int
4482main ()
4483{
4484openlog ();
4485  ;
4486  return 0;
4487}
4488_ACEOF
4489rm -f conftest.$ac_objext conftest$ac_exeext
4490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4491  (eval $ac_link) 2>&5
4492  ac_status=$?
4493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494  (exit $ac_status); } &&
4495         { ac_try='test -s conftest$ac_exeext'
4496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497  (eval $ac_try) 2>&5
4498  ac_status=$?
4499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500  (exit $ac_status); }; }; then
4501  ac_cv_lib_syslog_openlog=yes
4502else
4503  echo "$as_me: failed program was:" >&5
4504cat conftest.$ac_ext >&5
4505ac_cv_lib_syslog_openlog=no
4506fi
4507rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4508LIBS=$ac_check_lib_save_LIBS
4509fi
4510echo "$as_me:$LINENO: result: $ac_cv_lib_syslog_openlog" >&5
4511echo "${ECHO_T}$ac_cv_lib_syslog_openlog" >&6
4512if test $ac_cv_lib_syslog_openlog = yes; then
4513  cat >>confdefs.h <<_ACEOF
4514#define HAVE_LIBSYSLOG 1
4515_ACEOF
4516
4517  LIBS="-lsyslog $LIBS"
4518
4519fi
4520
4521fi
4522
4523fi
4524
4525
4526
4527for ac_header in readline/history.h readline/readline.h
4528do
4529as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4530if eval "test \"\${$as_ac_Header+set}\" = set"; then
4531  echo "$as_me:$LINENO: checking for $ac_header" >&5
4532echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4533if eval "test \"\${$as_ac_Header+set}\" = set"; then
4534  echo $ECHO_N "(cached) $ECHO_C" >&6
4535fi
4536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4537echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4538else
4539  # Is the header compilable?
4540echo "$as_me:$LINENO: checking $ac_header usability" >&5
4541echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4542cat >conftest.$ac_ext <<_ACEOF
4543#line $LINENO "configure"
4544#include "confdefs.h"
4545$ac_includes_default
4546#include <$ac_header>
4547_ACEOF
4548rm -f conftest.$ac_objext
4549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4550  (eval $ac_compile) 2>&5
4551  ac_status=$?
4552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553  (exit $ac_status); } &&
4554         { ac_try='test -s conftest.$ac_objext'
4555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556  (eval $ac_try) 2>&5
4557  ac_status=$?
4558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559  (exit $ac_status); }; }; then
4560  ac_header_compiler=yes
4561else
4562  echo "$as_me: failed program was:" >&5
4563cat conftest.$ac_ext >&5
4564ac_header_compiler=no
4565fi
4566rm -f conftest.$ac_objext conftest.$ac_ext
4567echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4568echo "${ECHO_T}$ac_header_compiler" >&6
4569
4570# Is the header present?
4571echo "$as_me:$LINENO: checking $ac_header presence" >&5
4572echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4573cat >conftest.$ac_ext <<_ACEOF
4574#line $LINENO "configure"
4575#include "confdefs.h"
4576#include <$ac_header>
4577_ACEOF
4578if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4579  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4580  ac_status=$?
4581  egrep -v '^ *\+' conftest.er1 >conftest.err
4582  rm -f conftest.er1
4583  cat conftest.err >&5
4584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585  (exit $ac_status); } >/dev/null; then
4586  if test -s conftest.err; then
4587    ac_cpp_err=$ac_c_preproc_warn_flag
4588  else
4589    ac_cpp_err=
4590  fi
4591else
4592  ac_cpp_err=yes
4593fi
4594if test -z "$ac_cpp_err"; then
4595  ac_header_preproc=yes
4596else
4597  echo "$as_me: failed program was:" >&5
4598  cat conftest.$ac_ext >&5
4599  ac_header_preproc=no
4600fi
4601rm -f conftest.err conftest.$ac_ext
4602echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4603echo "${ECHO_T}$ac_header_preproc" >&6
4604
4605# So?  What about this header?
4606case $ac_header_compiler:$ac_header_preproc in
4607  yes:no )
4608    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4609echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4610    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4611echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4612  no:yes )
4613    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4614echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4615    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4616echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4617    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4618echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4619esac
4620echo "$as_me:$LINENO: checking for $ac_header" >&5
4621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4622if eval "test \"\${$as_ac_Header+set}\" = set"; then
4623  echo $ECHO_N "(cached) $ECHO_C" >&6
4624else
4625  eval "$as_ac_Header=$ac_header_preproc"
4626fi
4627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4628echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4629
4630fi
4631if test `eval echo '${'$as_ac_Header'}'` = yes; then
4632  cat >>confdefs.h <<_ACEOF
4633#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4634_ACEOF
4635
4636fi
4637
4638done
4639
4640case "$ac_cv_header_readline_history_h$ac_cv_header_readline_readline_h" in
4641 *no*) ;;
4642 *)
4643echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
4644echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
4645if test "${ac_cv_lib_readline_readline+set}" = set; then
4646  echo $ECHO_N "(cached) $ECHO_C" >&6
4647else
4648  ac_check_lib_save_LIBS=$LIBS
4649LIBS="-lreadline  $LIBS"
4650cat >conftest.$ac_ext <<_ACEOF
4651#line $LINENO "configure"
4652#include "confdefs.h"
4653
4654/* Override any gcc2 internal prototype to avoid an error.  */
4655#ifdef __cplusplus
4656extern "C"
4657#endif
4658/* We use char because int might match the return type of a gcc2
4659   builtin and then its argument prototype would still apply.  */
4660char readline ();
4661#ifdef F77_DUMMY_MAIN
4662#  ifdef __cplusplus
4663     extern "C"
4664#  endif
4665   int F77_DUMMY_MAIN() { return 1; }
4666#endif
4667int
4668main ()
4669{
4670readline ();
4671  ;
4672  return 0;
4673}
4674_ACEOF
4675rm -f conftest.$ac_objext conftest$ac_exeext
4676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4677  (eval $ac_link) 2>&5
4678  ac_status=$?
4679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680  (exit $ac_status); } &&
4681         { ac_try='test -s conftest$ac_exeext'
4682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683  (eval $ac_try) 2>&5
4684  ac_status=$?
4685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686  (exit $ac_status); }; }; then
4687  ac_cv_lib_readline_readline=yes
4688else
4689  echo "$as_me: failed program was:" >&5
4690cat conftest.$ac_ext >&5
4691ac_cv_lib_readline_readline=no
4692fi
4693rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4694LIBS=$ac_check_lib_save_LIBS
4695fi
4696echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
4697echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
4698if test $ac_cv_lib_readline_readline = yes; then
4699  cat >>confdefs.h <<_ACEOF
4700#define HAVE_LIBREADLINE 1
4701_ACEOF
4702
4703  LIBS="-lreadline $LIBS"
4704
4705else
4706  { echo "$as_me:$LINENO: Trying again with -lcurses" >&5
4707echo "$as_me: Trying again with -lcurses" >&6;}
4708     unset ac_cv_lib_readline_readline
4709     echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
4710echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
4711if test "${ac_cv_lib_readline_readline+set}" = set; then
4712  echo $ECHO_N "(cached) $ECHO_C" >&6
4713else
4714  ac_check_lib_save_LIBS=$LIBS
4715LIBS="-lreadline -lcurses $LIBS"
4716cat >conftest.$ac_ext <<_ACEOF
4717#line $LINENO "configure"
4718#include "confdefs.h"
4719
4720/* Override any gcc2 internal prototype to avoid an error.  */
4721#ifdef __cplusplus
4722extern "C"
4723#endif
4724/* We use char because int might match the return type of a gcc2
4725   builtin and then its argument prototype would still apply.  */
4726char readline ();
4727#ifdef F77_DUMMY_MAIN
4728#  ifdef __cplusplus
4729     extern "C"
4730#  endif
4731   int F77_DUMMY_MAIN() { return 1; }
4732#endif
4733int
4734main ()
4735{
4736readline ();
4737  ;
4738  return 0;
4739}
4740_ACEOF
4741rm -f conftest.$ac_objext conftest$ac_exeext
4742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4743  (eval $ac_link) 2>&5
4744  ac_status=$?
4745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746  (exit $ac_status); } &&
4747         { ac_try='test -s conftest$ac_exeext'
4748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749  (eval $ac_try) 2>&5
4750  ac_status=$?
4751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752  (exit $ac_status); }; }; then
4753  ac_cv_lib_readline_readline=yes
4754else
4755  echo "$as_me: failed program was:" >&5
4756cat conftest.$ac_ext >&5
4757ac_cv_lib_readline_readline=no
4758fi
4759rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4760LIBS=$ac_check_lib_save_LIBS
4761fi
4762echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
4763echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
4764if test $ac_cv_lib_readline_readline = yes; then
4765  LIBS="-lreadline -lcurses $LIBS"
4766      cat >>confdefs.h <<\_ACEOF
4767#define HAVE_LIBREADLINE 1
4768_ACEOF
4769
4770
4771cat >>confdefs.h <<\_ACEOF
4772#define HAVE_LIBCURSES
4773_ACEOF
4774
4775
4776fi
4777
4778fi
4779
4780    ;;
4781esac
4782
4783
4784case "$host" in
4785 *-*-linux*) ;;
4786 *)
4787
4788echo "$as_me:$LINENO: checking for sched_setscheduler in -lrt" >&5
4789echo $ECHO_N "checking for sched_setscheduler in -lrt... $ECHO_C" >&6
4790if test "${ac_cv_lib_rt_sched_setscheduler+set}" = set; then
4791  echo $ECHO_N "(cached) $ECHO_C" >&6
4792else
4793  ac_check_lib_save_LIBS=$LIBS
4794LIBS="-lrt  $LIBS"
4795cat >conftest.$ac_ext <<_ACEOF
4796#line $LINENO "configure"
4797#include "confdefs.h"
4798
4799/* Override any gcc2 internal prototype to avoid an error.  */
4800#ifdef __cplusplus
4801extern "C"
4802#endif
4803/* We use char because int might match the return type of a gcc2
4804   builtin and then its argument prototype would still apply.  */
4805char sched_setscheduler ();
4806#ifdef F77_DUMMY_MAIN
4807#  ifdef __cplusplus
4808     extern "C"
4809#  endif
4810   int F77_DUMMY_MAIN() { return 1; }
4811#endif
4812int
4813main ()
4814{
4815sched_setscheduler ();
4816  ;
4817  return 0;
4818}
4819_ACEOF
4820rm -f conftest.$ac_objext conftest$ac_exeext
4821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4822  (eval $ac_link) 2>&5
4823  ac_status=$?
4824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825  (exit $ac_status); } &&
4826         { ac_try='test -s conftest$ac_exeext'
4827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828  (eval $ac_try) 2>&5
4829  ac_status=$?
4830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831  (exit $ac_status); }; }; then
4832  ac_cv_lib_rt_sched_setscheduler=yes
4833else
4834  echo "$as_me: failed program was:" >&5
4835cat conftest.$ac_ext >&5
4836ac_cv_lib_rt_sched_setscheduler=no
4837fi
4838rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4839LIBS=$ac_check_lib_save_LIBS
4840fi
4841echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_setscheduler" >&5
4842echo "${ECHO_T}$ac_cv_lib_rt_sched_setscheduler" >&6
4843if test $ac_cv_lib_rt_sched_setscheduler = yes; then
4844  cat >>confdefs.h <<_ACEOF
4845#define HAVE_LIBRT 1
4846_ACEOF
4847
4848  LIBS="-lrt $LIBS"
4849
4850else
4851
4852echo "$as_me:$LINENO: checking for sched_setscheduler in -lposix4" >&5
4853echo $ECHO_N "checking for sched_setscheduler in -lposix4... $ECHO_C" >&6
4854if test "${ac_cv_lib_posix4_sched_setscheduler+set}" = set; then
4855  echo $ECHO_N "(cached) $ECHO_C" >&6
4856else
4857  ac_check_lib_save_LIBS=$LIBS
4858LIBS="-lposix4  $LIBS"
4859cat >conftest.$ac_ext <<_ACEOF
4860#line $LINENO "configure"
4861#include "confdefs.h"
4862
4863/* Override any gcc2 internal prototype to avoid an error.  */
4864#ifdef __cplusplus
4865extern "C"
4866#endif
4867/* We use char because int might match the return type of a gcc2
4868   builtin and then its argument prototype would still apply.  */
4869char sched_setscheduler ();
4870#ifdef F77_DUMMY_MAIN
4871#  ifdef __cplusplus
4872     extern "C"
4873#  endif
4874   int F77_DUMMY_MAIN() { return 1; }
4875#endif
4876int
4877main ()
4878{
4879sched_setscheduler ();
4880  ;
4881  return 0;
4882}
4883_ACEOF
4884rm -f conftest.$ac_objext conftest$ac_exeext
4885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4886  (eval $ac_link) 2>&5
4887  ac_status=$?
4888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889  (exit $ac_status); } &&
4890         { ac_try='test -s conftest$ac_exeext'
4891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892  (eval $ac_try) 2>&5
4893  ac_status=$?
4894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895  (exit $ac_status); }; }; then
4896  ac_cv_lib_posix4_sched_setscheduler=yes
4897else
4898  echo "$as_me: failed program was:" >&5
4899cat conftest.$ac_ext >&5
4900ac_cv_lib_posix4_sched_setscheduler=no
4901fi
4902rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4903LIBS=$ac_check_lib_save_LIBS
4904fi
4905echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_setscheduler" >&5
4906echo "${ECHO_T}$ac_cv_lib_posix4_sched_setscheduler" >&6
4907if test $ac_cv_lib_posix4_sched_setscheduler = yes; then
4908  cat >>confdefs.h <<_ACEOF
4909#define HAVE_LIBPOSIX4 1
4910_ACEOF
4911
4912  LIBS="-lposix4 $LIBS"
4913
4914fi
4915
4916fi
4917
4918    ;;
4919esac
4920
4921echo "$as_me:$LINENO: checking for setsockopt" >&5
4922echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
4923if test "${ac_cv_func_setsockopt+set}" = set; then
4924  echo $ECHO_N "(cached) $ECHO_C" >&6
4925else
4926  cat >conftest.$ac_ext <<_ACEOF
4927#line $LINENO "configure"
4928#include "confdefs.h"
4929/* System header to define __stub macros and hopefully few prototypes,
4930    which can conflict with char setsockopt (); below.  */
4931#include <assert.h>
4932/* Override any gcc2 internal prototype to avoid an error.  */
4933#ifdef __cplusplus
4934extern "C"
4935#endif
4936/* We use char because int might match the return type of a gcc2
4937   builtin and then its argument prototype would still apply.  */
4938char setsockopt ();
4939char (*f) ();
4940
4941#ifdef F77_DUMMY_MAIN
4942#  ifdef __cplusplus
4943     extern "C"
4944#  endif
4945   int F77_DUMMY_MAIN() { return 1; }
4946#endif
4947int
4948main ()
4949{
4950/* The GNU C library defines this for functions which it implements
4951    to always fail with ENOSYS.  Some functions are actually named
4952    something starting with __ and the normal name is an alias.  */
4953#if defined (__stub_setsockopt) || defined (__stub___setsockopt)
4954choke me
4955#else
4956f = setsockopt;
4957#endif
4958
4959  ;
4960  return 0;
4961}
4962_ACEOF
4963rm -f conftest.$ac_objext conftest$ac_exeext
4964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4965  (eval $ac_link) 2>&5
4966  ac_status=$?
4967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968  (exit $ac_status); } &&
4969         { ac_try='test -s conftest$ac_exeext'
4970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971  (eval $ac_try) 2>&5
4972  ac_status=$?
4973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974  (exit $ac_status); }; }; then
4975  ac_cv_func_setsockopt=yes
4976else
4977  echo "$as_me: failed program was:" >&5
4978cat conftest.$ac_ext >&5
4979ac_cv_func_setsockopt=no
4980fi
4981rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4982fi
4983echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
4984echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
4985if test $ac_cv_func_setsockopt = yes; then
4986  :
4987else
4988
4989echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
4990echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
4991if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
4992  echo $ECHO_N "(cached) $ECHO_C" >&6
4993else
4994  ac_check_lib_save_LIBS=$LIBS
4995LIBS="-lsocket  $LIBS"
4996cat >conftest.$ac_ext <<_ACEOF
4997#line $LINENO "configure"
4998#include "confdefs.h"
4999
5000/* Override any gcc2 internal prototype to avoid an error.  */
5001#ifdef __cplusplus
5002extern "C"
5003#endif
5004/* We use char because int might match the return type of a gcc2
5005   builtin and then its argument prototype would still apply.  */
5006char setsockopt ();
5007#ifdef F77_DUMMY_MAIN
5008#  ifdef __cplusplus
5009     extern "C"
5010#  endif
5011   int F77_DUMMY_MAIN() { return 1; }
5012#endif
5013int
5014main ()
5015{
5016setsockopt ();
5017  ;
5018  return 0;
5019}
5020_ACEOF
5021rm -f conftest.$ac_objext conftest$ac_exeext
5022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5023  (eval $ac_link) 2>&5
5024  ac_status=$?
5025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026  (exit $ac_status); } &&
5027         { ac_try='test -s conftest$ac_exeext'
5028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029  (eval $ac_try) 2>&5
5030  ac_status=$?
5031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032  (exit $ac_status); }; }; then
5033  ac_cv_lib_socket_setsockopt=yes
5034else
5035  echo "$as_me: failed program was:" >&5
5036cat conftest.$ac_ext >&5
5037ac_cv_lib_socket_setsockopt=no
5038fi
5039rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5040LIBS=$ac_check_lib_save_LIBS
5041fi
5042echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
5043echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
5044if test $ac_cv_lib_socket_setsockopt = yes; then
5045  cat >>confdefs.h <<_ACEOF
5046#define HAVE_LIBSOCKET 1
5047_ACEOF
5048
5049  LIBS="-lsocket $LIBS"
5050
5051fi
5052
5053fi
5054
5055
5056echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5057echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5058if test "${ac_cv_header_stdc+set}" = set; then
5059  echo $ECHO_N "(cached) $ECHO_C" >&6
5060else
5061  cat >conftest.$ac_ext <<_ACEOF
5062#line $LINENO "configure"
5063#include "confdefs.h"
5064#include <stdlib.h>
5065#include <stdarg.h>
5066#include <string.h>
5067#include <float.h>
5068
5069_ACEOF
5070if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5071  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5072  ac_status=$?
5073  egrep -v '^ *\+' conftest.er1 >conftest.err
5074  rm -f conftest.er1
5075  cat conftest.err >&5
5076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077  (exit $ac_status); } >/dev/null; then
5078  if test -s conftest.err; then
5079    ac_cpp_err=$ac_c_preproc_warn_flag
5080  else
5081    ac_cpp_err=
5082  fi
5083else
5084  ac_cpp_err=yes
5085fi
5086if test -z "$ac_cpp_err"; then
5087  ac_cv_header_stdc=yes
5088else
5089  echo "$as_me: failed program was:" >&5
5090  cat conftest.$ac_ext >&5
5091  ac_cv_header_stdc=no
5092fi
5093rm -f conftest.err conftest.$ac_ext
5094
5095if test $ac_cv_header_stdc = yes; then
5096  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5097  cat >conftest.$ac_ext <<_ACEOF
5098#line $LINENO "configure"
5099#include "confdefs.h"
5100#include <string.h>
5101
5102_ACEOF
5103if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5104  egrep "memchr" >/dev/null 2>&1; then
5105  :
5106else
5107  ac_cv_header_stdc=no
5108fi
5109rm -f conftest*
5110
5111fi
5112
5113if test $ac_cv_header_stdc = yes; then
5114  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5115  cat >conftest.$ac_ext <<_ACEOF
5116#line $LINENO "configure"
5117#include "confdefs.h"
5118#include <stdlib.h>
5119
5120_ACEOF
5121if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5122  egrep "free" >/dev/null 2>&1; then
5123  :
5124else
5125  ac_cv_header_stdc=no
5126fi
5127rm -f conftest*
5128
5129fi
5130
5131if test $ac_cv_header_stdc = yes; then
5132  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5133  if test "$cross_compiling" = yes; then
5134  :
5135else
5136  cat >conftest.$ac_ext <<_ACEOF
5137#line $LINENO "configure"
5138#include "confdefs.h"
5139#include <ctype.h>
5140#if ((' ' & 0x0FF) == 0x020)
5141# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5142# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5143#else
5144# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5145                     || ('j' <= (c) && (c) <= 'r') \
5146                     || ('s' <= (c) && (c) <= 'z'))
5147# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5148#endif
5149
5150#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5151int
5152main ()
5153{
5154  int i;
5155  for (i = 0; i < 256; i++)
5156    if (XOR (islower (i), ISLOWER (i))
5157        || toupper (i) != TOUPPER (i))
5158      exit(2);
5159  exit (0);
5160}
5161_ACEOF
5162rm -f conftest$ac_exeext
5163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5164  (eval $ac_link) 2>&5
5165  ac_status=$?
5166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169  (eval $ac_try) 2>&5
5170  ac_status=$?
5171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172  (exit $ac_status); }; }; then
5173  :
5174else
5175  echo "$as_me: program exited with status $ac_status" >&5
5176echo "$as_me: failed program was:" >&5
5177cat conftest.$ac_ext >&5
5178( exit $ac_status )
5179ac_cv_header_stdc=no
5180fi
5181rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5182fi
5183fi
5184fi
5185echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5186echo "${ECHO_T}$ac_cv_header_stdc" >&6
5187if test $ac_cv_header_stdc = yes; then
5188
5189cat >>confdefs.h <<\_ACEOF
5190#define STDC_HEADERS 1
5191_ACEOF
5192
5193fi
5194
5195
5196
5197
5198
5199
5200
5201
5202for ac_header in bstring.h errno.h fcntl.h ieeefp.h math.h memory.h netdb.h
5203do
5204as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5205if eval "test \"\${$as_ac_Header+set}\" = set"; then
5206  echo "$as_me:$LINENO: checking for $ac_header" >&5
5207echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5208if eval "test \"\${$as_ac_Header+set}\" = set"; then
5209  echo $ECHO_N "(cached) $ECHO_C" >&6
5210fi
5211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5212echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5213else
5214  # Is the header compilable?
5215echo "$as_me:$LINENO: checking $ac_header usability" >&5
5216echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5217cat >conftest.$ac_ext <<_ACEOF
5218#line $LINENO "configure"
5219#include "confdefs.h"
5220$ac_includes_default
5221#include <$ac_header>
5222_ACEOF
5223rm -f conftest.$ac_objext
5224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5225  (eval $ac_compile) 2>&5
5226  ac_status=$?
5227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228  (exit $ac_status); } &&
5229         { ac_try='test -s conftest.$ac_objext'
5230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231  (eval $ac_try) 2>&5
5232  ac_status=$?
5233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234  (exit $ac_status); }; }; then
5235  ac_header_compiler=yes
5236else
5237  echo "$as_me: failed program was:" >&5
5238cat conftest.$ac_ext >&5
5239ac_header_compiler=no
5240fi
5241rm -f conftest.$ac_objext conftest.$ac_ext
5242echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5243echo "${ECHO_T}$ac_header_compiler" >&6
5244
5245# Is the header present?
5246echo "$as_me:$LINENO: checking $ac_header presence" >&5
5247echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5248cat >conftest.$ac_ext <<_ACEOF
5249#line $LINENO "configure"
5250#include "confdefs.h"
5251#include <$ac_header>
5252_ACEOF
5253if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5254  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5255  ac_status=$?
5256  egrep -v '^ *\+' conftest.er1 >conftest.err
5257  rm -f conftest.er1
5258  cat conftest.err >&5
5259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260  (exit $ac_status); } >/dev/null; then
5261  if test -s conftest.err; then
5262    ac_cpp_err=$ac_c_preproc_warn_flag
5263  else
5264    ac_cpp_err=
5265  fi
5266else
5267  ac_cpp_err=yes
5268fi
5269if test -z "$ac_cpp_err"; then
5270  ac_header_preproc=yes
5271else
5272  echo "$as_me: failed program was:" >&5
5273  cat conftest.$ac_ext >&5
5274  ac_header_preproc=no
5275fi
5276rm -f conftest.err conftest.$ac_ext
5277echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5278echo "${ECHO_T}$ac_header_preproc" >&6
5279
5280# So?  What about this header?
5281case $ac_header_compiler:$ac_header_preproc in
5282  yes:no )
5283    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5284echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5285    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5286echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5287  no:yes )
5288    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5289echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5290    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5291echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5292    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5293echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5294esac
5295echo "$as_me:$LINENO: checking for $ac_header" >&5
5296echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5297if eval "test \"\${$as_ac_Header+set}\" = set"; then
5298  echo $ECHO_N "(cached) $ECHO_C" >&6
5299else
5300  eval "$as_ac_Header=$ac_header_preproc"
5301fi
5302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5303echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5304
5305fi
5306if test `eval echo '${'$as_ac_Header'}'` = yes; then
5307  cat >>confdefs.h <<_ACEOF
5308#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5309_ACEOF
5310
5311fi
5312
5313done
5314
5315
5316
5317
5318
5319
5320
5321
5322for ac_header in poll.h resolv.h sched.h sgtty.h stdlib.h string.h termio.h
5323do
5324as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5325if eval "test \"\${$as_ac_Header+set}\" = set"; then
5326  echo "$as_me:$LINENO: checking for $ac_header" >&5
5327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5328if eval "test \"\${$as_ac_Header+set}\" = set"; then
5329  echo $ECHO_N "(cached) $ECHO_C" >&6
5330fi
5331echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5332echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5333else
5334  # Is the header compilable?
5335echo "$as_me:$LINENO: checking $ac_header usability" >&5
5336echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5337cat >conftest.$ac_ext <<_ACEOF
5338#line $LINENO "configure"
5339#include "confdefs.h"
5340$ac_includes_default
5341#include <$ac_header>
5342_ACEOF
5343rm -f conftest.$ac_objext
5344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5345  (eval $ac_compile) 2>&5
5346  ac_status=$?
5347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348  (exit $ac_status); } &&
5349         { ac_try='test -s conftest.$ac_objext'
5350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351  (eval $ac_try) 2>&5
5352  ac_status=$?
5353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354  (exit $ac_status); }; }; then
5355  ac_header_compiler=yes
5356else
5357  echo "$as_me: failed program was:" >&5
5358cat conftest.$ac_ext >&5
5359ac_header_compiler=no
5360fi
5361rm -f conftest.$ac_objext conftest.$ac_ext
5362echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5363echo "${ECHO_T}$ac_header_compiler" >&6
5364
5365# Is the header present?
5366echo "$as_me:$LINENO: checking $ac_header presence" >&5
5367echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5368cat >conftest.$ac_ext <<_ACEOF
5369#line $LINENO "configure"
5370#include "confdefs.h"
5371#include <$ac_header>
5372_ACEOF
5373if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5374  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5375  ac_status=$?
5376  egrep -v '^ *\+' conftest.er1 >conftest.err
5377  rm -f conftest.er1
5378  cat conftest.err >&5
5379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380  (exit $ac_status); } >/dev/null; then
5381  if test -s conftest.err; then
5382    ac_cpp_err=$ac_c_preproc_warn_flag
5383  else
5384    ac_cpp_err=
5385  fi
5386else
5387  ac_cpp_err=yes
5388fi
5389if test -z "$ac_cpp_err"; then
5390  ac_header_preproc=yes
5391else
5392  echo "$as_me: failed program was:" >&5
5393  cat conftest.$ac_ext >&5
5394  ac_header_preproc=no
5395fi
5396rm -f conftest.err conftest.$ac_ext
5397echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5398echo "${ECHO_T}$ac_header_preproc" >&6
5399
5400# So?  What about this header?
5401case $ac_header_compiler:$ac_header_preproc in
5402  yes:no )
5403    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5404echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5405    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5406echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5407  no:yes )
5408    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5409echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5410    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5411echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5412    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5413echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5414esac
5415echo "$as_me:$LINENO: checking for $ac_header" >&5
5416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5417if eval "test \"\${$as_ac_Header+set}\" = set"; then
5418  echo $ECHO_N "(cached) $ECHO_C" >&6
5419else
5420  eval "$as_ac_Header=$ac_header_preproc"
5421fi
5422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5423echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5424
5425fi
5426if test `eval echo '${'$as_ac_Header'}'` = yes; then
5427  cat >>confdefs.h <<_ACEOF
5428#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5429_ACEOF
5430
5431fi
5432
5433done
5434
5435
5436
5437
5438
5439
5440
5441for ac_header in termios.h timepps.h timex.h unistd.h utmp.h utmpx.h
5442do
5443as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5444if eval "test \"\${$as_ac_Header+set}\" = set"; then
5445  echo "$as_me:$LINENO: checking for $ac_header" >&5
5446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5447if eval "test \"\${$as_ac_Header+set}\" = set"; then
5448  echo $ECHO_N "(cached) $ECHO_C" >&6
5449fi
5450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5451echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5452else
5453  # Is the header compilable?
5454echo "$as_me:$LINENO: checking $ac_header usability" >&5
5455echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5456cat >conftest.$ac_ext <<_ACEOF
5457#line $LINENO "configure"
5458#include "confdefs.h"
5459$ac_includes_default
5460#include <$ac_header>
5461_ACEOF
5462rm -f conftest.$ac_objext
5463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5464  (eval $ac_compile) 2>&5
5465  ac_status=$?
5466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467  (exit $ac_status); } &&
5468         { ac_try='test -s conftest.$ac_objext'
5469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470  (eval $ac_try) 2>&5
5471  ac_status=$?
5472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473  (exit $ac_status); }; }; then
5474  ac_header_compiler=yes
5475else
5476  echo "$as_me: failed program was:" >&5
5477cat conftest.$ac_ext >&5
5478ac_header_compiler=no
5479fi
5480rm -f conftest.$ac_objext conftest.$ac_ext
5481echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5482echo "${ECHO_T}$ac_header_compiler" >&6
5483
5484# Is the header present?
5485echo "$as_me:$LINENO: checking $ac_header presence" >&5
5486echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5487cat >conftest.$ac_ext <<_ACEOF
5488#line $LINENO "configure"
5489#include "confdefs.h"
5490#include <$ac_header>
5491_ACEOF
5492if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5493  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5494  ac_status=$?
5495  egrep -v '^ *\+' conftest.er1 >conftest.err
5496  rm -f conftest.er1
5497  cat conftest.err >&5
5498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499  (exit $ac_status); } >/dev/null; then
5500  if test -s conftest.err; then
5501    ac_cpp_err=$ac_c_preproc_warn_flag
5502  else
5503    ac_cpp_err=
5504  fi
5505else
5506  ac_cpp_err=yes
5507fi
5508if test -z "$ac_cpp_err"; then
5509  ac_header_preproc=yes
5510else
5511  echo "$as_me: failed program was:" >&5
5512  cat conftest.$ac_ext >&5
5513  ac_header_preproc=no
5514fi
5515rm -f conftest.err conftest.$ac_ext
5516echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5517echo "${ECHO_T}$ac_header_preproc" >&6
5518
5519# So?  What about this header?
5520case $ac_header_compiler:$ac_header_preproc in
5521  yes:no )
5522    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5523echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5524    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5525echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5526  no:yes )
5527    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5528echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5529    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5530echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5531    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5532echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5533esac
5534echo "$as_me:$LINENO: checking for $ac_header" >&5
5535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5536if eval "test \"\${$as_ac_Header+set}\" = set"; then
5537  echo $ECHO_N "(cached) $ECHO_C" >&6
5538else
5539  eval "$as_ac_Header=$ac_header_preproc"
5540fi
5541echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5542echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5543
5544fi
5545if test `eval echo '${'$as_ac_Header'}'` = yes; then
5546  cat >>confdefs.h <<_ACEOF
5547#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5548_ACEOF
5549
5550fi
5551
5552done
5553
5554
5555
5556
5557for ac_header in arpa/nameser.h net/if.h netinet/in_system.h
5558do
5559as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5560if eval "test \"\${$as_ac_Header+set}\" = set"; then
5561  echo "$as_me:$LINENO: checking for $ac_header" >&5
5562echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5563if eval "test \"\${$as_ac_Header+set}\" = set"; then
5564  echo $ECHO_N "(cached) $ECHO_C" >&6
5565fi
5566echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5567echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5568else
5569  # Is the header compilable?
5570echo "$as_me:$LINENO: checking $ac_header usability" >&5
5571echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5572cat >conftest.$ac_ext <<_ACEOF
5573#line $LINENO "configure"
5574#include "confdefs.h"
5575$ac_includes_default
5576#include <$ac_header>
5577_ACEOF
5578rm -f conftest.$ac_objext
5579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5580  (eval $ac_compile) 2>&5
5581  ac_status=$?
5582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583  (exit $ac_status); } &&
5584         { ac_try='test -s conftest.$ac_objext'
5585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586  (eval $ac_try) 2>&5
5587  ac_status=$?
5588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589  (exit $ac_status); }; }; then
5590  ac_header_compiler=yes
5591else
5592  echo "$as_me: failed program was:" >&5
5593cat conftest.$ac_ext >&5
5594ac_header_compiler=no
5595fi
5596rm -f conftest.$ac_objext conftest.$ac_ext
5597echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5598echo "${ECHO_T}$ac_header_compiler" >&6
5599
5600# Is the header present?
5601echo "$as_me:$LINENO: checking $ac_header presence" >&5
5602echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5603cat >conftest.$ac_ext <<_ACEOF
5604#line $LINENO "configure"
5605#include "confdefs.h"
5606#include <$ac_header>
5607_ACEOF
5608if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5609  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5610  ac_status=$?
5611  egrep -v '^ *\+' conftest.er1 >conftest.err
5612  rm -f conftest.er1
5613  cat conftest.err >&5
5614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615  (exit $ac_status); } >/dev/null; then
5616  if test -s conftest.err; then
5617    ac_cpp_err=$ac_c_preproc_warn_flag
5618  else
5619    ac_cpp_err=
5620  fi
5621else
5622  ac_cpp_err=yes
5623fi
5624if test -z "$ac_cpp_err"; then
5625  ac_header_preproc=yes
5626else
5627  echo "$as_me: failed program was:" >&5
5628  cat conftest.$ac_ext >&5
5629  ac_header_preproc=no
5630fi
5631rm -f conftest.err conftest.$ac_ext
5632echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5633echo "${ECHO_T}$ac_header_preproc" >&6
5634
5635# So?  What about this header?
5636case $ac_header_compiler:$ac_header_preproc in
5637  yes:no )
5638    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5639echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5640    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5641echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5642  no:yes )
5643    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5644echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5645    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5646echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5647    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5648echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5649esac
5650echo "$as_me:$LINENO: checking for $ac_header" >&5
5651echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5652if eval "test \"\${$as_ac_Header+set}\" = set"; then
5653  echo $ECHO_N "(cached) $ECHO_C" >&6
5654else
5655  eval "$as_ac_Header=$ac_header_preproc"
5656fi
5657echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5658echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5659
5660fi
5661if test `eval echo '${'$as_ac_Header'}'` = yes; then
5662  cat >>confdefs.h <<_ACEOF
5663#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5664_ACEOF
5665
5666fi
5667
5668done
5669
5670
5671
5672
5673for ac_header in netinet/in_systm.h netinet/in.h netinet/ip.h
5674do
5675as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5676if eval "test \"\${$as_ac_Header+set}\" = set"; then
5677  echo "$as_me:$LINENO: checking for $ac_header" >&5
5678echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5679if eval "test \"\${$as_ac_Header+set}\" = set"; then
5680  echo $ECHO_N "(cached) $ECHO_C" >&6
5681fi
5682echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5683echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5684else
5685  # Is the header compilable?
5686echo "$as_me:$LINENO: checking $ac_header usability" >&5
5687echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5688cat >conftest.$ac_ext <<_ACEOF
5689#line $LINENO "configure"
5690#include "confdefs.h"
5691$ac_includes_default
5692#include <$ac_header>
5693_ACEOF
5694rm -f conftest.$ac_objext
5695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5696  (eval $ac_compile) 2>&5
5697  ac_status=$?
5698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699  (exit $ac_status); } &&
5700         { ac_try='test -s conftest.$ac_objext'
5701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702  (eval $ac_try) 2>&5
5703  ac_status=$?
5704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705  (exit $ac_status); }; }; then
5706  ac_header_compiler=yes
5707else
5708  echo "$as_me: failed program was:" >&5
5709cat conftest.$ac_ext >&5
5710ac_header_compiler=no
5711fi
5712rm -f conftest.$ac_objext conftest.$ac_ext
5713echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5714echo "${ECHO_T}$ac_header_compiler" >&6
5715
5716# Is the header present?
5717echo "$as_me:$LINENO: checking $ac_header presence" >&5
5718echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5719cat >conftest.$ac_ext <<_ACEOF
5720#line $LINENO "configure"
5721#include "confdefs.h"
5722#include <$ac_header>
5723_ACEOF
5724if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5725  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5726  ac_status=$?
5727  egrep -v '^ *\+' conftest.er1 >conftest.err
5728  rm -f conftest.er1
5729  cat conftest.err >&5
5730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731  (exit $ac_status); } >/dev/null; then
5732  if test -s conftest.err; then
5733    ac_cpp_err=$ac_c_preproc_warn_flag
5734  else
5735    ac_cpp_err=
5736  fi
5737else
5738  ac_cpp_err=yes
5739fi
5740if test -z "$ac_cpp_err"; then
5741  ac_header_preproc=yes
5742else
5743  echo "$as_me: failed program was:" >&5
5744  cat conftest.$ac_ext >&5
5745  ac_header_preproc=no
5746fi
5747rm -f conftest.err conftest.$ac_ext
5748echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5749echo "${ECHO_T}$ac_header_preproc" >&6
5750
5751# So?  What about this header?
5752case $ac_header_compiler:$ac_header_preproc in
5753  yes:no )
5754    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5755echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5756    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5757echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5758  no:yes )
5759    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5760echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5761    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5762echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5763    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5764echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5765esac
5766echo "$as_me:$LINENO: checking for $ac_header" >&5
5767echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5768if eval "test \"\${$as_ac_Header+set}\" = set"; then
5769  echo $ECHO_N "(cached) $ECHO_C" >&6
5770else
5771  eval "$as_ac_Header=$ac_header_preproc"
5772fi
5773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5774echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5775
5776fi
5777if test `eval echo '${'$as_ac_Header'}'` = yes; then
5778  cat >>confdefs.h <<_ACEOF
5779#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5780_ACEOF
5781
5782fi
5783
5784done
5785
5786
5787for ac_header in netinfo/ni.h
5788do
5789as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5790if eval "test \"\${$as_ac_Header+set}\" = set"; then
5791  echo "$as_me:$LINENO: checking for $ac_header" >&5
5792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5793if eval "test \"\${$as_ac_Header+set}\" = set"; then
5794  echo $ECHO_N "(cached) $ECHO_C" >&6
5795fi
5796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5798else
5799  # Is the header compilable?
5800echo "$as_me:$LINENO: checking $ac_header usability" >&5
5801echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5802cat >conftest.$ac_ext <<_ACEOF
5803#line $LINENO "configure"
5804#include "confdefs.h"
5805$ac_includes_default
5806#include <$ac_header>
5807_ACEOF
5808rm -f conftest.$ac_objext
5809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5810  (eval $ac_compile) 2>&5
5811  ac_status=$?
5812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813  (exit $ac_status); } &&
5814         { ac_try='test -s conftest.$ac_objext'
5815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816  (eval $ac_try) 2>&5
5817  ac_status=$?
5818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819  (exit $ac_status); }; }; then
5820  ac_header_compiler=yes
5821else
5822  echo "$as_me: failed program was:" >&5
5823cat conftest.$ac_ext >&5
5824ac_header_compiler=no
5825fi
5826rm -f conftest.$ac_objext conftest.$ac_ext
5827echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5828echo "${ECHO_T}$ac_header_compiler" >&6
5829
5830# Is the header present?
5831echo "$as_me:$LINENO: checking $ac_header presence" >&5
5832echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5833cat >conftest.$ac_ext <<_ACEOF
5834#line $LINENO "configure"
5835#include "confdefs.h"
5836#include <$ac_header>
5837_ACEOF
5838if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5839  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5840  ac_status=$?
5841  egrep -v '^ *\+' conftest.er1 >conftest.err
5842  rm -f conftest.er1
5843  cat conftest.err >&5
5844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845  (exit $ac_status); } >/dev/null; then
5846  if test -s conftest.err; then
5847    ac_cpp_err=$ac_c_preproc_warn_flag
5848  else
5849    ac_cpp_err=
5850  fi
5851else
5852  ac_cpp_err=yes
5853fi
5854if test -z "$ac_cpp_err"; then
5855  ac_header_preproc=yes
5856else
5857  echo "$as_me: failed program was:" >&5
5858  cat conftest.$ac_ext >&5
5859  ac_header_preproc=no
5860fi
5861rm -f conftest.err conftest.$ac_ext
5862echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5863echo "${ECHO_T}$ac_header_preproc" >&6
5864
5865# So?  What about this header?
5866case $ac_header_compiler:$ac_header_preproc in
5867  yes:no )
5868    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5869echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5870    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5871echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5872  no:yes )
5873    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5874echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5875    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5876echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5877    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5878echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5879esac
5880echo "$as_me:$LINENO: checking for $ac_header" >&5
5881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5882if eval "test \"\${$as_ac_Header+set}\" = set"; then
5883  echo $ECHO_N "(cached) $ECHO_C" >&6
5884else
5885  eval "$as_ac_Header=$ac_header_preproc"
5886fi
5887echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5888echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5889
5890fi
5891if test `eval echo '${'$as_ac_Header'}'` = yes; then
5892  cat >>confdefs.h <<_ACEOF
5893#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5894_ACEOF
5895
5896cat >>confdefs.h <<\_ACEOF
5897#define HAVE_NETINFO 1
5898_ACEOF
5899
5900fi
5901
5902done
5903
5904
5905
5906for ac_header in sun/audioio.h sys/audioio.h
5907do
5908as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5909if eval "test \"\${$as_ac_Header+set}\" = set"; then
5910  echo "$as_me:$LINENO: checking for $ac_header" >&5
5911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5912if eval "test \"\${$as_ac_Header+set}\" = set"; then
5913  echo $ECHO_N "(cached) $ECHO_C" >&6
5914fi
5915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5916echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5917else
5918  # Is the header compilable?
5919echo "$as_me:$LINENO: checking $ac_header usability" >&5
5920echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5921cat >conftest.$ac_ext <<_ACEOF
5922#line $LINENO "configure"
5923#include "confdefs.h"
5924$ac_includes_default
5925#include <$ac_header>
5926_ACEOF
5927rm -f conftest.$ac_objext
5928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5929  (eval $ac_compile) 2>&5
5930  ac_status=$?
5931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932  (exit $ac_status); } &&
5933         { ac_try='test -s conftest.$ac_objext'
5934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935  (eval $ac_try) 2>&5
5936  ac_status=$?
5937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938  (exit $ac_status); }; }; then
5939  ac_header_compiler=yes
5940else
5941  echo "$as_me: failed program was:" >&5
5942cat conftest.$ac_ext >&5
5943ac_header_compiler=no
5944fi
5945rm -f conftest.$ac_objext conftest.$ac_ext
5946echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5947echo "${ECHO_T}$ac_header_compiler" >&6
5948
5949# Is the header present?
5950echo "$as_me:$LINENO: checking $ac_header presence" >&5
5951echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5952cat >conftest.$ac_ext <<_ACEOF
5953#line $LINENO "configure"
5954#include "confdefs.h"
5955#include <$ac_header>
5956_ACEOF
5957if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5958  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5959  ac_status=$?
5960  egrep -v '^ *\+' conftest.er1 >conftest.err
5961  rm -f conftest.er1
5962  cat conftest.err >&5
5963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964  (exit $ac_status); } >/dev/null; then
5965  if test -s conftest.err; then
5966    ac_cpp_err=$ac_c_preproc_warn_flag
5967  else
5968    ac_cpp_err=
5969  fi
5970else
5971  ac_cpp_err=yes
5972fi
5973if test -z "$ac_cpp_err"; then
5974  ac_header_preproc=yes
5975else
5976  echo "$as_me: failed program was:" >&5
5977  cat conftest.$ac_ext >&5
5978  ac_header_preproc=no
5979fi
5980rm -f conftest.err conftest.$ac_ext
5981echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5982echo "${ECHO_T}$ac_header_preproc" >&6
5983
5984# So?  What about this header?
5985case $ac_header_compiler:$ac_header_preproc in
5986  yes:no )
5987    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5988echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5989    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5990echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5991  no:yes )
5992    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5993echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5994    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5995echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5996    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5997echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5998esac
5999echo "$as_me:$LINENO: checking for $ac_header" >&5
6000echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6001if eval "test \"\${$as_ac_Header+set}\" = set"; then
6002  echo $ECHO_N "(cached) $ECHO_C" >&6
6003else
6004  eval "$as_ac_Header=$ac_header_preproc"
6005fi
6006echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6007echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6008
6009fi
6010if test `eval echo '${'$as_ac_Header'}'` = yes; then
6011  cat >>confdefs.h <<_ACEOF
6012#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6013_ACEOF
6014
6015fi
6016
6017done
6018
6019
6020
6021for ac_header in sys/clkdefs.h sys/file.h
6022do
6023as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6024if eval "test \"\${$as_ac_Header+set}\" = set"; then
6025  echo "$as_me:$LINENO: checking for $ac_header" >&5
6026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6027if eval "test \"\${$as_ac_Header+set}\" = set"; then
6028  echo $ECHO_N "(cached) $ECHO_C" >&6
6029fi
6030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6031echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6032else
6033  # Is the header compilable?
6034echo "$as_me:$LINENO: checking $ac_header usability" >&5
6035echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6036cat >conftest.$ac_ext <<_ACEOF
6037#line $LINENO "configure"
6038#include "confdefs.h"
6039$ac_includes_default
6040#include <$ac_header>
6041_ACEOF
6042rm -f conftest.$ac_objext
6043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6044  (eval $ac_compile) 2>&5
6045  ac_status=$?
6046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047  (exit $ac_status); } &&
6048         { ac_try='test -s conftest.$ac_objext'
6049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050  (eval $ac_try) 2>&5
6051  ac_status=$?
6052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053  (exit $ac_status); }; }; then
6054  ac_header_compiler=yes
6055else
6056  echo "$as_me: failed program was:" >&5
6057cat conftest.$ac_ext >&5
6058ac_header_compiler=no
6059fi
6060rm -f conftest.$ac_objext conftest.$ac_ext
6061echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6062echo "${ECHO_T}$ac_header_compiler" >&6
6063
6064# Is the header present?
6065echo "$as_me:$LINENO: checking $ac_header presence" >&5
6066echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6067cat >conftest.$ac_ext <<_ACEOF
6068#line $LINENO "configure"
6069#include "confdefs.h"
6070#include <$ac_header>
6071_ACEOF
6072if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6073  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6074  ac_status=$?
6075  egrep -v '^ *\+' conftest.er1 >conftest.err
6076  rm -f conftest.er1
6077  cat conftest.err >&5
6078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079  (exit $ac_status); } >/dev/null; then
6080  if test -s conftest.err; then
6081    ac_cpp_err=$ac_c_preproc_warn_flag
6082  else
6083    ac_cpp_err=
6084  fi
6085else
6086  ac_cpp_err=yes
6087fi
6088if test -z "$ac_cpp_err"; then
6089  ac_header_preproc=yes
6090else
6091  echo "$as_me: failed program was:" >&5
6092  cat conftest.$ac_ext >&5
6093  ac_header_preproc=no
6094fi
6095rm -f conftest.err conftest.$ac_ext
6096echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6097echo "${ECHO_T}$ac_header_preproc" >&6
6098
6099# So?  What about this header?
6100case $ac_header_compiler:$ac_header_preproc in
6101  yes:no )
6102    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6103echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6104    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6105echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6106  no:yes )
6107    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6108echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6109    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6110echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6111    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6112echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6113esac
6114echo "$as_me:$LINENO: checking for $ac_header" >&5
6115echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6116if eval "test \"\${$as_ac_Header+set}\" = set"; then
6117  echo $ECHO_N "(cached) $ECHO_C" >&6
6118else
6119  eval "$as_ac_Header=$ac_header_preproc"
6120fi
6121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6122echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6123
6124fi
6125if test `eval echo '${'$as_ac_Header'}'` = yes; then
6126  cat >>confdefs.h <<_ACEOF
6127#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6128_ACEOF
6129
6130fi
6131
6132done
6133
6134case "$host" in
6135 *-*-sunos4*) ;;
6136 *)
6137for ac_header in sys/ioctl.h
6138do
6139as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6140if eval "test \"\${$as_ac_Header+set}\" = set"; then
6141  echo "$as_me:$LINENO: checking for $ac_header" >&5
6142echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6143if eval "test \"\${$as_ac_Header+set}\" = set"; then
6144  echo $ECHO_N "(cached) $ECHO_C" >&6
6145fi
6146echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6147echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6148else
6149  # Is the header compilable?
6150echo "$as_me:$LINENO: checking $ac_header usability" >&5
6151echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6152cat >conftest.$ac_ext <<_ACEOF
6153#line $LINENO "configure"
6154#include "confdefs.h"
6155$ac_includes_default
6156#include <$ac_header>
6157_ACEOF
6158rm -f conftest.$ac_objext
6159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6160  (eval $ac_compile) 2>&5
6161  ac_status=$?
6162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163  (exit $ac_status); } &&
6164         { ac_try='test -s conftest.$ac_objext'
6165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166  (eval $ac_try) 2>&5
6167  ac_status=$?
6168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169  (exit $ac_status); }; }; then
6170  ac_header_compiler=yes
6171else
6172  echo "$as_me: failed program was:" >&5
6173cat conftest.$ac_ext >&5
6174ac_header_compiler=no
6175fi
6176rm -f conftest.$ac_objext conftest.$ac_ext
6177echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6178echo "${ECHO_T}$ac_header_compiler" >&6
6179
6180# Is the header present?
6181echo "$as_me:$LINENO: checking $ac_header presence" >&5
6182echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6183cat >conftest.$ac_ext <<_ACEOF
6184#line $LINENO "configure"
6185#include "confdefs.h"
6186#include <$ac_header>
6187_ACEOF
6188if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6189  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6190  ac_status=$?
6191  egrep -v '^ *\+' conftest.er1 >conftest.err
6192  rm -f conftest.er1
6193  cat conftest.err >&5
6194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195  (exit $ac_status); } >/dev/null; then
6196  if test -s conftest.err; then
6197    ac_cpp_err=$ac_c_preproc_warn_flag
6198  else
6199    ac_cpp_err=
6200  fi
6201else
6202  ac_cpp_err=yes
6203fi
6204if test -z "$ac_cpp_err"; then
6205  ac_header_preproc=yes
6206else
6207  echo "$as_me: failed program was:" >&5
6208  cat conftest.$ac_ext >&5
6209  ac_header_preproc=no
6210fi
6211rm -f conftest.err conftest.$ac_ext
6212echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6213echo "${ECHO_T}$ac_header_preproc" >&6
6214
6215# So?  What about this header?
6216case $ac_header_compiler:$ac_header_preproc in
6217  yes:no )
6218    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6219echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6220    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6221echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6222  no:yes )
6223    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6224echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6225    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6226echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6227    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6228echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6229esac
6230echo "$as_me:$LINENO: checking for $ac_header" >&5
6231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6232if eval "test \"\${$as_ac_Header+set}\" = set"; then
6233  echo $ECHO_N "(cached) $ECHO_C" >&6
6234else
6235  eval "$as_ac_Header=$ac_header_preproc"
6236fi
6237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6239
6240fi
6241if test `eval echo '${'$as_ac_Header'}'` = yes; then
6242  cat >>confdefs.h <<_ACEOF
6243#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6244_ACEOF
6245
6246fi
6247
6248done
6249
6250    ;;
6251esac
6252
6253
6254
6255
6256
6257for ac_header in sys/lock.h sys/mman.h sys/modem.h sys/param.h sys/ppsclock.h
6258do
6259as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6260if eval "test \"\${$as_ac_Header+set}\" = set"; then
6261  echo "$as_me:$LINENO: checking for $ac_header" >&5
6262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6263if eval "test \"\${$as_ac_Header+set}\" = set"; then
6264  echo $ECHO_N "(cached) $ECHO_C" >&6
6265fi
6266echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6267echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6268else
6269  # Is the header compilable?
6270echo "$as_me:$LINENO: checking $ac_header usability" >&5
6271echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6272cat >conftest.$ac_ext <<_ACEOF
6273#line $LINENO "configure"
6274#include "confdefs.h"
6275$ac_includes_default
6276#include <$ac_header>
6277_ACEOF
6278rm -f conftest.$ac_objext
6279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6280  (eval $ac_compile) 2>&5
6281  ac_status=$?
6282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283  (exit $ac_status); } &&
6284         { ac_try='test -s conftest.$ac_objext'
6285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286  (eval $ac_try) 2>&5
6287  ac_status=$?
6288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289  (exit $ac_status); }; }; then
6290  ac_header_compiler=yes
6291else
6292  echo "$as_me: failed program was:" >&5
6293cat conftest.$ac_ext >&5
6294ac_header_compiler=no
6295fi
6296rm -f conftest.$ac_objext conftest.$ac_ext
6297echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6298echo "${ECHO_T}$ac_header_compiler" >&6
6299
6300# Is the header present?
6301echo "$as_me:$LINENO: checking $ac_header presence" >&5
6302echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6303cat >conftest.$ac_ext <<_ACEOF
6304#line $LINENO "configure"
6305#include "confdefs.h"
6306#include <$ac_header>
6307_ACEOF
6308if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6309  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6310  ac_status=$?
6311  egrep -v '^ *\+' conftest.er1 >conftest.err
6312  rm -f conftest.er1
6313  cat conftest.err >&5
6314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315  (exit $ac_status); } >/dev/null; then
6316  if test -s conftest.err; then
6317    ac_cpp_err=$ac_c_preproc_warn_flag
6318  else
6319    ac_cpp_err=
6320  fi
6321else
6322  ac_cpp_err=yes
6323fi
6324if test -z "$ac_cpp_err"; then
6325  ac_header_preproc=yes
6326else
6327  echo "$as_me: failed program was:" >&5
6328  cat conftest.$ac_ext >&5
6329  ac_header_preproc=no
6330fi
6331rm -f conftest.err conftest.$ac_ext
6332echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6333echo "${ECHO_T}$ac_header_preproc" >&6
6334
6335# So?  What about this header?
6336case $ac_header_compiler:$ac_header_preproc in
6337  yes:no )
6338    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6339echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6340    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6341echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6342  no:yes )
6343    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6344echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6345    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6346echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6347    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6348echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6349esac
6350echo "$as_me:$LINENO: checking for $ac_header" >&5
6351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6352if eval "test \"\${$as_ac_Header+set}\" = set"; then
6353  echo $ECHO_N "(cached) $ECHO_C" >&6
6354else
6355  eval "$as_ac_Header=$ac_header_preproc"
6356fi
6357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6358echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6359
6360fi
6361if test `eval echo '${'$as_ac_Header'}'` = yes; then
6362  cat >>confdefs.h <<_ACEOF
6363#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6364_ACEOF
6365
6366fi
6367
6368done
6369
6370
6371
6372
6373
6374for ac_header in sys/ppstime.h sys/proc.h sys/resource.h sys/sched.h
6375do
6376as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6377if eval "test \"\${$as_ac_Header+set}\" = set"; then
6378  echo "$as_me:$LINENO: checking for $ac_header" >&5
6379echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6380if eval "test \"\${$as_ac_Header+set}\" = set"; then
6381  echo $ECHO_N "(cached) $ECHO_C" >&6
6382fi
6383echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6384echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6385else
6386  # Is the header compilable?
6387echo "$as_me:$LINENO: checking $ac_header usability" >&5
6388echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6389cat >conftest.$ac_ext <<_ACEOF
6390#line $LINENO "configure"
6391#include "confdefs.h"
6392$ac_includes_default
6393#include <$ac_header>
6394_ACEOF
6395rm -f conftest.$ac_objext
6396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6397  (eval $ac_compile) 2>&5
6398  ac_status=$?
6399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400  (exit $ac_status); } &&
6401         { ac_try='test -s conftest.$ac_objext'
6402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403  (eval $ac_try) 2>&5
6404  ac_status=$?
6405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406  (exit $ac_status); }; }; then
6407  ac_header_compiler=yes
6408else
6409  echo "$as_me: failed program was:" >&5
6410cat conftest.$ac_ext >&5
6411ac_header_compiler=no
6412fi
6413rm -f conftest.$ac_objext conftest.$ac_ext
6414echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6415echo "${ECHO_T}$ac_header_compiler" >&6
6416
6417# Is the header present?
6418echo "$as_me:$LINENO: checking $ac_header presence" >&5
6419echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6420cat >conftest.$ac_ext <<_ACEOF
6421#line $LINENO "configure"
6422#include "confdefs.h"
6423#include <$ac_header>
6424_ACEOF
6425if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6426  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6427  ac_status=$?
6428  egrep -v '^ *\+' conftest.er1 >conftest.err
6429  rm -f conftest.er1
6430  cat conftest.err >&5
6431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432  (exit $ac_status); } >/dev/null; then
6433  if test -s conftest.err; then
6434    ac_cpp_err=$ac_c_preproc_warn_flag
6435  else
6436    ac_cpp_err=
6437  fi
6438else
6439  ac_cpp_err=yes
6440fi
6441if test -z "$ac_cpp_err"; then
6442  ac_header_preproc=yes
6443else
6444  echo "$as_me: failed program was:" >&5
6445  cat conftest.$ac_ext >&5
6446  ac_header_preproc=no
6447fi
6448rm -f conftest.err conftest.$ac_ext
6449echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6450echo "${ECHO_T}$ac_header_preproc" >&6
6451
6452# So?  What about this header?
6453case $ac_header_compiler:$ac_header_preproc in
6454  yes:no )
6455    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6456echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6457    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6458echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6459  no:yes )
6460    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6461echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6462    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6463echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6464    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6465echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6466esac
6467echo "$as_me:$LINENO: checking for $ac_header" >&5
6468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6469if eval "test \"\${$as_ac_Header+set}\" = set"; then
6470  echo $ECHO_N "(cached) $ECHO_C" >&6
6471else
6472  eval "$as_ac_Header=$ac_header_preproc"
6473fi
6474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6475echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6476
6477fi
6478if test `eval echo '${'$as_ac_Header'}'` = yes; then
6479  cat >>confdefs.h <<_ACEOF
6480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6481_ACEOF
6482
6483fi
6484
6485done
6486
6487case "$host" in
6488 *-*-sco*)
6489
6490for ac_header in sys/sio.h
6491do
6492as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6493if eval "test \"\${$as_ac_Header+set}\" = set"; then
6494  echo "$as_me:$LINENO: checking for $ac_header" >&5
6495echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6496if eval "test \"\${$as_ac_Header+set}\" = set"; then
6497  echo $ECHO_N "(cached) $ECHO_C" >&6
6498fi
6499echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6500echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6501else
6502  # Is the header compilable?
6503echo "$as_me:$LINENO: checking $ac_header usability" >&5
6504echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6505cat >conftest.$ac_ext <<_ACEOF
6506#line $LINENO "configure"
6507#include "confdefs.h"
6508$ac_includes_default
6509#include <$ac_header>
6510_ACEOF
6511rm -f conftest.$ac_objext
6512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6513  (eval $ac_compile) 2>&5
6514  ac_status=$?
6515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516  (exit $ac_status); } &&
6517         { ac_try='test -s conftest.$ac_objext'
6518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519  (eval $ac_try) 2>&5
6520  ac_status=$?
6521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522  (exit $ac_status); }; }; then
6523  ac_header_compiler=yes
6524else
6525  echo "$as_me: failed program was:" >&5
6526cat conftest.$ac_ext >&5
6527ac_header_compiler=no
6528fi
6529rm -f conftest.$ac_objext conftest.$ac_ext
6530echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6531echo "${ECHO_T}$ac_header_compiler" >&6
6532
6533# Is the header present?
6534echo "$as_me:$LINENO: checking $ac_header presence" >&5
6535echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6536cat >conftest.$ac_ext <<_ACEOF
6537#line $LINENO "configure"
6538#include "confdefs.h"
6539#include <$ac_header>
6540_ACEOF
6541if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6542  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6543  ac_status=$?
6544  egrep -v '^ *\+' conftest.er1 >conftest.err
6545  rm -f conftest.er1
6546  cat conftest.err >&5
6547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548  (exit $ac_status); } >/dev/null; then
6549  if test -s conftest.err; then
6550    ac_cpp_err=$ac_c_preproc_warn_flag
6551  else
6552    ac_cpp_err=
6553  fi
6554else
6555  ac_cpp_err=yes
6556fi
6557if test -z "$ac_cpp_err"; then
6558  ac_header_preproc=yes
6559else
6560  echo "$as_me: failed program was:" >&5
6561  cat conftest.$ac_ext >&5
6562  ac_header_preproc=no
6563fi
6564rm -f conftest.err conftest.$ac_ext
6565echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6566echo "${ECHO_T}$ac_header_preproc" >&6
6567
6568# So?  What about this header?
6569case $ac_header_compiler:$ac_header_preproc in
6570  yes:no )
6571    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6572echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6573    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6574echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6575  no:yes )
6576    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6577echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6578    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6579echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6580    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6581echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6582esac
6583echo "$as_me:$LINENO: checking for $ac_header" >&5
6584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6585if eval "test \"\${$as_ac_Header+set}\" = set"; then
6586  echo $ECHO_N "(cached) $ECHO_C" >&6
6587else
6588  eval "$as_ac_Header=$ac_header_preproc"
6589fi
6590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6591echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6592
6593fi
6594if test `eval echo '${'$as_ac_Header'}'` = yes; then
6595  cat >>confdefs.h <<_ACEOF
6596#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6597_ACEOF
6598
6599fi
6600
6601done
6602
6603    ;;
6604esac
6605
6606
6607
6608for ac_header in sys/select.h sys/signal.h sys/sockio.h
6609do
6610as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6611if eval "test \"\${$as_ac_Header+set}\" = set"; then
6612  echo "$as_me:$LINENO: checking for $ac_header" >&5
6613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6614if eval "test \"\${$as_ac_Header+set}\" = set"; then
6615  echo $ECHO_N "(cached) $ECHO_C" >&6
6616fi
6617echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6618echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6619else
6620  # Is the header compilable?
6621echo "$as_me:$LINENO: checking $ac_header usability" >&5
6622echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6623cat >conftest.$ac_ext <<_ACEOF
6624#line $LINENO "configure"
6625#include "confdefs.h"
6626$ac_includes_default
6627#include <$ac_header>
6628_ACEOF
6629rm -f conftest.$ac_objext
6630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6631  (eval $ac_compile) 2>&5
6632  ac_status=$?
6633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634  (exit $ac_status); } &&
6635         { ac_try='test -s conftest.$ac_objext'
6636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637  (eval $ac_try) 2>&5
6638  ac_status=$?
6639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640  (exit $ac_status); }; }; then
6641  ac_header_compiler=yes
6642else
6643  echo "$as_me: failed program was:" >&5
6644cat conftest.$ac_ext >&5
6645ac_header_compiler=no
6646fi
6647rm -f conftest.$ac_objext conftest.$ac_ext
6648echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6649echo "${ECHO_T}$ac_header_compiler" >&6
6650
6651# Is the header present?
6652echo "$as_me:$LINENO: checking $ac_header presence" >&5
6653echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6654cat >conftest.$ac_ext <<_ACEOF
6655#line $LINENO "configure"
6656#include "confdefs.h"
6657#include <$ac_header>
6658_ACEOF
6659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6660  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6661  ac_status=$?
6662  egrep -v '^ *\+' conftest.er1 >conftest.err
6663  rm -f conftest.er1
6664  cat conftest.err >&5
6665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666  (exit $ac_status); } >/dev/null; then
6667  if test -s conftest.err; then
6668    ac_cpp_err=$ac_c_preproc_warn_flag
6669  else
6670    ac_cpp_err=
6671  fi
6672else
6673  ac_cpp_err=yes
6674fi
6675if test -z "$ac_cpp_err"; then
6676  ac_header_preproc=yes
6677else
6678  echo "$as_me: failed program was:" >&5
6679  cat conftest.$ac_ext >&5
6680  ac_header_preproc=no
6681fi
6682rm -f conftest.err conftest.$ac_ext
6683echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6684echo "${ECHO_T}$ac_header_preproc" >&6
6685
6686# So?  What about this header?
6687case $ac_header_compiler:$ac_header_preproc in
6688  yes:no )
6689    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6690echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6691    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6692echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6693  no:yes )
6694    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6695echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6696    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6697echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6698    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6699echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6700esac
6701echo "$as_me:$LINENO: checking for $ac_header" >&5
6702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6703if eval "test \"\${$as_ac_Header+set}\" = set"; then
6704  echo $ECHO_N "(cached) $ECHO_C" >&6
6705else
6706  eval "$as_ac_Header=$ac_header_preproc"
6707fi
6708echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6709echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6710
6711fi
6712if test `eval echo '${'$as_ac_Header'}'` = yes; then
6713  cat >>confdefs.h <<_ACEOF
6714#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6715_ACEOF
6716
6717fi
6718
6719done
6720
6721
6722
6723for ac_header in machine/soundcard.h sys/soundcard.h
6724do
6725as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6726if eval "test \"\${$as_ac_Header+set}\" = set"; then
6727  echo "$as_me:$LINENO: checking for $ac_header" >&5
6728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6729if eval "test \"\${$as_ac_Header+set}\" = set"; then
6730  echo $ECHO_N "(cached) $ECHO_C" >&6
6731fi
6732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6733echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6734else
6735  # Is the header compilable?
6736echo "$as_me:$LINENO: checking $ac_header usability" >&5
6737echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6738cat >conftest.$ac_ext <<_ACEOF
6739#line $LINENO "configure"
6740#include "confdefs.h"
6741$ac_includes_default
6742#include <$ac_header>
6743_ACEOF
6744rm -f conftest.$ac_objext
6745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6746  (eval $ac_compile) 2>&5
6747  ac_status=$?
6748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749  (exit $ac_status); } &&
6750         { ac_try='test -s conftest.$ac_objext'
6751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752  (eval $ac_try) 2>&5
6753  ac_status=$?
6754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755  (exit $ac_status); }; }; then
6756  ac_header_compiler=yes
6757else
6758  echo "$as_me: failed program was:" >&5
6759cat conftest.$ac_ext >&5
6760ac_header_compiler=no
6761fi
6762rm -f conftest.$ac_objext conftest.$ac_ext
6763echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6764echo "${ECHO_T}$ac_header_compiler" >&6
6765
6766# Is the header present?
6767echo "$as_me:$LINENO: checking $ac_header presence" >&5
6768echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6769cat >conftest.$ac_ext <<_ACEOF
6770#line $LINENO "configure"
6771#include "confdefs.h"
6772#include <$ac_header>
6773_ACEOF
6774if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6775  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6776  ac_status=$?
6777  egrep -v '^ *\+' conftest.er1 >conftest.err
6778  rm -f conftest.er1
6779  cat conftest.err >&5
6780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781  (exit $ac_status); } >/dev/null; then
6782  if test -s conftest.err; then
6783    ac_cpp_err=$ac_c_preproc_warn_flag
6784  else
6785    ac_cpp_err=
6786  fi
6787else
6788  ac_cpp_err=yes
6789fi
6790if test -z "$ac_cpp_err"; then
6791  ac_header_preproc=yes
6792else
6793  echo "$as_me: failed program was:" >&5
6794  cat conftest.$ac_ext >&5
6795  ac_header_preproc=no
6796fi
6797rm -f conftest.err conftest.$ac_ext
6798echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6799echo "${ECHO_T}$ac_header_preproc" >&6
6800
6801# So?  What about this header?
6802case $ac_header_compiler:$ac_header_preproc in
6803  yes:no )
6804    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6805echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6806    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6807echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6808  no:yes )
6809    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6810echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6811    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6812echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6813    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6814echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6815esac
6816echo "$as_me:$LINENO: checking for $ac_header" >&5
6817echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6818if eval "test \"\${$as_ac_Header+set}\" = set"; then
6819  echo $ECHO_N "(cached) $ECHO_C" >&6
6820else
6821  eval "$as_ac_Header=$ac_header_preproc"
6822fi
6823echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6824echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6825
6826fi
6827if test `eval echo '${'$as_ac_Header'}'` = yes; then
6828  cat >>confdefs.h <<_ACEOF
6829#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6830_ACEOF
6831
6832fi
6833
6834done
6835
6836
6837
6838for ac_header in sys/stat.h sys/stream.h
6839do
6840as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6841if eval "test \"\${$as_ac_Header+set}\" = set"; then
6842  echo "$as_me:$LINENO: checking for $ac_header" >&5
6843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6844if eval "test \"\${$as_ac_Header+set}\" = set"; then
6845  echo $ECHO_N "(cached) $ECHO_C" >&6
6846fi
6847echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6848echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6849else
6850  # Is the header compilable?
6851echo "$as_me:$LINENO: checking $ac_header usability" >&5
6852echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6853cat >conftest.$ac_ext <<_ACEOF
6854#line $LINENO "configure"
6855#include "confdefs.h"
6856$ac_includes_default
6857#include <$ac_header>
6858_ACEOF
6859rm -f conftest.$ac_objext
6860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6861  (eval $ac_compile) 2>&5
6862  ac_status=$?
6863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864  (exit $ac_status); } &&
6865         { ac_try='test -s conftest.$ac_objext'
6866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6867  (eval $ac_try) 2>&5
6868  ac_status=$?
6869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870  (exit $ac_status); }; }; then
6871  ac_header_compiler=yes
6872else
6873  echo "$as_me: failed program was:" >&5
6874cat conftest.$ac_ext >&5
6875ac_header_compiler=no
6876fi
6877rm -f conftest.$ac_objext conftest.$ac_ext
6878echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6879echo "${ECHO_T}$ac_header_compiler" >&6
6880
6881# Is the header present?
6882echo "$as_me:$LINENO: checking $ac_header presence" >&5
6883echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6884cat >conftest.$ac_ext <<_ACEOF
6885#line $LINENO "configure"
6886#include "confdefs.h"
6887#include <$ac_header>
6888_ACEOF
6889if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6890  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6891  ac_status=$?
6892  egrep -v '^ *\+' conftest.er1 >conftest.err
6893  rm -f conftest.er1
6894  cat conftest.err >&5
6895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896  (exit $ac_status); } >/dev/null; then
6897  if test -s conftest.err; then
6898    ac_cpp_err=$ac_c_preproc_warn_flag
6899  else
6900    ac_cpp_err=
6901  fi
6902else
6903  ac_cpp_err=yes
6904fi
6905if test -z "$ac_cpp_err"; then
6906  ac_header_preproc=yes
6907else
6908  echo "$as_me: failed program was:" >&5
6909  cat conftest.$ac_ext >&5
6910  ac_header_preproc=no
6911fi
6912rm -f conftest.err conftest.$ac_ext
6913echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6914echo "${ECHO_T}$ac_header_preproc" >&6
6915
6916# So?  What about this header?
6917case $ac_header_compiler:$ac_header_preproc in
6918  yes:no )
6919    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6920echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6921    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6922echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6923  no:yes )
6924    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6925echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6926    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6927echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6928    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6929echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6930esac
6931echo "$as_me:$LINENO: checking for $ac_header" >&5
6932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6933if eval "test \"\${$as_ac_Header+set}\" = set"; then
6934  echo $ECHO_N "(cached) $ECHO_C" >&6
6935else
6936  eval "$as_ac_Header=$ac_header_preproc"
6937fi
6938echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6939echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6940
6941fi
6942if test `eval echo '${'$as_ac_Header'}'` = yes; then
6943  cat >>confdefs.h <<_ACEOF
6944#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6945_ACEOF
6946
6947fi
6948
6949done
6950
6951
6952
6953
6954
6955for ac_header in sys/stropts.h sys/sysctl.h sys/syssgi.h sys/termios.h
6956do
6957as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6958if eval "test \"\${$as_ac_Header+set}\" = set"; then
6959  echo "$as_me:$LINENO: checking for $ac_header" >&5
6960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6961if eval "test \"\${$as_ac_Header+set}\" = set"; then
6962  echo $ECHO_N "(cached) $ECHO_C" >&6
6963fi
6964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6965echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6966else
6967  # Is the header compilable?
6968echo "$as_me:$LINENO: checking $ac_header usability" >&5
6969echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6970cat >conftest.$ac_ext <<_ACEOF
6971#line $LINENO "configure"
6972#include "confdefs.h"
6973$ac_includes_default
6974#include <$ac_header>
6975_ACEOF
6976rm -f conftest.$ac_objext
6977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6978  (eval $ac_compile) 2>&5
6979  ac_status=$?
6980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981  (exit $ac_status); } &&
6982         { ac_try='test -s conftest.$ac_objext'
6983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984  (eval $ac_try) 2>&5
6985  ac_status=$?
6986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987  (exit $ac_status); }; }; then
6988  ac_header_compiler=yes
6989else
6990  echo "$as_me: failed program was:" >&5
6991cat conftest.$ac_ext >&5
6992ac_header_compiler=no
6993fi
6994rm -f conftest.$ac_objext conftest.$ac_ext
6995echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6996echo "${ECHO_T}$ac_header_compiler" >&6
6997
6998# Is the header present?
6999echo "$as_me:$LINENO: checking $ac_header presence" >&5
7000echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7001cat >conftest.$ac_ext <<_ACEOF
7002#line $LINENO "configure"
7003#include "confdefs.h"
7004#include <$ac_header>
7005_ACEOF
7006if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7007  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7008  ac_status=$?
7009  egrep -v '^ *\+' conftest.er1 >conftest.err
7010  rm -f conftest.er1
7011  cat conftest.err >&5
7012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013  (exit $ac_status); } >/dev/null; then
7014  if test -s conftest.err; then
7015    ac_cpp_err=$ac_c_preproc_warn_flag
7016  else
7017    ac_cpp_err=
7018  fi
7019else
7020  ac_cpp_err=yes
7021fi
7022if test -z "$ac_cpp_err"; then
7023  ac_header_preproc=yes
7024else
7025  echo "$as_me: failed program was:" >&5
7026  cat conftest.$ac_ext >&5
7027  ac_header_preproc=no
7028fi
7029rm -f conftest.err conftest.$ac_ext
7030echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7031echo "${ECHO_T}$ac_header_preproc" >&6
7032
7033# So?  What about this header?
7034case $ac_header_compiler:$ac_header_preproc in
7035  yes:no )
7036    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7037echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7038    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7039echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7040  no:yes )
7041    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7042echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7043    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7044echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7045    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7046echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7047esac
7048echo "$as_me:$LINENO: checking for $ac_header" >&5
7049echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7050if eval "test \"\${$as_ac_Header+set}\" = set"; then
7051  echo $ECHO_N "(cached) $ECHO_C" >&6
7052else
7053  eval "$as_ac_Header=$ac_header_preproc"
7054fi
7055echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7056echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7057
7058fi
7059if test `eval echo '${'$as_ac_Header'}'` = yes; then
7060  cat >>confdefs.h <<_ACEOF
7061#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7062_ACEOF
7063
7064fi
7065
7066done
7067
7068
7069
7070for ac_header in sys/time.h sys/signal.h
7071do
7072as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7073if eval "test \"\${$as_ac_Header+set}\" = set"; then
7074  echo "$as_me:$LINENO: checking for $ac_header" >&5
7075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7076if eval "test \"\${$as_ac_Header+set}\" = set"; then
7077  echo $ECHO_N "(cached) $ECHO_C" >&6
7078fi
7079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7080echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7081else
7082  # Is the header compilable?
7083echo "$as_me:$LINENO: checking $ac_header usability" >&5
7084echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7085cat >conftest.$ac_ext <<_ACEOF
7086#line $LINENO "configure"
7087#include "confdefs.h"
7088$ac_includes_default
7089#include <$ac_header>
7090_ACEOF
7091rm -f conftest.$ac_objext
7092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7093  (eval $ac_compile) 2>&5
7094  ac_status=$?
7095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096  (exit $ac_status); } &&
7097         { ac_try='test -s conftest.$ac_objext'
7098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7099  (eval $ac_try) 2>&5
7100  ac_status=$?
7101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102  (exit $ac_status); }; }; then
7103  ac_header_compiler=yes
7104else
7105  echo "$as_me: failed program was:" >&5
7106cat conftest.$ac_ext >&5
7107ac_header_compiler=no
7108fi
7109rm -f conftest.$ac_objext conftest.$ac_ext
7110echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7111echo "${ECHO_T}$ac_header_compiler" >&6
7112
7113# Is the header present?
7114echo "$as_me:$LINENO: checking $ac_header presence" >&5
7115echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7116cat >conftest.$ac_ext <<_ACEOF
7117#line $LINENO "configure"
7118#include "confdefs.h"
7119#include <$ac_header>
7120_ACEOF
7121if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7122  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7123  ac_status=$?
7124  egrep -v '^ *\+' conftest.er1 >conftest.err
7125  rm -f conftest.er1
7126  cat conftest.err >&5
7127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128  (exit $ac_status); } >/dev/null; then
7129  if test -s conftest.err; then
7130    ac_cpp_err=$ac_c_preproc_warn_flag
7131  else
7132    ac_cpp_err=
7133  fi
7134else
7135  ac_cpp_err=yes
7136fi
7137if test -z "$ac_cpp_err"; then
7138  ac_header_preproc=yes
7139else
7140  echo "$as_me: failed program was:" >&5
7141  cat conftest.$ac_ext >&5
7142  ac_header_preproc=no
7143fi
7144rm -f conftest.err conftest.$ac_ext
7145echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7146echo "${ECHO_T}$ac_header_preproc" >&6
7147
7148# So?  What about this header?
7149case $ac_header_compiler:$ac_header_preproc in
7150  yes:no )
7151    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7152echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7153    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7154echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7155  no:yes )
7156    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7157echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7158    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7159echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7160    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7161echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7162esac
7163echo "$as_me:$LINENO: checking for $ac_header" >&5
7164echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7165if eval "test \"\${$as_ac_Header+set}\" = set"; then
7166  echo $ECHO_N "(cached) $ECHO_C" >&6
7167else
7168  eval "$as_ac_Header=$ac_header_preproc"
7169fi
7170echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7171echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7172
7173fi
7174if test `eval echo '${'$as_ac_Header'}'` = yes; then
7175  cat >>confdefs.h <<_ACEOF
7176#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7177_ACEOF
7178
7179fi
7180
7181done
7182
7183cat >conftest.$ac_ext <<_ACEOF
7184#line $LINENO "configure"
7185#include "confdefs.h"
7186#include <sys/timepps.h>
7187#ifdef PPS_API_VERS_1
7188yes
7189#endif
7190
7191_ACEOF
7192if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7193  egrep "yes" >/dev/null 2>&1; then
7194
7195for ac_header in sys/timepps.h
7196do
7197as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7198if eval "test \"\${$as_ac_Header+set}\" = set"; then
7199  echo "$as_me:$LINENO: checking for $ac_header" >&5
7200echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7201if eval "test \"\${$as_ac_Header+set}\" = set"; then
7202  echo $ECHO_N "(cached) $ECHO_C" >&6
7203fi
7204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7205echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7206else
7207  # Is the header compilable?
7208echo "$as_me:$LINENO: checking $ac_header usability" >&5
7209echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7210cat >conftest.$ac_ext <<_ACEOF
7211#line $LINENO "configure"
7212#include "confdefs.h"
7213$ac_includes_default
7214#include <$ac_header>
7215_ACEOF
7216rm -f conftest.$ac_objext
7217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7218  (eval $ac_compile) 2>&5
7219  ac_status=$?
7220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221  (exit $ac_status); } &&
7222         { ac_try='test -s conftest.$ac_objext'
7223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224  (eval $ac_try) 2>&5
7225  ac_status=$?
7226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227  (exit $ac_status); }; }; then
7228  ac_header_compiler=yes
7229else
7230  echo "$as_me: failed program was:" >&5
7231cat conftest.$ac_ext >&5
7232ac_header_compiler=no
7233fi
7234rm -f conftest.$ac_objext conftest.$ac_ext
7235echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7236echo "${ECHO_T}$ac_header_compiler" >&6
7237
7238# Is the header present?
7239echo "$as_me:$LINENO: checking $ac_header presence" >&5
7240echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7241cat >conftest.$ac_ext <<_ACEOF
7242#line $LINENO "configure"
7243#include "confdefs.h"
7244#include <$ac_header>
7245_ACEOF
7246if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7247  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7248  ac_status=$?
7249  egrep -v '^ *\+' conftest.er1 >conftest.err
7250  rm -f conftest.er1
7251  cat conftest.err >&5
7252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253  (exit $ac_status); } >/dev/null; then
7254  if test -s conftest.err; then
7255    ac_cpp_err=$ac_c_preproc_warn_flag
7256  else
7257    ac_cpp_err=
7258  fi
7259else
7260  ac_cpp_err=yes
7261fi
7262if test -z "$ac_cpp_err"; then
7263  ac_header_preproc=yes
7264else
7265  echo "$as_me: failed program was:" >&5
7266  cat conftest.$ac_ext >&5
7267  ac_header_preproc=no
7268fi
7269rm -f conftest.err conftest.$ac_ext
7270echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7271echo "${ECHO_T}$ac_header_preproc" >&6
7272
7273# So?  What about this header?
7274case $ac_header_compiler:$ac_header_preproc in
7275  yes:no )
7276    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7277echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7278    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7279echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7280  no:yes )
7281    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7282echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7283    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7284echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7285    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7286echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7287esac
7288echo "$as_me:$LINENO: checking for $ac_header" >&5
7289echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7290if eval "test \"\${$as_ac_Header+set}\" = set"; then
7291  echo $ECHO_N "(cached) $ECHO_C" >&6
7292else
7293  eval "$as_ac_Header=$ac_header_preproc"
7294fi
7295echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7296echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7297
7298fi
7299if test `eval echo '${'$as_ac_Header'}'` = yes; then
7300  cat >>confdefs.h <<_ACEOF
7301#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7302_ACEOF
7303
7304fi
7305
7306done
7307
7308fi
7309rm -f conftest*
7310
7311
7312
7313
7314
7315
7316for ac_header in sys/timers.h sys/timex.h sys/tpro.h sys/types.h sys/wait.h
7317do
7318as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7319if eval "test \"\${$as_ac_Header+set}\" = set"; then
7320  echo "$as_me:$LINENO: checking for $ac_header" >&5
7321echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7322if eval "test \"\${$as_ac_Header+set}\" = set"; then
7323  echo $ECHO_N "(cached) $ECHO_C" >&6
7324fi
7325echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7326echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7327else
7328  # Is the header compilable?
7329echo "$as_me:$LINENO: checking $ac_header usability" >&5
7330echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7331cat >conftest.$ac_ext <<_ACEOF
7332#line $LINENO "configure"
7333#include "confdefs.h"
7334$ac_includes_default
7335#include <$ac_header>
7336_ACEOF
7337rm -f conftest.$ac_objext
7338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7339  (eval $ac_compile) 2>&5
7340  ac_status=$?
7341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342  (exit $ac_status); } &&
7343         { ac_try='test -s conftest.$ac_objext'
7344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7345  (eval $ac_try) 2>&5
7346  ac_status=$?
7347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348  (exit $ac_status); }; }; then
7349  ac_header_compiler=yes
7350else
7351  echo "$as_me: failed program was:" >&5
7352cat conftest.$ac_ext >&5
7353ac_header_compiler=no
7354fi
7355rm -f conftest.$ac_objext conftest.$ac_ext
7356echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7357echo "${ECHO_T}$ac_header_compiler" >&6
7358
7359# Is the header present?
7360echo "$as_me:$LINENO: checking $ac_header presence" >&5
7361echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7362cat >conftest.$ac_ext <<_ACEOF
7363#line $LINENO "configure"
7364#include "confdefs.h"
7365#include <$ac_header>
7366_ACEOF
7367if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7368  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7369  ac_status=$?
7370  egrep -v '^ *\+' conftest.er1 >conftest.err
7371  rm -f conftest.er1
7372  cat conftest.err >&5
7373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374  (exit $ac_status); } >/dev/null; then
7375  if test -s conftest.err; then
7376    ac_cpp_err=$ac_c_preproc_warn_flag
7377  else
7378    ac_cpp_err=
7379  fi
7380else
7381  ac_cpp_err=yes
7382fi
7383if test -z "$ac_cpp_err"; then
7384  ac_header_preproc=yes
7385else
7386  echo "$as_me: failed program was:" >&5
7387  cat conftest.$ac_ext >&5
7388  ac_header_preproc=no
7389fi
7390rm -f conftest.err conftest.$ac_ext
7391echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7392echo "${ECHO_T}$ac_header_preproc" >&6
7393
7394# So?  What about this header?
7395case $ac_header_compiler:$ac_header_preproc in
7396  yes:no )
7397    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7398echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7399    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7400echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7401  no:yes )
7402    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7403echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7404    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7405echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7406    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7407echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7408esac
7409echo "$as_me:$LINENO: checking for $ac_header" >&5
7410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7411if eval "test \"\${$as_ac_Header+set}\" = set"; then
7412  echo $ECHO_N "(cached) $ECHO_C" >&6
7413else
7414  eval "$as_ac_Header=$ac_header_preproc"
7415fi
7416echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7417echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7418
7419fi
7420if test `eval echo '${'$as_ac_Header'}'` = yes; then
7421  cat >>confdefs.h <<_ACEOF
7422#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7423_ACEOF
7424
7425fi
7426
7427done
7428
7429echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7430echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7431if test "${ac_cv_header_time+set}" = set; then
7432  echo $ECHO_N "(cached) $ECHO_C" >&6
7433else
7434  cat >conftest.$ac_ext <<_ACEOF
7435#line $LINENO "configure"
7436#include "confdefs.h"
7437#include <sys/types.h>
7438#include <sys/time.h>
7439#include <time.h>
7440
7441#ifdef F77_DUMMY_MAIN
7442#  ifdef __cplusplus
7443     extern "C"
7444#  endif
7445   int F77_DUMMY_MAIN() { return 1; }
7446#endif
7447int
7448main ()
7449{
7450if ((struct tm *) 0)
7451return 0;
7452  ;
7453  return 0;
7454}
7455_ACEOF
7456rm -f conftest.$ac_objext
7457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7458  (eval $ac_compile) 2>&5
7459  ac_status=$?
7460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461  (exit $ac_status); } &&
7462         { ac_try='test -s conftest.$ac_objext'
7463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464  (eval $ac_try) 2>&5
7465  ac_status=$?
7466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467  (exit $ac_status); }; }; then
7468  ac_cv_header_time=yes
7469else
7470  echo "$as_me: failed program was:" >&5
7471cat conftest.$ac_ext >&5
7472ac_cv_header_time=no
7473fi
7474rm -f conftest.$ac_objext conftest.$ac_ext
7475fi
7476echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7477echo "${ECHO_T}$ac_cv_header_time" >&6
7478if test $ac_cv_header_time = yes; then
7479
7480cat >>confdefs.h <<\_ACEOF
7481#define TIME_WITH_SYS_TIME 1
7482_ACEOF
7483
7484fi
7485
7486case "$host" in
7487*-convex-*)
7488
7489
7490for ac_header in /sys/sync/queue.h /sys/sync/sema.h
7491do
7492as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7493if eval "test \"\${$as_ac_Header+set}\" = set"; then
7494  echo "$as_me:$LINENO: checking for $ac_header" >&5
7495echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7496if eval "test \"\${$as_ac_Header+set}\" = set"; then
7497  echo $ECHO_N "(cached) $ECHO_C" >&6
7498fi
7499echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7500echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7501else
7502  # Is the header compilable?
7503echo "$as_me:$LINENO: checking $ac_header usability" >&5
7504echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7505cat >conftest.$ac_ext <<_ACEOF
7506#line $LINENO "configure"
7507#include "confdefs.h"
7508$ac_includes_default
7509#include <$ac_header>
7510_ACEOF
7511rm -f conftest.$ac_objext
7512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7513  (eval $ac_compile) 2>&5
7514  ac_status=$?
7515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516  (exit $ac_status); } &&
7517         { ac_try='test -s conftest.$ac_objext'
7518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519  (eval $ac_try) 2>&5
7520  ac_status=$?
7521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522  (exit $ac_status); }; }; then
7523  ac_header_compiler=yes
7524else
7525  echo "$as_me: failed program was:" >&5
7526cat conftest.$ac_ext >&5
7527ac_header_compiler=no
7528fi
7529rm -f conftest.$ac_objext conftest.$ac_ext
7530echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7531echo "${ECHO_T}$ac_header_compiler" >&6
7532
7533# Is the header present?
7534echo "$as_me:$LINENO: checking $ac_header presence" >&5
7535echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7536cat >conftest.$ac_ext <<_ACEOF
7537#line $LINENO "configure"
7538#include "confdefs.h"
7539#include <$ac_header>
7540_ACEOF
7541if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7542  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7543  ac_status=$?
7544  egrep -v '^ *\+' conftest.er1 >conftest.err
7545  rm -f conftest.er1
7546  cat conftest.err >&5
7547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548  (exit $ac_status); } >/dev/null; then
7549  if test -s conftest.err; then
7550    ac_cpp_err=$ac_c_preproc_warn_flag
7551  else
7552    ac_cpp_err=
7553  fi
7554else
7555  ac_cpp_err=yes
7556fi
7557if test -z "$ac_cpp_err"; then
7558  ac_header_preproc=yes
7559else
7560  echo "$as_me: failed program was:" >&5
7561  cat conftest.$ac_ext >&5
7562  ac_header_preproc=no
7563fi
7564rm -f conftest.err conftest.$ac_ext
7565echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7566echo "${ECHO_T}$ac_header_preproc" >&6
7567
7568# So?  What about this header?
7569case $ac_header_compiler:$ac_header_preproc in
7570  yes:no )
7571    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7572echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7573    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7574echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7575  no:yes )
7576    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7577echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7578    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7579echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7580    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7581echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7582esac
7583echo "$as_me:$LINENO: checking for $ac_header" >&5
7584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7585if eval "test \"\${$as_ac_Header+set}\" = set"; then
7586  echo $ECHO_N "(cached) $ECHO_C" >&6
7587else
7588  eval "$as_ac_Header=$ac_header_preproc"
7589fi
7590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7591echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7592
7593fi
7594if test `eval echo '${'$as_ac_Header'}'` = yes; then
7595  cat >>confdefs.h <<_ACEOF
7596#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7597_ACEOF
7598
7599fi
7600
7601done
7602
7603  ;;
7604*-*-bsdi*)
7605
7606
7607
7608for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
7609do
7610as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7611if eval "test \"\${$as_ac_Header+set}\" = set"; then
7612  echo "$as_me:$LINENO: checking for $ac_header" >&5
7613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7614if eval "test \"\${$as_ac_Header+set}\" = set"; then
7615  echo $ECHO_N "(cached) $ECHO_C" >&6
7616fi
7617echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7618echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7619else
7620  # Is the header compilable?
7621echo "$as_me:$LINENO: checking $ac_header usability" >&5
7622echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7623cat >conftest.$ac_ext <<_ACEOF
7624#line $LINENO "configure"
7625#include "confdefs.h"
7626$ac_includes_default
7627#include <$ac_header>
7628_ACEOF
7629rm -f conftest.$ac_objext
7630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7631  (eval $ac_compile) 2>&5
7632  ac_status=$?
7633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634  (exit $ac_status); } &&
7635         { ac_try='test -s conftest.$ac_objext'
7636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637  (eval $ac_try) 2>&5
7638  ac_status=$?
7639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640  (exit $ac_status); }; }; then
7641  ac_header_compiler=yes
7642else
7643  echo "$as_me: failed program was:" >&5
7644cat conftest.$ac_ext >&5
7645ac_header_compiler=no
7646fi
7647rm -f conftest.$ac_objext conftest.$ac_ext
7648echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7649echo "${ECHO_T}$ac_header_compiler" >&6
7650
7651# Is the header present?
7652echo "$as_me:$LINENO: checking $ac_header presence" >&5
7653echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7654cat >conftest.$ac_ext <<_ACEOF
7655#line $LINENO "configure"
7656#include "confdefs.h"
7657#include <$ac_header>
7658_ACEOF
7659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7660  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7661  ac_status=$?
7662  egrep -v '^ *\+' conftest.er1 >conftest.err
7663  rm -f conftest.er1
7664  cat conftest.err >&5
7665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666  (exit $ac_status); } >/dev/null; then
7667  if test -s conftest.err; then
7668    ac_cpp_err=$ac_c_preproc_warn_flag
7669  else
7670    ac_cpp_err=
7671  fi
7672else
7673  ac_cpp_err=yes
7674fi
7675if test -z "$ac_cpp_err"; then
7676  ac_header_preproc=yes
7677else
7678  echo "$as_me: failed program was:" >&5
7679  cat conftest.$ac_ext >&5
7680  ac_header_preproc=no
7681fi
7682rm -f conftest.err conftest.$ac_ext
7683echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7684echo "${ECHO_T}$ac_header_preproc" >&6
7685
7686# So?  What about this header?
7687case $ac_header_compiler:$ac_header_preproc in
7688  yes:no )
7689    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7690echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7691    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7692echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7693  no:yes )
7694    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7695echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7696    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7697echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7698    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7699echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7700esac
7701echo "$as_me:$LINENO: checking for $ac_header" >&5
7702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7703if eval "test \"\${$as_ac_Header+set}\" = set"; then
7704  echo $ECHO_N "(cached) $ECHO_C" >&6
7705else
7706  eval "$as_ac_Header=$ac_header_preproc"
7707fi
7708echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7709echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7710
7711fi
7712if test `eval echo '${'$as_ac_Header'}'` = yes; then
7713  cat >>confdefs.h <<_ACEOF
7714#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7715_ACEOF
7716
7717fi
7718
7719done
7720
7721  ;;
7722esac
7723
7724if test "${ac_cv_header_nlist_h+set}" = set; then
7725  echo "$as_me:$LINENO: checking for nlist.h" >&5
7726echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6
7727if test "${ac_cv_header_nlist_h+set}" = set; then
7728  echo $ECHO_N "(cached) $ECHO_C" >&6
7729fi
7730echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
7731echo "${ECHO_T}$ac_cv_header_nlist_h" >&6
7732else
7733  # Is the header compilable?
7734echo "$as_me:$LINENO: checking nlist.h usability" >&5
7735echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6
7736cat >conftest.$ac_ext <<_ACEOF
7737#line $LINENO "configure"
7738#include "confdefs.h"
7739$ac_includes_default
7740#include <nlist.h>
7741_ACEOF
7742rm -f conftest.$ac_objext
7743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7744  (eval $ac_compile) 2>&5
7745  ac_status=$?
7746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747  (exit $ac_status); } &&
7748         { ac_try='test -s conftest.$ac_objext'
7749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7750  (eval $ac_try) 2>&5
7751  ac_status=$?
7752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753  (exit $ac_status); }; }; then
7754  ac_header_compiler=yes
7755else
7756  echo "$as_me: failed program was:" >&5
7757cat conftest.$ac_ext >&5
7758ac_header_compiler=no
7759fi
7760rm -f conftest.$ac_objext conftest.$ac_ext
7761echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7762echo "${ECHO_T}$ac_header_compiler" >&6
7763
7764# Is the header present?
7765echo "$as_me:$LINENO: checking nlist.h presence" >&5
7766echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6
7767cat >conftest.$ac_ext <<_ACEOF
7768#line $LINENO "configure"
7769#include "confdefs.h"
7770#include <nlist.h>
7771_ACEOF
7772if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7773  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7774  ac_status=$?
7775  egrep -v '^ *\+' conftest.er1 >conftest.err
7776  rm -f conftest.er1
7777  cat conftest.err >&5
7778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779  (exit $ac_status); } >/dev/null; then
7780  if test -s conftest.err; then
7781    ac_cpp_err=$ac_c_preproc_warn_flag
7782  else
7783    ac_cpp_err=
7784  fi
7785else
7786  ac_cpp_err=yes
7787fi
7788if test -z "$ac_cpp_err"; then
7789  ac_header_preproc=yes
7790else
7791  echo "$as_me: failed program was:" >&5
7792  cat conftest.$ac_ext >&5
7793  ac_header_preproc=no
7794fi
7795rm -f conftest.err conftest.$ac_ext
7796echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7797echo "${ECHO_T}$ac_header_preproc" >&6
7798
7799# So?  What about this header?
7800case $ac_header_compiler:$ac_header_preproc in
7801  yes:no )
7802    { echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
7803echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7804    { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5
7805echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;};;
7806  no:yes )
7807    { echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled" >&5
7808echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;}
7809    { echo "$as_me:$LINENO: WARNING: nlist.h: check for missing prerequisite headers?" >&5
7810echo "$as_me: WARNING: nlist.h: check for missing prerequisite headers?" >&2;}
7811    { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5
7812echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;};;
7813esac
7814echo "$as_me:$LINENO: checking for nlist.h" >&5
7815echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6
7816if test "${ac_cv_header_nlist_h+set}" = set; then
7817  echo $ECHO_N "(cached) $ECHO_C" >&6
7818else
7819  ac_cv_header_nlist_h=$ac_header_preproc
7820fi
7821echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
7822echo "${ECHO_T}$ac_cv_header_nlist_h" >&6
7823
7824fi
7825if test $ac_cv_header_nlist_h = yes; then
7826
7827cat >>confdefs.h <<\_ACEOF
7828#define NLIST_STRUCT 1
7829_ACEOF
7830
7831echo "$as_me:$LINENO: checking for n_un in struct nlist" >&5
7832echo $ECHO_N "checking for n_un in struct nlist... $ECHO_C" >&6
7833if test "${ac_cv_struct_nlist_n_un+set}" = set; then
7834  echo $ECHO_N "(cached) $ECHO_C" >&6
7835else
7836  cat >conftest.$ac_ext <<_ACEOF
7837#line $LINENO "configure"
7838#include "confdefs.h"
7839#include <nlist.h>
7840#ifdef F77_DUMMY_MAIN
7841#  ifdef __cplusplus
7842     extern "C"
7843#  endif
7844   int F77_DUMMY_MAIN() { return 1; }
7845#endif
7846int
7847main ()
7848{
7849struct nlist n; n.n_un.n_name = 0;
7850  ;
7851  return 0;
7852}
7853_ACEOF
7854rm -f conftest.$ac_objext
7855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7856  (eval $ac_compile) 2>&5
7857  ac_status=$?
7858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859  (exit $ac_status); } &&
7860         { ac_try='test -s conftest.$ac_objext'
7861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862  (eval $ac_try) 2>&5
7863  ac_status=$?
7864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865  (exit $ac_status); }; }; then
7866  ac_cv_struct_nlist_n_un=yes
7867else
7868  echo "$as_me: failed program was:" >&5
7869cat conftest.$ac_ext >&5
7870ac_cv_struct_nlist_n_un=no
7871fi
7872rm -f conftest.$ac_objext conftest.$ac_ext
7873fi
7874echo "$as_me:$LINENO: result: $ac_cv_struct_nlist_n_un" >&5
7875echo "${ECHO_T}$ac_cv_struct_nlist_n_un" >&6
7876if test $ac_cv_struct_nlist_n_un = yes; then
7877
7878cat >>confdefs.h <<\_ACEOF
7879#define NLIST_NAME_UNION 1
7880_ACEOF
7881
7882fi
7883
7884fi
7885
7886
7887echo "$as_me:$LINENO: checking for basic volatile support" >&5
7888echo $ECHO_N "checking for basic volatile support... $ECHO_C" >&6
7889if test "${ac_cv_c_volatile+set}" = set; then
7890  echo $ECHO_N "(cached) $ECHO_C" >&6
7891else
7892  cat >conftest.$ac_ext <<_ACEOF
7893#line $LINENO "configure"
7894#include "confdefs.h"
7895
7896#ifdef F77_DUMMY_MAIN
7897#  ifdef __cplusplus
7898     extern "C"
7899#  endif
7900   int F77_DUMMY_MAIN() { return 1; }
7901#endif
7902int
7903main ()
7904{
7905
7906volatile int x;
7907  ;
7908  return 0;
7909}
7910_ACEOF
7911rm -f conftest.$ac_objext
7912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7913  (eval $ac_compile) 2>&5
7914  ac_status=$?
7915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916  (exit $ac_status); } &&
7917         { ac_try='test -s conftest.$ac_objext'
7918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919  (eval $ac_try) 2>&5
7920  ac_status=$?
7921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922  (exit $ac_status); }; }; then
7923  ac_cv_c_volatile=yes
7924else
7925  echo "$as_me: failed program was:" >&5
7926cat conftest.$ac_ext >&5
7927ac_cv_c_volatile=no
7928fi
7929rm -f conftest.$ac_objext conftest.$ac_ext
7930
7931fi
7932echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7933echo "${ECHO_T}$ac_cv_c_volatile" >&6
7934case "$ac_cv_c_volatile" in
7935 yes)
7936    ;;
7937 *)
7938cat >>confdefs.h <<\_ACEOF
7939#define volatile
7940_ACEOF
7941
7942    ;;
7943esac
7944
7945case "$host" in
7946 sparc-*-solaris2*)
7947    # Assume that solaris2 is Ansi C...
7948    ;;
7949 *)
7950
7951
7952
7953echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
7954echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
7955if test "${am_cv_prog_cc_stdc+set}" = set; then
7956  echo $ECHO_N "(cached) $ECHO_C" >&6
7957else
7958  am_cv_prog_cc_stdc=no
7959ac_save_CC="$CC"
7960# Don't try gcc -ansi; that turns off useful extensions and
7961# breaks some systems' header files.
7962# AIX			-qlanglvl=ansi
7963# Ultrix and OSF/1	-std1
7964# HP-UX 10.20 and later	-Ae
7965# HP-UX older versions	-Aa -D_HPUX_SOURCE
7966# SVR4			-Xc -D__EXTENSIONS__
7967for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7968do
7969  CC="$ac_save_CC $ac_arg"
7970  cat >conftest.$ac_ext <<_ACEOF
7971#line $LINENO "configure"
7972#include "confdefs.h"
7973#include <stdarg.h>
7974#include <stdio.h>
7975#include <sys/types.h>
7976#include <sys/stat.h>
7977/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
7978struct buf { int x; };
7979FILE * (*rcsopen) (struct buf *, struct stat *, int);
7980static char *e (p, i)
7981     char **p;
7982     int i;
7983{
7984  return p[i];
7985}
7986static char *f (char * (*g) (char **, int), char **p, ...)
7987{
7988  char *s;
7989  va_list v;
7990  va_start (v,p);
7991  s = g (p, va_arg (v,int));
7992  va_end (v);
7993  return s;
7994}
7995int test (int i, double x);
7996struct s1 {int (*f) (int a);};
7997struct s2 {int (*f) (double a);};
7998int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7999int argc;
8000char **argv;
8001
8002#ifdef F77_DUMMY_MAIN
8003#  ifdef __cplusplus
8004     extern "C"
8005#  endif
8006   int F77_DUMMY_MAIN() { return 1; }
8007#endif
8008int
8009main ()
8010{
8011
8012return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
8013
8014  ;
8015  return 0;
8016}
8017_ACEOF
8018rm -f conftest.$ac_objext
8019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8020  (eval $ac_compile) 2>&5
8021  ac_status=$?
8022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023  (exit $ac_status); } &&
8024         { ac_try='test -s conftest.$ac_objext'
8025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026  (eval $ac_try) 2>&5
8027  ac_status=$?
8028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029  (exit $ac_status); }; }; then
8030  am_cv_prog_cc_stdc="$ac_arg"; break
8031else
8032  echo "$as_me: failed program was:" >&5
8033cat conftest.$ac_ext >&5
8034fi
8035rm -f conftest.$ac_objext conftest.$ac_ext
8036done
8037CC="$ac_save_CC"
8038
8039fi
8040
8041if test -z "$am_cv_prog_cc_stdc"; then
8042  echo "$as_me:$LINENO: result: none needed" >&5
8043echo "${ECHO_T}none needed" >&6
8044else
8045  echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
8046echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
8047fi
8048case "x$am_cv_prog_cc_stdc" in
8049  x|xno) ;;
8050  *) CC="$CC $am_cv_prog_cc_stdc" ;;
8051esac
8052
8053
8054
8055echo "$as_me:$LINENO: checking for function prototypes" >&5
8056echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8057if test "$am_cv_prog_cc_stdc" != no; then
8058  echo "$as_me:$LINENO: result: yes" >&5
8059echo "${ECHO_T}yes" >&6
8060
8061cat >>confdefs.h <<\_ACEOF
8062#define PROTOTYPES 1
8063_ACEOF
8064
8065  U= ANSI2KNR=
8066else
8067  echo "$as_me:$LINENO: result: no" >&5
8068echo "${ECHO_T}no" >&6
8069  U=_ ANSI2KNR=./ansi2knr
8070fi
8071# Ensure some checks needed by ansi2knr itself.
8072echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8073echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8074if test "${ac_cv_header_stdc+set}" = set; then
8075  echo $ECHO_N "(cached) $ECHO_C" >&6
8076else
8077  cat >conftest.$ac_ext <<_ACEOF
8078#line $LINENO "configure"
8079#include "confdefs.h"
8080#include <stdlib.h>
8081#include <stdarg.h>
8082#include <string.h>
8083#include <float.h>
8084
8085_ACEOF
8086if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8087  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8088  ac_status=$?
8089  egrep -v '^ *\+' conftest.er1 >conftest.err
8090  rm -f conftest.er1
8091  cat conftest.err >&5
8092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093  (exit $ac_status); } >/dev/null; then
8094  if test -s conftest.err; then
8095    ac_cpp_err=$ac_c_preproc_warn_flag
8096  else
8097    ac_cpp_err=
8098  fi
8099else
8100  ac_cpp_err=yes
8101fi
8102if test -z "$ac_cpp_err"; then
8103  ac_cv_header_stdc=yes
8104else
8105  echo "$as_me: failed program was:" >&5
8106  cat conftest.$ac_ext >&5
8107  ac_cv_header_stdc=no
8108fi
8109rm -f conftest.err conftest.$ac_ext
8110
8111if test $ac_cv_header_stdc = yes; then
8112  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8113  cat >conftest.$ac_ext <<_ACEOF
8114#line $LINENO "configure"
8115#include "confdefs.h"
8116#include <string.h>
8117
8118_ACEOF
8119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8120  egrep "memchr" >/dev/null 2>&1; then
8121  :
8122else
8123  ac_cv_header_stdc=no
8124fi
8125rm -f conftest*
8126
8127fi
8128
8129if test $ac_cv_header_stdc = yes; then
8130  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8131  cat >conftest.$ac_ext <<_ACEOF
8132#line $LINENO "configure"
8133#include "confdefs.h"
8134#include <stdlib.h>
8135
8136_ACEOF
8137if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8138  egrep "free" >/dev/null 2>&1; then
8139  :
8140else
8141  ac_cv_header_stdc=no
8142fi
8143rm -f conftest*
8144
8145fi
8146
8147if test $ac_cv_header_stdc = yes; then
8148  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8149  if test "$cross_compiling" = yes; then
8150  :
8151else
8152  cat >conftest.$ac_ext <<_ACEOF
8153#line $LINENO "configure"
8154#include "confdefs.h"
8155#include <ctype.h>
8156#if ((' ' & 0x0FF) == 0x020)
8157# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8158# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8159#else
8160# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8161                     || ('j' <= (c) && (c) <= 'r') \
8162                     || ('s' <= (c) && (c) <= 'z'))
8163# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8164#endif
8165
8166#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8167int
8168main ()
8169{
8170  int i;
8171  for (i = 0; i < 256; i++)
8172    if (XOR (islower (i), ISLOWER (i))
8173        || toupper (i) != TOUPPER (i))
8174      exit(2);
8175  exit (0);
8176}
8177_ACEOF
8178rm -f conftest$ac_exeext
8179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8180  (eval $ac_link) 2>&5
8181  ac_status=$?
8182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185  (eval $ac_try) 2>&5
8186  ac_status=$?
8187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188  (exit $ac_status); }; }; then
8189  :
8190else
8191  echo "$as_me: program exited with status $ac_status" >&5
8192echo "$as_me: failed program was:" >&5
8193cat conftest.$ac_ext >&5
8194( exit $ac_status )
8195ac_cv_header_stdc=no
8196fi
8197rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8198fi
8199fi
8200fi
8201echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8202echo "${ECHO_T}$ac_cv_header_stdc" >&6
8203if test $ac_cv_header_stdc = yes; then
8204
8205cat >>confdefs.h <<\_ACEOF
8206#define STDC_HEADERS 1
8207_ACEOF
8208
8209fi
8210
8211
8212for ac_header in string.h
8213do
8214as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8215if eval "test \"\${$as_ac_Header+set}\" = set"; then
8216  echo "$as_me:$LINENO: checking for $ac_header" >&5
8217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8218if eval "test \"\${$as_ac_Header+set}\" = set"; then
8219  echo $ECHO_N "(cached) $ECHO_C" >&6
8220fi
8221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8222echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8223else
8224  # Is the header compilable?
8225echo "$as_me:$LINENO: checking $ac_header usability" >&5
8226echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8227cat >conftest.$ac_ext <<_ACEOF
8228#line $LINENO "configure"
8229#include "confdefs.h"
8230$ac_includes_default
8231#include <$ac_header>
8232_ACEOF
8233rm -f conftest.$ac_objext
8234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8235  (eval $ac_compile) 2>&5
8236  ac_status=$?
8237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238  (exit $ac_status); } &&
8239         { ac_try='test -s conftest.$ac_objext'
8240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241  (eval $ac_try) 2>&5
8242  ac_status=$?
8243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244  (exit $ac_status); }; }; then
8245  ac_header_compiler=yes
8246else
8247  echo "$as_me: failed program was:" >&5
8248cat conftest.$ac_ext >&5
8249ac_header_compiler=no
8250fi
8251rm -f conftest.$ac_objext conftest.$ac_ext
8252echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8253echo "${ECHO_T}$ac_header_compiler" >&6
8254
8255# Is the header present?
8256echo "$as_me:$LINENO: checking $ac_header presence" >&5
8257echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8258cat >conftest.$ac_ext <<_ACEOF
8259#line $LINENO "configure"
8260#include "confdefs.h"
8261#include <$ac_header>
8262_ACEOF
8263if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8264  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8265  ac_status=$?
8266  egrep -v '^ *\+' conftest.er1 >conftest.err
8267  rm -f conftest.er1
8268  cat conftest.err >&5
8269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270  (exit $ac_status); } >/dev/null; then
8271  if test -s conftest.err; then
8272    ac_cpp_err=$ac_c_preproc_warn_flag
8273  else
8274    ac_cpp_err=
8275  fi
8276else
8277  ac_cpp_err=yes
8278fi
8279if test -z "$ac_cpp_err"; then
8280  ac_header_preproc=yes
8281else
8282  echo "$as_me: failed program was:" >&5
8283  cat conftest.$ac_ext >&5
8284  ac_header_preproc=no
8285fi
8286rm -f conftest.err conftest.$ac_ext
8287echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8288echo "${ECHO_T}$ac_header_preproc" >&6
8289
8290# So?  What about this header?
8291case $ac_header_compiler:$ac_header_preproc in
8292  yes:no )
8293    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8294echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8295    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8296echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8297  no:yes )
8298    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8299echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8300    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8301echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8302    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8303echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8304esac
8305echo "$as_me:$LINENO: checking for $ac_header" >&5
8306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8307if eval "test \"\${$as_ac_Header+set}\" = set"; then
8308  echo $ECHO_N "(cached) $ECHO_C" >&6
8309else
8310  eval "$as_ac_Header=$ac_header_preproc"
8311fi
8312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8313echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8314
8315fi
8316if test `eval echo '${'$as_ac_Header'}'` = yes; then
8317  cat >>confdefs.h <<_ACEOF
8318#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8319_ACEOF
8320
8321fi
8322
8323done
8324
8325
8326    ;;
8327esac
8328echo "$as_me:$LINENO: checking if C compiler permits function prototypes" >&5
8329echo $ECHO_N "checking if C compiler permits function prototypes... $ECHO_C" >&6
8330if test "${ac_cv_have_prototypes+set}" = set; then
8331  echo $ECHO_N "(cached) $ECHO_C" >&6
8332else
8333  cat >conftest.$ac_ext <<_ACEOF
8334#line $LINENO "configure"
8335#include "confdefs.h"
8336
8337extern int foo (short);
8338int foo(short i) { return i; }
8339#ifdef F77_DUMMY_MAIN
8340#  ifdef __cplusplus
8341     extern "C"
8342#  endif
8343   int F77_DUMMY_MAIN() { return 1; }
8344#endif
8345int
8346main ()
8347{
8348
8349int i;
8350  ;
8351  return 0;
8352}
8353_ACEOF
8354rm -f conftest.$ac_objext
8355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8356  (eval $ac_compile) 2>&5
8357  ac_status=$?
8358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359  (exit $ac_status); } &&
8360         { ac_try='test -s conftest.$ac_objext'
8361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8362  (eval $ac_try) 2>&5
8363  ac_status=$?
8364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365  (exit $ac_status); }; }; then
8366  ac_cv_have_prototypes=yes
8367else
8368  echo "$as_me: failed program was:" >&5
8369cat conftest.$ac_ext >&5
8370ac_cv_have_prototypes=no
8371fi
8372rm -f conftest.$ac_objext conftest.$ac_ext
8373
8374fi
8375echo "$as_me:$LINENO: result: $ac_cv_have_prototypes" >&5
8376echo "${ECHO_T}$ac_cv_have_prototypes" >&6
8377if test "$ac_cv_have_prototypes" = yes; then
8378
8379cat >>confdefs.h <<\_ACEOF
8380#define HAVE_PROTOTYPES 1
8381_ACEOF
8382
8383fi
8384
8385echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8386echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8387if test "${ac_cv_c_const+set}" = set; then
8388  echo $ECHO_N "(cached) $ECHO_C" >&6
8389else
8390  cat >conftest.$ac_ext <<_ACEOF
8391#line $LINENO "configure"
8392#include "confdefs.h"
8393
8394#ifdef F77_DUMMY_MAIN
8395#  ifdef __cplusplus
8396     extern "C"
8397#  endif
8398   int F77_DUMMY_MAIN() { return 1; }
8399#endif
8400int
8401main ()
8402{
8403/* FIXME: Include the comments suggested by Paul. */
8404#ifndef __cplusplus
8405  /* Ultrix mips cc rejects this.  */
8406  typedef int charset[2];
8407  const charset x;
8408  /* SunOS 4.1.1 cc rejects this.  */
8409  char const *const *ccp;
8410  char **p;
8411  /* NEC SVR4.0.2 mips cc rejects this.  */
8412  struct point {int x, y;};
8413  static struct point const zero = {0,0};
8414  /* AIX XL C 1.02.0.0 rejects this.
8415     It does not let you subtract one const X* pointer from another in
8416     an arm of an if-expression whose if-part is not a constant
8417     expression */
8418  const char *g = "string";
8419  ccp = &g + (g ? g-g : 0);
8420  /* HPUX 7.0 cc rejects these. */
8421  ++ccp;
8422  p = (char**) ccp;
8423  ccp = (char const *const *) p;
8424  { /* SCO 3.2v4 cc rejects this.  */
8425    char *t;
8426    char const *s = 0 ? (char *) 0 : (char const *) 0;
8427
8428    *t++ = 0;
8429  }
8430  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8431    int x[] = {25, 17};
8432    const int *foo = &x[0];
8433    ++foo;
8434  }
8435  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8436    typedef const int *iptr;
8437    iptr p = 0;
8438    ++p;
8439  }
8440  { /* AIX XL C 1.02.0.0 rejects this saying
8441       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8442    struct s { int j; const int *ap[3]; };
8443    struct s *b; b->j = 5;
8444  }
8445  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8446    const int foo = 10;
8447  }
8448#endif
8449
8450  ;
8451  return 0;
8452}
8453_ACEOF
8454rm -f conftest.$ac_objext
8455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8456  (eval $ac_compile) 2>&5
8457  ac_status=$?
8458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459  (exit $ac_status); } &&
8460         { ac_try='test -s conftest.$ac_objext'
8461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462  (eval $ac_try) 2>&5
8463  ac_status=$?
8464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465  (exit $ac_status); }; }; then
8466  ac_cv_c_const=yes
8467else
8468  echo "$as_me: failed program was:" >&5
8469cat conftest.$ac_ext >&5
8470ac_cv_c_const=no
8471fi
8472rm -f conftest.$ac_objext conftest.$ac_ext
8473fi
8474echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8475echo "${ECHO_T}$ac_cv_c_const" >&6
8476if test $ac_cv_c_const = no; then
8477
8478cat >>confdefs.h <<\_ACEOF
8479#define const
8480_ACEOF
8481
8482fi
8483
8484case "$build" in
8485 $host)
8486    echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8487echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8488if test "${ac_cv_c_bigendian+set}" = set; then
8489  echo $ECHO_N "(cached) $ECHO_C" >&6
8490else
8491  # See if sys/param.h defines the BYTE_ORDER macro.
8492cat >conftest.$ac_ext <<_ACEOF
8493#line $LINENO "configure"
8494#include "confdefs.h"
8495#include <sys/types.h>
8496#include <sys/param.h>
8497
8498#ifdef F77_DUMMY_MAIN
8499#  ifdef __cplusplus
8500     extern "C"
8501#  endif
8502   int F77_DUMMY_MAIN() { return 1; }
8503#endif
8504int
8505main ()
8506{
8507#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8508 bogus endian macros
8509#endif
8510
8511  ;
8512  return 0;
8513}
8514_ACEOF
8515rm -f conftest.$ac_objext
8516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8517  (eval $ac_compile) 2>&5
8518  ac_status=$?
8519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520  (exit $ac_status); } &&
8521         { ac_try='test -s conftest.$ac_objext'
8522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8523  (eval $ac_try) 2>&5
8524  ac_status=$?
8525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526  (exit $ac_status); }; }; then
8527  # It does; now see whether it defined to BIG_ENDIAN or not.
8528cat >conftest.$ac_ext <<_ACEOF
8529#line $LINENO "configure"
8530#include "confdefs.h"
8531#include <sys/types.h>
8532#include <sys/param.h>
8533
8534#ifdef F77_DUMMY_MAIN
8535#  ifdef __cplusplus
8536     extern "C"
8537#  endif
8538   int F77_DUMMY_MAIN() { return 1; }
8539#endif
8540int
8541main ()
8542{
8543#if BYTE_ORDER != BIG_ENDIAN
8544 not big endian
8545#endif
8546
8547  ;
8548  return 0;
8549}
8550_ACEOF
8551rm -f conftest.$ac_objext
8552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8553  (eval $ac_compile) 2>&5
8554  ac_status=$?
8555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556  (exit $ac_status); } &&
8557         { ac_try='test -s conftest.$ac_objext'
8558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559  (eval $ac_try) 2>&5
8560  ac_status=$?
8561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562  (exit $ac_status); }; }; then
8563  ac_cv_c_bigendian=yes
8564else
8565  echo "$as_me: failed program was:" >&5
8566cat conftest.$ac_ext >&5
8567ac_cv_c_bigendian=no
8568fi
8569rm -f conftest.$ac_objext conftest.$ac_ext
8570else
8571  echo "$as_me: failed program was:" >&5
8572cat conftest.$ac_ext >&5
8573# It does not; compile a test program.
8574if test "$cross_compiling" = yes; then
8575  # try to guess the endianess by grep'ing values into an object file
8576  ac_cv_c_bigendian=unknown
8577  cat >conftest.$ac_ext <<_ACEOF
8578#line $LINENO "configure"
8579#include "confdefs.h"
8580short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8581short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8582void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8583short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8584short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8585void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8586#ifdef F77_DUMMY_MAIN
8587#  ifdef __cplusplus
8588     extern "C"
8589#  endif
8590   int F77_DUMMY_MAIN() { return 1; }
8591#endif
8592int
8593main ()
8594{
8595 _ascii (); _ebcdic ();
8596  ;
8597  return 0;
8598}
8599_ACEOF
8600rm -f conftest.$ac_objext
8601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8602  (eval $ac_compile) 2>&5
8603  ac_status=$?
8604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605  (exit $ac_status); } &&
8606         { ac_try='test -s conftest.$ac_objext'
8607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608  (eval $ac_try) 2>&5
8609  ac_status=$?
8610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611  (exit $ac_status); }; }; then
8612  if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8613  ac_cv_c_bigendian=yes
8614fi
8615if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8616  if test "$ac_cv_c_bigendian" = unknown; then
8617    ac_cv_c_bigendian=no
8618  else
8619    # finding both strings is unlikely to happen, but who knows?
8620    ac_cv_c_bigendian=unknown
8621  fi
8622fi
8623else
8624  echo "$as_me: failed program was:" >&5
8625cat conftest.$ac_ext >&5
8626fi
8627rm -f conftest.$ac_objext conftest.$ac_ext
8628else
8629  cat >conftest.$ac_ext <<_ACEOF
8630#line $LINENO "configure"
8631#include "confdefs.h"
8632int
8633main ()
8634{
8635  /* Are we little or big endian?  From Harbison&Steele.  */
8636  union
8637  {
8638    long l;
8639    char c[sizeof (long)];
8640  } u;
8641  u.l = 1;
8642  exit (u.c[sizeof (long) - 1] == 1);
8643}
8644_ACEOF
8645rm -f conftest$ac_exeext
8646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8647  (eval $ac_link) 2>&5
8648  ac_status=$?
8649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652  (eval $ac_try) 2>&5
8653  ac_status=$?
8654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655  (exit $ac_status); }; }; then
8656  ac_cv_c_bigendian=no
8657else
8658  echo "$as_me: program exited with status $ac_status" >&5
8659echo "$as_me: failed program was:" >&5
8660cat conftest.$ac_ext >&5
8661( exit $ac_status )
8662ac_cv_c_bigendian=yes
8663fi
8664rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8665fi
8666fi
8667rm -f conftest.$ac_objext conftest.$ac_ext
8668fi
8669echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8670echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8671case $ac_cv_c_bigendian in
8672  yes)
8673
8674cat >>confdefs.h <<\_ACEOF
8675#define WORDS_BIGENDIAN 1
8676_ACEOF
8677 ;;
8678  no)
8679     ;;
8680  *)
8681    { { echo "$as_me:$LINENO: error: unknown endianess
8682presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8683echo "$as_me: error: unknown endianess
8684presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8685   { (exit 1); exit 1; }; } ;;
8686esac
8687
8688    ;;
8689 *) case "$host" in
8690     i*86-*-*)	# Was i*86-*-vxworks*
8691	# LITTLEENDIAN
8692	;;
8693     *-*-vxworks*)
8694	cat >>confdefs.h <<\_ACEOF
8695#define WORDS_BIGENDIAN 1
8696_ACEOF
8697
8698	;;
8699     *) { { echo "$as_me:$LINENO: error: Cross-compiling needs explicit byte order" >&5
8700echo "$as_me: error: Cross-compiling needs explicit byte order" >&2;}
8701   { (exit 1); exit 1; }; }
8702	;;
8703    esac
8704    ;;
8705esac
8706echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8707echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8708if test "${ac_cv_type_signal+set}" = set; then
8709  echo $ECHO_N "(cached) $ECHO_C" >&6
8710else
8711  cat >conftest.$ac_ext <<_ACEOF
8712#line $LINENO "configure"
8713#include "confdefs.h"
8714#include <sys/types.h>
8715#include <signal.h>
8716#ifdef signal
8717# undef signal
8718#endif
8719#ifdef __cplusplus
8720extern "C" void (*signal (int, void (*)(int)))(int);
8721#else
8722void (*signal ()) ();
8723#endif
8724
8725#ifdef F77_DUMMY_MAIN
8726#  ifdef __cplusplus
8727     extern "C"
8728#  endif
8729   int F77_DUMMY_MAIN() { return 1; }
8730#endif
8731int
8732main ()
8733{
8734int i;
8735  ;
8736  return 0;
8737}
8738_ACEOF
8739rm -f conftest.$ac_objext
8740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8741  (eval $ac_compile) 2>&5
8742  ac_status=$?
8743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744  (exit $ac_status); } &&
8745         { ac_try='test -s conftest.$ac_objext'
8746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8747  (eval $ac_try) 2>&5
8748  ac_status=$?
8749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750  (exit $ac_status); }; }; then
8751  ac_cv_type_signal=void
8752else
8753  echo "$as_me: failed program was:" >&5
8754cat conftest.$ac_ext >&5
8755ac_cv_type_signal=int
8756fi
8757rm -f conftest.$ac_objext conftest.$ac_ext
8758fi
8759echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8760echo "${ECHO_T}$ac_cv_type_signal" >&6
8761
8762cat >>confdefs.h <<_ACEOF
8763#define RETSIGTYPE $ac_cv_type_signal
8764_ACEOF
8765
8766
8767echo "$as_me:$LINENO: checking for off_t" >&5
8768echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8769if test "${ac_cv_type_off_t+set}" = set; then
8770  echo $ECHO_N "(cached) $ECHO_C" >&6
8771else
8772  cat >conftest.$ac_ext <<_ACEOF
8773#line $LINENO "configure"
8774#include "confdefs.h"
8775$ac_includes_default
8776#ifdef F77_DUMMY_MAIN
8777#  ifdef __cplusplus
8778     extern "C"
8779#  endif
8780   int F77_DUMMY_MAIN() { return 1; }
8781#endif
8782int
8783main ()
8784{
8785if ((off_t *) 0)
8786  return 0;
8787if (sizeof (off_t))
8788  return 0;
8789  ;
8790  return 0;
8791}
8792_ACEOF
8793rm -f conftest.$ac_objext
8794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8795  (eval $ac_compile) 2>&5
8796  ac_status=$?
8797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798  (exit $ac_status); } &&
8799         { ac_try='test -s conftest.$ac_objext'
8800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801  (eval $ac_try) 2>&5
8802  ac_status=$?
8803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804  (exit $ac_status); }; }; then
8805  ac_cv_type_off_t=yes
8806else
8807  echo "$as_me: failed program was:" >&5
8808cat conftest.$ac_ext >&5
8809ac_cv_type_off_t=no
8810fi
8811rm -f conftest.$ac_objext conftest.$ac_ext
8812fi
8813echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8814echo "${ECHO_T}$ac_cv_type_off_t" >&6
8815if test $ac_cv_type_off_t = yes; then
8816  :
8817else
8818
8819cat >>confdefs.h <<_ACEOF
8820#define off_t long
8821_ACEOF
8822
8823fi
8824
8825echo "$as_me:$LINENO: checking for size_t" >&5
8826echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8827if test "${ac_cv_type_size_t+set}" = set; then
8828  echo $ECHO_N "(cached) $ECHO_C" >&6
8829else
8830  cat >conftest.$ac_ext <<_ACEOF
8831#line $LINENO "configure"
8832#include "confdefs.h"
8833$ac_includes_default
8834#ifdef F77_DUMMY_MAIN
8835#  ifdef __cplusplus
8836     extern "C"
8837#  endif
8838   int F77_DUMMY_MAIN() { return 1; }
8839#endif
8840int
8841main ()
8842{
8843if ((size_t *) 0)
8844  return 0;
8845if (sizeof (size_t))
8846  return 0;
8847  ;
8848  return 0;
8849}
8850_ACEOF
8851rm -f conftest.$ac_objext
8852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8853  (eval $ac_compile) 2>&5
8854  ac_status=$?
8855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856  (exit $ac_status); } &&
8857         { ac_try='test -s conftest.$ac_objext'
8858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859  (eval $ac_try) 2>&5
8860  ac_status=$?
8861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862  (exit $ac_status); }; }; then
8863  ac_cv_type_size_t=yes
8864else
8865  echo "$as_me: failed program was:" >&5
8866cat conftest.$ac_ext >&5
8867ac_cv_type_size_t=no
8868fi
8869rm -f conftest.$ac_objext conftest.$ac_ext
8870fi
8871echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8872echo "${ECHO_T}$ac_cv_type_size_t" >&6
8873if test $ac_cv_type_size_t = yes; then
8874  :
8875else
8876
8877cat >>confdefs.h <<_ACEOF
8878#define size_t unsigned
8879_ACEOF
8880
8881fi
8882
8883echo "$as_me:$LINENO: checking for time_t" >&5
8884echo $ECHO_N "checking for time_t... $ECHO_C" >&6
8885if test "${ac_cv_type_time_t+set}" = set; then
8886  echo $ECHO_N "(cached) $ECHO_C" >&6
8887else
8888  cat >conftest.$ac_ext <<_ACEOF
8889#line $LINENO "configure"
8890#include "confdefs.h"
8891$ac_includes_default
8892#ifdef F77_DUMMY_MAIN
8893#  ifdef __cplusplus
8894     extern "C"
8895#  endif
8896   int F77_DUMMY_MAIN() { return 1; }
8897#endif
8898int
8899main ()
8900{
8901if ((time_t *) 0)
8902  return 0;
8903if (sizeof (time_t))
8904  return 0;
8905  ;
8906  return 0;
8907}
8908_ACEOF
8909rm -f conftest.$ac_objext
8910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8911  (eval $ac_compile) 2>&5
8912  ac_status=$?
8913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914  (exit $ac_status); } &&
8915         { ac_try='test -s conftest.$ac_objext'
8916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8917  (eval $ac_try) 2>&5
8918  ac_status=$?
8919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920  (exit $ac_status); }; }; then
8921  ac_cv_type_time_t=yes
8922else
8923  echo "$as_me: failed program was:" >&5
8924cat conftest.$ac_ext >&5
8925ac_cv_type_time_t=no
8926fi
8927rm -f conftest.$ac_objext conftest.$ac_ext
8928fi
8929echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
8930echo "${ECHO_T}$ac_cv_type_time_t" >&6
8931if test $ac_cv_type_time_t = yes; then
8932  :
8933else
8934
8935cat >>confdefs.h <<_ACEOF
8936#define time_t long
8937_ACEOF
8938
8939fi
8940
8941echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8942echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8943if test "${ac_cv_struct_tm+set}" = set; then
8944  echo $ECHO_N "(cached) $ECHO_C" >&6
8945else
8946  cat >conftest.$ac_ext <<_ACEOF
8947#line $LINENO "configure"
8948#include "confdefs.h"
8949#include <sys/types.h>
8950#include <time.h>
8951
8952#ifdef F77_DUMMY_MAIN
8953#  ifdef __cplusplus
8954     extern "C"
8955#  endif
8956   int F77_DUMMY_MAIN() { return 1; }
8957#endif
8958int
8959main ()
8960{
8961struct tm *tp; tp->tm_sec;
8962  ;
8963  return 0;
8964}
8965_ACEOF
8966rm -f conftest.$ac_objext
8967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8968  (eval $ac_compile) 2>&5
8969  ac_status=$?
8970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971  (exit $ac_status); } &&
8972         { ac_try='test -s conftest.$ac_objext'
8973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974  (eval $ac_try) 2>&5
8975  ac_status=$?
8976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977  (exit $ac_status); }; }; then
8978  ac_cv_struct_tm=time.h
8979else
8980  echo "$as_me: failed program was:" >&5
8981cat conftest.$ac_ext >&5
8982ac_cv_struct_tm=sys/time.h
8983fi
8984rm -f conftest.$ac_objext conftest.$ac_ext
8985fi
8986echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8987echo "${ECHO_T}$ac_cv_struct_tm" >&6
8988if test $ac_cv_struct_tm = sys/time.h; then
8989
8990cat >>confdefs.h <<\_ACEOF
8991#define TM_IN_SYS_TIME 1
8992_ACEOF
8993
8994fi
8995
8996
8997echo "$as_me:$LINENO: checking for a fallback value for HZ" >&5
8998echo $ECHO_N "checking for a fallback value for HZ... $ECHO_C" >&6
8999if test "${ac_cv_var_default_hz+set}" = set; then
9000  echo $ECHO_N "(cached) $ECHO_C" >&6
9001else
9002  ac_cv_var_default_hz=100
9003case "$host" in
9004 alpha*-dec-osf4*|alpha*-dec-osf5*)
9005    ac_cv_var_default_hz=1024
9006    ;;
9007 mips-dec-ultrix4*)
9008    ac_cv_var_default_hz=256
9009    ;;
9010esac
9011fi
9012echo "$as_me:$LINENO: result: $ac_cv_var_default_hz" >&5
9013echo "${ECHO_T}$ac_cv_var_default_hz" >&6
9014
9015cat >>confdefs.h <<_ACEOF
9016#define DEFAULT_HZ $ac_cv_var_default_hz
9017_ACEOF
9018
9019
9020echo "$as_me:$LINENO: checking if we need to override the system's value for HZ" >&5
9021echo $ECHO_N "checking if we need to override the system's value for HZ... $ECHO_C" >&6
9022if test "${ac_cv_var_override_hz+set}" = set; then
9023  echo $ECHO_N "(cached) $ECHO_C" >&6
9024else
9025  ac_cv_var_override_hz=no
9026case "$host" in
9027 alpha*-dec-osf4*|alpha*-dec-osf5*)
9028    ac_cv_var_override_hz=yes
9029    ;;
9030 mips-dec-ultrix4*)
9031    ac_cv_var_override_hz=yes
9032    ;;
9033 *-*-freebsd*)
9034    ac_cv_var_override_hz=yes
9035    ;;
9036 *-*-sunos4*)
9037    ac_cv_var_override_hz=yes
9038    ;;
9039esac
9040fi
9041echo "$as_me:$LINENO: result: $ac_cv_var_override_hz" >&5
9042echo "${ECHO_T}$ac_cv_var_override_hz" >&6
9043case "$ac_cv_var_override_hz" in
9044 yes)
9045
9046cat >>confdefs.h <<\_ACEOF
9047#define OVERRIDE_HZ 1
9048_ACEOF
9049
9050    ;;
9051esac
9052
9053
9054
9055echo "$as_me:$LINENO: checking struct sigaction for sa_sigaction" >&5
9056echo $ECHO_N "checking struct sigaction for sa_sigaction... $ECHO_C" >&6
9057if test "${ac_cv_struct_sigaction_has_sa_sigaction+set}" = set; then
9058  echo $ECHO_N "(cached) $ECHO_C" >&6
9059else
9060
9061    cat >conftest.$ac_ext <<_ACEOF
9062#line $LINENO "configure"
9063#include "confdefs.h"
9064#include <signal.h>
9065#ifdef F77_DUMMY_MAIN
9066#  ifdef __cplusplus
9067     extern "C"
9068#  endif
9069   int F77_DUMMY_MAIN() { return 1; }
9070#endif
9071int
9072main ()
9073{
9074struct sigaction act; act.sa_sigaction = 0;
9075  ;
9076  return 0;
9077}
9078_ACEOF
9079rm -f conftest.$ac_objext
9080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9081  (eval $ac_compile) 2>&5
9082  ac_status=$?
9083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084  (exit $ac_status); } &&
9085         { ac_try='test -s conftest.$ac_objext'
9086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9087  (eval $ac_try) 2>&5
9088  ac_status=$?
9089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090  (exit $ac_status); }; }; then
9091  ac_cv_struct_sigaction_has_sa_sigaction=yes
9092else
9093  echo "$as_me: failed program was:" >&5
9094cat conftest.$ac_ext >&5
9095ac_cv_struct_sigaction_has_sa_sigaction=no
9096
9097fi
9098rm -f conftest.$ac_objext conftest.$ac_ext
9099
9100
9101fi
9102echo "$as_me:$LINENO: result: $ac_cv_struct_sigaction_has_sa_sigaction" >&5
9103echo "${ECHO_T}$ac_cv_struct_sigaction_has_sa_sigaction" >&6
9104if test $ac_cv_struct_sigaction_has_sa_sigaction = yes; then
9105
9106cat >>confdefs.h <<\_ACEOF
9107#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1
9108_ACEOF
9109
9110fi
9111
9112echo "$as_me:$LINENO: checking for struct ppsclockev" >&5
9113echo $ECHO_N "checking for struct ppsclockev... $ECHO_C" >&6
9114if test "${ac_cv_struct_ppsclockev+set}" = set; then
9115  echo $ECHO_N "(cached) $ECHO_C" >&6
9116else
9117  cat >conftest.$ac_ext <<_ACEOF
9118#line $LINENO "configure"
9119#include "confdefs.h"
9120
9121#include <sys/types.h>
9122#ifdef HAVE_SYS_TERMIOS_H
9123# include <sys/termios.h>
9124#endif
9125#ifdef HAVE_SYS_TIME_H
9126# include <sys/time.h>
9127#endif
9128#ifdef HAVE_SYS_PPSCLOCK_H
9129# include <sys/ppsclock.h>
9130#endif
9131#ifdef F77_DUMMY_MAIN
9132#  ifdef __cplusplus
9133     extern "C"
9134#  endif
9135   int F77_DUMMY_MAIN() { return 1; }
9136#endif
9137int
9138main ()
9139{
9140
9141extern struct ppsclockev *pce;
9142return pce->serial;
9143  ;
9144  return 0;
9145}
9146_ACEOF
9147rm -f conftest.$ac_objext
9148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9149  (eval $ac_compile) 2>&5
9150  ac_status=$?
9151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152  (exit $ac_status); } &&
9153         { ac_try='test -s conftest.$ac_objext'
9154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155  (eval $ac_try) 2>&5
9156  ac_status=$?
9157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158  (exit $ac_status); }; }; then
9159  ac_cv_struct_ppsclockev=yes
9160else
9161  echo "$as_me: failed program was:" >&5
9162cat conftest.$ac_ext >&5
9163ac_cv_struct_ppsclockev=no
9164fi
9165rm -f conftest.$ac_objext conftest.$ac_ext
9166
9167fi
9168echo "$as_me:$LINENO: result: $ac_cv_struct_ppsclockev" >&5
9169echo "${ECHO_T}$ac_cv_struct_ppsclockev" >&6
9170if test $ac_cv_struct_ppsclockev = yes; then
9171
9172cat >>confdefs.h <<\_ACEOF
9173#define HAVE_STRUCT_PPSCLOCKEV 1
9174_ACEOF
9175
9176fi
9177
9178echo "$as_me:$LINENO: checking struct sockaddr for sa_len" >&5
9179echo $ECHO_N "checking struct sockaddr for sa_len... $ECHO_C" >&6
9180if test "${ac_cv_struct_sockaddr_has_sa_len+set}" = set; then
9181  echo $ECHO_N "(cached) $ECHO_C" >&6
9182else
9183  cat >conftest.$ac_ext <<_ACEOF
9184#line $LINENO "configure"
9185#include "confdefs.h"
9186
9187#include <sys/types.h>
9188#include <sys/socket.h>
9189#ifdef F77_DUMMY_MAIN
9190#  ifdef __cplusplus
9191     extern "C"
9192#  endif
9193   int F77_DUMMY_MAIN() { return 1; }
9194#endif
9195int
9196main ()
9197{
9198
9199extern struct sockaddr *ps;
9200return ps->sa_len;
9201  ;
9202  return 0;
9203}
9204_ACEOF
9205rm -f conftest.$ac_objext
9206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9207  (eval $ac_compile) 2>&5
9208  ac_status=$?
9209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210  (exit $ac_status); } &&
9211         { ac_try='test -s conftest.$ac_objext'
9212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213  (eval $ac_try) 2>&5
9214  ac_status=$?
9215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216  (exit $ac_status); }; }; then
9217  ac_cv_struct_sockaddr_has_sa_len=yes
9218else
9219  echo "$as_me: failed program was:" >&5
9220cat conftest.$ac_ext >&5
9221ac_cv_struct_sockaddr_has_sa_len=no
9222fi
9223rm -f conftest.$ac_objext conftest.$ac_ext
9224
9225fi
9226echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_has_sa_len" >&5
9227echo "${ECHO_T}$ac_cv_struct_sockaddr_has_sa_len" >&6
9228if test $ac_cv_struct_sockaddr_has_sa_len = yes; then
9229
9230cat >>confdefs.h <<\_ACEOF
9231#define HAVE_SA_LEN_IN_STRUCT_SOCKADDR 1
9232_ACEOF
9233
9234fi
9235
9236case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
9237  *yes*)
9238    echo "$as_me:$LINENO: checking for struct snd_size" >&5
9239echo $ECHO_N "checking for struct snd_size... $ECHO_C" >&6
9240if test "${ac_cv_struct_snd_size+set}" = set; then
9241  echo $ECHO_N "(cached) $ECHO_C" >&6
9242else
9243  cat >conftest.$ac_ext <<_ACEOF
9244#line $LINENO "configure"
9245#include "confdefs.h"
9246
9247#ifdef HAVE_MACHINE_SOUNDCARD_H
9248# include <machine/soundcard.h>
9249#endif
9250#ifdef HAVE_SYS_SOUNDCARD_H
9251# include <sys/soundcard.h>
9252#endif
9253#ifdef F77_DUMMY_MAIN
9254#  ifdef __cplusplus
9255     extern "C"
9256#  endif
9257   int F77_DUMMY_MAIN() { return 1; }
9258#endif
9259int
9260main ()
9261{
9262
9263extern struct snd_size *ss;
9264return ss->rec_size;
9265  ;
9266  return 0;
9267}
9268_ACEOF
9269rm -f conftest.$ac_objext
9270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9271  (eval $ac_compile) 2>&5
9272  ac_status=$?
9273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274  (exit $ac_status); } &&
9275         { ac_try='test -s conftest.$ac_objext'
9276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9277  (eval $ac_try) 2>&5
9278  ac_status=$?
9279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280  (exit $ac_status); }; }; then
9281  ac_cv_struct_snd_size=yes
9282else
9283  echo "$as_me: failed program was:" >&5
9284cat conftest.$ac_ext >&5
9285ac_cv_struct_snd_size=no
9286fi
9287rm -f conftest.$ac_objext conftest.$ac_ext
9288
9289fi
9290echo "$as_me:$LINENO: result: $ac_cv_struct_snd_size" >&5
9291echo "${ECHO_T}$ac_cv_struct_snd_size" >&6
9292    case "$ac_cv_struct_snd_size" in
9293     yes)
9294cat >>confdefs.h <<\_ACEOF
9295#define HAVE_STRUCT_SND_SIZE 1
9296_ACEOF
9297 ;;
9298    esac
9299    ;;
9300esac
9301
9302echo "$as_me:$LINENO: checking struct clockinfo for hz" >&5
9303echo $ECHO_N "checking struct clockinfo for hz... $ECHO_C" >&6
9304if test "${ac_cv_struct_clockinfo_has_hz+set}" = set; then
9305  echo $ECHO_N "(cached) $ECHO_C" >&6
9306else
9307  cat >conftest.$ac_ext <<_ACEOF
9308#line $LINENO "configure"
9309#include "confdefs.h"
9310
9311#include <sys/time.h>
9312#ifdef F77_DUMMY_MAIN
9313#  ifdef __cplusplus
9314     extern "C"
9315#  endif
9316   int F77_DUMMY_MAIN() { return 1; }
9317#endif
9318int
9319main ()
9320{
9321
9322extern struct clockinfo *pc;
9323return pc->hz;
9324  ;
9325  return 0;
9326}
9327_ACEOF
9328rm -f conftest.$ac_objext
9329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9330  (eval $ac_compile) 2>&5
9331  ac_status=$?
9332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333  (exit $ac_status); } &&
9334         { ac_try='test -s conftest.$ac_objext'
9335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336  (eval $ac_try) 2>&5
9337  ac_status=$?
9338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339  (exit $ac_status); }; }; then
9340  ac_cv_struct_clockinfo_has_hz=yes
9341else
9342  echo "$as_me: failed program was:" >&5
9343cat conftest.$ac_ext >&5
9344ac_cv_struct_clockinfo_has_hz=no
9345fi
9346rm -f conftest.$ac_objext conftest.$ac_ext
9347
9348fi
9349echo "$as_me:$LINENO: result: $ac_cv_struct_clockinfo_has_hz" >&5
9350echo "${ECHO_T}$ac_cv_struct_clockinfo_has_hz" >&6
9351if test $ac_cv_struct_clockinfo_has_hz = yes; then
9352
9353cat >>confdefs.h <<\_ACEOF
9354#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1
9355_ACEOF
9356
9357fi
9358
9359echo "$as_me:$LINENO: checking struct clockinfo for tickadj" >&5
9360echo $ECHO_N "checking struct clockinfo for tickadj... $ECHO_C" >&6
9361if test "${ac_cv_struct_clockinfo_has_tickadj+set}" = set; then
9362  echo $ECHO_N "(cached) $ECHO_C" >&6
9363else
9364  cat >conftest.$ac_ext <<_ACEOF
9365#line $LINENO "configure"
9366#include "confdefs.h"
9367
9368#include <sys/time.h>
9369#ifdef F77_DUMMY_MAIN
9370#  ifdef __cplusplus
9371     extern "C"
9372#  endif
9373   int F77_DUMMY_MAIN() { return 1; }
9374#endif
9375int
9376main ()
9377{
9378
9379extern struct clockinfo *pc;
9380return pc->tickadj;
9381  ;
9382  return 0;
9383}
9384_ACEOF
9385rm -f conftest.$ac_objext
9386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9387  (eval $ac_compile) 2>&5
9388  ac_status=$?
9389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390  (exit $ac_status); } &&
9391         { ac_try='test -s conftest.$ac_objext'
9392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393  (eval $ac_try) 2>&5
9394  ac_status=$?
9395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396  (exit $ac_status); }; }; then
9397  ac_cv_struct_clockinfo_has_tickadj=yes
9398else
9399  echo "$as_me: failed program was:" >&5
9400cat conftest.$ac_ext >&5
9401ac_cv_struct_clockinfo_has_tickadj=no
9402fi
9403rm -f conftest.$ac_objext conftest.$ac_ext
9404
9405fi
9406echo "$as_me:$LINENO: result: $ac_cv_struct_clockinfo_has_tickadj" >&5
9407echo "${ECHO_T}$ac_cv_struct_clockinfo_has_tickadj" >&6
9408if test $ac_cv_struct_clockinfo_has_tickadj = yes; then
9409
9410cat >>confdefs.h <<\_ACEOF
9411#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1
9412_ACEOF
9413
9414fi
9415
9416echo "$as_me:$LINENO: checking for struct timespec" >&5
9417echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
9418if test "${ac_cv_struct_timespec+set}" = set; then
9419  echo $ECHO_N "(cached) $ECHO_C" >&6
9420else
9421  cat >conftest.$ac_ext <<_ACEOF
9422#line $LINENO "configure"
9423#include "confdefs.h"
9424
9425#include <sys/time.h>
9426/* Under SunOS, timespec is in sys/timepps.h, which needs errno.h and FRAC */
9427#ifdef HAVE_ERRNO_H
9428# include <errno.h>
9429#endif
9430#ifdef HAVE_SYS_TIMEPPS_H
9431# define FRAC 4294967296
9432# include <sys/timepps.h>
9433#endif
9434#ifdef F77_DUMMY_MAIN
9435#  ifdef __cplusplus
9436     extern "C"
9437#  endif
9438   int F77_DUMMY_MAIN() { return 1; }
9439#endif
9440int
9441main ()
9442{
9443struct timespec n;
9444  ;
9445  return 0;
9446}
9447_ACEOF
9448rm -f conftest.$ac_objext
9449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9450  (eval $ac_compile) 2>&5
9451  ac_status=$?
9452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453  (exit $ac_status); } &&
9454         { ac_try='test -s conftest.$ac_objext'
9455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456  (eval $ac_try) 2>&5
9457  ac_status=$?
9458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459  (exit $ac_status); }; }; then
9460  ac_cv_struct_timespec=yes
9461else
9462  echo "$as_me: failed program was:" >&5
9463cat conftest.$ac_ext >&5
9464ac_cv_struct_timespec=no
9465fi
9466rm -f conftest.$ac_objext conftest.$ac_ext
9467fi
9468echo "$as_me:$LINENO: result: $ac_cv_struct_timespec" >&5
9469echo "${ECHO_T}$ac_cv_struct_timespec" >&6
9470if test $ac_cv_struct_timespec = yes; then
9471
9472cat >>confdefs.h <<\_ACEOF
9473#define HAVE_STRUCT_TIMESPEC 1
9474_ACEOF
9475
9476fi
9477
9478echo "$as_me:$LINENO: checking for struct ntptimeval" >&5
9479echo $ECHO_N "checking for struct ntptimeval... $ECHO_C" >&6
9480if test "${ac_cv_struct_ntptimeval+set}" = set; then
9481  echo $ECHO_N "(cached) $ECHO_C" >&6
9482else
9483  cat >conftest.$ac_ext <<_ACEOF
9484#line $LINENO "configure"
9485#include "confdefs.h"
9486
9487#include <sys/time.h>
9488#include <sys/timex.h>
9489#ifdef F77_DUMMY_MAIN
9490#  ifdef __cplusplus
9491     extern "C"
9492#  endif
9493   int F77_DUMMY_MAIN() { return 1; }
9494#endif
9495int
9496main ()
9497{
9498struct ntptimeval n;
9499  ;
9500  return 0;
9501}
9502_ACEOF
9503rm -f conftest.$ac_objext
9504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9505  (eval $ac_compile) 2>&5
9506  ac_status=$?
9507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508  (exit $ac_status); } &&
9509         { ac_try='test -s conftest.$ac_objext'
9510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511  (eval $ac_try) 2>&5
9512  ac_status=$?
9513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514  (exit $ac_status); }; }; then
9515  ac_cv_struct_ntptimeval=yes
9516else
9517  echo "$as_me: failed program was:" >&5
9518cat conftest.$ac_ext >&5
9519ac_cv_struct_ntptimeval=no
9520fi
9521rm -f conftest.$ac_objext conftest.$ac_ext
9522fi
9523echo "$as_me:$LINENO: result: $ac_cv_struct_ntptimeval" >&5
9524echo "${ECHO_T}$ac_cv_struct_ntptimeval" >&6
9525if test $ac_cv_struct_ntptimeval = yes; then
9526
9527cat >>confdefs.h <<\_ACEOF
9528#define HAVE_STRUCT_NTPTIMEVAL 1
9529_ACEOF
9530
9531fi
9532
9533echo "$as_me:$LINENO: checking for struct ntptimeval.time.tv_nsec" >&5
9534echo $ECHO_N "checking for struct ntptimeval.time.tv_nsec... $ECHO_C" >&6
9535if test "${ac_cv_member_struct_ntptimeval_time_tv_nsec+set}" = set; then
9536  echo $ECHO_N "(cached) $ECHO_C" >&6
9537else
9538  cat >conftest.$ac_ext <<_ACEOF
9539#line $LINENO "configure"
9540#include "confdefs.h"
9541#ifdef HAVE_SYS_TIME_H
9542#include <sys/time.h>
9543#else
9544# ifdef HAVE_TIME_H
9545# include <time.h>
9546# endif
9547#endif
9548#ifdef HAVE_SYS_TIMEX_H
9549#include <sys/timex.h>
9550#else
9551# ifdef HAVE_TIMEX_H
9552# include <timex.h>
9553# endif
9554#endif
9555
9556#ifdef F77_DUMMY_MAIN
9557#  ifdef __cplusplus
9558     extern "C"
9559#  endif
9560   int F77_DUMMY_MAIN() { return 1; }
9561#endif
9562int
9563main ()
9564{
9565static struct ntptimeval ac_aggr;
9566if (ac_aggr.time.tv_nsec)
9567return 0;
9568  ;
9569  return 0;
9570}
9571_ACEOF
9572rm -f conftest.$ac_objext
9573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9574  (eval $ac_compile) 2>&5
9575  ac_status=$?
9576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577  (exit $ac_status); } &&
9578         { ac_try='test -s conftest.$ac_objext'
9579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580  (eval $ac_try) 2>&5
9581  ac_status=$?
9582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583  (exit $ac_status); }; }; then
9584  ac_cv_member_struct_ntptimeval_time_tv_nsec=yes
9585else
9586  echo "$as_me: failed program was:" >&5
9587cat conftest.$ac_ext >&5
9588ac_cv_member_struct_ntptimeval_time_tv_nsec=no
9589fi
9590rm -f conftest.$ac_objext conftest.$ac_ext
9591fi
9592echo "$as_me:$LINENO: result: $ac_cv_member_struct_ntptimeval_time_tv_nsec" >&5
9593echo "${ECHO_T}$ac_cv_member_struct_ntptimeval_time_tv_nsec" >&6
9594if test $ac_cv_member_struct_ntptimeval_time_tv_nsec = yes; then
9595
9596cat >>confdefs.h <<_ACEOF
9597#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
9598_ACEOF
9599
9600
9601fi
9602
9603
9604echo "$as_me:$LINENO: checking for inline" >&5
9605echo $ECHO_N "checking for inline... $ECHO_C" >&6
9606if test "${ac_cv_c_inline+set}" = set; then
9607  echo $ECHO_N "(cached) $ECHO_C" >&6
9608else
9609  ac_cv_c_inline=no
9610for ac_kw in inline __inline__ __inline; do
9611  cat >conftest.$ac_ext <<_ACEOF
9612#line $LINENO "configure"
9613#include "confdefs.h"
9614#ifndef __cplusplus
9615static $ac_kw int static_foo () {return 0; }
9616$ac_kw int foo () {return 0; }
9617#endif
9618
9619_ACEOF
9620rm -f conftest.$ac_objext
9621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9622  (eval $ac_compile) 2>&5
9623  ac_status=$?
9624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625  (exit $ac_status); } &&
9626         { ac_try='test -s conftest.$ac_objext'
9627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628  (eval $ac_try) 2>&5
9629  ac_status=$?
9630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631  (exit $ac_status); }; }; then
9632  ac_cv_c_inline=$ac_kw; break
9633else
9634  echo "$as_me: failed program was:" >&5
9635cat conftest.$ac_ext >&5
9636fi
9637rm -f conftest.$ac_objext conftest.$ac_ext
9638done
9639
9640fi
9641echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9642echo "${ECHO_T}$ac_cv_c_inline" >&6
9643case $ac_cv_c_inline in
9644  inline | yes) ;;
9645  no)
9646cat >>confdefs.h <<\_ACEOF
9647#define inline
9648_ACEOF
9649 ;;
9650  *)  cat >>confdefs.h <<_ACEOF
9651#define inline $ac_cv_c_inline
9652_ACEOF
9653 ;;
9654esac
9655
9656
9657echo "$as_me:$LINENO: checking whether char is unsigned" >&5
9658echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
9659if test "${ac_cv_c_char_unsigned+set}" = set; then
9660  echo $ECHO_N "(cached) $ECHO_C" >&6
9661else
9662  cat >conftest.$ac_ext <<_ACEOF
9663#line $LINENO "configure"
9664#include "confdefs.h"
9665$ac_includes_default
9666#ifdef F77_DUMMY_MAIN
9667#  ifdef __cplusplus
9668     extern "C"
9669#  endif
9670   int F77_DUMMY_MAIN() { return 1; }
9671#endif
9672int
9673main ()
9674{
9675static int test_array [1 - 2 * !(((char) -1) < 0)];
9676test_array [0] = 0
9677
9678  ;
9679  return 0;
9680}
9681_ACEOF
9682rm -f conftest.$ac_objext
9683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9684  (eval $ac_compile) 2>&5
9685  ac_status=$?
9686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687  (exit $ac_status); } &&
9688         { ac_try='test -s conftest.$ac_objext'
9689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690  (eval $ac_try) 2>&5
9691  ac_status=$?
9692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693  (exit $ac_status); }; }; then
9694  ac_cv_c_char_unsigned=no
9695else
9696  echo "$as_me: failed program was:" >&5
9697cat conftest.$ac_ext >&5
9698ac_cv_c_char_unsigned=yes
9699fi
9700rm -f conftest.$ac_objext conftest.$ac_ext
9701fi
9702echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
9703echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
9704if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
9705  cat >>confdefs.h <<\_ACEOF
9706#define __CHAR_UNSIGNED__ 1
9707_ACEOF
9708
9709fi
9710		echo "$as_me:$LINENO: checking for signed char" >&5
9711echo $ECHO_N "checking for signed char... $ECHO_C" >&6
9712if test "${ac_cv_type_signed_char+set}" = set; then
9713  echo $ECHO_N "(cached) $ECHO_C" >&6
9714else
9715  cat >conftest.$ac_ext <<_ACEOF
9716#line $LINENO "configure"
9717#include "confdefs.h"
9718$ac_includes_default
9719#ifdef F77_DUMMY_MAIN
9720#  ifdef __cplusplus
9721     extern "C"
9722#  endif
9723   int F77_DUMMY_MAIN() { return 1; }
9724#endif
9725int
9726main ()
9727{
9728if ((signed char *) 0)
9729  return 0;
9730if (sizeof (signed char))
9731  return 0;
9732  ;
9733  return 0;
9734}
9735_ACEOF
9736rm -f conftest.$ac_objext
9737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9738  (eval $ac_compile) 2>&5
9739  ac_status=$?
9740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741  (exit $ac_status); } &&
9742         { ac_try='test -s conftest.$ac_objext'
9743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9744  (eval $ac_try) 2>&5
9745  ac_status=$?
9746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747  (exit $ac_status); }; }; then
9748  ac_cv_type_signed_char=yes
9749else
9750  echo "$as_me: failed program was:" >&5
9751cat conftest.$ac_ext >&5
9752ac_cv_type_signed_char=no
9753fi
9754rm -f conftest.$ac_objext conftest.$ac_ext
9755fi
9756echo "$as_me:$LINENO: result: $ac_cv_type_signed_char" >&5
9757echo "${ECHO_T}$ac_cv_type_signed_char" >&6
9758
9759echo "$as_me:$LINENO: checking size of signed char" >&5
9760echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
9761if test "${ac_cv_sizeof_signed_char+set}" = set; then
9762  echo $ECHO_N "(cached) $ECHO_C" >&6
9763else
9764  if test "$ac_cv_type_signed_char" = yes; then
9765  # The cast to unsigned long works around a bug in the HP C Compiler
9766  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9767  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9768  # This bug is HP SR number 8606223364.
9769  if test "$cross_compiling" = yes; then
9770  # Depending upon the size, compute the lo and hi bounds.
9771cat >conftest.$ac_ext <<_ACEOF
9772#line $LINENO "configure"
9773#include "confdefs.h"
9774$ac_includes_default
9775#ifdef F77_DUMMY_MAIN
9776#  ifdef __cplusplus
9777     extern "C"
9778#  endif
9779   int F77_DUMMY_MAIN() { return 1; }
9780#endif
9781int
9782main ()
9783{
9784static int test_array [1 - 2 * !(((long) (sizeof (signed char))) >= 0)];
9785test_array [0] = 0
9786
9787  ;
9788  return 0;
9789}
9790_ACEOF
9791rm -f conftest.$ac_objext
9792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9793  (eval $ac_compile) 2>&5
9794  ac_status=$?
9795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796  (exit $ac_status); } &&
9797         { ac_try='test -s conftest.$ac_objext'
9798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799  (eval $ac_try) 2>&5
9800  ac_status=$?
9801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802  (exit $ac_status); }; }; then
9803  ac_lo=0 ac_mid=0
9804  while :; do
9805    cat >conftest.$ac_ext <<_ACEOF
9806#line $LINENO "configure"
9807#include "confdefs.h"
9808$ac_includes_default
9809#ifdef F77_DUMMY_MAIN
9810#  ifdef __cplusplus
9811     extern "C"
9812#  endif
9813   int F77_DUMMY_MAIN() { return 1; }
9814#endif
9815int
9816main ()
9817{
9818static int test_array [1 - 2 * !(((long) (sizeof (signed char))) <= $ac_mid)];
9819test_array [0] = 0
9820
9821  ;
9822  return 0;
9823}
9824_ACEOF
9825rm -f conftest.$ac_objext
9826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9827  (eval $ac_compile) 2>&5
9828  ac_status=$?
9829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830  (exit $ac_status); } &&
9831         { ac_try='test -s conftest.$ac_objext'
9832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9833  (eval $ac_try) 2>&5
9834  ac_status=$?
9835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836  (exit $ac_status); }; }; then
9837  ac_hi=$ac_mid; break
9838else
9839  echo "$as_me: failed program was:" >&5
9840cat conftest.$ac_ext >&5
9841ac_lo=`expr $ac_mid + 1`
9842                    if test $ac_lo -le $ac_mid; then
9843                      ac_lo= ac_hi=
9844                      break
9845                    fi
9846                    ac_mid=`expr 2 '*' $ac_mid + 1`
9847fi
9848rm -f conftest.$ac_objext conftest.$ac_ext
9849  done
9850else
9851  echo "$as_me: failed program was:" >&5
9852cat conftest.$ac_ext >&5
9853cat >conftest.$ac_ext <<_ACEOF
9854#line $LINENO "configure"
9855#include "confdefs.h"
9856$ac_includes_default
9857#ifdef F77_DUMMY_MAIN
9858#  ifdef __cplusplus
9859     extern "C"
9860#  endif
9861   int F77_DUMMY_MAIN() { return 1; }
9862#endif
9863int
9864main ()
9865{
9866static int test_array [1 - 2 * !(((long) (sizeof (signed char))) < 0)];
9867test_array [0] = 0
9868
9869  ;
9870  return 0;
9871}
9872_ACEOF
9873rm -f conftest.$ac_objext
9874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9875  (eval $ac_compile) 2>&5
9876  ac_status=$?
9877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878  (exit $ac_status); } &&
9879         { ac_try='test -s conftest.$ac_objext'
9880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881  (eval $ac_try) 2>&5
9882  ac_status=$?
9883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884  (exit $ac_status); }; }; then
9885  ac_hi=-1 ac_mid=-1
9886  while :; do
9887    cat >conftest.$ac_ext <<_ACEOF
9888#line $LINENO "configure"
9889#include "confdefs.h"
9890$ac_includes_default
9891#ifdef F77_DUMMY_MAIN
9892#  ifdef __cplusplus
9893     extern "C"
9894#  endif
9895   int F77_DUMMY_MAIN() { return 1; }
9896#endif
9897int
9898main ()
9899{
9900static int test_array [1 - 2 * !(((long) (sizeof (signed char))) >= $ac_mid)];
9901test_array [0] = 0
9902
9903  ;
9904  return 0;
9905}
9906_ACEOF
9907rm -f conftest.$ac_objext
9908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9909  (eval $ac_compile) 2>&5
9910  ac_status=$?
9911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912  (exit $ac_status); } &&
9913         { ac_try='test -s conftest.$ac_objext'
9914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9915  (eval $ac_try) 2>&5
9916  ac_status=$?
9917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918  (exit $ac_status); }; }; then
9919  ac_lo=$ac_mid; break
9920else
9921  echo "$as_me: failed program was:" >&5
9922cat conftest.$ac_ext >&5
9923ac_hi=`expr '(' $ac_mid ')' - 1`
9924                       if test $ac_mid -le $ac_hi; then
9925                         ac_lo= ac_hi=
9926                         break
9927                       fi
9928                       ac_mid=`expr 2 '*' $ac_mid`
9929fi
9930rm -f conftest.$ac_objext conftest.$ac_ext
9931  done
9932else
9933  echo "$as_me: failed program was:" >&5
9934cat conftest.$ac_ext >&5
9935ac_lo= ac_hi=
9936fi
9937rm -f conftest.$ac_objext conftest.$ac_ext
9938fi
9939rm -f conftest.$ac_objext conftest.$ac_ext
9940# Binary search between lo and hi bounds.
9941while test "x$ac_lo" != "x$ac_hi"; do
9942  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9943  cat >conftest.$ac_ext <<_ACEOF
9944#line $LINENO "configure"
9945#include "confdefs.h"
9946$ac_includes_default
9947#ifdef F77_DUMMY_MAIN
9948#  ifdef __cplusplus
9949     extern "C"
9950#  endif
9951   int F77_DUMMY_MAIN() { return 1; }
9952#endif
9953int
9954main ()
9955{
9956static int test_array [1 - 2 * !(((long) (sizeof (signed char))) <= $ac_mid)];
9957test_array [0] = 0
9958
9959  ;
9960  return 0;
9961}
9962_ACEOF
9963rm -f conftest.$ac_objext
9964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9965  (eval $ac_compile) 2>&5
9966  ac_status=$?
9967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968  (exit $ac_status); } &&
9969         { ac_try='test -s conftest.$ac_objext'
9970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971  (eval $ac_try) 2>&5
9972  ac_status=$?
9973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974  (exit $ac_status); }; }; then
9975  ac_hi=$ac_mid
9976else
9977  echo "$as_me: failed program was:" >&5
9978cat conftest.$ac_ext >&5
9979ac_lo=`expr '(' $ac_mid ')' + 1`
9980fi
9981rm -f conftest.$ac_objext conftest.$ac_ext
9982done
9983case $ac_lo in
9984?*) ac_cv_sizeof_signed_char=$ac_lo;;
9985'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char), 77" >&5
9986echo "$as_me: error: cannot compute sizeof (signed char), 77" >&2;}
9987   { (exit 1); exit 1; }; } ;;
9988esac
9989else
9990  if test "$cross_compiling" = yes; then
9991  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
9992echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9993   { (exit 1); exit 1; }; }
9994else
9995  cat >conftest.$ac_ext <<_ACEOF
9996#line $LINENO "configure"
9997#include "confdefs.h"
9998$ac_includes_default
9999long longval () { return (long) (sizeof (signed char)); }
10000unsigned long ulongval () { return (long) (sizeof (signed char)); }
10001#include <stdio.h>
10002#include <stdlib.h>
10003#ifdef F77_DUMMY_MAIN
10004#  ifdef __cplusplus
10005     extern "C"
10006#  endif
10007   int F77_DUMMY_MAIN() { return 1; }
10008#endif
10009int
10010main ()
10011{
10012
10013  FILE *f = fopen ("conftest.val", "w");
10014  if (! f)
10015    exit (1);
10016  if (((long) (sizeof (signed char))) < 0)
10017    {
10018      long i = longval ();
10019      if (i != ((long) (sizeof (signed char))))
10020	exit (1);
10021      fprintf (f, "%ld\n", i);
10022    }
10023  else
10024    {
10025      unsigned long i = ulongval ();
10026      if (i != ((long) (sizeof (signed char))))
10027	exit (1);
10028      fprintf (f, "%lu\n", i);
10029    }
10030  exit (ferror (f) || fclose (f) != 0);
10031
10032  ;
10033  return 0;
10034}
10035_ACEOF
10036rm -f conftest$ac_exeext
10037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10038  (eval $ac_link) 2>&5
10039  ac_status=$?
10040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043  (eval $ac_try) 2>&5
10044  ac_status=$?
10045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046  (exit $ac_status); }; }; then
10047  ac_cv_sizeof_signed_char=`cat conftest.val`
10048else
10049  echo "$as_me: program exited with status $ac_status" >&5
10050echo "$as_me: failed program was:" >&5
10051cat conftest.$ac_ext >&5
10052( exit $ac_status )
10053{ { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char), 77" >&5
10054echo "$as_me: error: cannot compute sizeof (signed char), 77" >&2;}
10055   { (exit 1); exit 1; }; }
10056fi
10057rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10058fi
10059fi
10060rm -f conftest.val
10061else
10062  ac_cv_sizeof_signed_char=0
10063fi
10064fi
10065echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
10066echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
10067cat >>confdefs.h <<_ACEOF
10068#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
10069_ACEOF
10070
10071
10072echo "$as_me:$LINENO: checking for int" >&5
10073echo $ECHO_N "checking for int... $ECHO_C" >&6
10074if test "${ac_cv_type_int+set}" = set; then
10075  echo $ECHO_N "(cached) $ECHO_C" >&6
10076else
10077  cat >conftest.$ac_ext <<_ACEOF
10078#line $LINENO "configure"
10079#include "confdefs.h"
10080$ac_includes_default
10081#ifdef F77_DUMMY_MAIN
10082#  ifdef __cplusplus
10083     extern "C"
10084#  endif
10085   int F77_DUMMY_MAIN() { return 1; }
10086#endif
10087int
10088main ()
10089{
10090if ((int *) 0)
10091  return 0;
10092if (sizeof (int))
10093  return 0;
10094  ;
10095  return 0;
10096}
10097_ACEOF
10098rm -f conftest.$ac_objext
10099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10100  (eval $ac_compile) 2>&5
10101  ac_status=$?
10102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103  (exit $ac_status); } &&
10104         { ac_try='test -s conftest.$ac_objext'
10105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106  (eval $ac_try) 2>&5
10107  ac_status=$?
10108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109  (exit $ac_status); }; }; then
10110  ac_cv_type_int=yes
10111else
10112  echo "$as_me: failed program was:" >&5
10113cat conftest.$ac_ext >&5
10114ac_cv_type_int=no
10115fi
10116rm -f conftest.$ac_objext conftest.$ac_ext
10117fi
10118echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
10119echo "${ECHO_T}$ac_cv_type_int" >&6
10120
10121echo "$as_me:$LINENO: checking size of int" >&5
10122echo $ECHO_N "checking size of int... $ECHO_C" >&6
10123if test "${ac_cv_sizeof_int+set}" = set; then
10124  echo $ECHO_N "(cached) $ECHO_C" >&6
10125else
10126  if test "$ac_cv_type_int" = yes; then
10127  # The cast to unsigned long works around a bug in the HP C Compiler
10128  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10129  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10130  # This bug is HP SR number 8606223364.
10131  if test "$cross_compiling" = yes; then
10132  # Depending upon the size, compute the lo and hi bounds.
10133cat >conftest.$ac_ext <<_ACEOF
10134#line $LINENO "configure"
10135#include "confdefs.h"
10136$ac_includes_default
10137#ifdef F77_DUMMY_MAIN
10138#  ifdef __cplusplus
10139     extern "C"
10140#  endif
10141   int F77_DUMMY_MAIN() { return 1; }
10142#endif
10143int
10144main ()
10145{
10146static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
10147test_array [0] = 0
10148
10149  ;
10150  return 0;
10151}
10152_ACEOF
10153rm -f conftest.$ac_objext
10154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10155  (eval $ac_compile) 2>&5
10156  ac_status=$?
10157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158  (exit $ac_status); } &&
10159         { ac_try='test -s conftest.$ac_objext'
10160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10161  (eval $ac_try) 2>&5
10162  ac_status=$?
10163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164  (exit $ac_status); }; }; then
10165  ac_lo=0 ac_mid=0
10166  while :; do
10167    cat >conftest.$ac_ext <<_ACEOF
10168#line $LINENO "configure"
10169#include "confdefs.h"
10170$ac_includes_default
10171#ifdef F77_DUMMY_MAIN
10172#  ifdef __cplusplus
10173     extern "C"
10174#  endif
10175   int F77_DUMMY_MAIN() { return 1; }
10176#endif
10177int
10178main ()
10179{
10180static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
10181test_array [0] = 0
10182
10183  ;
10184  return 0;
10185}
10186_ACEOF
10187rm -f conftest.$ac_objext
10188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10189  (eval $ac_compile) 2>&5
10190  ac_status=$?
10191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192  (exit $ac_status); } &&
10193         { ac_try='test -s conftest.$ac_objext'
10194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195  (eval $ac_try) 2>&5
10196  ac_status=$?
10197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198  (exit $ac_status); }; }; then
10199  ac_hi=$ac_mid; break
10200else
10201  echo "$as_me: failed program was:" >&5
10202cat conftest.$ac_ext >&5
10203ac_lo=`expr $ac_mid + 1`
10204                    if test $ac_lo -le $ac_mid; then
10205                      ac_lo= ac_hi=
10206                      break
10207                    fi
10208                    ac_mid=`expr 2 '*' $ac_mid + 1`
10209fi
10210rm -f conftest.$ac_objext conftest.$ac_ext
10211  done
10212else
10213  echo "$as_me: failed program was:" >&5
10214cat conftest.$ac_ext >&5
10215cat >conftest.$ac_ext <<_ACEOF
10216#line $LINENO "configure"
10217#include "confdefs.h"
10218$ac_includes_default
10219#ifdef F77_DUMMY_MAIN
10220#  ifdef __cplusplus
10221     extern "C"
10222#  endif
10223   int F77_DUMMY_MAIN() { return 1; }
10224#endif
10225int
10226main ()
10227{
10228static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
10229test_array [0] = 0
10230
10231  ;
10232  return 0;
10233}
10234_ACEOF
10235rm -f conftest.$ac_objext
10236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10237  (eval $ac_compile) 2>&5
10238  ac_status=$?
10239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240  (exit $ac_status); } &&
10241         { ac_try='test -s conftest.$ac_objext'
10242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243  (eval $ac_try) 2>&5
10244  ac_status=$?
10245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246  (exit $ac_status); }; }; then
10247  ac_hi=-1 ac_mid=-1
10248  while :; do
10249    cat >conftest.$ac_ext <<_ACEOF
10250#line $LINENO "configure"
10251#include "confdefs.h"
10252$ac_includes_default
10253#ifdef F77_DUMMY_MAIN
10254#  ifdef __cplusplus
10255     extern "C"
10256#  endif
10257   int F77_DUMMY_MAIN() { return 1; }
10258#endif
10259int
10260main ()
10261{
10262static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
10263test_array [0] = 0
10264
10265  ;
10266  return 0;
10267}
10268_ACEOF
10269rm -f conftest.$ac_objext
10270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10271  (eval $ac_compile) 2>&5
10272  ac_status=$?
10273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274  (exit $ac_status); } &&
10275         { ac_try='test -s conftest.$ac_objext'
10276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277  (eval $ac_try) 2>&5
10278  ac_status=$?
10279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280  (exit $ac_status); }; }; then
10281  ac_lo=$ac_mid; break
10282else
10283  echo "$as_me: failed program was:" >&5
10284cat conftest.$ac_ext >&5
10285ac_hi=`expr '(' $ac_mid ')' - 1`
10286                       if test $ac_mid -le $ac_hi; then
10287                         ac_lo= ac_hi=
10288                         break
10289                       fi
10290                       ac_mid=`expr 2 '*' $ac_mid`
10291fi
10292rm -f conftest.$ac_objext conftest.$ac_ext
10293  done
10294else
10295  echo "$as_me: failed program was:" >&5
10296cat conftest.$ac_ext >&5
10297ac_lo= ac_hi=
10298fi
10299rm -f conftest.$ac_objext conftest.$ac_ext
10300fi
10301rm -f conftest.$ac_objext conftest.$ac_ext
10302# Binary search between lo and hi bounds.
10303while test "x$ac_lo" != "x$ac_hi"; do
10304  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10305  cat >conftest.$ac_ext <<_ACEOF
10306#line $LINENO "configure"
10307#include "confdefs.h"
10308$ac_includes_default
10309#ifdef F77_DUMMY_MAIN
10310#  ifdef __cplusplus
10311     extern "C"
10312#  endif
10313   int F77_DUMMY_MAIN() { return 1; }
10314#endif
10315int
10316main ()
10317{
10318static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
10319test_array [0] = 0
10320
10321  ;
10322  return 0;
10323}
10324_ACEOF
10325rm -f conftest.$ac_objext
10326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10327  (eval $ac_compile) 2>&5
10328  ac_status=$?
10329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330  (exit $ac_status); } &&
10331         { ac_try='test -s conftest.$ac_objext'
10332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10333  (eval $ac_try) 2>&5
10334  ac_status=$?
10335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336  (exit $ac_status); }; }; then
10337  ac_hi=$ac_mid
10338else
10339  echo "$as_me: failed program was:" >&5
10340cat conftest.$ac_ext >&5
10341ac_lo=`expr '(' $ac_mid ')' + 1`
10342fi
10343rm -f conftest.$ac_objext conftest.$ac_ext
10344done
10345case $ac_lo in
10346?*) ac_cv_sizeof_int=$ac_lo;;
10347'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
10348echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
10349   { (exit 1); exit 1; }; } ;;
10350esac
10351else
10352  if test "$cross_compiling" = yes; then
10353  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10354echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10355   { (exit 1); exit 1; }; }
10356else
10357  cat >conftest.$ac_ext <<_ACEOF
10358#line $LINENO "configure"
10359#include "confdefs.h"
10360$ac_includes_default
10361long longval () { return (long) (sizeof (int)); }
10362unsigned long ulongval () { return (long) (sizeof (int)); }
10363#include <stdio.h>
10364#include <stdlib.h>
10365#ifdef F77_DUMMY_MAIN
10366#  ifdef __cplusplus
10367     extern "C"
10368#  endif
10369   int F77_DUMMY_MAIN() { return 1; }
10370#endif
10371int
10372main ()
10373{
10374
10375  FILE *f = fopen ("conftest.val", "w");
10376  if (! f)
10377    exit (1);
10378  if (((long) (sizeof (int))) < 0)
10379    {
10380      long i = longval ();
10381      if (i != ((long) (sizeof (int))))
10382	exit (1);
10383      fprintf (f, "%ld\n", i);
10384    }
10385  else
10386    {
10387      unsigned long i = ulongval ();
10388      if (i != ((long) (sizeof (int))))
10389	exit (1);
10390      fprintf (f, "%lu\n", i);
10391    }
10392  exit (ferror (f) || fclose (f) != 0);
10393
10394  ;
10395  return 0;
10396}
10397_ACEOF
10398rm -f conftest$ac_exeext
10399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10400  (eval $ac_link) 2>&5
10401  ac_status=$?
10402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405  (eval $ac_try) 2>&5
10406  ac_status=$?
10407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408  (exit $ac_status); }; }; then
10409  ac_cv_sizeof_int=`cat conftest.val`
10410else
10411  echo "$as_me: program exited with status $ac_status" >&5
10412echo "$as_me: failed program was:" >&5
10413cat conftest.$ac_ext >&5
10414( exit $ac_status )
10415{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
10416echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
10417   { (exit 1); exit 1; }; }
10418fi
10419rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10420fi
10421fi
10422rm -f conftest.val
10423else
10424  ac_cv_sizeof_int=0
10425fi
10426fi
10427echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
10428echo "${ECHO_T}$ac_cv_sizeof_int" >&6
10429cat >>confdefs.h <<_ACEOF
10430#define SIZEOF_INT $ac_cv_sizeof_int
10431_ACEOF
10432
10433
10434echo "$as_me:$LINENO: checking for long" >&5
10435echo $ECHO_N "checking for long... $ECHO_C" >&6
10436if test "${ac_cv_type_long+set}" = set; then
10437  echo $ECHO_N "(cached) $ECHO_C" >&6
10438else
10439  cat >conftest.$ac_ext <<_ACEOF
10440#line $LINENO "configure"
10441#include "confdefs.h"
10442$ac_includes_default
10443#ifdef F77_DUMMY_MAIN
10444#  ifdef __cplusplus
10445     extern "C"
10446#  endif
10447   int F77_DUMMY_MAIN() { return 1; }
10448#endif
10449int
10450main ()
10451{
10452if ((long *) 0)
10453  return 0;
10454if (sizeof (long))
10455  return 0;
10456  ;
10457  return 0;
10458}
10459_ACEOF
10460rm -f conftest.$ac_objext
10461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10462  (eval $ac_compile) 2>&5
10463  ac_status=$?
10464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465  (exit $ac_status); } &&
10466         { ac_try='test -s conftest.$ac_objext'
10467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468  (eval $ac_try) 2>&5
10469  ac_status=$?
10470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471  (exit $ac_status); }; }; then
10472  ac_cv_type_long=yes
10473else
10474  echo "$as_me: failed program was:" >&5
10475cat conftest.$ac_ext >&5
10476ac_cv_type_long=no
10477fi
10478rm -f conftest.$ac_objext conftest.$ac_ext
10479fi
10480echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
10481echo "${ECHO_T}$ac_cv_type_long" >&6
10482
10483echo "$as_me:$LINENO: checking size of long" >&5
10484echo $ECHO_N "checking size of long... $ECHO_C" >&6
10485if test "${ac_cv_sizeof_long+set}" = set; then
10486  echo $ECHO_N "(cached) $ECHO_C" >&6
10487else
10488  if test "$ac_cv_type_long" = yes; then
10489  # The cast to unsigned long works around a bug in the HP C Compiler
10490  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10491  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10492  # This bug is HP SR number 8606223364.
10493  if test "$cross_compiling" = yes; then
10494  # Depending upon the size, compute the lo and hi bounds.
10495cat >conftest.$ac_ext <<_ACEOF
10496#line $LINENO "configure"
10497#include "confdefs.h"
10498$ac_includes_default
10499#ifdef F77_DUMMY_MAIN
10500#  ifdef __cplusplus
10501     extern "C"
10502#  endif
10503   int F77_DUMMY_MAIN() { return 1; }
10504#endif
10505int
10506main ()
10507{
10508static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
10509test_array [0] = 0
10510
10511  ;
10512  return 0;
10513}
10514_ACEOF
10515rm -f conftest.$ac_objext
10516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10517  (eval $ac_compile) 2>&5
10518  ac_status=$?
10519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520  (exit $ac_status); } &&
10521         { ac_try='test -s conftest.$ac_objext'
10522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523  (eval $ac_try) 2>&5
10524  ac_status=$?
10525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526  (exit $ac_status); }; }; then
10527  ac_lo=0 ac_mid=0
10528  while :; do
10529    cat >conftest.$ac_ext <<_ACEOF
10530#line $LINENO "configure"
10531#include "confdefs.h"
10532$ac_includes_default
10533#ifdef F77_DUMMY_MAIN
10534#  ifdef __cplusplus
10535     extern "C"
10536#  endif
10537   int F77_DUMMY_MAIN() { return 1; }
10538#endif
10539int
10540main ()
10541{
10542static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
10543test_array [0] = 0
10544
10545  ;
10546  return 0;
10547}
10548_ACEOF
10549rm -f conftest.$ac_objext
10550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10551  (eval $ac_compile) 2>&5
10552  ac_status=$?
10553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554  (exit $ac_status); } &&
10555         { ac_try='test -s conftest.$ac_objext'
10556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10557  (eval $ac_try) 2>&5
10558  ac_status=$?
10559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560  (exit $ac_status); }; }; then
10561  ac_hi=$ac_mid; break
10562else
10563  echo "$as_me: failed program was:" >&5
10564cat conftest.$ac_ext >&5
10565ac_lo=`expr $ac_mid + 1`
10566                    if test $ac_lo -le $ac_mid; then
10567                      ac_lo= ac_hi=
10568                      break
10569                    fi
10570                    ac_mid=`expr 2 '*' $ac_mid + 1`
10571fi
10572rm -f conftest.$ac_objext conftest.$ac_ext
10573  done
10574else
10575  echo "$as_me: failed program was:" >&5
10576cat conftest.$ac_ext >&5
10577cat >conftest.$ac_ext <<_ACEOF
10578#line $LINENO "configure"
10579#include "confdefs.h"
10580$ac_includes_default
10581#ifdef F77_DUMMY_MAIN
10582#  ifdef __cplusplus
10583     extern "C"
10584#  endif
10585   int F77_DUMMY_MAIN() { return 1; }
10586#endif
10587int
10588main ()
10589{
10590static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
10591test_array [0] = 0
10592
10593  ;
10594  return 0;
10595}
10596_ACEOF
10597rm -f conftest.$ac_objext
10598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10599  (eval $ac_compile) 2>&5
10600  ac_status=$?
10601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602  (exit $ac_status); } &&
10603         { ac_try='test -s conftest.$ac_objext'
10604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605  (eval $ac_try) 2>&5
10606  ac_status=$?
10607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608  (exit $ac_status); }; }; then
10609  ac_hi=-1 ac_mid=-1
10610  while :; do
10611    cat >conftest.$ac_ext <<_ACEOF
10612#line $LINENO "configure"
10613#include "confdefs.h"
10614$ac_includes_default
10615#ifdef F77_DUMMY_MAIN
10616#  ifdef __cplusplus
10617     extern "C"
10618#  endif
10619   int F77_DUMMY_MAIN() { return 1; }
10620#endif
10621int
10622main ()
10623{
10624static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
10625test_array [0] = 0
10626
10627  ;
10628  return 0;
10629}
10630_ACEOF
10631rm -f conftest.$ac_objext
10632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10633  (eval $ac_compile) 2>&5
10634  ac_status=$?
10635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636  (exit $ac_status); } &&
10637         { ac_try='test -s conftest.$ac_objext'
10638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639  (eval $ac_try) 2>&5
10640  ac_status=$?
10641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642  (exit $ac_status); }; }; then
10643  ac_lo=$ac_mid; break
10644else
10645  echo "$as_me: failed program was:" >&5
10646cat conftest.$ac_ext >&5
10647ac_hi=`expr '(' $ac_mid ')' - 1`
10648                       if test $ac_mid -le $ac_hi; then
10649                         ac_lo= ac_hi=
10650                         break
10651                       fi
10652                       ac_mid=`expr 2 '*' $ac_mid`
10653fi
10654rm -f conftest.$ac_objext conftest.$ac_ext
10655  done
10656else
10657  echo "$as_me: failed program was:" >&5
10658cat conftest.$ac_ext >&5
10659ac_lo= ac_hi=
10660fi
10661rm -f conftest.$ac_objext conftest.$ac_ext
10662fi
10663rm -f conftest.$ac_objext conftest.$ac_ext
10664# Binary search between lo and hi bounds.
10665while test "x$ac_lo" != "x$ac_hi"; do
10666  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10667  cat >conftest.$ac_ext <<_ACEOF
10668#line $LINENO "configure"
10669#include "confdefs.h"
10670$ac_includes_default
10671#ifdef F77_DUMMY_MAIN
10672#  ifdef __cplusplus
10673     extern "C"
10674#  endif
10675   int F77_DUMMY_MAIN() { return 1; }
10676#endif
10677int
10678main ()
10679{
10680static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
10681test_array [0] = 0
10682
10683  ;
10684  return 0;
10685}
10686_ACEOF
10687rm -f conftest.$ac_objext
10688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10689  (eval $ac_compile) 2>&5
10690  ac_status=$?
10691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692  (exit $ac_status); } &&
10693         { ac_try='test -s conftest.$ac_objext'
10694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10695  (eval $ac_try) 2>&5
10696  ac_status=$?
10697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698  (exit $ac_status); }; }; then
10699  ac_hi=$ac_mid
10700else
10701  echo "$as_me: failed program was:" >&5
10702cat conftest.$ac_ext >&5
10703ac_lo=`expr '(' $ac_mid ')' + 1`
10704fi
10705rm -f conftest.$ac_objext conftest.$ac_ext
10706done
10707case $ac_lo in
10708?*) ac_cv_sizeof_long=$ac_lo;;
10709'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
10710echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
10711   { (exit 1); exit 1; }; } ;;
10712esac
10713else
10714  if test "$cross_compiling" = yes; then
10715  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10716echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10717   { (exit 1); exit 1; }; }
10718else
10719  cat >conftest.$ac_ext <<_ACEOF
10720#line $LINENO "configure"
10721#include "confdefs.h"
10722$ac_includes_default
10723long longval () { return (long) (sizeof (long)); }
10724unsigned long ulongval () { return (long) (sizeof (long)); }
10725#include <stdio.h>
10726#include <stdlib.h>
10727#ifdef F77_DUMMY_MAIN
10728#  ifdef __cplusplus
10729     extern "C"
10730#  endif
10731   int F77_DUMMY_MAIN() { return 1; }
10732#endif
10733int
10734main ()
10735{
10736
10737  FILE *f = fopen ("conftest.val", "w");
10738  if (! f)
10739    exit (1);
10740  if (((long) (sizeof (long))) < 0)
10741    {
10742      long i = longval ();
10743      if (i != ((long) (sizeof (long))))
10744	exit (1);
10745      fprintf (f, "%ld\n", i);
10746    }
10747  else
10748    {
10749      unsigned long i = ulongval ();
10750      if (i != ((long) (sizeof (long))))
10751	exit (1);
10752      fprintf (f, "%lu\n", i);
10753    }
10754  exit (ferror (f) || fclose (f) != 0);
10755
10756  ;
10757  return 0;
10758}
10759_ACEOF
10760rm -f conftest$ac_exeext
10761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10762  (eval $ac_link) 2>&5
10763  ac_status=$?
10764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10767  (eval $ac_try) 2>&5
10768  ac_status=$?
10769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770  (exit $ac_status); }; }; then
10771  ac_cv_sizeof_long=`cat conftest.val`
10772else
10773  echo "$as_me: program exited with status $ac_status" >&5
10774echo "$as_me: failed program was:" >&5
10775cat conftest.$ac_ext >&5
10776( exit $ac_status )
10777{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
10778echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
10779   { (exit 1); exit 1; }; }
10780fi
10781rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10782fi
10783fi
10784rm -f conftest.val
10785else
10786  ac_cv_sizeof_long=0
10787fi
10788fi
10789echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
10790echo "${ECHO_T}$ac_cv_sizeof_long" >&6
10791cat >>confdefs.h <<_ACEOF
10792#define SIZEOF_LONG $ac_cv_sizeof_long
10793_ACEOF
10794
10795
10796
10797echo "$as_me:$LINENO: checking for s_char" >&5
10798echo $ECHO_N "checking for s_char... $ECHO_C" >&6
10799if test "${ac_cv_type_s_char+set}" = set; then
10800  echo $ECHO_N "(cached) $ECHO_C" >&6
10801else
10802  cat >conftest.$ac_ext <<_ACEOF
10803#line $LINENO "configure"
10804#include "confdefs.h"
10805$ac_includes_default
10806#ifdef F77_DUMMY_MAIN
10807#  ifdef __cplusplus
10808     extern "C"
10809#  endif
10810   int F77_DUMMY_MAIN() { return 1; }
10811#endif
10812int
10813main ()
10814{
10815if ((s_char *) 0)
10816  return 0;
10817if (sizeof (s_char))
10818  return 0;
10819  ;
10820  return 0;
10821}
10822_ACEOF
10823rm -f conftest.$ac_objext
10824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10825  (eval $ac_compile) 2>&5
10826  ac_status=$?
10827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828  (exit $ac_status); } &&
10829         { ac_try='test -s conftest.$ac_objext'
10830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831  (eval $ac_try) 2>&5
10832  ac_status=$?
10833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834  (exit $ac_status); }; }; then
10835  ac_cv_type_s_char=yes
10836else
10837  echo "$as_me: failed program was:" >&5
10838cat conftest.$ac_ext >&5
10839ac_cv_type_s_char=no
10840fi
10841rm -f conftest.$ac_objext conftest.$ac_ext
10842fi
10843echo "$as_me:$LINENO: result: $ac_cv_type_s_char" >&5
10844echo "${ECHO_T}$ac_cv_type_s_char" >&6
10845if test $ac_cv_type_s_char = yes; then
10846
10847cat >>confdefs.h <<_ACEOF
10848#define HAVE_S_CHAR 1
10849_ACEOF
10850
10851
10852fi
10853
10854case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
10855 *yes)
10856    # We have a typedef for s_char.  Might as well believe it...
10857    ;;
10858 no0no)
10859    # We have signed chars, can't say 'signed char', no s_char typedef.
10860
10861cat >>confdefs.h <<\_ACEOF
10862#define NEED_S_CHAR_TYPEDEF 1
10863_ACEOF
10864
10865    ;;
10866 no1no)
10867    # We have signed chars, can say 'signed char', no s_char typedef.
10868    cat >>confdefs.h <<\_ACEOF
10869#define NEED_S_CHAR_TYPEDEF 1
10870_ACEOF
10871
10872    ;;
10873 yes0no)
10874    # We have unsigned chars, can't say 'signed char', no s_char typedef.
10875    { { echo "$as_me:$LINENO: error: No way to specify a signed character!" >&5
10876echo "$as_me: error: No way to specify a signed character!" >&2;}
10877   { (exit 1); exit 1; }; }
10878    ;;
10879 yes1no)
10880    # We have unsigned chars, can say 'signed char', no s_char typedef.
10881    cat >>confdefs.h <<\_ACEOF
10882#define NEED_S_CHAR_TYPEDEF 1
10883_ACEOF
10884
10885    ;;
10886esac
10887echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10888echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10889if test "${ac_cv_type_uid_t+set}" = set; then
10890  echo $ECHO_N "(cached) $ECHO_C" >&6
10891else
10892  cat >conftest.$ac_ext <<_ACEOF
10893#line $LINENO "configure"
10894#include "confdefs.h"
10895#include <sys/types.h>
10896
10897_ACEOF
10898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10899  egrep "uid_t" >/dev/null 2>&1; then
10900  ac_cv_type_uid_t=yes
10901else
10902  ac_cv_type_uid_t=no
10903fi
10904rm -f conftest*
10905
10906fi
10907echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10908echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10909if test $ac_cv_type_uid_t = no; then
10910
10911cat >>confdefs.h <<\_ACEOF
10912#define uid_t int
10913_ACEOF
10914
10915
10916cat >>confdefs.h <<\_ACEOF
10917#define gid_t int
10918_ACEOF
10919
10920fi
10921
10922
10923case "$host" in
10924 *-*-linux*)
10925
10926
10927for ac_func in __adjtimex __ntp_gettime
10928do
10929as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10930echo "$as_me:$LINENO: checking for $ac_func" >&5
10931echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10932if eval "test \"\${$as_ac_var+set}\" = set"; then
10933  echo $ECHO_N "(cached) $ECHO_C" >&6
10934else
10935  cat >conftest.$ac_ext <<_ACEOF
10936#line $LINENO "configure"
10937#include "confdefs.h"
10938/* System header to define __stub macros and hopefully few prototypes,
10939    which can conflict with char $ac_func (); below.  */
10940#include <assert.h>
10941/* Override any gcc2 internal prototype to avoid an error.  */
10942#ifdef __cplusplus
10943extern "C"
10944#endif
10945/* We use char because int might match the return type of a gcc2
10946   builtin and then its argument prototype would still apply.  */
10947char $ac_func ();
10948char (*f) ();
10949
10950#ifdef F77_DUMMY_MAIN
10951#  ifdef __cplusplus
10952     extern "C"
10953#  endif
10954   int F77_DUMMY_MAIN() { return 1; }
10955#endif
10956int
10957main ()
10958{
10959/* The GNU C library defines this for functions which it implements
10960    to always fail with ENOSYS.  Some functions are actually named
10961    something starting with __ and the normal name is an alias.  */
10962#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10963choke me
10964#else
10965f = $ac_func;
10966#endif
10967
10968  ;
10969  return 0;
10970}
10971_ACEOF
10972rm -f conftest.$ac_objext conftest$ac_exeext
10973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10974  (eval $ac_link) 2>&5
10975  ac_status=$?
10976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977  (exit $ac_status); } &&
10978         { ac_try='test -s conftest$ac_exeext'
10979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10980  (eval $ac_try) 2>&5
10981  ac_status=$?
10982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983  (exit $ac_status); }; }; then
10984  eval "$as_ac_var=yes"
10985else
10986  echo "$as_me: failed program was:" >&5
10987cat conftest.$ac_ext >&5
10988eval "$as_ac_var=no"
10989fi
10990rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10991fi
10992echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10993echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10994if test `eval echo '${'$as_ac_var'}'` = yes; then
10995  cat >>confdefs.h <<_ACEOF
10996#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10997_ACEOF
10998
10999fi
11000done
11001
11002    ;;
11003esac
11004case "$host" in
11005 *-*-aix4*)
11006	# (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
11007	# (returning ENOSYS).  I didn't check 4.2.  If, in the future,
11008	# IBM pulls its thumbs out long enough to implement clock_settime,
11009	# this conditional will need to change.  Maybe use AC_TRY_RUN
11010	# instead to try to set the time to itself and check errno.
11011    ;;
11012 *)
11013
11014for ac_func in clock_gettime clock_settime
11015do
11016as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11017echo "$as_me:$LINENO: checking for $ac_func" >&5
11018echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11019if eval "test \"\${$as_ac_var+set}\" = set"; then
11020  echo $ECHO_N "(cached) $ECHO_C" >&6
11021else
11022  cat >conftest.$ac_ext <<_ACEOF
11023#line $LINENO "configure"
11024#include "confdefs.h"
11025/* System header to define __stub macros and hopefully few prototypes,
11026    which can conflict with char $ac_func (); below.  */
11027#include <assert.h>
11028/* Override any gcc2 internal prototype to avoid an error.  */
11029#ifdef __cplusplus
11030extern "C"
11031#endif
11032/* We use char because int might match the return type of a gcc2
11033   builtin and then its argument prototype would still apply.  */
11034char $ac_func ();
11035char (*f) ();
11036
11037#ifdef F77_DUMMY_MAIN
11038#  ifdef __cplusplus
11039     extern "C"
11040#  endif
11041   int F77_DUMMY_MAIN() { return 1; }
11042#endif
11043int
11044main ()
11045{
11046/* The GNU C library defines this for functions which it implements
11047    to always fail with ENOSYS.  Some functions are actually named
11048    something starting with __ and the normal name is an alias.  */
11049#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11050choke me
11051#else
11052f = $ac_func;
11053#endif
11054
11055  ;
11056  return 0;
11057}
11058_ACEOF
11059rm -f conftest.$ac_objext conftest$ac_exeext
11060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11061  (eval $ac_link) 2>&5
11062  ac_status=$?
11063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064  (exit $ac_status); } &&
11065         { ac_try='test -s conftest$ac_exeext'
11066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067  (eval $ac_try) 2>&5
11068  ac_status=$?
11069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070  (exit $ac_status); }; }; then
11071  eval "$as_ac_var=yes"
11072else
11073  echo "$as_me: failed program was:" >&5
11074cat conftest.$ac_ext >&5
11075eval "$as_ac_var=no"
11076fi
11077rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11078fi
11079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11080echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11081if test `eval echo '${'$as_ac_var'}'` = yes; then
11082  cat >>confdefs.h <<_ACEOF
11083#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11084_ACEOF
11085
11086fi
11087done
11088
11089    ;;
11090esac
11091
11092for ac_func in daemon
11093do
11094as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11095echo "$as_me:$LINENO: checking for $ac_func" >&5
11096echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11097if eval "test \"\${$as_ac_var+set}\" = set"; then
11098  echo $ECHO_N "(cached) $ECHO_C" >&6
11099else
11100  cat >conftest.$ac_ext <<_ACEOF
11101#line $LINENO "configure"
11102#include "confdefs.h"
11103/* System header to define __stub macros and hopefully few prototypes,
11104    which can conflict with char $ac_func (); below.  */
11105#include <assert.h>
11106/* Override any gcc2 internal prototype to avoid an error.  */
11107#ifdef __cplusplus
11108extern "C"
11109#endif
11110/* We use char because int might match the return type of a gcc2
11111   builtin and then its argument prototype would still apply.  */
11112char $ac_func ();
11113char (*f) ();
11114
11115#ifdef F77_DUMMY_MAIN
11116#  ifdef __cplusplus
11117     extern "C"
11118#  endif
11119   int F77_DUMMY_MAIN() { return 1; }
11120#endif
11121int
11122main ()
11123{
11124/* The GNU C library defines this for functions which it implements
11125    to always fail with ENOSYS.  Some functions are actually named
11126    something starting with __ and the normal name is an alias.  */
11127#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11128choke me
11129#else
11130f = $ac_func;
11131#endif
11132
11133  ;
11134  return 0;
11135}
11136_ACEOF
11137rm -f conftest.$ac_objext conftest$ac_exeext
11138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11139  (eval $ac_link) 2>&5
11140  ac_status=$?
11141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142  (exit $ac_status); } &&
11143         { ac_try='test -s conftest$ac_exeext'
11144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145  (eval $ac_try) 2>&5
11146  ac_status=$?
11147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148  (exit $ac_status); }; }; then
11149  eval "$as_ac_var=yes"
11150else
11151  echo "$as_me: failed program was:" >&5
11152cat conftest.$ac_ext >&5
11153eval "$as_ac_var=no"
11154fi
11155rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11156fi
11157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11158echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11159if test `eval echo '${'$as_ac_var'}'` = yes; then
11160  cat >>confdefs.h <<_ACEOF
11161#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11162_ACEOF
11163
11164fi
11165done
11166
11167
11168for ac_func in finite
11169do
11170as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11171echo "$as_me:$LINENO: checking for $ac_func" >&5
11172echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11173if eval "test \"\${$as_ac_var+set}\" = set"; then
11174  echo $ECHO_N "(cached) $ECHO_C" >&6
11175else
11176  cat >conftest.$ac_ext <<_ACEOF
11177#line $LINENO "configure"
11178#include "confdefs.h"
11179/* System header to define __stub macros and hopefully few prototypes,
11180    which can conflict with char $ac_func (); below.  */
11181#include <assert.h>
11182/* Override any gcc2 internal prototype to avoid an error.  */
11183#ifdef __cplusplus
11184extern "C"
11185#endif
11186/* We use char because int might match the return type of a gcc2
11187   builtin and then its argument prototype would still apply.  */
11188char $ac_func ();
11189char (*f) ();
11190
11191#ifdef F77_DUMMY_MAIN
11192#  ifdef __cplusplus
11193     extern "C"
11194#  endif
11195   int F77_DUMMY_MAIN() { return 1; }
11196#endif
11197int
11198main ()
11199{
11200/* The GNU C library defines this for functions which it implements
11201    to always fail with ENOSYS.  Some functions are actually named
11202    something starting with __ and the normal name is an alias.  */
11203#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11204choke me
11205#else
11206f = $ac_func;
11207#endif
11208
11209  ;
11210  return 0;
11211}
11212_ACEOF
11213rm -f conftest.$ac_objext conftest$ac_exeext
11214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11215  (eval $ac_link) 2>&5
11216  ac_status=$?
11217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218  (exit $ac_status); } &&
11219         { ac_try='test -s conftest$ac_exeext'
11220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11221  (eval $ac_try) 2>&5
11222  ac_status=$?
11223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224  (exit $ac_status); }; }; then
11225  eval "$as_ac_var=yes"
11226else
11227  echo "$as_me: failed program was:" >&5
11228cat conftest.$ac_ext >&5
11229eval "$as_ac_var=no"
11230fi
11231rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11232fi
11233echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11234echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11235if test `eval echo '${'$as_ac_var'}'` = yes; then
11236  cat >>confdefs.h <<_ACEOF
11237#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11238_ACEOF
11239
11240else
11241
11242for ac_func in isfinite
11243do
11244as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11245echo "$as_me:$LINENO: checking for $ac_func" >&5
11246echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11247if eval "test \"\${$as_ac_var+set}\" = set"; then
11248  echo $ECHO_N "(cached) $ECHO_C" >&6
11249else
11250  cat >conftest.$ac_ext <<_ACEOF
11251#line $LINENO "configure"
11252#include "confdefs.h"
11253/* System header to define __stub macros and hopefully few prototypes,
11254    which can conflict with char $ac_func (); below.  */
11255#include <assert.h>
11256/* Override any gcc2 internal prototype to avoid an error.  */
11257#ifdef __cplusplus
11258extern "C"
11259#endif
11260/* We use char because int might match the return type of a gcc2
11261   builtin and then its argument prototype would still apply.  */
11262char $ac_func ();
11263char (*f) ();
11264
11265#ifdef F77_DUMMY_MAIN
11266#  ifdef __cplusplus
11267     extern "C"
11268#  endif
11269   int F77_DUMMY_MAIN() { return 1; }
11270#endif
11271int
11272main ()
11273{
11274/* The GNU C library defines this for functions which it implements
11275    to always fail with ENOSYS.  Some functions are actually named
11276    something starting with __ and the normal name is an alias.  */
11277#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11278choke me
11279#else
11280f = $ac_func;
11281#endif
11282
11283  ;
11284  return 0;
11285}
11286_ACEOF
11287rm -f conftest.$ac_objext conftest$ac_exeext
11288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11289  (eval $ac_link) 2>&5
11290  ac_status=$?
11291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292  (exit $ac_status); } &&
11293         { ac_try='test -s conftest$ac_exeext'
11294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11295  (eval $ac_try) 2>&5
11296  ac_status=$?
11297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298  (exit $ac_status); }; }; then
11299  eval "$as_ac_var=yes"
11300else
11301  echo "$as_me: failed program was:" >&5
11302cat conftest.$ac_ext >&5
11303eval "$as_ac_var=no"
11304fi
11305rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11306fi
11307echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11308echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11309if test `eval echo '${'$as_ac_var'}'` = yes; then
11310  cat >>confdefs.h <<_ACEOF
11311#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11312_ACEOF
11313
11314else
11315  echo "$as_me:$LINENO: checking for isfinite with <math.h>" >&5
11316echo $ECHO_N "checking for isfinite with <math.h>... $ECHO_C" >&6
11317    _libs=$LIBS
11318    LIBS="$LIBS -lm"
11319    cat >conftest.$ac_ext <<_ACEOF
11320#line $LINENO "configure"
11321#include "confdefs.h"
11322#include <math.h>
11323#ifdef F77_DUMMY_MAIN
11324#  ifdef __cplusplus
11325     extern "C"
11326#  endif
11327   int F77_DUMMY_MAIN() { return 1; }
11328#endif
11329int
11330main ()
11331{
11332float f = 0.0; isfinite(f)
11333  ;
11334  return 0;
11335}
11336_ACEOF
11337rm -f conftest.$ac_objext conftest$ac_exeext
11338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11339  (eval $ac_link) 2>&5
11340  ac_status=$?
11341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342  (exit $ac_status); } &&
11343         { ac_try='test -s conftest$ac_exeext'
11344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11345  (eval $ac_try) 2>&5
11346  ac_status=$?
11347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348  (exit $ac_status); }; }; then
11349  echo "$as_me:$LINENO: result: yes" >&5
11350echo "${ECHO_T}yes" >&6
11351      cat >>confdefs.h <<\_ACEOF
11352#define HAVE_ISFINITE 1
11353_ACEOF
11354
11355else
11356  echo "$as_me: failed program was:" >&5
11357cat conftest.$ac_ext >&5
11358echo "$as_me:$LINENO: result: no" >&5
11359echo "${ECHO_T}no" >&6
11360fi
11361rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11362    LIBS=$_libs
11363fi
11364done
11365
11366fi
11367done
11368
11369
11370
11371
11372
11373for ac_func in getbootfile getclock getdtablesize getrusage
11374do
11375as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11376echo "$as_me:$LINENO: checking for $ac_func" >&5
11377echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11378if eval "test \"\${$as_ac_var+set}\" = set"; then
11379  echo $ECHO_N "(cached) $ECHO_C" >&6
11380else
11381  cat >conftest.$ac_ext <<_ACEOF
11382#line $LINENO "configure"
11383#include "confdefs.h"
11384/* System header to define __stub macros and hopefully few prototypes,
11385    which can conflict with char $ac_func (); below.  */
11386#include <assert.h>
11387/* Override any gcc2 internal prototype to avoid an error.  */
11388#ifdef __cplusplus
11389extern "C"
11390#endif
11391/* We use char because int might match the return type of a gcc2
11392   builtin and then its argument prototype would still apply.  */
11393char $ac_func ();
11394char (*f) ();
11395
11396#ifdef F77_DUMMY_MAIN
11397#  ifdef __cplusplus
11398     extern "C"
11399#  endif
11400   int F77_DUMMY_MAIN() { return 1; }
11401#endif
11402int
11403main ()
11404{
11405/* The GNU C library defines this for functions which it implements
11406    to always fail with ENOSYS.  Some functions are actually named
11407    something starting with __ and the normal name is an alias.  */
11408#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11409choke me
11410#else
11411f = $ac_func;
11412#endif
11413
11414  ;
11415  return 0;
11416}
11417_ACEOF
11418rm -f conftest.$ac_objext conftest$ac_exeext
11419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11420  (eval $ac_link) 2>&5
11421  ac_status=$?
11422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423  (exit $ac_status); } &&
11424         { ac_try='test -s conftest$ac_exeext'
11425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426  (eval $ac_try) 2>&5
11427  ac_status=$?
11428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429  (exit $ac_status); }; }; then
11430  eval "$as_ac_var=yes"
11431else
11432  echo "$as_me: failed program was:" >&5
11433cat conftest.$ac_ext >&5
11434eval "$as_ac_var=no"
11435fi
11436rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11437fi
11438echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11439echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11440if test `eval echo '${'$as_ac_var'}'` = yes; then
11441  cat >>confdefs.h <<_ACEOF
11442#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11443_ACEOF
11444
11445fi
11446done
11447
11448echo "$as_me:$LINENO: checking for gettimeofday" >&5
11449echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
11450if test "${ac_cv_func_gettimeofday+set}" = set; then
11451  echo $ECHO_N "(cached) $ECHO_C" >&6
11452else
11453  cat >conftest.$ac_ext <<_ACEOF
11454#line $LINENO "configure"
11455#include "confdefs.h"
11456/* System header to define __stub macros and hopefully few prototypes,
11457    which can conflict with char gettimeofday (); below.  */
11458#include <assert.h>
11459/* Override any gcc2 internal prototype to avoid an error.  */
11460#ifdef __cplusplus
11461extern "C"
11462#endif
11463/* We use char because int might match the return type of a gcc2
11464   builtin and then its argument prototype would still apply.  */
11465char gettimeofday ();
11466char (*f) ();
11467
11468#ifdef F77_DUMMY_MAIN
11469#  ifdef __cplusplus
11470     extern "C"
11471#  endif
11472   int F77_DUMMY_MAIN() { return 1; }
11473#endif
11474int
11475main ()
11476{
11477/* The GNU C library defines this for functions which it implements
11478    to always fail with ENOSYS.  Some functions are actually named
11479    something starting with __ and the normal name is an alias.  */
11480#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
11481choke me
11482#else
11483f = gettimeofday;
11484#endif
11485
11486  ;
11487  return 0;
11488}
11489_ACEOF
11490rm -f conftest.$ac_objext conftest$ac_exeext
11491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11492  (eval $ac_link) 2>&5
11493  ac_status=$?
11494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495  (exit $ac_status); } &&
11496         { ac_try='test -s conftest$ac_exeext'
11497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11498  (eval $ac_try) 2>&5
11499  ac_status=$?
11500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501  (exit $ac_status); }; }; then
11502  ac_cv_func_gettimeofday=yes
11503else
11504  echo "$as_me: failed program was:" >&5
11505cat conftest.$ac_ext >&5
11506ac_cv_func_gettimeofday=no
11507fi
11508rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11509fi
11510echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
11511echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
11512if test $ac_cv_func_gettimeofday = yes; then
11513  :
11514else
11515
11516case "$host" in
11517  *-*-mpeix*) ac_cv_func_gettimeofday=yes
11518    ;;
11519esac
11520fi
11521
11522case "$host" in
11523 *-pc-cygwin*)
11524    ;;
11525 *)
11526for ac_func in getuid
11527do
11528as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11529echo "$as_me:$LINENO: checking for $ac_func" >&5
11530echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11531if eval "test \"\${$as_ac_var+set}\" = set"; then
11532  echo $ECHO_N "(cached) $ECHO_C" >&6
11533else
11534  cat >conftest.$ac_ext <<_ACEOF
11535#line $LINENO "configure"
11536#include "confdefs.h"
11537/* System header to define __stub macros and hopefully few prototypes,
11538    which can conflict with char $ac_func (); below.  */
11539#include <assert.h>
11540/* Override any gcc2 internal prototype to avoid an error.  */
11541#ifdef __cplusplus
11542extern "C"
11543#endif
11544/* We use char because int might match the return type of a gcc2
11545   builtin and then its argument prototype would still apply.  */
11546char $ac_func ();
11547char (*f) ();
11548
11549#ifdef F77_DUMMY_MAIN
11550#  ifdef __cplusplus
11551     extern "C"
11552#  endif
11553   int F77_DUMMY_MAIN() { return 1; }
11554#endif
11555int
11556main ()
11557{
11558/* The GNU C library defines this for functions which it implements
11559    to always fail with ENOSYS.  Some functions are actually named
11560    something starting with __ and the normal name is an alias.  */
11561#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11562choke me
11563#else
11564f = $ac_func;
11565#endif
11566
11567  ;
11568  return 0;
11569}
11570_ACEOF
11571rm -f conftest.$ac_objext conftest$ac_exeext
11572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11573  (eval $ac_link) 2>&5
11574  ac_status=$?
11575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576  (exit $ac_status); } &&
11577         { ac_try='test -s conftest$ac_exeext'
11578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579  (eval $ac_try) 2>&5
11580  ac_status=$?
11581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582  (exit $ac_status); }; }; then
11583  eval "$as_ac_var=yes"
11584else
11585  echo "$as_me: failed program was:" >&5
11586cat conftest.$ac_ext >&5
11587eval "$as_ac_var=no"
11588fi
11589rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11590fi
11591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11592echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11593if test `eval echo '${'$as_ac_var'}'` = yes; then
11594  cat >>confdefs.h <<_ACEOF
11595#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11596_ACEOF
11597
11598fi
11599done
11600
11601    ;;
11602esac
11603
11604
11605
11606
11607
11608
11609for ac_func in hstrerror K_open kvm_open memcpy memmove memset
11610do
11611as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11612echo "$as_me:$LINENO: checking for $ac_func" >&5
11613echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11614if eval "test \"\${$as_ac_var+set}\" = set"; then
11615  echo $ECHO_N "(cached) $ECHO_C" >&6
11616else
11617  cat >conftest.$ac_ext <<_ACEOF
11618#line $LINENO "configure"
11619#include "confdefs.h"
11620/* System header to define __stub macros and hopefully few prototypes,
11621    which can conflict with char $ac_func (); below.  */
11622#include <assert.h>
11623/* Override any gcc2 internal prototype to avoid an error.  */
11624#ifdef __cplusplus
11625extern "C"
11626#endif
11627/* We use char because int might match the return type of a gcc2
11628   builtin and then its argument prototype would still apply.  */
11629char $ac_func ();
11630char (*f) ();
11631
11632#ifdef F77_DUMMY_MAIN
11633#  ifdef __cplusplus
11634     extern "C"
11635#  endif
11636   int F77_DUMMY_MAIN() { return 1; }
11637#endif
11638int
11639main ()
11640{
11641/* The GNU C library defines this for functions which it implements
11642    to always fail with ENOSYS.  Some functions are actually named
11643    something starting with __ and the normal name is an alias.  */
11644#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11645choke me
11646#else
11647f = $ac_func;
11648#endif
11649
11650  ;
11651  return 0;
11652}
11653_ACEOF
11654rm -f conftest.$ac_objext conftest$ac_exeext
11655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11656  (eval $ac_link) 2>&5
11657  ac_status=$?
11658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659  (exit $ac_status); } &&
11660         { ac_try='test -s conftest$ac_exeext'
11661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11662  (eval $ac_try) 2>&5
11663  ac_status=$?
11664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665  (exit $ac_status); }; }; then
11666  eval "$as_ac_var=yes"
11667else
11668  echo "$as_me: failed program was:" >&5
11669cat conftest.$ac_ext >&5
11670eval "$as_ac_var=no"
11671fi
11672rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11673fi
11674echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11675echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11676if test `eval echo '${'$as_ac_var'}'` = yes; then
11677  cat >>confdefs.h <<_ACEOF
11678#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11679_ACEOF
11680
11681fi
11682done
11683
11684case "$host" in
11685 *-*-sco3.2v5.0.*)
11686    # Just stubs.  Idiots.
11687    ;;
11688 *)
11689for ac_func in mkstemp
11690do
11691as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11692echo "$as_me:$LINENO: checking for $ac_func" >&5
11693echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11694if eval "test \"\${$as_ac_var+set}\" = set"; then
11695  echo $ECHO_N "(cached) $ECHO_C" >&6
11696else
11697  cat >conftest.$ac_ext <<_ACEOF
11698#line $LINENO "configure"
11699#include "confdefs.h"
11700/* System header to define __stub macros and hopefully few prototypes,
11701    which can conflict with char $ac_func (); below.  */
11702#include <assert.h>
11703/* Override any gcc2 internal prototype to avoid an error.  */
11704#ifdef __cplusplus
11705extern "C"
11706#endif
11707/* We use char because int might match the return type of a gcc2
11708   builtin and then its argument prototype would still apply.  */
11709char $ac_func ();
11710char (*f) ();
11711
11712#ifdef F77_DUMMY_MAIN
11713#  ifdef __cplusplus
11714     extern "C"
11715#  endif
11716   int F77_DUMMY_MAIN() { return 1; }
11717#endif
11718int
11719main ()
11720{
11721/* The GNU C library defines this for functions which it implements
11722    to always fail with ENOSYS.  Some functions are actually named
11723    something starting with __ and the normal name is an alias.  */
11724#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11725choke me
11726#else
11727f = $ac_func;
11728#endif
11729
11730  ;
11731  return 0;
11732}
11733_ACEOF
11734rm -f conftest.$ac_objext conftest$ac_exeext
11735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11736  (eval $ac_link) 2>&5
11737  ac_status=$?
11738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739  (exit $ac_status); } &&
11740         { ac_try='test -s conftest$ac_exeext'
11741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11742  (eval $ac_try) 2>&5
11743  ac_status=$?
11744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745  (exit $ac_status); }; }; then
11746  eval "$as_ac_var=yes"
11747else
11748  echo "$as_me: failed program was:" >&5
11749cat conftest.$ac_ext >&5
11750eval "$as_ac_var=no"
11751fi
11752rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11753fi
11754echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11755echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11756if test `eval echo '${'$as_ac_var'}'` = yes; then
11757  cat >>confdefs.h <<_ACEOF
11758#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11759_ACEOF
11760
11761fi
11762done
11763
11764    ;;
11765esac
11766
11767for ac_func in mktime
11768do
11769as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11770echo "$as_me:$LINENO: checking for $ac_func" >&5
11771echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11772if eval "test \"\${$as_ac_var+set}\" = set"; then
11773  echo $ECHO_N "(cached) $ECHO_C" >&6
11774else
11775  cat >conftest.$ac_ext <<_ACEOF
11776#line $LINENO "configure"
11777#include "confdefs.h"
11778/* System header to define __stub macros and hopefully few prototypes,
11779    which can conflict with char $ac_func (); below.  */
11780#include <assert.h>
11781/* Override any gcc2 internal prototype to avoid an error.  */
11782#ifdef __cplusplus
11783extern "C"
11784#endif
11785/* We use char because int might match the return type of a gcc2
11786   builtin and then its argument prototype would still apply.  */
11787char $ac_func ();
11788char (*f) ();
11789
11790#ifdef F77_DUMMY_MAIN
11791#  ifdef __cplusplus
11792     extern "C"
11793#  endif
11794   int F77_DUMMY_MAIN() { return 1; }
11795#endif
11796int
11797main ()
11798{
11799/* The GNU C library defines this for functions which it implements
11800    to always fail with ENOSYS.  Some functions are actually named
11801    something starting with __ and the normal name is an alias.  */
11802#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11803choke me
11804#else
11805f = $ac_func;
11806#endif
11807
11808  ;
11809  return 0;
11810}
11811_ACEOF
11812rm -f conftest.$ac_objext conftest$ac_exeext
11813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11814  (eval $ac_link) 2>&5
11815  ac_status=$?
11816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817  (exit $ac_status); } &&
11818         { ac_try='test -s conftest$ac_exeext'
11819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11820  (eval $ac_try) 2>&5
11821  ac_status=$?
11822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823  (exit $ac_status); }; }; then
11824  eval "$as_ac_var=yes"
11825else
11826  echo "$as_me: failed program was:" >&5
11827cat conftest.$ac_ext >&5
11828eval "$as_ac_var=no"
11829fi
11830rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11831fi
11832echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11833echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11834if test `eval echo '${'$as_ac_var'}'` = yes; then
11835  cat >>confdefs.h <<_ACEOF
11836#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11837_ACEOF
11838
11839fi
11840done
11841
11842case "$host" in
11843 *-*-aix4*)
11844    # Just a stub.  Idiots.
11845    ;;
11846 *-*-irix*)
11847    # Just a stub in Irix.  Idiots.
11848    ;;
11849 *-*-qnx*)
11850    # Apparently there but not working in QNX.  Idiots?
11851    ;;
11852 *-*-sco3.2v5.0.*)
11853    # Just a stub.  Idiots.
11854    ;;
11855 alpha*-dec-osf4*|alpha*-dec-osf5*)
11856    # mlockall is there, as a #define calling memlk via <sys/mman.h>
11857    # Not easy to test for - cheat.
11858
11859for ac_func in memlk
11860do
11861as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11862echo "$as_me:$LINENO: checking for $ac_func" >&5
11863echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11864if eval "test \"\${$as_ac_var+set}\" = set"; then
11865  echo $ECHO_N "(cached) $ECHO_C" >&6
11866else
11867  cat >conftest.$ac_ext <<_ACEOF
11868#line $LINENO "configure"
11869#include "confdefs.h"
11870/* System header to define __stub macros and hopefully few prototypes,
11871    which can conflict with char $ac_func (); below.  */
11872#include <assert.h>
11873/* Override any gcc2 internal prototype to avoid an error.  */
11874#ifdef __cplusplus
11875extern "C"
11876#endif
11877/* We use char because int might match the return type of a gcc2
11878   builtin and then its argument prototype would still apply.  */
11879char $ac_func ();
11880char (*f) ();
11881
11882#ifdef F77_DUMMY_MAIN
11883#  ifdef __cplusplus
11884     extern "C"
11885#  endif
11886   int F77_DUMMY_MAIN() { return 1; }
11887#endif
11888int
11889main ()
11890{
11891/* The GNU C library defines this for functions which it implements
11892    to always fail with ENOSYS.  Some functions are actually named
11893    something starting with __ and the normal name is an alias.  */
11894#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11895choke me
11896#else
11897f = $ac_func;
11898#endif
11899
11900  ;
11901  return 0;
11902}
11903_ACEOF
11904rm -f conftest.$ac_objext conftest$ac_exeext
11905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11906  (eval $ac_link) 2>&5
11907  ac_status=$?
11908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909  (exit $ac_status); } &&
11910         { ac_try='test -s conftest$ac_exeext'
11911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912  (eval $ac_try) 2>&5
11913  ac_status=$?
11914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915  (exit $ac_status); }; }; then
11916  eval "$as_ac_var=yes"
11917else
11918  echo "$as_me: failed program was:" >&5
11919cat conftest.$ac_ext >&5
11920eval "$as_ac_var=no"
11921fi
11922rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11923fi
11924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11925echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11926if test `eval echo '${'$as_ac_var'}'` = yes; then
11927  cat >>confdefs.h <<_ACEOF
11928#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11929_ACEOF
11930 ac_cv_func_mlockall='yes'
11931fi
11932done
11933
11934
11935for ac_func in mlockall
11936do
11937as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11938echo "$as_me:$LINENO: checking for $ac_func" >&5
11939echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11940if eval "test \"\${$as_ac_var+set}\" = set"; then
11941  echo $ECHO_N "(cached) $ECHO_C" >&6
11942else
11943  cat >conftest.$ac_ext <<_ACEOF
11944#line $LINENO "configure"
11945#include "confdefs.h"
11946/* System header to define __stub macros and hopefully few prototypes,
11947    which can conflict with char $ac_func (); below.  */
11948#include <assert.h>
11949/* Override any gcc2 internal prototype to avoid an error.  */
11950#ifdef __cplusplus
11951extern "C"
11952#endif
11953/* We use char because int might match the return type of a gcc2
11954   builtin and then its argument prototype would still apply.  */
11955char $ac_func ();
11956char (*f) ();
11957
11958#ifdef F77_DUMMY_MAIN
11959#  ifdef __cplusplus
11960     extern "C"
11961#  endif
11962   int F77_DUMMY_MAIN() { return 1; }
11963#endif
11964int
11965main ()
11966{
11967/* The GNU C library defines this for functions which it implements
11968    to always fail with ENOSYS.  Some functions are actually named
11969    something starting with __ and the normal name is an alias.  */
11970#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11971choke me
11972#else
11973f = $ac_func;
11974#endif
11975
11976  ;
11977  return 0;
11978}
11979_ACEOF
11980rm -f conftest.$ac_objext conftest$ac_exeext
11981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11982  (eval $ac_link) 2>&5
11983  ac_status=$?
11984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985  (exit $ac_status); } &&
11986         { ac_try='test -s conftest$ac_exeext'
11987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988  (eval $ac_try) 2>&5
11989  ac_status=$?
11990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991  (exit $ac_status); }; }; then
11992  eval "$as_ac_var=yes"
11993else
11994  echo "$as_me: failed program was:" >&5
11995cat conftest.$ac_ext >&5
11996eval "$as_ac_var=no"
11997fi
11998rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11999fi
12000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12001echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12002if test `eval echo '${'$as_ac_var'}'` = yes; then
12003  cat >>confdefs.h <<_ACEOF
12004#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12005_ACEOF
12006
12007fi
12008done
12009
12010    ;;
12011 *)
12012for ac_func in mlockall
12013do
12014as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12015echo "$as_me:$LINENO: checking for $ac_func" >&5
12016echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12017if eval "test \"\${$as_ac_var+set}\" = set"; then
12018  echo $ECHO_N "(cached) $ECHO_C" >&6
12019else
12020  cat >conftest.$ac_ext <<_ACEOF
12021#line $LINENO "configure"
12022#include "confdefs.h"
12023/* System header to define __stub macros and hopefully few prototypes,
12024    which can conflict with char $ac_func (); below.  */
12025#include <assert.h>
12026/* Override any gcc2 internal prototype to avoid an error.  */
12027#ifdef __cplusplus
12028extern "C"
12029#endif
12030/* We use char because int might match the return type of a gcc2
12031   builtin and then its argument prototype would still apply.  */
12032char $ac_func ();
12033char (*f) ();
12034
12035#ifdef F77_DUMMY_MAIN
12036#  ifdef __cplusplus
12037     extern "C"
12038#  endif
12039   int F77_DUMMY_MAIN() { return 1; }
12040#endif
12041int
12042main ()
12043{
12044/* The GNU C library defines this for functions which it implements
12045    to always fail with ENOSYS.  Some functions are actually named
12046    something starting with __ and the normal name is an alias.  */
12047#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12048choke me
12049#else
12050f = $ac_func;
12051#endif
12052
12053  ;
12054  return 0;
12055}
12056_ACEOF
12057rm -f conftest.$ac_objext conftest$ac_exeext
12058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12059  (eval $ac_link) 2>&5
12060  ac_status=$?
12061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062  (exit $ac_status); } &&
12063         { ac_try='test -s conftest$ac_exeext'
12064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065  (eval $ac_try) 2>&5
12066  ac_status=$?
12067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068  (exit $ac_status); }; }; then
12069  eval "$as_ac_var=yes"
12070else
12071  echo "$as_me: failed program was:" >&5
12072cat conftest.$ac_ext >&5
12073eval "$as_ac_var=no"
12074fi
12075rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12076fi
12077echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12078echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12079if test `eval echo '${'$as_ac_var'}'` = yes; then
12080  cat >>confdefs.h <<_ACEOF
12081#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12082_ACEOF
12083
12084fi
12085done
12086
12087    ;;
12088esac
12089
12090
12091
12092
12093for ac_func in mrand48 srand48 nice nlist
12094do
12095as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12096echo "$as_me:$LINENO: checking for $ac_func" >&5
12097echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12098if eval "test \"\${$as_ac_var+set}\" = set"; then
12099  echo $ECHO_N "(cached) $ECHO_C" >&6
12100else
12101  cat >conftest.$ac_ext <<_ACEOF
12102#line $LINENO "configure"
12103#include "confdefs.h"
12104/* System header to define __stub macros and hopefully few prototypes,
12105    which can conflict with char $ac_func (); below.  */
12106#include <assert.h>
12107/* Override any gcc2 internal prototype to avoid an error.  */
12108#ifdef __cplusplus
12109extern "C"
12110#endif
12111/* We use char because int might match the return type of a gcc2
12112   builtin and then its argument prototype would still apply.  */
12113char $ac_func ();
12114char (*f) ();
12115
12116#ifdef F77_DUMMY_MAIN
12117#  ifdef __cplusplus
12118     extern "C"
12119#  endif
12120   int F77_DUMMY_MAIN() { return 1; }
12121#endif
12122int
12123main ()
12124{
12125/* The GNU C library defines this for functions which it implements
12126    to always fail with ENOSYS.  Some functions are actually named
12127    something starting with __ and the normal name is an alias.  */
12128#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12129choke me
12130#else
12131f = $ac_func;
12132#endif
12133
12134  ;
12135  return 0;
12136}
12137_ACEOF
12138rm -f conftest.$ac_objext conftest$ac_exeext
12139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12140  (eval $ac_link) 2>&5
12141  ac_status=$?
12142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143  (exit $ac_status); } &&
12144         { ac_try='test -s conftest$ac_exeext'
12145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146  (eval $ac_try) 2>&5
12147  ac_status=$?
12148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149  (exit $ac_status); }; }; then
12150  eval "$as_ac_var=yes"
12151else
12152  echo "$as_me: failed program was:" >&5
12153cat conftest.$ac_ext >&5
12154eval "$as_ac_var=no"
12155fi
12156rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12157fi
12158echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12159echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12160if test `eval echo '${'$as_ac_var'}'` = yes; then
12161  cat >>confdefs.h <<_ACEOF
12162#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12163_ACEOF
12164
12165fi
12166done
12167
12168case "$host" in
12169 *-*-solaris2.6)
12170    # Broken...
12171    ;;
12172 *)
12173
12174for ac_func in ntp_adjtime ntp_gettime
12175do
12176as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12177echo "$as_me:$LINENO: checking for $ac_func" >&5
12178echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12179if eval "test \"\${$as_ac_var+set}\" = set"; then
12180  echo $ECHO_N "(cached) $ECHO_C" >&6
12181else
12182  cat >conftest.$ac_ext <<_ACEOF
12183#line $LINENO "configure"
12184#include "confdefs.h"
12185/* System header to define __stub macros and hopefully few prototypes,
12186    which can conflict with char $ac_func (); below.  */
12187#include <assert.h>
12188/* Override any gcc2 internal prototype to avoid an error.  */
12189#ifdef __cplusplus
12190extern "C"
12191#endif
12192/* We use char because int might match the return type of a gcc2
12193   builtin and then its argument prototype would still apply.  */
12194char $ac_func ();
12195char (*f) ();
12196
12197#ifdef F77_DUMMY_MAIN
12198#  ifdef __cplusplus
12199     extern "C"
12200#  endif
12201   int F77_DUMMY_MAIN() { return 1; }
12202#endif
12203int
12204main ()
12205{
12206/* The GNU C library defines this for functions which it implements
12207    to always fail with ENOSYS.  Some functions are actually named
12208    something starting with __ and the normal name is an alias.  */
12209#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12210choke me
12211#else
12212f = $ac_func;
12213#endif
12214
12215  ;
12216  return 0;
12217}
12218_ACEOF
12219rm -f conftest.$ac_objext conftest$ac_exeext
12220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12221  (eval $ac_link) 2>&5
12222  ac_status=$?
12223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224  (exit $ac_status); } &&
12225         { ac_try='test -s conftest$ac_exeext'
12226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227  (eval $ac_try) 2>&5
12228  ac_status=$?
12229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230  (exit $ac_status); }; }; then
12231  eval "$as_ac_var=yes"
12232else
12233  echo "$as_me: failed program was:" >&5
12234cat conftest.$ac_ext >&5
12235eval "$as_ac_var=no"
12236fi
12237rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12238fi
12239echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12240echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12241if test `eval echo '${'$as_ac_var'}'` = yes; then
12242  cat >>confdefs.h <<_ACEOF
12243#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12244_ACEOF
12245
12246fi
12247done
12248
12249    ;;
12250esac
12251
12252
12253
12254
12255
12256for ac_func in plock pututline pututxline readlink rtprio
12257do
12258as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12259echo "$as_me:$LINENO: checking for $ac_func" >&5
12260echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12261if eval "test \"\${$as_ac_var+set}\" = set"; then
12262  echo $ECHO_N "(cached) $ECHO_C" >&6
12263else
12264  cat >conftest.$ac_ext <<_ACEOF
12265#line $LINENO "configure"
12266#include "confdefs.h"
12267/* System header to define __stub macros and hopefully few prototypes,
12268    which can conflict with char $ac_func (); below.  */
12269#include <assert.h>
12270/* Override any gcc2 internal prototype to avoid an error.  */
12271#ifdef __cplusplus
12272extern "C"
12273#endif
12274/* We use char because int might match the return type of a gcc2
12275   builtin and then its argument prototype would still apply.  */
12276char $ac_func ();
12277char (*f) ();
12278
12279#ifdef F77_DUMMY_MAIN
12280#  ifdef __cplusplus
12281     extern "C"
12282#  endif
12283   int F77_DUMMY_MAIN() { return 1; }
12284#endif
12285int
12286main ()
12287{
12288/* The GNU C library defines this for functions which it implements
12289    to always fail with ENOSYS.  Some functions are actually named
12290    something starting with __ and the normal name is an alias.  */
12291#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12292choke me
12293#else
12294f = $ac_func;
12295#endif
12296
12297  ;
12298  return 0;
12299}
12300_ACEOF
12301rm -f conftest.$ac_objext conftest$ac_exeext
12302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12303  (eval $ac_link) 2>&5
12304  ac_status=$?
12305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306  (exit $ac_status); } &&
12307         { ac_try='test -s conftest$ac_exeext'
12308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309  (eval $ac_try) 2>&5
12310  ac_status=$?
12311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312  (exit $ac_status); }; }; then
12313  eval "$as_ac_var=yes"
12314else
12315  echo "$as_me: failed program was:" >&5
12316cat conftest.$ac_ext >&5
12317eval "$as_ac_var=no"
12318fi
12319rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12320fi
12321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12322echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12323if test `eval echo '${'$as_ac_var'}'` = yes; then
12324  cat >>confdefs.h <<_ACEOF
12325#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12326_ACEOF
12327
12328fi
12329done
12330
12331case "$ac_cv_func_mrand48" in
12332 yes) ;;
12333 *)
12334for ac_func in random
12335do
12336as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12337echo "$as_me:$LINENO: checking for $ac_func" >&5
12338echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12339if eval "test \"\${$as_ac_var+set}\" = set"; then
12340  echo $ECHO_N "(cached) $ECHO_C" >&6
12341else
12342  cat >conftest.$ac_ext <<_ACEOF
12343#line $LINENO "configure"
12344#include "confdefs.h"
12345/* System header to define __stub macros and hopefully few prototypes,
12346    which can conflict with char $ac_func (); below.  */
12347#include <assert.h>
12348/* Override any gcc2 internal prototype to avoid an error.  */
12349#ifdef __cplusplus
12350extern "C"
12351#endif
12352/* We use char because int might match the return type of a gcc2
12353   builtin and then its argument prototype would still apply.  */
12354char $ac_func ();
12355char (*f) ();
12356
12357#ifdef F77_DUMMY_MAIN
12358#  ifdef __cplusplus
12359     extern "C"
12360#  endif
12361   int F77_DUMMY_MAIN() { return 1; }
12362#endif
12363int
12364main ()
12365{
12366/* The GNU C library defines this for functions which it implements
12367    to always fail with ENOSYS.  Some functions are actually named
12368    something starting with __ and the normal name is an alias.  */
12369#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12370choke me
12371#else
12372f = $ac_func;
12373#endif
12374
12375  ;
12376  return 0;
12377}
12378_ACEOF
12379rm -f conftest.$ac_objext conftest$ac_exeext
12380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12381  (eval $ac_link) 2>&5
12382  ac_status=$?
12383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384  (exit $ac_status); } &&
12385         { ac_try='test -s conftest$ac_exeext'
12386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387  (eval $ac_try) 2>&5
12388  ac_status=$?
12389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390  (exit $ac_status); }; }; then
12391  eval "$as_ac_var=yes"
12392else
12393  echo "$as_me: failed program was:" >&5
12394cat conftest.$ac_ext >&5
12395eval "$as_ac_var=no"
12396fi
12397rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12398fi
12399echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12400echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12401if test `eval echo '${'$as_ac_var'}'` = yes; then
12402  cat >>confdefs.h <<_ACEOF
12403#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12404_ACEOF
12405
12406else
12407  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12408fi
12409done
12410
12411 ;;
12412esac
12413case "$host" in
12414 *-*-aix4*)
12415    # Just a stub in AIX 4.  Idiots.
12416    ;;
12417 *-*-solaris2.5*)
12418    # Just stubs in solaris2.5.  Idiots.
12419    ;;
12420 *)
12421for ac_func in sched_setscheduler
12422do
12423as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12424echo "$as_me:$LINENO: checking for $ac_func" >&5
12425echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12426if eval "test \"\${$as_ac_var+set}\" = set"; then
12427  echo $ECHO_N "(cached) $ECHO_C" >&6
12428else
12429  cat >conftest.$ac_ext <<_ACEOF
12430#line $LINENO "configure"
12431#include "confdefs.h"
12432/* System header to define __stub macros and hopefully few prototypes,
12433    which can conflict with char $ac_func (); below.  */
12434#include <assert.h>
12435/* Override any gcc2 internal prototype to avoid an error.  */
12436#ifdef __cplusplus
12437extern "C"
12438#endif
12439/* We use char because int might match the return type of a gcc2
12440   builtin and then its argument prototype would still apply.  */
12441char $ac_func ();
12442char (*f) ();
12443
12444#ifdef F77_DUMMY_MAIN
12445#  ifdef __cplusplus
12446     extern "C"
12447#  endif
12448   int F77_DUMMY_MAIN() { return 1; }
12449#endif
12450int
12451main ()
12452{
12453/* The GNU C library defines this for functions which it implements
12454    to always fail with ENOSYS.  Some functions are actually named
12455    something starting with __ and the normal name is an alias.  */
12456#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12457choke me
12458#else
12459f = $ac_func;
12460#endif
12461
12462  ;
12463  return 0;
12464}
12465_ACEOF
12466rm -f conftest.$ac_objext conftest$ac_exeext
12467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12468  (eval $ac_link) 2>&5
12469  ac_status=$?
12470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471  (exit $ac_status); } &&
12472         { ac_try='test -s conftest$ac_exeext'
12473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474  (eval $ac_try) 2>&5
12475  ac_status=$?
12476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477  (exit $ac_status); }; }; then
12478  eval "$as_ac_var=yes"
12479else
12480  echo "$as_me: failed program was:" >&5
12481cat conftest.$ac_ext >&5
12482eval "$as_ac_var=no"
12483fi
12484rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12485fi
12486echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12487echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12488if test `eval echo '${'$as_ac_var'}'` = yes; then
12489  cat >>confdefs.h <<_ACEOF
12490#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12491_ACEOF
12492
12493fi
12494done
12495
12496    ;;
12497esac
12498
12499
12500
12501
12502for ac_func in setlinebuf setpgid setpriority setsid
12503do
12504as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12505echo "$as_me:$LINENO: checking for $ac_func" >&5
12506echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12507if eval "test \"\${$as_ac_var+set}\" = set"; then
12508  echo $ECHO_N "(cached) $ECHO_C" >&6
12509else
12510  cat >conftest.$ac_ext <<_ACEOF
12511#line $LINENO "configure"
12512#include "confdefs.h"
12513/* System header to define __stub macros and hopefully few prototypes,
12514    which can conflict with char $ac_func (); below.  */
12515#include <assert.h>
12516/* Override any gcc2 internal prototype to avoid an error.  */
12517#ifdef __cplusplus
12518extern "C"
12519#endif
12520/* We use char because int might match the return type of a gcc2
12521   builtin and then its argument prototype would still apply.  */
12522char $ac_func ();
12523char (*f) ();
12524
12525#ifdef F77_DUMMY_MAIN
12526#  ifdef __cplusplus
12527     extern "C"
12528#  endif
12529   int F77_DUMMY_MAIN() { return 1; }
12530#endif
12531int
12532main ()
12533{
12534/* The GNU C library defines this for functions which it implements
12535    to always fail with ENOSYS.  Some functions are actually named
12536    something starting with __ and the normal name is an alias.  */
12537#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12538choke me
12539#else
12540f = $ac_func;
12541#endif
12542
12543  ;
12544  return 0;
12545}
12546_ACEOF
12547rm -f conftest.$ac_objext conftest$ac_exeext
12548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12549  (eval $ac_link) 2>&5
12550  ac_status=$?
12551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552  (exit $ac_status); } &&
12553         { ac_try='test -s conftest$ac_exeext'
12554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555  (eval $ac_try) 2>&5
12556  ac_status=$?
12557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558  (exit $ac_status); }; }; then
12559  eval "$as_ac_var=yes"
12560else
12561  echo "$as_me: failed program was:" >&5
12562cat conftest.$ac_ext >&5
12563eval "$as_ac_var=no"
12564fi
12565rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12566fi
12567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12568echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12569if test `eval echo '${'$as_ac_var'}'` = yes; then
12570  cat >>confdefs.h <<_ACEOF
12571#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12572_ACEOF
12573
12574fi
12575done
12576
12577
12578for ac_func in settimeofday
12579do
12580as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12581echo "$as_me:$LINENO: checking for $ac_func" >&5
12582echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12583if eval "test \"\${$as_ac_var+set}\" = set"; then
12584  echo $ECHO_N "(cached) $ECHO_C" >&6
12585else
12586  cat >conftest.$ac_ext <<_ACEOF
12587#line $LINENO "configure"
12588#include "confdefs.h"
12589/* System header to define __stub macros and hopefully few prototypes,
12590    which can conflict with char $ac_func (); below.  */
12591#include <assert.h>
12592/* Override any gcc2 internal prototype to avoid an error.  */
12593#ifdef __cplusplus
12594extern "C"
12595#endif
12596/* We use char because int might match the return type of a gcc2
12597   builtin and then its argument prototype would still apply.  */
12598char $ac_func ();
12599char (*f) ();
12600
12601#ifdef F77_DUMMY_MAIN
12602#  ifdef __cplusplus
12603     extern "C"
12604#  endif
12605   int F77_DUMMY_MAIN() { return 1; }
12606#endif
12607int
12608main ()
12609{
12610/* The GNU C library defines this for functions which it implements
12611    to always fail with ENOSYS.  Some functions are actually named
12612    something starting with __ and the normal name is an alias.  */
12613#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12614choke me
12615#else
12616f = $ac_func;
12617#endif
12618
12619  ;
12620  return 0;
12621}
12622_ACEOF
12623rm -f conftest.$ac_objext conftest$ac_exeext
12624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12625  (eval $ac_link) 2>&5
12626  ac_status=$?
12627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628  (exit $ac_status); } &&
12629         { ac_try='test -s conftest$ac_exeext'
12630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12631  (eval $ac_try) 2>&5
12632  ac_status=$?
12633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634  (exit $ac_status); }; }; then
12635  eval "$as_ac_var=yes"
12636else
12637  echo "$as_me: failed program was:" >&5
12638cat conftest.$ac_ext >&5
12639eval "$as_ac_var=no"
12640fi
12641rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12642fi
12643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12644echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12645if test `eval echo '${'$as_ac_var'}'` = yes; then
12646  cat >>confdefs.h <<_ACEOF
12647#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12648_ACEOF
12649
12650else
12651
12652case "$host" in
12653  *-*-mpeix*) ac_cv_func_settimeofday=yes
12654    ;;
12655esac
12656fi
12657done
12658
12659
12660
12661for ac_func in setvbuf sigaction
12662do
12663as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12664echo "$as_me:$LINENO: checking for $ac_func" >&5
12665echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12666if eval "test \"\${$as_ac_var+set}\" = set"; then
12667  echo $ECHO_N "(cached) $ECHO_C" >&6
12668else
12669  cat >conftest.$ac_ext <<_ACEOF
12670#line $LINENO "configure"
12671#include "confdefs.h"
12672/* System header to define __stub macros and hopefully few prototypes,
12673    which can conflict with char $ac_func (); below.  */
12674#include <assert.h>
12675/* Override any gcc2 internal prototype to avoid an error.  */
12676#ifdef __cplusplus
12677extern "C"
12678#endif
12679/* We use char because int might match the return type of a gcc2
12680   builtin and then its argument prototype would still apply.  */
12681char $ac_func ();
12682char (*f) ();
12683
12684#ifdef F77_DUMMY_MAIN
12685#  ifdef __cplusplus
12686     extern "C"
12687#  endif
12688   int F77_DUMMY_MAIN() { return 1; }
12689#endif
12690int
12691main ()
12692{
12693/* The GNU C library defines this for functions which it implements
12694    to always fail with ENOSYS.  Some functions are actually named
12695    something starting with __ and the normal name is an alias.  */
12696#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12697choke me
12698#else
12699f = $ac_func;
12700#endif
12701
12702  ;
12703  return 0;
12704}
12705_ACEOF
12706rm -f conftest.$ac_objext conftest$ac_exeext
12707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12708  (eval $ac_link) 2>&5
12709  ac_status=$?
12710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711  (exit $ac_status); } &&
12712         { ac_try='test -s conftest$ac_exeext'
12713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12714  (eval $ac_try) 2>&5
12715  ac_status=$?
12716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717  (exit $ac_status); }; }; then
12718  eval "$as_ac_var=yes"
12719else
12720  echo "$as_me: failed program was:" >&5
12721cat conftest.$ac_ext >&5
12722eval "$as_ac_var=no"
12723fi
12724rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12725fi
12726echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12727echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12728if test `eval echo '${'$as_ac_var'}'` = yes; then
12729  cat >>confdefs.h <<_ACEOF
12730#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12731_ACEOF
12732
12733fi
12734done
12735
12736
12737
12738
12739
12740
12741
12742
12743for ac_func in sigvec sigset sigsuspend stime strchr sysconf sysctl
12744do
12745as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12746echo "$as_me:$LINENO: checking for $ac_func" >&5
12747echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12748if eval "test \"\${$as_ac_var+set}\" = set"; then
12749  echo $ECHO_N "(cached) $ECHO_C" >&6
12750else
12751  cat >conftest.$ac_ext <<_ACEOF
12752#line $LINENO "configure"
12753#include "confdefs.h"
12754/* System header to define __stub macros and hopefully few prototypes,
12755    which can conflict with char $ac_func (); below.  */
12756#include <assert.h>
12757/* Override any gcc2 internal prototype to avoid an error.  */
12758#ifdef __cplusplus
12759extern "C"
12760#endif
12761/* We use char because int might match the return type of a gcc2
12762   builtin and then its argument prototype would still apply.  */
12763char $ac_func ();
12764char (*f) ();
12765
12766#ifdef F77_DUMMY_MAIN
12767#  ifdef __cplusplus
12768     extern "C"
12769#  endif
12770   int F77_DUMMY_MAIN() { return 1; }
12771#endif
12772int
12773main ()
12774{
12775/* The GNU C library defines this for functions which it implements
12776    to always fail with ENOSYS.  Some functions are actually named
12777    something starting with __ and the normal name is an alias.  */
12778#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12779choke me
12780#else
12781f = $ac_func;
12782#endif
12783
12784  ;
12785  return 0;
12786}
12787_ACEOF
12788rm -f conftest.$ac_objext conftest$ac_exeext
12789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12790  (eval $ac_link) 2>&5
12791  ac_status=$?
12792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793  (exit $ac_status); } &&
12794         { ac_try='test -s conftest$ac_exeext'
12795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796  (eval $ac_try) 2>&5
12797  ac_status=$?
12798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799  (exit $ac_status); }; }; then
12800  eval "$as_ac_var=yes"
12801else
12802  echo "$as_me: failed program was:" >&5
12803cat conftest.$ac_ext >&5
12804eval "$as_ac_var=no"
12805fi
12806rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12807fi
12808echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12809echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12810if test `eval echo '${'$as_ac_var'}'` = yes; then
12811  cat >>confdefs.h <<_ACEOF
12812#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12813_ACEOF
12814
12815fi
12816done
12817
12818
12819
12820
12821
12822for ac_func in snprintf strdup strerror strstr
12823do
12824as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12825echo "$as_me:$LINENO: checking for $ac_func" >&5
12826echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12827if eval "test \"\${$as_ac_var+set}\" = set"; then
12828  echo $ECHO_N "(cached) $ECHO_C" >&6
12829else
12830  cat >conftest.$ac_ext <<_ACEOF
12831#line $LINENO "configure"
12832#include "confdefs.h"
12833/* System header to define __stub macros and hopefully few prototypes,
12834    which can conflict with char $ac_func (); below.  */
12835#include <assert.h>
12836/* Override any gcc2 internal prototype to avoid an error.  */
12837#ifdef __cplusplus
12838extern "C"
12839#endif
12840/* We use char because int might match the return type of a gcc2
12841   builtin and then its argument prototype would still apply.  */
12842char $ac_func ();
12843char (*f) ();
12844
12845#ifdef F77_DUMMY_MAIN
12846#  ifdef __cplusplus
12847     extern "C"
12848#  endif
12849   int F77_DUMMY_MAIN() { return 1; }
12850#endif
12851int
12852main ()
12853{
12854/* The GNU C library defines this for functions which it implements
12855    to always fail with ENOSYS.  Some functions are actually named
12856    something starting with __ and the normal name is an alias.  */
12857#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12858choke me
12859#else
12860f = $ac_func;
12861#endif
12862
12863  ;
12864  return 0;
12865}
12866_ACEOF
12867rm -f conftest.$ac_objext conftest$ac_exeext
12868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12869  (eval $ac_link) 2>&5
12870  ac_status=$?
12871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872  (exit $ac_status); } &&
12873         { ac_try='test -s conftest$ac_exeext'
12874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875  (eval $ac_try) 2>&5
12876  ac_status=$?
12877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878  (exit $ac_status); }; }; then
12879  eval "$as_ac_var=yes"
12880else
12881  echo "$as_me: failed program was:" >&5
12882cat conftest.$ac_ext >&5
12883eval "$as_ac_var=no"
12884fi
12885rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12886fi
12887echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12888echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12889if test `eval echo '${'$as_ac_var'}'` = yes; then
12890  cat >>confdefs.h <<_ACEOF
12891#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12892_ACEOF
12893
12894fi
12895done
12896
12897
12898for ac_func in timegm
12899do
12900as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12901echo "$as_me:$LINENO: checking for $ac_func" >&5
12902echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12903if eval "test \"\${$as_ac_var+set}\" = set"; then
12904  echo $ECHO_N "(cached) $ECHO_C" >&6
12905else
12906  cat >conftest.$ac_ext <<_ACEOF
12907#line $LINENO "configure"
12908#include "confdefs.h"
12909/* System header to define __stub macros and hopefully few prototypes,
12910    which can conflict with char $ac_func (); below.  */
12911#include <assert.h>
12912/* Override any gcc2 internal prototype to avoid an error.  */
12913#ifdef __cplusplus
12914extern "C"
12915#endif
12916/* We use char because int might match the return type of a gcc2
12917   builtin and then its argument prototype would still apply.  */
12918char $ac_func ();
12919char (*f) ();
12920
12921#ifdef F77_DUMMY_MAIN
12922#  ifdef __cplusplus
12923     extern "C"
12924#  endif
12925   int F77_DUMMY_MAIN() { return 1; }
12926#endif
12927int
12928main ()
12929{
12930/* The GNU C library defines this for functions which it implements
12931    to always fail with ENOSYS.  Some functions are actually named
12932    something starting with __ and the normal name is an alias.  */
12933#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12934choke me
12935#else
12936f = $ac_func;
12937#endif
12938
12939  ;
12940  return 0;
12941}
12942_ACEOF
12943rm -f conftest.$ac_objext conftest$ac_exeext
12944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12945  (eval $ac_link) 2>&5
12946  ac_status=$?
12947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948  (exit $ac_status); } &&
12949         { ac_try='test -s conftest$ac_exeext'
12950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12951  (eval $ac_try) 2>&5
12952  ac_status=$?
12953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954  (exit $ac_status); }; }; then
12955  eval "$as_ac_var=yes"
12956else
12957  echo "$as_me: failed program was:" >&5
12958cat conftest.$ac_ext >&5
12959eval "$as_ac_var=no"
12960fi
12961rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12962fi
12963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12964echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12965if test `eval echo '${'$as_ac_var'}'` = yes; then
12966  cat >>confdefs.h <<_ACEOF
12967#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12968_ACEOF
12969
12970fi
12971done
12972
12973case "$host" in
12974 *-*-aix4*)
12975    # Just stubs.  Idiots.
12976    ;;
12977 *-*-netbsd*)
12978    # Just stubs.  Idiots.
12979    ;;
12980 *-*-openbsd*)
12981    # Just stubs.  Idiots.
12982    ;;
12983 *)
12984
12985for ac_func in timer_create timer_settime
12986do
12987as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12988echo "$as_me:$LINENO: checking for $ac_func" >&5
12989echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12990if eval "test \"\${$as_ac_var+set}\" = set"; then
12991  echo $ECHO_N "(cached) $ECHO_C" >&6
12992else
12993  cat >conftest.$ac_ext <<_ACEOF
12994#line $LINENO "configure"
12995#include "confdefs.h"
12996/* System header to define __stub macros and hopefully few prototypes,
12997    which can conflict with char $ac_func (); below.  */
12998#include <assert.h>
12999/* Override any gcc2 internal prototype to avoid an error.  */
13000#ifdef __cplusplus
13001extern "C"
13002#endif
13003/* We use char because int might match the return type of a gcc2
13004   builtin and then its argument prototype would still apply.  */
13005char $ac_func ();
13006char (*f) ();
13007
13008#ifdef F77_DUMMY_MAIN
13009#  ifdef __cplusplus
13010     extern "C"
13011#  endif
13012   int F77_DUMMY_MAIN() { return 1; }
13013#endif
13014int
13015main ()
13016{
13017/* The GNU C library defines this for functions which it implements
13018    to always fail with ENOSYS.  Some functions are actually named
13019    something starting with __ and the normal name is an alias.  */
13020#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13021choke me
13022#else
13023f = $ac_func;
13024#endif
13025
13026  ;
13027  return 0;
13028}
13029_ACEOF
13030rm -f conftest.$ac_objext conftest$ac_exeext
13031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13032  (eval $ac_link) 2>&5
13033  ac_status=$?
13034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035  (exit $ac_status); } &&
13036         { ac_try='test -s conftest$ac_exeext'
13037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13038  (eval $ac_try) 2>&5
13039  ac_status=$?
13040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041  (exit $ac_status); }; }; then
13042  eval "$as_ac_var=yes"
13043else
13044  echo "$as_me: failed program was:" >&5
13045cat conftest.$ac_ext >&5
13046eval "$as_ac_var=no"
13047fi
13048rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13049fi
13050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13051echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13052if test `eval echo '${'$as_ac_var'}'` = yes; then
13053  cat >>confdefs.h <<_ACEOF
13054#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13055_ACEOF
13056
13057fi
13058done
13059
13060    ;;
13061esac
13062case "$host" in
13063 *-pc-cygwin*)
13064    # I have no idea...
13065    ;;
13066 *)
13067for ac_func in umask
13068do
13069as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13070echo "$as_me:$LINENO: checking for $ac_func" >&5
13071echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13072if eval "test \"\${$as_ac_var+set}\" = set"; then
13073  echo $ECHO_N "(cached) $ECHO_C" >&6
13074else
13075  cat >conftest.$ac_ext <<_ACEOF
13076#line $LINENO "configure"
13077#include "confdefs.h"
13078/* System header to define __stub macros and hopefully few prototypes,
13079    which can conflict with char $ac_func (); below.  */
13080#include <assert.h>
13081/* Override any gcc2 internal prototype to avoid an error.  */
13082#ifdef __cplusplus
13083extern "C"
13084#endif
13085/* We use char because int might match the return type of a gcc2
13086   builtin and then its argument prototype would still apply.  */
13087char $ac_func ();
13088char (*f) ();
13089
13090#ifdef F77_DUMMY_MAIN
13091#  ifdef __cplusplus
13092     extern "C"
13093#  endif
13094   int F77_DUMMY_MAIN() { return 1; }
13095#endif
13096int
13097main ()
13098{
13099/* The GNU C library defines this for functions which it implements
13100    to always fail with ENOSYS.  Some functions are actually named
13101    something starting with __ and the normal name is an alias.  */
13102#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13103choke me
13104#else
13105f = $ac_func;
13106#endif
13107
13108  ;
13109  return 0;
13110}
13111_ACEOF
13112rm -f conftest.$ac_objext conftest$ac_exeext
13113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13114  (eval $ac_link) 2>&5
13115  ac_status=$?
13116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117  (exit $ac_status); } &&
13118         { ac_try='test -s conftest$ac_exeext'
13119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120  (eval $ac_try) 2>&5
13121  ac_status=$?
13122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123  (exit $ac_status); }; }; then
13124  eval "$as_ac_var=yes"
13125else
13126  echo "$as_me: failed program was:" >&5
13127cat conftest.$ac_ext >&5
13128eval "$as_ac_var=no"
13129fi
13130rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13131fi
13132echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13133echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13134if test `eval echo '${'$as_ac_var'}'` = yes; then
13135  cat >>confdefs.h <<_ACEOF
13136#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13137_ACEOF
13138
13139fi
13140done
13141
13142    ;;
13143esac
13144
13145
13146
13147
13148for ac_func in uname updwtmp updwtmpx vsprintf
13149do
13150as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13151echo "$as_me:$LINENO: checking for $ac_func" >&5
13152echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13153if eval "test \"\${$as_ac_var+set}\" = set"; then
13154  echo $ECHO_N "(cached) $ECHO_C" >&6
13155else
13156  cat >conftest.$ac_ext <<_ACEOF
13157#line $LINENO "configure"
13158#include "confdefs.h"
13159/* System header to define __stub macros and hopefully few prototypes,
13160    which can conflict with char $ac_func (); below.  */
13161#include <assert.h>
13162/* Override any gcc2 internal prototype to avoid an error.  */
13163#ifdef __cplusplus
13164extern "C"
13165#endif
13166/* We use char because int might match the return type of a gcc2
13167   builtin and then its argument prototype would still apply.  */
13168char $ac_func ();
13169char (*f) ();
13170
13171#ifdef F77_DUMMY_MAIN
13172#  ifdef __cplusplus
13173     extern "C"
13174#  endif
13175   int F77_DUMMY_MAIN() { return 1; }
13176#endif
13177int
13178main ()
13179{
13180/* The GNU C library defines this for functions which it implements
13181    to always fail with ENOSYS.  Some functions are actually named
13182    something starting with __ and the normal name is an alias.  */
13183#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13184choke me
13185#else
13186f = $ac_func;
13187#endif
13188
13189  ;
13190  return 0;
13191}
13192_ACEOF
13193rm -f conftest.$ac_objext conftest$ac_exeext
13194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13195  (eval $ac_link) 2>&5
13196  ac_status=$?
13197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198  (exit $ac_status); } &&
13199         { ac_try='test -s conftest$ac_exeext'
13200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13201  (eval $ac_try) 2>&5
13202  ac_status=$?
13203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204  (exit $ac_status); }; }; then
13205  eval "$as_ac_var=yes"
13206else
13207  echo "$as_me: failed program was:" >&5
13208cat conftest.$ac_ext >&5
13209eval "$as_ac_var=no"
13210fi
13211rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13212fi
13213echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13214echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13215if test `eval echo '${'$as_ac_var'}'` = yes; then
13216  cat >>confdefs.h <<_ACEOF
13217#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13218_ACEOF
13219
13220fi
13221done
13222
13223
13224echo "$as_me:$LINENO: checking number of arguments to gettimeofday()" >&5
13225echo $ECHO_N "checking number of arguments to gettimeofday()... $ECHO_C" >&6
13226if test "${ac_cv_func_Xettimeofday_nargs+set}" = set; then
13227  echo $ECHO_N "(cached) $ECHO_C" >&6
13228else
13229  cat >conftest.$ac_ext <<_ACEOF
13230#line $LINENO "configure"
13231#include "confdefs.h"
13232#include <sys/time.h>
13233#ifdef F77_DUMMY_MAIN
13234#  ifdef __cplusplus
13235     extern "C"
13236#  endif
13237   int F77_DUMMY_MAIN() { return 1; }
13238#endif
13239int
13240main ()
13241{
13242
13243gettimeofday((struct timeval*)0,(struct timezone*)0);
13244settimeofday((struct timeval*)0,(struct timezone*)0);
13245
13246  ;
13247  return 0;
13248}
13249_ACEOF
13250rm -f conftest.$ac_objext
13251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13252  (eval $ac_compile) 2>&5
13253  ac_status=$?
13254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255  (exit $ac_status); } &&
13256         { ac_try='test -s conftest.$ac_objext'
13257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258  (eval $ac_try) 2>&5
13259  ac_status=$?
13260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261  (exit $ac_status); }; }; then
13262  ac_cv_func_Xettimeofday_nargs=2
13263else
13264  echo "$as_me: failed program was:" >&5
13265cat conftest.$ac_ext >&5
13266ac_cv_func_Xettimeofday_nargs=1
13267fi
13268rm -f conftest.$ac_objext conftest.$ac_ext
13269
13270fi
13271echo "$as_me:$LINENO: result: $ac_cv_func_Xettimeofday_nargs" >&5
13272echo "${ECHO_T}$ac_cv_func_Xettimeofday_nargs" >&6
13273if test $ac_cv_func_Xettimeofday_nargs = 1; then
13274
13275cat >>confdefs.h <<\_ACEOF
13276#define SYSV_TIMEOFDAY 1
13277_ACEOF
13278
13279fi
13280
13281echo "$as_me:$LINENO: checking number of arguments taken by setpgrp()" >&5
13282echo $ECHO_N "checking number of arguments taken by setpgrp()... $ECHO_C" >&6
13283if test "${ac_cv_func_setpgrp_nargs+set}" = set; then
13284  echo $ECHO_N "(cached) $ECHO_C" >&6
13285else
13286  cat >conftest.$ac_ext <<_ACEOF
13287#line $LINENO "configure"
13288#include "confdefs.h"
13289
13290#ifdef HAVE_SYS_TYPES_H
13291# include <sys/types.h>
13292#endif
13293#ifdef HAVE_UNISTD_H
13294# include <unistd.h>
13295#endif
13296
13297#ifdef F77_DUMMY_MAIN
13298#  ifdef __cplusplus
13299     extern "C"
13300#  endif
13301   int F77_DUMMY_MAIN() { return 1; }
13302#endif
13303int
13304main ()
13305{
13306setpgrp(0,0);
13307  ;
13308  return 0;
13309}
13310_ACEOF
13311rm -f conftest.$ac_objext
13312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13313  (eval $ac_compile) 2>&5
13314  ac_status=$?
13315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316  (exit $ac_status); } &&
13317         { ac_try='test -s conftest.$ac_objext'
13318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13319  (eval $ac_try) 2>&5
13320  ac_status=$?
13321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322  (exit $ac_status); }; }; then
13323  ac_cv_func_setpgrp_nargs=2
13324else
13325  echo "$as_me: failed program was:" >&5
13326cat conftest.$ac_ext >&5
13327ac_cv_func_setpgrp_nargs=0
13328fi
13329rm -f conftest.$ac_objext conftest.$ac_ext
13330
13331fi
13332echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_nargs" >&5
13333echo "${ECHO_T}$ac_cv_func_setpgrp_nargs" >&6
13334if test $ac_cv_func_setpgrp_nargs = 0; then
13335
13336cat >>confdefs.h <<\_ACEOF
13337#define HAVE_SETPGRP_0 1
13338_ACEOF
13339
13340fi
13341
13342save_CFLAGS=$CFLAGS
13343CFLAGS="$CFLAGS -I$srcdir/include"
13344
13345echo "$as_me:$LINENO: checking argument pointer type of qsort()'s compare function and base" >&5
13346echo $ECHO_N "checking argument pointer type of qsort()'s compare function and base... $ECHO_C" >&6
13347if test "${ac_cv_func_qsort_argtype+set}" = set; then
13348  echo $ECHO_N "(cached) $ECHO_C" >&6
13349else
13350  cat >conftest.$ac_ext <<_ACEOF
13351#line $LINENO "configure"
13352#include "confdefs.h"
13353
13354#include "l_stdlib.h"
13355
13356#ifdef HAVE_PROTOTYPES
13357#define P(x) x
13358#else
13359#define P(x) ()
13360#endif
13361
13362extern void *base;
13363extern sortfunc P((const void *, const void *));
13364int sortfunc(a, b)
13365  const void *a;
13366  const void *b; { return 0; }
13367
13368#ifdef F77_DUMMY_MAIN
13369#  ifdef __cplusplus
13370     extern "C"
13371#  endif
13372   int F77_DUMMY_MAIN() { return 1; }
13373#endif
13374int
13375main ()
13376{
13377
13378qsort(base, 2, sizeof(char *), sortfunc);
13379
13380  ;
13381  return 0;
13382}
13383_ACEOF
13384rm -f conftest.$ac_objext
13385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13386  (eval $ac_compile) 2>&5
13387  ac_status=$?
13388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389  (exit $ac_status); } &&
13390         { ac_try='test -s conftest.$ac_objext'
13391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392  (eval $ac_try) 2>&5
13393  ac_status=$?
13394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395  (exit $ac_status); }; }; then
13396  ac_cv_func_qsort_argtype=void
13397else
13398  echo "$as_me: failed program was:" >&5
13399cat conftest.$ac_ext >&5
13400ac_cv_func_qsort_argtype=char
13401fi
13402rm -f conftest.$ac_objext conftest.$ac_ext
13403
13404fi
13405echo "$as_me:$LINENO: result: $ac_cv_func_qsort_argtype" >&5
13406echo "${ECHO_T}$ac_cv_func_qsort_argtype" >&6
13407case "$ac_cv_func_qsort_argtype" in
13408 void)
13409
13410cat >>confdefs.h <<\_ACEOF
13411#define QSORT_USES_VOID_P 1
13412_ACEOF
13413
13414    ;;
13415esac
13416
13417CFLAGS=$save_CFLAGS
13418
13419echo "$as_me:$LINENO: checking if we need to declare 'errno'" >&5
13420echo $ECHO_N "checking if we need to declare 'errno'... $ECHO_C" >&6
13421if test "${ac_cv_decl_errno+set}" = set; then
13422  echo $ECHO_N "(cached) $ECHO_C" >&6
13423else
13424  cat >conftest.$ac_ext <<_ACEOF
13425#line $LINENO "configure"
13426#include "confdefs.h"
13427#ifdef HAVE_ERRNO_H
13428#include <errno.h>
13429#endif
13430#ifdef F77_DUMMY_MAIN
13431#  ifdef __cplusplus
13432     extern "C"
13433#  endif
13434   int F77_DUMMY_MAIN() { return 1; }
13435#endif
13436int
13437main ()
13438{
13439errno = 0;
13440  ;
13441  return 0;
13442}
13443_ACEOF
13444rm -f conftest.$ac_objext
13445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13446  (eval $ac_compile) 2>&5
13447  ac_status=$?
13448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449  (exit $ac_status); } &&
13450         { ac_try='test -s conftest.$ac_objext'
13451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452  (eval $ac_try) 2>&5
13453  ac_status=$?
13454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455  (exit $ac_status); }; }; then
13456  ac_cv_decl_errno=no
13457else
13458  echo "$as_me: failed program was:" >&5
13459cat conftest.$ac_ext >&5
13460ac_cv_decl_errno=yes
13461fi
13462rm -f conftest.$ac_objext conftest.$ac_ext
13463fi
13464echo "$as_me:$LINENO: result: $ac_cv_decl_errno" >&5
13465echo "${ECHO_T}$ac_cv_decl_errno" >&6
13466case "$ac_cv_decl_errno" in
13467 yes)
13468cat >>confdefs.h <<\_ACEOF
13469#define DECL_ERRNO 1
13470_ACEOF
13471 ;;
13472esac
13473
13474echo "$as_me:$LINENO: checking if we may declare 'h_errno'" >&5
13475echo $ECHO_N "checking if we may declare 'h_errno'... $ECHO_C" >&6
13476if test "${ac_cv_decl_h_errno+set}" = set; then
13477  echo $ECHO_N "(cached) $ECHO_C" >&6
13478else
13479  cat >conftest.$ac_ext <<_ACEOF
13480#line $LINENO "configure"
13481#include "confdefs.h"
13482#include <sys/types.h>
13483#ifdef HAVE_NETINET_IN_H
13484#include <netinet/in.h>
13485#endif
13486#ifdef HAVE_ARPA_NAMESER_H
13487#include <arpa/nameser.h>
13488#endif
13489#ifdef HAVE_NETDB_H
13490#include <netdb.h>
13491#endif
13492#ifdef HAVE_RESOLV_H
13493#include <resolv.h>
13494#endif
13495#ifdef F77_DUMMY_MAIN
13496#  ifdef __cplusplus
13497     extern "C"
13498#  endif
13499   int F77_DUMMY_MAIN() { return 1; }
13500#endif
13501int
13502main ()
13503{
13504extern int h_errno;
13505  ;
13506  return 0;
13507}
13508_ACEOF
13509rm -f conftest.$ac_objext
13510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13511  (eval $ac_compile) 2>&5
13512  ac_status=$?
13513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514  (exit $ac_status); } &&
13515         { ac_try='test -s conftest.$ac_objext'
13516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517  (eval $ac_try) 2>&5
13518  ac_status=$?
13519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520  (exit $ac_status); }; }; then
13521  ac_cv_decl_h_errno=yes
13522else
13523  echo "$as_me: failed program was:" >&5
13524cat conftest.$ac_ext >&5
13525ac_cv_decl_h_errno=no
13526fi
13527rm -f conftest.$ac_objext conftest.$ac_ext
13528fi
13529echo "$as_me:$LINENO: result: $ac_cv_decl_h_errno" >&5
13530echo "${ECHO_T}$ac_cv_decl_h_errno" >&6
13531case "$ac_cv_decl_h_errno" in
13532 yes)
13533cat >>confdefs.h <<\_ACEOF
13534#define DECL_H_ERRNO 1
13535_ACEOF
13536 ;;
13537esac
13538
13539echo "$as_me:$LINENO: checking if declaring 'char *sys_errlist[]' is ok" >&5
13540echo $ECHO_N "checking if declaring 'char *sys_errlist[]' is ok... $ECHO_C" >&6
13541if test "${ac_cv_decl_sys_errlist+set}" = set; then
13542  echo $ECHO_N "(cached) $ECHO_C" >&6
13543else
13544  cat >conftest.$ac_ext <<_ACEOF
13545#line $LINENO "configure"
13546#include "confdefs.h"
13547#include <stdio.h>
13548#ifdef HAVE_ERRNO_H
13549#include <errno.h>
13550#endif
13551#ifdef F77_DUMMY_MAIN
13552#  ifdef __cplusplus
13553     extern "C"
13554#  endif
13555   int F77_DUMMY_MAIN() { return 1; }
13556#endif
13557int
13558main ()
13559{
13560extern char *sys_errlist[];
13561
13562  ;
13563  return 0;
13564}
13565_ACEOF
13566rm -f conftest.$ac_objext
13567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13568  (eval $ac_compile) 2>&5
13569  ac_status=$?
13570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571  (exit $ac_status); } &&
13572         { ac_try='test -s conftest.$ac_objext'
13573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574  (eval $ac_try) 2>&5
13575  ac_status=$?
13576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577  (exit $ac_status); }; }; then
13578  ac_cv_decl_sys_errlist=yes
13579else
13580  echo "$as_me: failed program was:" >&5
13581cat conftest.$ac_ext >&5
13582ac_cv_decl_sys_errlist=no
13583fi
13584rm -f conftest.$ac_objext conftest.$ac_ext
13585fi
13586echo "$as_me:$LINENO: result: $ac_cv_decl_sys_errlist" >&5
13587echo "${ECHO_T}$ac_cv_decl_sys_errlist" >&6
13588case "$ac_cv_decl_sys_errlist" in
13589 yes)
13590cat >>confdefs.h <<\_ACEOF
13591#define CHAR_SYS_ERRLIST 1
13592_ACEOF
13593 ;;
13594esac
13595
13596echo "$as_me:$LINENO: checking if declaring 'syscall()' is ok" >&5
13597echo $ECHO_N "checking if declaring 'syscall()' is ok... $ECHO_C" >&6
13598if test "${ac_cv_decl_syscall+set}" = set; then
13599  echo $ECHO_N "(cached) $ECHO_C" >&6
13600else
13601  cat >conftest.$ac_ext <<_ACEOF
13602#line $LINENO "configure"
13603#include "confdefs.h"
13604
13605#ifdef HAVE_SYS_TYPES_H
13606# include <sys/types.h>
13607#endif
13608#ifdef HAVE_UNISTD_H
13609# include <unistd.h>
13610#endif
13611#ifdef HAVE_PROTOTYPES
13612#define P(x) x
13613#else
13614#define P(x) ()
13615#endif
13616
13617#ifdef F77_DUMMY_MAIN
13618#  ifdef __cplusplus
13619     extern "C"
13620#  endif
13621   int F77_DUMMY_MAIN() { return 1; }
13622#endif
13623int
13624main ()
13625{
13626extern int syscall P((int, ...));
13627  ;
13628  return 0;
13629}
13630_ACEOF
13631rm -f conftest.$ac_objext
13632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13633  (eval $ac_compile) 2>&5
13634  ac_status=$?
13635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636  (exit $ac_status); } &&
13637         { ac_try='test -s conftest.$ac_objext'
13638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13639  (eval $ac_try) 2>&5
13640  ac_status=$?
13641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642  (exit $ac_status); }; }; then
13643  ac_cv_decl_syscall=yes
13644else
13645  echo "$as_me: failed program was:" >&5
13646cat conftest.$ac_ext >&5
13647ac_cv_decl_syscall=no
13648fi
13649rm -f conftest.$ac_objext conftest.$ac_ext
13650fi
13651echo "$as_me:$LINENO: result: $ac_cv_decl_syscall" >&5
13652echo "${ECHO_T}$ac_cv_decl_syscall" >&6
13653case "$ac_cv_decl_syscall" in
13654 yes)
13655cat >>confdefs.h <<\_ACEOF
13656#define DECL_SYSCALL 1
13657_ACEOF
13658 ;;
13659esac
13660
13661case "$host" in
13662 *-*-aix4.3.*)
13663
13664cat >>confdefs.h <<\_ACEOF
13665#define DECL_HSTRERROR_0 1
13666_ACEOF
13667		# Needed for XLC under AIX 4.3.2
13668    ;;
13669 *-*-mpeix*)
13670
13671cat >>confdefs.h <<\_ACEOF
13672#define DECL_ADJTIME_0 1
13673_ACEOF
13674
13675
13676cat >>confdefs.h <<\_ACEOF
13677#define DECL_INET_NTOA_0 1
13678_ACEOF
13679
13680
13681cat >>confdefs.h <<\_ACEOF
13682#define DECL_MKTEMP_0 1
13683_ACEOF
13684
13685
13686cat >>confdefs.h <<\_ACEOF
13687#define DECL_MRAND48_0 1
13688_ACEOF
13689
13690
13691cat >>confdefs.h <<\_ACEOF
13692#define DECL_SELECT_0 1
13693_ACEOF
13694
13695
13696cat >>confdefs.h <<\_ACEOF
13697#define DECL_SETITIMER_0 1
13698_ACEOF
13699
13700
13701cat >>confdefs.h <<\_ACEOF
13702#define DECL_SRAND48_0 1
13703_ACEOF
13704
13705
13706cat >>confdefs.h <<\_ACEOF
13707#define DECL_SYSLOG_0 1
13708_ACEOF
13709
13710
13711cat >>confdefs.h <<\_ACEOF
13712#define DECL_TIMEOFDAY_0 1
13713_ACEOF
13714
13715    ;;
13716 *-*-osf[45]*)
13717
13718cat >>confdefs.h <<\_ACEOF
13719#define DECL_PLOCK_0 1
13720_ACEOF
13721
13722
13723cat >>confdefs.h <<\_ACEOF
13724#define DECL_STIME_1 1
13725_ACEOF
13726
13727    ;;
13728 *-*-qnx*)
13729
13730cat >>confdefs.h <<\_ACEOF
13731#define DECL_ADJTIME_0 1
13732_ACEOF
13733
13734    ;;
13735 *-*-riscos4*)
13736
13737cat >>confdefs.h <<\_ACEOF
13738#define DECL_ADJTIME_0 1
13739_ACEOF
13740
13741
13742cat >>confdefs.h <<\_ACEOF
13743#define DECL_BZERO_0 1
13744_ACEOF
13745
13746
13747cat >>confdefs.h <<\_ACEOF
13748#define DECL_IOCTL_0 1
13749_ACEOF
13750
13751
13752cat >>confdefs.h <<\_ACEOF
13753#define DECL_IPC_0 1
13754_ACEOF
13755
13756
13757cat >>confdefs.h <<\_ACEOF
13758#define DECL_MEMMOVE_0 1
13759_ACEOF
13760
13761
13762cat >>confdefs.h <<\_ACEOF
13763#define DECL_MKTEMP_0 1
13764_ACEOF
13765
13766
13767cat >>confdefs.h <<\_ACEOF
13768#define DECL_RENAME_0 1
13769_ACEOF
13770
13771
13772cat >>confdefs.h <<\_ACEOF
13773#define DECL_SELECT_0 1
13774_ACEOF
13775
13776
13777cat >>confdefs.h <<\_ACEOF
13778#define DECL_SETITIMER_0 1
13779_ACEOF
13780
13781
13782cat >>confdefs.h <<\_ACEOF
13783#define DECL_SETPRIORITY_0 1
13784_ACEOF
13785
13786
13787cat >>confdefs.h <<\_ACEOF
13788#define DECL_STDIO_0 1
13789_ACEOF
13790
13791
13792cat >>confdefs.h <<\_ACEOF
13793#define DECL_STRTOL_0 1
13794_ACEOF
13795
13796
13797cat >>confdefs.h <<\_ACEOF
13798#define DECL_SYSLOG_0 1
13799_ACEOF
13800
13801
13802cat >>confdefs.h <<\_ACEOF
13803#define DECL_TIME_0 1
13804_ACEOF
13805
13806
13807cat >>confdefs.h <<\_ACEOF
13808#define DECL_TIMEOFDAY_0 1
13809_ACEOF
13810
13811
13812cat >>confdefs.h <<\_ACEOF
13813#define DECL_TOLOWER_0 1
13814_ACEOF
13815
13816    ;;
13817 *-*-solaris2*)
13818
13819cat >>confdefs.h <<\_ACEOF
13820#define DECL_MKSTEMP_0 1
13821_ACEOF
13822
13823
13824cat >>confdefs.h <<\_ACEOF
13825#define DECL_SETPRIORITY_1 1
13826_ACEOF
13827
13828    case "$host" in
13829     *-*-solaris2.4)
13830
13831cat >>confdefs.h <<\_ACEOF
13832#define DECL_TIMEOFDAY_0 1
13833_ACEOF
13834
13835	;;
13836    esac
13837    ;;
13838 *-*-sunos4*)
13839
13840cat >>confdefs.h <<\_ACEOF
13841#define DECL_ADJTIME_0 1
13842_ACEOF
13843
13844
13845cat >>confdefs.h <<\_ACEOF
13846#define DECL_BCOPY_0 1
13847_ACEOF
13848
13849
13850cat >>confdefs.h <<\_ACEOF
13851#define DECL_BZERO_0 1
13852_ACEOF
13853
13854
13855cat >>confdefs.h <<\_ACEOF
13856#define DECL_IOCTL_0 1
13857_ACEOF
13858
13859
13860cat >>confdefs.h <<\_ACEOF
13861#define DECL_IPC_0 1
13862_ACEOF
13863
13864
13865cat >>confdefs.h <<\_ACEOF
13866#define DECL_MEMMOVE_0 1
13867_ACEOF
13868
13869
13870cat >>confdefs.h <<\_ACEOF
13871#define DECL_MKTEMP_0 1
13872_ACEOF
13873
13874
13875cat >>confdefs.h <<\_ACEOF
13876#define DECL_MKSTEMP_0 1
13877_ACEOF
13878
13879
13880cat >>confdefs.h <<\_ACEOF
13881#define DECL_MRAND48_0 1
13882_ACEOF
13883
13884
13885cat >>confdefs.h <<\_ACEOF
13886#define DECL_RENAME_0 1
13887_ACEOF
13888
13889
13890cat >>confdefs.h <<\_ACEOF
13891#define DECL_SELECT_0 1
13892_ACEOF
13893
13894
13895cat >>confdefs.h <<\_ACEOF
13896#define DECL_SETITIMER_0 1
13897_ACEOF
13898
13899
13900cat >>confdefs.h <<\_ACEOF
13901#define DECL_SETPRIORITY_0 1
13902_ACEOF
13903
13904
13905cat >>confdefs.h <<\_ACEOF
13906#define DECL_SIGVEC_0 1
13907_ACEOF
13908
13909
13910cat >>confdefs.h <<\_ACEOF
13911#define DECL_SRAND48_0 1
13912_ACEOF
13913
13914    case "`basename $ac_cv_prog_CC`" in
13915     acc*) ;;
13916     *)
13917cat >>confdefs.h <<\_ACEOF
13918#define DECL_STDIO_0 1
13919_ACEOF
13920
13921	;;
13922    esac
13923
13924cat >>confdefs.h <<\_ACEOF
13925#define DECL_STRTOL_0 1
13926_ACEOF
13927
13928
13929cat >>confdefs.h <<\_ACEOF
13930#define DECL_SYSLOG_0 1
13931_ACEOF
13932
13933
13934cat >>confdefs.h <<\_ACEOF
13935#define DECL_TIME_0 1
13936_ACEOF
13937
13938
13939cat >>confdefs.h <<\_ACEOF
13940#define DECL_TIMEOFDAY_0 1
13941_ACEOF
13942
13943
13944cat >>confdefs.h <<\_ACEOF
13945#define DECL_TOLOWER_0 1
13946_ACEOF
13947
13948
13949cat >>confdefs.h <<\_ACEOF
13950#define DECL_TOUPPER_0 1
13951_ACEOF
13952
13953
13954cat >>confdefs.h <<\_ACEOF
13955#define DECL_STRERROR_0 1
13956_ACEOF
13957
13958    ;;
13959 *-*-ultrix4*)
13960
13961cat >>confdefs.h <<\_ACEOF
13962#define DECL_ADJTIME_0 1
13963_ACEOF
13964
13965
13966cat >>confdefs.h <<\_ACEOF
13967#define DECL_BZERO_0 1
13968_ACEOF
13969
13970
13971cat >>confdefs.h <<\_ACEOF
13972#define DECL_CFSETISPEED_0 1
13973_ACEOF
13974
13975
13976cat >>confdefs.h <<\_ACEOF
13977#define DECL_IOCTL_0 1
13978_ACEOF
13979
13980
13981cat >>confdefs.h <<\_ACEOF
13982#define DECL_IPC_0 1
13983_ACEOF
13984
13985
13986cat >>confdefs.h <<\_ACEOF
13987#define DECL_MKTEMP_0 1
13988_ACEOF
13989
13990
13991cat >>confdefs.h <<\_ACEOF
13992#define DECL_MRAND48_0 1
13993_ACEOF
13994
13995
13996cat >>confdefs.h <<\_ACEOF
13997#define DECL_NLIST_0 1
13998_ACEOF
13999
14000
14001cat >>confdefs.h <<\_ACEOF
14002#define DECL_PLOCK_0 1
14003_ACEOF
14004
14005
14006cat >>confdefs.h <<\_ACEOF
14007#define DECL_SELECT_0 1
14008_ACEOF
14009
14010
14011cat >>confdefs.h <<\_ACEOF
14012#define DECL_SETITIMER_0 1
14013_ACEOF
14014
14015
14016cat >>confdefs.h <<\_ACEOF
14017#define DECL_SETPRIORITY_0 1
14018_ACEOF
14019
14020
14021cat >>confdefs.h <<\_ACEOF
14022#define DECL_SRAND48_0 1
14023_ACEOF
14024
14025
14026cat >>confdefs.h <<\_ACEOF
14027#define DECL_STIME_0 1
14028_ACEOF
14029
14030
14031cat >>confdefs.h <<\_ACEOF
14032#define DECL_SYSLOG_0 1
14033_ACEOF
14034
14035
14036cat >>confdefs.h <<\_ACEOF
14037#define DECL_TIMEOFDAY_0 1
14038_ACEOF
14039
14040    ;;
14041esac
14042
14043case "$host" in
14044 *-*-sco3.2*)
14045
14046cat >>confdefs.h <<\_ACEOF
14047#define TERMIOS_NEEDS__SVID3 1
14048_ACEOF
14049
14050    ;;
14051esac
14052
14053echo "$as_me:$LINENO: checking if we should use a streams device for ifconfig" >&5
14054echo $ECHO_N "checking if we should use a streams device for ifconfig... $ECHO_C" >&6
14055if test "${ac_cv_var_use_streams_device_for_ifconfig+set}" = set; then
14056  echo $ECHO_N "(cached) $ECHO_C" >&6
14057else
14058  ac_cv_var_use_streams_device_for_ifconfig=no
14059fi
14060echo "$as_me:$LINENO: result: $ac_cv_var_use_streams_device_for_ifconfig" >&5
14061echo "${ECHO_T}$ac_cv_var_use_streams_device_for_ifconfig" >&6
14062
14063echo "$as_me:$LINENO: checking if we need extra room for SO_RCVBUF" >&5
14064echo $ECHO_N "checking if we need extra room for SO_RCVBUF... $ECHO_C" >&6
14065if test "${ac_cv_var_rcvbuf_slop+set}" = set; then
14066  echo $ECHO_N "(cached) $ECHO_C" >&6
14067else
14068  ans=no
14069case "$host" in
14070 *-*-hpux[567]*)
14071    ans=yes
14072    ;;
14073esac
14074ac_cv_var_rcvbuf_slop=$ans
14075fi
14076echo "$as_me:$LINENO: result: $ac_cv_var_rcvbuf_slop" >&5
14077echo "${ECHO_T}$ac_cv_var_rcvbuf_slop" >&6
14078case "$ac_cv_var_rcvbuf_slop" in
14079 yes)
14080cat >>confdefs.h <<\_ACEOF
14081#define NEED_RCVBUF_SLOP 1
14082_ACEOF
14083 ;;
14084esac
14085
14086echo "$as_me:$LINENO: checking if we will open the broadcast socket" >&5
14087echo $ECHO_N "checking if we will open the broadcast socket... $ECHO_C" >&6
14088if test "${ac_cv_var_open_bcast_socket+set}" = set; then
14089  echo $ECHO_N "(cached) $ECHO_C" >&6
14090else
14091  ans=yes
14092case "$host" in
14093 *-*-domainos)
14094    ans=no
14095    ;;
14096 *-*-linux*)
14097    ans=no
14098    ;;
14099esac
14100ac_cv_var_open_bcast_socket=$ans
14101fi
14102echo "$as_me:$LINENO: result: $ac_cv_var_open_bcast_socket" >&5
14103echo "${ECHO_T}$ac_cv_var_open_bcast_socket" >&6
14104case "$ac_cv_var_open_bcast_socket" in
14105 yes)
14106cat >>confdefs.h <<\_ACEOF
14107#define OPEN_BCAST_SOCKET 1
14108_ACEOF
14109 ;;
14110esac
14111
14112echo "$as_me:$LINENO: checking if we want the HPUX version of FindConfig()" >&5
14113echo $ECHO_N "checking if we want the HPUX version of FindConfig()... $ECHO_C" >&6
14114if test "${ac_cv_var_hpux_findconfig+set}" = set; then
14115  echo $ECHO_N "(cached) $ECHO_C" >&6
14116else
14117  ans=no
14118case "$host" in
14119 *-*-hpux*)
14120    ans=yes
14121    ;;
14122esac
14123ac_cv_var_hpux_findconfig=$ans
14124fi
14125echo "$as_me:$LINENO: result: $ac_cv_var_hpux_findconfig" >&5
14126echo "${ECHO_T}$ac_cv_var_hpux_findconfig" >&6
14127case "$ac_cv_var_hpux_findconfig" in
14128 yes)
14129cat >>confdefs.h <<\_ACEOF
14130#define NEED_HPUX_FINDCONFIG 1
14131_ACEOF
14132 ;;
14133esac
14134
14135echo "$as_me:$LINENO: checking if process groups are set with -pid" >&5
14136echo $ECHO_N "checking if process groups are set with -pid... $ECHO_C" >&6
14137if test "${ac_cv_arg_setpgrp_negpid+set}" = set; then
14138  echo $ECHO_N "(cached) $ECHO_C" >&6
14139else
14140  case "$host" in
14141 *-*-hpux[567]*)
14142    ans=no
14143    ;;
14144 *-*-hpux*)
14145    ans=yes
14146    ;;
14147 *-*-linux*)
14148    ans=yes
14149    ;;
14150 *-*-sunos3*)
14151    ans=yes
14152    ;;
14153 *-*-ultrix2*)
14154    ans=yes
14155    ;;
14156 *)
14157    ans=no
14158    ;;
14159esac
14160ac_cv_arg_setpgrp_negpid=$ans
14161fi
14162echo "$as_me:$LINENO: result: $ac_cv_arg_setpgrp_negpid" >&5
14163echo "${ECHO_T}$ac_cv_arg_setpgrp_negpid" >&6
14164case "$ac_cv_arg_setpgrp_negpid" in
14165 yes)
14166cat >>confdefs.h <<\_ACEOF
14167#define UDP_BACKWARDS_SETOWN 1
14168_ACEOF
14169 ;;
14170esac
14171
14172echo "$as_me:$LINENO: checking if we need a ctty for F_SETOWN" >&5
14173echo $ECHO_N "checking if we need a ctty for F_SETOWN... $ECHO_C" >&6
14174if test "${ac_cv_func_ctty_for_f_setown+set}" = set; then
14175  echo $ECHO_N "(cached) $ECHO_C" >&6
14176else
14177  case "$host" in
14178 *-*-bsdi[23]*)
14179    ans=yes
14180    ;;
14181 *-*-freebsd*)
14182    ans=yes
14183    ;;
14184 *-*-netbsd*)
14185    ans=yes
14186    ;;
14187 *-*-openbsd*)
14188    ans=yes
14189    ;;
14190 *-*-osf*)
14191    ans=yes
14192    ;;
14193 *) ans=no
14194    ;;
14195esac
14196ac_cv_func_ctty_for_f_setown=$ans
14197fi
14198echo "$as_me:$LINENO: result: $ac_cv_func_ctty_for_f_setown" >&5
14199echo "${ECHO_T}$ac_cv_func_ctty_for_f_setown" >&6
14200case "$ac_cv_func_ctty_for_f_setown" in
14201 yes)
14202cat >>confdefs.h <<\_ACEOF
14203#define USE_FSETOWNCTTY 1
14204_ACEOF
14205 ;;
14206esac
14207
14208ntp_warning='GRONK'
14209echo "$as_me:$LINENO: checking if we'll use clock_settime or settimeofday or stime" >&5
14210echo $ECHO_N "checking if we'll use clock_settime or settimeofday or stime... $ECHO_C" >&6
14211case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
14212 yes*)
14213    ntp_warning=''
14214    ans='clock_settime()'
14215    ;;
14216 noyes*)
14217    ntp_warning='But clock_settime() would be better (if we had it)'
14218    ans='settimeofday()'
14219    ;;
14220 nonoyes)
14221    ntp_warning='Which is the worst of the three'
14222    ans='stime()'
14223    ;;
14224 *)
14225    case "$build" in
14226     $host) ntp_warning='Which leaves us with nothing to use!'
14227    ans=none
14228    ;;
14229esac
14230esac
14231echo "$as_me:$LINENO: result: $ans" >&5
14232echo "${ECHO_T}$ans" >&6
14233case "$ntp_warning" in
14234 '') ;;
14235 *) { echo "$as_me:$LINENO: WARNING: *** $ntp_warning ***" >&5
14236echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
14237    ;;
14238esac
14239
14240echo "$as_me:$LINENO: checking if we have a losing syscall()" >&5
14241echo $ECHO_N "checking if we have a losing syscall()... $ECHO_C" >&6
14242if test "${ac_cv_var_syscall_bug+set}" = set; then
14243  echo $ECHO_N "(cached) $ECHO_C" >&6
14244else
14245  case "$host" in
14246 *-*-solaris2.4*)
14247    ans=yes
14248    ;;
14249 *) ans=no
14250    ;;
14251esac
14252ac_cv_var_syscall_bug=$ans
14253fi
14254echo "$as_me:$LINENO: result: $ac_cv_var_syscall_bug" >&5
14255echo "${ECHO_T}$ac_cv_var_syscall_bug" >&6
14256case "$ac_cv_var_syscall_bug" in
14257 yes)
14258cat >>confdefs.h <<\_ACEOF
14259#define SYSCALL_BUG 1
14260_ACEOF
14261 ;;
14262esac
14263
14264echo "$as_me:$LINENO: checking for Streams/TLI" >&5
14265echo $ECHO_N "checking for Streams/TLI... $ECHO_C" >&6
14266if test "${ac_cv_var_streams_tli+set}" = set; then
14267  echo $ECHO_N "(cached) $ECHO_C" >&6
14268else
14269   case "$ac_cv_header_sys_stropts_h" in
14270  yes)
14271     ans=no
14272     # There must be a better way...
14273     case "$host" in
14274      *-*-ptx*)
14275         ans=yes
14276         ;;
14277     esac
14278     ;;
14279 esac
14280 ac_cv_var_streams_tli=$ans
14281fi
14282echo "$as_me:$LINENO: result: $ac_cv_var_streams_tli" >&5
14283echo "${ECHO_T}$ac_cv_var_streams_tli" >&6
14284case "$ac_cv_var_streams_tli" in
14285 yes)
14286
14287cat >>confdefs.h <<\_ACEOF
14288#define STREAMS_TLI 1
14289_ACEOF
14290
14291    ;;
14292esac
14293
14294echo "$as_me:$LINENO: checking for SIGIO" >&5
14295echo $ECHO_N "checking for SIGIO... $ECHO_C" >&6
14296if test "${ac_cv_hdr_def_sigio+set}" = set; then
14297  echo $ECHO_N "(cached) $ECHO_C" >&6
14298else
14299  cat >conftest.$ac_ext <<_ACEOF
14300#line $LINENO "configure"
14301#include "confdefs.h"
14302#include <signal.h>
14303#ifdef SIGIO
14304   yes
14305#endif
14306
14307_ACEOF
14308if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14309  egrep "yes" >/dev/null 2>&1; then
14310  ac_cv_hdr_def_sigio=yes
14311else
14312  ac_cv_hdr_def_sigio=no
14313fi
14314rm -f conftest*
14315
14316fi
14317echo "$as_me:$LINENO: result: $ac_cv_hdr_def_sigio" >&5
14318echo "${ECHO_T}$ac_cv_hdr_def_sigio" >&6
14319
14320echo "$as_me:$LINENO: checking if we want to use signalled IO" >&5
14321echo $ECHO_N "checking if we want to use signalled IO... $ECHO_C" >&6
14322if test "${ac_cv_var_signalled_io+set}" = set; then
14323  echo $ECHO_N "(cached) $ECHO_C" >&6
14324else
14325  ans=no
14326case "$ac_cv_hdr_def_sigio" in
14327 yes)
14328    ans=yes
14329    case "$host" in
14330     alpha*-dec-osf4*|alpha*-dec-osf5*)
14331        ans=no
14332        ;;
14333     *-convex-*)
14334        ans=no
14335        ;;
14336     *-dec-*)
14337        ans=no
14338        ;;
14339     *-pc-cygwin*)
14340	ans=no
14341	;;
14342     *-sni-sysv*)
14343        ans=no
14344        ;;
14345     *-univel-sysv*)
14346        ans=no
14347	;;
14348     *-*-irix6*)
14349	ans=no
14350	;;
14351     *-*-freebsd*)
14352	ans=no
14353	;;
14354     *-*-linux*)
14355	ans=no
14356	;;
14357    esac
14358    ;;
14359esac
14360ac_cv_var_signalled_io=$ans
14361fi
14362echo "$as_me:$LINENO: result: $ac_cv_var_signalled_io" >&5
14363echo "${ECHO_T}$ac_cv_var_signalled_io" >&6
14364case "$ac_cv_var_signalled_io" in
14365 yes)
14366cat >>confdefs.h <<\_ACEOF
14367#define HAVE_SIGNALED_IO 1
14368_ACEOF
14369 ;;
14370esac
14371
14372echo "$as_me:$LINENO: checking for SIGPOLL" >&5
14373echo $ECHO_N "checking for SIGPOLL... $ECHO_C" >&6
14374if test "${ac_cv_hdr_def_sigpoll+set}" = set; then
14375  echo $ECHO_N "(cached) $ECHO_C" >&6
14376else
14377  cat >conftest.$ac_ext <<_ACEOF
14378#line $LINENO "configure"
14379#include "confdefs.h"
14380#include <signal.h>
14381#ifdef SIGPOLL
14382  yes
14383#endif
14384
14385_ACEOF
14386if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14387  egrep "yes" >/dev/null 2>&1; then
14388  ac_cv_hdr_def_sigpoll=yes
14389else
14390  ac_cv_hdr_def_sigpoll=no
14391fi
14392rm -f conftest*
14393
14394fi
14395echo "$as_me:$LINENO: result: $ac_cv_hdr_def_sigpoll" >&5
14396echo "${ECHO_T}$ac_cv_hdr_def_sigpoll" >&6
14397
14398echo "$as_me:$LINENO: checking for SIGSYS" >&5
14399echo $ECHO_N "checking for SIGSYS... $ECHO_C" >&6
14400if test "${ac_cv_hdr_def_sigsys+set}" = set; then
14401  echo $ECHO_N "(cached) $ECHO_C" >&6
14402else
14403  cat >conftest.$ac_ext <<_ACEOF
14404#line $LINENO "configure"
14405#include "confdefs.h"
14406#include <signal.h>
14407#ifdef SIGSYS
14408  yes
14409#endif
14410
14411_ACEOF
14412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14413  egrep "yes" >/dev/null 2>&1; then
14414  ac_cv_hdr_def_sigsys=yes
14415else
14416  ac_cv_hdr_def_sigsys=no
14417fi
14418rm -f conftest*
14419
14420fi
14421echo "$as_me:$LINENO: result: $ac_cv_hdr_def_sigsys" >&5
14422echo "${ECHO_T}$ac_cv_hdr_def_sigsys" >&6
14423
14424echo "$as_me:$LINENO: checking if we can use SIGPOLL for UDP I/O" >&5
14425echo $ECHO_N "checking if we can use SIGPOLL for UDP I/O... $ECHO_C" >&6
14426if test "${ac_cv_var_use_udp_sigpoll+set}" = set; then
14427  echo $ECHO_N "(cached) $ECHO_C" >&6
14428else
14429  ans=no
14430case "$ac_cv_hdr_def_sigpoll" in
14431 yes)
14432    case "$host" in
14433     mips-sgi-irix*)
14434	ans=no
14435	;;
14436     vax-dec-bsd)
14437        ans=no
14438        ;;
14439     *-pc-cygwin*)
14440	ans=no
14441	;;
14442     *-sni-sysv*)
14443        ans=no
14444        ;;
14445     *-*-aix4*)
14446        ans=no
14447        ;;
14448     *-*-hpux*)
14449        ans=no
14450        ;;
14451     *-*-linux*)
14452	ans=no
14453	;;
14454     *-*-osf*)
14455        ans=no
14456        ;;
14457     *-*-qnx*)
14458        ans=no
14459        ;;
14460     *-*-sunos*)
14461	ans=no
14462	;;
14463     *-*-ultrix*)
14464        ans=no
14465        ;;
14466     *) ans=yes
14467        ;;
14468    esac
14469    ;;
14470esac
14471ac_cv_var_use_udp_sigpoll=$ans
14472fi
14473echo "$as_me:$LINENO: result: $ac_cv_var_use_udp_sigpoll" >&5
14474echo "${ECHO_T}$ac_cv_var_use_udp_sigpoll" >&6
14475case "$ac_cv_var_use_udp_sigpoll" in
14476 yes)
14477cat >>confdefs.h <<\_ACEOF
14478#define USE_UDP_SIGPOLL 1
14479_ACEOF
14480 ;;
14481esac
14482
14483echo "$as_me:$LINENO: checking if we can use SIGPOLL for TTY I/O" >&5
14484echo $ECHO_N "checking if we can use SIGPOLL for TTY I/O... $ECHO_C" >&6
14485if test "${ac_cv_var_use_tty_sigpoll+set}" = set; then
14486  echo $ECHO_N "(cached) $ECHO_C" >&6
14487else
14488  ans=no
14489case "$ac_cv_hdr_def_sigpoll" in
14490 yes)
14491    case "$host" in
14492     mips-sgi-irix*)
14493        ans=no
14494        ;;
14495     vax-dec-bsd)
14496        ans=no
14497        ;;
14498     *-pc-cygwin*)
14499	ans=no
14500	;;
14501     *-sni-sysv*)
14502        ans=no
14503        ;;
14504     *-*-aix4*)
14505	ans=no
14506	;;
14507     *-*-hpux*)
14508        ans=no
14509        ;;
14510     *-*-linux*)
14511	ans=no
14512	;;
14513     *-*-osf*)
14514        ans=no
14515        ;;
14516     *-*-sunos*)
14517	ans=no
14518	;;
14519     *-*-ultrix*)
14520        ans=no
14521        ;;
14522     *-*-qnx*)
14523        ans=no
14524        ;;
14525     *) ans=yes
14526        ;;
14527    esac
14528    ;;
14529esac
14530ac_cv_var_use_tty_sigpoll=$ans
14531fi
14532echo "$as_me:$LINENO: result: $ac_cv_var_use_tty_sigpoll" >&5
14533echo "${ECHO_T}$ac_cv_var_use_tty_sigpoll" >&6
14534case "$ac_cv_var_use_tty_sigpoll" in
14535 yes)
14536cat >>confdefs.h <<\_ACEOF
14537#define USE_TTY_SIGPOLL 1
14538_ACEOF
14539 ;;
14540esac
14541
14542case "$ac_cv_header_sys_sio_h" in
14543 yes)
14544    echo "$as_me:$LINENO: checking sys/sio.h for TIOCDCDTIMESTAMP" >&5
14545echo $ECHO_N "checking sys/sio.h for TIOCDCDTIMESTAMP... $ECHO_C" >&6
14546if test "${ac_cv_hdr_def_tiocdcdtimestamp+set}" = set; then
14547  echo $ECHO_N "(cached) $ECHO_C" >&6
14548else
14549  cat >conftest.$ac_ext <<_ACEOF
14550#line $LINENO "configure"
14551#include "confdefs.h"
14552#include <sys/sio.h>
14553#ifdef TIOCDCDTIMESTAMP
14554  yes
14555#endif
14556
14557_ACEOF
14558if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14559  egrep "yes" >/dev/null 2>&1; then
14560  ac_cv_hdr_def_tiocdcdtimestamp=yes
14561else
14562  ac_cv_hdr_def_tiocdcdtimestamp=no
14563fi
14564rm -f conftest*
14565
14566fi
14567echo "$as_me:$LINENO: result: $ac_cv_hdr_def_tiocdcdtimestamp" >&5
14568echo "${ECHO_T}$ac_cv_hdr_def_tiocdcdtimestamp" >&6
14569    ;;
14570esac
14571
14572case "$ac_cv_hdr_def_tiocdcdtimestamp" in
14573 yes)
14574    ac_cv_var_oncore_ok=yes
14575    ;;
14576esac
14577
14578echo "$as_me:$LINENO: checking if nlist() values might require extra indirection" >&5
14579echo $ECHO_N "checking if nlist() values might require extra indirection... $ECHO_C" >&6
14580if test "${ac_cv_var_nlist_extra_indirection+set}" = set; then
14581  echo $ECHO_N "(cached) $ECHO_C" >&6
14582else
14583  ans=no
14584case "$host" in
14585 *-*-aix*)
14586    ans=yes
14587    ;;
14588esac
14589ac_cv_var_nlist_extra_indirection=$ans
14590fi
14591echo "$as_me:$LINENO: result: $ac_cv_var_nlist_extra_indirection" >&5
14592echo "${ECHO_T}$ac_cv_var_nlist_extra_indirection" >&6
14593case "$ac_cv_var_nlist_extra_indirection" in
14594 yes)
14595cat >>confdefs.h <<\_ACEOF
14596#define NLIST_EXTRA_INDIRECTION 1
14597_ACEOF
14598 ;;
14599esac
14600
14601echo "$as_me:$LINENO: checking for a minimum recommended value of tickadj" >&5
14602echo $ECHO_N "checking for a minimum recommended value of tickadj... $ECHO_C" >&6
14603if test "${ac_cv_var_min_rec_tickadj+set}" = set; then
14604  echo $ECHO_N "(cached) $ECHO_C" >&6
14605else
14606  ans=no
14607case "$host" in
14608 *-*-aix*)
14609    ans=40
14610    ;;
14611esac
14612ac_cv_var_min_rec_tickadj=$ans
14613fi
14614echo "$as_me:$LINENO: result: $ac_cv_var_min_rec_tickadj" >&5
14615echo "${ECHO_T}$ac_cv_var_min_rec_tickadj" >&6
14616case "$ac_cv_var_min_rec_tickadj" in
14617 ''|no) ;;
14618 *)
14619cat >>confdefs.h <<_ACEOF
14620#define MIN_REC_TICKADJ $ac_cv_var_min_rec_tickadj
14621_ACEOF
14622 ;;
14623esac
14624
14625echo "$as_me:$LINENO: checking if the TTY code permits PARENB and IGNPAR" >&5
14626echo $ECHO_N "checking if the TTY code permits PARENB and IGNPAR... $ECHO_C" >&6
14627if test "${ac_cv_var_no_parenb_ignpar+set}" = set; then
14628  echo $ECHO_N "(cached) $ECHO_C" >&6
14629else
14630  ans=no
14631case "$host" in
14632 i?86-*-linux*)
14633    ans=yes
14634    ;;
14635 mips-sgi-irix*)
14636    ans=yes
14637    ;;
14638 i?86-*-freebsd[123].*)
14639    ;;
14640 i?86-*-freebsd*)
14641    ans=yes
14642    ;;
14643esac
14644ac_cv_var_no_parenb_ignpar=$ans
14645fi
14646echo "$as_me:$LINENO: result: $ac_cv_var_no_parenb_ignpar" >&5
14647echo "${ECHO_T}$ac_cv_var_no_parenb_ignpar" >&6
14648case "$ac_cv_var_no_parenb_ignpar" in
14649 yes)
14650cat >>confdefs.h <<\_ACEOF
14651#define NO_PARENB_IGNPAR 1
14652_ACEOF
14653 ;;
14654esac
14655
14656echo "$as_me:$LINENO: checking if we're including debugging code" >&5
14657echo $ECHO_N "checking if we're including debugging code... $ECHO_C" >&6
14658# Check whether --enable-debugging or --disable-debugging was given.
14659if test "${enable_debugging+set}" = set; then
14660  enableval="$enable_debugging"
14661  ntp_ok=$enableval
14662else
14663  ntp_ok=yes
14664fi;
14665if test "$ntp_ok" = "yes"; then
14666
14667cat >>confdefs.h <<\_ACEOF
14668#define DEBUG 1
14669_ACEOF
14670
14671fi
14672echo "$as_me:$LINENO: result: $ntp_ok" >&5
14673echo "${ECHO_T}$ntp_ok" >&6
14674
14675echo "$as_me:$LINENO: checking for a the number of minutes in a DST adjustment" >&5
14676echo $ECHO_N "checking for a the number of minutes in a DST adjustment... $ECHO_C" >&6
14677# Check whether --enable-dst_minutes or --disable-dst_minutes was given.
14678if test "${enable_dst_minutes+set}" = set; then
14679  enableval="$enable_dst_minutes"
14680  ans=$enableval
14681else
14682  ans=60
14683fi;
14684
14685cat >>confdefs.h <<_ACEOF
14686#define DSTMINUTES $ans
14687_ACEOF
14688
14689echo "$as_me:$LINENO: result: $ans" >&5
14690echo "${ECHO_T}$ans" >&6
14691
14692echo "$as_me:$LINENO: checking if we have the tty_clk line discipline/streams module" >&5
14693echo $ECHO_N "checking if we have the tty_clk line discipline/streams module... $ECHO_C" >&6
14694if test "${ac_cv_var_tty_clk+set}" = set; then
14695  echo $ECHO_N "(cached) $ECHO_C" >&6
14696else
14697  case "$ac_cv_header_sys_clkdefs_h$ac_cv_hdr_def_tiocdcdtimestamp" in
14698  *yes*) ac_cv_var_tty_clk=yes ;;
14699 esac
14700fi
14701echo "$as_me:$LINENO: result: $ac_cv_var_tty_clk" >&5
14702echo "${ECHO_T}$ac_cv_var_tty_clk" >&6
14703case "$ac_cv_var_tty_clk" in
14704 yes)
14705cat >>confdefs.h <<\_ACEOF
14706#define TTYCLK 1
14707_ACEOF
14708 ;;
14709esac
14710
14711echo "$as_me:$LINENO: checking for the ppsclock streams module" >&5
14712echo $ECHO_N "checking for the ppsclock streams module... $ECHO_C" >&6
14713if test "${ac_cv_var_ppsclock+set}" = set; then
14714  echo $ECHO_N "(cached) $ECHO_C" >&6
14715else
14716  ac_cv_var_ppsclock=$ac_cv_struct_ppsclockev
14717fi
14718echo "$as_me:$LINENO: result: $ac_cv_var_ppsclock" >&5
14719echo "${ECHO_T}$ac_cv_var_ppsclock" >&6
14720case "$ac_cv_var_ppsclock" in
14721 yes)
14722cat >>confdefs.h <<\_ACEOF
14723#define PPS 1
14724_ACEOF
14725 ;;
14726esac
14727
14728echo "$as_me:$LINENO: checking for kernel multicast support" >&5
14729echo $ECHO_N "checking for kernel multicast support... $ECHO_C" >&6
14730if test "${ac_cv_var_mcast+set}" = set; then
14731  echo $ECHO_N "(cached) $ECHO_C" >&6
14732else
14733  ac_cv_var_mcast=no
14734  case "$host" in
14735   i386-sequent-sysv4) ;;
14736   *) cat >conftest.$ac_ext <<_ACEOF
14737#line $LINENO "configure"
14738#include "confdefs.h"
14739#include <netinet/in.h>
14740#ifdef IP_ADD_MEMBERSHIP
14741   yes
14742#endif
14743
14744_ACEOF
14745if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14746  egrep "yes" >/dev/null 2>&1; then
14747  ac_cv_var_mcast=yes
14748fi
14749rm -f conftest*
14750 ;;
14751  esac
14752fi
14753echo "$as_me:$LINENO: result: $ac_cv_var_mcast" >&5
14754echo "${ECHO_T}$ac_cv_var_mcast" >&6
14755case "$ac_cv_var_mcast" in
14756 yes)
14757cat >>confdefs.h <<\_ACEOF
14758#define MCAST 1
14759_ACEOF
14760 ;;
14761esac
14762
14763echo "$as_me:$LINENO: checking availability of ntp_{adj,get}time()" >&5
14764echo $ECHO_N "checking availability of ntp_{adj,get}time()... $ECHO_C" >&6
14765if test "${ac_cv_var_ntp_syscalls+set}" = set; then
14766  echo $ECHO_N "(cached) $ECHO_C" >&6
14767else
14768  ac_cv_var_ntp_syscalls=no
14769 case "$ac_cv_func___adjtimex" in
14770  yes)
14771    ac_cv_var_ntp_syscalls=libc
14772    ;;
14773  *) case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime" in
14774      yesyes)
14775        ac_cv_var_ntp_syscalls=libc
14776        ;;
14777      *) cat >conftest.$ac_ext <<_ACEOF
14778#line $LINENO "configure"
14779#include "confdefs.h"
14780#include <sys/syscall.h>
14781#if defined(SYS_ntp_gettime) && defined(SYS_ntp_adjtime)
14782           yes
14783#endif
14784
14785_ACEOF
14786if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14787  egrep "yes" >/dev/null 2>&1; then
14788  ac_cv_var_ntp_syscalls=kernel
14789fi
14790rm -f conftest*
14791
14792         ;;
14793     esac
14794     ;;
14795 esac
14796fi
14797echo "$as_me:$LINENO: result: $ac_cv_var_ntp_syscalls" >&5
14798echo "${ECHO_T}$ac_cv_var_ntp_syscalls" >&6
14799case "$ac_cv_var_ntp_syscalls" in
14800 libc)
14801
14802cat >>confdefs.h <<\_ACEOF
14803#define NTP_SYSCALLS_LIBC 1
14804_ACEOF
14805
14806    ;;
14807 kernel)
14808
14809cat >>confdefs.h <<\_ACEOF
14810#define NTP_SYSCALLS_STD 1
14811_ACEOF
14812
14813    ;;
14814 *)
14815    ;;
14816esac
14817
14818echo "$as_me:$LINENO: checking if sys/timex.h has STA_FLL" >&5
14819echo $ECHO_N "checking if sys/timex.h has STA_FLL... $ECHO_C" >&6
14820if test "${ac_cv_var_sta_fll+set}" = set; then
14821  echo $ECHO_N "(cached) $ECHO_C" >&6
14822else
14823  cat >conftest.$ac_ext <<_ACEOF
14824#line $LINENO "configure"
14825#include "confdefs.h"
14826#include <sys/timex.h>
14827#ifdef STA_FLL
14828    yes
14829#endif
14830
14831_ACEOF
14832if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14833  egrep "yes" >/dev/null 2>&1; then
14834  ac_cv_var_sta_fll=yes
14835else
14836  ac_cv_var_sta_fll=no
14837fi
14838rm -f conftest*
14839
14840fi
14841echo "$as_me:$LINENO: result: $ac_cv_var_sta_fll" >&5
14842echo "${ECHO_T}$ac_cv_var_sta_fll" >&6
14843
14844echo "$as_me:$LINENO: checking if we have kernel PLL support" >&5
14845echo $ECHO_N "checking if we have kernel PLL support... $ECHO_C" >&6
14846if test "${ac_cv_var_kernel_pll+set}" = set; then
14847  echo $ECHO_N "(cached) $ECHO_C" >&6
14848else
14849  case "$ac_cv_header_sys_timex_h$ac_cv_struct_ntptimeval$ac_cv_var_sta_fll$ac_cv_var_ntp_syscalls" in
14850 *no*)
14851    ac_cv_var_kernel_pll=no
14852    ;;
14853 *) ac_cv_var_kernel_pll=yes
14854    ;;
14855esac
14856fi
14857echo "$as_me:$LINENO: result: $ac_cv_var_kernel_pll" >&5
14858echo "${ECHO_T}$ac_cv_var_kernel_pll" >&6
14859case "$ac_cv_var_kernel_pll" in
14860 yes)
14861
14862cat >>confdefs.h <<\_ACEOF
14863#define KERNEL_PLL 1
14864_ACEOF
14865
14866    ;;
14867esac
14868
14869echo "$as_me:$LINENO: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
14870echo $ECHO_N "checking if SIOCGIFCONF returns buffer size in the buffer... $ECHO_C" >&6
14871if test "${ac_cv_var_size_returned_in_buffer+set}" = set; then
14872  echo $ECHO_N "(cached) $ECHO_C" >&6
14873else
14874  ans=no
14875  case "$host" in
14876   *-fujitsu-uxp*)
14877      ans=yes
14878      ;;
14879   *-ncr-sysv4*)
14880      ans=yes
14881      ;;
14882   *-univel-sysv*)
14883      ans=yes
14884      ;;
14885  esac
14886  ac_cv_var_size_returned_in_buffer=$ans
14887fi
14888echo "$as_me:$LINENO: result: $ac_cv_var_size_returned_in_buffer" >&5
14889echo "${ECHO_T}$ac_cv_var_size_returned_in_buffer" >&6
14890case "$ac_cv_var_size_returned_in_buffer" in
14891 yes)
14892cat >>confdefs.h <<\_ACEOF
14893#define SIZE_RETURNED_IN_BUFFER 1
14894_ACEOF
14895 ;;
14896esac
14897
14898
14899# Check for ioctls TIOCGPPSEV
14900echo "$as_me:$LINENO: checking ioctl TIOCGPPSEV" >&5
14901echo $ECHO_N "checking ioctl TIOCGPPSEV... $ECHO_C" >&6
14902if test "$ac_cv_header_termios_h" = "yes"; then
14903    cat >conftest.$ac_ext <<_ACEOF
14904#line $LINENO "configure"
14905#include "confdefs.h"
14906#include <termios.h>
14907#ifdef TIOCGPPSEV
14908         yes
14909#endif
14910
14911_ACEOF
14912if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14913  egrep "yes" >/dev/null 2>&1; then
14914  ntp_ok=yes
14915else
14916  ntp_ok=no
14917fi
14918rm -f conftest*
14919
14920else
14921ntp_ok=no
14922fi
14923if test "$ntp_ok" = "yes"; then
14924
14925cat >>confdefs.h <<\_ACEOF
14926#define HAVE_TIOCGPPSEV 1
14927_ACEOF
14928
14929    ac_cv_var_oncore_ok=yes
14930fi
14931echo "$as_me:$LINENO: result: $ntp_ok" >&5
14932echo "${ECHO_T}$ntp_ok" >&6
14933
14934# Check for ioctls TIOCSPPS
14935echo "$as_me:$LINENO: checking ioctl TIOCSPPS" >&5
14936echo $ECHO_N "checking ioctl TIOCSPPS... $ECHO_C" >&6
14937if test "$ac_cv_header_termios_h" = "yes"; then
14938    cat >conftest.$ac_ext <<_ACEOF
14939#line $LINENO "configure"
14940#include "confdefs.h"
14941#include <termios.h>
14942#ifdef TIOCSPPS
14943         yes
14944#endif
14945
14946_ACEOF
14947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14948  egrep "yes" >/dev/null 2>&1; then
14949  ntp_ok=yes
14950else
14951  ntp_ok=no
14952fi
14953rm -f conftest*
14954
14955else
14956    ntp_ok=no
14957fi
14958
14959if test "$ntp_ok" = "yes"; then
14960
14961cat >>confdefs.h <<\_ACEOF
14962#define HAVE_TIOCSPPS 1
14963_ACEOF
14964
14965fi
14966echo "$as_me:$LINENO: result: $ntp_ok" >&5
14967echo "${ECHO_T}$ntp_ok" >&6
14968
14969# Check for ioctls CIOGETEV
14970echo "$as_me:$LINENO: checking ioctl CIOGETEV" >&5
14971echo $ECHO_N "checking ioctl CIOGETEV... $ECHO_C" >&6
14972if test "$ac_cv_header_sys_ppsclock_h" = "yes"; then
14973    cat >conftest.$ac_ext <<_ACEOF
14974#line $LINENO "configure"
14975#include "confdefs.h"
14976#include <sys/ppsclock.h>
14977#ifdef CIOGETEV
14978         yes
14979#endif
14980
14981_ACEOF
14982if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14983  egrep "yes" >/dev/null 2>&1; then
14984  ntp_ok=yes
14985else
14986  ntp_ok=no
14987fi
14988rm -f conftest*
14989
14990else
14991ntp_ok=no
14992fi
14993if test "$ntp_ok" = "yes"; then
14994    ac_cv_var_oncore_ok=yes
14995
14996cat >>confdefs.h <<\_ACEOF
14997#define HAVE_CIOGETEV 1
14998_ACEOF
14999
15000fi
15001echo "$as_me:$LINENO: result: $ntp_ok" >&5
15002echo "${ECHO_T}$ntp_ok" >&6
15003
15004
15005# ATOM/PPSAPI stuff.
15006
15007# ATOM used to require struct timespec, but that's been fixed now.
15008
15009# case "$ac_cv_struct_timespec" in
15010#  'yes')
15011#     ac_cv_var_atom_ok=yes
15012#     ;;
15013# esac
15014ac_cv_var_atom_ok=yes
15015
15016# Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
15017
15018# The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
15019
15020# The PPSAPI needs ATOM
15021
15022# The PPSAPI needs struct timespec.
15023
15024case "$ac_cv_c_inline$ac_cv_struct_timespec$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h" in
15025 inlineyes*yes*)
15026
15027cat >>confdefs.h <<\_ACEOF
15028#define HAVE_PPSAPI 1
15029_ACEOF
15030
15031    ac_cv_var_oncore_ok=yes
15032    ac_cv_var_ripe_ncc_ok=yes
15033    ;;
15034esac
15035
15036# Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
15037if test "${ac_cv_header_linux_serial_h+set}" = set; then
15038  echo "$as_me:$LINENO: checking for linux/serial.h" >&5
15039echo $ECHO_N "checking for linux/serial.h... $ECHO_C" >&6
15040if test "${ac_cv_header_linux_serial_h+set}" = set; then
15041  echo $ECHO_N "(cached) $ECHO_C" >&6
15042fi
15043echo "$as_me:$LINENO: result: $ac_cv_header_linux_serial_h" >&5
15044echo "${ECHO_T}$ac_cv_header_linux_serial_h" >&6
15045else
15046  # Is the header compilable?
15047echo "$as_me:$LINENO: checking linux/serial.h usability" >&5
15048echo $ECHO_N "checking linux/serial.h usability... $ECHO_C" >&6
15049cat >conftest.$ac_ext <<_ACEOF
15050#line $LINENO "configure"
15051#include "confdefs.h"
15052$ac_includes_default
15053#include <linux/serial.h>
15054_ACEOF
15055rm -f conftest.$ac_objext
15056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15057  (eval $ac_compile) 2>&5
15058  ac_status=$?
15059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060  (exit $ac_status); } &&
15061         { ac_try='test -s conftest.$ac_objext'
15062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15063  (eval $ac_try) 2>&5
15064  ac_status=$?
15065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066  (exit $ac_status); }; }; then
15067  ac_header_compiler=yes
15068else
15069  echo "$as_me: failed program was:" >&5
15070cat conftest.$ac_ext >&5
15071ac_header_compiler=no
15072fi
15073rm -f conftest.$ac_objext conftest.$ac_ext
15074echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15075echo "${ECHO_T}$ac_header_compiler" >&6
15076
15077# Is the header present?
15078echo "$as_me:$LINENO: checking linux/serial.h presence" >&5
15079echo $ECHO_N "checking linux/serial.h presence... $ECHO_C" >&6
15080cat >conftest.$ac_ext <<_ACEOF
15081#line $LINENO "configure"
15082#include "confdefs.h"
15083#include <linux/serial.h>
15084_ACEOF
15085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15086  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15087  ac_status=$?
15088  egrep -v '^ *\+' conftest.er1 >conftest.err
15089  rm -f conftest.er1
15090  cat conftest.err >&5
15091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092  (exit $ac_status); } >/dev/null; then
15093  if test -s conftest.err; then
15094    ac_cpp_err=$ac_c_preproc_warn_flag
15095  else
15096    ac_cpp_err=
15097  fi
15098else
15099  ac_cpp_err=yes
15100fi
15101if test -z "$ac_cpp_err"; then
15102  ac_header_preproc=yes
15103else
15104  echo "$as_me: failed program was:" >&5
15105  cat conftest.$ac_ext >&5
15106  ac_header_preproc=no
15107fi
15108rm -f conftest.err conftest.$ac_ext
15109echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15110echo "${ECHO_T}$ac_header_preproc" >&6
15111
15112# So?  What about this header?
15113case $ac_header_compiler:$ac_header_preproc in
15114  yes:no )
15115    { echo "$as_me:$LINENO: WARNING: linux/serial.h: accepted by the compiler, rejected by the preprocessor!" >&5
15116echo "$as_me: WARNING: linux/serial.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15117    { echo "$as_me:$LINENO: WARNING: linux/serial.h: proceeding with the preprocessor's result" >&5
15118echo "$as_me: WARNING: linux/serial.h: proceeding with the preprocessor's result" >&2;};;
15119  no:yes )
15120    { echo "$as_me:$LINENO: WARNING: linux/serial.h: present but cannot be compiled" >&5
15121echo "$as_me: WARNING: linux/serial.h: present but cannot be compiled" >&2;}
15122    { echo "$as_me:$LINENO: WARNING: linux/serial.h: check for missing prerequisite headers?" >&5
15123echo "$as_me: WARNING: linux/serial.h: check for missing prerequisite headers?" >&2;}
15124    { echo "$as_me:$LINENO: WARNING: linux/serial.h: proceeding with the preprocessor's result" >&5
15125echo "$as_me: WARNING: linux/serial.h: proceeding with the preprocessor's result" >&2;};;
15126esac
15127echo "$as_me:$LINENO: checking for linux/serial.h" >&5
15128echo $ECHO_N "checking for linux/serial.h... $ECHO_C" >&6
15129if test "${ac_cv_header_linux_serial_h+set}" = set; then
15130  echo $ECHO_N "(cached) $ECHO_C" >&6
15131else
15132  ac_cv_header_linux_serial_h=$ac_header_preproc
15133fi
15134echo "$as_me:$LINENO: result: $ac_cv_header_linux_serial_h" >&5
15135echo "${ECHO_T}$ac_cv_header_linux_serial_h" >&6
15136
15137fi
15138
15139
15140echo "$as_me:$LINENO: checking ioctl TIOCGSERIAL" >&5
15141echo $ECHO_N "checking ioctl TIOCGSERIAL... $ECHO_C" >&6
15142case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
15143  yesyes)
15144    cat >conftest.$ac_ext <<_ACEOF
15145#line $LINENO "configure"
15146#include "confdefs.h"
15147#include <sys/time.h>
15148typedef int u_int;
15149
15150#include <sys/ppsclock.h>
15151#include <linux/serial.h>
15152
15153#ifdef TIOCGSERIAL
15154#ifdef TIOCSSERIAL
15155#ifdef ASYNC_PPS_CD_POS
15156#ifdef ASYNC_PPS_CD_NEG
15157#ifdef CIOGETEV
15158         yes
15159#endif
15160#endif
15161#endif
15162#endif
15163#endif
15164
15165_ACEOF
15166if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15167  egrep "yes" >/dev/null 2>&1; then
15168  ntp_ok=yes
15169fi
15170rm -f conftest*
15171
15172	;;
15173  *)
15174	ntp_ok=no
15175	;;
15176esac
15177if test "$ntp_ok" = "yes"; then
15178
15179cat >>confdefs.h <<\_ACEOF
15180#define HAVE_TIO_SERIAL_STUFF 1
15181_ACEOF
15182
15183fi
15184echo "$as_me:$LINENO: result: $ntp_ok" >&5
15185echo "${ECHO_T}$ntp_ok" >&6
15186
15187# Check for SHMEM_STATUS support
15188echo "$as_me:$LINENO: checking SHMEM_STATUS support" >&5
15189echo $ECHO_N "checking SHMEM_STATUS support... $ECHO_C" >&6
15190case "$ac_cv_header_sys_mman_h" in
15191 yes) ntp_ok=yes ;;
15192 *)   ntp_ok=no  ;;
15193esac
15194if test "$ntp_ok" = "yes"; then
15195
15196cat >>confdefs.h <<\_ACEOF
15197#define ONCORE_SHMEM_STATUS 1
15198_ACEOF
15199
15200fi
15201echo "$as_me:$LINENO: result: $ntp_ok" >&5
15202echo "${ECHO_T}$ntp_ok" >&6
15203
15204
15205ntp_refclock=no
15206
15207# HPUX only, and by explicit request
15208echo "$as_me:$LINENO: checking Datum/Bancomm bc635/VME interface" >&5
15209echo $ECHO_N "checking Datum/Bancomm bc635/VME interface... $ECHO_C" >&6
15210# Check whether --enable-BANCOMM or --disable-BANCOMM was given.
15211if test "${enable_BANCOMM+set}" = set; then
15212  enableval="$enable_BANCOMM"
15213  ntp_ok=$enableval
15214else
15215  ntp_ok=no
15216fi;
15217if test "$ntp_ok" = "yes"; then
15218    ntp_refclock=yes
15219
15220cat >>confdefs.h <<\_ACEOF
15221#define CLOCK_BANC 1
15222_ACEOF
15223
15224fi
15225echo "$as_me:$LINENO: result: $ntp_ok" >&5
15226echo "${ECHO_T}$ntp_ok" >&6
15227case "$ntp_ok$host" in
15228 yes*-*-hpux*) ;;
15229 yes*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
15230echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
15231esac
15232
15233#HPUX only, and only by explicit request
15234echo "$as_me:$LINENO: checking TrueTime GPS receiver/VME interface" >&5
15235echo $ECHO_N "checking TrueTime GPS receiver/VME interface... $ECHO_C" >&6
15236# Check whether --enable-GPSVME or --disable-GPSVME was given.
15237if test "${enable_GPSVME+set}" = set; then
15238  enableval="$enable_GPSVME"
15239  ntp_ok=$enableval
15240else
15241  ntp_ok=no
15242fi;
15243if test "$ntp_ok" = "yes"; then
15244    ntp_refclock=yes
15245
15246cat >>confdefs.h <<\_ACEOF
15247#define CLOCK_GPSVME 1
15248_ACEOF
15249
15250fi
15251echo "$as_me:$LINENO: result: $ntp_ok" >&5
15252echo "${ECHO_T}$ntp_ok" >&6
15253case "$ntp_ok$host" in
15254 yes*-*-hpux*) ;;
15255 yes*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
15256echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
15257esac
15258
15259echo "$as_me:$LINENO: checking for PCL720 clock support" >&5
15260echo $ECHO_N "checking for PCL720 clock support... $ECHO_C" >&6
15261case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
15262 yesyesyes)
15263
15264cat >>confdefs.h <<\_ACEOF
15265#define CLOCK_PPS720 1
15266_ACEOF
15267
15268    ans=yes
15269    ;;
15270 *)
15271    ans=no
15272    ;;
15273esac
15274echo "$as_me:$LINENO: result: $ans" >&5
15275echo "${ECHO_T}$ans" >&6
15276
15277echo "$as_me:$LINENO: checking for SHM clock attached thru shared memory" >&5
15278echo $ECHO_N "checking for SHM clock attached thru shared memory... $ECHO_C" >&6
15279# Check whether --enable-SHM or --disable-SHM was given.
15280if test "${enable_SHM+set}" = set; then
15281  enableval="$enable_SHM"
15282  ntp_ok=$enableval
15283else
15284  ntp_ok=no
15285fi;
15286if test "$ntp_ok" = "yes"; then
15287    ntp_refclock=yes
15288
15289cat >>confdefs.h <<\_ACEOF
15290#define CLOCK_SHM 1
15291_ACEOF
15292
15293fi
15294echo "$as_me:$LINENO: result: $ntp_ok" >&5
15295echo "${ECHO_T}$ntp_ok" >&6
15296
15297echo "$as_me:$LINENO: checking for default inclusion of all suitable non-PARSE clocks" >&5
15298echo $ECHO_N "checking for default inclusion of all suitable non-PARSE clocks... $ECHO_C" >&6
15299# Check whether --enable-all-clocks or --disable-all-clocks was given.
15300if test "${enable_all_clocks+set}" = set; then
15301  enableval="$enable_all_clocks"
15302  ntp_eac=$enableval
15303else
15304  ntp_eac=yes
15305fi;
15306echo "$as_me:$LINENO: result: $ntp_eac" >&5
15307echo "${ECHO_T}$ntp_eac" >&6
15308
15309echo "$as_me:$LINENO: checking if we have support for PARSE clocks" >&5
15310echo $ECHO_N "checking if we have support for PARSE clocks... $ECHO_C" >&6
15311case "$ac_cv_var_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
15312 yes*yes*)
15313    ntp_canparse=yes
15314    ;;
15315 *) ntp_canparse=no
15316    ;;
15317esac
15318echo "$as_me:$LINENO: result: $ntp_canparse" >&5
15319echo "${ECHO_T}$ntp_canparse" >&6
15320
15321echo "$as_me:$LINENO: checking if we have support for audio clocks" >&5
15322echo $ECHO_N "checking if we have support for audio clocks... $ECHO_C" >&6
15323case "$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h" in
15324 *yes*)
15325    ntp_canaudio=yes
15326
15327cat >>confdefs.h <<\_ACEOF
15328#define HAVE_AUDIO
15329_ACEOF
15330
15331    ;;
15332 *) ntp_canaudio=no ;;
15333esac
15334echo "$as_me:$LINENO: result: $ntp_canaudio" >&5
15335echo "${ECHO_T}$ntp_canaudio" >&6
15336
15337# Requires modem control
15338echo "$as_me:$LINENO: checking ACTS modem service" >&5
15339echo $ECHO_N "checking ACTS modem service... $ECHO_C" >&6
15340# Check whether --enable-ACTS or --disable-ACTS was given.
15341if test "${enable_ACTS+set}" = set; then
15342  enableval="$enable_ACTS"
15343  ntp_ok=$enableval
15344else
15345  cat >conftest.$ac_ext <<_ACEOF
15346#line $LINENO "configure"
15347#include "confdefs.h"
15348#include <termios.h>
15349#ifdef HAVE_SYS_IOCTL_H
15350#include <sys/ioctl.h>
15351#endif
15352#ifdef TIOCMBIS
15353         yes
15354#endif
15355
15356_ACEOF
15357if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15358  egrep "yes" >/dev/null 2>&1; then
15359  ntp_ok=$ntp_eac
15360else
15361  ntp_ok=no
15362fi
15363rm -f conftest*
15364
15365fi;
15366if test "$ntp_ok" = "yes"; then
15367    ntp_refclock=yes
15368
15369cat >>confdefs.h <<\_ACEOF
15370#define CLOCK_ACTS 1
15371_ACEOF
15372
15373fi
15374echo "$as_me:$LINENO: result: $ntp_ok" >&5
15375echo "${ECHO_T}$ntp_ok" >&6
15376
15377echo "$as_me:$LINENO: checking Arbiter 1088A/B GPS receiver" >&5
15378echo $ECHO_N "checking Arbiter 1088A/B GPS receiver... $ECHO_C" >&6
15379# Check whether --enable-ARBITER or --disable-ARBITER was given.
15380if test "${enable_ARBITER+set}" = set; then
15381  enableval="$enable_ARBITER"
15382  ntp_ok=$enableval
15383else
15384  ntp_ok=$ntp_eac
15385fi;
15386if test "$ntp_ok" = "yes"; then
15387    ntp_refclock=yes
15388
15389cat >>confdefs.h <<\_ACEOF
15390#define CLOCK_ARBITER 1
15391_ACEOF
15392
15393fi
15394echo "$as_me:$LINENO: result: $ntp_ok" >&5
15395echo "${ECHO_T}$ntp_ok" >&6
15396
15397echo "$as_me:$LINENO: checking Arcron MSF receiver" >&5
15398echo $ECHO_N "checking Arcron MSF receiver... $ECHO_C" >&6
15399# Check whether --enable-ARCRON_MSF or --disable-ARCRON_MSF was given.
15400if test "${enable_ARCRON_MSF+set}" = set; then
15401  enableval="$enable_ARCRON_MSF"
15402  ntp_ok=$enableval
15403else
15404  ntp_ok=$ntp_eac
15405fi;
15406if test "$ntp_ok" = "yes"; then
15407    ntp_refclock=yes
15408
15409cat >>confdefs.h <<\_ACEOF
15410#define CLOCK_ARCRON_MSF 1
15411_ACEOF
15412
15413fi
15414echo "$as_me:$LINENO: result: $ntp_ok" >&5
15415echo "${ECHO_T}$ntp_ok" >&6
15416
15417echo "$as_me:$LINENO: checking Austron 2200A/2201A GPS receiver" >&5
15418echo $ECHO_N "checking Austron 2200A/2201A GPS receiver... $ECHO_C" >&6
15419# Check whether --enable-AS2201 or --disable-AS2201 was given.
15420if test "${enable_AS2201+set}" = set; then
15421  enableval="$enable_AS2201"
15422  ntp_ok=$enableval
15423else
15424  ntp_ok=$ntp_eac
15425fi;
15426if test "$ntp_ok" = "yes"; then
15427    ntp_refclock=yes
15428
15429cat >>confdefs.h <<\_ACEOF
15430#define CLOCK_AS2201 1
15431_ACEOF
15432
15433fi
15434echo "$as_me:$LINENO: result: $ntp_ok" >&5
15435echo "${ECHO_T}$ntp_ok" >&6
15436
15437echo "$as_me:$LINENO: checking ATOM PPS interface" >&5
15438echo $ECHO_N "checking ATOM PPS interface... $ECHO_C" >&6
15439# Check whether --enable-ATOM or --disable-ATOM was given.
15440if test "${enable_ATOM+set}" = set; then
15441  enableval="$enable_ATOM"
15442  ntp_ok=$enableval
15443else
15444  ntp_ok=$ntp_eac
15445fi;
15446case "$ac_cv_var_atom_ok" in
15447 no) ntp_ok=no ;;
15448esac
15449if test "$ntp_ok" = "yes"; then
15450    ntp_refclock=yes
15451
15452cat >>confdefs.h <<\_ACEOF
15453#define CLOCK_ATOM 1
15454_ACEOF
15455
15456fi
15457echo "$as_me:$LINENO: result: $ntp_ok" >&5
15458echo "${ECHO_T}$ntp_ok" >&6
15459
15460echo "$as_me:$LINENO: checking Chrono-log K-series WWVB receiver" >&5
15461echo $ECHO_N "checking Chrono-log K-series WWVB receiver... $ECHO_C" >&6
15462# Check whether --enable-CHRONOLOG or --disable-CHRONOLOG was given.
15463if test "${enable_CHRONOLOG+set}" = set; then
15464  enableval="$enable_CHRONOLOG"
15465  ntp_ok=$enableval
15466else
15467  ntp_ok=$ntp_eac
15468fi;
15469if test "$ntp_ok" = "yes"; then
15470    ntp_refclock=yes
15471
15472cat >>confdefs.h <<\_ACEOF
15473#define CLOCK_CHRONOLOG 1
15474_ACEOF
15475
15476fi
15477echo "$as_me:$LINENO: result: $ntp_ok" >&5
15478echo "${ECHO_T}$ntp_ok" >&6
15479
15480echo "$as_me:$LINENO: checking CHU modem/decoder" >&5
15481echo $ECHO_N "checking CHU modem/decoder... $ECHO_C" >&6
15482# Check whether --enable-CHU or --disable-CHU was given.
15483if test "${enable_CHU+set}" = set; then
15484  enableval="$enable_CHU"
15485  ntp_ok=$enableval
15486else
15487  ntp_ok=$ntp_eac
15488fi;
15489if test "$ntp_ok" = "yes"; then
15490    ntp_refclock=yes
15491
15492cat >>confdefs.h <<\_ACEOF
15493#define CLOCK_CHU 1
15494_ACEOF
15495
15496fi
15497echo "$as_me:$LINENO: result: $ntp_ok" >&5
15498echo "${ECHO_T}$ntp_ok" >&6
15499ac_refclock_chu=$ntp_ok
15500
15501echo "$as_me:$LINENO: checking CHU audio/decoder" >&5
15502echo $ECHO_N "checking CHU audio/decoder... $ECHO_C" >&6
15503# Check whether --enable-AUDIO-CHU or --disable-AUDIO-CHU was given.
15504if test "${enable_AUDIO_CHU+set}" = set; then
15505  enableval="$enable_AUDIO_CHU"
15506  ntp_ok=$enableval
15507else
15508  case "$ntp_eac$ac_refclock_chu$ntp_canaudio" in
15509 *no*)	ntp_ok=no  ;;
15510 *)	ntp_ok=yes ;;
15511esac
15512fi;
15513if test "$ntp_ok" = "yes"; then
15514
15515cat >>confdefs.h <<\_ACEOF
15516#define AUDIO_CHU 1
15517_ACEOF
15518
15519fi
15520echo "$as_me:$LINENO: result: $ntp_ok" >&5
15521echo "${ECHO_T}$ntp_ok" >&6
15522# We used to check for sunos/solaris target...
15523case "$ntp_ok$ac_refclock_chu$ntp_canaudio" in
15524 yes*no*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is...no ***" >&5
15525echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;} ;;
15526esac
15527
15528# Not under HP-UX
15529echo "$as_me:$LINENO: checking Datum Programmable Time System" >&5
15530echo $ECHO_N "checking Datum Programmable Time System... $ECHO_C" >&6
15531# Check whether --enable-DATUM or --disable-DATUM was given.
15532if test "${enable_DATUM+set}" = set; then
15533  enableval="$enable_DATUM"
15534  ntp_ok=$enableval
15535else
15536  case "$ac_cv_header_termios_h" in
15537    yes)
15538        ntp_ok=$ntp_eac
15539        ;;
15540    *) ntp_ok=no
15541        ;;
15542    esac
15543fi;
15544if test "$ntp_ok" = "yes"; then
15545    ntp_refclock=yes
15546
15547cat >>confdefs.h <<\_ACEOF
15548#define CLOCK_DATUM 1
15549_ACEOF
15550
15551fi
15552echo "$as_me:$LINENO: result: $ntp_ok" >&5
15553echo "${ECHO_T}$ntp_ok" >&6
15554
15555echo "$as_me:$LINENO: checking Dumb generic hh:mm:ss local clock" >&5
15556echo $ECHO_N "checking Dumb generic hh:mm:ss local clock... $ECHO_C" >&6
15557# Check whether --enable-DUMBCLOCK or --disable-DUMBCLOCK was given.
15558if test "${enable_DUMBCLOCK+set}" = set; then
15559  enableval="$enable_DUMBCLOCK"
15560  ntp_ok=$enableval
15561else
15562  ntp_ok=$ntp_eac
15563fi;
15564if test "$ntp_ok" = "yes"; then
15565    ntp_refclock=yes
15566
15567cat >>confdefs.h <<\_ACEOF
15568#define CLOCK_DUMBCLOCK 1
15569_ACEOF
15570
15571fi
15572echo "$as_me:$LINENO: result: $ntp_ok" >&5
15573echo "${ECHO_T}$ntp_ok" >&6
15574
15575echo "$as_me:$LINENO: checking Forum Graphic GPS" >&5
15576echo $ECHO_N "checking Forum Graphic GPS... $ECHO_C" >&6
15577# Check whether --enable-FG or --disable-FG was given.
15578if test "${enable_FG+set}" = set; then
15579  enableval="$enable_FG"
15580  ntp_ok=$enableval
15581else
15582  ntp_ok=$ntp_eac
15583fi;
15584if test "$ntp_ok" = "yes"; then
15585    ntp_refclock=yes
15586
15587cat >>confdefs.h <<\_ACEOF
15588#define CLOCK_FG 1
15589_ACEOF
15590
15591fi
15592echo "$as_me:$LINENO: result: $ntp_ok" >&5
15593echo "${ECHO_T}$ntp_ok" >&6
15594
15595# Requires modem control
15596echo "$as_me:$LINENO: checking Heath GC-1000 WWV/WWVH receiver" >&5
15597echo $ECHO_N "checking Heath GC-1000 WWV/WWVH receiver... $ECHO_C" >&6
15598# Check whether --enable-HEATH or --disable-HEATH was given.
15599if test "${enable_HEATH+set}" = set; then
15600  enableval="$enable_HEATH"
15601  ntp_ok=$enableval
15602else
15603  cat >conftest.$ac_ext <<_ACEOF
15604#line $LINENO "configure"
15605#include "confdefs.h"
15606#include <termios.h>
15607#ifdef HAVE_SYS_IOCTL_H
15608#include <sys/ioctl.h>
15609#endif
15610#ifdef TIOCMBIS
15611         yes
15612#endif
15613
15614_ACEOF
15615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15616  egrep "yes" >/dev/null 2>&1; then
15617  ntp_ok=$ntp_eac
15618else
15619  ntp_ok=no
15620fi
15621rm -f conftest*
15622
15623fi;
15624if test "$ntp_ok" = "yes"; then
15625    ntp_refclock=yes
15626
15627cat >>confdefs.h <<\_ACEOF
15628#define CLOCK_HEATH 1
15629_ACEOF
15630
15631fi
15632echo "$as_me:$LINENO: result: $ntp_ok" >&5
15633echo "${ECHO_T}$ntp_ok" >&6
15634
15635echo "$as_me:$LINENO: checking for hopf serial clock device" >&5
15636echo $ECHO_N "checking for hopf serial clock device... $ECHO_C" >&6
15637# Check whether --enable-HOPFSERIAL or --disable-HOPFSERIAL was given.
15638if test "${enable_HOPFSERIAL+set}" = set; then
15639  enableval="$enable_HOPFSERIAL"
15640  ntp_ok=$enableval
15641else
15642  ntp_ok=$ntp_eac
15643fi;
15644if test "$ntp_ok" = "yes"; then
15645    ntp_refclock=yes
15646
15647cat >>confdefs.h <<\_ACEOF
15648#define CLOCK_HOPF_SERIAL 1
15649_ACEOF
15650
15651fi
15652echo "$as_me:$LINENO: result: $ntp_ok" >&5
15653echo "${ECHO_T}$ntp_ok" >&6
15654
15655echo "$as_me:$LINENO: checking for hopf PCI clock 6039" >&5
15656echo $ECHO_N "checking for hopf PCI clock 6039... $ECHO_C" >&6
15657# Check whether --enable-HOPFPCI or --disable-HOPFPCI was given.
15658if test "${enable_HOPFPCI+set}" = set; then
15659  enableval="$enable_HOPFPCI"
15660  ntp_ok=$enableval
15661else
15662  ntp_ok=$ntp_eac
15663fi;
15664if test "$ntp_ok" = "yes"; then
15665    ntp_refclock=yes
15666
15667cat >>confdefs.h <<\_ACEOF
15668#define CLOCK_HOPF_PCI 1
15669_ACEOF
15670
15671fi
15672echo "$as_me:$LINENO: result: $ntp_ok" >&5
15673echo "${ECHO_T}$ntp_ok" >&6
15674
15675echo "$as_me:$LINENO: checking HP 58503A GPS receiver" >&5
15676echo $ECHO_N "checking HP 58503A GPS receiver... $ECHO_C" >&6
15677# Check whether --enable-HPGPS or --disable-HPGPS was given.
15678if test "${enable_HPGPS+set}" = set; then
15679  enableval="$enable_HPGPS"
15680  ntp_ok=$enableval
15681else
15682  ntp_ok=$ntp_eac
15683fi;
15684if test "$ntp_ok" = "yes"; then
15685    ntp_refclock=yes
15686
15687cat >>confdefs.h <<\_ACEOF
15688#define CLOCK_HPGPS 1
15689_ACEOF
15690
15691fi
15692echo "$as_me:$LINENO: result: $ntp_ok" >&5
15693echo "${ECHO_T}$ntp_ok" >&6
15694
15695echo "$as_me:$LINENO: checking IRIG audio decoder" >&5
15696echo $ECHO_N "checking IRIG audio decoder... $ECHO_C" >&6
15697# Check whether --enable-IRIG or --disable-IRIG was given.
15698if test "${enable_IRIG+set}" = set; then
15699  enableval="$enable_IRIG"
15700  ntp_ok=$enableval
15701else
15702  case "$ntp_eac$ntp_canaudio" in
15703     *no*)	ntp_ok=no  ;;
15704     *)		ntp_ok=yes ;;
15705    esac
15706fi;
15707if test "$ntp_ok" = "yes"; then
15708    ntp_refclock=yes
15709
15710cat >>confdefs.h <<\_ACEOF
15711#define CLOCK_IRIG 1
15712_ACEOF
15713
15714fi
15715echo "$as_me:$LINENO: result: $ntp_ok" >&5
15716echo "${ECHO_T}$ntp_ok" >&6
15717case "$ntp_ok$ntp_canaudio" in
15718 yesno) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
15719echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
15720esac
15721
15722echo "$as_me:$LINENO: checking for JJY receiver" >&5
15723echo $ECHO_N "checking for JJY receiver... $ECHO_C" >&6
15724# Check whether --enable-JJY or --disable-JJY was given.
15725if test "${enable_JJY+set}" = set; then
15726  enableval="$enable_JJY"
15727  ntp_ok=$enableval
15728else
15729  ntp_ok=$ntp_eac
15730fi;
15731if test "$ntp_ok" = "yes"; then
15732    ntp_refclock=yes
15733
15734cat >>confdefs.h <<\_ACEOF
15735#define CLOCK_JJY 1
15736_ACEOF
15737
15738fi
15739echo "$as_me:$LINENO: result: $ntp_ok" >&5
15740echo "${ECHO_T}$ntp_ok" >&6
15741
15742# Not Ultrix
15743echo "$as_me:$LINENO: checking Rockwell Jupiter GPS receiver" >&5
15744echo $ECHO_N "checking Rockwell Jupiter GPS receiver... $ECHO_C" >&6
15745# Check whether --enable-JUPITER or --disable-JUPITER was given.
15746if test "${enable_JUPITER+set}" = set; then
15747  enableval="$enable_JUPITER"
15748  ntp_ok=$enableval
15749else
15750  case "$ac_cv_var_ppsclock" in
15751#     yes) ntp_ok=$ntp_eac
15752#        ;;
15753     *) ntp_ok=no
15754        ;;
15755    esac
15756fi;
15757if test "$ntp_ok" = "yes"; then
15758    ntp_refclock=yes
15759
15760cat >>confdefs.h <<\_ACEOF
15761#define CLOCK_JUPITER 1
15762_ACEOF
15763
15764fi
15765echo "$as_me:$LINENO: result: $ntp_ok" >&5
15766echo "${ECHO_T}$ntp_ok" >&6
15767case "$ntp_ok$host" in
15768 yes*-*-ultrix*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
15769echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
15770esac
15771
15772echo "$as_me:$LINENO: checking Leitch CSD 5300 Master Clock System Driver" >&5
15773echo $ECHO_N "checking Leitch CSD 5300 Master Clock System Driver... $ECHO_C" >&6
15774# Check whether --enable-LEITCH or --disable-LEITCH was given.
15775if test "${enable_LEITCH+set}" = set; then
15776  enableval="$enable_LEITCH"
15777  ntp_ok=$enableval
15778else
15779  ntp_ok=$ntp_eac
15780fi;
15781if test "$ntp_ok" = "yes"; then
15782    ntp_refclock=yes
15783
15784cat >>confdefs.h <<\_ACEOF
15785#define CLOCK_LEITCH 1
15786_ACEOF
15787
15788fi
15789echo "$as_me:$LINENO: result: $ntp_ok" >&5
15790echo "${ECHO_T}$ntp_ok" >&6
15791
15792echo "$as_me:$LINENO: checking local clock reference" >&5
15793echo $ECHO_N "checking local clock reference... $ECHO_C" >&6
15794# Check whether --enable-LOCAL-CLOCK or --disable-LOCAL-CLOCK was given.
15795if test "${enable_LOCAL_CLOCK+set}" = set; then
15796  enableval="$enable_LOCAL_CLOCK"
15797  ntp_ok=$enableval
15798else
15799  ntp_ok=$ntp_eac
15800fi;
15801if test "$ntp_ok" = "yes"; then
15802    ntp_refclock=yes
15803
15804cat >>confdefs.h <<\_ACEOF
15805#define CLOCK_LOCAL 1
15806_ACEOF
15807
15808fi
15809echo "$as_me:$LINENO: result: $ntp_ok" >&5
15810echo "${ECHO_T}$ntp_ok" >&6
15811
15812echo "$as_me:$LINENO: checking EES M201 MSF receiver" >&5
15813echo $ECHO_N "checking EES M201 MSF receiver... $ECHO_C" >&6
15814# Check whether --enable-MSFEES or --disable-MSFEES was given.
15815if test "${enable_MSFEES+set}" = set; then
15816  enableval="$enable_MSFEES"
15817  ntp_ok=$enableval
15818else
15819  ntp_ok=$ntp_eac
15820fi;
15821if test "$ntp_ok" = "yes"; then
15822    ntp_refclock=yes
15823
15824cat >>confdefs.h <<\_ACEOF
15825#define CLOCK_MSFEES 1
15826_ACEOF
15827
15828fi
15829echo "$as_me:$LINENO: result: $ntp_ok" >&5
15830echo "${ECHO_T}$ntp_ok" >&6
15831
15832# Not Ultrix
15833echo "$as_me:$LINENO: checking Magnavox MX4200 GPS receiver" >&5
15834echo $ECHO_N "checking Magnavox MX4200 GPS receiver... $ECHO_C" >&6
15835# Check whether --enable-MX4200 or --disable-MX4200 was given.
15836if test "${enable_MX4200+set}" = set; then
15837  enableval="$enable_MX4200"
15838  ntp_ok=$enableval
15839else
15840  case "$ac_cv_var_ppsclock" in
15841     yes) ntp_ok=$ntp_eac
15842        ;;
15843     *) ntp_ok=no
15844        ;;
15845    esac
15846fi;
15847if test "$ntp_ok" = "yes"; then
15848    ntp_refclock=yes
15849
15850cat >>confdefs.h <<\_ACEOF
15851#define CLOCK_MX4200 1
15852_ACEOF
15853
15854fi
15855echo "$as_me:$LINENO: result: $ntp_ok" >&5
15856echo "${ECHO_T}$ntp_ok" >&6
15857case "$ntp_ok$host" in
15858 yes*-*-ultrix*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
15859echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
15860esac
15861
15862echo "$as_me:$LINENO: checking for NeoClock4X receiver" >&5
15863echo $ECHO_N "checking for NeoClock4X receiver... $ECHO_C" >&6
15864# Check whether --enable-NEOCLOCK4X or --disable-NEOCLOCK4X was given.
15865if test "${enable_NEOCLOCK4X+set}" = set; then
15866  enableval="$enable_NEOCLOCK4X"
15867  ntp_ok=$enableval
15868else
15869  ntp_ok=no
15870fi;
15871if test "$ntp_ok" = "yes"; then
15872    ntp_refclock=yes
15873
15874cat >>confdefs.h <<\_ACEOF
15875#define CLOCK_NEOCLOCK4X 1
15876_ACEOF
15877
15878fi
15879echo "$as_me:$LINENO: result: $ntp_ok" >&5
15880echo "${ECHO_T}$ntp_ok" >&6
15881
15882echo "$as_me:$LINENO: checking NMEA GPS receiver" >&5
15883echo $ECHO_N "checking NMEA GPS receiver... $ECHO_C" >&6
15884# Check whether --enable-NMEA or --disable-NMEA was given.
15885if test "${enable_NMEA+set}" = set; then
15886  enableval="$enable_NMEA"
15887  ntp_ok=$enableval
15888else
15889  ntp_ok=$ntp_eac
15890fi;
15891if test "$ntp_ok" = "yes"; then
15892    ntp_refclock=yes
15893
15894cat >>confdefs.h <<\_ACEOF
15895#define CLOCK_NMEA 1
15896_ACEOF
15897
15898fi
15899echo "$as_me:$LINENO: result: $ntp_ok" >&5
15900echo "${ECHO_T}$ntp_ok" >&6
15901
15902echo "$as_me:$LINENO: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
15903echo $ECHO_N "checking for ONCORE Motorola VP/UT Oncore GPS... $ECHO_C" >&6
15904# Check whether --enable-ONCORE or --disable-ONCORE was given.
15905if test "${enable_ONCORE+set}" = set; then
15906  enableval="$enable_ONCORE"
15907  ntp_ok=$enableval
15908else
15909  ntp_ok=$ntp_eac
15910fi;
15911case "$ac_cv_var_oncore_ok" in
15912 no) ntp_ok=no ;;
15913esac
15914if test "$ntp_ok" = "yes"; then
15915    ntp_refclock=yes
15916
15917cat >>confdefs.h <<\_ACEOF
15918#define CLOCK_ONCORE 1
15919_ACEOF
15920
15921fi
15922echo "$as_me:$LINENO: result: $ntp_ok" >&5
15923echo "${ECHO_T}$ntp_ok" >&6
15924
15925echo "$as_me:$LINENO: checking for Palisade clock" >&5
15926echo $ECHO_N "checking for Palisade clock... $ECHO_C" >&6
15927# Check whether --enable-PALISADE or --disable-PALISADE was given.
15928if test "${enable_PALISADE+set}" = set; then
15929  enableval="$enable_PALISADE"
15930  ntp_ok=$enableval
15931else
15932  case "$ac_cv_header_termios_h" in
15933    yes)
15934        ntp_ok=$ntp_eac
15935        ;;
15936    *) ntp_ok=no
15937        ;;
15938    esac
15939fi;
15940
15941if test "$ntp_ok" = "yes"; then
15942    ntp_refclock=yes
15943
15944cat >>confdefs.h <<\_ACEOF
15945#define CLOCK_PALISADE 1
15946_ACEOF
15947
15948fi
15949echo "$as_me:$LINENO: result: $ntp_ok" >&5
15950echo "${ECHO_T}$ntp_ok" >&6
15951
15952echo "$as_me:$LINENO: checking Conrad parallel port radio clock" >&5
15953echo $ECHO_N "checking Conrad parallel port radio clock... $ECHO_C" >&6
15954# Check whether --enable-PCF or --disable-PCF was given.
15955if test "${enable_PCF+set}" = set; then
15956  enableval="$enable_PCF"
15957  ntp_ok=$enableval
15958else
15959  ntp_ok=$ntp_eac
15960fi;
15961if test "$ntp_ok" = "yes"; then
15962    ntp_refclock=yes
15963
15964cat >>confdefs.h <<\_ACEOF
15965#define CLOCK_PCF 1
15966_ACEOF
15967
15968fi
15969echo "$as_me:$LINENO: result: $ntp_ok" >&5
15970echo "${ECHO_T}$ntp_ok" >&6
15971
15972echo "$as_me:$LINENO: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
15973echo $ECHO_N "checking PST/Traconex 1020 WWV/WWVH receiver... $ECHO_C" >&6
15974# Check whether --enable-PST or --disable-PST was given.
15975if test "${enable_PST+set}" = set; then
15976  enableval="$enable_PST"
15977  ntp_ok=$enableval
15978else
15979  ntp_ok=$ntp_eac
15980fi;
15981if test "$ntp_ok" = "yes"; then
15982    ntp_refclock=yes
15983
15984cat >>confdefs.h <<\_ACEOF
15985#define CLOCK_PST 1
15986_ACEOF
15987
15988fi
15989echo "$as_me:$LINENO: result: $ntp_ok" >&5
15990echo "${ECHO_T}$ntp_ok" >&6
15991
15992# Requires modem control
15993echo "$as_me:$LINENO: checking PTB modem service" >&5
15994echo $ECHO_N "checking PTB modem service... $ECHO_C" >&6
15995# Check whether --enable-PTBACTS or --disable-PTBACTS was given.
15996if test "${enable_PTBACTS+set}" = set; then
15997  enableval="$enable_PTBACTS"
15998  ntp_ok=$enableval
15999else
16000  cat >conftest.$ac_ext <<_ACEOF
16001#line $LINENO "configure"
16002#include "confdefs.h"
16003#include <termios.h>
16004#ifdef HAVE_SYS_IOCTL_H
16005#include <sys/ioctl.h>
16006#endif
16007#ifdef TIOCMBIS
16008         yes
16009#endif
16010
16011_ACEOF
16012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16013  egrep "yes" >/dev/null 2>&1; then
16014  ntp_ok=$ntp_eac
16015else
16016  ntp_ok=no
16017fi
16018rm -f conftest*
16019
16020fi;
16021if test "$ntp_ok" = "yes"; then
16022    ntp_refclock=yes
16023
16024cat >>confdefs.h <<\_ACEOF
16025#define CLOCK_PTBACTS 1
16026_ACEOF
16027
16028fi
16029echo "$as_me:$LINENO: result: $ntp_ok" >&5
16030echo "${ECHO_T}$ntp_ok" >&6
16031
16032echo "$as_me:$LINENO: checking RIPENCC specific Trimble driver" >&5
16033echo $ECHO_N "checking RIPENCC specific Trimble driver... $ECHO_C" >&6
16034# Check whether --enable-RIPENCC or --disable-RIPENCC was given.
16035if test "${enable_RIPENCC+set}" = set; then
16036  enableval="$enable_RIPENCC"
16037  ntp_ok=$enableval
16038else
16039  ntp_ok=no
16040fi;
16041# 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
16042case "$ac_cv_var_ripe_ncc_ok" in
16043 no) ntp_ok=no ;;
16044esac
16045if test "$ntp_ok" = "yes"; then
16046    ntp_refclock=yes
16047
16048cat >>confdefs.h <<\_ACEOF
16049#define CLOCK_RIPENCC
16050_ACEOF
16051
16052fi
16053echo "$as_me:$LINENO: result: $ntp_ok" >&5
16054echo "${ECHO_T}$ntp_ok" >&6
16055
16056echo "$as_me:$LINENO: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
16057echo $ECHO_N "checking Spectracom 8170/Netclock/2 WWVB receiver... $ECHO_C" >&6
16058# Check whether --enable-SPECTRACOM or --disable-SPECTRACOM was given.
16059if test "${enable_SPECTRACOM+set}" = set; then
16060  enableval="$enable_SPECTRACOM"
16061  ntp_ok=$enableval
16062else
16063  ntp_ok=$ntp_eac
16064fi;
16065if test "$ntp_ok" = "yes"; then
16066    ntp_refclock=yes
16067
16068cat >>confdefs.h <<\_ACEOF
16069#define CLOCK_SPECTRACOM 1
16070_ACEOF
16071
16072fi
16073echo "$as_me:$LINENO: result: $ntp_ok" >&5
16074echo "${ECHO_T}$ntp_ok" >&6
16075
16076echo "$as_me:$LINENO: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
16077echo $ECHO_N "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... $ECHO_C" >&6
16078# Check whether --enable-TPRO or --disable-TPRO was given.
16079if test "${enable_TPRO+set}" = set; then
16080  enableval="$enable_TPRO"
16081  ntp_ok=$enableval
16082else
16083  case "$ac_cv_header_sys_tpro_h" in
16084     yes)
16085	ntp_ok=$ntp_eac
16086	;;
16087     *)	ntp_ok=no
16088	;;
16089    esac
16090fi;
16091if test "$ntp_ok" = "yes"; then
16092    ntp_refclock=yes
16093
16094cat >>confdefs.h <<\_ACEOF
16095#define CLOCK_TPRO 1
16096_ACEOF
16097
16098fi
16099echo "$as_me:$LINENO: result: $ntp_ok" >&5
16100echo "${ECHO_T}$ntp_ok" >&6
16101case "$ntp_ok$ac_cv_header_sys_tpro" in
16102 yesno) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
16103echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
16104esac
16105
16106echo "$as_me:$LINENO: checking TRAK 8810 GPS receiver" >&5
16107echo $ECHO_N "checking TRAK 8810 GPS receiver... $ECHO_C" >&6
16108# Check whether --enable-TRAK or --disable-TRAK was given.
16109if test "${enable_TRAK+set}" = set; then
16110  enableval="$enable_TRAK"
16111  ntp_ok=$enableval
16112else
16113  ntp_ok=$ntp_eac
16114fi;
16115if test "$ntp_ok" = "yes"; then
16116    ntp_refclock=yes
16117
16118cat >>confdefs.h <<\_ACEOF
16119#define CLOCK_TRAK 1
16120_ACEOF
16121
16122fi
16123echo "$as_me:$LINENO: result: $ntp_ok" >&5
16124echo "${ECHO_T}$ntp_ok" >&6
16125
16126# Not on a vax-dec-bsd
16127echo "$as_me:$LINENO: checking Kinemetrics/TrueTime receivers" >&5
16128echo $ECHO_N "checking Kinemetrics/TrueTime receivers... $ECHO_C" >&6
16129# Check whether --enable-TRUETIME or --disable-TRUETIME was given.
16130if test "${enable_TRUETIME+set}" = set; then
16131  enableval="$enable_TRUETIME"
16132  ntp_ok=$enableval
16133else
16134  case "$host" in
16135     vax-dec-bsd)
16136	ntp_ok=no
16137	;;
16138     *)
16139	ntp_ok=$ntp_eac
16140	;;
16141    esac
16142fi;
16143if test "$ntp_ok" = "yes"; then
16144    ntp_refclock=yes
16145
16146cat >>confdefs.h <<\_ACEOF
16147#define CLOCK_TRUETIME 1
16148_ACEOF
16149
16150fi
16151echo "$as_me:$LINENO: result: $ntp_ok" >&5
16152echo "${ECHO_T}$ntp_ok" >&6
16153case "$ntp_ok$host" in
16154 yesvax-dec-bsd) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
16155echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
16156esac
16157
16158echo "$as_me:$LINENO: checking TrueTime 560 IRIG-B decoder" >&5
16159echo $ECHO_N "checking TrueTime 560 IRIG-B decoder... $ECHO_C" >&6
16160# Check whether --enable-TT560 or --disable-TT560 was given.
16161if test "${enable_TT560+set}" = set; then
16162  enableval="$enable_TT560"
16163  ntp_ok=$enableval
16164else
16165  ntp_ok=no
16166fi;
16167if test "$ntp_ok" = "yes"; then
16168    ntp_refclock=yes
16169
16170cat >>confdefs.h <<\_ACEOF
16171#define CLOCK_TT560
16172_ACEOF
16173
16174fi
16175echo "$as_me:$LINENO: result: $ntp_ok" >&5
16176echo "${ECHO_T}$ntp_ok" >&6
16177
16178echo "$as_me:$LINENO: checking Ultralink M320 WWVB receiver" >&5
16179echo $ECHO_N "checking Ultralink M320 WWVB receiver... $ECHO_C" >&6
16180# Check whether --enable-ULINK or --disable-ULINK was given.
16181if test "${enable_ULINK+set}" = set; then
16182  enableval="$enable_ULINK"
16183  ntp_ok=$enableval
16184else
16185  ntp_ok=$ntp_eac
16186fi;
16187if test "$ntp_ok" = "yes"; then
16188    ntp_refclock=yes
16189
16190cat >>confdefs.h <<\_ACEOF
16191#define CLOCK_ULINK 1
16192_ACEOF
16193
16194fi
16195echo "$as_me:$LINENO: result: $ntp_ok" >&5
16196echo "${ECHO_T}$ntp_ok" >&6
16197
16198# Requires modem control
16199echo "$as_me:$LINENO: checking USNO modem service" >&5
16200echo $ECHO_N "checking USNO modem service... $ECHO_C" >&6
16201# Check whether --enable-USNO or --disable-USNO was given.
16202if test "${enable_USNO+set}" = set; then
16203  enableval="$enable_USNO"
16204  ntp_ok=$enableval
16205else
16206  cat >conftest.$ac_ext <<_ACEOF
16207#line $LINENO "configure"
16208#include "confdefs.h"
16209#include <termios.h>
16210#ifdef HAVE_SYS_IOCTL_H
16211#include <sys/ioctl.h>
16212#endif
16213#ifdef TIOCMBIS
16214         yes
16215#endif
16216
16217_ACEOF
16218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16219  egrep "yes" >/dev/null 2>&1; then
16220  ntp_ok=$ntp_eac
16221else
16222  ntp_ok=no
16223fi
16224rm -f conftest*
16225
16226fi;
16227if test "$ntp_ok" = "yes"; then
16228    ntp_refclock=yes
16229
16230cat >>confdefs.h <<\_ACEOF
16231#define CLOCK_USNO 1
16232_ACEOF
16233
16234fi
16235echo "$as_me:$LINENO: result: $ntp_ok" >&5
16236echo "${ECHO_T}$ntp_ok" >&6
16237
16238echo "$as_me:$LINENO: checking WWV receiver" >&5
16239echo $ECHO_N "checking WWV receiver... $ECHO_C" >&6
16240# Check whether --enable-WWV or --disable-WWV was given.
16241if test "${enable_WWV+set}" = set; then
16242  enableval="$enable_WWV"
16243  ntp_ok=$enableval
16244else
16245  case "$ntp_eac$ntp_canaudio" in
16246     *no*)	ntp_ok=no  ;;
16247     *)		ntp_ok=yes ;;
16248    esac
16249fi;
16250if test "$ntp_ok" = "yes"; then
16251    ntp_refclock=yes
16252
16253cat >>confdefs.h <<\_ACEOF
16254#define CLOCK_WWV 1
16255_ACEOF
16256
16257fi
16258echo "$as_me:$LINENO: result: $ntp_ok" >&5
16259echo "${ECHO_T}$ntp_ok" >&6
16260case "$ntp_ok$ntp_canaudio" in
16261 yesno) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
16262echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
16263esac
16264
16265echo "$as_me:$LINENO: checking for Zyfer receiver" >&5
16266echo $ECHO_N "checking for Zyfer receiver... $ECHO_C" >&6
16267# Check whether --enable-ZYFER or --disable-ZYFER was given.
16268if test "${enable_ZYFER+set}" = set; then
16269  enableval="$enable_ZYFER"
16270  ntp_ok=$enableval
16271else
16272  ntp_ok=$ntp_eac
16273fi;
16274if test "$ntp_ok" = "yes"; then
16275    ntp_refclock=yes
16276
16277cat >>confdefs.h <<\_ACEOF
16278#define CLOCK_ZYFER 1
16279_ACEOF
16280
16281fi
16282echo "$as_me:$LINENO: result: $ntp_ok" >&5
16283echo "${ECHO_T}$ntp_ok" >&6
16284
16285echo "$as_me:$LINENO: checking for default inclusion of all suitable PARSE clocks" >&5
16286echo $ECHO_N "checking for default inclusion of all suitable PARSE clocks... $ECHO_C" >&6
16287# Check whether --enable-parse-clocks or --disable-parse-clocks was given.
16288if test "${enable_parse_clocks+set}" = set; then
16289  enableval="$enable_parse_clocks"
16290  ntp_eapc=$enableval
16291else
16292  case "$ntp_eac" in
16293     yes) ntp_eapc=$ntp_canparse ;;
16294     *) ntp_eapc=no ;;
16295    esac
16296    ntp_eapc=no
16297fi;
16298echo "$as_me:$LINENO: result: $ntp_eapc" >&5
16299echo "${ECHO_T}$ntp_eapc" >&6
16300
16301case "$ntp_eac$ntp_eapc$ntp_canparse" in
16302 noyes*)
16303    { { echo "$as_me:$LINENO: error: \"--enable-parse-clocks\" requires \"--enable-all-clocks\"." >&5
16304echo "$as_me: error: \"--enable-parse-clocks\" requires \"--enable-all-clocks\"." >&2;}
16305   { (exit 1); exit 1; }; }
16306    ;;
16307 yesyesno)
16308    { { echo "$as_me:$LINENO: error: You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" >&5
16309echo "$as_me: error: You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" >&2;}
16310   { (exit 1); exit 1; }; }
16311    ;;
16312 *) ;;
16313esac
16314
16315ntp_libparse=no
16316ntp_parseutil=no
16317ntp_rawdcf=no
16318
16319echo "$as_me:$LINENO: checking Diem Computime Radio Clock" >&5
16320echo $ECHO_N "checking Diem Computime Radio Clock... $ECHO_C" >&6
16321# Check whether --enable-COMPUTIME or --disable-COMPUTIME was given.
16322if test "${enable_COMPUTIME+set}" = set; then
16323  enableval="$enable_COMPUTIME"
16324  ntp_ok=$enableval
16325else
16326  ntp_ok=$ntp_eapc
16327fi;
16328if test "$ntp_ok" = "yes"; then
16329    ntp_libparse=yes
16330    ntp_refclock=yes
16331
16332cat >>confdefs.h <<\_ACEOF
16333#define CLOCK_COMPUTIME 1
16334_ACEOF
16335
16336fi
16337echo "$as_me:$LINENO: result: $ntp_ok" >&5
16338echo "${ECHO_T}$ntp_ok" >&6
16339case "$ntp_ok$ntp_canparse" in
16340 yesno)
16341    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
16342echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
16343   { (exit 1); exit 1; }; }
16344    ;;
16345esac
16346
16347echo "$as_me:$LINENO: checking ELV/DCF7000 clock" >&5
16348echo $ECHO_N "checking ELV/DCF7000 clock... $ECHO_C" >&6
16349# Check whether --enable-DCF7000 or --disable-DCF7000 was given.
16350if test "${enable_DCF7000+set}" = set; then
16351  enableval="$enable_DCF7000"
16352  ntp_ok=$enableval
16353else
16354  ntp_ok=$ntp_eapc
16355fi;
16356if test "$ntp_ok" = "yes"; then
16357    ntp_libparse=yes
16358    ntp_refclock=yes
16359
16360cat >>confdefs.h <<\_ACEOF
16361#define CLOCK_DCF7000 1
16362_ACEOF
16363
16364fi
16365echo "$as_me:$LINENO: result: $ntp_ok" >&5
16366echo "${ECHO_T}$ntp_ok" >&6
16367case "$ntp_ok$ntp_canparse" in
16368 yesno)
16369    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
16370echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
16371   { (exit 1); exit 1; }; }
16372    ;;
16373esac
16374
16375echo "$as_me:$LINENO: checking HOPF 6021 clock" >&5
16376echo $ECHO_N "checking HOPF 6021 clock... $ECHO_C" >&6
16377# Check whether --enable-HOPF6021 or --disable-HOPF6021 was given.
16378if test "${enable_HOPF6021+set}" = set; then
16379  enableval="$enable_HOPF6021"
16380  ntp_ok=$enableval
16381else
16382  ntp_ok=$ntp_eapc
16383fi;
16384if test "$ntp_ok" = "yes"; then
16385    ntp_libparse=yes
16386    ntp_refclock=yes
16387
16388cat >>confdefs.h <<\_ACEOF
16389#define CLOCK_HOPF6021 1
16390_ACEOF
16391
16392fi
16393echo "$as_me:$LINENO: result: $ntp_ok" >&5
16394echo "${ECHO_T}$ntp_ok" >&6
16395case "$ntp_ok$ntp_canparse" in
16396 yesno)
16397    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
16398echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
16399   { (exit 1); exit 1; }; }
16400    ;;
16401esac
16402
16403echo "$as_me:$LINENO: checking Meinberg clocks" >&5
16404echo $ECHO_N "checking Meinberg clocks... $ECHO_C" >&6
16405# Check whether --enable-MEINBERG or --disable-MEINBERG was given.
16406if test "${enable_MEINBERG+set}" = set; then
16407  enableval="$enable_MEINBERG"
16408  ntp_ok=$enableval
16409else
16410  ntp_ok=$ntp_eapc
16411fi;
16412if test "$ntp_ok" = "yes"; then
16413    ntp_libparse=yes
16414    ntp_refclock=yes
16415
16416cat >>confdefs.h <<\_ACEOF
16417#define CLOCK_MEINBERG 1
16418_ACEOF
16419
16420fi
16421echo "$as_me:$LINENO: result: $ntp_ok" >&5
16422echo "${ECHO_T}$ntp_ok" >&6
16423case "$ntp_ok$ntp_canparse" in
16424 yesno)
16425    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
16426echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
16427   { (exit 1); exit 1; }; }
16428    ;;
16429esac
16430
16431echo "$as_me:$LINENO: checking DCF77 raw time code" >&5
16432echo $ECHO_N "checking DCF77 raw time code... $ECHO_C" >&6
16433# Check whether --enable-RAWDCF or --disable-RAWDCF was given.
16434if test "${enable_RAWDCF+set}" = set; then
16435  enableval="$enable_RAWDCF"
16436  ntp_ok=$enableval
16437else
16438  ntp_ok=$ntp_eapc
16439fi;
16440if test "$ntp_ok" = "yes"; then
16441    ntp_libparse=yes
16442    ntp_parseutil=yes
16443    ntp_refclock=yes
16444    ntp_rawdcf=yes
16445
16446cat >>confdefs.h <<\_ACEOF
16447#define CLOCK_RAWDCF 1
16448_ACEOF
16449
16450fi
16451echo "$as_me:$LINENO: result: $ntp_ok" >&5
16452echo "${ECHO_T}$ntp_ok" >&6
16453case "$ntp_ok$ntp_canparse" in
16454 yesno)
16455    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
16456echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
16457   { (exit 1); exit 1; }; }
16458    ;;
16459esac
16460
16461case "$ntp_rawdcf" in
16462 yes)
16463    echo "$as_me:$LINENO: checking if we must enable parity for RAWDCF" >&5
16464echo $ECHO_N "checking if we must enable parity for RAWDCF... $ECHO_C" >&6
16465if test "${ac_cv_var_rawdcf_parity+set}" = set; then
16466  echo $ECHO_N "(cached) $ECHO_C" >&6
16467else
16468  ans=no
16469    case "$host" in
16470     *-*-linux*)
16471        ans=yes
16472        ;;
16473    esac
16474    ac_cv_var_rawdcf_parity=$ans
16475fi
16476echo "$as_me:$LINENO: result: $ac_cv_var_rawdcf_parity" >&5
16477echo "${ECHO_T}$ac_cv_var_rawdcf_parity" >&6
16478    case "$ac_cv_var_rawdcf_parity" in
16479     yes)
16480cat >>confdefs.h <<\_ACEOF
16481#define RAWDCF_NO_IGNPAR 1
16482_ACEOF
16483 ;;
16484    esac
16485    ;;
16486
16487 *) # HMS: Is this a good idea?
16488    ac_cv_var_rawdcf_parity=no
16489    ;;
16490esac
16491
16492echo "$as_me:$LINENO: checking RCC 8000 clock" >&5
16493echo $ECHO_N "checking RCC 8000 clock... $ECHO_C" >&6
16494# Check whether --enable-RCC8000 or --disable-RCC8000 was given.
16495if test "${enable_RCC8000+set}" = set; then
16496  enableval="$enable_RCC8000"
16497  ntp_ok=$enableval
16498else
16499  ntp_ok=$ntp_eapc
16500fi;
16501if test "$ntp_ok" = "yes"; then
16502    ntp_libparse=yes
16503    ntp_refclock=yes
16504
16505cat >>confdefs.h <<\_ACEOF
16506#define CLOCK_RCC8000 1
16507_ACEOF
16508
16509fi
16510echo "$as_me:$LINENO: result: $ntp_ok" >&5
16511echo "${ECHO_T}$ntp_ok" >&6
16512case "$ntp_ok$ntp_canparse" in
16513 yesno)
16514    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
16515echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
16516   { (exit 1); exit 1; }; }
16517    ;;
16518esac
16519
16520echo "$as_me:$LINENO: checking Schmid DCF77 clock" >&5
16521echo $ECHO_N "checking Schmid DCF77 clock... $ECHO_C" >&6
16522# Check whether --enable-SCHMID or --disable-SCHMID was given.
16523if test "${enable_SCHMID+set}" = set; then
16524  enableval="$enable_SCHMID"
16525  ntp_ok=$enableval
16526else
16527  ntp_ok=$ntp_eapc
16528fi;
16529if test "$ntp_ok" = "yes"; then
16530    ntp_libparse=yes
16531    ntp_refclock=yes
16532
16533cat >>confdefs.h <<\_ACEOF
16534#define CLOCK_SCHMID 1
16535_ACEOF
16536
16537fi
16538echo "$as_me:$LINENO: result: $ntp_ok" >&5
16539echo "${ECHO_T}$ntp_ok" >&6
16540case "$ntp_ok$ntp_canparse" in
16541 yesno)
16542    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
16543echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
16544   { (exit 1); exit 1; }; }
16545    ;;
16546esac
16547
16548echo "$as_me:$LINENO: checking Trimble GPS receiver/TAIP protocol" >&5
16549echo $ECHO_N "checking Trimble GPS receiver/TAIP protocol... $ECHO_C" >&6
16550# Check whether --enable-TRIMTAIP or --disable-TRIMTAIP was given.
16551if test "${enable_TRIMTAIP+set}" = set; then
16552  enableval="$enable_TRIMTAIP"
16553  ntp_ok=$enableval
16554else
16555  ntp_ok=$ntp_eapc
16556fi;
16557if test "$ntp_ok" = "yes"; then
16558    ntp_libparse=yes
16559    ntp_refclock=yes
16560
16561cat >>confdefs.h <<\_ACEOF
16562#define CLOCK_TRIMTAIP 1
16563_ACEOF
16564
16565fi
16566echo "$as_me:$LINENO: result: $ntp_ok" >&5
16567echo "${ECHO_T}$ntp_ok" >&6
16568case "$ntp_ok$ntp_canparse" in
16569 yesno)
16570    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
16571echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
16572   { (exit 1); exit 1; }; }
16573    ;;
16574esac
16575
16576echo "$as_me:$LINENO: checking Trimble GPS receiver/TSIP protocol" >&5
16577echo $ECHO_N "checking Trimble GPS receiver/TSIP protocol... $ECHO_C" >&6
16578# Check whether --enable-TRIMTSIP or --disable-TRIMTSIP was given.
16579if test "${enable_TRIMTSIP+set}" = set; then
16580  enableval="$enable_TRIMTSIP"
16581  ntp_ok=$enableval
16582else
16583  ntp_ok=$ntp_eapc
16584fi;
16585if test "$ntp_ok" = "yes"; then
16586    ntp_libparse=yes
16587    ntp_refclock=yes
16588
16589cat >>confdefs.h <<\_ACEOF
16590#define CLOCK_TRIMTSIP 1
16591_ACEOF
16592
16593fi
16594echo "$as_me:$LINENO: result: $ntp_ok" >&5
16595echo "${ECHO_T}$ntp_ok" >&6
16596case "$ntp_ok$ntp_canparse" in
16597 yesno)
16598    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
16599echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
16600   { (exit 1); exit 1; }; }
16601    ;;
16602esac
16603
16604echo "$as_me:$LINENO: checking WHARTON 400A Series clock" >&5
16605echo $ECHO_N "checking WHARTON 400A Series clock... $ECHO_C" >&6
16606# Check whether --enable-WHARTON or --disable-WHARTON was given.
16607if test "${enable_WHARTON+set}" = set; then
16608  enableval="$enable_WHARTON"
16609  ntp_ok=$enableval
16610else
16611  ntp_ok=$ntp_eapc
16612fi;
16613if test "$ntp_ok" = "yes"; then
16614    ntp_libparse=yes
16615    ntp_refclock=yes
16616
16617cat >>confdefs.h <<\_ACEOF
16618#define CLOCK_WHARTON_400A 1
16619_ACEOF
16620
16621fi
16622echo "$as_me:$LINENO: result: $ntp_ok" >&5
16623echo "${ECHO_T}$ntp_ok" >&6
16624case "$ntp_ok$ntp_canparse" in
16625 yesno)
16626    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
16627echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
16628   { (exit 1); exit 1; }; }
16629    ;;
16630esac
16631
16632echo "$as_me:$LINENO: checking VARITEXT clock" >&5
16633echo $ECHO_N "checking VARITEXT clock... $ECHO_C" >&6
16634# Check whether --enable-VARITEXT or --disable-VARITEXT was given.
16635if test "${enable_VARITEXT+set}" = set; then
16636  enableval="$enable_VARITEXT"
16637  ntp_ok=$enableval
16638else
16639  ntp_ok=$ntp_eapc
16640fi;
16641if test "$ntp_ok" = "yes"; then
16642    ntp_libparse=yes
16643    ntp_refclock=yes
16644
16645cat >>confdefs.h <<\_ACEOF
16646#define CLOCK_VARITEXT 1
16647_ACEOF
16648
16649fi
16650echo "$as_me:$LINENO: result: $ntp_ok" >&5
16651echo "${ECHO_T}$ntp_ok" >&6
16652case "$ntp_ok$ntp_canparse" in
16653 yesno)
16654    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
16655echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
16656   { (exit 1); exit 1; }; }
16657    ;;
16658esac
16659
16660
16661
16662
16663echo "$as_me:$LINENO: checking if we need to make and use the parse libraries" >&5
16664echo $ECHO_N "checking if we need to make and use the parse libraries... $ECHO_C" >&6
16665ans=no
16666case "$ntp_libparse" in
16667 yes)
16668    ans=yes
16669
16670cat >>confdefs.h <<\_ACEOF
16671#define CLOCK_PARSE 1
16672_ACEOF
16673
16674    LIBPARSE=../libparse/libparse.a
16675    MAKE_LIBPARSE=libparse.a
16676    MAKE_CHECK_Y2K=check_y2k
16677
16678cat >>confdefs.h <<\_ACEOF
16679#define PPS_SAMPLE 1
16680_ACEOF
16681
16682    cat >>confdefs.h <<\_ACEOF
16683#define CLOCK_ATOM 1
16684_ACEOF
16685
16686    ;;
16687esac
16688echo "$as_me:$LINENO: result: $ans" >&5
16689echo "${ECHO_T}$ans" >&6
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704echo "$as_me:$LINENO: checking for openssl library directory" >&5
16705echo $ECHO_N "checking for openssl library directory... $ECHO_C" >&6
16706
16707# Check whether --with-openssl-libdir or --without-openssl-libdir was given.
16708if test "${with_openssl_libdir+set}" = set; then
16709  withval="$with_openssl_libdir"
16710  ans=$withval
16711else
16712  ans=yes
16713fi;
16714case "$ans" in
16715 no) ;;
16716 yes) # Look in:
16717    ans="/usr/lib /usr/local/lib /usr/local/ssl/lib"
16718    ;;
16719 *) # Look where they said
16720    ;;
16721esac
16722case "$ans" in
16723 no) ;;
16724 *) # Look for libcrypto.a and libssl.a:
16725    for i in $ans no
16726    do
16727	test -f $i/libcrypto.a -a -f $i/libssl.a && break
16728    done
16729    case "$i" in
16730     no)
16731	ans=no
16732	OPENSSL_LIB=
16733	;;
16734     *) ans=$i
16735	OPENSSL_LIB=$ans
16736	;;
16737    esac
16738    ;;
16739esac
16740echo "$as_me:$LINENO: result: $ans" >&5
16741echo "${ECHO_T}$ans" >&6
16742
16743echo "$as_me:$LINENO: checking for openssl include directory" >&5
16744echo $ECHO_N "checking for openssl include directory... $ECHO_C" >&6
16745
16746# Check whether --with-openssl-incdir or --without-openssl-incdir was given.
16747if test "${with_openssl_incdir+set}" = set; then
16748  withval="$with_openssl_incdir"
16749  ans=$withval
16750else
16751  ans=yes
16752fi;
16753case "$ans" in
16754 no) ;;
16755 yes) # look in:
16756    ans="/usr/include /usr/local/include /usr/local/ssl/include"
16757    ;;
16758 *) # Look where they said
16759    ;;
16760esac
16761case "$ans" in
16762 no) ;;
16763 *) # look for openssl/opensslconf.h:
16764    for i in $ans no
16765    do
16766	test -f $i/openssl/opensslconf.h && break
16767    done
16768    case "$i" in
16769     no)
16770	ans=no
16771	OPENSSL_INC=
16772	;;
16773     *) ans=$i
16774	OPENSSL_INC=$ans
16775	;;
16776    esac
16777    ;;
16778esac
16779echo "$as_me:$LINENO: result: $ans" >&5
16780echo "${ECHO_T}$ans" >&6
16781
16782
16783# Check whether --with-crypto or --without-crypto was given.
16784if test "${with_crypto+set}" = set; then
16785  withval="$with_crypto"
16786  ans=$withval
16787else
16788  ans=yes
16789fi;
16790case "$ans" in
16791 no) ;;
16792 yes|rsaref|openssl)
16793    case "$ans" in
16794     yes|rsaref) # Just "rsaref" when OpenSSL is ready
16795	ans=no
16796	;;
16797     *)
16798	if test -z "$OPENSSL_LIB" -o -z "$OPENSSL_INC"
16799	then
16800	    ans=no
16801	else
16802	    # We have OpenSSL inc/lib - use them.
16803	    ans=openssl
16804	    CPPFLAGS="$CPPFLAGS -I$OPENSSL_INC"
16805	    LDFLAGS="$LDFLAGS -L$OPENSSL_LIB"
16806	    LIBS="$LIBS -lcrypto"
16807
16808cat >>confdefs.h <<\_ACEOF
16809#define DES 1
16810_ACEOF
16811
16812
16813cat >>confdefs.h <<\_ACEOF
16814#define OPENSSL
16815_ACEOF
16816
16817
16818cat >>confdefs.h <<\_ACEOF
16819#define PUBKEY
16820_ACEOF
16821
16822	fi
16823	;;
16824    esac
16825
16826    case "$ans" in
16827     no)
16828	if test -f $srcdir/rsaref2/source/digit.c
16829	then
16830	    ans=rsaref
16831	    RSAOBJS=digit.o
16832	    RSASRCS="digit.c digit.h"
16833	    RSADIR=rsaref2
16834	fi
16835	if test -f $srcdir/rsaeuro1/source/rsaeuro.h
16836	then
16837	    ans=rsaref
16838            RSAOBJS="md4c.o shsc.o"
16839            RSASRCS="md4c.c shsc.c"
16840	    RSADIR=rsaeuro1
16841	fi
16842	if test "$ans" = "rsaref"; then
16843	    LIBRSAREF=../librsaref/librsaref.a
16844	    MAKE_LIBRSAREF=librsaref.a
16845
16846cat >>confdefs.h <<\_ACEOF
16847#define DES 1
16848_ACEOF
16849
16850	    cat >>confdefs.h <<\_ACEOF
16851#define PUBKEY 1
16852_ACEOF
16853
16854
16855cat >>confdefs.h <<\_ACEOF
16856#define RSAREF
16857_ACEOF
16858
16859	fi
16860	;;
16861    esac
16862    ;;
16863esac
16864
16865
16866if test x$RSADIR = xrsaref2; then
16867  isRSAREF_TRUE=
16868  isRSAREF_FALSE='#'
16869else
16870  isRSAREF_TRUE='#'
16871  isRSAREF_FALSE=
16872fi
16873
16874
16875if test x$RSADIR = xrsaeuro1; then
16876  isRSAEURO_TRUE=
16877  isRSAEURO_FALSE='#'
16878else
16879  isRSAEURO_TRUE='#'
16880  isRSAEURO_FALSE=
16881fi
16882
16883case "$ans" in
16884 no) ;;
16885 *)
16886
16887cat >>confdefs.h <<\_ACEOF
16888#define AUTOKEY
16889_ACEOF
16890
16891    AUTOKEY=1
16892    ;;
16893esac
16894echo "$as_me:$LINENO: checking for the level of crypto support" >&5
16895echo $ECHO_N "checking for the level of crypto support... $ECHO_C" >&6
16896echo "$as_me:$LINENO: result: $ans" >&5
16897echo "${ECHO_T}$ans" >&6
16898
16899echo "$as_me:$LINENO: checking if we want to compile with ElectricFence" >&5
16900echo $ECHO_N "checking if we want to compile with ElectricFence... $ECHO_C" >&6
16901
16902# Check whether --with-electricfence or --without-electricfence was given.
16903if test "${with_electricfence+set}" = set; then
16904  withval="$with_electricfence"
16905  ans=$withval
16906else
16907  ans=no
16908fi;
16909case "$ans" in
16910 no) ;;
16911 *)
16912    LIBS="$LIBS \${top_builddir}/ElectricFence/libefence.a"
16913    EF_PROGS="eftest tstheap"
16914
16915    EF_LIBS=libefence.a
16916
16917    ans=yes
16918    ;;
16919esac
16920echo "$as_me:$LINENO: result: $ans" >&5
16921echo "${ECHO_T}$ans" >&6
16922
16923
16924
16925
16926echo "$as_me:$LINENO: checking if we can make dcf parse utilities" >&5
16927echo $ECHO_N "checking if we can make dcf parse utilities... $ECHO_C" >&6
16928ans=no
16929if test "$ntp_parseutil" = "yes"; then
16930    case "$host" in
16931     *-*-sunos4*|*-*-solaris2*|*-*-linux*)
16932	ans="dcfd testdcf"
16933	DCFD=dcfd
16934        TESTDCF=testdcf
16935	;;
16936    esac
16937fi
16938echo "$as_me:$LINENO: result: $ans" >&5
16939echo "${ECHO_T}$ans" >&6
16940
16941
16942echo "$as_me:$LINENO: checking if we can build kernel streams modules for parse" >&5
16943echo $ECHO_N "checking if we can build kernel streams modules for parse... $ECHO_C" >&6
16944ans=no
16945case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
16946 yesyes)
16947    case "$host" in
16948     sparc-*-sunos4*)
16949        case "$ac_cv_var_kernel_pll" in
16950	yes)
16951
16952cat >>confdefs.h <<\_ACEOF
16953#define PPS_SYNC 1
16954_ACEOF
16955
16956	    ;;
16957	esac
16958	ans=parsestreams
16959	MAKE_PARSEKMODULE=parsestreams.loadable_module.o
16960	;;
16961     sparc-*-solaris2*)
16962	ans=parsesolaris
16963	MAKE_PARSEKMODULE=parse
16964	;;
16965    esac
16966    ;;
16967esac
16968echo "$as_me:$LINENO: result: $ans" >&5
16969echo "${ECHO_T}$ans" >&6
16970
16971echo "$as_me:$LINENO: checking if we need basic refclock support" >&5
16972echo $ECHO_N "checking if we need basic refclock support... $ECHO_C" >&6
16973if test "$ntp_refclock" = "yes"; then
16974
16975cat >>confdefs.h <<\_ACEOF
16976#define REFCLOCK 1
16977_ACEOF
16978
16979fi
16980echo "$as_me:$LINENO: result: $ntp_refclock" >&5
16981echo "${ECHO_T}$ntp_refclock" >&6
16982
16983
16984
16985echo "$as_me:$LINENO: checking if we want HP-UX adjtimed support" >&5
16986echo $ECHO_N "checking if we want HP-UX adjtimed support... $ECHO_C" >&6
16987case "$host" in
16988 *-*-hpux[56789]*)
16989    ans=yes
16990    ;;
16991 *) ans=no
16992    ;;
16993esac
16994if test "$ans" = "yes"; then
16995    MAKE_ADJTIMED=adjtimed
16996
16997cat >>confdefs.h <<\_ACEOF
16998#define NEED_HPUX_ADJTIME 1
16999_ACEOF
17000
17001fi
17002echo "$as_me:$LINENO: result: $ans" >&5
17003echo "${ECHO_T}$ans" >&6
17004
17005echo "$as_me:$LINENO: checking if we want QNX adjtime support" >&5
17006echo $ECHO_N "checking if we want QNX adjtime support... $ECHO_C" >&6
17007case "$host" in
17008 *-*-qnx*)
17009    ans=yes
17010    ;;
17011 *) ans=no
17012    ;;
17013esac
17014if test "$ans" = "yes"; then
17015
17016cat >>confdefs.h <<\_ACEOF
17017#define NEED_QNX_ADJTIME 1
17018_ACEOF
17019
17020fi
17021echo "$as_me:$LINENO: result: $ans" >&5
17022echo "${ECHO_T}$ans" >&6
17023
17024echo "$as_me:$LINENO: checking if we can read kmem" >&5
17025echo $ECHO_N "checking if we can read kmem... $ECHO_C" >&6
17026if test "${ac_cv_var_can_kmem+set}" = set; then
17027  echo $ECHO_N "(cached) $ECHO_C" >&6
17028else
17029  # Check whether --enable-kmem or --disable-kmem was given.
17030if test "${enable_kmem+set}" = set; then
17031  enableval="$enable_kmem"
17032  ans=$enableval
17033else
17034  case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
17035     *yes*)
17036	ans=yes
17037	;;
17038     *) ans=no
17039	;;
17040    esac
17041    case "$host" in
17042     *-*-aix*)
17043	#ans=no
17044	;;
17045     *-*-domainos)	# Won't be found...
17046	ans=no
17047	;;
17048     *-*-hpux*)
17049	#ans=no
17050	;;
17051     *-*-irix[456]*)
17052	ans=no
17053	;;
17054     *-*-linux*)
17055	ans=no
17056	;;
17057     *-*-winnt3.5)
17058	ans=no
17059	;;
17060    esac
17061
17062fi;
17063ac_cv_var_can_kmem=$ans
17064fi
17065echo "$as_me:$LINENO: result: $ac_cv_var_can_kmem" >&5
17066echo "${ECHO_T}$ac_cv_var_can_kmem" >&6
17067
17068case "$ac_cv_var_can_kmem" in
17069 *yes*) ;;
17070 *)
17071cat >>confdefs.h <<\_ACEOF
17072#define NOKMEM 1
17073_ACEOF
17074 ;;
17075esac
17076
17077echo "$as_me:$LINENO: checking if adjtime is accurate" >&5
17078echo $ECHO_N "checking if adjtime is accurate... $ECHO_C" >&6
17079if test "${ac_cv_var_adjtime_is_accurate+set}" = set; then
17080  echo $ECHO_N "(cached) $ECHO_C" >&6
17081else
17082  # Check whether --enable-accurate-adjtime or --disable-accurate-adjtime was given.
17083if test "${enable_accurate_adjtime+set}" = set; then
17084  enableval="$enable_accurate_adjtime"
17085  ans=$enableval
17086else
17087  case "$host" in
17088      i386-sequent-ptx*)
17089	 ans=no
17090	 ;;
17091      i386-unknown-osf1*)
17092	 ans=yes
17093	 ;;
17094      mips-sgi-irix[456]*)
17095	 ans=yes
17096	 ;;
17097      *-fujitsu-uxp*)
17098	 ans=yes
17099	 ;;
17100      *-ibm-aix4*)
17101	 ans=yes
17102	 ;;
17103      *-*-linux*)
17104	 ans=yes
17105	 ;;
17106      *-*-solaris2.[01]*)
17107	 ans=no
17108	 ;;
17109      *-*-solaris2*)
17110         ans=yes
17111         ;;
17112      *) ans=no
17113	 ;;
17114     esac
17115
17116fi;
17117ac_cv_var_adjtime_is_accurate=$ans
17118fi
17119echo "$as_me:$LINENO: result: $ac_cv_var_adjtime_is_accurate" >&5
17120echo "${ECHO_T}$ac_cv_var_adjtime_is_accurate" >&6
17121case "$ac_cv_var_adjtime_is_accurate" in
17122 yes)
17123cat >>confdefs.h <<\_ACEOF
17124#define ADJTIME_IS_ACCURATE 1
17125_ACEOF
17126 ;;
17127esac
17128
17129echo "$as_me:$LINENO: checking the name of 'tick' in the kernel" >&5
17130echo $ECHO_N "checking the name of 'tick' in the kernel... $ECHO_C" >&6
17131if test "${ac_cv_var_nlist_tick+set}" = set; then
17132  echo $ECHO_N "(cached) $ECHO_C" >&6
17133else
17134  ans=_tick
17135case "$host" in
17136 m68*-hp-hpux*) # HP9000/300?
17137    ans=_old_tick
17138    ;;
17139 *-apple-aux[23]*)
17140    ans=tick
17141    ;;
17142 *-hp-hpux*)
17143    ans=old_tick
17144    ;;
17145 *-ibm-aix[34]*)
17146    ans=no
17147    ;;
17148 *-*-mpeix*)
17149    ans=no
17150    ;;
17151 *-*-ptx*)
17152    ans=tick
17153    ;;
17154 *-*-sco3.2v[45]*)
17155    ans=no
17156    ;;
17157 *-*-solaris2*)
17158    ans=nsec_per_tick
17159    ;;
17160 *-*-sysv4*)
17161    ans=tick
17162    ;;
17163esac
17164ac_cv_var_nlist_tick=$ans
17165fi
17166echo "$as_me:$LINENO: result: $ac_cv_var_nlist_tick" >&5
17167echo "${ECHO_T}$ac_cv_var_nlist_tick" >&6
17168case "$ac_cv_var_nlist_tick" in
17169 ''|no) ;;	# HMS: I think we can only get 'no' here...
17170 *)
17171cat >>confdefs.h <<_ACEOF
17172#define K_TICK_NAME "$ac_cv_var_nlist_tick"
17173_ACEOF
17174 ;;
17175esac
17176#
17177echo "$as_me:$LINENO: checking for the units of 'tick'" >&5
17178echo $ECHO_N "checking for the units of 'tick'... $ECHO_C" >&6
17179if test "${ac_cv_var_tick_nano+set}" = set; then
17180  echo $ECHO_N "(cached) $ECHO_C" >&6
17181else
17182  ans=usec
17183case "$host" in
17184 *-*-solaris2*)
17185    ans=nsec
17186    ;;
17187esac
17188ac_cv_var_tick_nano=$ans
17189fi
17190echo "$as_me:$LINENO: result: $ac_cv_var_tick_nano" >&5
17191echo "${ECHO_T}$ac_cv_var_tick_nano" >&6
17192case "$ac_cv_var_tick_nano" in
17193 nsec)
17194
17195cat >>confdefs.h <<\_ACEOF
17196#define TICK_NANO 1
17197_ACEOF
17198
17199    ;;
17200esac
17201#
17202echo "$as_me:$LINENO: checking the name of 'tickadj' in the kernel" >&5
17203echo $ECHO_N "checking the name of 'tickadj' in the kernel... $ECHO_C" >&6
17204if test "${ac_cv_var_nlist_tickadj+set}" = set; then
17205  echo $ECHO_N "(cached) $ECHO_C" >&6
17206else
17207  ans=_tickadj
17208case "$host" in
17209 m68*-hp-hpux*) # HP9000/300?
17210    ans=_tickadj
17211    ;;
17212 *-apple-aux[23]*)
17213    ans=tickadj
17214    ;;
17215 *-hp-hpux10*)
17216    ans=no
17217    ;;
17218 *-hp-hpux9*)
17219    ans=no
17220    ;;
17221 *-hp-hpux*)
17222    ans=tickadj
17223    ;;
17224 *-*-aix*)
17225    ans=tickadj
17226    ;;
17227 *-*-mpeix*)
17228    ans=no
17229    ;;
17230 *-*-ptx*)
17231    ans=tickadj
17232    ;;
17233 *-*-sco3.2v4*)
17234    ans=no
17235    ;;
17236 *-*-sco3.2v5.0*)
17237    ans=clock_drift
17238    ;;
17239 *-*-solaris2*)
17240    ans=no	# hrestime_adj
17241    ;;
17242 *-*-sysv4*)
17243    ans=tickadj
17244    ;;
17245esac
17246ac_cv_var_nlist_tickadj=$ans
17247fi
17248echo "$as_me:$LINENO: result: $ac_cv_var_nlist_tickadj" >&5
17249echo "${ECHO_T}$ac_cv_var_nlist_tickadj" >&6
17250case "$ac_cv_var_nlist_tickadj" in
17251 ''|no) ;;	# HMS: I think we can only get 'no' here...
17252 *)
17253cat >>confdefs.h <<_ACEOF
17254#define K_TICKADJ_NAME "$ac_cv_var_nlist_tickadj"
17255_ACEOF
17256 ;;
17257esac
17258#
17259echo "$as_me:$LINENO: checking for the units of 'tickadj'" >&5
17260echo $ECHO_N "checking for the units of 'tickadj'... $ECHO_C" >&6
17261if test "${ac_cv_var_tickadj_nano+set}" = set; then
17262  echo $ECHO_N "(cached) $ECHO_C" >&6
17263else
17264  ans=usec
17265case "$host" in
17266 *-*-solaris2*)
17267    ans=nsec
17268    ;;
17269esac
17270ac_cv_var_tickadj_nano=$ans
17271fi
17272echo "$as_me:$LINENO: result: $ac_cv_var_tickadj_nano" >&5
17273echo "${ECHO_T}$ac_cv_var_tickadj_nano" >&6
17274case "$ac_cv_var_tickadj_nano" in
17275 nsec)
17276
17277cat >>confdefs.h <<\_ACEOF
17278#define TICKADJ_NANO 1
17279_ACEOF
17280
17281    ;;
17282esac
17283#
17284echo "$as_me:$LINENO: checking half-heartedly for 'dosynctodr' in the kernel" >&5
17285echo $ECHO_N "checking half-heartedly for 'dosynctodr' in the kernel... $ECHO_C" >&6
17286if test "${ac_cv_var_nlist_dosynctodr+set}" = set; then
17287  echo $ECHO_N "(cached) $ECHO_C" >&6
17288else
17289  case "$host" in
17290 *-apple-aux[23]*)
17291    ans=no
17292    ;;
17293 *-sni-sysv*)
17294    ans=dosynctodr
17295    ;;
17296 *-*-aix*)
17297    ans=dosynctodr
17298    ;;
17299 *-*-hpux*)
17300    ans=no
17301    ;;
17302 *-*-mpeix*)
17303    ans=no
17304    ;;
17305 *-*-nextstep*)
17306    ans=_dosynctodr
17307    ;;
17308 *-*-ptx*)
17309    ans=doresettodr
17310    ;;
17311 *-*-sco3.2v4*)
17312    ans=no
17313    ;;
17314 *-*-sco3.2v5*)
17315    ans=track_rtc
17316    ;;
17317 *-*-solaris2*)
17318    ans=dosynctodr
17319    ;;
17320 *-*-sysv4*)
17321    ans=doresettodr
17322    ;;
17323 *)
17324    ans=_dosynctodr
17325    ;;
17326esac
17327ac_cv_var_nlist_dosynctodr=$ans
17328fi
17329echo "$as_me:$LINENO: result: $ac_cv_var_nlist_dosynctodr" >&5
17330echo "${ECHO_T}$ac_cv_var_nlist_dosynctodr" >&6
17331case "$ac_cv_var_nlist_dosynctodr" in
17332 no) ;;
17333 *)
17334cat >>confdefs.h <<_ACEOF
17335#define K_DOSYNCTODR_NAME "$ac_cv_var_nlist_dosynctodr"
17336_ACEOF
17337
17338     ;;
17339esac
17340#
17341echo "$as_me:$LINENO: checking half-heartedly for 'noprintf' in the kernel" >&5
17342echo $ECHO_N "checking half-heartedly for 'noprintf' in the kernel... $ECHO_C" >&6
17343if test "${ac_cv_var_nlist_noprintf+set}" = set; then
17344  echo $ECHO_N "(cached) $ECHO_C" >&6
17345else
17346  case "$host" in
17347 *-apple-aux[23]*)
17348    ans=no
17349    ;;
17350 *-sni-sysv*)
17351    ans=noprintf
17352    ;;
17353 *-*-aix*)
17354    ans=noprintf
17355    ;;
17356 *-*-hpux*)
17357    ans=no
17358    ;;
17359 *-*-mpeix*)
17360    ans=no
17361    ;;
17362 *-*-ptx*)
17363    ans=noprintf
17364    ;;
17365 *-*-nextstep*)
17366    ans=_noprintf
17367    ;;
17368 *-*-solaris2*)
17369    ans=noprintf
17370    ;;
17371 *-*-sysv4*)
17372    ans=noprintf
17373    ;;
17374 *)
17375    ans=_noprintf
17376    ;;
17377esac
17378ac_cv_var_nlist_noprintf=$ans
17379fi
17380echo "$as_me:$LINENO: result: $ac_cv_var_nlist_noprintf" >&5
17381echo "${ECHO_T}$ac_cv_var_nlist_noprintf" >&6
17382case "$ac_cv_var_nlist_noprintf" in
17383 no) ;;
17384 *)
17385cat >>confdefs.h <<_ACEOF
17386#define K_NOPRINTF_NAME "$ac_cv_var_nlist_noprintf"
17387_ACEOF
17388
17389     ;;
17390esac
17391
17392
17393
17394
17395echo "$as_me:$LINENO: checking for a default value for 'tick'" >&5
17396echo $ECHO_N "checking for a default value for 'tick'... $ECHO_C" >&6
17397if test "${ac_cv_var_tick+set}" = set; then
17398  echo $ECHO_N "(cached) $ECHO_C" >&6
17399else
17400  # Check whether --enable-tick or --disable-tick was given.
17401if test "${enable_tick+set}" = set; then
17402  enableval="$enable_tick"
17403  ans=$enableval
17404else
17405  ans=no
17406     case "$host" in
17407      XXX-*-pc-cygwin*)
17408	 ;;
17409      *-univel-sysv*)
17410	 ans=10000
17411	 ;;
17412      *-*-irix*)
17413	 ans=10000
17414	 ;;
17415      *-*-linux*)
17416	 ans=txc.tick
17417	 ;;
17418      *-*-mpeix*)
17419	 ans=no
17420	 ;;
17421      *-*-winnt3.5)
17422	 ans='(every / 10)'
17423	 ;;
17424      *)
17425	 ans='1000000L/hz'
17426	 ;;
17427     esac
17428fi;
17429ac_cv_var_tick=$ans
17430fi
17431echo "$as_me:$LINENO: result: $ac_cv_var_tick" >&5
17432echo "${ECHO_T}$ac_cv_var_tick" >&6
17433case "$ac_cv_var_tick" in
17434 ''|no) ;;	# HMS: I think we can only get 'no' here...
17435 *)
17436cat >>confdefs.h <<_ACEOF
17437#define PRESET_TICK $ac_cv_var_tick
17438_ACEOF
17439 ;;
17440esac
17441
17442echo "$as_me:$LINENO: checking for a default value for 'tickadj'" >&5
17443echo $ECHO_N "checking for a default value for 'tickadj'... $ECHO_C" >&6
17444if test "${ac_cv_var_tickadj+set}" = set; then
17445  echo $ECHO_N "(cached) $ECHO_C" >&6
17446else
17447  # Check whether --enable-tickadj or --disable-tickadj was given.
17448if test "${enable_tickadj+set}" = set; then
17449  enableval="$enable_tickadj"
17450  ans=$enableval
17451else
17452  ans='500/hz'
17453  case "$host" in
17454   *-fujitsu-uxp*)
17455      case "$ac_cv_var_adjtime_is_accurate" in
17456       yes) ans='tick/16' ;;
17457      esac
17458      ;;
17459   XXX-*-pc-cygwin*)
17460      ans=no
17461      ;;
17462   *-univel-sysv*)
17463      ans=80
17464      ;;
17465   *-*-aix*)
17466      case "$ac_cv_var_can_kmem" in
17467       no) ans=1000 ;;
17468      esac
17469      ;;
17470   *-*-domainos)	# Skippy: won't be found...
17471      case "$ac_cv_var_can_kmem" in
17472       no) ans=668 ;;
17473      esac
17474      ;;
17475   *-*-hpux*)
17476      case "$ac_cv_var_adjtime_is_accurate" in
17477       yes) ans='tick/16' ;;
17478      esac
17479      ;;
17480   *-*-irix*)
17481      ans=150
17482      ;;
17483   *-*-mpeix*)
17484      ans=no
17485      ;;
17486   *-*-sco3.2v5.0*)
17487      ans=10000L/hz
17488      ;;
17489   *-*-solaris2*)
17490      case "$ac_cv_var_adjtime_is_accurate" in
17491       yes)
17492          #ans='tick/16'
17493	  ;;
17494      esac
17495      ;;
17496   *-*-winnt3.5)
17497      ans=50
17498      ;;
17499  esac
17500fi;
17501ac_cv_var_tickadj=$ans
17502fi
17503echo "$as_me:$LINENO: result: $ac_cv_var_tickadj" >&5
17504echo "${ECHO_T}$ac_cv_var_tickadj" >&6
17505case "$ac_cv_var_tickadj" in
17506 ''|no) ;;	# HMS: I think we can only get 'no' here...
17507 *)
17508cat >>confdefs.h <<_ACEOF
17509#define PRESET_TICKADJ $ac_cv_var_tickadj
17510_ACEOF
17511 ;;
17512esac
17513
17514# Newer versions of ReliantUNIX round adjtime() values down to
17515# 1/100s (system tick). Sigh ...
17516# Unfortunately, there is no easy way to know if particular release
17517# has this "feature" or any obvious way to test for it.
17518case "$host" in
17519 mips-sni-sysv4*)
17520cat >>confdefs.h <<\_ACEOF
17521#define RELIANTUNIX_CLOCK 1
17522_ACEOF
17523 ;;
17524esac
17525
17526case "$host" in
17527 *-*-sco3.2v5*)
17528cat >>confdefs.h <<\_ACEOF
17529#define SCO5_CLOCK 1
17530_ACEOF
17531 ;;
17532esac
17533
17534ac_cv_make_tickadj=yes
17535case "$ac_cv_var_can_kmem$ac_cv_var_tick$ac_cv_var_tickadj" in
17536 nonono)	# Don't read KMEM, no presets.  Bogus.
17537    { echo "$as_me:$LINENO: WARNING: Can't read kmem" >&5
17538echo "$as_me: WARNING: Can't read kmem" >&2;}
17539    ac_cv_make_tickadj=no
17540    ;;
17541 nono*)		# Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
17542    { echo "$as_me:$LINENO: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&5
17543echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&2;}
17544    ac_cv_make_tickadj=no
17545    ;;
17546 no*no)		# Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Bogus.
17547    { echo "$as_me:$LINENO: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&5
17548echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&2;}
17549    ac_cv_make_tickadj=no
17550    ;;
17551 no*)		# Don't read KMEM, PRESET_TICK and PRESET_TICKADJ.  Cool.
17552    ;;
17553 yesnono)	# Read KMEM, no presets.  Cool.
17554    ;;
17555 yesno*)	# Read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
17556    { echo "$as_me:$LINENO: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&5
17557echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&2;}
17558    ;;
17559 yes*no)	# Read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Cool.
17560    ;;
17561 yes*)		# READ KMEM, PRESET_TICK and PRESET_TICKADJ.
17562    ;;
17563 *)		# Generally bogus.
17564    { { echo "$as_me:$LINENO: error: This shouldn't happen." >&5
17565echo "$as_me: error: This shouldn't happen." >&2;}
17566   { (exit 1); exit 1; }; }
17567    ;;
17568esac
17569
17570
17571echo "$as_me:$LINENO: checking if we want and can make the ntptime utility" >&5
17572echo $ECHO_N "checking if we want and can make the ntptime utility... $ECHO_C" >&6
17573if test "${ac_cv_make_ntptime+set}" = set; then
17574  echo $ECHO_N "(cached) $ECHO_C" >&6
17575else
17576  case "$host" in
17577 *) case "$ac_cv_struct_ntptimeval$ac_cv_var_kernel_pll" in
17578     yesyes)
17579	ans=yes
17580	;;
17581     *)
17582	ans=no
17583	;;
17584    esac
17585    ;;
17586esac
17587ac_cv_make_ntptime=$ans
17588fi
17589echo "$as_me:$LINENO: result: $ac_cv_make_ntptime" >&5
17590echo "${ECHO_T}$ac_cv_make_ntptime" >&6
17591case "$ac_cv_make_ntptime" in
17592 yes)
17593    MAKE_NTPTIME=ntptime
17594    ;;
17595esac
17596
17597
17598case "$host" in
17599 mips-sni-sysv4*)
17600    # tickadj is pretty useless on newer versions of ReliantUNIX
17601    # Do not bother
17602    ac_cv_make_tickadj=no
17603    ;;
17604 *-*-irix*)
17605    ac_cv_make_tickadj=no
17606    ;;
17607 *-*-solaris2*)
17608    # DLM says tickadj is a no-no starting with solaris2.5
17609    case "$host" in
17610     *-*-solaris2.0-4*) ;;
17611     *) ac_cv_make_tickadj=no ;;
17612    esac
17613    ;;
17614esac
17615echo "$as_me:$LINENO: checking if we want and can make the tickadj utility" >&5
17616echo $ECHO_N "checking if we want and can make the tickadj utility... $ECHO_C" >&6
17617if test "${ac_cv_make_tickadj+set}" = set; then
17618  echo $ECHO_N "(cached) $ECHO_C" >&6
17619else
17620  ac_cv_make_tickadj=yes
17621fi
17622echo "$as_me:$LINENO: result: $ac_cv_make_tickadj" >&5
17623echo "${ECHO_T}$ac_cv_make_tickadj" >&6
17624case "$ac_cv_make_tickadj" in
17625 yes)
17626    MAKE_TICKADJ=tickadj
17627    ;;
17628esac
17629
17630
17631echo "$as_me:$LINENO: checking if we want and can make the timetrim utility" >&5
17632echo $ECHO_N "checking if we want and can make the timetrim utility... $ECHO_C" >&6
17633if test "${ac_cv_make_timetrim+set}" = set; then
17634  echo $ECHO_N "(cached) $ECHO_C" >&6
17635else
17636  case "$host" in
17637 *-*-irix*)
17638    ac_cv_make_timetrim=yes
17639    ;;
17640 *)
17641    ac_cv_make_timetrim=no
17642    ;;
17643esac
17644fi
17645echo "$as_me:$LINENO: result: $ac_cv_make_timetrim" >&5
17646echo "${ECHO_T}$ac_cv_make_timetrim" >&6
17647case "$ac_cv_make_timetrim" in
17648 yes)
17649    MAKE_TIMETRIM=timetrim
17650    ;;
17651esac
17652
17653echo "$as_me:$LINENO: checking if we want UDP wildcard delivery" >&5
17654echo $ECHO_N "checking if we want UDP wildcard delivery... $ECHO_C" >&6
17655if test "${ac_cv_var_udp_wildcard_delivery+set}" = set; then
17656  echo $ECHO_N "(cached) $ECHO_C" >&6
17657else
17658  # Check whether --enable-udp-wildcard or --disable-udp-wildcard was given.
17659if test "${enable_udp_wildcard+set}" = set; then
17660  enableval="$enable_udp_wildcard"
17661  ans=$enableval
17662else
17663  ans=no
17664     case "$host" in
17665      *-fujitsu-uxp*)
17666	 ans=yes
17667	 ;;
17668      *-univel-sysv*)
17669	 ans=yes
17670	 ;;
17671      *-*-aix3.2*)
17672	 ans=yes
17673	 ;;
17674      *-*-aix4*)
17675	 ans=yes
17676	 ;;
17677      *-*-bsdi*)
17678	 ans=yes
17679	 ;;
17680      *-*-domainos)
17681	 ans=yes
17682	 ;;
17683      *-*-freebsd*)
17684	ans=yes
17685	;;
17686      *-*-hpux*)
17687	 ans=yes
17688	 ;;
17689      *-*-irix6*)
17690	 ans=yes
17691	 ;;
17692      *-*-linux*)
17693	 ans=yes
17694	 ;;
17695      *-*-mpeix*)
17696	 ans=yes
17697	 ;;
17698      *-*-osf*)
17699	 ans=yes
17700	 ;;
17701      *-*-ptx*)
17702	 ans=yes
17703	 ;;
17704      *-*-solaris2*)
17705	 ans=yes
17706	 ;;
17707      *-*-sunos4*)
17708	 ans=yes
17709	 ;;
17710     esac
17711fi;
17712ac_cv_var_udp_wildcard_delivery=$ans
17713fi
17714echo "$as_me:$LINENO: result: $ac_cv_var_udp_wildcard_delivery" >&5
17715echo "${ECHO_T}$ac_cv_var_udp_wildcard_delivery" >&6
17716case "$ac_cv_var_udp_wildcard_delivery" in
17717 yes)
17718cat >>confdefs.h <<\_ACEOF
17719#define UDP_WILDCARD_DELIVERY 1
17720_ACEOF
17721 ;;
17722esac
17723
17724case "$build" in
17725 $host)
17726    ;;
17727 *) case "$host" in
17728     *-*-vxworks*)
17729        LDFLAGS="$LDFLAGS -r"
17730        ;;
17731    esac
17732    ;;
17733esac
17734
17735echo "$as_me:$LINENO: checking if we should always slew the time" >&5
17736echo $ECHO_N "checking if we should always slew the time... $ECHO_C" >&6
17737if test "${ac_cv_var_slew_always+set}" = set; then
17738  echo $ECHO_N "(cached) $ECHO_C" >&6
17739else
17740  # Check whether --enable-slew-always or --disable-slew-always was given.
17741if test "${enable_slew_always+set}" = set; then
17742  enableval="$enable_slew_always"
17743  ans=$enableval
17744else
17745  case "$host" in
17746      *-apple-aux[23]*)
17747	 ans=yes
17748	 ;;
17749      *-*-bsdi[012]*)
17750	 ans=no
17751	 ;;
17752      *-*-bsdi*)
17753	 ans=yes
17754	 ;;
17755      *-*-openvms*)	# HMS: won't be found
17756	 ans=yes
17757	 ;;
17758      *) ans=no
17759	 ;;
17760     esac
17761
17762fi;
17763ac_cv_var_slew_always=$ans
17764fi
17765echo "$as_me:$LINENO: result: $ac_cv_var_slew_always" >&5
17766echo "${ECHO_T}$ac_cv_var_slew_always" >&6
17767case "$ac_cv_var_slew_always" in
17768 yes)
17769cat >>confdefs.h <<\_ACEOF
17770#define SLEWALWAYS 1
17771_ACEOF
17772 ;;
17773esac
17774
17775echo "$as_me:$LINENO: checking if we should step and slew the time" >&5
17776echo $ECHO_N "checking if we should step and slew the time... $ECHO_C" >&6
17777if test "${ac_cv_var_step_slew+set}" = set; then
17778  echo $ECHO_N "(cached) $ECHO_C" >&6
17779else
17780  # Check whether --enable-step-slew or --disable-step-slew was given.
17781if test "${enable_step_slew+set}" = set; then
17782  enableval="$enable_step_slew"
17783  ans=$enableval
17784else
17785  case "$host" in
17786      *-sni-sysv*)
17787	 ans=yes
17788	 ;;
17789      *-univel-sysv*)
17790	 ans=no
17791	 ;;
17792      *-*-ptx*)
17793	 ans=yes
17794	 ;;
17795      *-*-solaris2.[012]*)
17796	 ans=yes
17797	 ;;
17798      *-*-sysv4*)	# HMS: Does this catch Fujitsu UXP?
17799	 ans=yes
17800	 ;;
17801      *) ans=no
17802	 ;;
17803     esac
17804
17805fi;
17806ac_cv_var_step_slew=$ans
17807fi
17808echo "$as_me:$LINENO: result: $ac_cv_var_step_slew" >&5
17809echo "${ECHO_T}$ac_cv_var_step_slew" >&6
17810case "$ac_cv_var_step_slew" in
17811 yes)
17812cat >>confdefs.h <<\_ACEOF
17813#define STEP_SLEW 1
17814_ACEOF
17815 ;;
17816esac
17817
17818echo "$as_me:$LINENO: checking if ntpdate should step the time" >&5
17819echo $ECHO_N "checking if ntpdate should step the time... $ECHO_C" >&6
17820if test "${ac_cv_var_ntpdate_step+set}" = set; then
17821  echo $ECHO_N "(cached) $ECHO_C" >&6
17822else
17823  # Check whether --enable-ntpdate-step or --disable-ntpdate-step was given.
17824if test "${enable_ntpdate_step+set}" = set; then
17825  enableval="$enable_ntpdate_step"
17826  ans=$enableval
17827else
17828  case "$host" in
17829      *-apple-aux[23]*)
17830	 ans=yes
17831	 ;;
17832      *) ans=no
17833	 ;;
17834     esac
17835
17836fi;
17837ac_cv_var_ntpdate_step=$ans
17838fi
17839echo "$as_me:$LINENO: result: $ac_cv_var_ntpdate_step" >&5
17840echo "${ECHO_T}$ac_cv_var_ntpdate_step" >&6
17841case "$ac_cv_var_ntpdate_step" in
17842 yes)
17843cat >>confdefs.h <<\_ACEOF
17844#define FORCE_NTPDATE_STEP 1
17845_ACEOF
17846 ;;
17847esac
17848
17849echo "$as_me:$LINENO: checking if we should sync TODR clock every hour" >&5
17850echo $ECHO_N "checking if we should sync TODR clock every hour... $ECHO_C" >&6
17851if test "${ac_cv_var_sync_todr+set}" = set; then
17852  echo $ECHO_N "(cached) $ECHO_C" >&6
17853else
17854  # Check whether --enable-hourly-todr-sync or --disable-hourly-todr-sync was given.
17855if test "${enable_hourly_todr_sync+set}" = set; then
17856  enableval="$enable_hourly_todr_sync"
17857  ans=$enableval
17858else
17859  case "$host" in
17860      *-*-nextstep*)
17861	 ans=yes
17862	 ;;
17863      *-*-openvms*)	# HMS: won't be found
17864	 ans=yes
17865	 ;;
17866      *) ans=no
17867	 ;;
17868     esac
17869fi;
17870ac_cv_var_sync_todr=$ans
17871fi
17872echo "$as_me:$LINENO: result: $ac_cv_var_sync_todr" >&5
17873echo "${ECHO_T}$ac_cv_var_sync_todr" >&6
17874case "$ac_cv_var_sync_todr" in
17875 yes)
17876cat >>confdefs.h <<\_ACEOF
17877#define DOSYNCTODR 1
17878_ACEOF
17879 ;;
17880esac
17881
17882echo "$as_me:$LINENO: checking if we should avoid kernel FLL bug" >&5
17883echo $ECHO_N "checking if we should avoid kernel FLL bug... $ECHO_C" >&6
17884if test "${ac_cv_var_kernel_fll_bug+set}" = set; then
17885  echo $ECHO_N "(cached) $ECHO_C" >&6
17886else
17887  # Check whether --enable-kernel-fll-bug or --disable-kernel-fll-bug was given.
17888if test "${enable_kernel_fll_bug+set}" = set; then
17889  enableval="$enable_kernel_fll_bug"
17890  ans=$enableval
17891else
17892  case "$host" in
17893     *-*-solaris2.6)
17894	 unamev=`uname -v`
17895	 case "$unamev" in
17896	  Generic_105181-*)
17897	     old_IFS="$IFS"
17898	     IFS="-"
17899	     set $unamev
17900	     IFS="$old_IFS"
17901	     if test "$2" -ge 17
17902	     then
17903	        # Generic_105181-17 and higher
17904	        ans=no
17905	     else
17906	        ans=yes
17907	     fi
17908	     ;;
17909	  *) ans=yes
17910	     ;;
17911	 esac
17912	 ;;
17913     *-*-solaris2.7)
17914	 unamev=`uname -v`
17915	 case "$unamev" in
17916	  Generic_106541-*)
17917	     old_IFS="$IFS"
17918	     IFS="-"
17919	     set $unamev
17920	     IFS="$old_IFS"
17921	     if test "$2" -ge 07
17922	     then
17923	        # Generic_106541-07 and higher
17924	        ans=no
17925	     else
17926	        ans=yes
17927	     fi
17928	     ;;
17929	  *) ans=yes
17930	     ;;
17931	 esac
17932	 ;;
17933     *) ans=no
17934	 ;;
17935    esac
17936
17937fi;
17938ac_cv_var_kernel_fll_bug=$ans
17939fi
17940echo "$as_me:$LINENO: result: $ac_cv_var_kernel_fll_bug" >&5
17941echo "${ECHO_T}$ac_cv_var_kernel_fll_bug" >&6
17942case "$ac_cv_var_kernel_fll_bug" in
17943 yes)
17944cat >>confdefs.h <<\_ACEOF
17945#define KERNEL_FLL_BUG 1
17946_ACEOF
17947 ;;
17948esac
17949
17950case "$build" in
17951 $host)
17952    ;;
17953 *) case "$host" in
17954     *-*-vxworks*)
17955        LDFLAGS="$LDFLAGS -r"
17956        ;;
17957    esac
17958    ;;
17959esac
17960
17961
17962	ac_expanded=`(
17963	    test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17964	    test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
17965	    eval echo \""$sysconfdir"\"
17966        )`
17967
17968cat >>confdefs.h <<_ACEOF
17969#define NTP_KEYSDIR "$ac_expanded"
17970_ACEOF
17971
17972
17973
17974# HMS: I think we avoid this problem now...
17975## This is necessary so that .o files in LIBOBJS are also built via
17976## the ANSI2KNR-filtering rules.
17977#LIBOBJS=`echo "$LIBOBJS" | sed 's,\.[[^.]]* ,$U&,g;s,\.[[^.]]*$,$U&,'`
17978
17979ac_config_files="$ac_config_files Makefile"
17980
17981ac_config_files="$ac_config_files ElectricFence/Makefile"
17982
17983ac_config_files="$ac_config_files adjtimed/Makefile"
17984
17985ac_config_files="$ac_config_files clockstuff/Makefile"
17986
17987ac_config_files="$ac_config_files include/Makefile"
17988
17989ac_config_files="$ac_config_files kernel/Makefile"
17990
17991ac_config_files="$ac_config_files kernel/sys/Makefile"
17992
17993ac_config_files="$ac_config_files libntp/Makefile"
17994
17995ac_config_files="$ac_config_files libparse/Makefile"
17996
17997ac_config_files="$ac_config_files librsaref/Makefile"
17998
17999ac_config_files="$ac_config_files ntpd/Makefile"
18000
18001ac_config_files="$ac_config_files ntpdate/Makefile"
18002
18003ac_config_files="$ac_config_files ntpdc/Makefile"
18004
18005ac_config_files="$ac_config_files ntpq/Makefile"
18006
18007ac_config_files="$ac_config_files ntptrace/Makefile"
18008
18009ac_config_files="$ac_config_files parseutil/Makefile"
18010
18011ac_config_files="$ac_config_files scripts/Makefile"
18012
18013ac_config_files="$ac_config_files scripts/calc_tickadj"
18014
18015ac_config_files="$ac_config_files scripts/checktime"
18016
18017ac_config_files="$ac_config_files scripts/freq_adj"
18018
18019ac_config_files="$ac_config_files scripts/mkver"
18020
18021ac_config_files="$ac_config_files scripts/ntp-wait"
18022
18023ac_config_files="$ac_config_files scripts/ntpsweep"
18024
18025ac_config_files="$ac_config_files scripts/ntpver"
18026
18027ac_config_files="$ac_config_files scripts/plot_summary"
18028
18029ac_config_files="$ac_config_files scripts/summary"
18030
18031ac_config_files="$ac_config_files util/Makefile"
18032
18033
18034ac_config_commands="$ac_config_commands default"
18035
18036
18037cat >confcache <<\_ACEOF
18038# This file is a shell script that caches the results of configure
18039# tests run on this system so they can be shared between configure
18040# scripts and configure runs, see configure's option --config-cache.
18041# It is not useful on other systems.  If it contains results you don't
18042# want to keep, you may remove or edit it.
18043#
18044# config.status only pays attention to the cache file if you give it
18045# the --recheck option to rerun configure.
18046#
18047# `ac_cv_env_foo' variables (set or unset) will be overriden when
18048# loading this file, other *unset* `ac_cv_foo' will be assigned the
18049# following values.
18050
18051_ACEOF
18052
18053# The following way of writing the cache mishandles newlines in values,
18054# but we know of no workaround that is simple, portable, and efficient.
18055# So, don't put newlines in cache variables' values.
18056# Ultrix sh set writes to stderr and can't be redirected directly,
18057# and sets the high bit in the cache file unless we assign to the vars.
18058{
18059  (set) 2>&1 |
18060    case `(ac_space=' '; set | grep ac_space) 2>&1` in
18061    *ac_space=\ *)
18062      # `set' does not quote correctly, so add quotes (double-quote
18063      # substitution turns \\\\ into \\, and sed turns \\ into \).
18064      sed -n \
18065        "s/'/'\\\\''/g;
18066    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18067      ;;
18068    *)
18069      # `set' quotes correctly as required by POSIX, so do not add quotes.
18070      sed -n \
18071        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18072      ;;
18073    esac;
18074} |
18075  sed '
18076     t clear
18077     : clear
18078     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18079     t end
18080     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18081     : end' >>confcache
18082if cmp -s $cache_file confcache; then :; else
18083  if test -w $cache_file; then
18084    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18085    cat confcache >$cache_file
18086  else
18087    echo "not updating unwritable cache $cache_file"
18088  fi
18089fi
18090rm -f confcache
18091
18092test "x$prefix" = xNONE && prefix=$ac_default_prefix
18093# Let make expand exec_prefix.
18094test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18095
18096# VPATH may cause trouble with some makes, so we remove $(srcdir),
18097# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18098# trailing colons and then remove the whole line if VPATH becomes empty
18099# (actually we leave an empty line to preserve line numbers).
18100if test "x$srcdir" = x.; then
18101  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
18102s/:*\$(srcdir):*/:/;
18103s/:*\${srcdir}:*/:/;
18104s/:*@srcdir@:*/:/;
18105s/^\([^=]*=[ 	]*\):*/\1/;
18106s/:*$//;
18107s/^[^=]*=[ 	]*$//;
18108}'
18109fi
18110
18111DEFS=-DHAVE_CONFIG_H
18112
18113
18114: ${CONFIG_STATUS=./config.status}
18115ac_clean_files_save=$ac_clean_files
18116ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18117{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18118echo "$as_me: creating $CONFIG_STATUS" >&6;}
18119cat >$CONFIG_STATUS <<_ACEOF
18120#! $SHELL
18121# Generated by $as_me.
18122# Run this file to recreate the current configuration.
18123# Compiler output produced by configure, useful for debugging
18124# configure, is in config.log if it exists.
18125
18126debug=false
18127SHELL=\${CONFIG_SHELL-$SHELL}
18128_ACEOF
18129
18130cat >>$CONFIG_STATUS <<\_ACEOF
18131
18132## --------------------- ##
18133## M4sh Initialization.  ##
18134## --------------------- ##
18135
18136# Be Bourne compatible
18137if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18138  emulate sh
18139  NULLCMD=:
18140elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18141  set -o posix
18142fi
18143
18144# NLS nuisances.
18145# Support unset when possible.
18146if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18147  as_unset=unset
18148else
18149  as_unset=false
18150fi
18151
18152(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
18153    { $as_unset LANG || test "${LANG+set}" != set; } ||
18154      { LANG=C; export LANG; }
18155(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
18156    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
18157      { LC_ALL=C; export LC_ALL; }
18158(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
18159    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
18160      { LC_TIME=C; export LC_TIME; }
18161(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
18162    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
18163      { LC_CTYPE=C; export LC_CTYPE; }
18164(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
18165    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
18166      { LANGUAGE=C; export LANGUAGE; }
18167(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
18168    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
18169      { LC_COLLATE=C; export LC_COLLATE; }
18170(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
18171    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
18172      { LC_NUMERIC=C; export LC_NUMERIC; }
18173(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
18174    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
18175      { LC_MESSAGES=C; export LC_MESSAGES; }
18176
18177
18178# Name of the executable.
18179as_me=`(basename "$0") 2>/dev/null ||
18180$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18181	 X"$0" : 'X\(//\)$' \| \
18182	 X"$0" : 'X\(/\)$' \| \
18183	 .     : '\(.\)' 2>/dev/null ||
18184echo X/"$0" |
18185    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18186  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
18187  	  /^X\/\(\/\).*/{ s//\1/; q; }
18188  	  s/.*/./; q'`
18189
18190# PATH needs CR, and LINENO needs CR and PATH.
18191# Avoid depending upon Character Ranges.
18192as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18193as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18194as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18195as_cr_digits='0123456789'
18196as_cr_alnum=$as_cr_Letters$as_cr_digits
18197
18198# The user is always right.
18199if test "${PATH_SEPARATOR+set}" != set; then
18200  echo "#! /bin/sh" >conftest.sh
18201  echo  "exit 0"   >>conftest.sh
18202  chmod +x conftest.sh
18203  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
18204    PATH_SEPARATOR=';'
18205  else
18206    PATH_SEPARATOR=:
18207  fi
18208  rm -f conftest.sh
18209fi
18210
18211
18212  as_lineno_1=$LINENO
18213  as_lineno_2=$LINENO
18214  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18215  test "x$as_lineno_1" != "x$as_lineno_2" &&
18216  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18217  # Find who we are.  Look in the path if we contain no path at all
18218  # relative or not.
18219  case $0 in
18220    *[\\/]* ) as_myself=$0 ;;
18221    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18222for as_dir in $PATH
18223do
18224  IFS=$as_save_IFS
18225  test -z "$as_dir" && as_dir=.
18226  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18227done
18228
18229       ;;
18230  esac
18231  # We did not find ourselves, most probably we were run as `sh COMMAND'
18232  # in which case we are not to be found in the path.
18233  if test "x$as_myself" = x; then
18234    as_myself=$0
18235  fi
18236  if test ! -f "$as_myself"; then
18237    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18238echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18239   { (exit 1); exit 1; }; }
18240  fi
18241  case $CONFIG_SHELL in
18242  '')
18243    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18244for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18245do
18246  IFS=$as_save_IFS
18247  test -z "$as_dir" && as_dir=.
18248  for as_base in sh bash ksh sh5; do
18249	 case $as_dir in
18250	 /*)
18251	   if ("$as_dir/$as_base" -c '
18252  as_lineno_1=$LINENO
18253  as_lineno_2=$LINENO
18254  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18255  test "x$as_lineno_1" != "x$as_lineno_2" &&
18256  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18257	     CONFIG_SHELL=$as_dir/$as_base
18258	     export CONFIG_SHELL
18259	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18260	   fi;;
18261	 esac
18262       done
18263done
18264;;
18265  esac
18266
18267  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18268  # uniformly replaced by the line number.  The first 'sed' inserts a
18269  # line-number line before each line; the second 'sed' does the real
18270  # work.  The second script uses 'N' to pair each line-number line
18271  # with the numbered line, and appends trailing '-' during
18272  # substitution so that $LINENO is not a special case at line end.
18273  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18274  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18275  sed '=' <$as_myself |
18276    sed '
18277      N
18278      s,$,-,
18279      : loop
18280      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18281      t loop
18282      s,-$,,
18283      s,^['$as_cr_digits']*\n,,
18284    ' >$as_me.lineno &&
18285  chmod +x $as_me.lineno ||
18286    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18287echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18288   { (exit 1); exit 1; }; }
18289
18290  # Don't try to exec as it changes $[0], causing all sort of problems
18291  # (the dirname of $[0] is not the place where we might find the
18292  # original and so on.  Autoconf is especially sensible to this).
18293  . ./$as_me.lineno
18294  # Exit status is that of the last command.
18295  exit
18296}
18297
18298
18299case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18300  *c*,-n*) ECHO_N= ECHO_C='
18301' ECHO_T='	' ;;
18302  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18303  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18304esac
18305
18306if expr a : '\(a\)' >/dev/null 2>&1; then
18307  as_expr=expr
18308else
18309  as_expr=false
18310fi
18311
18312rm -f conf$$ conf$$.exe conf$$.file
18313echo >conf$$.file
18314if ln -s conf$$.file conf$$ 2>/dev/null; then
18315  # We could just check for DJGPP; but this test a) works b) is more generic
18316  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18317  if test -f conf$$.exe; then
18318    # Don't use ln at all; we don't have any links
18319    as_ln_s='cp -p'
18320  else
18321    as_ln_s='ln -s'
18322  fi
18323elif ln conf$$.file conf$$ 2>/dev/null; then
18324  as_ln_s=ln
18325else
18326  as_ln_s='cp -p'
18327fi
18328rm -f conf$$ conf$$.exe conf$$.file
18329
18330as_executable_p="test -f"
18331
18332# Sed expression to map a string onto a valid CPP name.
18333as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18334
18335# Sed expression to map a string onto a valid variable name.
18336as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18337
18338
18339# IFS
18340# We need space, tab and new line, in precisely that order.
18341as_nl='
18342'
18343IFS=" 	$as_nl"
18344
18345# CDPATH.
18346$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
18347
18348exec 6>&1
18349
18350# Open the log real soon, to keep \$[0] and so on meaningful, and to
18351# report actual input values of CONFIG_FILES etc. instead of their
18352# values after options handling.  Logging --version etc. is OK.
18353exec 5>>config.log
18354{
18355  echo
18356  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18357## Running $as_me. ##
18358_ASBOX
18359} >&5
18360cat >&5 <<_CSEOF
18361
18362This file was extended by $as_me, which was
18363generated by GNU Autoconf 2.53.  Invocation command line was
18364
18365  CONFIG_FILES    = $CONFIG_FILES
18366  CONFIG_HEADERS  = $CONFIG_HEADERS
18367  CONFIG_LINKS    = $CONFIG_LINKS
18368  CONFIG_COMMANDS = $CONFIG_COMMANDS
18369  $ $0 $@
18370
18371_CSEOF
18372echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18373echo >&5
18374_ACEOF
18375
18376# Files that config.status was made for.
18377if test -n "$ac_config_files"; then
18378  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18379fi
18380
18381if test -n "$ac_config_headers"; then
18382  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18383fi
18384
18385if test -n "$ac_config_links"; then
18386  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18387fi
18388
18389if test -n "$ac_config_commands"; then
18390  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18391fi
18392
18393cat >>$CONFIG_STATUS <<\_ACEOF
18394
18395ac_cs_usage="\
18396\`$as_me' instantiates files from templates according to the
18397current configuration.
18398
18399Usage: $0 [OPTIONS] [FILE]...
18400
18401  -h, --help       print this help, then exit
18402  -V, --version    print version number, then exit
18403  -d, --debug      don't remove temporary files
18404      --recheck    update $as_me by reconfiguring in the same conditions
18405  --file=FILE[:TEMPLATE]
18406                   instantiate the configuration file FILE
18407  --header=FILE[:TEMPLATE]
18408                   instantiate the configuration header FILE
18409
18410Configuration files:
18411$config_files
18412
18413Configuration headers:
18414$config_headers
18415
18416Configuration commands:
18417$config_commands
18418
18419Report bugs to <bug-autoconf@gnu.org>."
18420_ACEOF
18421
18422cat >>$CONFIG_STATUS <<_ACEOF
18423ac_cs_version="\\
18424config.status
18425configured by $0, generated by GNU Autoconf 2.53,
18426  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18427
18428Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18429Free Software Foundation, Inc.
18430This config.status script is free software; the Free Software Foundation
18431gives unlimited permission to copy, distribute and modify it."
18432srcdir=$srcdir
18433INSTALL="$INSTALL"
18434_ACEOF
18435
18436cat >>$CONFIG_STATUS <<\_ACEOF
18437# If no file are specified by the user, then we need to provide default
18438# value.  By we need to know if files were specified by the user.
18439ac_need_defaults=:
18440while test $# != 0
18441do
18442  case $1 in
18443  --*=*)
18444    ac_option=`expr "x$1" : 'x\([^=]*\)='`
18445    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18446    shift
18447    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18448    shift
18449    ;;
18450  -*);;
18451  *) # This is not an option, so the user has probably given explicit
18452     # arguments.
18453     ac_need_defaults=false;;
18454  esac
18455
18456  case $1 in
18457  # Handling of the options.
18458_ACEOF
18459cat >>$CONFIG_STATUS <<_ACEOF
18460  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18461    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18462    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18463_ACEOF
18464cat >>$CONFIG_STATUS <<\_ACEOF
18465  --version | --vers* | -V )
18466    echo "$ac_cs_version"; exit 0 ;;
18467  --he | --h)
18468    # Conflict between --help and --header
18469    { { echo "$as_me:$LINENO: error: ambiguous option: $1
18470Try \`$0 --help' for more information." >&5
18471echo "$as_me: error: ambiguous option: $1
18472Try \`$0 --help' for more information." >&2;}
18473   { (exit 1); exit 1; }; };;
18474  --help | --hel | -h )
18475    echo "$ac_cs_usage"; exit 0 ;;
18476  --debug | --d* | -d )
18477    debug=: ;;
18478  --file | --fil | --fi | --f )
18479    shift
18480    CONFIG_FILES="$CONFIG_FILES $1"
18481    ac_need_defaults=false;;
18482  --header | --heade | --head | --hea )
18483    shift
18484    CONFIG_HEADERS="$CONFIG_HEADERS $1"
18485    ac_need_defaults=false;;
18486
18487  # This is an error.
18488  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18489Try \`$0 --help' for more information." >&5
18490echo "$as_me: error: unrecognized option: $1
18491Try \`$0 --help' for more information." >&2;}
18492   { (exit 1); exit 1; }; } ;;
18493
18494  *) ac_config_targets="$ac_config_targets $1" ;;
18495
18496  esac
18497  shift
18498done
18499
18500_ACEOF
18501
18502cat >>$CONFIG_STATUS <<_ACEOF
18503#
18504# INIT-COMMANDS section.
18505#
18506
18507AMDEP_TRUE="$AMDEP_TRUE"
18508ac_aux_dir="$ac_aux_dir"
18509
18510_ACEOF
18511
18512
18513
18514cat >>$CONFIG_STATUS <<\_ACEOF
18515for ac_config_target in $ac_config_targets
18516do
18517  case "$ac_config_target" in
18518  # Handling of arguments.
18519  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18520  "ElectricFence/Makefile" ) CONFIG_FILES="$CONFIG_FILES ElectricFence/Makefile" ;;
18521  "adjtimed/Makefile" ) CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
18522  "clockstuff/Makefile" ) CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
18523  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18524  "kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
18525  "kernel/sys/Makefile" ) CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
18526  "libntp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
18527  "libparse/Makefile" ) CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
18528  "librsaref/Makefile" ) CONFIG_FILES="$CONFIG_FILES librsaref/Makefile" ;;
18529  "ntpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
18530  "ntpdate/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
18531  "ntpdc/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
18532  "ntpq/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
18533  "ntptrace/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntptrace/Makefile" ;;
18534  "parseutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
18535  "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18536  "scripts/calc_tickadj" ) CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj" ;;
18537  "scripts/checktime" ) CONFIG_FILES="$CONFIG_FILES scripts/checktime" ;;
18538  "scripts/freq_adj" ) CONFIG_FILES="$CONFIG_FILES scripts/freq_adj" ;;
18539  "scripts/mkver" ) CONFIG_FILES="$CONFIG_FILES scripts/mkver" ;;
18540  "scripts/ntp-wait" ) CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait" ;;
18541  "scripts/ntpsweep" ) CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep" ;;
18542  "scripts/ntpver" ) CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
18543  "scripts/plot_summary" ) CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
18544  "scripts/summary" ) CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
18545  "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
18546  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18547  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18548  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18549  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18550echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18551   { (exit 1); exit 1; }; };;
18552  esac
18553done
18554
18555# If the user did not use the arguments to specify the items to instantiate,
18556# then the envvar interface is used.  Set only those that are not.
18557# We use the long form for the default assignment because of an extremely
18558# bizarre bug on SunOS 4.1.3.
18559if $ac_need_defaults; then
18560  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18561  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18562  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18563fi
18564
18565# Create a temporary directory, and hook for its removal unless debugging.
18566$debug ||
18567{
18568  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18569  trap '{ (exit 1); exit 1; }' 1 2 13 15
18570}
18571
18572# Create a (secure) tmp directory for tmp files.
18573: ${TMPDIR=/tmp}
18574{
18575  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18576  test -n "$tmp" && test -d "$tmp"
18577}  ||
18578{
18579  tmp=$TMPDIR/cs$$-$RANDOM
18580  (umask 077 && mkdir $tmp)
18581} ||
18582{
18583   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18584   { (exit 1); exit 1; }
18585}
18586
18587_ACEOF
18588
18589cat >>$CONFIG_STATUS <<_ACEOF
18590
18591#
18592# CONFIG_FILES section.
18593#
18594
18595# No need to generate the scripts if there are no CONFIG_FILES.
18596# This happens for instance when ./config.status config.h
18597if test -n "\$CONFIG_FILES"; then
18598  # Protect against being on the right side of a sed subst in config.status.
18599  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18600   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18601s,@SHELL@,$SHELL,;t t
18602s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18603s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18604s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18605s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18606s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18607s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18608s,@exec_prefix@,$exec_prefix,;t t
18609s,@prefix@,$prefix,;t t
18610s,@program_transform_name@,$program_transform_name,;t t
18611s,@bindir@,$bindir,;t t
18612s,@sbindir@,$sbindir,;t t
18613s,@libexecdir@,$libexecdir,;t t
18614s,@datadir@,$datadir,;t t
18615s,@sysconfdir@,$sysconfdir,;t t
18616s,@sharedstatedir@,$sharedstatedir,;t t
18617s,@localstatedir@,$localstatedir,;t t
18618s,@libdir@,$libdir,;t t
18619s,@includedir@,$includedir,;t t
18620s,@oldincludedir@,$oldincludedir,;t t
18621s,@infodir@,$infodir,;t t
18622s,@mandir@,$mandir,;t t
18623s,@build_alias@,$build_alias,;t t
18624s,@host_alias@,$host_alias,;t t
18625s,@target_alias@,$target_alias,;t t
18626s,@DEFS@,$DEFS,;t t
18627s,@ECHO_C@,$ECHO_C,;t t
18628s,@ECHO_N@,$ECHO_N,;t t
18629s,@ECHO_T@,$ECHO_T,;t t
18630s,@LIBS@,$LIBS,;t t
18631s,@build@,$build,;t t
18632s,@build_cpu@,$build_cpu,;t t
18633s,@build_vendor@,$build_vendor,;t t
18634s,@build_os@,$build_os,;t t
18635s,@host@,$host,;t t
18636s,@host_cpu@,$host_cpu,;t t
18637s,@host_vendor@,$host_vendor,;t t
18638s,@host_os@,$host_os,;t t
18639s,@target@,$target,;t t
18640s,@target_cpu@,$target_cpu,;t t
18641s,@target_vendor@,$target_vendor,;t t
18642s,@target_os@,$target_os,;t t
18643s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18644s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18645s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18646s,@PACKAGE@,$PACKAGE,;t t
18647s,@VERSION@,$VERSION,;t t
18648s,@EXEEXT@,$EXEEXT,;t t
18649s,@OBJEXT@,$OBJEXT,;t t
18650s,@ACLOCAL@,$ACLOCAL,;t t
18651s,@AUTOCONF@,$AUTOCONF,;t t
18652s,@AUTOMAKE@,$AUTOMAKE,;t t
18653s,@AUTOHEADER@,$AUTOHEADER,;t t
18654s,@MAKEINFO@,$MAKEINFO,;t t
18655s,@AMTAR@,$AMTAR,;t t
18656s,@install_sh@,$install_sh,;t t
18657s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
18658s,@AWK@,$AWK,;t t
18659s,@SET_MAKE@,$SET_MAKE,;t t
18660s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
18661s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
18662s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18663s,@DEPDIR@,$DEPDIR,;t t
18664s,@CC@,$CC,;t t
18665s,@CFLAGS@,$CFLAGS,;t t
18666s,@LDFLAGS@,$LDFLAGS,;t t
18667s,@CPPFLAGS@,$CPPFLAGS,;t t
18668s,@ac_ct_CC@,$ac_ct_CC,;t t
18669s,@am__include@,$am__include,;t t
18670s,@am__quote@,$am__quote,;t t
18671s,@CCDEPMODE@,$CCDEPMODE,;t t
18672s,@CPP@,$CPP,;t t
18673s,@LN_S@,$LN_S,;t t
18674s,@RANLIB@,$RANLIB,;t t
18675s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18676s,@PATH_SH@,$PATH_SH,;t t
18677s,@PATH_PERL@,$PATH_PERL,;t t
18678s,@U@,$U,;t t
18679s,@ANSI2KNR@,$ANSI2KNR,;t t
18680s,@LIBOBJS@,$LIBOBJS,;t t
18681s,@LIBPARSE@,$LIBPARSE,;t t
18682s,@MAKE_LIBPARSE@,$MAKE_LIBPARSE,;t t
18683s,@MAKE_LIBPARSE_KERNEL@,$MAKE_LIBPARSE_KERNEL,;t t
18684s,@MAKE_CHECK_Y2K@,$MAKE_CHECK_Y2K,;t t
18685s,@RSAOBJS@,$RSAOBJS,;t t
18686s,@RSASRCS@,$RSASRCS,;t t
18687s,@RSADIR@,$RSADIR,;t t
18688s,@RSAREF@,$RSAREF,;t t
18689s,@LIBRSAREF@,$LIBRSAREF,;t t
18690s,@MAKE_LIBRSAREF@,$MAKE_LIBRSAREF,;t t
18691s,@OPENSSL@,$OPENSSL,;t t
18692s,@OPENSSL_INC@,$OPENSSL_INC,;t t
18693s,@OPENSSL_LIB@,$OPENSSL_LIB,;t t
18694s,@MAKE_NTP_GENKEYS@,$MAKE_NTP_GENKEYS,;t t
18695s,@isRSAREF_TRUE@,$isRSAREF_TRUE,;t t
18696s,@isRSAREF_FALSE@,$isRSAREF_FALSE,;t t
18697s,@isRSAEURO_TRUE@,$isRSAEURO_TRUE,;t t
18698s,@isRSAEURO_FALSE@,$isRSAEURO_FALSE,;t t
18699s,@AUTOKEY@,$AUTOKEY,;t t
18700s,@EF_PROGS@,$EF_PROGS,;t t
18701s,@EF_LIBS@,$EF_LIBS,;t t
18702s,@TESTDCF@,$TESTDCF,;t t
18703s,@DCFD@,$DCFD,;t t
18704s,@MAKE_PARSEKMODULE@,$MAKE_PARSEKMODULE,;t t
18705s,@PROPDELAY@,$PROPDELAY,;t t
18706s,@CHUTEST@,$CHUTEST,;t t
18707s,@CLKTEST@,$CLKTEST,;t t
18708s,@MAKE_ADJTIMED@,$MAKE_ADJTIMED,;t t
18709s,@MAKE_NTPTIME@,$MAKE_NTPTIME,;t t
18710s,@MAKE_TICKADJ@,$MAKE_TICKADJ,;t t
18711s,@MAKE_TIMETRIM@,$MAKE_TIMETRIM,;t t
18712CEOF
18713
18714_ACEOF
18715
18716  cat >>$CONFIG_STATUS <<\_ACEOF
18717  # Split the substitutions into bite-sized pieces for seds with
18718  # small command number limits, like on Digital OSF/1 and HP-UX.
18719  ac_max_sed_lines=48
18720  ac_sed_frag=1 # Number of current file.
18721  ac_beg=1 # First line for current file.
18722  ac_end=$ac_max_sed_lines # Line after last line for current file.
18723  ac_more_lines=:
18724  ac_sed_cmds=
18725  while $ac_more_lines; do
18726    if test $ac_beg -gt 1; then
18727      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18728    else
18729      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18730    fi
18731    if test ! -s $tmp/subs.frag; then
18732      ac_more_lines=false
18733    else
18734      # The purpose of the label and of the branching condition is to
18735      # speed up the sed processing (if there are no `@' at all, there
18736      # is no need to browse any of the substitutions).
18737      # These are the two extra sed commands mentioned above.
18738      (echo ':t
18739  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18740      if test -z "$ac_sed_cmds"; then
18741  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18742      else
18743  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18744      fi
18745      ac_sed_frag=`expr $ac_sed_frag + 1`
18746      ac_beg=$ac_end
18747      ac_end=`expr $ac_end + $ac_max_sed_lines`
18748    fi
18749  done
18750  if test -z "$ac_sed_cmds"; then
18751    ac_sed_cmds=cat
18752  fi
18753fi # test -n "$CONFIG_FILES"
18754
18755_ACEOF
18756cat >>$CONFIG_STATUS <<\_ACEOF
18757for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18758  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18759  case $ac_file in
18760  - | *:- | *:-:* ) # input from stdin
18761        cat >$tmp/stdin
18762        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18763        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18764  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18765        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18766  * )   ac_file_in=$ac_file.in ;;
18767  esac
18768
18769  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18770  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18771$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18772         X"$ac_file" : 'X\(//\)[^/]' \| \
18773         X"$ac_file" : 'X\(//\)$' \| \
18774         X"$ac_file" : 'X\(/\)' \| \
18775         .     : '\(.\)' 2>/dev/null ||
18776echo X"$ac_file" |
18777    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18778  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18779  	  /^X\(\/\/\)$/{ s//\1/; q; }
18780  	  /^X\(\/\).*/{ s//\1/; q; }
18781  	  s/.*/./; q'`
18782  { case "$ac_dir" in
18783  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18784  *)                      as_incr_dir=.;;
18785esac
18786as_dummy="$ac_dir"
18787for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18788  case $as_mkdir_dir in
18789    # Skip DOS drivespec
18790    ?:) as_incr_dir=$as_mkdir_dir ;;
18791    *)
18792      as_incr_dir=$as_incr_dir/$as_mkdir_dir
18793      test -d "$as_incr_dir" ||
18794        mkdir "$as_incr_dir" ||
18795	{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18796echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18797   { (exit 1); exit 1; }; }
18798    ;;
18799  esac
18800done; }
18801
18802  ac_builddir=.
18803
18804if test "$ac_dir" != .; then
18805  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18806  # A "../" for each directory in $ac_dir_suffix.
18807  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18808else
18809  ac_dir_suffix= ac_top_builddir=
18810fi
18811
18812case $srcdir in
18813  .)  # No --srcdir option.  We are building in place.
18814    ac_srcdir=.
18815    if test -z "$ac_top_builddir"; then
18816       ac_top_srcdir=.
18817    else
18818       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18819    fi ;;
18820  [\\/]* | ?:[\\/]* )  # Absolute path.
18821    ac_srcdir=$srcdir$ac_dir_suffix;
18822    ac_top_srcdir=$srcdir ;;
18823  *) # Relative path.
18824    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18825    ac_top_srcdir=$ac_top_builddir$srcdir ;;
18826esac
18827# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18828# absolute.
18829ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18830ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18831ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18832ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18833
18834
18835  case $INSTALL in
18836  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18837  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18838  esac
18839
18840  if test x"$ac_file" != x-; then
18841    { echo "$as_me:$LINENO: creating $ac_file" >&5
18842echo "$as_me: creating $ac_file" >&6;}
18843    rm -f "$ac_file"
18844  fi
18845  # Let's still pretend it is `configure' which instantiates (i.e., don't
18846  # use $as_me), people would be surprised to read:
18847  #    /* config.h.  Generated by config.status.  */
18848  if test x"$ac_file" = x-; then
18849    configure_input=
18850  else
18851    configure_input="$ac_file.  "
18852  fi
18853  configure_input=$configure_input"Generated from `echo $ac_file_in |
18854                                     sed 's,.*/,,'` by configure."
18855
18856  # First look for the input files in the build tree, otherwise in the
18857  # src tree.
18858  ac_file_inputs=`IFS=:
18859    for f in $ac_file_in; do
18860      case $f in
18861      -) echo $tmp/stdin ;;
18862      [\\/$]*)
18863         # Absolute (can't be DOS-style, as IFS=:)
18864         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18865echo "$as_me: error: cannot find input file: $f" >&2;}
18866   { (exit 1); exit 1; }; }
18867         echo $f;;
18868      *) # Relative
18869         if test -f "$f"; then
18870           # Build tree
18871           echo $f
18872         elif test -f "$srcdir/$f"; then
18873           # Source tree
18874           echo $srcdir/$f
18875         else
18876           # /dev/null tree
18877           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18878echo "$as_me: error: cannot find input file: $f" >&2;}
18879   { (exit 1); exit 1; }; }
18880         fi;;
18881      esac
18882    done` || { (exit 1); exit 1; }
18883_ACEOF
18884cat >>$CONFIG_STATUS <<_ACEOF
18885  sed "$ac_vpsub
18886$extrasub
18887_ACEOF
18888cat >>$CONFIG_STATUS <<\_ACEOF
18889:t
18890/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18891s,@configure_input@,$configure_input,;t t
18892s,@srcdir@,$ac_srcdir,;t t
18893s,@abs_srcdir@,$ac_abs_srcdir,;t t
18894s,@top_srcdir@,$ac_top_srcdir,;t t
18895s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18896s,@builddir@,$ac_builddir,;t t
18897s,@abs_builddir@,$ac_abs_builddir,;t t
18898s,@top_builddir@,$ac_top_builddir,;t t
18899s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18900s,@INSTALL@,$ac_INSTALL,;t t
18901" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18902  rm -f $tmp/stdin
18903  if test x"$ac_file" != x-; then
18904    mv $tmp/out $ac_file
18905  else
18906    cat $tmp/out
18907    rm -f $tmp/out
18908  fi
18909
18910done
18911_ACEOF
18912cat >>$CONFIG_STATUS <<\_ACEOF
18913
18914#
18915# CONFIG_HEADER section.
18916#
18917
18918# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18919# NAME is the cpp macro being defined and VALUE is the value it is being given.
18920#
18921# ac_d sets the value in "#define NAME VALUE" lines.
18922ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
18923ac_dB='[ 	].*$,\1#\2'
18924ac_dC=' '
18925ac_dD=',;t'
18926# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18927ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
18928ac_uB='$,\1#\2define\3'
18929ac_uC=' '
18930ac_uD=',;t'
18931
18932for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18933  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18934  case $ac_file in
18935  - | *:- | *:-:* ) # input from stdin
18936        cat >$tmp/stdin
18937        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18938        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18939  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18940        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18941  * )   ac_file_in=$ac_file.in ;;
18942  esac
18943
18944  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18945echo "$as_me: creating $ac_file" >&6;}
18946
18947  # First look for the input files in the build tree, otherwise in the
18948  # src tree.
18949  ac_file_inputs=`IFS=:
18950    for f in $ac_file_in; do
18951      case $f in
18952      -) echo $tmp/stdin ;;
18953      [\\/$]*)
18954         # Absolute (can't be DOS-style, as IFS=:)
18955         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18956echo "$as_me: error: cannot find input file: $f" >&2;}
18957   { (exit 1); exit 1; }; }
18958         echo $f;;
18959      *) # Relative
18960         if test -f "$f"; then
18961           # Build tree
18962           echo $f
18963         elif test -f "$srcdir/$f"; then
18964           # Source tree
18965           echo $srcdir/$f
18966         else
18967           # /dev/null tree
18968           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18969echo "$as_me: error: cannot find input file: $f" >&2;}
18970   { (exit 1); exit 1; }; }
18971         fi;;
18972      esac
18973    done` || { (exit 1); exit 1; }
18974  # Remove the trailing spaces.
18975  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
18976
18977_ACEOF
18978
18979# Transform confdefs.h into two sed scripts, `conftest.defines' and
18980# `conftest.undefs', that substitutes the proper values into
18981# config.h.in to produce config.h.  The first handles `#define'
18982# templates, and the second `#undef' templates.
18983# And first: Protect against being on the right side of a sed subst in
18984# config.status.  Protect against being in an unquoted here document
18985# in config.status.
18986rm -f conftest.defines conftest.undefs
18987# Using a here document instead of a string reduces the quoting nightmare.
18988# Putting comments in sed scripts is not portable.
18989#
18990# `end' is used to avoid that the second main sed command (meant for
18991# 0-ary CPP macros) applies to n-ary macro definitions.
18992# See the Autoconf documentation for `clear'.
18993cat >confdef2sed.sed <<\_ACEOF
18994s/[\\&,]/\\&/g
18995s,[\\$`],\\&,g
18996t clear
18997: clear
18998s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18999t end
19000s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19001: end
19002_ACEOF
19003# If some macros were called several times there might be several times
19004# the same #defines, which is useless.  Nevertheless, we may not want to
19005# sort them, since we want the *last* AC-DEFINE to be honored.
19006uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19007sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19008rm -f confdef2sed.sed
19009
19010# This sed command replaces #undef with comments.  This is necessary, for
19011# example, in the case of _POSIX_SOURCE, which is predefined and required
19012# on some systems where configure will not decide to define it.
19013cat >>conftest.undefs <<\_ACEOF
19014s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19015_ACEOF
19016
19017# Break up conftest.defines because some shells have a limit on the size
19018# of here documents, and old seds have small limits too (100 cmds).
19019echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19020echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19021echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19022echo '  :' >>$CONFIG_STATUS
19023rm -f conftest.tail
19024while grep . conftest.defines >/dev/null
19025do
19026  # Write a limited-size here document to $tmp/defines.sed.
19027  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19028  # Speed up: don't consider the non `#define' lines.
19029  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
19030  # Work around the forget-to-reset-the-flag bug.
19031  echo 't clr' >>$CONFIG_STATUS
19032  echo ': clr' >>$CONFIG_STATUS
19033  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19034  echo 'CEOF
19035  sed -f $tmp/defines.sed $tmp/in >$tmp/out
19036  rm -f $tmp/in
19037  mv $tmp/out $tmp/in
19038' >>$CONFIG_STATUS
19039  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19040  rm -f conftest.defines
19041  mv conftest.tail conftest.defines
19042done
19043rm -f conftest.defines
19044echo '  fi # egrep' >>$CONFIG_STATUS
19045echo >>$CONFIG_STATUS
19046
19047# Break up conftest.undefs because some shells have a limit on the size
19048# of here documents, and old seds have small limits too (100 cmds).
19049echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19050rm -f conftest.tail
19051while grep . conftest.undefs >/dev/null
19052do
19053  # Write a limited-size here document to $tmp/undefs.sed.
19054  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19055  # Speed up: don't consider the non `#undef'
19056  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
19057  # Work around the forget-to-reset-the-flag bug.
19058  echo 't clr' >>$CONFIG_STATUS
19059  echo ': clr' >>$CONFIG_STATUS
19060  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19061  echo 'CEOF
19062  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19063  rm -f $tmp/in
19064  mv $tmp/out $tmp/in
19065' >>$CONFIG_STATUS
19066  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19067  rm -f conftest.undefs
19068  mv conftest.tail conftest.undefs
19069done
19070rm -f conftest.undefs
19071
19072cat >>$CONFIG_STATUS <<\_ACEOF
19073  # Let's still pretend it is `configure' which instantiates (i.e., don't
19074  # use $as_me), people would be surprised to read:
19075  #    /* config.h.  Generated by config.status.  */
19076  if test x"$ac_file" = x-; then
19077    echo "/* Generated by configure.  */" >$tmp/config.h
19078  else
19079    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19080  fi
19081  cat $tmp/in >>$tmp/config.h
19082  rm -f $tmp/in
19083  if test x"$ac_file" != x-; then
19084    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
19085      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19086echo "$as_me: $ac_file is unchanged" >&6;}
19087    else
19088      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19089$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19090         X"$ac_file" : 'X\(//\)[^/]' \| \
19091         X"$ac_file" : 'X\(//\)$' \| \
19092         X"$ac_file" : 'X\(/\)' \| \
19093         .     : '\(.\)' 2>/dev/null ||
19094echo X"$ac_file" |
19095    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19096  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19097  	  /^X\(\/\/\)$/{ s//\1/; q; }
19098  	  /^X\(\/\).*/{ s//\1/; q; }
19099  	  s/.*/./; q'`
19100      { case "$ac_dir" in
19101  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19102  *)                      as_incr_dir=.;;
19103esac
19104as_dummy="$ac_dir"
19105for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19106  case $as_mkdir_dir in
19107    # Skip DOS drivespec
19108    ?:) as_incr_dir=$as_mkdir_dir ;;
19109    *)
19110      as_incr_dir=$as_incr_dir/$as_mkdir_dir
19111      test -d "$as_incr_dir" ||
19112        mkdir "$as_incr_dir" ||
19113	{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
19114echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
19115   { (exit 1); exit 1; }; }
19116    ;;
19117  esac
19118done; }
19119
19120      rm -f $ac_file
19121      mv $tmp/config.h $ac_file
19122    fi
19123  else
19124    cat $tmp/config.h
19125    rm -f $tmp/config.h
19126  fi
19127  # Run the commands associated with the file.
19128  case $ac_file in
19129    config.h ) # update the timestamp
19130echo timestamp >"./stamp-h1"
19131 ;;
19132  esac
19133done
19134_ACEOF
19135cat >>$CONFIG_STATUS <<\_ACEOF
19136
19137#
19138# CONFIG_COMMANDS section.
19139#
19140for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19141  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19142  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19143  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19144$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19145         X"$ac_dest" : 'X\(//\)[^/]' \| \
19146         X"$ac_dest" : 'X\(//\)$' \| \
19147         X"$ac_dest" : 'X\(/\)' \| \
19148         .     : '\(.\)' 2>/dev/null ||
19149echo X"$ac_dest" |
19150    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19151  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19152  	  /^X\(\/\/\)$/{ s//\1/; q; }
19153  	  /^X\(\/\).*/{ s//\1/; q; }
19154  	  s/.*/./; q'`
19155  ac_builddir=.
19156
19157if test "$ac_dir" != .; then
19158  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19159  # A "../" for each directory in $ac_dir_suffix.
19160  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19161else
19162  ac_dir_suffix= ac_top_builddir=
19163fi
19164
19165case $srcdir in
19166  .)  # No --srcdir option.  We are building in place.
19167    ac_srcdir=.
19168    if test -z "$ac_top_builddir"; then
19169       ac_top_srcdir=.
19170    else
19171       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19172    fi ;;
19173  [\\/]* | ?:[\\/]* )  # Absolute path.
19174    ac_srcdir=$srcdir$ac_dir_suffix;
19175    ac_top_srcdir=$srcdir ;;
19176  *) # Relative path.
19177    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19178    ac_top_srcdir=$ac_top_builddir$srcdir ;;
19179esac
19180# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19181# absolute.
19182ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19183ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
19184ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19185ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19186
19187
19188  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19189echo "$as_me: executing $ac_dest commands" >&6;}
19190  case $ac_dest in
19191    default-1 )
19192test x"$AMDEP_TRUE" != x"" ||
19193for mf in $CONFIG_FILES; do
19194  case "$mf" in
19195  Makefile) dirpart=.;;
19196  */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
19197  *) continue;;
19198  esac
19199  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
19200  # Extract the definition of DEP_FILES from the Makefile without
19201  # running `make'.
19202  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
19203  test -z "$DEPDIR" && continue
19204  # When using ansi2knr, U may be empty or an underscore; expand it
19205  U=`sed -n -e '/^U = / s///p' < "$mf"`
19206  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
19207  # We invoke sed twice because it is the simplest approach to
19208  # changing $(DEPDIR) to its actual value in the expansion.
19209  for file in `sed -n -e '
19210    /^DEP_FILES = .*\\\\$/ {
19211      s/^DEP_FILES = //
19212      :loop
19213	s/\\\\$//
19214	p
19215	n
19216	/\\\\$/ b loop
19217      p
19218    }
19219    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
19220       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19221    # Make sure the directory exists.
19222    test -f "$dirpart/$file" && continue
19223    fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
19224    $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
19225    # echo "creating $dirpart/$file"
19226    echo '# dummy' > "$dirpart/$file"
19227  done
19228done
19229 ;;
19230    default ) chmod +x scripts/calc_tickadj scripts/checktime scripts/freq_adj scripts/mkver scripts/ntp-wait scripts/ntpsweep scripts/ntpver scripts/plot_summary scripts/summary ;;
19231  esac
19232done
19233_ACEOF
19234
19235cat >>$CONFIG_STATUS <<\_ACEOF
19236
19237{ (exit 0); exit 0; }
19238_ACEOF
19239chmod +x $CONFIG_STATUS
19240ac_clean_files=$ac_clean_files_save
19241
19242
19243# configure is writing to config.log, and then calls config.status.
19244# config.status does its own redirection, appending to config.log.
19245# Unfortunately, on DOS this fails, as config.log is still kept open
19246# by configure, so config.status won't be able to write to it; its
19247# output is simply discarded.  So we exec the FD to /dev/null,
19248# effectively closing config.log, so it can be properly (re)opened and
19249# appended to by config.status.  When coming back to configure, we
19250# need to make the FD available again.
19251if test "$no_create" != yes; then
19252  ac_cs_success=:
19253  exec 5>/dev/null
19254  $SHELL $CONFIG_STATUS || ac_cs_success=false
19255  exec 5>>config.log
19256  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19257  # would make configure fail if this is the last instruction.
19258  $ac_cs_success || { (exit 1); exit 1; }
19259fi
19260
19261