]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/ntp/configure
This commit was generated by cvs2svn to compensate for changes in r130561,
[FreeBSD/FreeBSD.git] / contrib / ntp / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.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
10 if expr a : '\(a\)' >/dev/null 2>&1; then
11   as_expr=expr
12 else
13   as_expr=false
14 fi
15
16
17 ## --------------------- ##
18 ## M4sh Initialization.  ##
19 ## --------------------- ##
20
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23   emulate sh
24   NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26   set -o posix
27 fi
28
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32   as_unset=unset
33 else
34   as_unset=false
35 fi
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.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66          X"$0" : 'X\(//\)$' \| \
67          X"$0" : 'X\(/\)$' \| \
68          .     : '\(.\)' 2>/dev/null ||
69 echo 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.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if 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
94 fi
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
107 for as_dir in $PATH
108 do
109   IFS=$as_save_IFS
110   test -z "$as_dir" && as_dir=.
111   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
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
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
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
147 done
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
182 case `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= ;;
187 esac
188
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190   as_expr=expr
191 else
192   as_expr=false
193 fi
194
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if 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
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207   as_ln_s=ln
208 else
209   as_ln_s='cp -p'
210 fi
211 rm -f conf$$ conf$$.exe conf$$.file
212
213 as_executable_p="test -f"
214
215 # Sed expression to map a string onto a valid CPP name.
216 as_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.
219 as_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.
224 as_nl='
225 '
226 IFS="   $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.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237 exec 6>&1
238
239 #
240 # Initializations.
241 #
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${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.
255 PACKAGE_NAME=
256 PACKAGE_TARNAME=
257 PACKAGE_VERSION=
258 PACKAGE_STRING=
259 PACKAGE_BUGREPORT=
260
261 ac_unique_file="ntpd/ntp_refclock.c"
262 # Factoring default headers for most tests.
263 ac_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.
301 ac_init_help=
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
305 cache_file=/dev/null
306 exec_prefix=NONE
307 no_create=
308 no_recursion=
309 prefix=NONE
310 program_prefix=NONE
311 program_suffix=NONE
312 program_transform_name=s,x,x,
313 silent=
314 site=
315 srcdir=
316 verbose=
317 x_includes=NONE
318 x_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.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
337
338 ac_prev=
339 for ac_option
340 do
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
612 Try \`$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
635 done
636
637 if 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; }; }
641 fi
642
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
645 do
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
652 done
653
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656               localstatedir libdir includedir oldincludedir infodir mandir
657 do
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
664 done
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.
669 build=$build_alias
670 host=$host_alias
671 target=$target_alias
672
673 # FIXME: To remove some day.
674 if 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
682 fi
683
684 ac_tool_prefix=
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687 test "$silent" = yes && exec 6>/dev/null
688
689
690 # Find the source files, if location was not specified.
691 if 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 ||
700 echo 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
710 else
711   ac_srcdir_defaulted=no
712 fi
713 if 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
721 fi
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
736 ac_env_CC_value=$CC
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
755
756 #
757 # Report the --help message.
758 #
759 if 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
765 Usage: $0 [OPTION]... [VAR=VALUE]...
766
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE.  See below for descriptions of some of the useful variables.
769
770 Defaults for the options are specified in brackets.
771
772 Configuration:
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
786 Installation 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
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
796
797 For better control, use the options below.
798
799 Fine 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
816 Program 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
821 System 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
826 fi
827
828 if test -n "$ac_init_help"; then
829
830   cat <<\_ACEOF
831
832 Optional 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
907 Optional 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
915 Some 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
924 Use these variables to override the choices made by `configure' or to help
925 it to find libraries and programs with nonstandard names/locations.
926
927 _ACEOF
928 fi
929
930 if 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
937 if 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'`
941 else
942   ac_dir_suffix= ac_top_builddir=
943 fi
944
945 case $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 ;;
959 esac
960 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
961 # absolute.
962 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
963 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
964 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
965 ac_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
984 fi
985
986 test -n "$ac_init_help" && exit 0
987 if $ac_init_version; then
988   cat <<\_ACEOF
989
990 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
991 Free Software Foundation, Inc.
992 This configure script is free software; the Free Software Foundation
993 gives unlimited permission to copy, distribute and modify it.
994 _ACEOF
995   exit 0
996 fi
997 exec 5>config.log
998 cat >&5 <<_ACEOF
999 This file contains any messages produced by compilers while
1000 running configure, to aid debugging if configure makes a mistake.
1001
1002 It was created by $as_me, which was
1003 generated by GNU Autoconf 2.53.  Invocation command line was
1004
1005   $ $0 $@
1006
1007 _ACEOF
1008 {
1009 cat <<_ASUNAME
1010 ## --------- ##
1011 ## Platform. ##
1012 ## --------- ##
1013
1014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1018 uname -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`
1026 hostinfo               = `(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
1033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1034 for as_dir in $PATH
1035 do
1036   IFS=$as_save_IFS
1037   test -z "$as_dir" && as_dir=.
1038   echo "PATH: $as_dir"
1039 done
1040
1041 } >&5
1042
1043 cat >&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.
1056 ac_configure_args=
1057 ac_sep=
1058 for ac_arg
1059 do
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.
1075 done
1076
1077 # When interrupted or exit'd, cleanup temporary files, and complete
1078 # config.log.  We remove comments because anyway the quotes in there
1079 # would cause problems or look ugly.
1080 # WARNING: Be sure not to use single quotes in there, as some shells,
1081 # such as our DU 5.0 friend, will then `close' the trap.
1082 trap 'exit_status=$?
1083   # Save into config.log some information that might help in debugging.
1084   {
1085     echo
1086     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
1126 for ac_signal in 1 2 13 15; do
1127   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1128 done
1129 ac_signal=0
1130
1131 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1132 rm -rf conftest* confdefs.h
1133 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1134 echo >confdefs.h
1135
1136 # Predefined preprocessor variables.
1137
1138 cat >>confdefs.h <<_ACEOF
1139 #define PACKAGE_NAME "$PACKAGE_NAME"
1140 _ACEOF
1141
1142
1143 cat >>confdefs.h <<_ACEOF
1144 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1145 _ACEOF
1146
1147
1148 cat >>confdefs.h <<_ACEOF
1149 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1150 _ACEOF
1151
1152
1153 cat >>confdefs.h <<_ACEOF
1154 #define PACKAGE_STRING "$PACKAGE_STRING"
1155 _ACEOF
1156
1157
1158 cat >>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.
1165 if 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
1171 fi
1172 for 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
1175 echo "$as_me: loading site script $ac_site_file" >&6;}
1176     sed 's/^/| /' "$ac_site_file" >&5
1177     . "$ac_site_file"
1178   fi
1179 done
1180
1181 if 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
1186 echo "$as_me: loading cache $cache_file" >&6;}
1187     case $cache_file in
1188       [\\/]* | ?:[\\/]* ) . $cache_file;;
1189       *)                      . ./$cache_file;;
1190     esac
1191   fi
1192 else
1193   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1194 echo "$as_me: creating cache $cache_file" >&6;}
1195   >$cache_file
1196 fi
1197
1198 # Check that the precious variables saved in the cache have kept the same
1199 # value.
1200 ac_cache_corrupted=false
1201 for 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
1210 echo "$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
1214 echo "$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
1220 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1221         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1222 echo "$as_me:   former value:  $ac_old_val" >&2;}
1223         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1224 echo "$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
1240 done
1241 if $ac_cache_corrupted; then
1242   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1243 echo "$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
1245 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1246    { (exit 1); exit 1; }; }
1247 fi
1248
1249 ac_ext=c
1250 ac_cpp='$CPP $CPPFLAGS'
1251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1253 ac_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
1272 ac_aux_dir=
1273 for 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
1287 done
1288 if test -z "$ac_aux_dir"; then
1289   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1290 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1291    { (exit 1); exit 1; }; }
1292 fi
1293 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1294 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1295 ac_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
1300 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1301    { (exit 1); exit 1; }; }
1302
1303 echo "$as_me:$LINENO: checking build system type" >&5
1304 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1305 if test "${ac_cv_build+set}" = set; then
1306   echo $ECHO_N "(cached) $ECHO_C" >&6
1307 else
1308   ac_cv_build_alias=$build_alias
1309 test -z "$ac_cv_build_alias" &&
1310   ac_cv_build_alias=`$ac_config_guess`
1311 test -z "$ac_cv_build_alias" &&
1312   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1313 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1314    { (exit 1); exit 1; }; }
1315 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1316   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1317 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1318    { (exit 1); exit 1; }; }
1319
1320 fi
1321 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1322 echo "${ECHO_T}$ac_cv_build" >&6
1323 build=$ac_cv_build
1324 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1325 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1326 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1327
1328
1329 echo "$as_me:$LINENO: checking host system type" >&5
1330 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1331 if test "${ac_cv_host+set}" = set; then
1332   echo $ECHO_N "(cached) $ECHO_C" >&6
1333 else
1334   ac_cv_host_alias=$host_alias
1335 test -z "$ac_cv_host_alias" &&
1336   ac_cv_host_alias=$ac_cv_build_alias
1337 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1338   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1339 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1340    { (exit 1); exit 1; }; }
1341
1342 fi
1343 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1344 echo "${ECHO_T}$ac_cv_host" >&6
1345 host=$ac_cv_host
1346 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1347 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1348 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1349
1350
1351 echo "$as_me:$LINENO: checking target system type" >&5
1352 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1353 if test "${ac_cv_target+set}" = set; then
1354   echo $ECHO_N "(cached) $ECHO_C" >&6
1355 else
1356   ac_cv_target_alias=$target_alias
1357 test "x$ac_cv_target_alias" = "x" &&
1358   ac_cv_target_alias=$ac_cv_host_alias
1359 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1360   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1361 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1362    { (exit 1); exit 1; }; }
1363
1364 fi
1365 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1366 echo "${ECHO_T}$ac_cv_target" >&6
1367 target=$ac_cv_target
1368 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1369 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1370 target_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.
1375 test -n "$target_alias" &&
1376   test "$program_prefix$program_suffix$program_transform_name" = \
1377     NONENONEs,x,x, &&
1378   program_prefix=${target_alias}-
1379
1380 cat >>confdefs.h <<_ACEOF
1381 #define STR_SYSTEM "$host"
1382 _ACEOF
1383
1384
1385
1386
1387                                                     ac_config_headers="$ac_config_headers config.h"
1388
1389 test "$program_prefix" != NONE &&
1390   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1391 # Use a double $ so make ignores it.
1392 test "$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.
1396 cat <<\_ACEOF >conftest.sed
1397 s/[\\$]/&&/g;s/;s,x,x,$//
1398 _ACEOF
1399 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1400 rm 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.
1414 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1415 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1416 if test -z "$INSTALL"; then
1417 if test "${ac_cv_path_install+set}" = set; then
1418   echo $ECHO_N "(cached) $ECHO_C" >&6
1419 else
1420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1421 for as_dir in $PATH
1422 do
1423   IFS=$as_save_IFS
1424   test -z "$as_dir" && as_dir=.
1425   # Account for people who put trailing slashes in PATH elements.
1426 case $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     ;;
1453 esac
1454 done
1455
1456
1457 fi
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
1467 fi
1468 echo "$as_me:$LINENO: result: $INSTALL" >&5
1469 echo "${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.
1473 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1474
1475 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1476
1477 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1478
1479 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1480 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1481 # Just in case
1482 sleep 1
1483 echo 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).
1489 if (
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
1504 alias in your environment" >&5
1505 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1506 alias in your environment" >&2;}
1507    { (exit 1); exit 1; }; }
1508    fi
1509
1510    test "$2" = conftest.file
1511    )
1512 then
1513    # Ok.
1514    :
1515 else
1516    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1517 Check your system clock" >&5
1518 echo "$as_me: error: newly created file is older than distributed files!
1519 Check your system clock" >&2;}
1520    { (exit 1); exit 1; }; }
1521 fi
1522 echo "$as_me:$LINENO: result: yes" >&5
1523 echo "${ECHO_T}yes" >&6
1524
1525 # expand $ac_aux_dir to an absolute path
1526 am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
1527
1528 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1529 # Use eval to expand $SHELL
1530 if eval "$MISSING --run true"; then
1531   am_missing_run="$MISSING --run "
1532 else
1533   am_missing_run=
1534   am_backtick='`'
1535   { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1536 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1537 fi
1538
1539 for ac_prog in gawk mawk nawk awk
1540 do
1541   # Extract the first word of "$ac_prog", so it can be a program name with args.
1542 set dummy $ac_prog; ac_word=$2
1543 echo "$as_me:$LINENO: checking for $ac_word" >&5
1544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1545 if test "${ac_cv_prog_AWK+set}" = set; then
1546   echo $ECHO_N "(cached) $ECHO_C" >&6
1547 else
1548   if test -n "$AWK"; then
1549   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1550 else
1551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1552 for as_dir in $PATH
1553 do
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
1562 done
1563 done
1564
1565 fi
1566 fi
1567 AWK=$ac_cv_prog_AWK
1568 if test -n "$AWK"; then
1569   echo "$as_me:$LINENO: result: $AWK" >&5
1570 echo "${ECHO_T}$AWK" >&6
1571 else
1572   echo "$as_me:$LINENO: result: no" >&5
1573 echo "${ECHO_T}no" >&6
1574 fi
1575
1576   test -n "$AWK" && break
1577 done
1578
1579 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1580 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1581 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1582 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1583   echo $ECHO_N "(cached) $ECHO_C" >&6
1584 else
1585   cat >conftest.make <<\_ACEOF
1586 all:
1587         @echo 'ac_maketemp="${MAKE}"'
1588 _ACEOF
1589 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1590 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1591 if test -n "$ac_maketemp"; then
1592   eval ac_cv_prog_make_${ac_make}_set=yes
1593 else
1594   eval ac_cv_prog_make_${ac_make}_set=no
1595 fi
1596 rm -f conftest.make
1597 fi
1598 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1599   echo "$as_me:$LINENO: result: yes" >&5
1600 echo "${ECHO_T}yes" >&6
1601   SET_MAKE=
1602 else
1603   echo "$as_me:$LINENO: result: no" >&5
1604 echo "${ECHO_T}no" >&6
1605   SET_MAKE="MAKE=${MAKE-make}"
1606 fi
1607
1608 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1609 if test "${enable_dependency_tracking+set}" = set; then
1610   enableval="$enable_dependency_tracking"
1611
1612 fi;
1613 if test "x$enable_dependency_tracking" != xno; then
1614   am_depcomp="$ac_aux_dir/depcomp"
1615   AMDEPBACKSLASH='\'
1616 fi
1617
1618
1619 if test "x$enable_dependency_tracking" != xno; then
1620   AMDEP_TRUE=
1621   AMDEP_FALSE='#'
1622 else
1623   AMDEP_TRUE='#'
1624   AMDEP_FALSE=
1625 fi
1626
1627
1628
1629
1630 rm -f .deps 2>/dev/null
1631 mkdir .deps 2>/dev/null
1632 if test -d .deps; then
1633   DEPDIR=.deps
1634 else
1635   # MS-DOS does not allow filenames that begin with a dot.
1636   DEPDIR=_deps
1637 fi
1638 rmdir .deps 2>/dev/null
1639
1640
1641 # test to see if srcdir already configured
1642 if 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
1645 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1646    { (exit 1); exit 1; }; }
1647 fi
1648
1649 # Define the identity of the package.
1650 PACKAGE=ntp
1651 VERSION=4.1.1b
1652
1653 cat >>confdefs.h <<_ACEOF
1654 #define PACKAGE "$PACKAGE"
1655 _ACEOF
1656
1657
1658 cat >>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
1677 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1678
1679
1680 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1681
1682
1683 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1684
1685
1686 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1687
1688
1689 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1690
1691
1692 AMTAR=${AMTAR-"${am_missing_run}tar"}
1693
1694 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1695
1696 INSTALL_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
1703 ac_cv_var_atom_ok=no
1704 ac_cv_var_oncore_ok=no
1705 ac_cv_var_ripe_ncc_ok=no
1706
1707 iCFLAGS="$CFLAGS"
1708
1709 ac_ext=c
1710 ac_cpp='$CPP $CPPFLAGS'
1711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1714 if 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.
1716 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_CC+set}" = set; then
1720   echo $ECHO_N "(cached) $ECHO_C" >&6
1721 else
1722   if test -n "$CC"; then
1723   ac_cv_prog_CC="$CC" # Let the user override the test.
1724 else
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726 for as_dir in $PATH
1727 do
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
1736 done
1737 done
1738
1739 fi
1740 fi
1741 CC=$ac_cv_prog_CC
1742 if test -n "$CC"; then
1743   echo "$as_me:$LINENO: result: $CC" >&5
1744 echo "${ECHO_T}$CC" >&6
1745 else
1746   echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1748 fi
1749
1750 fi
1751 if 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.
1754 set dummy gcc; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1758   echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760   if test -n "$ac_ct_CC"; then
1761   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1762 else
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 for as_dir in $PATH
1765 do
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
1774 done
1775 done
1776
1777 fi
1778 fi
1779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1780 if test -n "$ac_ct_CC"; then
1781   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1782 echo "${ECHO_T}$ac_ct_CC" >&6
1783 else
1784   echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1786 fi
1787
1788   CC=$ac_ct_CC
1789 else
1790   CC="$ac_cv_prog_CC"
1791 fi
1792
1793 if 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.
1796 set dummy ${ac_tool_prefix}cc; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_CC+set}" = set; then
1800   echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802   if test -n "$CC"; then
1803   ac_cv_prog_CC="$CC" # Let the user override the test.
1804 else
1805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1806 for as_dir in $PATH
1807 do
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
1816 done
1817 done
1818
1819 fi
1820 fi
1821 CC=$ac_cv_prog_CC
1822 if test -n "$CC"; then
1823   echo "$as_me:$LINENO: result: $CC" >&5
1824 echo "${ECHO_T}$CC" >&6
1825 else
1826   echo "$as_me:$LINENO: result: no" >&5
1827 echo "${ECHO_T}no" >&6
1828 fi
1829
1830 fi
1831 if 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.
1834 set dummy cc; ac_word=$2
1835 echo "$as_me:$LINENO: checking for $ac_word" >&5
1836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1837 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1838   echo $ECHO_N "(cached) $ECHO_C" >&6
1839 else
1840   if test -n "$ac_ct_CC"; then
1841   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1842 else
1843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 for as_dir in $PATH
1845 do
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
1854 done
1855 done
1856
1857 fi
1858 fi
1859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1860 if test -n "$ac_ct_CC"; then
1861   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1862 echo "${ECHO_T}$ac_ct_CC" >&6
1863 else
1864   echo "$as_me:$LINENO: result: no" >&5
1865 echo "${ECHO_T}no" >&6
1866 fi
1867
1868   CC=$ac_ct_CC
1869 else
1870   CC="$ac_cv_prog_CC"
1871 fi
1872
1873 fi
1874 if test -z "$CC"; then
1875   # Extract the first word of "cc", so it can be a program name with args.
1876 set dummy cc; ac_word=$2
1877 echo "$as_me:$LINENO: checking for $ac_word" >&5
1878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1879 if test "${ac_cv_prog_CC+set}" = set; then
1880   echo $ECHO_N "(cached) $ECHO_C" >&6
1881 else
1882   if test -n "$CC"; then
1883   ac_cv_prog_CC="$CC" # Let the user override the test.
1884 else
1885   ac_prog_rejected=no
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 for as_dir in $PATH
1888 do
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
1901 done
1902 done
1903
1904 if 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
1917 fi
1918 fi
1919 fi
1920 CC=$ac_cv_prog_CC
1921 if test -n "$CC"; then
1922   echo "$as_me:$LINENO: result: $CC" >&5
1923 echo "${ECHO_T}$CC" >&6
1924 else
1925   echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6
1927 fi
1928
1929 fi
1930 if 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.
1935 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1936 echo "$as_me:$LINENO: checking for $ac_word" >&5
1937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1938 if test "${ac_cv_prog_CC+set}" = set; then
1939   echo $ECHO_N "(cached) $ECHO_C" >&6
1940 else
1941   if test -n "$CC"; then
1942   ac_cv_prog_CC="$CC" # Let the user override the test.
1943 else
1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945 for as_dir in $PATH
1946 do
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
1955 done
1956 done
1957
1958 fi
1959 fi
1960 CC=$ac_cv_prog_CC
1961 if test -n "$CC"; then
1962   echo "$as_me:$LINENO: result: $CC" >&5
1963 echo "${ECHO_T}$CC" >&6
1964 else
1965   echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6
1967 fi
1968
1969     test -n "$CC" && break
1970   done
1971 fi
1972 if test -z "$CC"; then
1973   ac_ct_CC=$CC
1974   for ac_prog in cl
1975 do
1976   # Extract the first word of "$ac_prog", so it can be a program name with args.
1977 set dummy $ac_prog; ac_word=$2
1978 echo "$as_me:$LINENO: checking for $ac_word" >&5
1979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1981   echo $ECHO_N "(cached) $ECHO_C" >&6
1982 else
1983   if test -n "$ac_ct_CC"; then
1984   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1985 else
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 for as_dir in $PATH
1988 do
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
1997 done
1998 done
1999
2000 fi
2001 fi
2002 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2003 if test -n "$ac_ct_CC"; then
2004   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2005 echo "${ECHO_T}$ac_ct_CC" >&6
2006 else
2007   echo "$as_me:$LINENO: result: no" >&5
2008 echo "${ECHO_T}no" >&6
2009 fi
2010
2011   test -n "$ac_ct_CC" && break
2012 done
2013
2014   CC=$ac_ct_CC
2015 fi
2016
2017 fi
2018
2019
2020 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2021 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2022    { (exit 1); exit 1; }; }
2023
2024 # Provide some information about the compiler.
2025 echo "$as_me:$LINENO:" \
2026      "checking for C compiler version" >&5
2027 ac_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
2044 cat >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
2054 int
2055 main ()
2056 {
2057
2058   ;
2059   return 0;
2060 }
2061 _ACEOF
2062 ac_clean_files_save=$ac_clean_files
2063 ac_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.
2067 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2068 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2069 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2070 if { (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.
2081 ac_cv_exeext=
2082 for 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
2096 done
2097 else
2098   echo "$as_me: failed program was:" >&5
2099 cat conftest.$ac_ext >&5
2100 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2101 echo "$as_me: error: C compiler cannot create executables" >&2;}
2102    { (exit 77); exit 77; }; }
2103 fi
2104
2105 ac_exeext=$ac_cv_exeext
2106 echo "$as_me:$LINENO: result: $ac_file" >&5
2107 echo "${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.
2111 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2112 echo $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.
2115 if 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.
2128 If you meant to cross compile, use \`--host'." >&5
2129 echo "$as_me: error: cannot run C compiled programs.
2130 If you meant to cross compile, use \`--host'." >&2;}
2131    { (exit 1); exit 1; }; }
2132     fi
2133   fi
2134 fi
2135 echo "$as_me:$LINENO: result: yes" >&5
2136 echo "${ECHO_T}yes" >&6
2137
2138 rm -f a.out a.exe conftest$ac_cv_exeext
2139 ac_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.
2142 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2143 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2144 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2145 echo "${ECHO_T}$cross_compiling" >&6
2146
2147 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2148 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2149 if { (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'.
2158 for 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
2166 done
2167 else
2168   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2169 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2170    { (exit 1); exit 1; }; }
2171 fi
2172
2173 rm -f conftest$ac_cv_exeext
2174 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2175 echo "${ECHO_T}$ac_cv_exeext" >&6
2176
2177 rm -f conftest.$ac_ext
2178 EXEEXT=$ac_cv_exeext
2179 ac_exeext=$EXEEXT
2180 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2181 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2182 if test "${ac_cv_objext+set}" = set; then
2183   echo $ECHO_N "(cached) $ECHO_C" >&6
2184 else
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
2195 int
2196 main ()
2197 {
2198
2199   ;
2200   return 0;
2201 }
2202 _ACEOF
2203 rm -f conftest.o conftest.obj
2204 if { (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
2215 done
2216 else
2217   echo "$as_me: failed program was:" >&5
2218 cat conftest.$ac_ext >&5
2219 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2220 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2221    { (exit 1); exit 1; }; }
2222 fi
2223
2224 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2225 fi
2226 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2227 echo "${ECHO_T}$ac_cv_objext" >&6
2228 OBJEXT=$ac_cv_objext
2229 ac_objext=$OBJEXT
2230 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2231 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2232 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2233   echo $ECHO_N "(cached) $ECHO_C" >&6
2234 else
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
2245 int
2246 main ()
2247 {
2248 #ifndef __GNUC__
2249        choke me
2250 #endif
2251
2252   ;
2253   return 0;
2254 }
2255 _ACEOF
2256 rm -f conftest.$ac_objext
2257 if { (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
2269 else
2270   echo "$as_me: failed program was:" >&5
2271 cat conftest.$ac_ext >&5
2272 ac_compiler_gnu=no
2273 fi
2274 rm -f conftest.$ac_objext conftest.$ac_ext
2275 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2276
2277 fi
2278 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2279 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2280 GCC=`test $ac_compiler_gnu = yes && echo yes`
2281 ac_test_CFLAGS=${CFLAGS+set}
2282 ac_save_CFLAGS=$CFLAGS
2283 CFLAGS="-g"
2284 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2285 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2286 if test "${ac_cv_prog_cc_g+set}" = set; then
2287   echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
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
2299 int
2300 main ()
2301 {
2302
2303   ;
2304   return 0;
2305 }
2306 _ACEOF
2307 rm -f conftest.$ac_objext
2308 if { (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
2320 else
2321   echo "$as_me: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2323 ac_cv_prog_cc_g=no
2324 fi
2325 rm -f conftest.$ac_objext conftest.$ac_ext
2326 fi
2327 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2328 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2329 if test "$ac_test_CFLAGS" = set; then
2330   CFLAGS=$ac_save_CFLAGS
2331 elif 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
2337 else
2338   if test "$GCC" = yes; then
2339     CFLAGS="-O2"
2340   else
2341     CFLAGS=
2342   fi
2343 fi
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.
2348 cat >conftest.$ac_ext <<_ACEOF
2349 #ifndef __cplusplus
2350   choke me
2351 #endif
2352 _ACEOF
2353 rm -f conftest.$ac_objext
2354 if { (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);'
2373 do
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
2385 int
2386 main ()
2387 {
2388 exit (42);
2389   ;
2390   return 0;
2391 }
2392 _ACEOF
2393 rm -f conftest.$ac_objext
2394 if { (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   :
2406 else
2407   echo "$as_me: failed program was:" >&5
2408 cat conftest.$ac_ext >&5
2409 continue
2410 fi
2411 rm -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
2422 int
2423 main ()
2424 {
2425 exit (42);
2426   ;
2427   return 0;
2428 }
2429 _ACEOF
2430 rm -f conftest.$ac_objext
2431 if { (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
2443 else
2444   echo "$as_me: failed program was:" >&5
2445 cat conftest.$ac_ext >&5
2446 fi
2447 rm -f conftest.$ac_objext conftest.$ac_ext
2448 done
2449 rm -f conftest*
2450 if test -n "$ac_declaration"; then
2451   echo '#ifdef __cplusplus' >>confdefs.h
2452   echo $ac_declaration      >>confdefs.h
2453   echo '#endif'             >>confdefs.h
2454 fi
2455
2456 else
2457   echo "$as_me: failed program was:" >&5
2458 cat conftest.$ac_ext >&5
2459 fi
2460 rm -f conftest.$ac_objext conftest.$ac_ext
2461 ac_ext=c
2462 ac_cpp='$CPP $CPPFLAGS'
2463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2466
2467 ac_config_commands="$ac_config_commands default-1"
2468
2469 am_make=${MAKE-make}
2470 cat > confinc << 'END'
2471 doit:
2472         @echo done
2473 END
2474 # If we don't find an include directive, just comment out the code.
2475 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2476 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2477 am__include='#'
2478 am__quote=
2479 _am_result=none
2480 # First try GNU make style include.
2481 echo "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'.
2487 if 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
2491 fi
2492 # Now try BSD make style include.
2493 if 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
2500 fi
2501
2502
2503 echo "$as_me:$LINENO: result: $_am_result" >&5
2504 echo "${ECHO_T}$_am_result" >&6
2505 rm -f confinc confmf
2506
2507
2508 depcc="$CC"   am_compiler_list=
2509
2510 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2511 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2512 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2513   echo $ECHO_N "(cached) $ECHO_C" >&6
2514 else
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
2567 else
2568   am_cv_CC_dependencies_compiler_type=none
2569 fi
2570
2571 fi
2572 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2573 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2574 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2575
2576
2577
2578 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2579 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2580 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2581   echo $ECHO_N "(cached) $ECHO_C" >&6
2582 else
2583   ac_cv_prog_cc_stdc=no
2584 ac_save_CC=$CC
2585 cat >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.  */
2593 struct buf { int x; };
2594 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2595 static char *e (p, i)
2596      char **p;
2597      int i;
2598 {
2599   return p[i];
2600 }
2601 static 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 }
2610 int test (int i, double x);
2611 struct s1 {int (*f) (int a);};
2612 struct s2 {int (*f) (double a);};
2613 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2614 int argc;
2615 char **argv;
2616 #ifdef F77_DUMMY_MAIN
2617 #  ifdef __cplusplus
2618      extern "C"
2619 #  endif
2620    int F77_DUMMY_MAIN() { return 1; }
2621 #endif
2622 int
2623 main ()
2624 {
2625 return 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__
2637 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2638 do
2639   CC="$ac_save_CC $ac_arg"
2640   rm -f conftest.$ac_objext
2641 if { (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
2653 break
2654 else
2655   echo "$as_me: failed program was:" >&5
2656 cat conftest.$ac_ext >&5
2657 fi
2658 rm -f conftest.$ac_objext
2659 done
2660 rm -f conftest.$ac_ext conftest.$ac_objext
2661 CC=$ac_save_CC
2662
2663 fi
2664
2665 case "x$ac_cv_prog_cc_stdc" in
2666   x|xno)
2667     echo "$as_me:$LINENO: result: none needed" >&5
2668 echo "${ECHO_T}none needed" >&6 ;;
2669   *)
2670     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2671 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2672     CC="$CC $ac_cv_prog_cc_stdc" ;;
2673 esac
2674
2675 ac_ext=c
2676 ac_cpp='$CPP $CPPFLAGS'
2677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2680 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2681 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2682 # On Suns, sometimes $CPP names a directory.
2683 if test -n "$CPP" && test -d "$CPP"; then
2684   CPP=
2685 fi
2686 if test -z "$CPP"; then
2687   if test "${ac_cv_prog_CPP+set}" = set; then
2688   echo $ECHO_N "(cached) $ECHO_C" >&6
2689 else
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
2694 for ac_c_preproc_warn_flag in '' yes
2695 do
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
2706 if { (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
2719 else
2720   ac_cpp_err=yes
2721 fi
2722 if test -z "$ac_cpp_err"; then
2723   :
2724 else
2725   echo "$as_me: failed program was:" >&5
2726   cat conftest.$ac_ext >&5
2727   # Broken: fails on valid input.
2728 continue
2729 fi
2730 rm -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
2739 if { (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
2752 else
2753   ac_cpp_err=yes
2754 fi
2755 if test -z "$ac_cpp_err"; then
2756   # Broken: success on invalid input.
2757 continue
2758 else
2759   echo "$as_me: failed program was:" >&5
2760   cat conftest.$ac_ext >&5
2761   # Passes both tests.
2762 ac_preproc_ok=:
2763 break
2764 fi
2765 rm -f conftest.err conftest.$ac_ext
2766
2767 done
2768 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2769 rm -f conftest.err conftest.$ac_ext
2770 if $ac_preproc_ok; then
2771   break
2772 fi
2773
2774     done
2775     ac_cv_prog_CPP=$CPP
2776
2777 fi
2778   CPP=$ac_cv_prog_CPP
2779 else
2780   ac_cv_prog_CPP=$CPP
2781 fi
2782 echo "$as_me:$LINENO: result: $CPP" >&5
2783 echo "${ECHO_T}$CPP" >&6
2784 ac_preproc_ok=false
2785 for ac_c_preproc_warn_flag in '' yes
2786 do
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
2797 if { (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
2810 else
2811   ac_cpp_err=yes
2812 fi
2813 if test -z "$ac_cpp_err"; then
2814   :
2815 else
2816   echo "$as_me: failed program was:" >&5
2817   cat conftest.$ac_ext >&5
2818   # Broken: fails on valid input.
2819 continue
2820 fi
2821 rm -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
2830 if { (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
2843 else
2844   ac_cpp_err=yes
2845 fi
2846 if test -z "$ac_cpp_err"; then
2847   # Broken: success on invalid input.
2848 continue
2849 else
2850   echo "$as_me: failed program was:" >&5
2851   cat conftest.$ac_ext >&5
2852   # Passes both tests.
2853 ac_preproc_ok=:
2854 break
2855 fi
2856 rm -f conftest.err conftest.$ac_ext
2857
2858 done
2859 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2860 rm -f conftest.err conftest.$ac_ext
2861 if $ac_preproc_ok; then
2862   :
2863 else
2864   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2865 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2866    { (exit 1); exit 1; }; }
2867 fi
2868
2869 ac_ext=c
2870 ac_cpp='$CPP $CPPFLAGS'
2871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2874
2875
2876 case "$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     ;;
2902 esac
2903
2904 case "$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
2912 echo "$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     ;;
2920 esac
2921
2922 for ac_prog in gawk mawk nawk awk
2923 do
2924   # Extract the first word of "$ac_prog", so it can be a program name with args.
2925 set dummy $ac_prog; ac_word=$2
2926 echo "$as_me:$LINENO: checking for $ac_word" >&5
2927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2928 if test "${ac_cv_prog_AWK+set}" = set; then
2929   echo $ECHO_N "(cached) $ECHO_C" >&6
2930 else
2931   if test -n "$AWK"; then
2932   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
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
2945 done
2946 done
2947
2948 fi
2949 fi
2950 AWK=$ac_cv_prog_AWK
2951 if test -n "$AWK"; then
2952   echo "$as_me:$LINENO: result: $AWK" >&5
2953 echo "${ECHO_T}$AWK" >&6
2954 else
2955   echo "$as_me:$LINENO: result: no" >&5
2956 echo "${ECHO_T}no" >&6
2957 fi
2958
2959   test -n "$AWK" && break
2960 done
2961
2962 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
2963 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2964 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2965 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2966   echo $ECHO_N "(cached) $ECHO_C" >&6
2967 else
2968   cat >conftest.make <<\_ACEOF
2969 all:
2970         @echo 'ac_maketemp="${MAKE}"'
2971 _ACEOF
2972 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2973 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2974 if test -n "$ac_maketemp"; then
2975   eval ac_cv_prog_make_${ac_make}_set=yes
2976 else
2977   eval ac_cv_prog_make_${ac_make}_set=no
2978 fi
2979 rm -f conftest.make
2980 fi
2981 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2982   echo "$as_me:$LINENO: result: yes" >&5
2983 echo "${ECHO_T}yes" >&6
2984   SET_MAKE=
2985 else
2986   echo "$as_me:$LINENO: result: no" >&5
2987 echo "${ECHO_T}no" >&6
2988   SET_MAKE="MAKE=${MAKE-make}"
2989 fi
2990
2991
2992 rm -f conftest*
2993
2994 case "$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
3009 echo $ECHO_N "checking whether ${CC-cc} -pipe works... $ECHO_C" >&6
3010 if test "${ac_cv_prog_cc_pipe+set}" = set; then
3011   echo $ECHO_N "(cached) $ECHO_C" >&6
3012 else
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
3021 fi
3022 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_pipe" >&5
3023 echo "${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     ;;
3031 esac
3032
3033 ac_busted_vpath_in_make=no
3034
3035 case "$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     ;;
3065 esac
3066
3067 case "$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
3073 echo "$as_me: error: building outside of the main directory requires GNU make" >&2;}
3074    { (exit 1); exit 1; }; }
3075         ;;
3076      *) ;;
3077     esac
3078     ;;
3079 esac
3080
3081
3082 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3083 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3084 LN_S=$as_ln_s
3085 if test "$LN_S" = "ln -s"; then
3086   echo "$as_me:$LINENO: result: yes" >&5
3087 echo "${ECHO_T}yes" >&6
3088 else
3089   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3090 echo "${ECHO_T}no, using $LN_S" >&6
3091 fi
3092
3093
3094 if test $ac_cv_c_compiler_gnu = yes; then
3095     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3096 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3097 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3098   echo $ECHO_N "(cached) $ECHO_C" >&6
3099 else
3100     ac_pattern="Autoconf.*'x'"
3101   cat >conftest.$ac_ext <<_ACEOF
3102 #line $LINENO "configure"
3103 #include "confdefs.h"
3104 #include <sgtty.h>
3105 Autoconf TIOCGETP
3106 _ACEOF
3107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3108   egrep "$ac_pattern" >/dev/null 2>&1; then
3109   ac_cv_prog_gcc_traditional=yes
3110 else
3111   ac_cv_prog_gcc_traditional=no
3112 fi
3113 rm -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>
3121 Autoconf TCGETA
3122 _ACEOF
3123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3124   egrep "$ac_pattern" >/dev/null 2>&1; then
3125   ac_cv_prog_gcc_traditional=yes
3126 fi
3127 rm -f conftest*
3128
3129   fi
3130 fi
3131 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3132 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3133   if test $ac_cv_prog_gcc_traditional = yes; then
3134     CC="$CC -traditional"
3135   fi
3136 fi
3137
3138
3139 echo "$as_me:$LINENO: checking for AIX" >&5
3140 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3141 cat >conftest.$ac_ext <<_ACEOF
3142 #line $LINENO "configure"
3143 #include "confdefs.h"
3144 #ifdef _AIX
3145   yes
3146 #endif
3147
3148 _ACEOF
3149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3150   egrep "yes" >/dev/null 2>&1; then
3151   echo "$as_me:$LINENO: result: yes" >&5
3152 echo "${ECHO_T}yes" >&6
3153 cat >>confdefs.h <<\_ACEOF
3154 #define _ALL_SOURCE 1
3155 _ACEOF
3156
3157 else
3158   echo "$as_me:$LINENO: result: no" >&5
3159 echo "${ECHO_T}no" >&6
3160 fi
3161 rm -f conftest*
3162
3163
3164 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3165 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3166 if test "${ac_cv_header_stdc+set}" = set; then
3167   echo $ECHO_N "(cached) $ECHO_C" >&6
3168 else
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
3178 if { (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
3191 else
3192   ac_cpp_err=yes
3193 fi
3194 if test -z "$ac_cpp_err"; then
3195   ac_cv_header_stdc=yes
3196 else
3197   echo "$as_me: failed program was:" >&5
3198   cat conftest.$ac_ext >&5
3199   ac_cv_header_stdc=no
3200 fi
3201 rm -f conftest.err conftest.$ac_ext
3202
3203 if 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
3211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3212   egrep "memchr" >/dev/null 2>&1; then
3213   :
3214 else
3215   ac_cv_header_stdc=no
3216 fi
3217 rm -f conftest*
3218
3219 fi
3220
3221 if 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
3229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3230   egrep "free" >/dev/null 2>&1; then
3231   :
3232 else
3233   ac_cv_header_stdc=no
3234 fi
3235 rm -f conftest*
3236
3237 fi
3238
3239 if 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   :
3243 else
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)))
3259 int
3260 main ()
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
3270 rm -f conftest$ac_exeext
3271 if { (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   :
3282 else
3283   echo "$as_me: program exited with status $ac_status" >&5
3284 echo "$as_me: failed program was:" >&5
3285 cat conftest.$ac_ext >&5
3286 ( exit $ac_status )
3287 ac_cv_header_stdc=no
3288 fi
3289 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3290 fi
3291 fi
3292 fi
3293 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3294 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3295 if test $ac_cv_header_stdc = yes; then
3296
3297 cat >>confdefs.h <<\_ACEOF
3298 #define STDC_HEADERS 1
3299 _ACEOF
3300
3301 fi
3302
3303 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3314                   inttypes.h stdint.h unistd.h
3315 do
3316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3317 echo "$as_me:$LINENO: checking for $ac_header" >&5
3318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3320   echo $ECHO_N "(cached) $ECHO_C" >&6
3321 else
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
3329 rm -f conftest.$ac_objext
3330 if { (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"
3342 else
3343   echo "$as_me: failed program was:" >&5
3344 cat conftest.$ac_ext >&5
3345 eval "$as_ac_Header=no"
3346 fi
3347 rm -f conftest.$ac_objext conftest.$ac_ext
3348 fi
3349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3351 if 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
3356 fi
3357
3358 done
3359
3360
3361 if test "${ac_cv_header_minix_config_h+set}" = set; then
3362   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3363 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3364 if test "${ac_cv_header_minix_config_h+set}" = set; then
3365   echo $ECHO_N "(cached) $ECHO_C" >&6
3366 fi
3367 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3368 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3369 else
3370   # Is the header compilable?
3371 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3372 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3373 cat >conftest.$ac_ext <<_ACEOF
3374 #line $LINENO "configure"
3375 #include "confdefs.h"
3376 $ac_includes_default
3377 #include <minix/config.h>
3378 _ACEOF
3379 rm -f conftest.$ac_objext
3380 if { (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
3392 else
3393   echo "$as_me: failed program was:" >&5
3394 cat conftest.$ac_ext >&5
3395 ac_header_compiler=no
3396 fi
3397 rm -f conftest.$ac_objext conftest.$ac_ext
3398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3399 echo "${ECHO_T}$ac_header_compiler" >&6
3400
3401 # Is the header present?
3402 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3403 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3404 cat >conftest.$ac_ext <<_ACEOF
3405 #line $LINENO "configure"
3406 #include "confdefs.h"
3407 #include <minix/config.h>
3408 _ACEOF
3409 if { (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
3422 else
3423   ac_cpp_err=yes
3424 fi
3425 if test -z "$ac_cpp_err"; then
3426   ac_header_preproc=yes
3427 else
3428   echo "$as_me: failed program was:" >&5
3429   cat conftest.$ac_ext >&5
3430   ac_header_preproc=no
3431 fi
3432 rm -f conftest.err conftest.$ac_ext
3433 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3434 echo "${ECHO_T}$ac_header_preproc" >&6
3435
3436 # So?  What about this header?
3437 case $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
3440 echo "$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
3442 echo "$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
3445 echo "$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
3447 echo "$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
3449 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
3450 esac
3451 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3452 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3453 if test "${ac_cv_header_minix_config_h+set}" = set; then
3454   echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456   ac_cv_header_minix_config_h=$ac_header_preproc
3457 fi
3458 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3459 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3460
3461 fi
3462 if test $ac_cv_header_minix_config_h = yes; then
3463   MINIX=yes
3464 else
3465   MINIX=
3466 fi
3467
3468
3469 if test "$MINIX" = yes; then
3470
3471 cat >>confdefs.h <<\_ACEOF
3472 #define _POSIX_SOURCE 1
3473 _ACEOF
3474
3475
3476 cat >>confdefs.h <<\_ACEOF
3477 #define _POSIX_1_SOURCE 2
3478 _ACEOF
3479
3480
3481 cat >>confdefs.h <<\_ACEOF
3482 #define _MINIX 1
3483 _ACEOF
3484
3485 fi
3486
3487 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3488 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3489 if test "${ac_cv_search_strerror+set}" = set; then
3490   echo $ECHO_N "(cached) $ECHO_C" >&6
3491 else
3492   ac_func_search_save_LIBS=$LIBS
3493 ac_cv_search_strerror=no
3494 cat >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
3500 extern "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.  */
3504 char strerror ();
3505 #ifdef F77_DUMMY_MAIN
3506 #  ifdef __cplusplus
3507      extern "C"
3508 #  endif
3509    int F77_DUMMY_MAIN() { return 1; }
3510 #endif
3511 int
3512 main ()
3513 {
3514 strerror ();
3515   ;
3516   return 0;
3517 }
3518 _ACEOF
3519 rm -f conftest.$ac_objext conftest$ac_exeext
3520 if { (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"
3532 else
3533   echo "$as_me: failed program was:" >&5
3534 cat conftest.$ac_ext >&5
3535 fi
3536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3537 if 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
3546 extern "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.  */
3550 char strerror ();
3551 #ifdef F77_DUMMY_MAIN
3552 #  ifdef __cplusplus
3553      extern "C"
3554 #  endif
3555    int F77_DUMMY_MAIN() { return 1; }
3556 #endif
3557 int
3558 main ()
3559 {
3560 strerror ();
3561   ;
3562   return 0;
3563 }
3564 _ACEOF
3565 rm -f conftest.$ac_objext conftest$ac_exeext
3566 if { (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"
3578 break
3579 else
3580   echo "$as_me: failed program was:" >&5
3581 cat conftest.$ac_ext >&5
3582 fi
3583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3584   done
3585 fi
3586 LIBS=$ac_func_search_save_LIBS
3587 fi
3588 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3589 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3590 if test "$ac_cv_search_strerror" != no; then
3591   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3592
3593 fi
3594
3595 if 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.
3597 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3598 echo "$as_me:$LINENO: checking for $ac_word" >&5
3599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3600 if test "${ac_cv_prog_RANLIB+set}" = set; then
3601   echo $ECHO_N "(cached) $ECHO_C" >&6
3602 else
3603   if test -n "$RANLIB"; then
3604   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3605 else
3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 for as_dir in $PATH
3608 do
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
3617 done
3618 done
3619
3620 fi
3621 fi
3622 RANLIB=$ac_cv_prog_RANLIB
3623 if test -n "$RANLIB"; then
3624   echo "$as_me:$LINENO: result: $RANLIB" >&5
3625 echo "${ECHO_T}$RANLIB" >&6
3626 else
3627   echo "$as_me:$LINENO: result: no" >&5
3628 echo "${ECHO_T}no" >&6
3629 fi
3630
3631 fi
3632 if 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.
3635 set dummy ranlib; ac_word=$2
3636 echo "$as_me:$LINENO: checking for $ac_word" >&5
3637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3638 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3639   echo $ECHO_N "(cached) $ECHO_C" >&6
3640 else
3641   if test -n "$ac_ct_RANLIB"; then
3642   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3643 else
3644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645 for as_dir in $PATH
3646 do
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
3655 done
3656 done
3657
3658   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3659 fi
3660 fi
3661 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3662 if test -n "$ac_ct_RANLIB"; then
3663   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3664 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3665 else
3666   echo "$as_me:$LINENO: result: no" >&5
3667 echo "${ECHO_T}no" >&6
3668 fi
3669
3670   RANLIB=$ac_ct_RANLIB
3671 else
3672   RANLIB="$ac_cv_prog_RANLIB"
3673 fi
3674
3675 # Extract the first word of "sh", so it can be a program name with args.
3676 set dummy sh; ac_word=$2
3677 echo "$as_me:$LINENO: checking for $ac_word" >&5
3678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3679 if test "${ac_cv_path_PATH_SH+set}" = set; then
3680   echo $ECHO_N "(cached) $ECHO_C" >&6
3681 else
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
3688 for as_dir in $PATH
3689 do
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
3698 done
3699 done
3700
3701   ;;
3702 esac
3703 fi
3704 PATH_SH=$ac_cv_path_PATH_SH
3705
3706 if test -n "$PATH_SH"; then
3707   echo "$as_me:$LINENO: result: $PATH_SH" >&5
3708 echo "${ECHO_T}$PATH_SH" >&6
3709 else
3710   echo "$as_me:$LINENO: result: no" >&5
3711 echo "${ECHO_T}no" >&6
3712 fi
3713
3714 # Extract the first word of "perl", so it can be a program name with args.
3715 set dummy perl; ac_word=$2
3716 echo "$as_me:$LINENO: checking for $ac_word" >&5
3717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3718 if test "${ac_cv_path_PATH_PERL+set}" = set; then
3719   echo $ECHO_N "(cached) $ECHO_C" >&6
3720 else
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
3727 for as_dir in $PATH
3728 do
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
3737 done
3738 done
3739
3740   ;;
3741 esac
3742 fi
3743 PATH_PERL=$ac_cv_path_PATH_PERL
3744
3745 if test -n "$PATH_PERL"; then
3746   echo "$as_me:$LINENO: result: $PATH_PERL" >&5
3747 echo "${ECHO_T}$PATH_PERL" >&6
3748 else
3749   echo "$as_me:$LINENO: result: no" >&5
3750 echo "${ECHO_T}no" >&6
3751 fi
3752
3753
3754  cat >conftest.$ac_ext <<_ACEOF
3755 #line $LINENO "configure"
3756 #include "confdefs.h"
3757 #define ACAT(a,b)a ## b
3758 ACAT(Cir,cus)
3759
3760 _ACEOF
3761 if (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
3767 else
3768   cat >conftest.$ac_ext <<_ACEOF
3769 #line $LINENO "configure"
3770 #include "confdefs.h"
3771 #define RCAT(a,b)a/**/b
3772 RCAT(Rei,ser)
3773
3774 _ACEOF
3775 if (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
3781 else
3782   { { echo "$as_me:$LINENO: error: How do we create an unsigned long constant?" >&5
3783 echo "$as_me: error: How do we create an unsigned long constant?" >&2;}
3784    { (exit 1); exit 1; }; }
3785 fi
3786 rm -f conftest*
3787
3788 fi
3789 rm -f conftest*
3790
3791
3792 case "$host" in
3793  *-*-vxworks*)
3794     ac_link="$ac_link $VX_KERNEL"
3795     ;;
3796 esac
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.
3810 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3811 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3812 if test -z "$INSTALL"; then
3813 if test "${ac_cv_path_install+set}" = set; then
3814   echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817 for as_dir in $PATH
3818 do
3819   IFS=$as_save_IFS
3820   test -z "$as_dir" && as_dir=.
3821   # Account for people who put trailing slashes in PATH elements.
3822 case $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     ;;
3849 esac
3850 done
3851
3852
3853 fi
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
3863 fi
3864 echo "$as_me:$LINENO: result: $INSTALL" >&5
3865 echo "${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.
3869 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3870
3871 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3872
3873 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3874
3875
3876 case "$host" in
3877  *-pc-cygwin*)
3878
3879 echo "$as_me:$LINENO: checking for main in -ladvapi32" >&5
3880 echo $ECHO_N "checking for main in -ladvapi32... $ECHO_C" >&6
3881 if test "${ac_cv_lib_advapi32_main+set}" = set; then
3882   echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884   ac_check_lib_save_LIBS=$LIBS
3885 LIBS="-ladvapi32  $LIBS"
3886 cat >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
3897 int
3898 main ()
3899 {
3900 main ();
3901   ;
3902   return 0;
3903 }
3904 _ACEOF
3905 rm -f conftest.$ac_objext conftest$ac_exeext
3906 if { (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
3918 else
3919   echo "$as_me: failed program was:" >&5
3920 cat conftest.$ac_ext >&5
3921 ac_cv_lib_advapi32_main=no
3922 fi
3923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3924 LIBS=$ac_check_lib_save_LIBS
3925 fi
3926 echo "$as_me:$LINENO: result: $ac_cv_lib_advapi32_main" >&5
3927 echo "${ECHO_T}$ac_cv_lib_advapi32_main" >&6
3928 if 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
3935 fi
3936
3937     ;;
3938 esac
3939
3940 echo "$as_me:$LINENO: checking for nlist in -lelf" >&5
3941 echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6
3942 if test "${ac_cv_lib_elf_nlist+set}" = set; then
3943   echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945   ac_check_lib_save_LIBS=$LIBS
3946 LIBS="-lelf  $LIBS"
3947 cat >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
3953 extern "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.  */
3957 char nlist ();
3958 #ifdef F77_DUMMY_MAIN
3959 #  ifdef __cplusplus
3960      extern "C"
3961 #  endif
3962    int F77_DUMMY_MAIN() { return 1; }
3963 #endif
3964 int
3965 main ()
3966 {
3967 nlist ();
3968   ;
3969   return 0;
3970 }
3971 _ACEOF
3972 rm -f conftest.$ac_objext conftest$ac_exeext
3973 if { (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
3985 else
3986   echo "$as_me: failed program was:" >&5
3987 cat conftest.$ac_ext >&5
3988 ac_cv_lib_elf_nlist=no
3989 fi
3990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3991 LIBS=$ac_check_lib_save_LIBS
3992 fi
3993 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5
3994 echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6
3995 if 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
4002 fi
4003
4004 echo "$as_me:$LINENO: checking for main in -lkvm" >&5
4005 echo $ECHO_N "checking for main in -lkvm... $ECHO_C" >&6
4006 if test "${ac_cv_lib_kvm_main+set}" = set; then
4007   echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009   ac_check_lib_save_LIBS=$LIBS
4010 LIBS="-lkvm  $LIBS"
4011 cat >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
4022 int
4023 main ()
4024 {
4025 main ();
4026   ;
4027   return 0;
4028 }
4029 _ACEOF
4030 rm -f conftest.$ac_objext conftest$ac_exeext
4031 if { (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
4043 else
4044   echo "$as_me: failed program was:" >&5
4045 cat conftest.$ac_ext >&5
4046 ac_cv_lib_kvm_main=no
4047 fi
4048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4049 LIBS=$ac_check_lib_save_LIBS
4050 fi
4051 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_main" >&5
4052 echo "${ECHO_T}$ac_cv_lib_kvm_main" >&6
4053 if 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
4060 fi
4061
4062 echo "$as_me:$LINENO: checking for nlist in -lld" >&5
4063 echo $ECHO_N "checking for nlist in -lld... $ECHO_C" >&6
4064 if test "${ac_cv_lib_ld_nlist+set}" = set; then
4065   echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067   ac_check_lib_save_LIBS=$LIBS
4068 LIBS="-lld  $LIBS"
4069 cat >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
4075 extern "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.  */
4079 char nlist ();
4080 #ifdef F77_DUMMY_MAIN
4081 #  ifdef __cplusplus
4082      extern "C"
4083 #  endif
4084    int F77_DUMMY_MAIN() { return 1; }
4085 #endif
4086 int
4087 main ()
4088 {
4089 nlist ();
4090   ;
4091   return 0;
4092 }
4093 _ACEOF
4094 rm -f conftest.$ac_objext conftest$ac_exeext
4095 if { (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
4107 else
4108   echo "$as_me: failed program was:" >&5
4109 cat conftest.$ac_ext >&5
4110 ac_cv_lib_ld_nlist=no
4111 fi
4112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4113 LIBS=$ac_check_lib_save_LIBS
4114 fi
4115 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_nlist" >&5
4116 echo "${ECHO_T}$ac_cv_lib_ld_nlist" >&6
4117 if 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
4124 fi
4125
4126
4127 echo "$as_me:$LINENO: checking for nlist in -lmld" >&5
4128 echo $ECHO_N "checking for nlist in -lmld... $ECHO_C" >&6
4129 if test "${ac_cv_lib_mld_nlist+set}" = set; then
4130   echo $ECHO_N "(cached) $ECHO_C" >&6
4131 else
4132   ac_check_lib_save_LIBS=$LIBS
4133 LIBS="-lmld  $LIBS"
4134 cat >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
4140 extern "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.  */
4144 char nlist ();
4145 #ifdef F77_DUMMY_MAIN
4146 #  ifdef __cplusplus
4147      extern "C"
4148 #  endif
4149    int F77_DUMMY_MAIN() { return 1; }
4150 #endif
4151 int
4152 main ()
4153 {
4154 nlist ();
4155   ;
4156   return 0;
4157 }
4158 _ACEOF
4159 rm -f conftest.$ac_objext conftest$ac_exeext
4160 if { (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
4172 else
4173   echo "$as_me: failed program was:" >&5
4174 cat conftest.$ac_ext >&5
4175 ac_cv_lib_mld_nlist=no
4176 fi
4177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4178 LIBS=$ac_check_lib_save_LIBS
4179 fi
4180 echo "$as_me:$LINENO: result: $ac_cv_lib_mld_nlist" >&5
4181 echo "${ECHO_T}$ac_cv_lib_mld_nlist" >&6
4182 if 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
4189 fi
4190
4191 echo "$as_me:$LINENO: checking for gethostent" >&5
4192 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
4193 if test "${ac_cv_func_gethostent+set}" = set; then
4194   echo $ECHO_N "(cached) $ECHO_C" >&6
4195 else
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
4204 extern "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.  */
4208 char gethostent ();
4209 char (*f) ();
4210
4211 #ifdef F77_DUMMY_MAIN
4212 #  ifdef __cplusplus
4213      extern "C"
4214 #  endif
4215    int F77_DUMMY_MAIN() { return 1; }
4216 #endif
4217 int
4218 main ()
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)
4224 choke me
4225 #else
4226 f = gethostent;
4227 #endif
4228
4229   ;
4230   return 0;
4231 }
4232 _ACEOF
4233 rm -f conftest.$ac_objext conftest$ac_exeext
4234 if { (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
4246 else
4247   echo "$as_me: failed program was:" >&5
4248 cat conftest.$ac_ext >&5
4249 ac_cv_func_gethostent=no
4250 fi
4251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4252 fi
4253 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
4254 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
4255 if test $ac_cv_func_gethostent = yes; then
4256   :
4257 else
4258
4259 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
4260 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
4261 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
4262   echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264   ac_check_lib_save_LIBS=$LIBS
4265 LIBS="-lnsl -lsocket $LIBS"
4266 cat >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
4272 extern "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.  */
4276 char gethostent ();
4277 #ifdef F77_DUMMY_MAIN
4278 #  ifdef __cplusplus
4279      extern "C"
4280 #  endif
4281    int F77_DUMMY_MAIN() { return 1; }
4282 #endif
4283 int
4284 main ()
4285 {
4286 gethostent ();
4287   ;
4288   return 0;
4289 }
4290 _ACEOF
4291 rm -f conftest.$ac_objext conftest$ac_exeext
4292 if { (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
4304 else
4305   echo "$as_me: failed program was:" >&5
4306 cat conftest.$ac_ext >&5
4307 ac_cv_lib_nsl_gethostent=no
4308 fi
4309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4310 LIBS=$ac_check_lib_save_LIBS
4311 fi
4312 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
4313 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
4314 if 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
4321 fi
4322
4323 fi
4324
4325 echo "$as_me:$LINENO: checking for openlog" >&5
4326 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
4327 if test "${ac_cv_func_openlog+set}" = set; then
4328   echo $ECHO_N "(cached) $ECHO_C" >&6
4329 else
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
4338 extern "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.  */
4342 char openlog ();
4343 char (*f) ();
4344
4345 #ifdef F77_DUMMY_MAIN
4346 #  ifdef __cplusplus
4347      extern "C"
4348 #  endif
4349    int F77_DUMMY_MAIN() { return 1; }
4350 #endif
4351 int
4352 main ()
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)
4358 choke me
4359 #else
4360 f = openlog;
4361 #endif
4362
4363   ;
4364   return 0;
4365 }
4366 _ACEOF
4367 rm -f conftest.$ac_objext conftest$ac_exeext
4368 if { (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
4380 else
4381   echo "$as_me: failed program was:" >&5
4382 cat conftest.$ac_ext >&5
4383 ac_cv_func_openlog=no
4384 fi
4385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4386 fi
4387 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
4388 echo "${ECHO_T}$ac_cv_func_openlog" >&6
4389 if test $ac_cv_func_openlog = yes; then
4390   :
4391 else
4392
4393 echo "$as_me:$LINENO: checking for openlog in -lgen" >&5
4394 echo $ECHO_N "checking for openlog in -lgen... $ECHO_C" >&6
4395 if test "${ac_cv_lib_gen_openlog+set}" = set; then
4396   echo $ECHO_N "(cached) $ECHO_C" >&6
4397 else
4398   ac_check_lib_save_LIBS=$LIBS
4399 LIBS="-lgen  $LIBS"
4400 cat >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
4406 extern "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.  */
4410 char openlog ();
4411 #ifdef F77_DUMMY_MAIN
4412 #  ifdef __cplusplus
4413      extern "C"
4414 #  endif
4415    int F77_DUMMY_MAIN() { return 1; }
4416 #endif
4417 int
4418 main ()
4419 {
4420 openlog ();
4421   ;
4422   return 0;
4423 }
4424 _ACEOF
4425 rm -f conftest.$ac_objext conftest$ac_exeext
4426 if { (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
4438 else
4439   echo "$as_me: failed program was:" >&5
4440 cat conftest.$ac_ext >&5
4441 ac_cv_lib_gen_openlog=no
4442 fi
4443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4444 LIBS=$ac_check_lib_save_LIBS
4445 fi
4446 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_openlog" >&5
4447 echo "${ECHO_T}$ac_cv_lib_gen_openlog" >&6
4448 if 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
4455 else
4456
4457 echo "$as_me:$LINENO: checking for openlog in -lsyslog" >&5
4458 echo $ECHO_N "checking for openlog in -lsyslog... $ECHO_C" >&6
4459 if test "${ac_cv_lib_syslog_openlog+set}" = set; then
4460   echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462   ac_check_lib_save_LIBS=$LIBS
4463 LIBS="-lsyslog -lsocket $LIBS"
4464 cat >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
4470 extern "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.  */
4474 char openlog ();
4475 #ifdef F77_DUMMY_MAIN
4476 #  ifdef __cplusplus
4477      extern "C"
4478 #  endif
4479    int F77_DUMMY_MAIN() { return 1; }
4480 #endif
4481 int
4482 main ()
4483 {
4484 openlog ();
4485   ;
4486   return 0;
4487 }
4488 _ACEOF
4489 rm -f conftest.$ac_objext conftest$ac_exeext
4490 if { (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
4502 else
4503   echo "$as_me: failed program was:" >&5
4504 cat conftest.$ac_ext >&5
4505 ac_cv_lib_syslog_openlog=no
4506 fi
4507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4508 LIBS=$ac_check_lib_save_LIBS
4509 fi
4510 echo "$as_me:$LINENO: result: $ac_cv_lib_syslog_openlog" >&5
4511 echo "${ECHO_T}$ac_cv_lib_syslog_openlog" >&6
4512 if 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
4519 fi
4520
4521 fi
4522
4523 fi
4524
4525
4526
4527 for ac_header in readline/history.h readline/readline.h
4528 do
4529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4531   echo "$as_me:$LINENO: checking for $ac_header" >&5
4532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4534   echo $ECHO_N "(cached) $ECHO_C" >&6
4535 fi
4536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4538 else
4539   # Is the header compilable?
4540 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4541 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4542 cat >conftest.$ac_ext <<_ACEOF
4543 #line $LINENO "configure"
4544 #include "confdefs.h"
4545 $ac_includes_default
4546 #include <$ac_header>
4547 _ACEOF
4548 rm -f conftest.$ac_objext
4549 if { (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
4561 else
4562   echo "$as_me: failed program was:" >&5
4563 cat conftest.$ac_ext >&5
4564 ac_header_compiler=no
4565 fi
4566 rm -f conftest.$ac_objext conftest.$ac_ext
4567 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4568 echo "${ECHO_T}$ac_header_compiler" >&6
4569
4570 # Is the header present?
4571 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4573 cat >conftest.$ac_ext <<_ACEOF
4574 #line $LINENO "configure"
4575 #include "confdefs.h"
4576 #include <$ac_header>
4577 _ACEOF
4578 if { (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
4591 else
4592   ac_cpp_err=yes
4593 fi
4594 if test -z "$ac_cpp_err"; then
4595   ac_header_preproc=yes
4596 else
4597   echo "$as_me: failed program was:" >&5
4598   cat conftest.$ac_ext >&5
4599   ac_header_preproc=no
4600 fi
4601 rm -f conftest.err conftest.$ac_ext
4602 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4603 echo "${ECHO_T}$ac_header_preproc" >&6
4604
4605 # So?  What about this header?
4606 case $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
4609 echo "$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
4611 echo "$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
4614 echo "$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
4616 echo "$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
4618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4619 esac
4620 echo "$as_me:$LINENO: checking for $ac_header" >&5
4621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4623   echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625   eval "$as_ac_Header=$ac_header_preproc"
4626 fi
4627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4629
4630 fi
4631 if 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
4636 fi
4637
4638 done
4639
4640 case "$ac_cv_header_readline_history_h$ac_cv_header_readline_readline_h" in
4641  *no*) ;;
4642  *)
4643 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
4644 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
4645 if test "${ac_cv_lib_readline_readline+set}" = set; then
4646   echo $ECHO_N "(cached) $ECHO_C" >&6
4647 else
4648   ac_check_lib_save_LIBS=$LIBS
4649 LIBS="-lreadline  $LIBS"
4650 cat >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
4656 extern "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.  */
4660 char readline ();
4661 #ifdef F77_DUMMY_MAIN
4662 #  ifdef __cplusplus
4663      extern "C"
4664 #  endif
4665    int F77_DUMMY_MAIN() { return 1; }
4666 #endif
4667 int
4668 main ()
4669 {
4670 readline ();
4671   ;
4672   return 0;
4673 }
4674 _ACEOF
4675 rm -f conftest.$ac_objext conftest$ac_exeext
4676 if { (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
4688 else
4689   echo "$as_me: failed program was:" >&5
4690 cat conftest.$ac_ext >&5
4691 ac_cv_lib_readline_readline=no
4692 fi
4693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4694 LIBS=$ac_check_lib_save_LIBS
4695 fi
4696 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
4697 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
4698 if 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
4705 else
4706   { echo "$as_me:$LINENO: Trying again with -lcurses" >&5
4707 echo "$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
4710 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
4711 if test "${ac_cv_lib_readline_readline+set}" = set; then
4712   echo $ECHO_N "(cached) $ECHO_C" >&6
4713 else
4714   ac_check_lib_save_LIBS=$LIBS
4715 LIBS="-lreadline -lcurses $LIBS"
4716 cat >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
4722 extern "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.  */
4726 char readline ();
4727 #ifdef F77_DUMMY_MAIN
4728 #  ifdef __cplusplus
4729      extern "C"
4730 #  endif
4731    int F77_DUMMY_MAIN() { return 1; }
4732 #endif
4733 int
4734 main ()
4735 {
4736 readline ();
4737   ;
4738   return 0;
4739 }
4740 _ACEOF
4741 rm -f conftest.$ac_objext conftest$ac_exeext
4742 if { (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
4754 else
4755   echo "$as_me: failed program was:" >&5
4756 cat conftest.$ac_ext >&5
4757 ac_cv_lib_readline_readline=no
4758 fi
4759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4760 LIBS=$ac_check_lib_save_LIBS
4761 fi
4762 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
4763 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
4764 if 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
4771 cat >>confdefs.h <<\_ACEOF
4772 #define HAVE_LIBCURSES
4773 _ACEOF
4774
4775
4776 fi
4777
4778 fi
4779
4780     ;;
4781 esac
4782
4783
4784 case "$host" in
4785  *-*-linux*) ;;
4786  *)
4787
4788 echo "$as_me:$LINENO: checking for sched_setscheduler in -lrt" >&5
4789 echo $ECHO_N "checking for sched_setscheduler in -lrt... $ECHO_C" >&6
4790 if test "${ac_cv_lib_rt_sched_setscheduler+set}" = set; then
4791   echo $ECHO_N "(cached) $ECHO_C" >&6
4792 else
4793   ac_check_lib_save_LIBS=$LIBS
4794 LIBS="-lrt  $LIBS"
4795 cat >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
4801 extern "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.  */
4805 char sched_setscheduler ();
4806 #ifdef F77_DUMMY_MAIN
4807 #  ifdef __cplusplus
4808      extern "C"
4809 #  endif
4810    int F77_DUMMY_MAIN() { return 1; }
4811 #endif
4812 int
4813 main ()
4814 {
4815 sched_setscheduler ();
4816   ;
4817   return 0;
4818 }
4819 _ACEOF
4820 rm -f conftest.$ac_objext conftest$ac_exeext
4821 if { (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
4833 else
4834   echo "$as_me: failed program was:" >&5
4835 cat conftest.$ac_ext >&5
4836 ac_cv_lib_rt_sched_setscheduler=no
4837 fi
4838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4839 LIBS=$ac_check_lib_save_LIBS
4840 fi
4841 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_setscheduler" >&5
4842 echo "${ECHO_T}$ac_cv_lib_rt_sched_setscheduler" >&6
4843 if 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
4850 else
4851
4852 echo "$as_me:$LINENO: checking for sched_setscheduler in -lposix4" >&5
4853 echo $ECHO_N "checking for sched_setscheduler in -lposix4... $ECHO_C" >&6
4854 if test "${ac_cv_lib_posix4_sched_setscheduler+set}" = set; then
4855   echo $ECHO_N "(cached) $ECHO_C" >&6
4856 else
4857   ac_check_lib_save_LIBS=$LIBS
4858 LIBS="-lposix4  $LIBS"
4859 cat >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
4865 extern "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.  */
4869 char sched_setscheduler ();
4870 #ifdef F77_DUMMY_MAIN
4871 #  ifdef __cplusplus
4872      extern "C"
4873 #  endif
4874    int F77_DUMMY_MAIN() { return 1; }
4875 #endif
4876 int
4877 main ()
4878 {
4879 sched_setscheduler ();
4880   ;
4881   return 0;
4882 }
4883 _ACEOF
4884 rm -f conftest.$ac_objext conftest$ac_exeext
4885 if { (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
4897 else
4898   echo "$as_me: failed program was:" >&5
4899 cat conftest.$ac_ext >&5
4900 ac_cv_lib_posix4_sched_setscheduler=no
4901 fi
4902 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4903 LIBS=$ac_check_lib_save_LIBS
4904 fi
4905 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_setscheduler" >&5
4906 echo "${ECHO_T}$ac_cv_lib_posix4_sched_setscheduler" >&6
4907 if 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
4914 fi
4915
4916 fi
4917
4918     ;;
4919 esac
4920
4921 echo "$as_me:$LINENO: checking for setsockopt" >&5
4922 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
4923 if test "${ac_cv_func_setsockopt+set}" = set; then
4924   echo $ECHO_N "(cached) $ECHO_C" >&6
4925 else
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
4934 extern "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.  */
4938 char setsockopt ();
4939 char (*f) ();
4940
4941 #ifdef F77_DUMMY_MAIN
4942 #  ifdef __cplusplus
4943      extern "C"
4944 #  endif
4945    int F77_DUMMY_MAIN() { return 1; }
4946 #endif
4947 int
4948 main ()
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)
4954 choke me
4955 #else
4956 f = setsockopt;
4957 #endif
4958
4959   ;
4960   return 0;
4961 }
4962 _ACEOF
4963 rm -f conftest.$ac_objext conftest$ac_exeext
4964 if { (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
4976 else
4977   echo "$as_me: failed program was:" >&5
4978 cat conftest.$ac_ext >&5
4979 ac_cv_func_setsockopt=no
4980 fi
4981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4982 fi
4983 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
4984 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
4985 if test $ac_cv_func_setsockopt = yes; then
4986   :
4987 else
4988
4989 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
4990 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
4991 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
4992   echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994   ac_check_lib_save_LIBS=$LIBS
4995 LIBS="-lsocket  $LIBS"
4996 cat >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
5002 extern "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.  */
5006 char setsockopt ();
5007 #ifdef F77_DUMMY_MAIN
5008 #  ifdef __cplusplus
5009      extern "C"
5010 #  endif
5011    int F77_DUMMY_MAIN() { return 1; }
5012 #endif
5013 int
5014 main ()
5015 {
5016 setsockopt ();
5017   ;
5018   return 0;
5019 }
5020 _ACEOF
5021 rm -f conftest.$ac_objext conftest$ac_exeext
5022 if { (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
5034 else
5035   echo "$as_me: failed program was:" >&5
5036 cat conftest.$ac_ext >&5
5037 ac_cv_lib_socket_setsockopt=no
5038 fi
5039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5040 LIBS=$ac_check_lib_save_LIBS
5041 fi
5042 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
5043 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
5044 if 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
5051 fi
5052
5053 fi
5054
5055
5056 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5057 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5058 if test "${ac_cv_header_stdc+set}" = set; then
5059   echo $ECHO_N "(cached) $ECHO_C" >&6
5060 else
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
5070 if { (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
5083 else
5084   ac_cpp_err=yes
5085 fi
5086 if test -z "$ac_cpp_err"; then
5087   ac_cv_header_stdc=yes
5088 else
5089   echo "$as_me: failed program was:" >&5
5090   cat conftest.$ac_ext >&5
5091   ac_cv_header_stdc=no
5092 fi
5093 rm -f conftest.err conftest.$ac_ext
5094
5095 if 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
5103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5104   egrep "memchr" >/dev/null 2>&1; then
5105   :
5106 else
5107   ac_cv_header_stdc=no
5108 fi
5109 rm -f conftest*
5110
5111 fi
5112
5113 if 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
5121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5122   egrep "free" >/dev/null 2>&1; then
5123   :
5124 else
5125   ac_cv_header_stdc=no
5126 fi
5127 rm -f conftest*
5128
5129 fi
5130
5131 if 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   :
5135 else
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)))
5151 int
5152 main ()
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
5162 rm -f conftest$ac_exeext
5163 if { (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   :
5174 else
5175   echo "$as_me: program exited with status $ac_status" >&5
5176 echo "$as_me: failed program was:" >&5
5177 cat conftest.$ac_ext >&5
5178 ( exit $ac_status )
5179 ac_cv_header_stdc=no
5180 fi
5181 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5182 fi
5183 fi
5184 fi
5185 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5186 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5187 if test $ac_cv_header_stdc = yes; then
5188
5189 cat >>confdefs.h <<\_ACEOF
5190 #define STDC_HEADERS 1
5191 _ACEOF
5192
5193 fi
5194
5195
5196
5197
5198
5199
5200
5201
5202 for ac_header in bstring.h errno.h fcntl.h ieeefp.h math.h memory.h netdb.h
5203 do
5204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5206   echo "$as_me:$LINENO: checking for $ac_header" >&5
5207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5209   echo $ECHO_N "(cached) $ECHO_C" >&6
5210 fi
5211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5213 else
5214   # Is the header compilable?
5215 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5216 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5217 cat >conftest.$ac_ext <<_ACEOF
5218 #line $LINENO "configure"
5219 #include "confdefs.h"
5220 $ac_includes_default
5221 #include <$ac_header>
5222 _ACEOF
5223 rm -f conftest.$ac_objext
5224 if { (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
5236 else
5237   echo "$as_me: failed program was:" >&5
5238 cat conftest.$ac_ext >&5
5239 ac_header_compiler=no
5240 fi
5241 rm -f conftest.$ac_objext conftest.$ac_ext
5242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5243 echo "${ECHO_T}$ac_header_compiler" >&6
5244
5245 # Is the header present?
5246 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5248 cat >conftest.$ac_ext <<_ACEOF
5249 #line $LINENO "configure"
5250 #include "confdefs.h"
5251 #include <$ac_header>
5252 _ACEOF
5253 if { (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
5266 else
5267   ac_cpp_err=yes
5268 fi
5269 if test -z "$ac_cpp_err"; then
5270   ac_header_preproc=yes
5271 else
5272   echo "$as_me: failed program was:" >&5
5273   cat conftest.$ac_ext >&5
5274   ac_header_preproc=no
5275 fi
5276 rm -f conftest.err conftest.$ac_ext
5277 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5278 echo "${ECHO_T}$ac_header_preproc" >&6
5279
5280 # So?  What about this header?
5281 case $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
5284 echo "$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
5286 echo "$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
5289 echo "$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
5291 echo "$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
5293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5294 esac
5295 echo "$as_me:$LINENO: checking for $ac_header" >&5
5296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5298   echo $ECHO_N "(cached) $ECHO_C" >&6
5299 else
5300   eval "$as_ac_Header=$ac_header_preproc"
5301 fi
5302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5304
5305 fi
5306 if 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
5311 fi
5312
5313 done
5314
5315
5316
5317
5318
5319
5320
5321
5322 for ac_header in poll.h resolv.h sched.h sgtty.h stdlib.h string.h termio.h
5323 do
5324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5326   echo "$as_me:$LINENO: checking for $ac_header" >&5
5327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5329   echo $ECHO_N "(cached) $ECHO_C" >&6
5330 fi
5331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5333 else
5334   # Is the header compilable?
5335 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5337 cat >conftest.$ac_ext <<_ACEOF
5338 #line $LINENO "configure"
5339 #include "confdefs.h"
5340 $ac_includes_default
5341 #include <$ac_header>
5342 _ACEOF
5343 rm -f conftest.$ac_objext
5344 if { (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
5356 else
5357   echo "$as_me: failed program was:" >&5
5358 cat conftest.$ac_ext >&5
5359 ac_header_compiler=no
5360 fi
5361 rm -f conftest.$ac_objext conftest.$ac_ext
5362 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5363 echo "${ECHO_T}$ac_header_compiler" >&6
5364
5365 # Is the header present?
5366 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5368 cat >conftest.$ac_ext <<_ACEOF
5369 #line $LINENO "configure"
5370 #include "confdefs.h"
5371 #include <$ac_header>
5372 _ACEOF
5373 if { (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
5386 else
5387   ac_cpp_err=yes
5388 fi
5389 if test -z "$ac_cpp_err"; then
5390   ac_header_preproc=yes
5391 else
5392   echo "$as_me: failed program was:" >&5
5393   cat conftest.$ac_ext >&5
5394   ac_header_preproc=no
5395 fi
5396 rm -f conftest.err conftest.$ac_ext
5397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5398 echo "${ECHO_T}$ac_header_preproc" >&6
5399
5400 # So?  What about this header?
5401 case $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
5404 echo "$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
5406 echo "$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
5409 echo "$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
5411 echo "$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
5413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5414 esac
5415 echo "$as_me:$LINENO: checking for $ac_header" >&5
5416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5418   echo $ECHO_N "(cached) $ECHO_C" >&6
5419 else
5420   eval "$as_ac_Header=$ac_header_preproc"
5421 fi
5422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5424
5425 fi
5426 if 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
5431 fi
5432
5433 done
5434
5435
5436
5437
5438
5439
5440
5441 for ac_header in termios.h timepps.h timex.h unistd.h utmp.h utmpx.h
5442 do
5443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5445   echo "$as_me:$LINENO: checking for $ac_header" >&5
5446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5448   echo $ECHO_N "(cached) $ECHO_C" >&6
5449 fi
5450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5452 else
5453   # Is the header compilable?
5454 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5456 cat >conftest.$ac_ext <<_ACEOF
5457 #line $LINENO "configure"
5458 #include "confdefs.h"
5459 $ac_includes_default
5460 #include <$ac_header>
5461 _ACEOF
5462 rm -f conftest.$ac_objext
5463 if { (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
5475 else
5476   echo "$as_me: failed program was:" >&5
5477 cat conftest.$ac_ext >&5
5478 ac_header_compiler=no
5479 fi
5480 rm -f conftest.$ac_objext conftest.$ac_ext
5481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5482 echo "${ECHO_T}$ac_header_compiler" >&6
5483
5484 # Is the header present?
5485 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5487 cat >conftest.$ac_ext <<_ACEOF
5488 #line $LINENO "configure"
5489 #include "confdefs.h"
5490 #include <$ac_header>
5491 _ACEOF
5492 if { (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
5505 else
5506   ac_cpp_err=yes
5507 fi
5508 if test -z "$ac_cpp_err"; then
5509   ac_header_preproc=yes
5510 else
5511   echo "$as_me: failed program was:" >&5
5512   cat conftest.$ac_ext >&5
5513   ac_header_preproc=no
5514 fi
5515 rm -f conftest.err conftest.$ac_ext
5516 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5517 echo "${ECHO_T}$ac_header_preproc" >&6
5518
5519 # So?  What about this header?
5520 case $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
5523 echo "$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
5525 echo "$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
5528 echo "$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
5530 echo "$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
5532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5533 esac
5534 echo "$as_me:$LINENO: checking for $ac_header" >&5
5535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5537   echo $ECHO_N "(cached) $ECHO_C" >&6
5538 else
5539   eval "$as_ac_Header=$ac_header_preproc"
5540 fi
5541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5543
5544 fi
5545 if 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
5550 fi
5551
5552 done
5553
5554
5555
5556
5557 for ac_header in arpa/nameser.h net/if.h netinet/in_system.h
5558 do
5559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5561   echo "$as_me:$LINENO: checking for $ac_header" >&5
5562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5564   echo $ECHO_N "(cached) $ECHO_C" >&6
5565 fi
5566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5568 else
5569   # Is the header compilable?
5570 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5572 cat >conftest.$ac_ext <<_ACEOF
5573 #line $LINENO "configure"
5574 #include "confdefs.h"
5575 $ac_includes_default
5576 #include <$ac_header>
5577 _ACEOF
5578 rm -f conftest.$ac_objext
5579 if { (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
5591 else
5592   echo "$as_me: failed program was:" >&5
5593 cat conftest.$ac_ext >&5
5594 ac_header_compiler=no
5595 fi
5596 rm -f conftest.$ac_objext conftest.$ac_ext
5597 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5598 echo "${ECHO_T}$ac_header_compiler" >&6
5599
5600 # Is the header present?
5601 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5602 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5603 cat >conftest.$ac_ext <<_ACEOF
5604 #line $LINENO "configure"
5605 #include "confdefs.h"
5606 #include <$ac_header>
5607 _ACEOF
5608 if { (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
5621 else
5622   ac_cpp_err=yes
5623 fi
5624 if test -z "$ac_cpp_err"; then
5625   ac_header_preproc=yes
5626 else
5627   echo "$as_me: failed program was:" >&5
5628   cat conftest.$ac_ext >&5
5629   ac_header_preproc=no
5630 fi
5631 rm -f conftest.err conftest.$ac_ext
5632 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5633 echo "${ECHO_T}$ac_header_preproc" >&6
5634
5635 # So?  What about this header?
5636 case $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
5639 echo "$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
5641 echo "$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
5644 echo "$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
5646 echo "$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
5648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5649 esac
5650 echo "$as_me:$LINENO: checking for $ac_header" >&5
5651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5653   echo $ECHO_N "(cached) $ECHO_C" >&6
5654 else
5655   eval "$as_ac_Header=$ac_header_preproc"
5656 fi
5657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5659
5660 fi
5661 if 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
5666 fi
5667
5668 done
5669
5670
5671
5672
5673 for ac_header in netinet/in_systm.h netinet/in.h netinet/ip.h
5674 do
5675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5677   echo "$as_me:$LINENO: checking for $ac_header" >&5
5678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5680   echo $ECHO_N "(cached) $ECHO_C" >&6
5681 fi
5682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5683 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5684 else
5685   # Is the header compilable?
5686 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5687 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5688 cat >conftest.$ac_ext <<_ACEOF
5689 #line $LINENO "configure"
5690 #include "confdefs.h"
5691 $ac_includes_default
5692 #include <$ac_header>
5693 _ACEOF
5694 rm -f conftest.$ac_objext
5695 if { (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
5707 else
5708   echo "$as_me: failed program was:" >&5
5709 cat conftest.$ac_ext >&5
5710 ac_header_compiler=no
5711 fi
5712 rm -f conftest.$ac_objext conftest.$ac_ext
5713 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5714 echo "${ECHO_T}$ac_header_compiler" >&6
5715
5716 # Is the header present?
5717 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5719 cat >conftest.$ac_ext <<_ACEOF
5720 #line $LINENO "configure"
5721 #include "confdefs.h"
5722 #include <$ac_header>
5723 _ACEOF
5724 if { (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
5737 else
5738   ac_cpp_err=yes
5739 fi
5740 if test -z "$ac_cpp_err"; then
5741   ac_header_preproc=yes
5742 else
5743   echo "$as_me: failed program was:" >&5
5744   cat conftest.$ac_ext >&5
5745   ac_header_preproc=no
5746 fi
5747 rm -f conftest.err conftest.$ac_ext
5748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5749 echo "${ECHO_T}$ac_header_preproc" >&6
5750
5751 # So?  What about this header?
5752 case $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
5755 echo "$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
5757 echo "$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
5760 echo "$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
5762 echo "$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
5764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5765 esac
5766 echo "$as_me:$LINENO: checking for $ac_header" >&5
5767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5769   echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771   eval "$as_ac_Header=$ac_header_preproc"
5772 fi
5773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5775
5776 fi
5777 if 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
5782 fi
5783
5784 done
5785
5786
5787 for ac_header in netinfo/ni.h
5788 do
5789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5791   echo "$as_me:$LINENO: checking for $ac_header" >&5
5792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5794   echo $ECHO_N "(cached) $ECHO_C" >&6
5795 fi
5796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5798 else
5799   # Is the header compilable?
5800 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5802 cat >conftest.$ac_ext <<_ACEOF
5803 #line $LINENO "configure"
5804 #include "confdefs.h"
5805 $ac_includes_default
5806 #include <$ac_header>
5807 _ACEOF
5808 rm -f conftest.$ac_objext
5809 if { (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
5821 else
5822   echo "$as_me: failed program was:" >&5
5823 cat conftest.$ac_ext >&5
5824 ac_header_compiler=no
5825 fi
5826 rm -f conftest.$ac_objext conftest.$ac_ext
5827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5828 echo "${ECHO_T}$ac_header_compiler" >&6
5829
5830 # Is the header present?
5831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5833 cat >conftest.$ac_ext <<_ACEOF
5834 #line $LINENO "configure"
5835 #include "confdefs.h"
5836 #include <$ac_header>
5837 _ACEOF
5838 if { (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
5851 else
5852   ac_cpp_err=yes
5853 fi
5854 if test -z "$ac_cpp_err"; then
5855   ac_header_preproc=yes
5856 else
5857   echo "$as_me: failed program was:" >&5
5858   cat conftest.$ac_ext >&5
5859   ac_header_preproc=no
5860 fi
5861 rm -f conftest.err conftest.$ac_ext
5862 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5863 echo "${ECHO_T}$ac_header_preproc" >&6
5864
5865 # So?  What about this header?
5866 case $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
5869 echo "$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
5871 echo "$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
5874 echo "$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
5876 echo "$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
5878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5879 esac
5880 echo "$as_me:$LINENO: checking for $ac_header" >&5
5881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5883   echo $ECHO_N "(cached) $ECHO_C" >&6
5884 else
5885   eval "$as_ac_Header=$ac_header_preproc"
5886 fi
5887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5889
5890 fi
5891 if 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
5896 cat >>confdefs.h <<\_ACEOF
5897 #define HAVE_NETINFO 1
5898 _ACEOF
5899
5900 fi
5901
5902 done
5903
5904
5905
5906 for ac_header in sun/audioio.h sys/audioio.h
5907 do
5908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5910   echo "$as_me:$LINENO: checking for $ac_header" >&5
5911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5913   echo $ECHO_N "(cached) $ECHO_C" >&6
5914 fi
5915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5917 else
5918   # Is the header compilable?
5919 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5921 cat >conftest.$ac_ext <<_ACEOF
5922 #line $LINENO "configure"
5923 #include "confdefs.h"
5924 $ac_includes_default
5925 #include <$ac_header>
5926 _ACEOF
5927 rm -f conftest.$ac_objext
5928 if { (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
5940 else
5941   echo "$as_me: failed program was:" >&5
5942 cat conftest.$ac_ext >&5
5943 ac_header_compiler=no
5944 fi
5945 rm -f conftest.$ac_objext conftest.$ac_ext
5946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5947 echo "${ECHO_T}$ac_header_compiler" >&6
5948
5949 # Is the header present?
5950 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5952 cat >conftest.$ac_ext <<_ACEOF
5953 #line $LINENO "configure"
5954 #include "confdefs.h"
5955 #include <$ac_header>
5956 _ACEOF
5957 if { (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
5970 else
5971   ac_cpp_err=yes
5972 fi
5973 if test -z "$ac_cpp_err"; then
5974   ac_header_preproc=yes
5975 else
5976   echo "$as_me: failed program was:" >&5
5977   cat conftest.$ac_ext >&5
5978   ac_header_preproc=no
5979 fi
5980 rm -f conftest.err conftest.$ac_ext
5981 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5982 echo "${ECHO_T}$ac_header_preproc" >&6
5983
5984 # So?  What about this header?
5985 case $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
5988 echo "$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
5990 echo "$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
5993 echo "$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
5995 echo "$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
5997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5998 esac
5999 echo "$as_me:$LINENO: checking for $ac_header" >&5
6000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6002   echo $ECHO_N "(cached) $ECHO_C" >&6
6003 else
6004   eval "$as_ac_Header=$ac_header_preproc"
6005 fi
6006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6008
6009 fi
6010 if 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
6015 fi
6016
6017 done
6018
6019
6020
6021 for ac_header in sys/clkdefs.h sys/file.h
6022 do
6023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6025   echo "$as_me:$LINENO: checking for $ac_header" >&5
6026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6028   echo $ECHO_N "(cached) $ECHO_C" >&6
6029 fi
6030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6032 else
6033   # Is the header compilable?
6034 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6036 cat >conftest.$ac_ext <<_ACEOF
6037 #line $LINENO "configure"
6038 #include "confdefs.h"
6039 $ac_includes_default
6040 #include <$ac_header>
6041 _ACEOF
6042 rm -f conftest.$ac_objext
6043 if { (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
6055 else
6056   echo "$as_me: failed program was:" >&5
6057 cat conftest.$ac_ext >&5
6058 ac_header_compiler=no
6059 fi
6060 rm -f conftest.$ac_objext conftest.$ac_ext
6061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6062 echo "${ECHO_T}$ac_header_compiler" >&6
6063
6064 # Is the header present?
6065 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6067 cat >conftest.$ac_ext <<_ACEOF
6068 #line $LINENO "configure"
6069 #include "confdefs.h"
6070 #include <$ac_header>
6071 _ACEOF
6072 if { (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
6085 else
6086   ac_cpp_err=yes
6087 fi
6088 if test -z "$ac_cpp_err"; then
6089   ac_header_preproc=yes
6090 else
6091   echo "$as_me: failed program was:" >&5
6092   cat conftest.$ac_ext >&5
6093   ac_header_preproc=no
6094 fi
6095 rm -f conftest.err conftest.$ac_ext
6096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6097 echo "${ECHO_T}$ac_header_preproc" >&6
6098
6099 # So?  What about this header?
6100 case $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
6103 echo "$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
6105 echo "$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
6108 echo "$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
6110 echo "$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
6112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6113 esac
6114 echo "$as_me:$LINENO: checking for $ac_header" >&5
6115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6117   echo $ECHO_N "(cached) $ECHO_C" >&6
6118 else
6119   eval "$as_ac_Header=$ac_header_preproc"
6120 fi
6121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6123
6124 fi
6125 if 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
6130 fi
6131
6132 done
6133
6134 case "$host" in
6135  *-*-sunos4*) ;;
6136  *)
6137 for ac_header in sys/ioctl.h
6138 do
6139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6141   echo "$as_me:$LINENO: checking for $ac_header" >&5
6142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6144   echo $ECHO_N "(cached) $ECHO_C" >&6
6145 fi
6146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6148 else
6149   # Is the header compilable?
6150 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6151 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6152 cat >conftest.$ac_ext <<_ACEOF
6153 #line $LINENO "configure"
6154 #include "confdefs.h"
6155 $ac_includes_default
6156 #include <$ac_header>
6157 _ACEOF
6158 rm -f conftest.$ac_objext
6159 if { (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
6171 else
6172   echo "$as_me: failed program was:" >&5
6173 cat conftest.$ac_ext >&5
6174 ac_header_compiler=no
6175 fi
6176 rm -f conftest.$ac_objext conftest.$ac_ext
6177 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6178 echo "${ECHO_T}$ac_header_compiler" >&6
6179
6180 # Is the header present?
6181 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6183 cat >conftest.$ac_ext <<_ACEOF
6184 #line $LINENO "configure"
6185 #include "confdefs.h"
6186 #include <$ac_header>
6187 _ACEOF
6188 if { (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
6201 else
6202   ac_cpp_err=yes
6203 fi
6204 if test -z "$ac_cpp_err"; then
6205   ac_header_preproc=yes
6206 else
6207   echo "$as_me: failed program was:" >&5
6208   cat conftest.$ac_ext >&5
6209   ac_header_preproc=no
6210 fi
6211 rm -f conftest.err conftest.$ac_ext
6212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6213 echo "${ECHO_T}$ac_header_preproc" >&6
6214
6215 # So?  What about this header?
6216 case $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
6219 echo "$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
6221 echo "$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
6224 echo "$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
6226 echo "$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
6228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6229 esac
6230 echo "$as_me:$LINENO: checking for $ac_header" >&5
6231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6233   echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235   eval "$as_ac_Header=$ac_header_preproc"
6236 fi
6237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6239
6240 fi
6241 if 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
6246 fi
6247
6248 done
6249
6250     ;;
6251 esac
6252
6253
6254
6255
6256
6257 for ac_header in sys/lock.h sys/mman.h sys/modem.h sys/param.h sys/ppsclock.h
6258 do
6259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6261   echo "$as_me:$LINENO: checking for $ac_header" >&5
6262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6264   echo $ECHO_N "(cached) $ECHO_C" >&6
6265 fi
6266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6268 else
6269   # Is the header compilable?
6270 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6272 cat >conftest.$ac_ext <<_ACEOF
6273 #line $LINENO "configure"
6274 #include "confdefs.h"
6275 $ac_includes_default
6276 #include <$ac_header>
6277 _ACEOF
6278 rm -f conftest.$ac_objext
6279 if { (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
6291 else
6292   echo "$as_me: failed program was:" >&5
6293 cat conftest.$ac_ext >&5
6294 ac_header_compiler=no
6295 fi
6296 rm -f conftest.$ac_objext conftest.$ac_ext
6297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6298 echo "${ECHO_T}$ac_header_compiler" >&6
6299
6300 # Is the header present?
6301 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6303 cat >conftest.$ac_ext <<_ACEOF
6304 #line $LINENO "configure"
6305 #include "confdefs.h"
6306 #include <$ac_header>
6307 _ACEOF
6308 if { (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
6321 else
6322   ac_cpp_err=yes
6323 fi
6324 if test -z "$ac_cpp_err"; then
6325   ac_header_preproc=yes
6326 else
6327   echo "$as_me: failed program was:" >&5
6328   cat conftest.$ac_ext >&5
6329   ac_header_preproc=no
6330 fi
6331 rm -f conftest.err conftest.$ac_ext
6332 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6333 echo "${ECHO_T}$ac_header_preproc" >&6
6334
6335 # So?  What about this header?
6336 case $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
6339 echo "$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
6341 echo "$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
6344 echo "$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
6346 echo "$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
6348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6349 esac
6350 echo "$as_me:$LINENO: checking for $ac_header" >&5
6351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6353   echo $ECHO_N "(cached) $ECHO_C" >&6
6354 else
6355   eval "$as_ac_Header=$ac_header_preproc"
6356 fi
6357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6359
6360 fi
6361 if 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
6366 fi
6367
6368 done
6369
6370
6371
6372
6373
6374 for ac_header in sys/ppstime.h sys/proc.h sys/resource.h sys/sched.h
6375 do
6376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6378   echo "$as_me:$LINENO: checking for $ac_header" >&5
6379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6381   echo $ECHO_N "(cached) $ECHO_C" >&6
6382 fi
6383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6385 else
6386   # Is the header compilable?
6387 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6388 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6389 cat >conftest.$ac_ext <<_ACEOF
6390 #line $LINENO "configure"
6391 #include "confdefs.h"
6392 $ac_includes_default
6393 #include <$ac_header>
6394 _ACEOF
6395 rm -f conftest.$ac_objext
6396 if { (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
6408 else
6409   echo "$as_me: failed program was:" >&5
6410 cat conftest.$ac_ext >&5
6411 ac_header_compiler=no
6412 fi
6413 rm -f conftest.$ac_objext conftest.$ac_ext
6414 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6415 echo "${ECHO_T}$ac_header_compiler" >&6
6416
6417 # Is the header present?
6418 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6420 cat >conftest.$ac_ext <<_ACEOF
6421 #line $LINENO "configure"
6422 #include "confdefs.h"
6423 #include <$ac_header>
6424 _ACEOF
6425 if { (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
6438 else
6439   ac_cpp_err=yes
6440 fi
6441 if test -z "$ac_cpp_err"; then
6442   ac_header_preproc=yes
6443 else
6444   echo "$as_me: failed program was:" >&5
6445   cat conftest.$ac_ext >&5
6446   ac_header_preproc=no
6447 fi
6448 rm -f conftest.err conftest.$ac_ext
6449 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6450 echo "${ECHO_T}$ac_header_preproc" >&6
6451
6452 # So?  What about this header?
6453 case $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
6456 echo "$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
6458 echo "$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
6461 echo "$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
6463 echo "$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
6465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6466 esac
6467 echo "$as_me:$LINENO: checking for $ac_header" >&5
6468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6470   echo $ECHO_N "(cached) $ECHO_C" >&6
6471 else
6472   eval "$as_ac_Header=$ac_header_preproc"
6473 fi
6474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6476
6477 fi
6478 if 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
6483 fi
6484
6485 done
6486
6487 case "$host" in
6488  *-*-sco*)
6489
6490 for ac_header in sys/sio.h
6491 do
6492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6494   echo "$as_me:$LINENO: checking for $ac_header" >&5
6495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6497   echo $ECHO_N "(cached) $ECHO_C" >&6
6498 fi
6499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6501 else
6502   # Is the header compilable?
6503 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6505 cat >conftest.$ac_ext <<_ACEOF
6506 #line $LINENO "configure"
6507 #include "confdefs.h"
6508 $ac_includes_default
6509 #include <$ac_header>
6510 _ACEOF
6511 rm -f conftest.$ac_objext
6512 if { (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
6524 else
6525   echo "$as_me: failed program was:" >&5
6526 cat conftest.$ac_ext >&5
6527 ac_header_compiler=no
6528 fi
6529 rm -f conftest.$ac_objext conftest.$ac_ext
6530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6531 echo "${ECHO_T}$ac_header_compiler" >&6
6532
6533 # Is the header present?
6534 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6536 cat >conftest.$ac_ext <<_ACEOF
6537 #line $LINENO "configure"
6538 #include "confdefs.h"
6539 #include <$ac_header>
6540 _ACEOF
6541 if { (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
6554 else
6555   ac_cpp_err=yes
6556 fi
6557 if test -z "$ac_cpp_err"; then
6558   ac_header_preproc=yes
6559 else
6560   echo "$as_me: failed program was:" >&5
6561   cat conftest.$ac_ext >&5
6562   ac_header_preproc=no
6563 fi
6564 rm -f conftest.err conftest.$ac_ext
6565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6566 echo "${ECHO_T}$ac_header_preproc" >&6
6567
6568 # So?  What about this header?
6569 case $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
6572 echo "$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
6574 echo "$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
6577 echo "$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
6579 echo "$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
6581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6582 esac
6583 echo "$as_me:$LINENO: checking for $ac_header" >&5
6584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6586   echo $ECHO_N "(cached) $ECHO_C" >&6
6587 else
6588   eval "$as_ac_Header=$ac_header_preproc"
6589 fi
6590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6592
6593 fi
6594 if 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
6599 fi
6600
6601 done
6602
6603     ;;
6604 esac
6605
6606
6607
6608 for ac_header in sys/select.h sys/signal.h sys/sockio.h
6609 do
6610 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6612   echo "$as_me:$LINENO: checking for $ac_header" >&5
6613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6615   echo $ECHO_N "(cached) $ECHO_C" >&6
6616 fi
6617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6619 else
6620   # Is the header compilable?
6621 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6623 cat >conftest.$ac_ext <<_ACEOF
6624 #line $LINENO "configure"
6625 #include "confdefs.h"
6626 $ac_includes_default
6627 #include <$ac_header>
6628 _ACEOF
6629 rm -f conftest.$ac_objext
6630 if { (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
6642 else
6643   echo "$as_me: failed program was:" >&5
6644 cat conftest.$ac_ext >&5
6645 ac_header_compiler=no
6646 fi
6647 rm -f conftest.$ac_objext conftest.$ac_ext
6648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6649 echo "${ECHO_T}$ac_header_compiler" >&6
6650
6651 # Is the header present?
6652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6654 cat >conftest.$ac_ext <<_ACEOF
6655 #line $LINENO "configure"
6656 #include "confdefs.h"
6657 #include <$ac_header>
6658 _ACEOF
6659 if { (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
6672 else
6673   ac_cpp_err=yes
6674 fi
6675 if test -z "$ac_cpp_err"; then
6676   ac_header_preproc=yes
6677 else
6678   echo "$as_me: failed program was:" >&5
6679   cat conftest.$ac_ext >&5
6680   ac_header_preproc=no
6681 fi
6682 rm -f conftest.err conftest.$ac_ext
6683 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6684 echo "${ECHO_T}$ac_header_preproc" >&6
6685
6686 # So?  What about this header?
6687 case $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
6690 echo "$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
6692 echo "$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
6695 echo "$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
6697 echo "$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
6699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6700 esac
6701 echo "$as_me:$LINENO: checking for $ac_header" >&5
6702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6704   echo $ECHO_N "(cached) $ECHO_C" >&6
6705 else
6706   eval "$as_ac_Header=$ac_header_preproc"
6707 fi
6708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6710
6711 fi
6712 if 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
6717 fi
6718
6719 done
6720
6721
6722
6723 for ac_header in machine/soundcard.h sys/soundcard.h
6724 do
6725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6727   echo "$as_me:$LINENO: checking for $ac_header" >&5
6728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6730   echo $ECHO_N "(cached) $ECHO_C" >&6
6731 fi
6732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6734 else
6735   # Is the header compilable?
6736 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6738 cat >conftest.$ac_ext <<_ACEOF
6739 #line $LINENO "configure"
6740 #include "confdefs.h"
6741 $ac_includes_default
6742 #include <$ac_header>
6743 _ACEOF
6744 rm -f conftest.$ac_objext
6745 if { (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
6757 else
6758   echo "$as_me: failed program was:" >&5
6759 cat conftest.$ac_ext >&5
6760 ac_header_compiler=no
6761 fi
6762 rm -f conftest.$ac_objext conftest.$ac_ext
6763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6764 echo "${ECHO_T}$ac_header_compiler" >&6
6765
6766 # Is the header present?
6767 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6769 cat >conftest.$ac_ext <<_ACEOF
6770 #line $LINENO "configure"
6771 #include "confdefs.h"
6772 #include <$ac_header>
6773 _ACEOF
6774 if { (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
6787 else
6788   ac_cpp_err=yes
6789 fi
6790 if test -z "$ac_cpp_err"; then
6791   ac_header_preproc=yes
6792 else
6793   echo "$as_me: failed program was:" >&5
6794   cat conftest.$ac_ext >&5
6795   ac_header_preproc=no
6796 fi
6797 rm -f conftest.err conftest.$ac_ext
6798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6799 echo "${ECHO_T}$ac_header_preproc" >&6
6800
6801 # So?  What about this header?
6802 case $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
6805 echo "$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
6807 echo "$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
6810 echo "$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
6812 echo "$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
6814 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6815 esac
6816 echo "$as_me:$LINENO: checking for $ac_header" >&5
6817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6819   echo $ECHO_N "(cached) $ECHO_C" >&6
6820 else
6821   eval "$as_ac_Header=$ac_header_preproc"
6822 fi
6823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6825
6826 fi
6827 if 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
6832 fi
6833
6834 done
6835
6836
6837
6838 for ac_header in sys/stat.h sys/stream.h
6839 do
6840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6842   echo "$as_me:$LINENO: checking for $ac_header" >&5
6843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6845   echo $ECHO_N "(cached) $ECHO_C" >&6
6846 fi
6847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6849 else
6850   # Is the header compilable?
6851 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6853 cat >conftest.$ac_ext <<_ACEOF
6854 #line $LINENO "configure"
6855 #include "confdefs.h"
6856 $ac_includes_default
6857 #include <$ac_header>
6858 _ACEOF
6859 rm -f conftest.$ac_objext
6860 if { (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
6872 else
6873   echo "$as_me: failed program was:" >&5
6874 cat conftest.$ac_ext >&5
6875 ac_header_compiler=no
6876 fi
6877 rm -f conftest.$ac_objext conftest.$ac_ext
6878 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6879 echo "${ECHO_T}$ac_header_compiler" >&6
6880
6881 # Is the header present?
6882 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6884 cat >conftest.$ac_ext <<_ACEOF
6885 #line $LINENO "configure"
6886 #include "confdefs.h"
6887 #include <$ac_header>
6888 _ACEOF
6889 if { (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
6902 else
6903   ac_cpp_err=yes
6904 fi
6905 if test -z "$ac_cpp_err"; then
6906   ac_header_preproc=yes
6907 else
6908   echo "$as_me: failed program was:" >&5
6909   cat conftest.$ac_ext >&5
6910   ac_header_preproc=no
6911 fi
6912 rm -f conftest.err conftest.$ac_ext
6913 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6914 echo "${ECHO_T}$ac_header_preproc" >&6
6915
6916 # So?  What about this header?
6917 case $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
6920 echo "$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
6922 echo "$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
6925 echo "$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
6927 echo "$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
6929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6930 esac
6931 echo "$as_me:$LINENO: checking for $ac_header" >&5
6932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6934   echo $ECHO_N "(cached) $ECHO_C" >&6
6935 else
6936   eval "$as_ac_Header=$ac_header_preproc"
6937 fi
6938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6940
6941 fi
6942 if 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
6947 fi
6948
6949 done
6950
6951
6952
6953
6954
6955 for ac_header in sys/stropts.h sys/sysctl.h sys/syssgi.h sys/termios.h
6956 do
6957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6959   echo "$as_me:$LINENO: checking for $ac_header" >&5
6960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6962   echo $ECHO_N "(cached) $ECHO_C" >&6
6963 fi
6964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6966 else
6967   # Is the header compilable?
6968 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6970 cat >conftest.$ac_ext <<_ACEOF
6971 #line $LINENO "configure"
6972 #include "confdefs.h"
6973 $ac_includes_default
6974 #include <$ac_header>
6975 _ACEOF
6976 rm -f conftest.$ac_objext
6977 if { (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
6989 else
6990   echo "$as_me: failed program was:" >&5
6991 cat conftest.$ac_ext >&5
6992 ac_header_compiler=no
6993 fi
6994 rm -f conftest.$ac_objext conftest.$ac_ext
6995 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6996 echo "${ECHO_T}$ac_header_compiler" >&6
6997
6998 # Is the header present?
6999 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7001 cat >conftest.$ac_ext <<_ACEOF
7002 #line $LINENO "configure"
7003 #include "confdefs.h"
7004 #include <$ac_header>
7005 _ACEOF
7006 if { (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
7019 else
7020   ac_cpp_err=yes
7021 fi
7022 if test -z "$ac_cpp_err"; then
7023   ac_header_preproc=yes
7024 else
7025   echo "$as_me: failed program was:" >&5
7026   cat conftest.$ac_ext >&5
7027   ac_header_preproc=no
7028 fi
7029 rm -f conftest.err conftest.$ac_ext
7030 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7031 echo "${ECHO_T}$ac_header_preproc" >&6
7032
7033 # So?  What about this header?
7034 case $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
7037 echo "$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
7039 echo "$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
7042 echo "$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
7044 echo "$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
7046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7047 esac
7048 echo "$as_me:$LINENO: checking for $ac_header" >&5
7049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7051   echo $ECHO_N "(cached) $ECHO_C" >&6
7052 else
7053   eval "$as_ac_Header=$ac_header_preproc"
7054 fi
7055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7057
7058 fi
7059 if 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
7064 fi
7065
7066 done
7067
7068
7069
7070 for ac_header in sys/time.h sys/signal.h
7071 do
7072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7074   echo "$as_me:$LINENO: checking for $ac_header" >&5
7075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7077   echo $ECHO_N "(cached) $ECHO_C" >&6
7078 fi
7079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7081 else
7082   # Is the header compilable?
7083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7085 cat >conftest.$ac_ext <<_ACEOF
7086 #line $LINENO "configure"
7087 #include "confdefs.h"
7088 $ac_includes_default
7089 #include <$ac_header>
7090 _ACEOF
7091 rm -f conftest.$ac_objext
7092 if { (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
7104 else
7105   echo "$as_me: failed program was:" >&5
7106 cat conftest.$ac_ext >&5
7107 ac_header_compiler=no
7108 fi
7109 rm -f conftest.$ac_objext conftest.$ac_ext
7110 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7111 echo "${ECHO_T}$ac_header_compiler" >&6
7112
7113 # Is the header present?
7114 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7115 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7116 cat >conftest.$ac_ext <<_ACEOF
7117 #line $LINENO "configure"
7118 #include "confdefs.h"
7119 #include <$ac_header>
7120 _ACEOF
7121 if { (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
7134 else
7135   ac_cpp_err=yes
7136 fi
7137 if test -z "$ac_cpp_err"; then
7138   ac_header_preproc=yes
7139 else
7140   echo "$as_me: failed program was:" >&5
7141   cat conftest.$ac_ext >&5
7142   ac_header_preproc=no
7143 fi
7144 rm -f conftest.err conftest.$ac_ext
7145 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7146 echo "${ECHO_T}$ac_header_preproc" >&6
7147
7148 # So?  What about this header?
7149 case $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
7152 echo "$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
7154 echo "$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
7157 echo "$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
7159 echo "$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
7161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7162 esac
7163 echo "$as_me:$LINENO: checking for $ac_header" >&5
7164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7166   echo $ECHO_N "(cached) $ECHO_C" >&6
7167 else
7168   eval "$as_ac_Header=$ac_header_preproc"
7169 fi
7170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7172
7173 fi
7174 if 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
7179 fi
7180
7181 done
7182
7183 cat >conftest.$ac_ext <<_ACEOF
7184 #line $LINENO "configure"
7185 #include "confdefs.h"
7186 #include <sys/timepps.h>
7187 #ifdef PPS_API_VERS_1
7188 yes
7189 #endif
7190
7191 _ACEOF
7192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7193   egrep "yes" >/dev/null 2>&1; then
7194
7195 for ac_header in sys/timepps.h
7196 do
7197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7199   echo "$as_me:$LINENO: checking for $ac_header" >&5
7200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7202   echo $ECHO_N "(cached) $ECHO_C" >&6
7203 fi
7204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7206 else
7207   # Is the header compilable?
7208 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7210 cat >conftest.$ac_ext <<_ACEOF
7211 #line $LINENO "configure"
7212 #include "confdefs.h"
7213 $ac_includes_default
7214 #include <$ac_header>
7215 _ACEOF
7216 rm -f conftest.$ac_objext
7217 if { (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
7229 else
7230   echo "$as_me: failed program was:" >&5
7231 cat conftest.$ac_ext >&5
7232 ac_header_compiler=no
7233 fi
7234 rm -f conftest.$ac_objext conftest.$ac_ext
7235 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7236 echo "${ECHO_T}$ac_header_compiler" >&6
7237
7238 # Is the header present?
7239 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7241 cat >conftest.$ac_ext <<_ACEOF
7242 #line $LINENO "configure"
7243 #include "confdefs.h"
7244 #include <$ac_header>
7245 _ACEOF
7246 if { (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
7259 else
7260   ac_cpp_err=yes
7261 fi
7262 if test -z "$ac_cpp_err"; then
7263   ac_header_preproc=yes
7264 else
7265   echo "$as_me: failed program was:" >&5
7266   cat conftest.$ac_ext >&5
7267   ac_header_preproc=no
7268 fi
7269 rm -f conftest.err conftest.$ac_ext
7270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7271 echo "${ECHO_T}$ac_header_preproc" >&6
7272
7273 # So?  What about this header?
7274 case $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
7277 echo "$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
7279 echo "$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
7282 echo "$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
7284 echo "$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
7286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7287 esac
7288 echo "$as_me:$LINENO: checking for $ac_header" >&5
7289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7291   echo $ECHO_N "(cached) $ECHO_C" >&6
7292 else
7293   eval "$as_ac_Header=$ac_header_preproc"
7294 fi
7295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7297
7298 fi
7299 if 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
7304 fi
7305
7306 done
7307
7308 fi
7309 rm -f conftest*
7310
7311
7312
7313
7314
7315
7316 for ac_header in sys/timers.h sys/timex.h sys/tpro.h sys/types.h sys/wait.h
7317 do
7318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7320   echo "$as_me:$LINENO: checking for $ac_header" >&5
7321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7323   echo $ECHO_N "(cached) $ECHO_C" >&6
7324 fi
7325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7327 else
7328   # Is the header compilable?
7329 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7331 cat >conftest.$ac_ext <<_ACEOF
7332 #line $LINENO "configure"
7333 #include "confdefs.h"
7334 $ac_includes_default
7335 #include <$ac_header>
7336 _ACEOF
7337 rm -f conftest.$ac_objext
7338 if { (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
7350 else
7351   echo "$as_me: failed program was:" >&5
7352 cat conftest.$ac_ext >&5
7353 ac_header_compiler=no
7354 fi
7355 rm -f conftest.$ac_objext conftest.$ac_ext
7356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7357 echo "${ECHO_T}$ac_header_compiler" >&6
7358
7359 # Is the header present?
7360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7362 cat >conftest.$ac_ext <<_ACEOF
7363 #line $LINENO "configure"
7364 #include "confdefs.h"
7365 #include <$ac_header>
7366 _ACEOF
7367 if { (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
7380 else
7381   ac_cpp_err=yes
7382 fi
7383 if test -z "$ac_cpp_err"; then
7384   ac_header_preproc=yes
7385 else
7386   echo "$as_me: failed program was:" >&5
7387   cat conftest.$ac_ext >&5
7388   ac_header_preproc=no
7389 fi
7390 rm -f conftest.err conftest.$ac_ext
7391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7392 echo "${ECHO_T}$ac_header_preproc" >&6
7393
7394 # So?  What about this header?
7395 case $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
7398 echo "$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
7400 echo "$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
7403 echo "$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
7405 echo "$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
7407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7408 esac
7409 echo "$as_me:$LINENO: checking for $ac_header" >&5
7410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7412   echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414   eval "$as_ac_Header=$ac_header_preproc"
7415 fi
7416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7418
7419 fi
7420 if 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
7425 fi
7426
7427 done
7428
7429 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7430 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7431 if test "${ac_cv_header_time+set}" = set; then
7432   echo $ECHO_N "(cached) $ECHO_C" >&6
7433 else
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
7447 int
7448 main ()
7449 {
7450 if ((struct tm *) 0)
7451 return 0;
7452   ;
7453   return 0;
7454 }
7455 _ACEOF
7456 rm -f conftest.$ac_objext
7457 if { (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
7469 else
7470   echo "$as_me: failed program was:" >&5
7471 cat conftest.$ac_ext >&5
7472 ac_cv_header_time=no
7473 fi
7474 rm -f conftest.$ac_objext conftest.$ac_ext
7475 fi
7476 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7477 echo "${ECHO_T}$ac_cv_header_time" >&6
7478 if test $ac_cv_header_time = yes; then
7479
7480 cat >>confdefs.h <<\_ACEOF
7481 #define TIME_WITH_SYS_TIME 1
7482 _ACEOF
7483
7484 fi
7485
7486 case "$host" in
7487 *-convex-*)
7488
7489
7490 for ac_header in /sys/sync/queue.h /sys/sync/sema.h
7491 do
7492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7494   echo "$as_me:$LINENO: checking for $ac_header" >&5
7495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7497   echo $ECHO_N "(cached) $ECHO_C" >&6
7498 fi
7499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7501 else
7502   # Is the header compilable?
7503 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7505 cat >conftest.$ac_ext <<_ACEOF
7506 #line $LINENO "configure"
7507 #include "confdefs.h"
7508 $ac_includes_default
7509 #include <$ac_header>
7510 _ACEOF
7511 rm -f conftest.$ac_objext
7512 if { (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
7524 else
7525   echo "$as_me: failed program was:" >&5
7526 cat conftest.$ac_ext >&5
7527 ac_header_compiler=no
7528 fi
7529 rm -f conftest.$ac_objext conftest.$ac_ext
7530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7531 echo "${ECHO_T}$ac_header_compiler" >&6
7532
7533 # Is the header present?
7534 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7536 cat >conftest.$ac_ext <<_ACEOF
7537 #line $LINENO "configure"
7538 #include "confdefs.h"
7539 #include <$ac_header>
7540 _ACEOF
7541 if { (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
7554 else
7555   ac_cpp_err=yes
7556 fi
7557 if test -z "$ac_cpp_err"; then
7558   ac_header_preproc=yes
7559 else
7560   echo "$as_me: failed program was:" >&5
7561   cat conftest.$ac_ext >&5
7562   ac_header_preproc=no
7563 fi
7564 rm -f conftest.err conftest.$ac_ext
7565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7566 echo "${ECHO_T}$ac_header_preproc" >&6
7567
7568 # So?  What about this header?
7569 case $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
7572 echo "$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
7574 echo "$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
7577 echo "$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
7579 echo "$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
7581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7582 esac
7583 echo "$as_me:$LINENO: checking for $ac_header" >&5
7584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7586   echo $ECHO_N "(cached) $ECHO_C" >&6
7587 else
7588   eval "$as_ac_Header=$ac_header_preproc"
7589 fi
7590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7592
7593 fi
7594 if 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
7599 fi
7600
7601 done
7602
7603   ;;
7604 *-*-bsdi*)
7605
7606
7607
7608 for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
7609 do
7610 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7612   echo "$as_me:$LINENO: checking for $ac_header" >&5
7613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7615   echo $ECHO_N "(cached) $ECHO_C" >&6
7616 fi
7617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7619 else
7620   # Is the header compilable?
7621 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7623 cat >conftest.$ac_ext <<_ACEOF
7624 #line $LINENO "configure"
7625 #include "confdefs.h"
7626 $ac_includes_default
7627 #include <$ac_header>
7628 _ACEOF
7629 rm -f conftest.$ac_objext
7630 if { (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
7642 else
7643   echo "$as_me: failed program was:" >&5
7644 cat conftest.$ac_ext >&5
7645 ac_header_compiler=no
7646 fi
7647 rm -f conftest.$ac_objext conftest.$ac_ext
7648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7649 echo "${ECHO_T}$ac_header_compiler" >&6
7650
7651 # Is the header present?
7652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7654 cat >conftest.$ac_ext <<_ACEOF
7655 #line $LINENO "configure"
7656 #include "confdefs.h"
7657 #include <$ac_header>
7658 _ACEOF
7659 if { (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
7672 else
7673   ac_cpp_err=yes
7674 fi
7675 if test -z "$ac_cpp_err"; then
7676   ac_header_preproc=yes
7677 else
7678   echo "$as_me: failed program was:" >&5
7679   cat conftest.$ac_ext >&5
7680   ac_header_preproc=no
7681 fi
7682 rm -f conftest.err conftest.$ac_ext
7683 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7684 echo "${ECHO_T}$ac_header_preproc" >&6
7685
7686 # So?  What about this header?
7687 case $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
7690 echo "$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
7692 echo "$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
7695 echo "$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
7697 echo "$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
7699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7700 esac
7701 echo "$as_me:$LINENO: checking for $ac_header" >&5
7702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7704   echo $ECHO_N "(cached) $ECHO_C" >&6
7705 else
7706   eval "$as_ac_Header=$ac_header_preproc"
7707 fi
7708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7710
7711 fi
7712 if 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
7717 fi
7718
7719 done
7720
7721   ;;
7722 esac
7723
7724 if test "${ac_cv_header_nlist_h+set}" = set; then
7725   echo "$as_me:$LINENO: checking for nlist.h" >&5
7726 echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6
7727 if test "${ac_cv_header_nlist_h+set}" = set; then
7728   echo $ECHO_N "(cached) $ECHO_C" >&6
7729 fi
7730 echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
7731 echo "${ECHO_T}$ac_cv_header_nlist_h" >&6
7732 else
7733   # Is the header compilable?
7734 echo "$as_me:$LINENO: checking nlist.h usability" >&5
7735 echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6
7736 cat >conftest.$ac_ext <<_ACEOF
7737 #line $LINENO "configure"
7738 #include "confdefs.h"
7739 $ac_includes_default
7740 #include <nlist.h>
7741 _ACEOF
7742 rm -f conftest.$ac_objext
7743 if { (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
7755 else
7756   echo "$as_me: failed program was:" >&5
7757 cat conftest.$ac_ext >&5
7758 ac_header_compiler=no
7759 fi
7760 rm -f conftest.$ac_objext conftest.$ac_ext
7761 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7762 echo "${ECHO_T}$ac_header_compiler" >&6
7763
7764 # Is the header present?
7765 echo "$as_me:$LINENO: checking nlist.h presence" >&5
7766 echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6
7767 cat >conftest.$ac_ext <<_ACEOF
7768 #line $LINENO "configure"
7769 #include "confdefs.h"
7770 #include <nlist.h>
7771 _ACEOF
7772 if { (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
7785 else
7786   ac_cpp_err=yes
7787 fi
7788 if test -z "$ac_cpp_err"; then
7789   ac_header_preproc=yes
7790 else
7791   echo "$as_me: failed program was:" >&5
7792   cat conftest.$ac_ext >&5
7793   ac_header_preproc=no
7794 fi
7795 rm -f conftest.err conftest.$ac_ext
7796 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7797 echo "${ECHO_T}$ac_header_preproc" >&6
7798
7799 # So?  What about this header?
7800 case $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
7803 echo "$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
7805 echo "$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
7808 echo "$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
7810 echo "$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
7812 echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;};;
7813 esac
7814 echo "$as_me:$LINENO: checking for nlist.h" >&5
7815 echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6
7816 if test "${ac_cv_header_nlist_h+set}" = set; then
7817   echo $ECHO_N "(cached) $ECHO_C" >&6
7818 else
7819   ac_cv_header_nlist_h=$ac_header_preproc
7820 fi
7821 echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
7822 echo "${ECHO_T}$ac_cv_header_nlist_h" >&6
7823
7824 fi
7825 if test $ac_cv_header_nlist_h = yes; then
7826
7827 cat >>confdefs.h <<\_ACEOF
7828 #define NLIST_STRUCT 1
7829 _ACEOF
7830
7831 echo "$as_me:$LINENO: checking for n_un in struct nlist" >&5
7832 echo $ECHO_N "checking for n_un in struct nlist... $ECHO_C" >&6
7833 if test "${ac_cv_struct_nlist_n_un+set}" = set; then
7834   echo $ECHO_N "(cached) $ECHO_C" >&6
7835 else
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
7846 int
7847 main ()
7848 {
7849 struct nlist n; n.n_un.n_name = 0;
7850   ;
7851   return 0;
7852 }
7853 _ACEOF
7854 rm -f conftest.$ac_objext
7855 if { (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
7867 else
7868   echo "$as_me: failed program was:" >&5
7869 cat conftest.$ac_ext >&5
7870 ac_cv_struct_nlist_n_un=no
7871 fi
7872 rm -f conftest.$ac_objext conftest.$ac_ext
7873 fi
7874 echo "$as_me:$LINENO: result: $ac_cv_struct_nlist_n_un" >&5
7875 echo "${ECHO_T}$ac_cv_struct_nlist_n_un" >&6
7876 if test $ac_cv_struct_nlist_n_un = yes; then
7877
7878 cat >>confdefs.h <<\_ACEOF
7879 #define NLIST_NAME_UNION 1
7880 _ACEOF
7881
7882 fi
7883
7884 fi
7885
7886
7887 echo "$as_me:$LINENO: checking for basic volatile support" >&5
7888 echo $ECHO_N "checking for basic volatile support... $ECHO_C" >&6
7889 if test "${ac_cv_c_volatile+set}" = set; then
7890   echo $ECHO_N "(cached) $ECHO_C" >&6
7891 else
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
7902 int
7903 main ()
7904 {
7905
7906 volatile int x;
7907   ;
7908   return 0;
7909 }
7910 _ACEOF
7911 rm -f conftest.$ac_objext
7912 if { (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
7924 else
7925   echo "$as_me: failed program was:" >&5
7926 cat conftest.$ac_ext >&5
7927 ac_cv_c_volatile=no
7928 fi
7929 rm -f conftest.$ac_objext conftest.$ac_ext
7930
7931 fi
7932 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7933 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7934 case "$ac_cv_c_volatile" in
7935  yes)
7936     ;;
7937  *)
7938 cat >>confdefs.h <<\_ACEOF
7939 #define volatile
7940 _ACEOF
7941
7942     ;;
7943 esac
7944
7945 case "$host" in
7946  sparc-*-solaris2*)
7947     # Assume that solaris2 is Ansi C...
7948     ;;
7949  *)
7950
7951
7952
7953 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
7954 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
7955 if test "${am_cv_prog_cc_stdc+set}" = set; then
7956   echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958   am_cv_prog_cc_stdc=no
7959 ac_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__
7967 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7968 do
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.  */
7978 struct buf { int x; };
7979 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7980 static char *e (p, i)
7981      char **p;
7982      int i;
7983 {
7984   return p[i];
7985 }
7986 static 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 }
7995 int test (int i, double x);
7996 struct s1 {int (*f) (int a);};
7997 struct s2 {int (*f) (double a);};
7998 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7999 int argc;
8000 char **argv;
8001
8002 #ifdef F77_DUMMY_MAIN
8003 #  ifdef __cplusplus
8004      extern "C"
8005 #  endif
8006    int F77_DUMMY_MAIN() { return 1; }
8007 #endif
8008 int
8009 main ()
8010 {
8011
8012 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
8013
8014   ;
8015   return 0;
8016 }
8017 _ACEOF
8018 rm -f conftest.$ac_objext
8019 if { (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
8031 else
8032   echo "$as_me: failed program was:" >&5
8033 cat conftest.$ac_ext >&5
8034 fi
8035 rm -f conftest.$ac_objext conftest.$ac_ext
8036 done
8037 CC="$ac_save_CC"
8038
8039 fi
8040
8041 if test -z "$am_cv_prog_cc_stdc"; then
8042   echo "$as_me:$LINENO: result: none needed" >&5
8043 echo "${ECHO_T}none needed" >&6
8044 else
8045   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
8046 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
8047 fi
8048 case "x$am_cv_prog_cc_stdc" in
8049   x|xno) ;;
8050   *) CC="$CC $am_cv_prog_cc_stdc" ;;
8051 esac
8052
8053
8054
8055 echo "$as_me:$LINENO: checking for function prototypes" >&5
8056 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8057 if test "$am_cv_prog_cc_stdc" != no; then
8058   echo "$as_me:$LINENO: result: yes" >&5
8059 echo "${ECHO_T}yes" >&6
8060
8061 cat >>confdefs.h <<\_ACEOF
8062 #define PROTOTYPES 1
8063 _ACEOF
8064
8065   U= ANSI2KNR=
8066 else
8067   echo "$as_me:$LINENO: result: no" >&5
8068 echo "${ECHO_T}no" >&6
8069   U=_ ANSI2KNR=./ansi2knr
8070 fi
8071 # Ensure some checks needed by ansi2knr itself.
8072 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8073 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8074 if test "${ac_cv_header_stdc+set}" = set; then
8075   echo $ECHO_N "(cached) $ECHO_C" >&6
8076 else
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
8086 if { (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
8099 else
8100   ac_cpp_err=yes
8101 fi
8102 if test -z "$ac_cpp_err"; then
8103   ac_cv_header_stdc=yes
8104 else
8105   echo "$as_me: failed program was:" >&5
8106   cat conftest.$ac_ext >&5
8107   ac_cv_header_stdc=no
8108 fi
8109 rm -f conftest.err conftest.$ac_ext
8110
8111 if 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
8119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8120   egrep "memchr" >/dev/null 2>&1; then
8121   :
8122 else
8123   ac_cv_header_stdc=no
8124 fi
8125 rm -f conftest*
8126
8127 fi
8128
8129 if 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
8137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8138   egrep "free" >/dev/null 2>&1; then
8139   :
8140 else
8141   ac_cv_header_stdc=no
8142 fi
8143 rm -f conftest*
8144
8145 fi
8146
8147 if 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   :
8151 else
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)))
8167 int
8168 main ()
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
8178 rm -f conftest$ac_exeext
8179 if { (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   :
8190 else
8191   echo "$as_me: program exited with status $ac_status" >&5
8192 echo "$as_me: failed program was:" >&5
8193 cat conftest.$ac_ext >&5
8194 ( exit $ac_status )
8195 ac_cv_header_stdc=no
8196 fi
8197 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8198 fi
8199 fi
8200 fi
8201 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8202 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8203 if test $ac_cv_header_stdc = yes; then
8204
8205 cat >>confdefs.h <<\_ACEOF
8206 #define STDC_HEADERS 1
8207 _ACEOF
8208
8209 fi
8210
8211
8212 for ac_header in string.h
8213 do
8214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8216   echo "$as_me:$LINENO: checking for $ac_header" >&5
8217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8219   echo $ECHO_N "(cached) $ECHO_C" >&6
8220 fi
8221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8223 else
8224   # Is the header compilable?
8225 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8226 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8227 cat >conftest.$ac_ext <<_ACEOF
8228 #line $LINENO "configure"
8229 #include "confdefs.h"
8230 $ac_includes_default
8231 #include <$ac_header>
8232 _ACEOF
8233 rm -f conftest.$ac_objext
8234 if { (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
8246 else
8247   echo "$as_me: failed program was:" >&5
8248 cat conftest.$ac_ext >&5
8249 ac_header_compiler=no
8250 fi
8251 rm -f conftest.$ac_objext conftest.$ac_ext
8252 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8253 echo "${ECHO_T}$ac_header_compiler" >&6
8254
8255 # Is the header present?
8256 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8257 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8258 cat >conftest.$ac_ext <<_ACEOF
8259 #line $LINENO "configure"
8260 #include "confdefs.h"
8261 #include <$ac_header>
8262 _ACEOF
8263 if { (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
8276 else
8277   ac_cpp_err=yes
8278 fi
8279 if test -z "$ac_cpp_err"; then
8280   ac_header_preproc=yes
8281 else
8282   echo "$as_me: failed program was:" >&5
8283   cat conftest.$ac_ext >&5
8284   ac_header_preproc=no
8285 fi
8286 rm -f conftest.err conftest.$ac_ext
8287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8288 echo "${ECHO_T}$ac_header_preproc" >&6
8289
8290 # So?  What about this header?
8291 case $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
8294 echo "$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
8296 echo "$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
8299 echo "$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
8301 echo "$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
8303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8304 esac
8305 echo "$as_me:$LINENO: checking for $ac_header" >&5
8306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8308   echo $ECHO_N "(cached) $ECHO_C" >&6
8309 else
8310   eval "$as_ac_Header=$ac_header_preproc"
8311 fi
8312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8314
8315 fi
8316 if 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
8321 fi
8322
8323 done
8324
8325
8326     ;;
8327 esac
8328 echo "$as_me:$LINENO: checking if C compiler permits function prototypes" >&5
8329 echo $ECHO_N "checking if C compiler permits function prototypes... $ECHO_C" >&6
8330 if test "${ac_cv_have_prototypes+set}" = set; then
8331   echo $ECHO_N "(cached) $ECHO_C" >&6
8332 else
8333   cat >conftest.$ac_ext <<_ACEOF
8334 #line $LINENO "configure"
8335 #include "confdefs.h"
8336
8337 extern int foo (short);
8338 int 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
8345 int
8346 main ()
8347 {
8348
8349 int i;
8350   ;
8351   return 0;
8352 }
8353 _ACEOF
8354 rm -f conftest.$ac_objext
8355 if { (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
8367 else
8368   echo "$as_me: failed program was:" >&5
8369 cat conftest.$ac_ext >&5
8370 ac_cv_have_prototypes=no
8371 fi
8372 rm -f conftest.$ac_objext conftest.$ac_ext
8373
8374 fi
8375 echo "$as_me:$LINENO: result: $ac_cv_have_prototypes" >&5
8376 echo "${ECHO_T}$ac_cv_have_prototypes" >&6
8377 if test "$ac_cv_have_prototypes" = yes; then
8378
8379 cat >>confdefs.h <<\_ACEOF
8380 #define HAVE_PROTOTYPES 1
8381 _ACEOF
8382
8383 fi
8384
8385 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8386 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8387 if test "${ac_cv_c_const+set}" = set; then
8388   echo $ECHO_N "(cached) $ECHO_C" >&6
8389 else
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
8400 int
8401 main ()
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
8454 rm -f conftest.$ac_objext
8455 if { (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
8467 else
8468   echo "$as_me: failed program was:" >&5
8469 cat conftest.$ac_ext >&5
8470 ac_cv_c_const=no
8471 fi
8472 rm -f conftest.$ac_objext conftest.$ac_ext
8473 fi
8474 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8475 echo "${ECHO_T}$ac_cv_c_const" >&6
8476 if test $ac_cv_c_const = no; then
8477
8478 cat >>confdefs.h <<\_ACEOF
8479 #define const
8480 _ACEOF
8481
8482 fi
8483
8484 case "$build" in
8485  $host)
8486     echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8487 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8488 if test "${ac_cv_c_bigendian+set}" = set; then
8489   echo $ECHO_N "(cached) $ECHO_C" >&6
8490 else
8491   # See if sys/param.h defines the BYTE_ORDER macro.
8492 cat >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
8504 int
8505 main ()
8506 {
8507 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8508  bogus endian macros
8509 #endif
8510
8511   ;
8512   return 0;
8513 }
8514 _ACEOF
8515 rm -f conftest.$ac_objext
8516 if { (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.
8528 cat >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
8540 int
8541 main ()
8542 {
8543 #if BYTE_ORDER != BIG_ENDIAN
8544  not big endian
8545 #endif
8546
8547   ;
8548   return 0;
8549 }
8550 _ACEOF
8551 rm -f conftest.$ac_objext
8552 if { (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
8564 else
8565   echo "$as_me: failed program was:" >&5
8566 cat conftest.$ac_ext >&5
8567 ac_cv_c_bigendian=no
8568 fi
8569 rm -f conftest.$ac_objext conftest.$ac_ext
8570 else
8571   echo "$as_me: failed program was:" >&5
8572 cat conftest.$ac_ext >&5
8573 # It does not; compile a test program.
8574 if 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"
8580 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8581 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8582 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8583 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8584 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8585 void _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
8592 int
8593 main ()
8594 {
8595  _ascii (); _ebcdic ();
8596   ;
8597   return 0;
8598 }
8599 _ACEOF
8600 rm -f conftest.$ac_objext
8601 if { (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
8614 fi
8615 if 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
8622 fi
8623 else
8624   echo "$as_me: failed program was:" >&5
8625 cat conftest.$ac_ext >&5
8626 fi
8627 rm -f conftest.$ac_objext conftest.$ac_ext
8628 else
8629   cat >conftest.$ac_ext <<_ACEOF
8630 #line $LINENO "configure"
8631 #include "confdefs.h"
8632 int
8633 main ()
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
8645 rm -f conftest$ac_exeext
8646 if { (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
8657 else
8658   echo "$as_me: program exited with status $ac_status" >&5
8659 echo "$as_me: failed program was:" >&5
8660 cat conftest.$ac_ext >&5
8661 ( exit $ac_status )
8662 ac_cv_c_bigendian=yes
8663 fi
8664 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8665 fi
8666 fi
8667 rm -f conftest.$ac_objext conftest.$ac_ext
8668 fi
8669 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8670 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8671 case $ac_cv_c_bigendian in
8672   yes)
8673
8674 cat >>confdefs.h <<\_ACEOF
8675 #define WORDS_BIGENDIAN 1
8676 _ACEOF
8677  ;;
8678   no)
8679      ;;
8680   *)
8681     { { echo "$as_me:$LINENO: error: unknown endianess
8682 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8683 echo "$as_me: error: unknown endianess
8684 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8685    { (exit 1); exit 1; }; } ;;
8686 esac
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
8700 echo "$as_me: error: Cross-compiling needs explicit byte order" >&2;}
8701    { (exit 1); exit 1; }; }
8702         ;;
8703     esac
8704     ;;
8705 esac
8706 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8707 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8708 if test "${ac_cv_type_signal+set}" = set; then
8709   echo $ECHO_N "(cached) $ECHO_C" >&6
8710 else
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
8720 extern "C" void (*signal (int, void (*)(int)))(int);
8721 #else
8722 void (*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
8731 int
8732 main ()
8733 {
8734 int i;
8735   ;
8736   return 0;
8737 }
8738 _ACEOF
8739 rm -f conftest.$ac_objext
8740 if { (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
8752 else
8753   echo "$as_me: failed program was:" >&5
8754 cat conftest.$ac_ext >&5
8755 ac_cv_type_signal=int
8756 fi
8757 rm -f conftest.$ac_objext conftest.$ac_ext
8758 fi
8759 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8760 echo "${ECHO_T}$ac_cv_type_signal" >&6
8761
8762 cat >>confdefs.h <<_ACEOF
8763 #define RETSIGTYPE $ac_cv_type_signal
8764 _ACEOF
8765
8766
8767 echo "$as_me:$LINENO: checking for off_t" >&5
8768 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8769 if test "${ac_cv_type_off_t+set}" = set; then
8770   echo $ECHO_N "(cached) $ECHO_C" >&6
8771 else
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
8782 int
8783 main ()
8784 {
8785 if ((off_t *) 0)
8786   return 0;
8787 if (sizeof (off_t))
8788   return 0;
8789   ;
8790   return 0;
8791 }
8792 _ACEOF
8793 rm -f conftest.$ac_objext
8794 if { (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
8806 else
8807   echo "$as_me: failed program was:" >&5
8808 cat conftest.$ac_ext >&5
8809 ac_cv_type_off_t=no
8810 fi
8811 rm -f conftest.$ac_objext conftest.$ac_ext
8812 fi
8813 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8814 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8815 if test $ac_cv_type_off_t = yes; then
8816   :
8817 else
8818
8819 cat >>confdefs.h <<_ACEOF
8820 #define off_t long
8821 _ACEOF
8822
8823 fi
8824
8825 echo "$as_me:$LINENO: checking for size_t" >&5
8826 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8827 if test "${ac_cv_type_size_t+set}" = set; then
8828   echo $ECHO_N "(cached) $ECHO_C" >&6
8829 else
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
8840 int
8841 main ()
8842 {
8843 if ((size_t *) 0)
8844   return 0;
8845 if (sizeof (size_t))
8846   return 0;
8847   ;
8848   return 0;
8849 }
8850 _ACEOF
8851 rm -f conftest.$ac_objext
8852 if { (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
8864 else
8865   echo "$as_me: failed program was:" >&5
8866 cat conftest.$ac_ext >&5
8867 ac_cv_type_size_t=no
8868 fi
8869 rm -f conftest.$ac_objext conftest.$ac_ext
8870 fi
8871 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8872 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8873 if test $ac_cv_type_size_t = yes; then
8874   :
8875 else
8876
8877 cat >>confdefs.h <<_ACEOF
8878 #define size_t unsigned
8879 _ACEOF
8880
8881 fi
8882
8883 echo "$as_me:$LINENO: checking for time_t" >&5
8884 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
8885 if test "${ac_cv_type_time_t+set}" = set; then
8886   echo $ECHO_N "(cached) $ECHO_C" >&6
8887 else
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
8898 int
8899 main ()
8900 {
8901 if ((time_t *) 0)
8902   return 0;
8903 if (sizeof (time_t))
8904   return 0;
8905   ;
8906   return 0;
8907 }
8908 _ACEOF
8909 rm -f conftest.$ac_objext
8910 if { (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
8922 else
8923   echo "$as_me: failed program was:" >&5
8924 cat conftest.$ac_ext >&5
8925 ac_cv_type_time_t=no
8926 fi
8927 rm -f conftest.$ac_objext conftest.$ac_ext
8928 fi
8929 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
8930 echo "${ECHO_T}$ac_cv_type_time_t" >&6
8931 if test $ac_cv_type_time_t = yes; then
8932   :
8933 else
8934
8935 cat >>confdefs.h <<_ACEOF
8936 #define time_t long
8937 _ACEOF
8938
8939 fi
8940
8941 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8942 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8943 if test "${ac_cv_struct_tm+set}" = set; then
8944   echo $ECHO_N "(cached) $ECHO_C" >&6
8945 else
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
8958 int
8959 main ()
8960 {
8961 struct tm *tp; tp->tm_sec;
8962   ;
8963   return 0;
8964 }
8965 _ACEOF
8966 rm -f conftest.$ac_objext
8967 if { (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
8979 else
8980   echo "$as_me: failed program was:" >&5
8981 cat conftest.$ac_ext >&5
8982 ac_cv_struct_tm=sys/time.h
8983 fi
8984 rm -f conftest.$ac_objext conftest.$ac_ext
8985 fi
8986 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8987 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8988 if test $ac_cv_struct_tm = sys/time.h; then
8989
8990 cat >>confdefs.h <<\_ACEOF
8991 #define TM_IN_SYS_TIME 1
8992 _ACEOF
8993
8994 fi
8995
8996
8997 echo "$as_me:$LINENO: checking for a fallback value for HZ" >&5
8998 echo $ECHO_N "checking for a fallback value for HZ... $ECHO_C" >&6
8999 if test "${ac_cv_var_default_hz+set}" = set; then
9000   echo $ECHO_N "(cached) $ECHO_C" >&6
9001 else
9002   ac_cv_var_default_hz=100
9003 case "$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     ;;
9010 esac
9011 fi
9012 echo "$as_me:$LINENO: result: $ac_cv_var_default_hz" >&5
9013 echo "${ECHO_T}$ac_cv_var_default_hz" >&6
9014
9015 cat >>confdefs.h <<_ACEOF
9016 #define DEFAULT_HZ $ac_cv_var_default_hz
9017 _ACEOF
9018
9019
9020 echo "$as_me:$LINENO: checking if we need to override the system's value for HZ" >&5
9021 echo $ECHO_N "checking if we need to override the system's value for HZ... $ECHO_C" >&6
9022 if test "${ac_cv_var_override_hz+set}" = set; then
9023   echo $ECHO_N "(cached) $ECHO_C" >&6
9024 else
9025   ac_cv_var_override_hz=no
9026 case "$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     ;;
9039 esac
9040 fi
9041 echo "$as_me:$LINENO: result: $ac_cv_var_override_hz" >&5
9042 echo "${ECHO_T}$ac_cv_var_override_hz" >&6
9043 case "$ac_cv_var_override_hz" in
9044  yes)
9045
9046 cat >>confdefs.h <<\_ACEOF
9047 #define OVERRIDE_HZ 1
9048 _ACEOF
9049
9050     ;;
9051 esac
9052
9053
9054
9055 echo "$as_me:$LINENO: checking struct sigaction for sa_sigaction" >&5
9056 echo $ECHO_N "checking struct sigaction for sa_sigaction... $ECHO_C" >&6
9057 if test "${ac_cv_struct_sigaction_has_sa_sigaction+set}" = set; then
9058   echo $ECHO_N "(cached) $ECHO_C" >&6
9059 else
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
9071 int
9072 main ()
9073 {
9074 struct sigaction act; act.sa_sigaction = 0;
9075   ;
9076   return 0;
9077 }
9078 _ACEOF
9079 rm -f conftest.$ac_objext
9080 if { (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
9092 else
9093   echo "$as_me: failed program was:" >&5
9094 cat conftest.$ac_ext >&5
9095 ac_cv_struct_sigaction_has_sa_sigaction=no
9096
9097 fi
9098 rm -f conftest.$ac_objext conftest.$ac_ext
9099
9100
9101 fi
9102 echo "$as_me:$LINENO: result: $ac_cv_struct_sigaction_has_sa_sigaction" >&5
9103 echo "${ECHO_T}$ac_cv_struct_sigaction_has_sa_sigaction" >&6
9104 if test $ac_cv_struct_sigaction_has_sa_sigaction = yes; then
9105
9106 cat >>confdefs.h <<\_ACEOF
9107 #define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1
9108 _ACEOF
9109
9110 fi
9111
9112 echo "$as_me:$LINENO: checking for struct ppsclockev" >&5
9113 echo $ECHO_N "checking for struct ppsclockev... $ECHO_C" >&6
9114 if test "${ac_cv_struct_ppsclockev+set}" = set; then
9115   echo $ECHO_N "(cached) $ECHO_C" >&6
9116 else
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
9137 int
9138 main ()
9139 {
9140
9141 extern struct ppsclockev *pce;
9142 return pce->serial;
9143   ;
9144   return 0;
9145 }
9146 _ACEOF
9147 rm -f conftest.$ac_objext
9148 if { (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
9160 else
9161   echo "$as_me: failed program was:" >&5
9162 cat conftest.$ac_ext >&5
9163 ac_cv_struct_ppsclockev=no
9164 fi
9165 rm -f conftest.$ac_objext conftest.$ac_ext
9166
9167 fi
9168 echo "$as_me:$LINENO: result: $ac_cv_struct_ppsclockev" >&5
9169 echo "${ECHO_T}$ac_cv_struct_ppsclockev" >&6
9170 if test $ac_cv_struct_ppsclockev = yes; then
9171
9172 cat >>confdefs.h <<\_ACEOF
9173 #define HAVE_STRUCT_PPSCLOCKEV 1
9174 _ACEOF
9175
9176 fi
9177
9178 echo "$as_me:$LINENO: checking struct sockaddr for sa_len" >&5
9179 echo $ECHO_N "checking struct sockaddr for sa_len... $ECHO_C" >&6
9180 if test "${ac_cv_struct_sockaddr_has_sa_len+set}" = set; then
9181   echo $ECHO_N "(cached) $ECHO_C" >&6
9182 else
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
9195 int
9196 main ()
9197 {
9198
9199 extern struct sockaddr *ps;
9200 return ps->sa_len;
9201   ;
9202   return 0;
9203 }
9204 _ACEOF
9205 rm -f conftest.$ac_objext
9206 if { (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
9218 else
9219   echo "$as_me: failed program was:" >&5
9220 cat conftest.$ac_ext >&5
9221 ac_cv_struct_sockaddr_has_sa_len=no
9222 fi
9223 rm -f conftest.$ac_objext conftest.$ac_ext
9224
9225 fi
9226 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_has_sa_len" >&5
9227 echo "${ECHO_T}$ac_cv_struct_sockaddr_has_sa_len" >&6
9228 if test $ac_cv_struct_sockaddr_has_sa_len = yes; then
9229
9230 cat >>confdefs.h <<\_ACEOF
9231 #define HAVE_SA_LEN_IN_STRUCT_SOCKADDR 1
9232 _ACEOF
9233
9234 fi
9235
9236 case "$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
9239 echo $ECHO_N "checking for struct snd_size... $ECHO_C" >&6
9240 if test "${ac_cv_struct_snd_size+set}" = set; then
9241   echo $ECHO_N "(cached) $ECHO_C" >&6
9242 else
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
9259 int
9260 main ()
9261 {
9262
9263 extern struct snd_size *ss;
9264 return ss->rec_size;
9265   ;
9266   return 0;
9267 }
9268 _ACEOF
9269 rm -f conftest.$ac_objext
9270 if { (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
9282 else
9283   echo "$as_me: failed program was:" >&5
9284 cat conftest.$ac_ext >&5
9285 ac_cv_struct_snd_size=no
9286 fi
9287 rm -f conftest.$ac_objext conftest.$ac_ext
9288
9289 fi
9290 echo "$as_me:$LINENO: result: $ac_cv_struct_snd_size" >&5
9291 echo "${ECHO_T}$ac_cv_struct_snd_size" >&6
9292     case "$ac_cv_struct_snd_size" in
9293      yes)
9294 cat >>confdefs.h <<\_ACEOF
9295 #define HAVE_STRUCT_SND_SIZE 1
9296 _ACEOF
9297  ;;
9298     esac
9299     ;;
9300 esac
9301
9302 echo "$as_me:$LINENO: checking struct clockinfo for hz" >&5
9303 echo $ECHO_N "checking struct clockinfo for hz... $ECHO_C" >&6
9304 if test "${ac_cv_struct_clockinfo_has_hz+set}" = set; then
9305   echo $ECHO_N "(cached) $ECHO_C" >&6
9306 else
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
9318 int
9319 main ()
9320 {
9321
9322 extern struct clockinfo *pc;
9323 return pc->hz;
9324   ;
9325   return 0;
9326 }
9327 _ACEOF
9328 rm -f conftest.$ac_objext
9329 if { (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
9341 else
9342   echo "$as_me: failed program was:" >&5
9343 cat conftest.$ac_ext >&5
9344 ac_cv_struct_clockinfo_has_hz=no
9345 fi
9346 rm -f conftest.$ac_objext conftest.$ac_ext
9347
9348 fi
9349 echo "$as_me:$LINENO: result: $ac_cv_struct_clockinfo_has_hz" >&5
9350 echo "${ECHO_T}$ac_cv_struct_clockinfo_has_hz" >&6
9351 if test $ac_cv_struct_clockinfo_has_hz = yes; then
9352
9353 cat >>confdefs.h <<\_ACEOF
9354 #define HAVE_HZ_IN_STRUCT_CLOCKINFO 1
9355 _ACEOF
9356
9357 fi
9358
9359 echo "$as_me:$LINENO: checking struct clockinfo for tickadj" >&5
9360 echo $ECHO_N "checking struct clockinfo for tickadj... $ECHO_C" >&6
9361 if test "${ac_cv_struct_clockinfo_has_tickadj+set}" = set; then
9362   echo $ECHO_N "(cached) $ECHO_C" >&6
9363 else
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
9375 int
9376 main ()
9377 {
9378
9379 extern struct clockinfo *pc;
9380 return pc->tickadj;
9381   ;
9382   return 0;
9383 }
9384 _ACEOF
9385 rm -f conftest.$ac_objext
9386 if { (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
9398 else
9399   echo "$as_me: failed program was:" >&5
9400 cat conftest.$ac_ext >&5
9401 ac_cv_struct_clockinfo_has_tickadj=no
9402 fi
9403 rm -f conftest.$ac_objext conftest.$ac_ext
9404
9405 fi
9406 echo "$as_me:$LINENO: result: $ac_cv_struct_clockinfo_has_tickadj" >&5
9407 echo "${ECHO_T}$ac_cv_struct_clockinfo_has_tickadj" >&6
9408 if test $ac_cv_struct_clockinfo_has_tickadj = yes; then
9409
9410 cat >>confdefs.h <<\_ACEOF
9411 #define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1
9412 _ACEOF
9413
9414 fi
9415
9416 echo "$as_me:$LINENO: checking for struct timespec" >&5
9417 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
9418 if test "${ac_cv_struct_timespec+set}" = set; then
9419   echo $ECHO_N "(cached) $ECHO_C" >&6
9420 else
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
9440 int
9441 main ()
9442 {
9443 struct timespec n;
9444   ;
9445   return 0;
9446 }
9447 _ACEOF
9448 rm -f conftest.$ac_objext
9449 if { (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
9461 else
9462   echo "$as_me: failed program was:" >&5
9463 cat conftest.$ac_ext >&5
9464 ac_cv_struct_timespec=no
9465 fi
9466 rm -f conftest.$ac_objext conftest.$ac_ext
9467 fi
9468 echo "$as_me:$LINENO: result: $ac_cv_struct_timespec" >&5
9469 echo "${ECHO_T}$ac_cv_struct_timespec" >&6
9470 if test $ac_cv_struct_timespec = yes; then
9471
9472 cat >>confdefs.h <<\_ACEOF
9473 #define HAVE_STRUCT_TIMESPEC 1
9474 _ACEOF
9475
9476 fi
9477
9478 echo "$as_me:$LINENO: checking for struct ntptimeval" >&5
9479 echo $ECHO_N "checking for struct ntptimeval... $ECHO_C" >&6
9480 if test "${ac_cv_struct_ntptimeval+set}" = set; then
9481   echo $ECHO_N "(cached) $ECHO_C" >&6
9482 else
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
9495 int
9496 main ()
9497 {
9498 struct ntptimeval n;
9499   ;
9500   return 0;
9501 }
9502 _ACEOF
9503 rm -f conftest.$ac_objext
9504 if { (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
9516 else
9517   echo "$as_me: failed program was:" >&5
9518 cat conftest.$ac_ext >&5
9519 ac_cv_struct_ntptimeval=no
9520 fi
9521 rm -f conftest.$ac_objext conftest.$ac_ext
9522 fi
9523 echo "$as_me:$LINENO: result: $ac_cv_struct_ntptimeval" >&5
9524 echo "${ECHO_T}$ac_cv_struct_ntptimeval" >&6
9525 if test $ac_cv_struct_ntptimeval = yes; then
9526
9527 cat >>confdefs.h <<\_ACEOF
9528 #define HAVE_STRUCT_NTPTIMEVAL 1
9529 _ACEOF
9530
9531 fi
9532
9533 echo "$as_me:$LINENO: checking for struct ntptimeval.time.tv_nsec" >&5
9534 echo $ECHO_N "checking for struct ntptimeval.time.tv_nsec... $ECHO_C" >&6
9535 if test "${ac_cv_member_struct_ntptimeval_time_tv_nsec+set}" = set; then
9536   echo $ECHO_N "(cached) $ECHO_C" >&6
9537 else
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
9562 int
9563 main ()
9564 {
9565 static struct ntptimeval ac_aggr;
9566 if (ac_aggr.time.tv_nsec)
9567 return 0;
9568   ;
9569   return 0;
9570 }
9571 _ACEOF
9572 rm -f conftest.$ac_objext
9573 if { (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
9585 else
9586   echo "$as_me: failed program was:" >&5
9587 cat conftest.$ac_ext >&5
9588 ac_cv_member_struct_ntptimeval_time_tv_nsec=no
9589 fi
9590 rm -f conftest.$ac_objext conftest.$ac_ext
9591 fi
9592 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ntptimeval_time_tv_nsec" >&5
9593 echo "${ECHO_T}$ac_cv_member_struct_ntptimeval_time_tv_nsec" >&6
9594 if test $ac_cv_member_struct_ntptimeval_time_tv_nsec = yes; then
9595
9596 cat >>confdefs.h <<_ACEOF
9597 #define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
9598 _ACEOF
9599
9600
9601 fi
9602
9603
9604 echo "$as_me:$LINENO: checking for inline" >&5
9605 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9606 if test "${ac_cv_c_inline+set}" = set; then
9607   echo $ECHO_N "(cached) $ECHO_C" >&6
9608 else
9609   ac_cv_c_inline=no
9610 for ac_kw in inline __inline__ __inline; do
9611   cat >conftest.$ac_ext <<_ACEOF
9612 #line $LINENO "configure"
9613 #include "confdefs.h"
9614 #ifndef __cplusplus
9615 static $ac_kw int static_foo () {return 0; }
9616 $ac_kw int foo () {return 0; }
9617 #endif
9618
9619 _ACEOF
9620 rm -f conftest.$ac_objext
9621 if { (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
9633 else
9634   echo "$as_me: failed program was:" >&5
9635 cat conftest.$ac_ext >&5
9636 fi
9637 rm -f conftest.$ac_objext conftest.$ac_ext
9638 done
9639
9640 fi
9641 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9642 echo "${ECHO_T}$ac_cv_c_inline" >&6
9643 case $ac_cv_c_inline in
9644   inline | yes) ;;
9645   no)
9646 cat >>confdefs.h <<\_ACEOF
9647 #define inline
9648 _ACEOF
9649  ;;
9650   *)  cat >>confdefs.h <<_ACEOF
9651 #define inline $ac_cv_c_inline
9652 _ACEOF
9653  ;;
9654 esac
9655
9656
9657 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
9658 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
9659 if test "${ac_cv_c_char_unsigned+set}" = set; then
9660   echo $ECHO_N "(cached) $ECHO_C" >&6
9661 else
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
9672 int
9673 main ()
9674 {
9675 static int test_array [1 - 2 * !(((char) -1) < 0)];
9676 test_array [0] = 0
9677
9678   ;
9679   return 0;
9680 }
9681 _ACEOF
9682 rm -f conftest.$ac_objext
9683 if { (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
9695 else
9696   echo "$as_me: failed program was:" >&5
9697 cat conftest.$ac_ext >&5
9698 ac_cv_c_char_unsigned=yes
9699 fi
9700 rm -f conftest.$ac_objext conftest.$ac_ext
9701 fi
9702 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
9703 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
9704 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
9705   cat >>confdefs.h <<\_ACEOF
9706 #define __CHAR_UNSIGNED__ 1
9707 _ACEOF
9708
9709 fi
9710                 echo "$as_me:$LINENO: checking for signed char" >&5
9711 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
9712 if test "${ac_cv_type_signed_char+set}" = set; then
9713   echo $ECHO_N "(cached) $ECHO_C" >&6
9714 else
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
9725 int
9726 main ()
9727 {
9728 if ((signed char *) 0)
9729   return 0;
9730 if (sizeof (signed char))
9731   return 0;
9732   ;
9733   return 0;
9734 }
9735 _ACEOF
9736 rm -f conftest.$ac_objext
9737 if { (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
9749 else
9750   echo "$as_me: failed program was:" >&5
9751 cat conftest.$ac_ext >&5
9752 ac_cv_type_signed_char=no
9753 fi
9754 rm -f conftest.$ac_objext conftest.$ac_ext
9755 fi
9756 echo "$as_me:$LINENO: result: $ac_cv_type_signed_char" >&5
9757 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
9758
9759 echo "$as_me:$LINENO: checking size of signed char" >&5
9760 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
9761 if test "${ac_cv_sizeof_signed_char+set}" = set; then
9762   echo $ECHO_N "(cached) $ECHO_C" >&6
9763 else
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.
9771 cat >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
9781 int
9782 main ()
9783 {
9784 static int test_array [1 - 2 * !(((long) (sizeof (signed char))) >= 0)];
9785 test_array [0] = 0
9786
9787   ;
9788   return 0;
9789 }
9790 _ACEOF
9791 rm -f conftest.$ac_objext
9792 if { (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
9815 int
9816 main ()
9817 {
9818 static int test_array [1 - 2 * !(((long) (sizeof (signed char))) <= $ac_mid)];
9819 test_array [0] = 0
9820
9821   ;
9822   return 0;
9823 }
9824 _ACEOF
9825 rm -f conftest.$ac_objext
9826 if { (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
9838 else
9839   echo "$as_me: failed program was:" >&5
9840 cat conftest.$ac_ext >&5
9841 ac_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`
9847 fi
9848 rm -f conftest.$ac_objext conftest.$ac_ext
9849   done
9850 else
9851   echo "$as_me: failed program was:" >&5
9852 cat conftest.$ac_ext >&5
9853 cat >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
9863 int
9864 main ()
9865 {
9866 static int test_array [1 - 2 * !(((long) (sizeof (signed char))) < 0)];
9867 test_array [0] = 0
9868
9869   ;
9870   return 0;
9871 }
9872 _ACEOF
9873 rm -f conftest.$ac_objext
9874 if { (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
9897 int
9898 main ()
9899 {
9900 static int test_array [1 - 2 * !(((long) (sizeof (signed char))) >= $ac_mid)];
9901 test_array [0] = 0
9902
9903   ;
9904   return 0;
9905 }
9906 _ACEOF
9907 rm -f conftest.$ac_objext
9908 if { (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
9920 else
9921   echo "$as_me: failed program was:" >&5
9922 cat conftest.$ac_ext >&5
9923 ac_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`
9929 fi
9930 rm -f conftest.$ac_objext conftest.$ac_ext
9931   done
9932 else
9933   echo "$as_me: failed program was:" >&5
9934 cat conftest.$ac_ext >&5
9935 ac_lo= ac_hi=
9936 fi
9937 rm -f conftest.$ac_objext conftest.$ac_ext
9938 fi
9939 rm -f conftest.$ac_objext conftest.$ac_ext
9940 # Binary search between lo and hi bounds.
9941 while 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
9953 int
9954 main ()
9955 {
9956 static int test_array [1 - 2 * !(((long) (sizeof (signed char))) <= $ac_mid)];
9957 test_array [0] = 0
9958
9959   ;
9960   return 0;
9961 }
9962 _ACEOF
9963 rm -f conftest.$ac_objext
9964 if { (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
9976 else
9977   echo "$as_me: failed program was:" >&5
9978 cat conftest.$ac_ext >&5
9979 ac_lo=`expr '(' $ac_mid ')' + 1`
9980 fi
9981 rm -f conftest.$ac_objext conftest.$ac_ext
9982 done
9983 case $ac_lo in
9984 ?*) ac_cv_sizeof_signed_char=$ac_lo;;
9985 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char), 77" >&5
9986 echo "$as_me: error: cannot compute sizeof (signed char), 77" >&2;}
9987    { (exit 1); exit 1; }; } ;;
9988 esac
9989 else
9990   if test "$cross_compiling" = yes; then
9991   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
9992 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9993    { (exit 1); exit 1; }; }
9994 else
9995   cat >conftest.$ac_ext <<_ACEOF
9996 #line $LINENO "configure"
9997 #include "confdefs.h"
9998 $ac_includes_default
9999 long longval () { return (long) (sizeof (signed char)); }
10000 unsigned 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
10009 int
10010 main ()
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
10036 rm -f conftest$ac_exeext
10037 if { (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`
10048 else
10049   echo "$as_me: program exited with status $ac_status" >&5
10050 echo "$as_me: failed program was:" >&5
10051 cat conftest.$ac_ext >&5
10052 ( exit $ac_status )
10053 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char), 77" >&5
10054 echo "$as_me: error: cannot compute sizeof (signed char), 77" >&2;}
10055    { (exit 1); exit 1; }; }
10056 fi
10057 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10058 fi
10059 fi
10060 rm -f conftest.val
10061 else
10062   ac_cv_sizeof_signed_char=0
10063 fi
10064 fi
10065 echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
10066 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
10067 cat >>confdefs.h <<_ACEOF
10068 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
10069 _ACEOF
10070
10071
10072 echo "$as_me:$LINENO: checking for int" >&5
10073 echo $ECHO_N "checking for int... $ECHO_C" >&6
10074 if test "${ac_cv_type_int+set}" = set; then
10075   echo $ECHO_N "(cached) $ECHO_C" >&6
10076 else
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
10087 int
10088 main ()
10089 {
10090 if ((int *) 0)
10091   return 0;
10092 if (sizeof (int))
10093   return 0;
10094   ;
10095   return 0;
10096 }
10097 _ACEOF
10098 rm -f conftest.$ac_objext
10099 if { (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
10111 else
10112   echo "$as_me: failed program was:" >&5
10113 cat conftest.$ac_ext >&5
10114 ac_cv_type_int=no
10115 fi
10116 rm -f conftest.$ac_objext conftest.$ac_ext
10117 fi
10118 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
10119 echo "${ECHO_T}$ac_cv_type_int" >&6
10120
10121 echo "$as_me:$LINENO: checking size of int" >&5
10122 echo $ECHO_N "checking size of int... $ECHO_C" >&6
10123 if test "${ac_cv_sizeof_int+set}" = set; then
10124   echo $ECHO_N "(cached) $ECHO_C" >&6
10125 else
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.
10133 cat >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
10143 int
10144 main ()
10145 {
10146 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
10147 test_array [0] = 0
10148
10149   ;
10150   return 0;
10151 }
10152 _ACEOF
10153 rm -f conftest.$ac_objext
10154 if { (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
10177 int
10178 main ()
10179 {
10180 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
10181 test_array [0] = 0
10182
10183   ;
10184   return 0;
10185 }
10186 _ACEOF
10187 rm -f conftest.$ac_objext
10188 if { (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
10200 else
10201   echo "$as_me: failed program was:" >&5
10202 cat conftest.$ac_ext >&5
10203 ac_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`
10209 fi
10210 rm -f conftest.$ac_objext conftest.$ac_ext
10211   done
10212 else
10213   echo "$as_me: failed program was:" >&5
10214 cat conftest.$ac_ext >&5
10215 cat >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
10225 int
10226 main ()
10227 {
10228 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
10229 test_array [0] = 0
10230
10231   ;
10232   return 0;
10233 }
10234 _ACEOF
10235 rm -f conftest.$ac_objext
10236 if { (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
10259 int
10260 main ()
10261 {
10262 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
10263 test_array [0] = 0
10264
10265   ;
10266   return 0;
10267 }
10268 _ACEOF
10269 rm -f conftest.$ac_objext
10270 if { (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
10282 else
10283   echo "$as_me: failed program was:" >&5
10284 cat conftest.$ac_ext >&5
10285 ac_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`
10291 fi
10292 rm -f conftest.$ac_objext conftest.$ac_ext
10293   done
10294 else
10295   echo "$as_me: failed program was:" >&5
10296 cat conftest.$ac_ext >&5
10297 ac_lo= ac_hi=
10298 fi
10299 rm -f conftest.$ac_objext conftest.$ac_ext
10300 fi
10301 rm -f conftest.$ac_objext conftest.$ac_ext
10302 # Binary search between lo and hi bounds.
10303 while 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
10315 int
10316 main ()
10317 {
10318 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
10319 test_array [0] = 0
10320
10321   ;
10322   return 0;
10323 }
10324 _ACEOF
10325 rm -f conftest.$ac_objext
10326 if { (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
10338 else
10339   echo "$as_me: failed program was:" >&5
10340 cat conftest.$ac_ext >&5
10341 ac_lo=`expr '(' $ac_mid ')' + 1`
10342 fi
10343 rm -f conftest.$ac_objext conftest.$ac_ext
10344 done
10345 case $ac_lo in
10346 ?*) ac_cv_sizeof_int=$ac_lo;;
10347 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
10348 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
10349    { (exit 1); exit 1; }; } ;;
10350 esac
10351 else
10352   if test "$cross_compiling" = yes; then
10353   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10354 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10355    { (exit 1); exit 1; }; }
10356 else
10357   cat >conftest.$ac_ext <<_ACEOF
10358 #line $LINENO "configure"
10359 #include "confdefs.h"
10360 $ac_includes_default
10361 long longval () { return (long) (sizeof (int)); }
10362 unsigned 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
10371 int
10372 main ()
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
10398 rm -f conftest$ac_exeext
10399 if { (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`
10410 else
10411   echo "$as_me: program exited with status $ac_status" >&5
10412 echo "$as_me: failed program was:" >&5
10413 cat conftest.$ac_ext >&5
10414 ( exit $ac_status )
10415 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
10416 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
10417    { (exit 1); exit 1; }; }
10418 fi
10419 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10420 fi
10421 fi
10422 rm -f conftest.val
10423 else
10424   ac_cv_sizeof_int=0
10425 fi
10426 fi
10427 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
10428 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
10429 cat >>confdefs.h <<_ACEOF
10430 #define SIZEOF_INT $ac_cv_sizeof_int
10431 _ACEOF
10432
10433
10434 echo "$as_me:$LINENO: checking for long" >&5
10435 echo $ECHO_N "checking for long... $ECHO_C" >&6
10436 if test "${ac_cv_type_long+set}" = set; then
10437   echo $ECHO_N "(cached) $ECHO_C" >&6
10438 else
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
10449 int
10450 main ()
10451 {
10452 if ((long *) 0)
10453   return 0;
10454 if (sizeof (long))
10455   return 0;
10456   ;
10457   return 0;
10458 }
10459 _ACEOF
10460 rm -f conftest.$ac_objext
10461 if { (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
10473 else
10474   echo "$as_me: failed program was:" >&5
10475 cat conftest.$ac_ext >&5
10476 ac_cv_type_long=no
10477 fi
10478 rm -f conftest.$ac_objext conftest.$ac_ext
10479 fi
10480 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
10481 echo "${ECHO_T}$ac_cv_type_long" >&6
10482
10483 echo "$as_me:$LINENO: checking size of long" >&5
10484 echo $ECHO_N "checking size of long... $ECHO_C" >&6
10485 if test "${ac_cv_sizeof_long+set}" = set; then
10486   echo $ECHO_N "(cached) $ECHO_C" >&6
10487 else
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.
10495 cat >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
10505 int
10506 main ()
10507 {
10508 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
10509 test_array [0] = 0
10510
10511   ;
10512   return 0;
10513 }
10514 _ACEOF
10515 rm -f conftest.$ac_objext
10516 if { (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
10539 int
10540 main ()
10541 {
10542 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
10543 test_array [0] = 0
10544
10545   ;
10546   return 0;
10547 }
10548 _ACEOF
10549 rm -f conftest.$ac_objext
10550 if { (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
10562 else
10563   echo "$as_me: failed program was:" >&5
10564 cat conftest.$ac_ext >&5
10565 ac_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`
10571 fi
10572 rm -f conftest.$ac_objext conftest.$ac_ext
10573   done
10574 else
10575   echo "$as_me: failed program was:" >&5
10576 cat conftest.$ac_ext >&5
10577 cat >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
10587 int
10588 main ()
10589 {
10590 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
10591 test_array [0] = 0
10592
10593   ;
10594   return 0;
10595 }
10596 _ACEOF
10597 rm -f conftest.$ac_objext
10598 if { (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
10621 int
10622 main ()
10623 {
10624 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
10625 test_array [0] = 0
10626
10627   ;
10628   return 0;
10629 }
10630 _ACEOF
10631 rm -f conftest.$ac_objext
10632 if { (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
10644 else
10645   echo "$as_me: failed program was:" >&5
10646 cat conftest.$ac_ext >&5
10647 ac_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`
10653 fi
10654 rm -f conftest.$ac_objext conftest.$ac_ext
10655   done
10656 else
10657   echo "$as_me: failed program was:" >&5
10658 cat conftest.$ac_ext >&5
10659 ac_lo= ac_hi=
10660 fi
10661 rm -f conftest.$ac_objext conftest.$ac_ext
10662 fi
10663 rm -f conftest.$ac_objext conftest.$ac_ext
10664 # Binary search between lo and hi bounds.
10665 while 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
10677 int
10678 main ()
10679 {
10680 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
10681 test_array [0] = 0
10682
10683   ;
10684   return 0;
10685 }
10686 _ACEOF
10687 rm -f conftest.$ac_objext
10688 if { (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
10700 else
10701   echo "$as_me: failed program was:" >&5
10702 cat conftest.$ac_ext >&5
10703 ac_lo=`expr '(' $ac_mid ')' + 1`
10704 fi
10705 rm -f conftest.$ac_objext conftest.$ac_ext
10706 done
10707 case $ac_lo in
10708 ?*) ac_cv_sizeof_long=$ac_lo;;
10709 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
10710 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
10711    { (exit 1); exit 1; }; } ;;
10712 esac
10713 else
10714   if test "$cross_compiling" = yes; then
10715   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10716 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10717    { (exit 1); exit 1; }; }
10718 else
10719   cat >conftest.$ac_ext <<_ACEOF
10720 #line $LINENO "configure"
10721 #include "confdefs.h"
10722 $ac_includes_default
10723 long longval () { return (long) (sizeof (long)); }
10724 unsigned 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
10733 int
10734 main ()
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
10760 rm -f conftest$ac_exeext
10761 if { (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`
10772 else
10773   echo "$as_me: program exited with status $ac_status" >&5
10774 echo "$as_me: failed program was:" >&5
10775 cat conftest.$ac_ext >&5
10776 ( exit $ac_status )
10777 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
10778 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
10779    { (exit 1); exit 1; }; }
10780 fi
10781 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10782 fi
10783 fi
10784 rm -f conftest.val
10785 else
10786   ac_cv_sizeof_long=0
10787 fi
10788 fi
10789 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
10790 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
10791 cat >>confdefs.h <<_ACEOF
10792 #define SIZEOF_LONG $ac_cv_sizeof_long
10793 _ACEOF
10794
10795
10796
10797 echo "$as_me:$LINENO: checking for s_char" >&5
10798 echo $ECHO_N "checking for s_char... $ECHO_C" >&6
10799 if test "${ac_cv_type_s_char+set}" = set; then
10800   echo $ECHO_N "(cached) $ECHO_C" >&6
10801 else
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
10812 int
10813 main ()
10814 {
10815 if ((s_char *) 0)
10816   return 0;
10817 if (sizeof (s_char))
10818   return 0;
10819   ;
10820   return 0;
10821 }
10822 _ACEOF
10823 rm -f conftest.$ac_objext
10824 if { (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
10836 else
10837   echo "$as_me: failed program was:" >&5
10838 cat conftest.$ac_ext >&5
10839 ac_cv_type_s_char=no
10840 fi
10841 rm -f conftest.$ac_objext conftest.$ac_ext
10842 fi
10843 echo "$as_me:$LINENO: result: $ac_cv_type_s_char" >&5
10844 echo "${ECHO_T}$ac_cv_type_s_char" >&6
10845 if test $ac_cv_type_s_char = yes; then
10846
10847 cat >>confdefs.h <<_ACEOF
10848 #define HAVE_S_CHAR 1
10849 _ACEOF
10850
10851
10852 fi
10853
10854 case "$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
10861 cat >>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
10876 echo "$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     ;;
10886 esac
10887 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10888 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10889 if test "${ac_cv_type_uid_t+set}" = set; then
10890   echo $ECHO_N "(cached) $ECHO_C" >&6
10891 else
10892   cat >conftest.$ac_ext <<_ACEOF
10893 #line $LINENO "configure"
10894 #include "confdefs.h"
10895 #include <sys/types.h>
10896
10897 _ACEOF
10898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10899   egrep "uid_t" >/dev/null 2>&1; then
10900   ac_cv_type_uid_t=yes
10901 else
10902   ac_cv_type_uid_t=no
10903 fi
10904 rm -f conftest*
10905
10906 fi
10907 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10908 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10909 if test $ac_cv_type_uid_t = no; then
10910
10911 cat >>confdefs.h <<\_ACEOF
10912 #define uid_t int
10913 _ACEOF
10914
10915
10916 cat >>confdefs.h <<\_ACEOF
10917 #define gid_t int
10918 _ACEOF
10919
10920 fi
10921
10922
10923 case "$host" in
10924  *-*-linux*)
10925
10926
10927 for ac_func in __adjtimex __ntp_gettime
10928 do
10929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10930 echo "$as_me:$LINENO: checking for $ac_func" >&5
10931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10932 if eval "test \"\${$as_ac_var+set}\" = set"; then
10933   echo $ECHO_N "(cached) $ECHO_C" >&6
10934 else
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
10943 extern "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.  */
10947 char $ac_func ();
10948 char (*f) ();
10949
10950 #ifdef F77_DUMMY_MAIN
10951 #  ifdef __cplusplus
10952      extern "C"
10953 #  endif
10954    int F77_DUMMY_MAIN() { return 1; }
10955 #endif
10956 int
10957 main ()
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)
10963 choke me
10964 #else
10965 f = $ac_func;
10966 #endif
10967
10968   ;
10969   return 0;
10970 }
10971 _ACEOF
10972 rm -f conftest.$ac_objext conftest$ac_exeext
10973 if { (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"
10985 else
10986   echo "$as_me: failed program was:" >&5
10987 cat conftest.$ac_ext >&5
10988 eval "$as_ac_var=no"
10989 fi
10990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10991 fi
10992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10993 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10994 if 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
10999 fi
11000 done
11001
11002     ;;
11003 esac
11004 case "$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
11014 for ac_func in clock_gettime clock_settime
11015 do
11016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11017 echo "$as_me:$LINENO: checking for $ac_func" >&5
11018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11019 if eval "test \"\${$as_ac_var+set}\" = set"; then
11020   echo $ECHO_N "(cached) $ECHO_C" >&6
11021 else
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
11030 extern "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.  */
11034 char $ac_func ();
11035 char (*f) ();
11036
11037 #ifdef F77_DUMMY_MAIN
11038 #  ifdef __cplusplus
11039      extern "C"
11040 #  endif
11041    int F77_DUMMY_MAIN() { return 1; }
11042 #endif
11043 int
11044 main ()
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)
11050 choke me
11051 #else
11052 f = $ac_func;
11053 #endif
11054
11055   ;
11056   return 0;
11057 }
11058 _ACEOF
11059 rm -f conftest.$ac_objext conftest$ac_exeext
11060 if { (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"
11072 else
11073   echo "$as_me: failed program was:" >&5
11074 cat conftest.$ac_ext >&5
11075 eval "$as_ac_var=no"
11076 fi
11077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11078 fi
11079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11080 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11081 if 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
11086 fi
11087 done
11088
11089     ;;
11090 esac
11091
11092 for ac_func in daemon
11093 do
11094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11095 echo "$as_me:$LINENO: checking for $ac_func" >&5
11096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11097 if eval "test \"\${$as_ac_var+set}\" = set"; then
11098   echo $ECHO_N "(cached) $ECHO_C" >&6
11099 else
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
11108 extern "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.  */
11112 char $ac_func ();
11113 char (*f) ();
11114
11115 #ifdef F77_DUMMY_MAIN
11116 #  ifdef __cplusplus
11117      extern "C"
11118 #  endif
11119    int F77_DUMMY_MAIN() { return 1; }
11120 #endif
11121 int
11122 main ()
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)
11128 choke me
11129 #else
11130 f = $ac_func;
11131 #endif
11132
11133   ;
11134   return 0;
11135 }
11136 _ACEOF
11137 rm -f conftest.$ac_objext conftest$ac_exeext
11138 if { (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"
11150 else
11151   echo "$as_me: failed program was:" >&5
11152 cat conftest.$ac_ext >&5
11153 eval "$as_ac_var=no"
11154 fi
11155 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11156 fi
11157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11158 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11159 if 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
11164 fi
11165 done
11166
11167
11168 for ac_func in finite
11169 do
11170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11171 echo "$as_me:$LINENO: checking for $ac_func" >&5
11172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11173 if eval "test \"\${$as_ac_var+set}\" = set"; then
11174   echo $ECHO_N "(cached) $ECHO_C" >&6
11175 else
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
11184 extern "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.  */
11188 char $ac_func ();
11189 char (*f) ();
11190
11191 #ifdef F77_DUMMY_MAIN
11192 #  ifdef __cplusplus
11193      extern "C"
11194 #  endif
11195    int F77_DUMMY_MAIN() { return 1; }
11196 #endif
11197 int
11198 main ()
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)
11204 choke me
11205 #else
11206 f = $ac_func;
11207 #endif
11208
11209   ;
11210   return 0;
11211 }
11212 _ACEOF
11213 rm -f conftest.$ac_objext conftest$ac_exeext
11214 if { (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"
11226 else
11227   echo "$as_me: failed program was:" >&5
11228 cat conftest.$ac_ext >&5
11229 eval "$as_ac_var=no"
11230 fi
11231 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11232 fi
11233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11234 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11235 if 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
11240 else
11241
11242 for ac_func in isfinite
11243 do
11244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11245 echo "$as_me:$LINENO: checking for $ac_func" >&5
11246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11247 if eval "test \"\${$as_ac_var+set}\" = set"; then
11248   echo $ECHO_N "(cached) $ECHO_C" >&6
11249 else
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
11258 extern "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.  */
11262 char $ac_func ();
11263 char (*f) ();
11264
11265 #ifdef F77_DUMMY_MAIN
11266 #  ifdef __cplusplus
11267      extern "C"
11268 #  endif
11269    int F77_DUMMY_MAIN() { return 1; }
11270 #endif
11271 int
11272 main ()
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)
11278 choke me
11279 #else
11280 f = $ac_func;
11281 #endif
11282
11283   ;
11284   return 0;
11285 }
11286 _ACEOF
11287 rm -f conftest.$ac_objext conftest$ac_exeext
11288 if { (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"
11300 else
11301   echo "$as_me: failed program was:" >&5
11302 cat conftest.$ac_ext >&5
11303 eval "$as_ac_var=no"
11304 fi
11305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11306 fi
11307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11308 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11309 if 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
11314 else
11315   echo "$as_me:$LINENO: checking for isfinite with <math.h>" >&5
11316 echo $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
11329 int
11330 main ()
11331 {
11332 float f = 0.0; isfinite(f)
11333   ;
11334   return 0;
11335 }
11336 _ACEOF
11337 rm -f conftest.$ac_objext conftest$ac_exeext
11338 if { (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
11350 echo "${ECHO_T}yes" >&6
11351       cat >>confdefs.h <<\_ACEOF
11352 #define HAVE_ISFINITE 1
11353 _ACEOF
11354
11355 else
11356   echo "$as_me: failed program was:" >&5
11357 cat conftest.$ac_ext >&5
11358 echo "$as_me:$LINENO: result: no" >&5
11359 echo "${ECHO_T}no" >&6
11360 fi
11361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11362     LIBS=$_libs
11363 fi
11364 done
11365
11366 fi
11367 done
11368
11369
11370
11371
11372
11373 for ac_func in getbootfile getclock getdtablesize getrusage
11374 do
11375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11376 echo "$as_me:$LINENO: checking for $ac_func" >&5
11377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11378 if eval "test \"\${$as_ac_var+set}\" = set"; then
11379   echo $ECHO_N "(cached) $ECHO_C" >&6
11380 else
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
11389 extern "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.  */
11393 char $ac_func ();
11394 char (*f) ();
11395
11396 #ifdef F77_DUMMY_MAIN
11397 #  ifdef __cplusplus
11398      extern "C"
11399 #  endif
11400    int F77_DUMMY_MAIN() { return 1; }
11401 #endif
11402 int
11403 main ()
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)
11409 choke me
11410 #else
11411 f = $ac_func;
11412 #endif
11413
11414   ;
11415   return 0;
11416 }
11417 _ACEOF
11418 rm -f conftest.$ac_objext conftest$ac_exeext
11419 if { (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"
11431 else
11432   echo "$as_me: failed program was:" >&5
11433 cat conftest.$ac_ext >&5
11434 eval "$as_ac_var=no"
11435 fi
11436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11437 fi
11438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11439 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11440 if 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
11445 fi
11446 done
11447
11448 echo "$as_me:$LINENO: checking for gettimeofday" >&5
11449 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
11450 if test "${ac_cv_func_gettimeofday+set}" = set; then
11451   echo $ECHO_N "(cached) $ECHO_C" >&6
11452 else
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
11461 extern "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.  */
11465 char gettimeofday ();
11466 char (*f) ();
11467
11468 #ifdef F77_DUMMY_MAIN
11469 #  ifdef __cplusplus
11470      extern "C"
11471 #  endif
11472    int F77_DUMMY_MAIN() { return 1; }
11473 #endif
11474 int
11475 main ()
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)
11481 choke me
11482 #else
11483 f = gettimeofday;
11484 #endif
11485
11486   ;
11487   return 0;
11488 }
11489 _ACEOF
11490 rm -f conftest.$ac_objext conftest$ac_exeext
11491 if { (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
11503 else
11504   echo "$as_me: failed program was:" >&5
11505 cat conftest.$ac_ext >&5
11506 ac_cv_func_gettimeofday=no
11507 fi
11508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11509 fi
11510 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
11511 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
11512 if test $ac_cv_func_gettimeofday = yes; then
11513   :
11514 else
11515
11516 case "$host" in
11517   *-*-mpeix*) ac_cv_func_gettimeofday=yes
11518     ;;
11519 esac
11520 fi
11521
11522 case "$host" in
11523  *-pc-cygwin*)
11524     ;;
11525  *)
11526 for ac_func in getuid
11527 do
11528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11529 echo "$as_me:$LINENO: checking for $ac_func" >&5
11530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11531 if eval "test \"\${$as_ac_var+set}\" = set"; then
11532   echo $ECHO_N "(cached) $ECHO_C" >&6
11533 else
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
11542 extern "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.  */
11546 char $ac_func ();
11547 char (*f) ();
11548
11549 #ifdef F77_DUMMY_MAIN
11550 #  ifdef __cplusplus
11551      extern "C"
11552 #  endif
11553    int F77_DUMMY_MAIN() { return 1; }
11554 #endif
11555 int
11556 main ()
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)
11562 choke me
11563 #else
11564 f = $ac_func;
11565 #endif
11566
11567   ;
11568   return 0;
11569 }
11570 _ACEOF
11571 rm -f conftest.$ac_objext conftest$ac_exeext
11572 if { (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"
11584 else
11585   echo "$as_me: failed program was:" >&5
11586 cat conftest.$ac_ext >&5
11587 eval "$as_ac_var=no"
11588 fi
11589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11590 fi
11591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11592 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11593 if 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
11598 fi
11599 done
11600
11601     ;;
11602 esac
11603
11604
11605
11606
11607
11608
11609 for ac_func in hstrerror K_open kvm_open memcpy memmove memset
11610 do
11611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11612 echo "$as_me:$LINENO: checking for $ac_func" >&5
11613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11614 if eval "test \"\${$as_ac_var+set}\" = set"; then
11615   echo $ECHO_N "(cached) $ECHO_C" >&6
11616 else
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
11625 extern "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.  */
11629 char $ac_func ();
11630 char (*f) ();
11631
11632 #ifdef F77_DUMMY_MAIN
11633 #  ifdef __cplusplus
11634      extern "C"
11635 #  endif
11636    int F77_DUMMY_MAIN() { return 1; }
11637 #endif
11638 int
11639 main ()
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)
11645 choke me
11646 #else
11647 f = $ac_func;
11648 #endif
11649
11650   ;
11651   return 0;
11652 }
11653 _ACEOF
11654 rm -f conftest.$ac_objext conftest$ac_exeext
11655 if { (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"
11667 else
11668   echo "$as_me: failed program was:" >&5
11669 cat conftest.$ac_ext >&5
11670 eval "$as_ac_var=no"
11671 fi
11672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11673 fi
11674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11675 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11676 if 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
11681 fi
11682 done
11683
11684 case "$host" in
11685  *-*-sco3.2v5.0.*)
11686     # Just stubs.  Idiots.
11687     ;;
11688  *)
11689 for ac_func in mkstemp
11690 do
11691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11692 echo "$as_me:$LINENO: checking for $ac_func" >&5
11693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11694 if eval "test \"\${$as_ac_var+set}\" = set"; then
11695   echo $ECHO_N "(cached) $ECHO_C" >&6
11696 else
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
11705 extern "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.  */
11709 char $ac_func ();
11710 char (*f) ();
11711
11712 #ifdef F77_DUMMY_MAIN
11713 #  ifdef __cplusplus
11714      extern "C"
11715 #  endif
11716    int F77_DUMMY_MAIN() { return 1; }
11717 #endif
11718 int
11719 main ()
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)
11725 choke me
11726 #else
11727 f = $ac_func;
11728 #endif
11729
11730   ;
11731   return 0;
11732 }
11733 _ACEOF
11734 rm -f conftest.$ac_objext conftest$ac_exeext
11735 if { (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"
11747 else
11748   echo "$as_me: failed program was:" >&5
11749 cat conftest.$ac_ext >&5
11750 eval "$as_ac_var=no"
11751 fi
11752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11753 fi
11754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11755 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11756 if 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
11761 fi
11762 done
11763
11764     ;;
11765 esac
11766
11767 for ac_func in mktime
11768 do
11769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11770 echo "$as_me:$LINENO: checking for $ac_func" >&5
11771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11772 if eval "test \"\${$as_ac_var+set}\" = set"; then
11773   echo $ECHO_N "(cached) $ECHO_C" >&6
11774 else
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
11783 extern "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.  */
11787 char $ac_func ();
11788 char (*f) ();
11789
11790 #ifdef F77_DUMMY_MAIN
11791 #  ifdef __cplusplus
11792      extern "C"
11793 #  endif
11794    int F77_DUMMY_MAIN() { return 1; }
11795 #endif
11796 int
11797 main ()
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)
11803 choke me
11804 #else
11805 f = $ac_func;
11806 #endif
11807
11808   ;
11809   return 0;
11810 }
11811 _ACEOF
11812 rm -f conftest.$ac_objext conftest$ac_exeext
11813 if { (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"
11825 else
11826   echo "$as_me: failed program was:" >&5
11827 cat conftest.$ac_ext >&5
11828 eval "$as_ac_var=no"
11829 fi
11830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11831 fi
11832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11833 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11834 if 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
11839 fi
11840 done
11841
11842 case "$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
11859 for ac_func in memlk
11860 do
11861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11862 echo "$as_me:$LINENO: checking for $ac_func" >&5
11863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11864 if eval "test \"\${$as_ac_var+set}\" = set"; then
11865   echo $ECHO_N "(cached) $ECHO_C" >&6
11866 else
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
11875 extern "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.  */
11879 char $ac_func ();
11880 char (*f) ();
11881
11882 #ifdef F77_DUMMY_MAIN
11883 #  ifdef __cplusplus
11884      extern "C"
11885 #  endif
11886    int F77_DUMMY_MAIN() { return 1; }
11887 #endif
11888 int
11889 main ()
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)
11895 choke me
11896 #else
11897 f = $ac_func;
11898 #endif
11899
11900   ;
11901   return 0;
11902 }
11903 _ACEOF
11904 rm -f conftest.$ac_objext conftest$ac_exeext
11905 if { (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"
11917 else
11918   echo "$as_me: failed program was:" >&5
11919 cat conftest.$ac_ext >&5
11920 eval "$as_ac_var=no"
11921 fi
11922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11923 fi
11924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11925 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11926 if 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'
11931 fi
11932 done
11933
11934
11935 for ac_func in mlockall
11936 do
11937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11938 echo "$as_me:$LINENO: checking for $ac_func" >&5
11939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11940 if eval "test \"\${$as_ac_var+set}\" = set"; then
11941   echo $ECHO_N "(cached) $ECHO_C" >&6
11942 else
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
11951 extern "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.  */
11955 char $ac_func ();
11956 char (*f) ();
11957
11958 #ifdef F77_DUMMY_MAIN
11959 #  ifdef __cplusplus
11960      extern "C"
11961 #  endif
11962    int F77_DUMMY_MAIN() { return 1; }
11963 #endif
11964 int
11965 main ()
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)
11971 choke me
11972 #else
11973 f = $ac_func;
11974 #endif
11975
11976   ;
11977   return 0;
11978 }
11979 _ACEOF
11980 rm -f conftest.$ac_objext conftest$ac_exeext
11981 if { (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"
11993 else
11994   echo "$as_me: failed program was:" >&5
11995 cat conftest.$ac_ext >&5
11996 eval "$as_ac_var=no"
11997 fi
11998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11999 fi
12000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12001 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12002 if 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
12007 fi
12008 done
12009
12010     ;;
12011  *)
12012 for ac_func in mlockall
12013 do
12014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12015 echo "$as_me:$LINENO: checking for $ac_func" >&5
12016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12017 if eval "test \"\${$as_ac_var+set}\" = set"; then
12018   echo $ECHO_N "(cached) $ECHO_C" >&6
12019 else
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
12028 extern "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.  */
12032 char $ac_func ();
12033 char (*f) ();
12034
12035 #ifdef F77_DUMMY_MAIN
12036 #  ifdef __cplusplus
12037      extern "C"
12038 #  endif
12039    int F77_DUMMY_MAIN() { return 1; }
12040 #endif
12041 int
12042 main ()
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)
12048 choke me
12049 #else
12050 f = $ac_func;
12051 #endif
12052
12053   ;
12054   return 0;
12055 }
12056 _ACEOF
12057 rm -f conftest.$ac_objext conftest$ac_exeext
12058 if { (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"
12070 else
12071   echo "$as_me: failed program was:" >&5
12072 cat conftest.$ac_ext >&5
12073 eval "$as_ac_var=no"
12074 fi
12075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12076 fi
12077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12079 if 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
12084 fi
12085 done
12086
12087     ;;
12088 esac
12089
12090
12091
12092
12093 for ac_func in mrand48 srand48 nice nlist
12094 do
12095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12096 echo "$as_me:$LINENO: checking for $ac_func" >&5
12097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12098 if eval "test \"\${$as_ac_var+set}\" = set"; then
12099   echo $ECHO_N "(cached) $ECHO_C" >&6
12100 else
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
12109 extern "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.  */
12113 char $ac_func ();
12114 char (*f) ();
12115
12116 #ifdef F77_DUMMY_MAIN
12117 #  ifdef __cplusplus
12118      extern "C"
12119 #  endif
12120    int F77_DUMMY_MAIN() { return 1; }
12121 #endif
12122 int
12123 main ()
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)
12129 choke me
12130 #else
12131 f = $ac_func;
12132 #endif
12133
12134   ;
12135   return 0;
12136 }
12137 _ACEOF
12138 rm -f conftest.$ac_objext conftest$ac_exeext
12139 if { (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"
12151 else
12152   echo "$as_me: failed program was:" >&5
12153 cat conftest.$ac_ext >&5
12154 eval "$as_ac_var=no"
12155 fi
12156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12157 fi
12158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12159 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12160 if 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
12165 fi
12166 done
12167
12168 case "$host" in
12169  *-*-solaris2.6)
12170     # Broken...
12171     ;;
12172  *)
12173
12174 for ac_func in ntp_adjtime ntp_gettime
12175 do
12176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12177 echo "$as_me:$LINENO: checking for $ac_func" >&5
12178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12179 if eval "test \"\${$as_ac_var+set}\" = set"; then
12180   echo $ECHO_N "(cached) $ECHO_C" >&6
12181 else
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
12190 extern "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.  */
12194 char $ac_func ();
12195 char (*f) ();
12196
12197 #ifdef F77_DUMMY_MAIN
12198 #  ifdef __cplusplus
12199      extern "C"
12200 #  endif
12201    int F77_DUMMY_MAIN() { return 1; }
12202 #endif
12203 int
12204 main ()
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)
12210 choke me
12211 #else
12212 f = $ac_func;
12213 #endif
12214
12215   ;
12216   return 0;
12217 }
12218 _ACEOF
12219 rm -f conftest.$ac_objext conftest$ac_exeext
12220 if { (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"
12232 else
12233   echo "$as_me: failed program was:" >&5
12234 cat conftest.$ac_ext >&5
12235 eval "$as_ac_var=no"
12236 fi
12237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12238 fi
12239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12240 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12241 if 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
12246 fi
12247 done
12248
12249     ;;
12250 esac
12251
12252
12253
12254
12255
12256 for ac_func in plock pututline pututxline readlink rtprio
12257 do
12258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12259 echo "$as_me:$LINENO: checking for $ac_func" >&5
12260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12261 if eval "test \"\${$as_ac_var+set}\" = set"; then
12262   echo $ECHO_N "(cached) $ECHO_C" >&6
12263 else
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
12272 extern "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.  */
12276 char $ac_func ();
12277 char (*f) ();
12278
12279 #ifdef F77_DUMMY_MAIN
12280 #  ifdef __cplusplus
12281      extern "C"
12282 #  endif
12283    int F77_DUMMY_MAIN() { return 1; }
12284 #endif
12285 int
12286 main ()
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)
12292 choke me
12293 #else
12294 f = $ac_func;
12295 #endif
12296
12297   ;
12298   return 0;
12299 }
12300 _ACEOF
12301 rm -f conftest.$ac_objext conftest$ac_exeext
12302 if { (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"
12314 else
12315   echo "$as_me: failed program was:" >&5
12316 cat conftest.$ac_ext >&5
12317 eval "$as_ac_var=no"
12318 fi
12319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12320 fi
12321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12323 if 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
12328 fi
12329 done
12330
12331 case "$ac_cv_func_mrand48" in
12332  yes) ;;
12333  *)
12334 for ac_func in random
12335 do
12336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12337 echo "$as_me:$LINENO: checking for $ac_func" >&5
12338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12339 if eval "test \"\${$as_ac_var+set}\" = set"; then
12340   echo $ECHO_N "(cached) $ECHO_C" >&6
12341 else
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
12350 extern "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.  */
12354 char $ac_func ();
12355 char (*f) ();
12356
12357 #ifdef F77_DUMMY_MAIN
12358 #  ifdef __cplusplus
12359      extern "C"
12360 #  endif
12361    int F77_DUMMY_MAIN() { return 1; }
12362 #endif
12363 int
12364 main ()
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)
12370 choke me
12371 #else
12372 f = $ac_func;
12373 #endif
12374
12375   ;
12376   return 0;
12377 }
12378 _ACEOF
12379 rm -f conftest.$ac_objext conftest$ac_exeext
12380 if { (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"
12392 else
12393   echo "$as_me: failed program was:" >&5
12394 cat conftest.$ac_ext >&5
12395 eval "$as_ac_var=no"
12396 fi
12397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12398 fi
12399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12400 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12401 if 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
12406 else
12407   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12408 fi
12409 done
12410
12411  ;;
12412 esac
12413 case "$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  *)
12421 for ac_func in sched_setscheduler
12422 do
12423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12424 echo "$as_me:$LINENO: checking for $ac_func" >&5
12425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12426 if eval "test \"\${$as_ac_var+set}\" = set"; then
12427   echo $ECHO_N "(cached) $ECHO_C" >&6
12428 else
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
12437 extern "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.  */
12441 char $ac_func ();
12442 char (*f) ();
12443
12444 #ifdef F77_DUMMY_MAIN
12445 #  ifdef __cplusplus
12446      extern "C"
12447 #  endif
12448    int F77_DUMMY_MAIN() { return 1; }
12449 #endif
12450 int
12451 main ()
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)
12457 choke me
12458 #else
12459 f = $ac_func;
12460 #endif
12461
12462   ;
12463   return 0;
12464 }
12465 _ACEOF
12466 rm -f conftest.$ac_objext conftest$ac_exeext
12467 if { (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"
12479 else
12480   echo "$as_me: failed program was:" >&5
12481 cat conftest.$ac_ext >&5
12482 eval "$as_ac_var=no"
12483 fi
12484 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12485 fi
12486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12487 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12488 if 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
12493 fi
12494 done
12495
12496     ;;
12497 esac
12498
12499
12500
12501
12502 for ac_func in setlinebuf setpgid setpriority setsid
12503 do
12504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12505 echo "$as_me:$LINENO: checking for $ac_func" >&5
12506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12507 if eval "test \"\${$as_ac_var+set}\" = set"; then
12508   echo $ECHO_N "(cached) $ECHO_C" >&6
12509 else
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
12518 extern "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.  */
12522 char $ac_func ();
12523 char (*f) ();
12524
12525 #ifdef F77_DUMMY_MAIN
12526 #  ifdef __cplusplus
12527      extern "C"
12528 #  endif
12529    int F77_DUMMY_MAIN() { return 1; }
12530 #endif
12531 int
12532 main ()
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)
12538 choke me
12539 #else
12540 f = $ac_func;
12541 #endif
12542
12543   ;
12544   return 0;
12545 }
12546 _ACEOF
12547 rm -f conftest.$ac_objext conftest$ac_exeext
12548 if { (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"
12560 else
12561   echo "$as_me: failed program was:" >&5
12562 cat conftest.$ac_ext >&5
12563 eval "$as_ac_var=no"
12564 fi
12565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12566 fi
12567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12568 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12569 if 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
12574 fi
12575 done
12576
12577
12578 for ac_func in settimeofday
12579 do
12580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12581 echo "$as_me:$LINENO: checking for $ac_func" >&5
12582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12583 if eval "test \"\${$as_ac_var+set}\" = set"; then
12584   echo $ECHO_N "(cached) $ECHO_C" >&6
12585 else
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
12594 extern "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.  */
12598 char $ac_func ();
12599 char (*f) ();
12600
12601 #ifdef F77_DUMMY_MAIN
12602 #  ifdef __cplusplus
12603      extern "C"
12604 #  endif
12605    int F77_DUMMY_MAIN() { return 1; }
12606 #endif
12607 int
12608 main ()
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)
12614 choke me
12615 #else
12616 f = $ac_func;
12617 #endif
12618
12619   ;
12620   return 0;
12621 }
12622 _ACEOF
12623 rm -f conftest.$ac_objext conftest$ac_exeext
12624 if { (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"
12636 else
12637   echo "$as_me: failed program was:" >&5
12638 cat conftest.$ac_ext >&5
12639 eval "$as_ac_var=no"
12640 fi
12641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12642 fi
12643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12645 if 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
12650 else
12651
12652 case "$host" in
12653   *-*-mpeix*) ac_cv_func_settimeofday=yes
12654     ;;
12655 esac
12656 fi
12657 done
12658
12659
12660
12661 for ac_func in setvbuf sigaction
12662 do
12663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12664 echo "$as_me:$LINENO: checking for $ac_func" >&5
12665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12666 if eval "test \"\${$as_ac_var+set}\" = set"; then
12667   echo $ECHO_N "(cached) $ECHO_C" >&6
12668 else
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
12677 extern "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.  */
12681 char $ac_func ();
12682 char (*f) ();
12683
12684 #ifdef F77_DUMMY_MAIN
12685 #  ifdef __cplusplus
12686      extern "C"
12687 #  endif
12688    int F77_DUMMY_MAIN() { return 1; }
12689 #endif
12690 int
12691 main ()
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)
12697 choke me
12698 #else
12699 f = $ac_func;
12700 #endif
12701
12702   ;
12703   return 0;
12704 }
12705 _ACEOF
12706 rm -f conftest.$ac_objext conftest$ac_exeext
12707 if { (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"
12719 else
12720   echo "$as_me: failed program was:" >&5
12721 cat conftest.$ac_ext >&5
12722 eval "$as_ac_var=no"
12723 fi
12724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12725 fi
12726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12727 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12728 if 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
12733 fi
12734 done
12735
12736
12737
12738
12739
12740
12741
12742
12743 for ac_func in sigvec sigset sigsuspend stime strchr sysconf sysctl
12744 do
12745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12746 echo "$as_me:$LINENO: checking for $ac_func" >&5
12747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12748 if eval "test \"\${$as_ac_var+set}\" = set"; then
12749   echo $ECHO_N "(cached) $ECHO_C" >&6
12750 else
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
12759 extern "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.  */
12763 char $ac_func ();
12764 char (*f) ();
12765
12766 #ifdef F77_DUMMY_MAIN
12767 #  ifdef __cplusplus
12768      extern "C"
12769 #  endif
12770    int F77_DUMMY_MAIN() { return 1; }
12771 #endif
12772 int
12773 main ()
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)
12779 choke me
12780 #else
12781 f = $ac_func;
12782 #endif
12783
12784   ;
12785   return 0;
12786 }
12787 _ACEOF
12788 rm -f conftest.$ac_objext conftest$ac_exeext
12789 if { (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"
12801 else
12802   echo "$as_me: failed program was:" >&5
12803 cat conftest.$ac_ext >&5
12804 eval "$as_ac_var=no"
12805 fi
12806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12807 fi
12808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12809 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12810 if 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
12815 fi
12816 done
12817
12818
12819
12820
12821
12822 for ac_func in snprintf strdup strerror strstr
12823 do
12824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12825 echo "$as_me:$LINENO: checking for $ac_func" >&5
12826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12827 if eval "test \"\${$as_ac_var+set}\" = set"; then
12828   echo $ECHO_N "(cached) $ECHO_C" >&6
12829 else
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
12838 extern "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.  */
12842 char $ac_func ();
12843 char (*f) ();
12844
12845 #ifdef F77_DUMMY_MAIN
12846 #  ifdef __cplusplus
12847      extern "C"
12848 #  endif
12849    int F77_DUMMY_MAIN() { return 1; }
12850 #endif
12851 int
12852 main ()
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)
12858 choke me
12859 #else
12860 f = $ac_func;
12861 #endif
12862
12863   ;
12864   return 0;
12865 }
12866 _ACEOF
12867 rm -f conftest.$ac_objext conftest$ac_exeext
12868 if { (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"
12880 else
12881   echo "$as_me: failed program was:" >&5
12882 cat conftest.$ac_ext >&5
12883 eval "$as_ac_var=no"
12884 fi
12885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12886 fi
12887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12889 if 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
12894 fi
12895 done
12896
12897
12898 for ac_func in timegm
12899 do
12900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12901 echo "$as_me:$LINENO: checking for $ac_func" >&5
12902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12903 if eval "test \"\${$as_ac_var+set}\" = set"; then
12904   echo $ECHO_N "(cached) $ECHO_C" >&6
12905 else
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
12914 extern "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.  */
12918 char $ac_func ();
12919 char (*f) ();
12920
12921 #ifdef F77_DUMMY_MAIN
12922 #  ifdef __cplusplus
12923      extern "C"
12924 #  endif
12925    int F77_DUMMY_MAIN() { return 1; }
12926 #endif
12927 int
12928 main ()
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)
12934 choke me
12935 #else
12936 f = $ac_func;
12937 #endif
12938
12939   ;
12940   return 0;
12941 }
12942 _ACEOF
12943 rm -f conftest.$ac_objext conftest$ac_exeext
12944 if { (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"
12956 else
12957   echo "$as_me: failed program was:" >&5
12958 cat conftest.$ac_ext >&5
12959 eval "$as_ac_var=no"
12960 fi
12961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12962 fi
12963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12964 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12965 if 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
12970 fi
12971 done
12972
12973 case "$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
12985 for ac_func in timer_create timer_settime
12986 do
12987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12988 echo "$as_me:$LINENO: checking for $ac_func" >&5
12989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12990 if eval "test \"\${$as_ac_var+set}\" = set"; then
12991   echo $ECHO_N "(cached) $ECHO_C" >&6
12992 else
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
13001 extern "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.  */
13005 char $ac_func ();
13006 char (*f) ();
13007
13008 #ifdef F77_DUMMY_MAIN
13009 #  ifdef __cplusplus
13010      extern "C"
13011 #  endif
13012    int F77_DUMMY_MAIN() { return 1; }
13013 #endif
13014 int
13015 main ()
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)
13021 choke me
13022 #else
13023 f = $ac_func;
13024 #endif
13025
13026   ;
13027   return 0;
13028 }
13029 _ACEOF
13030 rm -f conftest.$ac_objext conftest$ac_exeext
13031 if { (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"
13043 else
13044   echo "$as_me: failed program was:" >&5
13045 cat conftest.$ac_ext >&5
13046 eval "$as_ac_var=no"
13047 fi
13048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13049 fi
13050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13051 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13052 if 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
13057 fi
13058 done
13059
13060     ;;
13061 esac
13062 case "$host" in
13063  *-pc-cygwin*)
13064     # I have no idea...
13065     ;;
13066  *)
13067 for ac_func in umask
13068 do
13069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13070 echo "$as_me:$LINENO: checking for $ac_func" >&5
13071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13072 if eval "test \"\${$as_ac_var+set}\" = set"; then
13073   echo $ECHO_N "(cached) $ECHO_C" >&6
13074 else
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
13083 extern "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.  */
13087 char $ac_func ();
13088 char (*f) ();
13089
13090 #ifdef F77_DUMMY_MAIN
13091 #  ifdef __cplusplus
13092      extern "C"
13093 #  endif
13094    int F77_DUMMY_MAIN() { return 1; }
13095 #endif
13096 int
13097 main ()
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)
13103 choke me
13104 #else
13105 f = $ac_func;
13106 #endif
13107
13108   ;
13109   return 0;
13110 }
13111 _ACEOF
13112 rm -f conftest.$ac_objext conftest$ac_exeext
13113 if { (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"
13125 else
13126   echo "$as_me: failed program was:" >&5
13127 cat conftest.$ac_ext >&5
13128 eval "$as_ac_var=no"
13129 fi
13130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13131 fi
13132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13134 if 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
13139 fi
13140 done
13141
13142     ;;
13143 esac
13144
13145
13146
13147
13148 for ac_func in uname updwtmp updwtmpx vsprintf
13149 do
13150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13151 echo "$as_me:$LINENO: checking for $ac_func" >&5
13152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13153 if eval "test \"\${$as_ac_var+set}\" = set"; then
13154   echo $ECHO_N "(cached) $ECHO_C" >&6
13155 else
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
13164 extern "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.  */
13168 char $ac_func ();
13169 char (*f) ();
13170
13171 #ifdef F77_DUMMY_MAIN
13172 #  ifdef __cplusplus
13173      extern "C"
13174 #  endif
13175    int F77_DUMMY_MAIN() { return 1; }
13176 #endif
13177 int
13178 main ()
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)
13184 choke me
13185 #else
13186 f = $ac_func;
13187 #endif
13188
13189   ;
13190   return 0;
13191 }
13192 _ACEOF
13193 rm -f conftest.$ac_objext conftest$ac_exeext
13194 if { (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"
13206 else
13207   echo "$as_me: failed program was:" >&5
13208 cat conftest.$ac_ext >&5
13209 eval "$as_ac_var=no"
13210 fi
13211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13212 fi
13213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13214 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13215 if 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
13220 fi
13221 done
13222
13223
13224 echo "$as_me:$LINENO: checking number of arguments to gettimeofday()" >&5
13225 echo $ECHO_N "checking number of arguments to gettimeofday()... $ECHO_C" >&6
13226 if test "${ac_cv_func_Xettimeofday_nargs+set}" = set; then
13227   echo $ECHO_N "(cached) $ECHO_C" >&6
13228 else
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
13239 int
13240 main ()
13241 {
13242
13243 gettimeofday((struct timeval*)0,(struct timezone*)0);
13244 settimeofday((struct timeval*)0,(struct timezone*)0);
13245
13246   ;
13247   return 0;
13248 }
13249 _ACEOF
13250 rm -f conftest.$ac_objext
13251 if { (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
13263 else
13264   echo "$as_me: failed program was:" >&5
13265 cat conftest.$ac_ext >&5
13266 ac_cv_func_Xettimeofday_nargs=1
13267 fi
13268 rm -f conftest.$ac_objext conftest.$ac_ext
13269
13270 fi
13271 echo "$as_me:$LINENO: result: $ac_cv_func_Xettimeofday_nargs" >&5
13272 echo "${ECHO_T}$ac_cv_func_Xettimeofday_nargs" >&6
13273 if test $ac_cv_func_Xettimeofday_nargs = 1; then
13274
13275 cat >>confdefs.h <<\_ACEOF
13276 #define SYSV_TIMEOFDAY 1
13277 _ACEOF
13278
13279 fi
13280
13281 echo "$as_me:$LINENO: checking number of arguments taken by setpgrp()" >&5
13282 echo $ECHO_N "checking number of arguments taken by setpgrp()... $ECHO_C" >&6
13283 if test "${ac_cv_func_setpgrp_nargs+set}" = set; then
13284   echo $ECHO_N "(cached) $ECHO_C" >&6
13285 else
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
13303 int
13304 main ()
13305 {
13306 setpgrp(0,0);
13307   ;
13308   return 0;
13309 }
13310 _ACEOF
13311 rm -f conftest.$ac_objext
13312 if { (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
13324 else
13325   echo "$as_me: failed program was:" >&5
13326 cat conftest.$ac_ext >&5
13327 ac_cv_func_setpgrp_nargs=0
13328 fi
13329 rm -f conftest.$ac_objext conftest.$ac_ext
13330
13331 fi
13332 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_nargs" >&5
13333 echo "${ECHO_T}$ac_cv_func_setpgrp_nargs" >&6
13334 if test $ac_cv_func_setpgrp_nargs = 0; then
13335
13336 cat >>confdefs.h <<\_ACEOF
13337 #define HAVE_SETPGRP_0 1
13338 _ACEOF
13339
13340 fi
13341
13342 save_CFLAGS=$CFLAGS
13343 CFLAGS="$CFLAGS -I$srcdir/include"
13344
13345 echo "$as_me:$LINENO: checking argument pointer type of qsort()'s compare function and base" >&5
13346 echo $ECHO_N "checking argument pointer type of qsort()'s compare function and base... $ECHO_C" >&6
13347 if test "${ac_cv_func_qsort_argtype+set}" = set; then
13348   echo $ECHO_N "(cached) $ECHO_C" >&6
13349 else
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
13362 extern void *base;
13363 extern sortfunc P((const void *, const void *));
13364 int 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
13374 int
13375 main ()
13376 {
13377
13378 qsort(base, 2, sizeof(char *), sortfunc);
13379
13380   ;
13381   return 0;
13382 }
13383 _ACEOF
13384 rm -f conftest.$ac_objext
13385 if { (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
13397 else
13398   echo "$as_me: failed program was:" >&5
13399 cat conftest.$ac_ext >&5
13400 ac_cv_func_qsort_argtype=char
13401 fi
13402 rm -f conftest.$ac_objext conftest.$ac_ext
13403
13404 fi
13405 echo "$as_me:$LINENO: result: $ac_cv_func_qsort_argtype" >&5
13406 echo "${ECHO_T}$ac_cv_func_qsort_argtype" >&6
13407 case "$ac_cv_func_qsort_argtype" in
13408  void)
13409
13410 cat >>confdefs.h <<\_ACEOF
13411 #define QSORT_USES_VOID_P 1
13412 _ACEOF
13413
13414     ;;
13415 esac
13416
13417 CFLAGS=$save_CFLAGS
13418
13419 echo "$as_me:$LINENO: checking if we need to declare 'errno'" >&5
13420 echo $ECHO_N "checking if we need to declare 'errno'... $ECHO_C" >&6
13421 if test "${ac_cv_decl_errno+set}" = set; then
13422   echo $ECHO_N "(cached) $ECHO_C" >&6
13423 else
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
13436 int
13437 main ()
13438 {
13439 errno = 0;
13440   ;
13441   return 0;
13442 }
13443 _ACEOF
13444 rm -f conftest.$ac_objext
13445 if { (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
13457 else
13458   echo "$as_me: failed program was:" >&5
13459 cat conftest.$ac_ext >&5
13460 ac_cv_decl_errno=yes
13461 fi
13462 rm -f conftest.$ac_objext conftest.$ac_ext
13463 fi
13464 echo "$as_me:$LINENO: result: $ac_cv_decl_errno" >&5
13465 echo "${ECHO_T}$ac_cv_decl_errno" >&6
13466 case "$ac_cv_decl_errno" in
13467  yes)
13468 cat >>confdefs.h <<\_ACEOF
13469 #define DECL_ERRNO 1
13470 _ACEOF
13471  ;;
13472 esac
13473
13474 echo "$as_me:$LINENO: checking if we may declare 'h_errno'" >&5
13475 echo $ECHO_N "checking if we may declare 'h_errno'... $ECHO_C" >&6
13476 if test "${ac_cv_decl_h_errno+set}" = set; then
13477   echo $ECHO_N "(cached) $ECHO_C" >&6
13478 else
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
13501 int
13502 main ()
13503 {
13504 extern int h_errno;
13505   ;
13506   return 0;
13507 }
13508 _ACEOF
13509 rm -f conftest.$ac_objext
13510 if { (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
13522 else
13523   echo "$as_me: failed program was:" >&5
13524 cat conftest.$ac_ext >&5
13525 ac_cv_decl_h_errno=no
13526 fi
13527 rm -f conftest.$ac_objext conftest.$ac_ext
13528 fi
13529 echo "$as_me:$LINENO: result: $ac_cv_decl_h_errno" >&5
13530 echo "${ECHO_T}$ac_cv_decl_h_errno" >&6
13531 case "$ac_cv_decl_h_errno" in
13532  yes)
13533 cat >>confdefs.h <<\_ACEOF
13534 #define DECL_H_ERRNO 1
13535 _ACEOF
13536  ;;
13537 esac
13538
13539 echo "$as_me:$LINENO: checking if declaring 'char *sys_errlist[]' is ok" >&5
13540 echo $ECHO_N "checking if declaring 'char *sys_errlist[]' is ok... $ECHO_C" >&6
13541 if test "${ac_cv_decl_sys_errlist+set}" = set; then
13542   echo $ECHO_N "(cached) $ECHO_C" >&6
13543 else
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
13557 int
13558 main ()
13559 {
13560 extern char *sys_errlist[];
13561
13562   ;
13563   return 0;
13564 }
13565 _ACEOF
13566 rm -f conftest.$ac_objext
13567 if { (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
13579 else
13580   echo "$as_me: failed program was:" >&5
13581 cat conftest.$ac_ext >&5
13582 ac_cv_decl_sys_errlist=no
13583 fi
13584 rm -f conftest.$ac_objext conftest.$ac_ext
13585 fi
13586 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_errlist" >&5
13587 echo "${ECHO_T}$ac_cv_decl_sys_errlist" >&6
13588 case "$ac_cv_decl_sys_errlist" in
13589  yes)
13590 cat >>confdefs.h <<\_ACEOF
13591 #define CHAR_SYS_ERRLIST 1
13592 _ACEOF
13593  ;;
13594 esac
13595
13596 echo "$as_me:$LINENO: checking if declaring 'syscall()' is ok" >&5
13597 echo $ECHO_N "checking if declaring 'syscall()' is ok... $ECHO_C" >&6
13598 if test "${ac_cv_decl_syscall+set}" = set; then
13599   echo $ECHO_N "(cached) $ECHO_C" >&6
13600 else
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
13623 int
13624 main ()
13625 {
13626 extern int syscall P((int, ...));
13627   ;
13628   return 0;
13629 }
13630 _ACEOF
13631 rm -f conftest.$ac_objext
13632 if { (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
13644 else
13645   echo "$as_me: failed program was:" >&5
13646 cat conftest.$ac_ext >&5
13647 ac_cv_decl_syscall=no
13648 fi
13649 rm -f conftest.$ac_objext conftest.$ac_ext
13650 fi
13651 echo "$as_me:$LINENO: result: $ac_cv_decl_syscall" >&5
13652 echo "${ECHO_T}$ac_cv_decl_syscall" >&6
13653 case "$ac_cv_decl_syscall" in
13654  yes)
13655 cat >>confdefs.h <<\_ACEOF
13656 #define DECL_SYSCALL 1
13657 _ACEOF
13658  ;;
13659 esac
13660
13661 case "$host" in
13662  *-*-aix4.3.*)
13663
13664 cat >>confdefs.h <<\_ACEOF
13665 #define DECL_HSTRERROR_0 1
13666 _ACEOF
13667                 # Needed for XLC under AIX 4.3.2
13668     ;;
13669  *-*-mpeix*)
13670
13671 cat >>confdefs.h <<\_ACEOF
13672 #define DECL_ADJTIME_0 1
13673 _ACEOF
13674
13675
13676 cat >>confdefs.h <<\_ACEOF
13677 #define DECL_INET_NTOA_0 1
13678 _ACEOF
13679
13680
13681 cat >>confdefs.h <<\_ACEOF
13682 #define DECL_MKTEMP_0 1
13683 _ACEOF
13684
13685
13686 cat >>confdefs.h <<\_ACEOF
13687 #define DECL_MRAND48_0 1
13688 _ACEOF
13689
13690
13691 cat >>confdefs.h <<\_ACEOF
13692 #define DECL_SELECT_0 1
13693 _ACEOF
13694
13695
13696 cat >>confdefs.h <<\_ACEOF
13697 #define DECL_SETITIMER_0 1
13698 _ACEOF
13699
13700
13701 cat >>confdefs.h <<\_ACEOF
13702 #define DECL_SRAND48_0 1
13703 _ACEOF
13704
13705
13706 cat >>confdefs.h <<\_ACEOF
13707 #define DECL_SYSLOG_0 1
13708 _ACEOF
13709
13710
13711 cat >>confdefs.h <<\_ACEOF
13712 #define DECL_TIMEOFDAY_0 1
13713 _ACEOF
13714
13715     ;;
13716  *-*-osf[45]*)
13717
13718 cat >>confdefs.h <<\_ACEOF
13719 #define DECL_PLOCK_0 1
13720 _ACEOF
13721
13722
13723 cat >>confdefs.h <<\_ACEOF
13724 #define DECL_STIME_1 1
13725 _ACEOF
13726
13727     ;;
13728  *-*-qnx*)
13729
13730 cat >>confdefs.h <<\_ACEOF
13731 #define DECL_ADJTIME_0 1
13732 _ACEOF
13733
13734     ;;
13735  *-*-riscos4*)
13736
13737 cat >>confdefs.h <<\_ACEOF
13738 #define DECL_ADJTIME_0 1
13739 _ACEOF
13740
13741
13742 cat >>confdefs.h <<\_ACEOF
13743 #define DECL_BZERO_0 1
13744 _ACEOF
13745
13746
13747 cat >>confdefs.h <<\_ACEOF
13748 #define DECL_IOCTL_0 1
13749 _ACEOF
13750
13751
13752 cat >>confdefs.h <<\_ACEOF
13753 #define DECL_IPC_0 1
13754 _ACEOF
13755
13756
13757 cat >>confdefs.h <<\_ACEOF
13758 #define DECL_MEMMOVE_0 1
13759 _ACEOF
13760
13761
13762 cat >>confdefs.h <<\_ACEOF
13763 #define DECL_MKTEMP_0 1
13764 _ACEOF
13765
13766
13767 cat >>confdefs.h <<\_ACEOF
13768 #define DECL_RENAME_0 1
13769 _ACEOF
13770
13771
13772 cat >>confdefs.h <<\_ACEOF
13773 #define DECL_SELECT_0 1
13774 _ACEOF
13775
13776
13777 cat >>confdefs.h <<\_ACEOF
13778 #define DECL_SETITIMER_0 1
13779 _ACEOF
13780
13781
13782 cat >>confdefs.h <<\_ACEOF
13783 #define DECL_SETPRIORITY_0 1
13784 _ACEOF
13785
13786
13787 cat >>confdefs.h <<\_ACEOF
13788 #define DECL_STDIO_0 1
13789 _ACEOF
13790
13791
13792 cat >>confdefs.h <<\_ACEOF
13793 #define DECL_STRTOL_0 1
13794 _ACEOF
13795
13796
13797 cat >>confdefs.h <<\_ACEOF
13798 #define DECL_SYSLOG_0 1
13799 _ACEOF
13800
13801
13802 cat >>confdefs.h <<\_ACEOF
13803 #define DECL_TIME_0 1
13804 _ACEOF
13805
13806
13807 cat >>confdefs.h <<\_ACEOF
13808 #define DECL_TIMEOFDAY_0 1
13809 _ACEOF
13810
13811
13812 cat >>confdefs.h <<\_ACEOF
13813 #define DECL_TOLOWER_0 1
13814 _ACEOF
13815
13816     ;;
13817  *-*-solaris2*)
13818
13819 cat >>confdefs.h <<\_ACEOF
13820 #define DECL_MKSTEMP_0 1
13821 _ACEOF
13822
13823
13824 cat >>confdefs.h <<\_ACEOF
13825 #define DECL_SETPRIORITY_1 1
13826 _ACEOF
13827
13828     case "$host" in
13829      *-*-solaris2.4)
13830
13831 cat >>confdefs.h <<\_ACEOF
13832 #define DECL_TIMEOFDAY_0 1
13833 _ACEOF
13834
13835         ;;
13836     esac
13837     ;;
13838  *-*-sunos4*)
13839
13840 cat >>confdefs.h <<\_ACEOF
13841 #define DECL_ADJTIME_0 1
13842 _ACEOF
13843
13844
13845 cat >>confdefs.h <<\_ACEOF
13846 #define DECL_BCOPY_0 1
13847 _ACEOF
13848
13849
13850 cat >>confdefs.h <<\_ACEOF
13851 #define DECL_BZERO_0 1
13852 _ACEOF
13853
13854
13855 cat >>confdefs.h <<\_ACEOF
13856 #define DECL_IOCTL_0 1
13857 _ACEOF
13858
13859
13860 cat >>confdefs.h <<\_ACEOF
13861 #define DECL_IPC_0 1
13862 _ACEOF
13863
13864
13865 cat >>confdefs.h <<\_ACEOF
13866 #define DECL_MEMMOVE_0 1
13867 _ACEOF
13868
13869
13870 cat >>confdefs.h <<\_ACEOF
13871 #define DECL_MKTEMP_0 1
13872 _ACEOF
13873
13874
13875 cat >>confdefs.h <<\_ACEOF
13876 #define DECL_MKSTEMP_0 1
13877 _ACEOF
13878
13879
13880 cat >>confdefs.h <<\_ACEOF
13881 #define DECL_MRAND48_0 1
13882 _ACEOF
13883
13884
13885 cat >>confdefs.h <<\_ACEOF
13886 #define DECL_RENAME_0 1
13887 _ACEOF
13888
13889
13890 cat >>confdefs.h <<\_ACEOF
13891 #define DECL_SELECT_0 1
13892 _ACEOF
13893
13894
13895 cat >>confdefs.h <<\_ACEOF
13896 #define DECL_SETITIMER_0 1
13897 _ACEOF
13898
13899
13900 cat >>confdefs.h <<\_ACEOF
13901 #define DECL_SETPRIORITY_0 1
13902 _ACEOF
13903
13904
13905 cat >>confdefs.h <<\_ACEOF
13906 #define DECL_SIGVEC_0 1
13907 _ACEOF
13908
13909
13910 cat >>confdefs.h <<\_ACEOF
13911 #define DECL_SRAND48_0 1
13912 _ACEOF
13913
13914     case "`basename $ac_cv_prog_CC`" in
13915      acc*) ;;
13916      *)
13917 cat >>confdefs.h <<\_ACEOF
13918 #define DECL_STDIO_0 1
13919 _ACEOF
13920
13921         ;;
13922     esac
13923
13924 cat >>confdefs.h <<\_ACEOF
13925 #define DECL_STRTOL_0 1
13926 _ACEOF
13927
13928
13929 cat >>confdefs.h <<\_ACEOF
13930 #define DECL_SYSLOG_0 1
13931 _ACEOF
13932
13933
13934 cat >>confdefs.h <<\_ACEOF
13935 #define DECL_TIME_0 1
13936 _ACEOF
13937
13938
13939 cat >>confdefs.h <<\_ACEOF
13940 #define DECL_TIMEOFDAY_0 1
13941 _ACEOF
13942
13943
13944 cat >>confdefs.h <<\_ACEOF
13945 #define DECL_TOLOWER_0 1
13946 _ACEOF
13947
13948
13949 cat >>confdefs.h <<\_ACEOF
13950 #define DECL_TOUPPER_0 1
13951 _ACEOF
13952
13953
13954 cat >>confdefs.h <<\_ACEOF
13955 #define DECL_STRERROR_0 1
13956 _ACEOF
13957
13958     ;;
13959  *-*-ultrix4*)
13960
13961 cat >>confdefs.h <<\_ACEOF
13962 #define DECL_ADJTIME_0 1
13963 _ACEOF
13964
13965
13966 cat >>confdefs.h <<\_ACEOF
13967 #define DECL_BZERO_0 1
13968 _ACEOF
13969
13970
13971 cat >>confdefs.h <<\_ACEOF
13972 #define DECL_CFSETISPEED_0 1
13973 _ACEOF
13974
13975
13976 cat >>confdefs.h <<\_ACEOF
13977 #define DECL_IOCTL_0 1
13978 _ACEOF
13979
13980
13981 cat >>confdefs.h <<\_ACEOF
13982 #define DECL_IPC_0 1
13983 _ACEOF
13984
13985
13986 cat >>confdefs.h <<\_ACEOF
13987 #define DECL_MKTEMP_0 1
13988 _ACEOF
13989
13990
13991 cat >>confdefs.h <<\_ACEOF
13992 #define DECL_MRAND48_0 1
13993 _ACEOF
13994
13995
13996 cat >>confdefs.h <<\_ACEOF
13997 #define DECL_NLIST_0 1
13998 _ACEOF
13999
14000
14001 cat >>confdefs.h <<\_ACEOF
14002 #define DECL_PLOCK_0 1
14003 _ACEOF
14004
14005
14006 cat >>confdefs.h <<\_ACEOF
14007 #define DECL_SELECT_0 1
14008 _ACEOF
14009
14010
14011 cat >>confdefs.h <<\_ACEOF
14012 #define DECL_SETITIMER_0 1
14013 _ACEOF
14014
14015
14016 cat >>confdefs.h <<\_ACEOF
14017 #define DECL_SETPRIORITY_0 1
14018 _ACEOF
14019
14020
14021 cat >>confdefs.h <<\_ACEOF
14022 #define DECL_SRAND48_0 1
14023 _ACEOF
14024
14025
14026 cat >>confdefs.h <<\_ACEOF
14027 #define DECL_STIME_0 1
14028 _ACEOF
14029
14030
14031 cat >>confdefs.h <<\_ACEOF
14032 #define DECL_SYSLOG_0 1
14033 _ACEOF
14034
14035
14036 cat >>confdefs.h <<\_ACEOF
14037 #define DECL_TIMEOFDAY_0 1
14038 _ACEOF
14039
14040     ;;
14041 esac
14042
14043 case "$host" in
14044  *-*-sco3.2*)
14045
14046 cat >>confdefs.h <<\_ACEOF
14047 #define TERMIOS_NEEDS__SVID3 1
14048 _ACEOF
14049
14050     ;;
14051 esac
14052
14053 echo "$as_me:$LINENO: checking if we should use a streams device for ifconfig" >&5
14054 echo $ECHO_N "checking if we should use a streams device for ifconfig... $ECHO_C" >&6
14055 if test "${ac_cv_var_use_streams_device_for_ifconfig+set}" = set; then
14056   echo $ECHO_N "(cached) $ECHO_C" >&6
14057 else
14058   ac_cv_var_use_streams_device_for_ifconfig=no
14059 fi
14060 echo "$as_me:$LINENO: result: $ac_cv_var_use_streams_device_for_ifconfig" >&5
14061 echo "${ECHO_T}$ac_cv_var_use_streams_device_for_ifconfig" >&6
14062
14063 echo "$as_me:$LINENO: checking if we need extra room for SO_RCVBUF" >&5
14064 echo $ECHO_N "checking if we need extra room for SO_RCVBUF... $ECHO_C" >&6
14065 if test "${ac_cv_var_rcvbuf_slop+set}" = set; then
14066   echo $ECHO_N "(cached) $ECHO_C" >&6
14067 else
14068   ans=no
14069 case "$host" in
14070  *-*-hpux[567]*)
14071     ans=yes
14072     ;;
14073 esac
14074 ac_cv_var_rcvbuf_slop=$ans
14075 fi
14076 echo "$as_me:$LINENO: result: $ac_cv_var_rcvbuf_slop" >&5
14077 echo "${ECHO_T}$ac_cv_var_rcvbuf_slop" >&6
14078 case "$ac_cv_var_rcvbuf_slop" in
14079  yes)
14080 cat >>confdefs.h <<\_ACEOF
14081 #define NEED_RCVBUF_SLOP 1
14082 _ACEOF
14083  ;;
14084 esac
14085
14086 echo "$as_me:$LINENO: checking if we will open the broadcast socket" >&5
14087 echo $ECHO_N "checking if we will open the broadcast socket... $ECHO_C" >&6
14088 if test "${ac_cv_var_open_bcast_socket+set}" = set; then
14089   echo $ECHO_N "(cached) $ECHO_C" >&6
14090 else
14091   ans=yes
14092 case "$host" in
14093  *-*-domainos)
14094     ans=no
14095     ;;
14096  *-*-linux*)
14097     ans=no
14098     ;;
14099 esac
14100 ac_cv_var_open_bcast_socket=$ans
14101 fi
14102 echo "$as_me:$LINENO: result: $ac_cv_var_open_bcast_socket" >&5
14103 echo "${ECHO_T}$ac_cv_var_open_bcast_socket" >&6
14104 case "$ac_cv_var_open_bcast_socket" in
14105  yes)
14106 cat >>confdefs.h <<\_ACEOF
14107 #define OPEN_BCAST_SOCKET 1
14108 _ACEOF
14109  ;;
14110 esac
14111
14112 echo "$as_me:$LINENO: checking if we want the HPUX version of FindConfig()" >&5
14113 echo $ECHO_N "checking if we want the HPUX version of FindConfig()... $ECHO_C" >&6
14114 if test "${ac_cv_var_hpux_findconfig+set}" = set; then
14115   echo $ECHO_N "(cached) $ECHO_C" >&6
14116 else
14117   ans=no
14118 case "$host" in
14119  *-*-hpux*)
14120     ans=yes
14121     ;;
14122 esac
14123 ac_cv_var_hpux_findconfig=$ans
14124 fi
14125 echo "$as_me:$LINENO: result: $ac_cv_var_hpux_findconfig" >&5
14126 echo "${ECHO_T}$ac_cv_var_hpux_findconfig" >&6
14127 case "$ac_cv_var_hpux_findconfig" in
14128  yes)
14129 cat >>confdefs.h <<\_ACEOF
14130 #define NEED_HPUX_FINDCONFIG 1
14131 _ACEOF
14132  ;;
14133 esac
14134
14135 echo "$as_me:$LINENO: checking if process groups are set with -pid" >&5
14136 echo $ECHO_N "checking if process groups are set with -pid... $ECHO_C" >&6
14137 if test "${ac_cv_arg_setpgrp_negpid+set}" = set; then
14138   echo $ECHO_N "(cached) $ECHO_C" >&6
14139 else
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     ;;
14159 esac
14160 ac_cv_arg_setpgrp_negpid=$ans
14161 fi
14162 echo "$as_me:$LINENO: result: $ac_cv_arg_setpgrp_negpid" >&5
14163 echo "${ECHO_T}$ac_cv_arg_setpgrp_negpid" >&6
14164 case "$ac_cv_arg_setpgrp_negpid" in
14165  yes)
14166 cat >>confdefs.h <<\_ACEOF
14167 #define UDP_BACKWARDS_SETOWN 1
14168 _ACEOF
14169  ;;
14170 esac
14171
14172 echo "$as_me:$LINENO: checking if we need a ctty for F_SETOWN" >&5
14173 echo $ECHO_N "checking if we need a ctty for F_SETOWN... $ECHO_C" >&6
14174 if test "${ac_cv_func_ctty_for_f_setown+set}" = set; then
14175   echo $ECHO_N "(cached) $ECHO_C" >&6
14176 else
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     ;;
14195 esac
14196 ac_cv_func_ctty_for_f_setown=$ans
14197 fi
14198 echo "$as_me:$LINENO: result: $ac_cv_func_ctty_for_f_setown" >&5
14199 echo "${ECHO_T}$ac_cv_func_ctty_for_f_setown" >&6
14200 case "$ac_cv_func_ctty_for_f_setown" in
14201  yes)
14202 cat >>confdefs.h <<\_ACEOF
14203 #define USE_FSETOWNCTTY 1
14204 _ACEOF
14205  ;;
14206 esac
14207
14208 ntp_warning='GRONK'
14209 echo "$as_me:$LINENO: checking if we'll use clock_settime or settimeofday or stime" >&5
14210 echo $ECHO_N "checking if we'll use clock_settime or settimeofday or stime... $ECHO_C" >&6
14211 case "$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     ;;
14229 esac
14230 esac
14231 echo "$as_me:$LINENO: result: $ans" >&5
14232 echo "${ECHO_T}$ans" >&6
14233 case "$ntp_warning" in
14234  '') ;;
14235  *) { echo "$as_me:$LINENO: WARNING: *** $ntp_warning ***" >&5
14236 echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
14237     ;;
14238 esac
14239
14240 echo "$as_me:$LINENO: checking if we have a losing syscall()" >&5
14241 echo $ECHO_N "checking if we have a losing syscall()... $ECHO_C" >&6
14242 if test "${ac_cv_var_syscall_bug+set}" = set; then
14243   echo $ECHO_N "(cached) $ECHO_C" >&6
14244 else
14245   case "$host" in
14246  *-*-solaris2.4*)
14247     ans=yes
14248     ;;
14249  *) ans=no
14250     ;;
14251 esac
14252 ac_cv_var_syscall_bug=$ans
14253 fi
14254 echo "$as_me:$LINENO: result: $ac_cv_var_syscall_bug" >&5
14255 echo "${ECHO_T}$ac_cv_var_syscall_bug" >&6
14256 case "$ac_cv_var_syscall_bug" in
14257  yes)
14258 cat >>confdefs.h <<\_ACEOF
14259 #define SYSCALL_BUG 1
14260 _ACEOF
14261  ;;
14262 esac
14263
14264 echo "$as_me:$LINENO: checking for Streams/TLI" >&5
14265 echo $ECHO_N "checking for Streams/TLI... $ECHO_C" >&6
14266 if test "${ac_cv_var_streams_tli+set}" = set; then
14267   echo $ECHO_N "(cached) $ECHO_C" >&6
14268 else
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
14281 fi
14282 echo "$as_me:$LINENO: result: $ac_cv_var_streams_tli" >&5
14283 echo "${ECHO_T}$ac_cv_var_streams_tli" >&6
14284 case "$ac_cv_var_streams_tli" in
14285  yes)
14286
14287 cat >>confdefs.h <<\_ACEOF
14288 #define STREAMS_TLI 1
14289 _ACEOF
14290
14291     ;;
14292 esac
14293
14294 echo "$as_me:$LINENO: checking for SIGIO" >&5
14295 echo $ECHO_N "checking for SIGIO... $ECHO_C" >&6
14296 if test "${ac_cv_hdr_def_sigio+set}" = set; then
14297   echo $ECHO_N "(cached) $ECHO_C" >&6
14298 else
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
14308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14309   egrep "yes" >/dev/null 2>&1; then
14310   ac_cv_hdr_def_sigio=yes
14311 else
14312   ac_cv_hdr_def_sigio=no
14313 fi
14314 rm -f conftest*
14315
14316 fi
14317 echo "$as_me:$LINENO: result: $ac_cv_hdr_def_sigio" >&5
14318 echo "${ECHO_T}$ac_cv_hdr_def_sigio" >&6
14319
14320 echo "$as_me:$LINENO: checking if we want to use signalled IO" >&5
14321 echo $ECHO_N "checking if we want to use signalled IO... $ECHO_C" >&6
14322 if test "${ac_cv_var_signalled_io+set}" = set; then
14323   echo $ECHO_N "(cached) $ECHO_C" >&6
14324 else
14325   ans=no
14326 case "$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     ;;
14359 esac
14360 ac_cv_var_signalled_io=$ans
14361 fi
14362 echo "$as_me:$LINENO: result: $ac_cv_var_signalled_io" >&5
14363 echo "${ECHO_T}$ac_cv_var_signalled_io" >&6
14364 case "$ac_cv_var_signalled_io" in
14365  yes)
14366 cat >>confdefs.h <<\_ACEOF
14367 #define HAVE_SIGNALED_IO 1
14368 _ACEOF
14369  ;;
14370 esac
14371
14372 echo "$as_me:$LINENO: checking for SIGPOLL" >&5
14373 echo $ECHO_N "checking for SIGPOLL... $ECHO_C" >&6
14374 if test "${ac_cv_hdr_def_sigpoll+set}" = set; then
14375   echo $ECHO_N "(cached) $ECHO_C" >&6
14376 else
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
14386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14387   egrep "yes" >/dev/null 2>&1; then
14388   ac_cv_hdr_def_sigpoll=yes
14389 else
14390   ac_cv_hdr_def_sigpoll=no
14391 fi
14392 rm -f conftest*
14393
14394 fi
14395 echo "$as_me:$LINENO: result: $ac_cv_hdr_def_sigpoll" >&5
14396 echo "${ECHO_T}$ac_cv_hdr_def_sigpoll" >&6
14397
14398 echo "$as_me:$LINENO: checking for SIGSYS" >&5
14399 echo $ECHO_N "checking for SIGSYS... $ECHO_C" >&6
14400 if test "${ac_cv_hdr_def_sigsys+set}" = set; then
14401   echo $ECHO_N "(cached) $ECHO_C" >&6
14402 else
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
14412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14413   egrep "yes" >/dev/null 2>&1; then
14414   ac_cv_hdr_def_sigsys=yes
14415 else
14416   ac_cv_hdr_def_sigsys=no
14417 fi
14418 rm -f conftest*
14419
14420 fi
14421 echo "$as_me:$LINENO: result: $ac_cv_hdr_def_sigsys" >&5
14422 echo "${ECHO_T}$ac_cv_hdr_def_sigsys" >&6
14423
14424 echo "$as_me:$LINENO: checking if we can use SIGPOLL for UDP I/O" >&5
14425 echo $ECHO_N "checking if we can use SIGPOLL for UDP I/O... $ECHO_C" >&6
14426 if test "${ac_cv_var_use_udp_sigpoll+set}" = set; then
14427   echo $ECHO_N "(cached) $ECHO_C" >&6
14428 else
14429   ans=no
14430 case "$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     ;;
14470 esac
14471 ac_cv_var_use_udp_sigpoll=$ans
14472 fi
14473 echo "$as_me:$LINENO: result: $ac_cv_var_use_udp_sigpoll" >&5
14474 echo "${ECHO_T}$ac_cv_var_use_udp_sigpoll" >&6
14475 case "$ac_cv_var_use_udp_sigpoll" in
14476  yes)
14477 cat >>confdefs.h <<\_ACEOF
14478 #define USE_UDP_SIGPOLL 1
14479 _ACEOF
14480  ;;
14481 esac
14482
14483 echo "$as_me:$LINENO: checking if we can use SIGPOLL for TTY I/O" >&5
14484 echo $ECHO_N "checking if we can use SIGPOLL for TTY I/O... $ECHO_C" >&6
14485 if test "${ac_cv_var_use_tty_sigpoll+set}" = set; then
14486   echo $ECHO_N "(cached) $ECHO_C" >&6
14487 else
14488   ans=no
14489 case "$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     ;;
14529 esac
14530 ac_cv_var_use_tty_sigpoll=$ans
14531 fi
14532 echo "$as_me:$LINENO: result: $ac_cv_var_use_tty_sigpoll" >&5
14533 echo "${ECHO_T}$ac_cv_var_use_tty_sigpoll" >&6
14534 case "$ac_cv_var_use_tty_sigpoll" in
14535  yes)
14536 cat >>confdefs.h <<\_ACEOF
14537 #define USE_TTY_SIGPOLL 1
14538 _ACEOF
14539  ;;
14540 esac
14541
14542 case "$ac_cv_header_sys_sio_h" in
14543  yes)
14544     echo "$as_me:$LINENO: checking sys/sio.h for TIOCDCDTIMESTAMP" >&5
14545 echo $ECHO_N "checking sys/sio.h for TIOCDCDTIMESTAMP... $ECHO_C" >&6
14546 if test "${ac_cv_hdr_def_tiocdcdtimestamp+set}" = set; then
14547   echo $ECHO_N "(cached) $ECHO_C" >&6
14548 else
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
14558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14559   egrep "yes" >/dev/null 2>&1; then
14560   ac_cv_hdr_def_tiocdcdtimestamp=yes
14561 else
14562   ac_cv_hdr_def_tiocdcdtimestamp=no
14563 fi
14564 rm -f conftest*
14565
14566 fi
14567 echo "$as_me:$LINENO: result: $ac_cv_hdr_def_tiocdcdtimestamp" >&5
14568 echo "${ECHO_T}$ac_cv_hdr_def_tiocdcdtimestamp" >&6
14569     ;;
14570 esac
14571
14572 case "$ac_cv_hdr_def_tiocdcdtimestamp" in
14573  yes)
14574     ac_cv_var_oncore_ok=yes
14575     ;;
14576 esac
14577
14578 echo "$as_me:$LINENO: checking if nlist() values might require extra indirection" >&5
14579 echo $ECHO_N "checking if nlist() values might require extra indirection... $ECHO_C" >&6
14580 if test "${ac_cv_var_nlist_extra_indirection+set}" = set; then
14581   echo $ECHO_N "(cached) $ECHO_C" >&6
14582 else
14583   ans=no
14584 case "$host" in
14585  *-*-aix*)
14586     ans=yes
14587     ;;
14588 esac
14589 ac_cv_var_nlist_extra_indirection=$ans
14590 fi
14591 echo "$as_me:$LINENO: result: $ac_cv_var_nlist_extra_indirection" >&5
14592 echo "${ECHO_T}$ac_cv_var_nlist_extra_indirection" >&6
14593 case "$ac_cv_var_nlist_extra_indirection" in
14594  yes)
14595 cat >>confdefs.h <<\_ACEOF
14596 #define NLIST_EXTRA_INDIRECTION 1
14597 _ACEOF
14598  ;;
14599 esac
14600
14601 echo "$as_me:$LINENO: checking for a minimum recommended value of tickadj" >&5
14602 echo $ECHO_N "checking for a minimum recommended value of tickadj... $ECHO_C" >&6
14603 if test "${ac_cv_var_min_rec_tickadj+set}" = set; then
14604   echo $ECHO_N "(cached) $ECHO_C" >&6
14605 else
14606   ans=no
14607 case "$host" in
14608  *-*-aix*)
14609     ans=40
14610     ;;
14611 esac
14612 ac_cv_var_min_rec_tickadj=$ans
14613 fi
14614 echo "$as_me:$LINENO: result: $ac_cv_var_min_rec_tickadj" >&5
14615 echo "${ECHO_T}$ac_cv_var_min_rec_tickadj" >&6
14616 case "$ac_cv_var_min_rec_tickadj" in
14617  ''|no) ;;
14618  *)
14619 cat >>confdefs.h <<_ACEOF
14620 #define MIN_REC_TICKADJ $ac_cv_var_min_rec_tickadj
14621 _ACEOF
14622  ;;
14623 esac
14624
14625 echo "$as_me:$LINENO: checking if the TTY code permits PARENB and IGNPAR" >&5
14626 echo $ECHO_N "checking if the TTY code permits PARENB and IGNPAR... $ECHO_C" >&6
14627 if test "${ac_cv_var_no_parenb_ignpar+set}" = set; then
14628   echo $ECHO_N "(cached) $ECHO_C" >&6
14629 else
14630   ans=no
14631 case "$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     ;;
14643 esac
14644 ac_cv_var_no_parenb_ignpar=$ans
14645 fi
14646 echo "$as_me:$LINENO: result: $ac_cv_var_no_parenb_ignpar" >&5
14647 echo "${ECHO_T}$ac_cv_var_no_parenb_ignpar" >&6
14648 case "$ac_cv_var_no_parenb_ignpar" in
14649  yes)
14650 cat >>confdefs.h <<\_ACEOF
14651 #define NO_PARENB_IGNPAR 1
14652 _ACEOF
14653  ;;
14654 esac
14655
14656 echo "$as_me:$LINENO: checking if we're including debugging code" >&5
14657 echo $ECHO_N "checking if we're including debugging code... $ECHO_C" >&6
14658 # Check whether --enable-debugging or --disable-debugging was given.
14659 if test "${enable_debugging+set}" = set; then
14660   enableval="$enable_debugging"
14661   ntp_ok=$enableval
14662 else
14663   ntp_ok=yes
14664 fi;
14665 if test "$ntp_ok" = "yes"; then
14666
14667 cat >>confdefs.h <<\_ACEOF
14668 #define DEBUG 1
14669 _ACEOF
14670
14671 fi
14672 echo "$as_me:$LINENO: result: $ntp_ok" >&5
14673 echo "${ECHO_T}$ntp_ok" >&6
14674
14675 echo "$as_me:$LINENO: checking for a the number of minutes in a DST adjustment" >&5
14676 echo $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.
14678 if test "${enable_dst_minutes+set}" = set; then
14679   enableval="$enable_dst_minutes"
14680   ans=$enableval
14681 else
14682   ans=60
14683 fi;
14684
14685 cat >>confdefs.h <<_ACEOF
14686 #define DSTMINUTES $ans
14687 _ACEOF
14688
14689 echo "$as_me:$LINENO: result: $ans" >&5
14690 echo "${ECHO_T}$ans" >&6
14691
14692 echo "$as_me:$LINENO: checking if we have the tty_clk line discipline/streams module" >&5
14693 echo $ECHO_N "checking if we have the tty_clk line discipline/streams module... $ECHO_C" >&6
14694 if test "${ac_cv_var_tty_clk+set}" = set; then
14695   echo $ECHO_N "(cached) $ECHO_C" >&6
14696 else
14697   case "$ac_cv_header_sys_clkdefs_h$ac_cv_hdr_def_tiocdcdtimestamp" in
14698   *yes*) ac_cv_var_tty_clk=yes ;;
14699  esac
14700 fi
14701 echo "$as_me:$LINENO: result: $ac_cv_var_tty_clk" >&5
14702 echo "${ECHO_T}$ac_cv_var_tty_clk" >&6
14703 case "$ac_cv_var_tty_clk" in
14704  yes)
14705 cat >>confdefs.h <<\_ACEOF
14706 #define TTYCLK 1
14707 _ACEOF
14708  ;;
14709 esac
14710
14711 echo "$as_me:$LINENO: checking for the ppsclock streams module" >&5
14712 echo $ECHO_N "checking for the ppsclock streams module... $ECHO_C" >&6
14713 if test "${ac_cv_var_ppsclock+set}" = set; then
14714   echo $ECHO_N "(cached) $ECHO_C" >&6
14715 else
14716   ac_cv_var_ppsclock=$ac_cv_struct_ppsclockev
14717 fi
14718 echo "$as_me:$LINENO: result: $ac_cv_var_ppsclock" >&5
14719 echo "${ECHO_T}$ac_cv_var_ppsclock" >&6
14720 case "$ac_cv_var_ppsclock" in
14721  yes)
14722 cat >>confdefs.h <<\_ACEOF
14723 #define PPS 1
14724 _ACEOF
14725  ;;
14726 esac
14727
14728 echo "$as_me:$LINENO: checking for kernel multicast support" >&5
14729 echo $ECHO_N "checking for kernel multicast support... $ECHO_C" >&6
14730 if test "${ac_cv_var_mcast+set}" = set; then
14731   echo $ECHO_N "(cached) $ECHO_C" >&6
14732 else
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
14745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14746   egrep "yes" >/dev/null 2>&1; then
14747   ac_cv_var_mcast=yes
14748 fi
14749 rm -f conftest*
14750  ;;
14751   esac
14752 fi
14753 echo "$as_me:$LINENO: result: $ac_cv_var_mcast" >&5
14754 echo "${ECHO_T}$ac_cv_var_mcast" >&6
14755 case "$ac_cv_var_mcast" in
14756  yes)
14757 cat >>confdefs.h <<\_ACEOF
14758 #define MCAST 1
14759 _ACEOF
14760  ;;
14761 esac
14762
14763 echo "$as_me:$LINENO: checking availability of ntp_{adj,get}time()" >&5
14764 echo $ECHO_N "checking availability of ntp_{adj,get}time()... $ECHO_C" >&6
14765 if test "${ac_cv_var_ntp_syscalls+set}" = set; then
14766   echo $ECHO_N "(cached) $ECHO_C" >&6
14767 else
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
14786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14787   egrep "yes" >/dev/null 2>&1; then
14788   ac_cv_var_ntp_syscalls=kernel
14789 fi
14790 rm -f conftest*
14791
14792          ;;
14793      esac
14794      ;;
14795  esac
14796 fi
14797 echo "$as_me:$LINENO: result: $ac_cv_var_ntp_syscalls" >&5
14798 echo "${ECHO_T}$ac_cv_var_ntp_syscalls" >&6
14799 case "$ac_cv_var_ntp_syscalls" in
14800  libc)
14801
14802 cat >>confdefs.h <<\_ACEOF
14803 #define NTP_SYSCALLS_LIBC 1
14804 _ACEOF
14805
14806     ;;
14807  kernel)
14808
14809 cat >>confdefs.h <<\_ACEOF
14810 #define NTP_SYSCALLS_STD 1
14811 _ACEOF
14812
14813     ;;
14814  *)
14815     ;;
14816 esac
14817
14818 echo "$as_me:$LINENO: checking if sys/timex.h has STA_FLL" >&5
14819 echo $ECHO_N "checking if sys/timex.h has STA_FLL... $ECHO_C" >&6
14820 if test "${ac_cv_var_sta_fll+set}" = set; then
14821   echo $ECHO_N "(cached) $ECHO_C" >&6
14822 else
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
14832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14833   egrep "yes" >/dev/null 2>&1; then
14834   ac_cv_var_sta_fll=yes
14835 else
14836   ac_cv_var_sta_fll=no
14837 fi
14838 rm -f conftest*
14839
14840 fi
14841 echo "$as_me:$LINENO: result: $ac_cv_var_sta_fll" >&5
14842 echo "${ECHO_T}$ac_cv_var_sta_fll" >&6
14843
14844 echo "$as_me:$LINENO: checking if we have kernel PLL support" >&5
14845 echo $ECHO_N "checking if we have kernel PLL support... $ECHO_C" >&6
14846 if test "${ac_cv_var_kernel_pll+set}" = set; then
14847   echo $ECHO_N "(cached) $ECHO_C" >&6
14848 else
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     ;;
14855 esac
14856 fi
14857 echo "$as_me:$LINENO: result: $ac_cv_var_kernel_pll" >&5
14858 echo "${ECHO_T}$ac_cv_var_kernel_pll" >&6
14859 case "$ac_cv_var_kernel_pll" in
14860  yes)
14861
14862 cat >>confdefs.h <<\_ACEOF
14863 #define KERNEL_PLL 1
14864 _ACEOF
14865
14866     ;;
14867 esac
14868
14869 echo "$as_me:$LINENO: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
14870 echo $ECHO_N "checking if SIOCGIFCONF returns buffer size in the buffer... $ECHO_C" >&6
14871 if test "${ac_cv_var_size_returned_in_buffer+set}" = set; then
14872   echo $ECHO_N "(cached) $ECHO_C" >&6
14873 else
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
14887 fi
14888 echo "$as_me:$LINENO: result: $ac_cv_var_size_returned_in_buffer" >&5
14889 echo "${ECHO_T}$ac_cv_var_size_returned_in_buffer" >&6
14890 case "$ac_cv_var_size_returned_in_buffer" in
14891  yes)
14892 cat >>confdefs.h <<\_ACEOF
14893 #define SIZE_RETURNED_IN_BUFFER 1
14894 _ACEOF
14895  ;;
14896 esac
14897
14898
14899 # Check for ioctls TIOCGPPSEV
14900 echo "$as_me:$LINENO: checking ioctl TIOCGPPSEV" >&5
14901 echo $ECHO_N "checking ioctl TIOCGPPSEV... $ECHO_C" >&6
14902 if 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
14912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14913   egrep "yes" >/dev/null 2>&1; then
14914   ntp_ok=yes
14915 else
14916   ntp_ok=no
14917 fi
14918 rm -f conftest*
14919
14920 else
14921 ntp_ok=no
14922 fi
14923 if test "$ntp_ok" = "yes"; then
14924
14925 cat >>confdefs.h <<\_ACEOF
14926 #define HAVE_TIOCGPPSEV 1
14927 _ACEOF
14928
14929     ac_cv_var_oncore_ok=yes
14930 fi
14931 echo "$as_me:$LINENO: result: $ntp_ok" >&5
14932 echo "${ECHO_T}$ntp_ok" >&6
14933
14934 # Check for ioctls TIOCSPPS
14935 echo "$as_me:$LINENO: checking ioctl TIOCSPPS" >&5
14936 echo $ECHO_N "checking ioctl TIOCSPPS... $ECHO_C" >&6
14937 if 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
14947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14948   egrep "yes" >/dev/null 2>&1; then
14949   ntp_ok=yes
14950 else
14951   ntp_ok=no
14952 fi
14953 rm -f conftest*
14954
14955 else
14956     ntp_ok=no
14957 fi
14958
14959 if test "$ntp_ok" = "yes"; then
14960
14961 cat >>confdefs.h <<\_ACEOF
14962 #define HAVE_TIOCSPPS 1
14963 _ACEOF
14964
14965 fi
14966 echo "$as_me:$LINENO: result: $ntp_ok" >&5
14967 echo "${ECHO_T}$ntp_ok" >&6
14968
14969 # Check for ioctls CIOGETEV
14970 echo "$as_me:$LINENO: checking ioctl CIOGETEV" >&5
14971 echo $ECHO_N "checking ioctl CIOGETEV... $ECHO_C" >&6
14972 if 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
14982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14983   egrep "yes" >/dev/null 2>&1; then
14984   ntp_ok=yes
14985 else
14986   ntp_ok=no
14987 fi
14988 rm -f conftest*
14989
14990 else
14991 ntp_ok=no
14992 fi
14993 if test "$ntp_ok" = "yes"; then
14994     ac_cv_var_oncore_ok=yes
14995
14996 cat >>confdefs.h <<\_ACEOF
14997 #define HAVE_CIOGETEV 1
14998 _ACEOF
14999
15000 fi
15001 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15002 echo "${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
15014 ac_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
15024 case "$ac_cv_c_inline$ac_cv_struct_timespec$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h" in
15025  inlineyes*yes*)
15026
15027 cat >>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     ;;
15034 esac
15035
15036 # Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
15037 if test "${ac_cv_header_linux_serial_h+set}" = set; then
15038   echo "$as_me:$LINENO: checking for linux/serial.h" >&5
15039 echo $ECHO_N "checking for linux/serial.h... $ECHO_C" >&6
15040 if test "${ac_cv_header_linux_serial_h+set}" = set; then
15041   echo $ECHO_N "(cached) $ECHO_C" >&6
15042 fi
15043 echo "$as_me:$LINENO: result: $ac_cv_header_linux_serial_h" >&5
15044 echo "${ECHO_T}$ac_cv_header_linux_serial_h" >&6
15045 else
15046   # Is the header compilable?
15047 echo "$as_me:$LINENO: checking linux/serial.h usability" >&5
15048 echo $ECHO_N "checking linux/serial.h usability... $ECHO_C" >&6
15049 cat >conftest.$ac_ext <<_ACEOF
15050 #line $LINENO "configure"
15051 #include "confdefs.h"
15052 $ac_includes_default
15053 #include <linux/serial.h>
15054 _ACEOF
15055 rm -f conftest.$ac_objext
15056 if { (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
15068 else
15069   echo "$as_me: failed program was:" >&5
15070 cat conftest.$ac_ext >&5
15071 ac_header_compiler=no
15072 fi
15073 rm -f conftest.$ac_objext conftest.$ac_ext
15074 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15075 echo "${ECHO_T}$ac_header_compiler" >&6
15076
15077 # Is the header present?
15078 echo "$as_me:$LINENO: checking linux/serial.h presence" >&5
15079 echo $ECHO_N "checking linux/serial.h presence... $ECHO_C" >&6
15080 cat >conftest.$ac_ext <<_ACEOF
15081 #line $LINENO "configure"
15082 #include "confdefs.h"
15083 #include <linux/serial.h>
15084 _ACEOF
15085 if { (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
15098 else
15099   ac_cpp_err=yes
15100 fi
15101 if test -z "$ac_cpp_err"; then
15102   ac_header_preproc=yes
15103 else
15104   echo "$as_me: failed program was:" >&5
15105   cat conftest.$ac_ext >&5
15106   ac_header_preproc=no
15107 fi
15108 rm -f conftest.err conftest.$ac_ext
15109 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15110 echo "${ECHO_T}$ac_header_preproc" >&6
15111
15112 # So?  What about this header?
15113 case $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
15116 echo "$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
15118 echo "$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
15121 echo "$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
15123 echo "$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
15125 echo "$as_me: WARNING: linux/serial.h: proceeding with the preprocessor's result" >&2;};;
15126 esac
15127 echo "$as_me:$LINENO: checking for linux/serial.h" >&5
15128 echo $ECHO_N "checking for linux/serial.h... $ECHO_C" >&6
15129 if test "${ac_cv_header_linux_serial_h+set}" = set; then
15130   echo $ECHO_N "(cached) $ECHO_C" >&6
15131 else
15132   ac_cv_header_linux_serial_h=$ac_header_preproc
15133 fi
15134 echo "$as_me:$LINENO: result: $ac_cv_header_linux_serial_h" >&5
15135 echo "${ECHO_T}$ac_cv_header_linux_serial_h" >&6
15136
15137 fi
15138
15139
15140 echo "$as_me:$LINENO: checking ioctl TIOCGSERIAL" >&5
15141 echo $ECHO_N "checking ioctl TIOCGSERIAL... $ECHO_C" >&6
15142 case "$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>
15148 typedef 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
15166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15167   egrep "yes" >/dev/null 2>&1; then
15168   ntp_ok=yes
15169 fi
15170 rm -f conftest*
15171
15172         ;;
15173   *)
15174         ntp_ok=no
15175         ;;
15176 esac
15177 if test "$ntp_ok" = "yes"; then
15178
15179 cat >>confdefs.h <<\_ACEOF
15180 #define HAVE_TIO_SERIAL_STUFF 1
15181 _ACEOF
15182
15183 fi
15184 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15185 echo "${ECHO_T}$ntp_ok" >&6
15186
15187 # Check for SHMEM_STATUS support
15188 echo "$as_me:$LINENO: checking SHMEM_STATUS support" >&5
15189 echo $ECHO_N "checking SHMEM_STATUS support... $ECHO_C" >&6
15190 case "$ac_cv_header_sys_mman_h" in
15191  yes) ntp_ok=yes ;;
15192  *)   ntp_ok=no  ;;
15193 esac
15194 if test "$ntp_ok" = "yes"; then
15195
15196 cat >>confdefs.h <<\_ACEOF
15197 #define ONCORE_SHMEM_STATUS 1
15198 _ACEOF
15199
15200 fi
15201 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15202 echo "${ECHO_T}$ntp_ok" >&6
15203
15204
15205 ntp_refclock=no
15206
15207 # HPUX only, and by explicit request
15208 echo "$as_me:$LINENO: checking Datum/Bancomm bc635/VME interface" >&5
15209 echo $ECHO_N "checking Datum/Bancomm bc635/VME interface... $ECHO_C" >&6
15210 # Check whether --enable-BANCOMM or --disable-BANCOMM was given.
15211 if test "${enable_BANCOMM+set}" = set; then
15212   enableval="$enable_BANCOMM"
15213   ntp_ok=$enableval
15214 else
15215   ntp_ok=no
15216 fi;
15217 if test "$ntp_ok" = "yes"; then
15218     ntp_refclock=yes
15219
15220 cat >>confdefs.h <<\_ACEOF
15221 #define CLOCK_BANC 1
15222 _ACEOF
15223
15224 fi
15225 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15226 echo "${ECHO_T}$ntp_ok" >&6
15227 case "$ntp_ok$host" in
15228  yes*-*-hpux*) ;;
15229  yes*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
15230 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
15231 esac
15232
15233 #HPUX only, and only by explicit request
15234 echo "$as_me:$LINENO: checking TrueTime GPS receiver/VME interface" >&5
15235 echo $ECHO_N "checking TrueTime GPS receiver/VME interface... $ECHO_C" >&6
15236 # Check whether --enable-GPSVME or --disable-GPSVME was given.
15237 if test "${enable_GPSVME+set}" = set; then
15238   enableval="$enable_GPSVME"
15239   ntp_ok=$enableval
15240 else
15241   ntp_ok=no
15242 fi;
15243 if test "$ntp_ok" = "yes"; then
15244     ntp_refclock=yes
15245
15246 cat >>confdefs.h <<\_ACEOF
15247 #define CLOCK_GPSVME 1
15248 _ACEOF
15249
15250 fi
15251 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15252 echo "${ECHO_T}$ntp_ok" >&6
15253 case "$ntp_ok$host" in
15254  yes*-*-hpux*) ;;
15255  yes*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
15256 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
15257 esac
15258
15259 echo "$as_me:$LINENO: checking for PCL720 clock support" >&5
15260 echo $ECHO_N "checking for PCL720 clock support... $ECHO_C" >&6
15261 case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
15262  yesyesyes)
15263
15264 cat >>confdefs.h <<\_ACEOF
15265 #define CLOCK_PPS720 1
15266 _ACEOF
15267
15268     ans=yes
15269     ;;
15270  *)
15271     ans=no
15272     ;;
15273 esac
15274 echo "$as_me:$LINENO: result: $ans" >&5
15275 echo "${ECHO_T}$ans" >&6
15276
15277 echo "$as_me:$LINENO: checking for SHM clock attached thru shared memory" >&5
15278 echo $ECHO_N "checking for SHM clock attached thru shared memory... $ECHO_C" >&6
15279 # Check whether --enable-SHM or --disable-SHM was given.
15280 if test "${enable_SHM+set}" = set; then
15281   enableval="$enable_SHM"
15282   ntp_ok=$enableval
15283 else
15284   ntp_ok=no
15285 fi;
15286 if test "$ntp_ok" = "yes"; then
15287     ntp_refclock=yes
15288
15289 cat >>confdefs.h <<\_ACEOF
15290 #define CLOCK_SHM 1
15291 _ACEOF
15292
15293 fi
15294 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15295 echo "${ECHO_T}$ntp_ok" >&6
15296
15297 echo "$as_me:$LINENO: checking for default inclusion of all suitable non-PARSE clocks" >&5
15298 echo $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.
15300 if test "${enable_all_clocks+set}" = set; then
15301   enableval="$enable_all_clocks"
15302   ntp_eac=$enableval
15303 else
15304   ntp_eac=yes
15305 fi;
15306 echo "$as_me:$LINENO: result: $ntp_eac" >&5
15307 echo "${ECHO_T}$ntp_eac" >&6
15308
15309 echo "$as_me:$LINENO: checking if we have support for PARSE clocks" >&5
15310 echo $ECHO_N "checking if we have support for PARSE clocks... $ECHO_C" >&6
15311 case "$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     ;;
15317 esac
15318 echo "$as_me:$LINENO: result: $ntp_canparse" >&5
15319 echo "${ECHO_T}$ntp_canparse" >&6
15320
15321 echo "$as_me:$LINENO: checking if we have support for audio clocks" >&5
15322 echo $ECHO_N "checking if we have support for audio clocks... $ECHO_C" >&6
15323 case "$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h" in
15324  *yes*)
15325     ntp_canaudio=yes
15326
15327 cat >>confdefs.h <<\_ACEOF
15328 #define HAVE_AUDIO
15329 _ACEOF
15330
15331     ;;
15332  *) ntp_canaudio=no ;;
15333 esac
15334 echo "$as_me:$LINENO: result: $ntp_canaudio" >&5
15335 echo "${ECHO_T}$ntp_canaudio" >&6
15336
15337 # Requires modem control
15338 echo "$as_me:$LINENO: checking ACTS modem service" >&5
15339 echo $ECHO_N "checking ACTS modem service... $ECHO_C" >&6
15340 # Check whether --enable-ACTS or --disable-ACTS was given.
15341 if test "${enable_ACTS+set}" = set; then
15342   enableval="$enable_ACTS"
15343   ntp_ok=$enableval
15344 else
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
15357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15358   egrep "yes" >/dev/null 2>&1; then
15359   ntp_ok=$ntp_eac
15360 else
15361   ntp_ok=no
15362 fi
15363 rm -f conftest*
15364
15365 fi;
15366 if test "$ntp_ok" = "yes"; then
15367     ntp_refclock=yes
15368
15369 cat >>confdefs.h <<\_ACEOF
15370 #define CLOCK_ACTS 1
15371 _ACEOF
15372
15373 fi
15374 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15375 echo "${ECHO_T}$ntp_ok" >&6
15376
15377 echo "$as_me:$LINENO: checking Arbiter 1088A/B GPS receiver" >&5
15378 echo $ECHO_N "checking Arbiter 1088A/B GPS receiver... $ECHO_C" >&6
15379 # Check whether --enable-ARBITER or --disable-ARBITER was given.
15380 if test "${enable_ARBITER+set}" = set; then
15381   enableval="$enable_ARBITER"
15382   ntp_ok=$enableval
15383 else
15384   ntp_ok=$ntp_eac
15385 fi;
15386 if test "$ntp_ok" = "yes"; then
15387     ntp_refclock=yes
15388
15389 cat >>confdefs.h <<\_ACEOF
15390 #define CLOCK_ARBITER 1
15391 _ACEOF
15392
15393 fi
15394 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15395 echo "${ECHO_T}$ntp_ok" >&6
15396
15397 echo "$as_me:$LINENO: checking Arcron MSF receiver" >&5
15398 echo $ECHO_N "checking Arcron MSF receiver... $ECHO_C" >&6
15399 # Check whether --enable-ARCRON_MSF or --disable-ARCRON_MSF was given.
15400 if test "${enable_ARCRON_MSF+set}" = set; then
15401   enableval="$enable_ARCRON_MSF"
15402   ntp_ok=$enableval
15403 else
15404   ntp_ok=$ntp_eac
15405 fi;
15406 if test "$ntp_ok" = "yes"; then
15407     ntp_refclock=yes
15408
15409 cat >>confdefs.h <<\_ACEOF
15410 #define CLOCK_ARCRON_MSF 1
15411 _ACEOF
15412
15413 fi
15414 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15415 echo "${ECHO_T}$ntp_ok" >&6
15416
15417 echo "$as_me:$LINENO: checking Austron 2200A/2201A GPS receiver" >&5
15418 echo $ECHO_N "checking Austron 2200A/2201A GPS receiver... $ECHO_C" >&6
15419 # Check whether --enable-AS2201 or --disable-AS2201 was given.
15420 if test "${enable_AS2201+set}" = set; then
15421   enableval="$enable_AS2201"
15422   ntp_ok=$enableval
15423 else
15424   ntp_ok=$ntp_eac
15425 fi;
15426 if test "$ntp_ok" = "yes"; then
15427     ntp_refclock=yes
15428
15429 cat >>confdefs.h <<\_ACEOF
15430 #define CLOCK_AS2201 1
15431 _ACEOF
15432
15433 fi
15434 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15435 echo "${ECHO_T}$ntp_ok" >&6
15436
15437 echo "$as_me:$LINENO: checking ATOM PPS interface" >&5
15438 echo $ECHO_N "checking ATOM PPS interface... $ECHO_C" >&6
15439 # Check whether --enable-ATOM or --disable-ATOM was given.
15440 if test "${enable_ATOM+set}" = set; then
15441   enableval="$enable_ATOM"
15442   ntp_ok=$enableval
15443 else
15444   ntp_ok=$ntp_eac
15445 fi;
15446 case "$ac_cv_var_atom_ok" in
15447  no) ntp_ok=no ;;
15448 esac
15449 if test "$ntp_ok" = "yes"; then
15450     ntp_refclock=yes
15451
15452 cat >>confdefs.h <<\_ACEOF
15453 #define CLOCK_ATOM 1
15454 _ACEOF
15455
15456 fi
15457 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15458 echo "${ECHO_T}$ntp_ok" >&6
15459
15460 echo "$as_me:$LINENO: checking Chrono-log K-series WWVB receiver" >&5
15461 echo $ECHO_N "checking Chrono-log K-series WWVB receiver... $ECHO_C" >&6
15462 # Check whether --enable-CHRONOLOG or --disable-CHRONOLOG was given.
15463 if test "${enable_CHRONOLOG+set}" = set; then
15464   enableval="$enable_CHRONOLOG"
15465   ntp_ok=$enableval
15466 else
15467   ntp_ok=$ntp_eac
15468 fi;
15469 if test "$ntp_ok" = "yes"; then
15470     ntp_refclock=yes
15471
15472 cat >>confdefs.h <<\_ACEOF
15473 #define CLOCK_CHRONOLOG 1
15474 _ACEOF
15475
15476 fi
15477 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15478 echo "${ECHO_T}$ntp_ok" >&6
15479
15480 echo "$as_me:$LINENO: checking CHU modem/decoder" >&5
15481 echo $ECHO_N "checking CHU modem/decoder... $ECHO_C" >&6
15482 # Check whether --enable-CHU or --disable-CHU was given.
15483 if test "${enable_CHU+set}" = set; then
15484   enableval="$enable_CHU"
15485   ntp_ok=$enableval
15486 else
15487   ntp_ok=$ntp_eac
15488 fi;
15489 if test "$ntp_ok" = "yes"; then
15490     ntp_refclock=yes
15491
15492 cat >>confdefs.h <<\_ACEOF
15493 #define CLOCK_CHU 1
15494 _ACEOF
15495
15496 fi
15497 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15498 echo "${ECHO_T}$ntp_ok" >&6
15499 ac_refclock_chu=$ntp_ok
15500
15501 echo "$as_me:$LINENO: checking CHU audio/decoder" >&5
15502 echo $ECHO_N "checking CHU audio/decoder... $ECHO_C" >&6
15503 # Check whether --enable-AUDIO-CHU or --disable-AUDIO-CHU was given.
15504 if test "${enable_AUDIO_CHU+set}" = set; then
15505   enableval="$enable_AUDIO_CHU"
15506   ntp_ok=$enableval
15507 else
15508   case "$ntp_eac$ac_refclock_chu$ntp_canaudio" in
15509  *no*)  ntp_ok=no  ;;
15510  *)     ntp_ok=yes ;;
15511 esac
15512 fi;
15513 if test "$ntp_ok" = "yes"; then
15514
15515 cat >>confdefs.h <<\_ACEOF
15516 #define AUDIO_CHU 1
15517 _ACEOF
15518
15519 fi
15520 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15521 echo "${ECHO_T}$ntp_ok" >&6
15522 # We used to check for sunos/solaris target...
15523 case "$ntp_ok$ac_refclock_chu$ntp_canaudio" in
15524  yes*no*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is...no ***" >&5
15525 echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;} ;;
15526 esac
15527
15528 # Not under HP-UX
15529 echo "$as_me:$LINENO: checking Datum Programmable Time System" >&5
15530 echo $ECHO_N "checking Datum Programmable Time System... $ECHO_C" >&6
15531 # Check whether --enable-DATUM or --disable-DATUM was given.
15532 if test "${enable_DATUM+set}" = set; then
15533   enableval="$enable_DATUM"
15534   ntp_ok=$enableval
15535 else
15536   case "$ac_cv_header_termios_h" in
15537     yes)
15538         ntp_ok=$ntp_eac
15539         ;;
15540     *) ntp_ok=no
15541         ;;
15542     esac
15543 fi;
15544 if test "$ntp_ok" = "yes"; then
15545     ntp_refclock=yes
15546
15547 cat >>confdefs.h <<\_ACEOF
15548 #define CLOCK_DATUM 1
15549 _ACEOF
15550
15551 fi
15552 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15553 echo "${ECHO_T}$ntp_ok" >&6
15554
15555 echo "$as_me:$LINENO: checking Dumb generic hh:mm:ss local clock" >&5
15556 echo $ECHO_N "checking Dumb generic hh:mm:ss local clock... $ECHO_C" >&6
15557 # Check whether --enable-DUMBCLOCK or --disable-DUMBCLOCK was given.
15558 if test "${enable_DUMBCLOCK+set}" = set; then
15559   enableval="$enable_DUMBCLOCK"
15560   ntp_ok=$enableval
15561 else
15562   ntp_ok=$ntp_eac
15563 fi;
15564 if test "$ntp_ok" = "yes"; then
15565     ntp_refclock=yes
15566
15567 cat >>confdefs.h <<\_ACEOF
15568 #define CLOCK_DUMBCLOCK 1
15569 _ACEOF
15570
15571 fi
15572 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15573 echo "${ECHO_T}$ntp_ok" >&6
15574
15575 echo "$as_me:$LINENO: checking Forum Graphic GPS" >&5
15576 echo $ECHO_N "checking Forum Graphic GPS... $ECHO_C" >&6
15577 # Check whether --enable-FG or --disable-FG was given.
15578 if test "${enable_FG+set}" = set; then
15579   enableval="$enable_FG"
15580   ntp_ok=$enableval
15581 else
15582   ntp_ok=$ntp_eac
15583 fi;
15584 if test "$ntp_ok" = "yes"; then
15585     ntp_refclock=yes
15586
15587 cat >>confdefs.h <<\_ACEOF
15588 #define CLOCK_FG 1
15589 _ACEOF
15590
15591 fi
15592 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15593 echo "${ECHO_T}$ntp_ok" >&6
15594
15595 # Requires modem control
15596 echo "$as_me:$LINENO: checking Heath GC-1000 WWV/WWVH receiver" >&5
15597 echo $ECHO_N "checking Heath GC-1000 WWV/WWVH receiver... $ECHO_C" >&6
15598 # Check whether --enable-HEATH or --disable-HEATH was given.
15599 if test "${enable_HEATH+set}" = set; then
15600   enableval="$enable_HEATH"
15601   ntp_ok=$enableval
15602 else
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
15615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15616   egrep "yes" >/dev/null 2>&1; then
15617   ntp_ok=$ntp_eac
15618 else
15619   ntp_ok=no
15620 fi
15621 rm -f conftest*
15622
15623 fi;
15624 if test "$ntp_ok" = "yes"; then
15625     ntp_refclock=yes
15626
15627 cat >>confdefs.h <<\_ACEOF
15628 #define CLOCK_HEATH 1
15629 _ACEOF
15630
15631 fi
15632 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15633 echo "${ECHO_T}$ntp_ok" >&6
15634
15635 echo "$as_me:$LINENO: checking for hopf serial clock device" >&5
15636 echo $ECHO_N "checking for hopf serial clock device... $ECHO_C" >&6
15637 # Check whether --enable-HOPFSERIAL or --disable-HOPFSERIAL was given.
15638 if test "${enable_HOPFSERIAL+set}" = set; then
15639   enableval="$enable_HOPFSERIAL"
15640   ntp_ok=$enableval
15641 else
15642   ntp_ok=$ntp_eac
15643 fi;
15644 if test "$ntp_ok" = "yes"; then
15645     ntp_refclock=yes
15646
15647 cat >>confdefs.h <<\_ACEOF
15648 #define CLOCK_HOPF_SERIAL 1
15649 _ACEOF
15650
15651 fi
15652 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15653 echo "${ECHO_T}$ntp_ok" >&6
15654
15655 echo "$as_me:$LINENO: checking for hopf PCI clock 6039" >&5
15656 echo $ECHO_N "checking for hopf PCI clock 6039... $ECHO_C" >&6
15657 # Check whether --enable-HOPFPCI or --disable-HOPFPCI was given.
15658 if test "${enable_HOPFPCI+set}" = set; then
15659   enableval="$enable_HOPFPCI"
15660   ntp_ok=$enableval
15661 else
15662   ntp_ok=$ntp_eac
15663 fi;
15664 if test "$ntp_ok" = "yes"; then
15665     ntp_refclock=yes
15666
15667 cat >>confdefs.h <<\_ACEOF
15668 #define CLOCK_HOPF_PCI 1
15669 _ACEOF
15670
15671 fi
15672 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15673 echo "${ECHO_T}$ntp_ok" >&6
15674
15675 echo "$as_me:$LINENO: checking HP 58503A GPS receiver" >&5
15676 echo $ECHO_N "checking HP 58503A GPS receiver... $ECHO_C" >&6
15677 # Check whether --enable-HPGPS or --disable-HPGPS was given.
15678 if test "${enable_HPGPS+set}" = set; then
15679   enableval="$enable_HPGPS"
15680   ntp_ok=$enableval
15681 else
15682   ntp_ok=$ntp_eac
15683 fi;
15684 if test "$ntp_ok" = "yes"; then
15685     ntp_refclock=yes
15686
15687 cat >>confdefs.h <<\_ACEOF
15688 #define CLOCK_HPGPS 1
15689 _ACEOF
15690
15691 fi
15692 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15693 echo "${ECHO_T}$ntp_ok" >&6
15694
15695 echo "$as_me:$LINENO: checking IRIG audio decoder" >&5
15696 echo $ECHO_N "checking IRIG audio decoder... $ECHO_C" >&6
15697 # Check whether --enable-IRIG or --disable-IRIG was given.
15698 if test "${enable_IRIG+set}" = set; then
15699   enableval="$enable_IRIG"
15700   ntp_ok=$enableval
15701 else
15702   case "$ntp_eac$ntp_canaudio" in
15703      *no*)      ntp_ok=no  ;;
15704      *)         ntp_ok=yes ;;
15705     esac
15706 fi;
15707 if test "$ntp_ok" = "yes"; then
15708     ntp_refclock=yes
15709
15710 cat >>confdefs.h <<\_ACEOF
15711 #define CLOCK_IRIG 1
15712 _ACEOF
15713
15714 fi
15715 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15716 echo "${ECHO_T}$ntp_ok" >&6
15717 case "$ntp_ok$ntp_canaudio" in
15718  yesno) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
15719 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
15720 esac
15721
15722 echo "$as_me:$LINENO: checking for JJY receiver" >&5
15723 echo $ECHO_N "checking for JJY receiver... $ECHO_C" >&6
15724 # Check whether --enable-JJY or --disable-JJY was given.
15725 if test "${enable_JJY+set}" = set; then
15726   enableval="$enable_JJY"
15727   ntp_ok=$enableval
15728 else
15729   ntp_ok=$ntp_eac
15730 fi;
15731 if test "$ntp_ok" = "yes"; then
15732     ntp_refclock=yes
15733
15734 cat >>confdefs.h <<\_ACEOF
15735 #define CLOCK_JJY 1
15736 _ACEOF
15737
15738 fi
15739 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15740 echo "${ECHO_T}$ntp_ok" >&6
15741
15742 # Not Ultrix
15743 echo "$as_me:$LINENO: checking Rockwell Jupiter GPS receiver" >&5
15744 echo $ECHO_N "checking Rockwell Jupiter GPS receiver... $ECHO_C" >&6
15745 # Check whether --enable-JUPITER or --disable-JUPITER was given.
15746 if test "${enable_JUPITER+set}" = set; then
15747   enableval="$enable_JUPITER"
15748   ntp_ok=$enableval
15749 else
15750   case "$ac_cv_var_ppsclock" in
15751 #     yes) ntp_ok=$ntp_eac
15752 #        ;;
15753      *) ntp_ok=no
15754         ;;
15755     esac
15756 fi;
15757 if test "$ntp_ok" = "yes"; then
15758     ntp_refclock=yes
15759
15760 cat >>confdefs.h <<\_ACEOF
15761 #define CLOCK_JUPITER 1
15762 _ACEOF
15763
15764 fi
15765 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15766 echo "${ECHO_T}$ntp_ok" >&6
15767 case "$ntp_ok$host" in
15768  yes*-*-ultrix*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
15769 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
15770 esac
15771
15772 echo "$as_me:$LINENO: checking Leitch CSD 5300 Master Clock System Driver" >&5
15773 echo $ECHO_N "checking Leitch CSD 5300 Master Clock System Driver... $ECHO_C" >&6
15774 # Check whether --enable-LEITCH or --disable-LEITCH was given.
15775 if test "${enable_LEITCH+set}" = set; then
15776   enableval="$enable_LEITCH"
15777   ntp_ok=$enableval
15778 else
15779   ntp_ok=$ntp_eac
15780 fi;
15781 if test "$ntp_ok" = "yes"; then
15782     ntp_refclock=yes
15783
15784 cat >>confdefs.h <<\_ACEOF
15785 #define CLOCK_LEITCH 1
15786 _ACEOF
15787
15788 fi
15789 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15790 echo "${ECHO_T}$ntp_ok" >&6
15791
15792 echo "$as_me:$LINENO: checking local clock reference" >&5
15793 echo $ECHO_N "checking local clock reference... $ECHO_C" >&6
15794 # Check whether --enable-LOCAL-CLOCK or --disable-LOCAL-CLOCK was given.
15795 if test "${enable_LOCAL_CLOCK+set}" = set; then
15796   enableval="$enable_LOCAL_CLOCK"
15797   ntp_ok=$enableval
15798 else
15799   ntp_ok=$ntp_eac
15800 fi;
15801 if test "$ntp_ok" = "yes"; then
15802     ntp_refclock=yes
15803
15804 cat >>confdefs.h <<\_ACEOF
15805 #define CLOCK_LOCAL 1
15806 _ACEOF
15807
15808 fi
15809 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15810 echo "${ECHO_T}$ntp_ok" >&6
15811
15812 echo "$as_me:$LINENO: checking EES M201 MSF receiver" >&5
15813 echo $ECHO_N "checking EES M201 MSF receiver... $ECHO_C" >&6
15814 # Check whether --enable-MSFEES or --disable-MSFEES was given.
15815 if test "${enable_MSFEES+set}" = set; then
15816   enableval="$enable_MSFEES"
15817   ntp_ok=$enableval
15818 else
15819   ntp_ok=$ntp_eac
15820 fi;
15821 if test "$ntp_ok" = "yes"; then
15822     ntp_refclock=yes
15823
15824 cat >>confdefs.h <<\_ACEOF
15825 #define CLOCK_MSFEES 1
15826 _ACEOF
15827
15828 fi
15829 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15830 echo "${ECHO_T}$ntp_ok" >&6
15831
15832 # Not Ultrix
15833 echo "$as_me:$LINENO: checking Magnavox MX4200 GPS receiver" >&5
15834 echo $ECHO_N "checking Magnavox MX4200 GPS receiver... $ECHO_C" >&6
15835 # Check whether --enable-MX4200 or --disable-MX4200 was given.
15836 if test "${enable_MX4200+set}" = set; then
15837   enableval="$enable_MX4200"
15838   ntp_ok=$enableval
15839 else
15840   case "$ac_cv_var_ppsclock" in
15841      yes) ntp_ok=$ntp_eac
15842         ;;
15843      *) ntp_ok=no
15844         ;;
15845     esac
15846 fi;
15847 if test "$ntp_ok" = "yes"; then
15848     ntp_refclock=yes
15849
15850 cat >>confdefs.h <<\_ACEOF
15851 #define CLOCK_MX4200 1
15852 _ACEOF
15853
15854 fi
15855 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15856 echo "${ECHO_T}$ntp_ok" >&6
15857 case "$ntp_ok$host" in
15858  yes*-*-ultrix*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
15859 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
15860 esac
15861
15862 echo "$as_me:$LINENO: checking for NeoClock4X receiver" >&5
15863 echo $ECHO_N "checking for NeoClock4X receiver... $ECHO_C" >&6
15864 # Check whether --enable-NEOCLOCK4X or --disable-NEOCLOCK4X was given.
15865 if test "${enable_NEOCLOCK4X+set}" = set; then
15866   enableval="$enable_NEOCLOCK4X"
15867   ntp_ok=$enableval
15868 else
15869   ntp_ok=no
15870 fi;
15871 if test "$ntp_ok" = "yes"; then
15872     ntp_refclock=yes
15873
15874 cat >>confdefs.h <<\_ACEOF
15875 #define CLOCK_NEOCLOCK4X 1
15876 _ACEOF
15877
15878 fi
15879 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15880 echo "${ECHO_T}$ntp_ok" >&6
15881
15882 echo "$as_me:$LINENO: checking NMEA GPS receiver" >&5
15883 echo $ECHO_N "checking NMEA GPS receiver... $ECHO_C" >&6
15884 # Check whether --enable-NMEA or --disable-NMEA was given.
15885 if test "${enable_NMEA+set}" = set; then
15886   enableval="$enable_NMEA"
15887   ntp_ok=$enableval
15888 else
15889   ntp_ok=$ntp_eac
15890 fi;
15891 if test "$ntp_ok" = "yes"; then
15892     ntp_refclock=yes
15893
15894 cat >>confdefs.h <<\_ACEOF
15895 #define CLOCK_NMEA 1
15896 _ACEOF
15897
15898 fi
15899 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15900 echo "${ECHO_T}$ntp_ok" >&6
15901
15902 echo "$as_me:$LINENO: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
15903 echo $ECHO_N "checking for ONCORE Motorola VP/UT Oncore GPS... $ECHO_C" >&6
15904 # Check whether --enable-ONCORE or --disable-ONCORE was given.
15905 if test "${enable_ONCORE+set}" = set; then
15906   enableval="$enable_ONCORE"
15907   ntp_ok=$enableval
15908 else
15909   ntp_ok=$ntp_eac
15910 fi;
15911 case "$ac_cv_var_oncore_ok" in
15912  no) ntp_ok=no ;;
15913 esac
15914 if test "$ntp_ok" = "yes"; then
15915     ntp_refclock=yes
15916
15917 cat >>confdefs.h <<\_ACEOF
15918 #define CLOCK_ONCORE 1
15919 _ACEOF
15920
15921 fi
15922 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15923 echo "${ECHO_T}$ntp_ok" >&6
15924
15925 echo "$as_me:$LINENO: checking for Palisade clock" >&5
15926 echo $ECHO_N "checking for Palisade clock... $ECHO_C" >&6
15927 # Check whether --enable-PALISADE or --disable-PALISADE was given.
15928 if test "${enable_PALISADE+set}" = set; then
15929   enableval="$enable_PALISADE"
15930   ntp_ok=$enableval
15931 else
15932   case "$ac_cv_header_termios_h" in
15933     yes)
15934         ntp_ok=$ntp_eac
15935         ;;
15936     *) ntp_ok=no
15937         ;;
15938     esac
15939 fi;
15940
15941 if test "$ntp_ok" = "yes"; then
15942     ntp_refclock=yes
15943
15944 cat >>confdefs.h <<\_ACEOF
15945 #define CLOCK_PALISADE 1
15946 _ACEOF
15947
15948 fi
15949 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15950 echo "${ECHO_T}$ntp_ok" >&6
15951
15952 echo "$as_me:$LINENO: checking Conrad parallel port radio clock" >&5
15953 echo $ECHO_N "checking Conrad parallel port radio clock... $ECHO_C" >&6
15954 # Check whether --enable-PCF or --disable-PCF was given.
15955 if test "${enable_PCF+set}" = set; then
15956   enableval="$enable_PCF"
15957   ntp_ok=$enableval
15958 else
15959   ntp_ok=$ntp_eac
15960 fi;
15961 if test "$ntp_ok" = "yes"; then
15962     ntp_refclock=yes
15963
15964 cat >>confdefs.h <<\_ACEOF
15965 #define CLOCK_PCF 1
15966 _ACEOF
15967
15968 fi
15969 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15970 echo "${ECHO_T}$ntp_ok" >&6
15971
15972 echo "$as_me:$LINENO: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
15973 echo $ECHO_N "checking PST/Traconex 1020 WWV/WWVH receiver... $ECHO_C" >&6
15974 # Check whether --enable-PST or --disable-PST was given.
15975 if test "${enable_PST+set}" = set; then
15976   enableval="$enable_PST"
15977   ntp_ok=$enableval
15978 else
15979   ntp_ok=$ntp_eac
15980 fi;
15981 if test "$ntp_ok" = "yes"; then
15982     ntp_refclock=yes
15983
15984 cat >>confdefs.h <<\_ACEOF
15985 #define CLOCK_PST 1
15986 _ACEOF
15987
15988 fi
15989 echo "$as_me:$LINENO: result: $ntp_ok" >&5
15990 echo "${ECHO_T}$ntp_ok" >&6
15991
15992 # Requires modem control
15993 echo "$as_me:$LINENO: checking PTB modem service" >&5
15994 echo $ECHO_N "checking PTB modem service... $ECHO_C" >&6
15995 # Check whether --enable-PTBACTS or --disable-PTBACTS was given.
15996 if test "${enable_PTBACTS+set}" = set; then
15997   enableval="$enable_PTBACTS"
15998   ntp_ok=$enableval
15999 else
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
16012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16013   egrep "yes" >/dev/null 2>&1; then
16014   ntp_ok=$ntp_eac
16015 else
16016   ntp_ok=no
16017 fi
16018 rm -f conftest*
16019
16020 fi;
16021 if test "$ntp_ok" = "yes"; then
16022     ntp_refclock=yes
16023
16024 cat >>confdefs.h <<\_ACEOF
16025 #define CLOCK_PTBACTS 1
16026 _ACEOF
16027
16028 fi
16029 echo "$as_me:$LINENO: result: $ntp_ok" >&5
16030 echo "${ECHO_T}$ntp_ok" >&6
16031
16032 echo "$as_me:$LINENO: checking RIPENCC specific Trimble driver" >&5
16033 echo $ECHO_N "checking RIPENCC specific Trimble driver... $ECHO_C" >&6
16034 # Check whether --enable-RIPENCC or --disable-RIPENCC was given.
16035 if test "${enable_RIPENCC+set}" = set; then
16036   enableval="$enable_RIPENCC"
16037   ntp_ok=$enableval
16038 else
16039   ntp_ok=no
16040 fi;
16041 # 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
16042 case "$ac_cv_var_ripe_ncc_ok" in
16043  no) ntp_ok=no ;;
16044 esac
16045 if test "$ntp_ok" = "yes"; then
16046     ntp_refclock=yes
16047
16048 cat >>confdefs.h <<\_ACEOF
16049 #define CLOCK_RIPENCC
16050 _ACEOF
16051
16052 fi
16053 echo "$as_me:$LINENO: result: $ntp_ok" >&5
16054 echo "${ECHO_T}$ntp_ok" >&6
16055
16056 echo "$as_me:$LINENO: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
16057 echo $ECHO_N "checking Spectracom 8170/Netclock/2 WWVB receiver... $ECHO_C" >&6
16058 # Check whether --enable-SPECTRACOM or --disable-SPECTRACOM was given.
16059 if test "${enable_SPECTRACOM+set}" = set; then
16060   enableval="$enable_SPECTRACOM"
16061   ntp_ok=$enableval
16062 else
16063   ntp_ok=$ntp_eac
16064 fi;
16065 if test "$ntp_ok" = "yes"; then
16066     ntp_refclock=yes
16067
16068 cat >>confdefs.h <<\_ACEOF
16069 #define CLOCK_SPECTRACOM 1
16070 _ACEOF
16071
16072 fi
16073 echo "$as_me:$LINENO: result: $ntp_ok" >&5
16074 echo "${ECHO_T}$ntp_ok" >&6
16075
16076 echo "$as_me:$LINENO: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
16077 echo $ECHO_N "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... $ECHO_C" >&6
16078 # Check whether --enable-TPRO or --disable-TPRO was given.
16079 if test "${enable_TPRO+set}" = set; then
16080   enableval="$enable_TPRO"
16081   ntp_ok=$enableval
16082 else
16083   case "$ac_cv_header_sys_tpro_h" in
16084      yes)
16085         ntp_ok=$ntp_eac
16086         ;;
16087      *) ntp_ok=no
16088         ;;
16089     esac
16090 fi;
16091 if test "$ntp_ok" = "yes"; then
16092     ntp_refclock=yes
16093
16094 cat >>confdefs.h <<\_ACEOF
16095 #define CLOCK_TPRO 1
16096 _ACEOF
16097
16098 fi
16099 echo "$as_me:$LINENO: result: $ntp_ok" >&5
16100 echo "${ECHO_T}$ntp_ok" >&6
16101 case "$ntp_ok$ac_cv_header_sys_tpro" in
16102  yesno) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
16103 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
16104 esac
16105
16106 echo "$as_me:$LINENO: checking TRAK 8810 GPS receiver" >&5
16107 echo $ECHO_N "checking TRAK 8810 GPS receiver... $ECHO_C" >&6
16108 # Check whether --enable-TRAK or --disable-TRAK was given.
16109 if test "${enable_TRAK+set}" = set; then
16110   enableval="$enable_TRAK"
16111   ntp_ok=$enableval
16112 else
16113   ntp_ok=$ntp_eac
16114 fi;
16115 if test "$ntp_ok" = "yes"; then
16116     ntp_refclock=yes
16117
16118 cat >>confdefs.h <<\_ACEOF
16119 #define CLOCK_TRAK 1
16120 _ACEOF
16121
16122 fi
16123 echo "$as_me:$LINENO: result: $ntp_ok" >&5
16124 echo "${ECHO_T}$ntp_ok" >&6
16125
16126 # Not on a vax-dec-bsd
16127 echo "$as_me:$LINENO: checking Kinemetrics/TrueTime receivers" >&5
16128 echo $ECHO_N "checking Kinemetrics/TrueTime receivers... $ECHO_C" >&6
16129 # Check whether --enable-TRUETIME or --disable-TRUETIME was given.
16130 if test "${enable_TRUETIME+set}" = set; then
16131   enableval="$enable_TRUETIME"
16132   ntp_ok=$enableval
16133 else
16134   case "$host" in
16135      vax-dec-bsd)
16136         ntp_ok=no
16137         ;;
16138      *)
16139         ntp_ok=$ntp_eac
16140         ;;
16141     esac
16142 fi;
16143 if test "$ntp_ok" = "yes"; then
16144     ntp_refclock=yes
16145
16146 cat >>confdefs.h <<\_ACEOF
16147 #define CLOCK_TRUETIME 1
16148 _ACEOF
16149
16150 fi
16151 echo "$as_me:$LINENO: result: $ntp_ok" >&5
16152 echo "${ECHO_T}$ntp_ok" >&6
16153 case "$ntp_ok$host" in
16154  yesvax-dec-bsd) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
16155 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
16156 esac
16157
16158 echo "$as_me:$LINENO: checking TrueTime 560 IRIG-B decoder" >&5
16159 echo $ECHO_N "checking TrueTime 560 IRIG-B decoder... $ECHO_C" >&6
16160 # Check whether --enable-TT560 or --disable-TT560 was given.
16161 if test "${enable_TT560+set}" = set; then
16162   enableval="$enable_TT560"
16163   ntp_ok=$enableval
16164 else
16165   ntp_ok=no
16166 fi;
16167 if test "$ntp_ok" = "yes"; then
16168     ntp_refclock=yes
16169
16170 cat >>confdefs.h <<\_ACEOF
16171 #define CLOCK_TT560
16172 _ACEOF
16173
16174 fi
16175 echo "$as_me:$LINENO: result: $ntp_ok" >&5
16176 echo "${ECHO_T}$ntp_ok" >&6
16177
16178 echo "$as_me:$LINENO: checking Ultralink M320 WWVB receiver" >&5
16179 echo $ECHO_N "checking Ultralink M320 WWVB receiver... $ECHO_C" >&6
16180 # Check whether --enable-ULINK or --disable-ULINK was given.
16181 if test "${enable_ULINK+set}" = set; then
16182   enableval="$enable_ULINK"
16183   ntp_ok=$enableval
16184 else
16185   ntp_ok=$ntp_eac
16186 fi;
16187 if test "$ntp_ok" = "yes"; then
16188     ntp_refclock=yes
16189
16190 cat >>confdefs.h <<\_ACEOF
16191 #define CLOCK_ULINK 1
16192 _ACEOF
16193
16194 fi
16195 echo "$as_me:$LINENO: result: $ntp_ok" >&5
16196 echo "${ECHO_T}$ntp_ok" >&6
16197
16198 # Requires modem control
16199 echo "$as_me:$LINENO: checking USNO modem service" >&5
16200 echo $ECHO_N "checking USNO modem service... $ECHO_C" >&6
16201 # Check whether --enable-USNO or --disable-USNO was given.
16202 if test "${enable_USNO+set}" = set; then
16203   enableval="$enable_USNO"
16204   ntp_ok=$enableval
16205 else
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
16218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16219   egrep "yes" >/dev/null 2>&1; then
16220   ntp_ok=$ntp_eac
16221 else
16222   ntp_ok=no
16223 fi
16224 rm -f conftest*
16225
16226 fi;
16227 if test "$ntp_ok" = "yes"; then
16228     ntp_refclock=yes
16229
16230 cat >>confdefs.h <<\_ACEOF
16231 #define CLOCK_USNO 1
16232 _ACEOF
16233
16234 fi
16235 echo "$as_me:$LINENO: result: $ntp_ok" >&5
16236 echo "${ECHO_T}$ntp_ok" >&6
16237
16238 echo "$as_me:$LINENO: checking WWV receiver" >&5
16239 echo $ECHO_N "checking WWV receiver... $ECHO_C" >&6
16240 # Check whether --enable-WWV or --disable-WWV was given.
16241 if test "${enable_WWV+set}" = set; then
16242   enableval="$enable_WWV"
16243   ntp_ok=$enableval
16244 else
16245   case "$ntp_eac$ntp_canaudio" in
16246      *no*)      ntp_ok=no  ;;
16247      *)         ntp_ok=yes ;;
16248     esac
16249 fi;
16250 if test "$ntp_ok" = "yes"; then
16251     ntp_refclock=yes
16252
16253 cat >>confdefs.h <<\_ACEOF
16254 #define CLOCK_WWV 1
16255 _ACEOF
16256
16257 fi
16258 echo "$as_me:$LINENO: result: $ntp_ok" >&5
16259 echo "${ECHO_T}$ntp_ok" >&6
16260 case "$ntp_ok$ntp_canaudio" in
16261  yesno) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
16262 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
16263 esac
16264
16265 echo "$as_me:$LINENO: checking for Zyfer receiver" >&5
16266 echo $ECHO_N "checking for Zyfer receiver... $ECHO_C" >&6
16267 # Check whether --enable-ZYFER or --disable-ZYFER was given.
16268 if test "${enable_ZYFER+set}" = set; then
16269   enableval="$enable_ZYFER"
16270   ntp_ok=$enableval
16271 else
16272   ntp_ok=$ntp_eac
16273 fi;
16274 if test "$ntp_ok" = "yes"; then
16275     ntp_refclock=yes
16276
16277 cat >>confdefs.h <<\_ACEOF
16278 #define CLOCK_ZYFER 1
16279 _ACEOF
16280
16281 fi
16282 echo "$as_me:$LINENO: result: $ntp_ok" >&5
16283 echo "${ECHO_T}$ntp_ok" >&6
16284
16285 echo "$as_me:$LINENO: checking for default inclusion of all suitable PARSE clocks" >&5
16286 echo $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.
16288 if test "${enable_parse_clocks+set}" = set; then
16289   enableval="$enable_parse_clocks"
16290   ntp_eapc=$enableval
16291 else
16292   case "$ntp_eac" in
16293      yes) ntp_eapc=$ntp_canparse ;;
16294      *) ntp_eapc=no ;;
16295     esac
16296     ntp_eapc=no
16297 fi;
16298 echo "$as_me:$LINENO: result: $ntp_eapc" >&5
16299 echo "${ECHO_T}$ntp_eapc" >&6
16300
16301 case "$ntp_eac$ntp_eapc$ntp_canparse" in
16302  noyes*)
16303     { { echo "$as_me:$LINENO: error: \"--enable-parse-clocks\" requires \"--enable-all-clocks\"." >&5
16304 echo "$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
16309 echo "$as_me: error: You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" >&2;}
16310    { (exit 1); exit 1; }; }
16311     ;;
16312  *) ;;
16313 esac
16314
16315 ntp_libparse=no
16316 ntp_parseutil=no
16317 ntp_rawdcf=no
16318
16319 echo "$as_me:$LINENO: checking Diem Computime Radio Clock" >&5
16320 echo $ECHO_N "checking Diem Computime Radio Clock... $ECHO_C" >&6
16321 # Check whether --enable-COMPUTIME or --disable-COMPUTIME was given.
16322 if test "${enable_COMPUTIME+set}" = set; then
16323   enableval="$enable_COMPUTIME"
16324   ntp_ok=$enableval
16325 else
16326   ntp_ok=$ntp_eapc
16327 fi;
16328 if test "$ntp_ok" = "yes"; then
16329     ntp_libparse=yes
16330     ntp_refclock=yes
16331
16332 cat >>confdefs.h <<\_ACEOF
16333 #define CLOCK_COMPUTIME 1
16334 _ACEOF
16335
16336 fi
16337 echo "$as_me:$LINENO: result: $ntp_ok" >&5
16338 echo "${ECHO_T}$ntp_ok" >&6
16339 case "$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
16342 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
16343    { (exit 1); exit 1; }; }
16344     ;;
16345 esac
16346
16347 echo "$as_me:$LINENO: checking ELV/DCF7000 clock" >&5
16348 echo $ECHO_N "checking ELV/DCF7000 clock... $ECHO_C" >&6
16349 # Check whether --enable-DCF7000 or --disable-DCF7000 was given.
16350 if test "${enable_DCF7000+set}" = set; then
16351   enableval="$enable_DCF7000"
16352   ntp_ok=$enableval
16353 else
16354   ntp_ok=$ntp_eapc
16355 fi;
16356 if test "$ntp_ok" = "yes"; then
16357     ntp_libparse=yes
16358     ntp_refclock=yes
16359
16360 cat >>confdefs.h <<\_ACEOF
16361 #define CLOCK_DCF7000 1
16362 _ACEOF
16363
16364 fi
16365 echo "$as_me:$LINENO: result: $ntp_ok" >&5
16366 echo "${ECHO_T}$ntp_ok" >&6
16367 case "$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
16370 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
16371    { (exit 1); exit 1; }; }
16372     ;;
16373 esac
16374
16375 echo "$as_me:$LINENO: checking HOPF 6021 clock" >&5
16376 echo $ECHO_N "checking HOPF 6021 clock... $ECHO_C" >&6
16377 # Check whether --enable-HOPF6021 or --disable-HOPF6021 was given.
16378 if test "${enable_HOPF6021+set}" = set; then
16379   enableval="$enable_HOPF6021"
16380   ntp_ok=$enableval
16381 else
16382   ntp_ok=$ntp_eapc
16383 fi;
16384 if test "$ntp_ok" = "yes"; then
16385     ntp_libparse=yes
16386     ntp_refclock=yes
16387
16388 cat >>confdefs.h <<\_ACEOF
16389 #define CLOCK_HOPF6021 1
16390 _ACEOF
16391
16392 fi
16393 echo "$as_me:$LINENO: result: $ntp_ok" >&5
16394 echo "${ECHO_T}$ntp_ok" >&6
16395 case "$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
16398 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
16399    { (exit 1); exit 1; }; }
16400     ;;
16401 esac
16402
16403 echo "$as_me:$LINENO: checking Meinberg clocks" >&5
16404 echo $ECHO_N "checking Meinberg clocks... $ECHO_C" >&6
16405 # Check whether --enable-MEINBERG or --disable-MEINBERG was given.
16406 if test "${enable_MEINBERG+set}" = set; then
16407   enableval="$enable_MEINBERG"
16408   ntp_ok=$enableval
16409 else
16410   ntp_ok=$ntp_eapc
16411 fi;
16412 if test "$ntp_ok" = "yes"; then
16413     ntp_libparse=yes
16414     ntp_refclock=yes
16415
16416 cat >>confdefs.h <<\_ACEOF
16417 #define CLOCK_MEINBERG 1
16418 _ACEOF
16419
16420 fi
16421 echo "$as_me:$LINENO: result: $ntp_ok" >&5
16422 echo "${ECHO_T}$ntp_ok" >&6
16423 case "$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
16426 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
16427    { (exit 1); exit 1; }; }
16428     ;;
16429 esac
16430
16431 echo "$as_me:$LINENO: checking DCF77 raw time code" >&5
16432 echo $ECHO_N "checking DCF77 raw time code... $ECHO_C" >&6
16433 # Check whether --enable-RAWDCF or --disable-RAWDCF was given.
16434 if test "${enable_RAWDCF+set}" = set; then
16435   enableval="$enable_RAWDCF"
16436   ntp_ok=$enableval
16437 else
16438   ntp_ok=$ntp_eapc
16439 fi;
16440 if test "$ntp_ok" = "yes"; then
16441     ntp_libparse=yes
16442     ntp_parseutil=yes
16443     ntp_refclock=yes
16444     ntp_rawdcf=yes
16445
16446 cat >>confdefs.h <<\_ACEOF
16447 #define CLOCK_RAWDCF 1
16448 _ACEOF
16449
16450 fi
16451 echo "$as_me:$LINENO: result: $ntp_ok" >&5
16452 echo "${ECHO_T}$ntp_ok" >&6
16453 case "$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
16456 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
16457    { (exit 1); exit 1; }; }
16458     ;;
16459 esac
16460
16461 case "$ntp_rawdcf" in
16462  yes)
16463     echo "$as_me:$LINENO: checking if we must enable parity for RAWDCF" >&5
16464 echo $ECHO_N "checking if we must enable parity for RAWDCF... $ECHO_C" >&6
16465 if test "${ac_cv_var_rawdcf_parity+set}" = set; then
16466   echo $ECHO_N "(cached) $ECHO_C" >&6
16467 else
16468   ans=no
16469     case "$host" in
16470      *-*-linux*)
16471         ans=yes
16472         ;;
16473     esac
16474     ac_cv_var_rawdcf_parity=$ans
16475 fi
16476 echo "$as_me:$LINENO: result: $ac_cv_var_rawdcf_parity" >&5
16477 echo "${ECHO_T}$ac_cv_var_rawdcf_parity" >&6
16478     case "$ac_cv_var_rawdcf_parity" in
16479      yes)
16480 cat >>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     ;;
16490 esac
16491
16492 echo "$as_me:$LINENO: checking RCC 8000 clock" >&5
16493 echo $ECHO_N "checking RCC 8000 clock... $ECHO_C" >&6
16494 # Check whether --enable-RCC8000 or --disable-RCC8000 was given.
16495 if test "${enable_RCC8000+set}" = set; then
16496   enableval="$enable_RCC8000"
16497   ntp_ok=$enableval
16498 else
16499   ntp_ok=$ntp_eapc
16500 fi;
16501 if test "$ntp_ok" = "yes"; then
16502     ntp_libparse=yes
16503     ntp_refclock=yes
16504
16505 cat >>confdefs.h <<\_ACEOF
16506 #define CLOCK_RCC8000 1
16507 _ACEOF
16508
16509 fi
16510 echo "$as_me:$LINENO: result: $ntp_ok" >&5
16511 echo "${ECHO_T}$ntp_ok" >&6
16512 case "$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
16515 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
16516    { (exit 1); exit 1; }; }
16517     ;;
16518 esac
16519
16520 echo "$as_me:$LINENO: checking Schmid DCF77 clock" >&5
16521 echo $ECHO_N "checking Schmid DCF77 clock... $ECHO_C" >&6
16522 # Check whether --enable-SCHMID or --disable-SCHMID was given.
16523 if test "${enable_SCHMID+set}" = set; then
16524   enableval="$enable_SCHMID"
16525   ntp_ok=$enableval
16526 else
16527   ntp_ok=$ntp_eapc
16528 fi;
16529 if test "$ntp_ok" = "yes"; then
16530     ntp_libparse=yes
16531     ntp_refclock=yes
16532
16533 cat >>confdefs.h <<\_ACEOF
16534 #define CLOCK_SCHMID 1
16535 _ACEOF
16536
16537 fi
16538 echo "$as_me:$LINENO: result: $ntp_ok" >&5
16539 echo "${ECHO_T}$ntp_ok" >&6
16540 case "$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
16543 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
16544    { (exit 1); exit 1; }; }
16545     ;;
16546 esac
16547
16548 echo "$as_me:$LINENO: checking Trimble GPS receiver/TAIP protocol" >&5
16549 echo $ECHO_N "checking Trimble GPS receiver/TAIP protocol... $ECHO_C" >&6
16550 # Check whether --enable-TRIMTAIP or --disable-TRIMTAIP was given.
16551 if test "${enable_TRIMTAIP+set}" = set; then
16552   enableval="$enable_TRIMTAIP"
16553   ntp_ok=$enableval
16554 else
16555   ntp_ok=$ntp_eapc
16556 fi;
16557 if test "$ntp_ok" = "yes"; then
16558     ntp_libparse=yes
16559     ntp_refclock=yes
16560
16561 cat >>confdefs.h <<\_ACEOF
16562 #define CLOCK_TRIMTAIP 1
16563 _ACEOF
16564
16565 fi
16566 echo "$as_me:$LINENO: result: $ntp_ok" >&5
16567 echo "${ECHO_T}$ntp_ok" >&6
16568 case "$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
16571 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
16572    { (exit 1); exit 1; }; }
16573     ;;
16574 esac
16575
16576 echo "$as_me:$LINENO: checking Trimble GPS receiver/TSIP protocol" >&5
16577 echo $ECHO_N "checking Trimble GPS receiver/TSIP protocol... $ECHO_C" >&6
16578 # Check whether --enable-TRIMTSIP or --disable-TRIMTSIP was given.
16579 if test "${enable_TRIMTSIP+set}" = set; then
16580   enableval="$enable_TRIMTSIP"
16581   ntp_ok=$enableval
16582 else
16583   ntp_ok=$ntp_eapc
16584 fi;
16585 if test "$ntp_ok" = "yes"; then
16586     ntp_libparse=yes
16587     ntp_refclock=yes
16588
16589 cat >>confdefs.h <<\_ACEOF
16590 #define CLOCK_TRIMTSIP 1
16591 _ACEOF
16592
16593 fi
16594 echo "$as_me:$LINENO: result: $ntp_ok" >&5
16595 echo "${ECHO_T}$ntp_ok" >&6
16596 case "$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
16599 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
16600    { (exit 1); exit 1; }; }
16601     ;;
16602 esac
16603
16604 echo "$as_me:$LINENO: checking WHARTON 400A Series clock" >&5
16605 echo $ECHO_N "checking WHARTON 400A Series clock... $ECHO_C" >&6
16606 # Check whether --enable-WHARTON or --disable-WHARTON was given.
16607 if test "${enable_WHARTON+set}" = set; then
16608   enableval="$enable_WHARTON"
16609   ntp_ok=$enableval
16610 else
16611   ntp_ok=$ntp_eapc
16612 fi;
16613 if test "$ntp_ok" = "yes"; then
16614     ntp_libparse=yes
16615     ntp_refclock=yes
16616
16617 cat >>confdefs.h <<\_ACEOF
16618 #define CLOCK_WHARTON_400A 1
16619 _ACEOF
16620
16621 fi
16622 echo "$as_me:$LINENO: result: $ntp_ok" >&5
16623 echo "${ECHO_T}$ntp_ok" >&6
16624 case "$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
16627 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
16628    { (exit 1); exit 1; }; }
16629     ;;
16630 esac
16631
16632 echo "$as_me:$LINENO: checking VARITEXT clock" >&5
16633 echo $ECHO_N "checking VARITEXT clock... $ECHO_C" >&6
16634 # Check whether --enable-VARITEXT or --disable-VARITEXT was given.
16635 if test "${enable_VARITEXT+set}" = set; then
16636   enableval="$enable_VARITEXT"
16637   ntp_ok=$enableval
16638 else
16639   ntp_ok=$ntp_eapc
16640 fi;
16641 if test "$ntp_ok" = "yes"; then
16642     ntp_libparse=yes
16643     ntp_refclock=yes
16644
16645 cat >>confdefs.h <<\_ACEOF
16646 #define CLOCK_VARITEXT 1
16647 _ACEOF
16648
16649 fi
16650 echo "$as_me:$LINENO: result: $ntp_ok" >&5
16651 echo "${ECHO_T}$ntp_ok" >&6
16652 case "$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
16655 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
16656    { (exit 1); exit 1; }; }
16657     ;;
16658 esac
16659
16660
16661
16662
16663 echo "$as_me:$LINENO: checking if we need to make and use the parse libraries" >&5
16664 echo $ECHO_N "checking if we need to make and use the parse libraries... $ECHO_C" >&6
16665 ans=no
16666 case "$ntp_libparse" in
16667  yes)
16668     ans=yes
16669
16670 cat >>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
16678 cat >>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     ;;
16687 esac
16688 echo "$as_me:$LINENO: result: $ans" >&5
16689 echo "${ECHO_T}$ans" >&6
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704 echo "$as_me:$LINENO: checking for openssl library directory" >&5
16705 echo $ECHO_N "checking for openssl library directory... $ECHO_C" >&6
16706
16707 # Check whether --with-openssl-libdir or --without-openssl-libdir was given.
16708 if test "${with_openssl_libdir+set}" = set; then
16709   withval="$with_openssl_libdir"
16710   ans=$withval
16711 else
16712   ans=yes
16713 fi;
16714 case "$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     ;;
16721 esac
16722 case "$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     ;;
16739 esac
16740 echo "$as_me:$LINENO: result: $ans" >&5
16741 echo "${ECHO_T}$ans" >&6
16742
16743 echo "$as_me:$LINENO: checking for openssl include directory" >&5
16744 echo $ECHO_N "checking for openssl include directory... $ECHO_C" >&6
16745
16746 # Check whether --with-openssl-incdir or --without-openssl-incdir was given.
16747 if test "${with_openssl_incdir+set}" = set; then
16748   withval="$with_openssl_incdir"
16749   ans=$withval
16750 else
16751   ans=yes
16752 fi;
16753 case "$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     ;;
16760 esac
16761 case "$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     ;;
16778 esac
16779 echo "$as_me:$LINENO: result: $ans" >&5
16780 echo "${ECHO_T}$ans" >&6
16781
16782
16783 # Check whether --with-crypto or --without-crypto was given.
16784 if test "${with_crypto+set}" = set; then
16785   withval="$with_crypto"
16786   ans=$withval
16787 else
16788   ans=yes
16789 fi;
16790 case "$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
16808 cat >>confdefs.h <<\_ACEOF
16809 #define DES 1
16810 _ACEOF
16811
16812
16813 cat >>confdefs.h <<\_ACEOF
16814 #define OPENSSL
16815 _ACEOF
16816
16817
16818 cat >>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
16846 cat >>confdefs.h <<\_ACEOF
16847 #define DES 1
16848 _ACEOF
16849
16850             cat >>confdefs.h <<\_ACEOF
16851 #define PUBKEY 1
16852 _ACEOF
16853
16854
16855 cat >>confdefs.h <<\_ACEOF
16856 #define RSAREF
16857 _ACEOF
16858
16859         fi
16860         ;;
16861     esac
16862     ;;
16863 esac
16864
16865
16866 if test x$RSADIR = xrsaref2; then
16867   isRSAREF_TRUE=
16868   isRSAREF_FALSE='#'
16869 else
16870   isRSAREF_TRUE='#'
16871   isRSAREF_FALSE=
16872 fi
16873
16874
16875 if test x$RSADIR = xrsaeuro1; then
16876   isRSAEURO_TRUE=
16877   isRSAEURO_FALSE='#'
16878 else
16879   isRSAEURO_TRUE='#'
16880   isRSAEURO_FALSE=
16881 fi
16882
16883 case "$ans" in
16884  no) ;;
16885  *)
16886
16887 cat >>confdefs.h <<\_ACEOF
16888 #define AUTOKEY
16889 _ACEOF
16890
16891     AUTOKEY=1
16892     ;;
16893 esac
16894 echo "$as_me:$LINENO: checking for the level of crypto support" >&5
16895 echo $ECHO_N "checking for the level of crypto support... $ECHO_C" >&6
16896 echo "$as_me:$LINENO: result: $ans" >&5
16897 echo "${ECHO_T}$ans" >&6
16898
16899 echo "$as_me:$LINENO: checking if we want to compile with ElectricFence" >&5
16900 echo $ECHO_N "checking if we want to compile with ElectricFence... $ECHO_C" >&6
16901
16902 # Check whether --with-electricfence or --without-electricfence was given.
16903 if test "${with_electricfence+set}" = set; then
16904   withval="$with_electricfence"
16905   ans=$withval
16906 else
16907   ans=no
16908 fi;
16909 case "$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     ;;
16919 esac
16920 echo "$as_me:$LINENO: result: $ans" >&5
16921 echo "${ECHO_T}$ans" >&6
16922
16923
16924
16925
16926 echo "$as_me:$LINENO: checking if we can make dcf parse utilities" >&5
16927 echo $ECHO_N "checking if we can make dcf parse utilities... $ECHO_C" >&6
16928 ans=no
16929 if 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
16937 fi
16938 echo "$as_me:$LINENO: result: $ans" >&5
16939 echo "${ECHO_T}$ans" >&6
16940
16941
16942 echo "$as_me:$LINENO: checking if we can build kernel streams modules for parse" >&5
16943 echo $ECHO_N "checking if we can build kernel streams modules for parse... $ECHO_C" >&6
16944 ans=no
16945 case "$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
16952 cat >>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     ;;
16967 esac
16968 echo "$as_me:$LINENO: result: $ans" >&5
16969 echo "${ECHO_T}$ans" >&6
16970
16971 echo "$as_me:$LINENO: checking if we need basic refclock support" >&5
16972 echo $ECHO_N "checking if we need basic refclock support... $ECHO_C" >&6
16973 if test "$ntp_refclock" = "yes"; then
16974
16975 cat >>confdefs.h <<\_ACEOF
16976 #define REFCLOCK 1
16977 _ACEOF
16978
16979 fi
16980 echo "$as_me:$LINENO: result: $ntp_refclock" >&5
16981 echo "${ECHO_T}$ntp_refclock" >&6
16982
16983
16984
16985 echo "$as_me:$LINENO: checking if we want HP-UX adjtimed support" >&5
16986 echo $ECHO_N "checking if we want HP-UX adjtimed support... $ECHO_C" >&6
16987 case "$host" in
16988  *-*-hpux[56789]*)
16989     ans=yes
16990     ;;
16991  *) ans=no
16992     ;;
16993 esac
16994 if test "$ans" = "yes"; then
16995     MAKE_ADJTIMED=adjtimed
16996
16997 cat >>confdefs.h <<\_ACEOF
16998 #define NEED_HPUX_ADJTIME 1
16999 _ACEOF
17000
17001 fi
17002 echo "$as_me:$LINENO: result: $ans" >&5
17003 echo "${ECHO_T}$ans" >&6
17004
17005 echo "$as_me:$LINENO: checking if we want QNX adjtime support" >&5
17006 echo $ECHO_N "checking if we want QNX adjtime support... $ECHO_C" >&6
17007 case "$host" in
17008  *-*-qnx*)
17009     ans=yes
17010     ;;
17011  *) ans=no
17012     ;;
17013 esac
17014 if test "$ans" = "yes"; then
17015
17016 cat >>confdefs.h <<\_ACEOF
17017 #define NEED_QNX_ADJTIME 1
17018 _ACEOF
17019
17020 fi
17021 echo "$as_me:$LINENO: result: $ans" >&5
17022 echo "${ECHO_T}$ans" >&6
17023
17024 echo "$as_me:$LINENO: checking if we can read kmem" >&5
17025 echo $ECHO_N "checking if we can read kmem... $ECHO_C" >&6
17026 if test "${ac_cv_var_can_kmem+set}" = set; then
17027   echo $ECHO_N "(cached) $ECHO_C" >&6
17028 else
17029   # Check whether --enable-kmem or --disable-kmem was given.
17030 if test "${enable_kmem+set}" = set; then
17031   enableval="$enable_kmem"
17032   ans=$enableval
17033 else
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
17062 fi;
17063 ac_cv_var_can_kmem=$ans
17064 fi
17065 echo "$as_me:$LINENO: result: $ac_cv_var_can_kmem" >&5
17066 echo "${ECHO_T}$ac_cv_var_can_kmem" >&6
17067
17068 case "$ac_cv_var_can_kmem" in
17069  *yes*) ;;
17070  *)
17071 cat >>confdefs.h <<\_ACEOF
17072 #define NOKMEM 1
17073 _ACEOF
17074  ;;
17075 esac
17076
17077 echo "$as_me:$LINENO: checking if adjtime is accurate" >&5
17078 echo $ECHO_N "checking if adjtime is accurate... $ECHO_C" >&6
17079 if test "${ac_cv_var_adjtime_is_accurate+set}" = set; then
17080   echo $ECHO_N "(cached) $ECHO_C" >&6
17081 else
17082   # Check whether --enable-accurate-adjtime or --disable-accurate-adjtime was given.
17083 if test "${enable_accurate_adjtime+set}" = set; then
17084   enableval="$enable_accurate_adjtime"
17085   ans=$enableval
17086 else
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
17116 fi;
17117 ac_cv_var_adjtime_is_accurate=$ans
17118 fi
17119 echo "$as_me:$LINENO: result: $ac_cv_var_adjtime_is_accurate" >&5
17120 echo "${ECHO_T}$ac_cv_var_adjtime_is_accurate" >&6
17121 case "$ac_cv_var_adjtime_is_accurate" in
17122  yes)
17123 cat >>confdefs.h <<\_ACEOF
17124 #define ADJTIME_IS_ACCURATE 1
17125 _ACEOF
17126  ;;
17127 esac
17128
17129 echo "$as_me:$LINENO: checking the name of 'tick' in the kernel" >&5
17130 echo $ECHO_N "checking the name of 'tick' in the kernel... $ECHO_C" >&6
17131 if test "${ac_cv_var_nlist_tick+set}" = set; then
17132   echo $ECHO_N "(cached) $ECHO_C" >&6
17133 else
17134   ans=_tick
17135 case "$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     ;;
17163 esac
17164 ac_cv_var_nlist_tick=$ans
17165 fi
17166 echo "$as_me:$LINENO: result: $ac_cv_var_nlist_tick" >&5
17167 echo "${ECHO_T}$ac_cv_var_nlist_tick" >&6
17168 case "$ac_cv_var_nlist_tick" in
17169  ''|no) ;;      # HMS: I think we can only get 'no' here...
17170  *)
17171 cat >>confdefs.h <<_ACEOF
17172 #define K_TICK_NAME "$ac_cv_var_nlist_tick"
17173 _ACEOF
17174  ;;
17175 esac
17176 #
17177 echo "$as_me:$LINENO: checking for the units of 'tick'" >&5
17178 echo $ECHO_N "checking for the units of 'tick'... $ECHO_C" >&6
17179 if test "${ac_cv_var_tick_nano+set}" = set; then
17180   echo $ECHO_N "(cached) $ECHO_C" >&6
17181 else
17182   ans=usec
17183 case "$host" in
17184  *-*-solaris2*)
17185     ans=nsec
17186     ;;
17187 esac
17188 ac_cv_var_tick_nano=$ans
17189 fi
17190 echo "$as_me:$LINENO: result: $ac_cv_var_tick_nano" >&5
17191 echo "${ECHO_T}$ac_cv_var_tick_nano" >&6
17192 case "$ac_cv_var_tick_nano" in
17193  nsec)
17194
17195 cat >>confdefs.h <<\_ACEOF
17196 #define TICK_NANO 1
17197 _ACEOF
17198
17199     ;;
17200 esac
17201 #
17202 echo "$as_me:$LINENO: checking the name of 'tickadj' in the kernel" >&5
17203 echo $ECHO_N "checking the name of 'tickadj' in the kernel... $ECHO_C" >&6
17204 if test "${ac_cv_var_nlist_tickadj+set}" = set; then
17205   echo $ECHO_N "(cached) $ECHO_C" >&6
17206 else
17207   ans=_tickadj
17208 case "$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     ;;
17245 esac
17246 ac_cv_var_nlist_tickadj=$ans
17247 fi
17248 echo "$as_me:$LINENO: result: $ac_cv_var_nlist_tickadj" >&5
17249 echo "${ECHO_T}$ac_cv_var_nlist_tickadj" >&6
17250 case "$ac_cv_var_nlist_tickadj" in
17251  ''|no) ;;      # HMS: I think we can only get 'no' here...
17252  *)
17253 cat >>confdefs.h <<_ACEOF
17254 #define K_TICKADJ_NAME "$ac_cv_var_nlist_tickadj"
17255 _ACEOF
17256  ;;
17257 esac
17258 #
17259 echo "$as_me:$LINENO: checking for the units of 'tickadj'" >&5
17260 echo $ECHO_N "checking for the units of 'tickadj'... $ECHO_C" >&6
17261 if test "${ac_cv_var_tickadj_nano+set}" = set; then
17262   echo $ECHO_N "(cached) $ECHO_C" >&6
17263 else
17264   ans=usec
17265 case "$host" in
17266  *-*-solaris2*)
17267     ans=nsec
17268     ;;
17269 esac
17270 ac_cv_var_tickadj_nano=$ans
17271 fi
17272 echo "$as_me:$LINENO: result: $ac_cv_var_tickadj_nano" >&5
17273 echo "${ECHO_T}$ac_cv_var_tickadj_nano" >&6
17274 case "$ac_cv_var_tickadj_nano" in
17275  nsec)
17276
17277 cat >>confdefs.h <<\_ACEOF
17278 #define TICKADJ_NANO 1
17279 _ACEOF
17280
17281     ;;
17282 esac
17283 #
17284 echo "$as_me:$LINENO: checking half-heartedly for 'dosynctodr' in the kernel" >&5
17285 echo $ECHO_N "checking half-heartedly for 'dosynctodr' in the kernel... $ECHO_C" >&6
17286 if test "${ac_cv_var_nlist_dosynctodr+set}" = set; then
17287   echo $ECHO_N "(cached) $ECHO_C" >&6
17288 else
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     ;;
17326 esac
17327 ac_cv_var_nlist_dosynctodr=$ans
17328 fi
17329 echo "$as_me:$LINENO: result: $ac_cv_var_nlist_dosynctodr" >&5
17330 echo "${ECHO_T}$ac_cv_var_nlist_dosynctodr" >&6
17331 case "$ac_cv_var_nlist_dosynctodr" in
17332  no) ;;
17333  *)
17334 cat >>confdefs.h <<_ACEOF
17335 #define K_DOSYNCTODR_NAME "$ac_cv_var_nlist_dosynctodr"
17336 _ACEOF
17337
17338      ;;
17339 esac
17340 #
17341 echo "$as_me:$LINENO: checking half-heartedly for 'noprintf' in the kernel" >&5
17342 echo $ECHO_N "checking half-heartedly for 'noprintf' in the kernel... $ECHO_C" >&6
17343 if test "${ac_cv_var_nlist_noprintf+set}" = set; then
17344   echo $ECHO_N "(cached) $ECHO_C" >&6
17345 else
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     ;;
17377 esac
17378 ac_cv_var_nlist_noprintf=$ans
17379 fi
17380 echo "$as_me:$LINENO: result: $ac_cv_var_nlist_noprintf" >&5
17381 echo "${ECHO_T}$ac_cv_var_nlist_noprintf" >&6
17382 case "$ac_cv_var_nlist_noprintf" in
17383  no) ;;
17384  *)
17385 cat >>confdefs.h <<_ACEOF
17386 #define K_NOPRINTF_NAME "$ac_cv_var_nlist_noprintf"
17387 _ACEOF
17388
17389      ;;
17390 esac
17391
17392
17393
17394
17395 echo "$as_me:$LINENO: checking for a default value for 'tick'" >&5
17396 echo $ECHO_N "checking for a default value for 'tick'... $ECHO_C" >&6
17397 if test "${ac_cv_var_tick+set}" = set; then
17398   echo $ECHO_N "(cached) $ECHO_C" >&6
17399 else
17400   # Check whether --enable-tick or --disable-tick was given.
17401 if test "${enable_tick+set}" = set; then
17402   enableval="$enable_tick"
17403   ans=$enableval
17404 else
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
17428 fi;
17429 ac_cv_var_tick=$ans
17430 fi
17431 echo "$as_me:$LINENO: result: $ac_cv_var_tick" >&5
17432 echo "${ECHO_T}$ac_cv_var_tick" >&6
17433 case "$ac_cv_var_tick" in
17434  ''|no) ;;      # HMS: I think we can only get 'no' here...
17435  *)
17436 cat >>confdefs.h <<_ACEOF
17437 #define PRESET_TICK $ac_cv_var_tick
17438 _ACEOF
17439  ;;
17440 esac
17441
17442 echo "$as_me:$LINENO: checking for a default value for 'tickadj'" >&5
17443 echo $ECHO_N "checking for a default value for 'tickadj'... $ECHO_C" >&6
17444 if test "${ac_cv_var_tickadj+set}" = set; then
17445   echo $ECHO_N "(cached) $ECHO_C" >&6
17446 else
17447   # Check whether --enable-tickadj or --disable-tickadj was given.
17448 if test "${enable_tickadj+set}" = set; then
17449   enableval="$enable_tickadj"
17450   ans=$enableval
17451 else
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
17500 fi;
17501 ac_cv_var_tickadj=$ans
17502 fi
17503 echo "$as_me:$LINENO: result: $ac_cv_var_tickadj" >&5
17504 echo "${ECHO_T}$ac_cv_var_tickadj" >&6
17505 case "$ac_cv_var_tickadj" in
17506  ''|no) ;;      # HMS: I think we can only get 'no' here...
17507  *)
17508 cat >>confdefs.h <<_ACEOF
17509 #define PRESET_TICKADJ $ac_cv_var_tickadj
17510 _ACEOF
17511  ;;
17512 esac
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.
17518 case "$host" in
17519  mips-sni-sysv4*)
17520 cat >>confdefs.h <<\_ACEOF
17521 #define RELIANTUNIX_CLOCK 1
17522 _ACEOF
17523  ;;
17524 esac
17525
17526 case "$host" in
17527  *-*-sco3.2v5*)
17528 cat >>confdefs.h <<\_ACEOF
17529 #define SCO5_CLOCK 1
17530 _ACEOF
17531  ;;
17532 esac
17533
17534 ac_cv_make_tickadj=yes
17535 case "$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
17538 echo "$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
17543 echo "$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
17548 echo "$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
17557 echo "$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
17565 echo "$as_me: error: This shouldn't happen." >&2;}
17566    { (exit 1); exit 1; }; }
17567     ;;
17568 esac
17569
17570
17571 echo "$as_me:$LINENO: checking if we want and can make the ntptime utility" >&5
17572 echo $ECHO_N "checking if we want and can make the ntptime utility... $ECHO_C" >&6
17573 if test "${ac_cv_make_ntptime+set}" = set; then
17574   echo $ECHO_N "(cached) $ECHO_C" >&6
17575 else
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     ;;
17586 esac
17587 ac_cv_make_ntptime=$ans
17588 fi
17589 echo "$as_me:$LINENO: result: $ac_cv_make_ntptime" >&5
17590 echo "${ECHO_T}$ac_cv_make_ntptime" >&6
17591 case "$ac_cv_make_ntptime" in
17592  yes)
17593     MAKE_NTPTIME=ntptime
17594     ;;
17595 esac
17596
17597
17598 case "$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     ;;
17614 esac
17615 echo "$as_me:$LINENO: checking if we want and can make the tickadj utility" >&5
17616 echo $ECHO_N "checking if we want and can make the tickadj utility... $ECHO_C" >&6
17617 if test "${ac_cv_make_tickadj+set}" = set; then
17618   echo $ECHO_N "(cached) $ECHO_C" >&6
17619 else
17620   ac_cv_make_tickadj=yes
17621 fi
17622 echo "$as_me:$LINENO: result: $ac_cv_make_tickadj" >&5
17623 echo "${ECHO_T}$ac_cv_make_tickadj" >&6
17624 case "$ac_cv_make_tickadj" in
17625  yes)
17626     MAKE_TICKADJ=tickadj
17627     ;;
17628 esac
17629
17630
17631 echo "$as_me:$LINENO: checking if we want and can make the timetrim utility" >&5
17632 echo $ECHO_N "checking if we want and can make the timetrim utility... $ECHO_C" >&6
17633 if test "${ac_cv_make_timetrim+set}" = set; then
17634   echo $ECHO_N "(cached) $ECHO_C" >&6
17635 else
17636   case "$host" in
17637  *-*-irix*)
17638     ac_cv_make_timetrim=yes
17639     ;;
17640  *)
17641     ac_cv_make_timetrim=no
17642     ;;
17643 esac
17644 fi
17645 echo "$as_me:$LINENO: result: $ac_cv_make_timetrim" >&5
17646 echo "${ECHO_T}$ac_cv_make_timetrim" >&6
17647 case "$ac_cv_make_timetrim" in
17648  yes)
17649     MAKE_TIMETRIM=timetrim
17650     ;;
17651 esac
17652
17653 echo "$as_me:$LINENO: checking if we want UDP wildcard delivery" >&5
17654 echo $ECHO_N "checking if we want UDP wildcard delivery... $ECHO_C" >&6
17655 if test "${ac_cv_var_udp_wildcard_delivery+set}" = set; then
17656   echo $ECHO_N "(cached) $ECHO_C" >&6
17657 else
17658   # Check whether --enable-udp-wildcard or --disable-udp-wildcard was given.
17659 if test "${enable_udp_wildcard+set}" = set; then
17660   enableval="$enable_udp_wildcard"
17661   ans=$enableval
17662 else
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
17711 fi;
17712 ac_cv_var_udp_wildcard_delivery=$ans
17713 fi
17714 echo "$as_me:$LINENO: result: $ac_cv_var_udp_wildcard_delivery" >&5
17715 echo "${ECHO_T}$ac_cv_var_udp_wildcard_delivery" >&6
17716 case "$ac_cv_var_udp_wildcard_delivery" in
17717  yes)
17718 cat >>confdefs.h <<\_ACEOF
17719 #define UDP_WILDCARD_DELIVERY 1
17720 _ACEOF
17721  ;;
17722 esac
17723
17724 case "$build" in
17725  $host)
17726     ;;
17727  *) case "$host" in
17728      *-*-vxworks*)
17729         LDFLAGS="$LDFLAGS -r"
17730         ;;
17731     esac
17732     ;;
17733 esac
17734
17735 echo "$as_me:$LINENO: checking if we should always slew the time" >&5
17736 echo $ECHO_N "checking if we should always slew the time... $ECHO_C" >&6
17737 if test "${ac_cv_var_slew_always+set}" = set; then
17738   echo $ECHO_N "(cached) $ECHO_C" >&6
17739 else
17740   # Check whether --enable-slew-always or --disable-slew-always was given.
17741 if test "${enable_slew_always+set}" = set; then
17742   enableval="$enable_slew_always"
17743   ans=$enableval
17744 else
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
17762 fi;
17763 ac_cv_var_slew_always=$ans
17764 fi
17765 echo "$as_me:$LINENO: result: $ac_cv_var_slew_always" >&5
17766 echo "${ECHO_T}$ac_cv_var_slew_always" >&6
17767 case "$ac_cv_var_slew_always" in
17768  yes)
17769 cat >>confdefs.h <<\_ACEOF
17770 #define SLEWALWAYS 1
17771 _ACEOF
17772  ;;
17773 esac
17774
17775 echo "$as_me:$LINENO: checking if we should step and slew the time" >&5
17776 echo $ECHO_N "checking if we should step and slew the time... $ECHO_C" >&6
17777 if test "${ac_cv_var_step_slew+set}" = set; then
17778   echo $ECHO_N "(cached) $ECHO_C" >&6
17779 else
17780   # Check whether --enable-step-slew or --disable-step-slew was given.
17781 if test "${enable_step_slew+set}" = set; then
17782   enableval="$enable_step_slew"
17783   ans=$enableval
17784 else
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
17805 fi;
17806 ac_cv_var_step_slew=$ans
17807 fi
17808 echo "$as_me:$LINENO: result: $ac_cv_var_step_slew" >&5
17809 echo "${ECHO_T}$ac_cv_var_step_slew" >&6
17810 case "$ac_cv_var_step_slew" in
17811  yes)
17812 cat >>confdefs.h <<\_ACEOF
17813 #define STEP_SLEW 1
17814 _ACEOF
17815  ;;
17816 esac
17817
17818 echo "$as_me:$LINENO: checking if ntpdate should step the time" >&5
17819 echo $ECHO_N "checking if ntpdate should step the time... $ECHO_C" >&6
17820 if test "${ac_cv_var_ntpdate_step+set}" = set; then
17821   echo $ECHO_N "(cached) $ECHO_C" >&6
17822 else
17823   # Check whether --enable-ntpdate-step or --disable-ntpdate-step was given.
17824 if test "${enable_ntpdate_step+set}" = set; then
17825   enableval="$enable_ntpdate_step"
17826   ans=$enableval
17827 else
17828   case "$host" in
17829       *-apple-aux[23]*)
17830          ans=yes
17831          ;;
17832       *) ans=no
17833          ;;
17834      esac
17835
17836 fi;
17837 ac_cv_var_ntpdate_step=$ans
17838 fi
17839 echo "$as_me:$LINENO: result: $ac_cv_var_ntpdate_step" >&5
17840 echo "${ECHO_T}$ac_cv_var_ntpdate_step" >&6
17841 case "$ac_cv_var_ntpdate_step" in
17842  yes)
17843 cat >>confdefs.h <<\_ACEOF
17844 #define FORCE_NTPDATE_STEP 1
17845 _ACEOF
17846  ;;
17847 esac
17848
17849 echo "$as_me:$LINENO: checking if we should sync TODR clock every hour" >&5
17850 echo $ECHO_N "checking if we should sync TODR clock every hour... $ECHO_C" >&6
17851 if test "${ac_cv_var_sync_todr+set}" = set; then
17852   echo $ECHO_N "(cached) $ECHO_C" >&6
17853 else
17854   # Check whether --enable-hourly-todr-sync or --disable-hourly-todr-sync was given.
17855 if test "${enable_hourly_todr_sync+set}" = set; then
17856   enableval="$enable_hourly_todr_sync"
17857   ans=$enableval
17858 else
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
17869 fi;
17870 ac_cv_var_sync_todr=$ans
17871 fi
17872 echo "$as_me:$LINENO: result: $ac_cv_var_sync_todr" >&5
17873 echo "${ECHO_T}$ac_cv_var_sync_todr" >&6
17874 case "$ac_cv_var_sync_todr" in
17875  yes)
17876 cat >>confdefs.h <<\_ACEOF
17877 #define DOSYNCTODR 1
17878 _ACEOF
17879  ;;
17880 esac
17881
17882 echo "$as_me:$LINENO: checking if we should avoid kernel FLL bug" >&5
17883 echo $ECHO_N "checking if we should avoid kernel FLL bug... $ECHO_C" >&6
17884 if test "${ac_cv_var_kernel_fll_bug+set}" = set; then
17885   echo $ECHO_N "(cached) $ECHO_C" >&6
17886 else
17887   # Check whether --enable-kernel-fll-bug or --disable-kernel-fll-bug was given.
17888 if test "${enable_kernel_fll_bug+set}" = set; then
17889   enableval="$enable_kernel_fll_bug"
17890   ans=$enableval
17891 else
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
17937 fi;
17938 ac_cv_var_kernel_fll_bug=$ans
17939 fi
17940 echo "$as_me:$LINENO: result: $ac_cv_var_kernel_fll_bug" >&5
17941 echo "${ECHO_T}$ac_cv_var_kernel_fll_bug" >&6
17942 case "$ac_cv_var_kernel_fll_bug" in
17943  yes)
17944 cat >>confdefs.h <<\_ACEOF
17945 #define KERNEL_FLL_BUG 1
17946 _ACEOF
17947  ;;
17948 esac
17949
17950 case "$build" in
17951  $host)
17952     ;;
17953  *) case "$host" in
17954      *-*-vxworks*)
17955         LDFLAGS="$LDFLAGS -r"
17956         ;;
17957     esac
17958     ;;
17959 esac
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
17968 cat >>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
17979 ac_config_files="$ac_config_files Makefile"
17980
17981 ac_config_files="$ac_config_files ElectricFence/Makefile"
17982
17983 ac_config_files="$ac_config_files adjtimed/Makefile"
17984
17985 ac_config_files="$ac_config_files clockstuff/Makefile"
17986
17987 ac_config_files="$ac_config_files include/Makefile"
17988
17989 ac_config_files="$ac_config_files kernel/Makefile"
17990
17991 ac_config_files="$ac_config_files kernel/sys/Makefile"
17992
17993 ac_config_files="$ac_config_files libntp/Makefile"
17994
17995 ac_config_files="$ac_config_files libparse/Makefile"
17996
17997 ac_config_files="$ac_config_files librsaref/Makefile"
17998
17999 ac_config_files="$ac_config_files ntpd/Makefile"
18000
18001 ac_config_files="$ac_config_files ntpdate/Makefile"
18002
18003 ac_config_files="$ac_config_files ntpdc/Makefile"
18004
18005 ac_config_files="$ac_config_files ntpq/Makefile"
18006
18007 ac_config_files="$ac_config_files ntptrace/Makefile"
18008
18009 ac_config_files="$ac_config_files parseutil/Makefile"
18010
18011 ac_config_files="$ac_config_files scripts/Makefile"
18012
18013 ac_config_files="$ac_config_files scripts/calc_tickadj"
18014
18015 ac_config_files="$ac_config_files scripts/checktime"
18016
18017 ac_config_files="$ac_config_files scripts/freq_adj"
18018
18019 ac_config_files="$ac_config_files scripts/mkver"
18020
18021 ac_config_files="$ac_config_files scripts/ntp-wait"
18022
18023 ac_config_files="$ac_config_files scripts/ntpsweep"
18024
18025 ac_config_files="$ac_config_files scripts/ntpver"
18026
18027 ac_config_files="$ac_config_files scripts/plot_summary"
18028
18029 ac_config_files="$ac_config_files scripts/summary"
18030
18031 ac_config_files="$ac_config_files util/Makefile"
18032
18033
18034 ac_config_commands="$ac_config_commands default"
18035
18036
18037 cat >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
18082 if 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
18089 fi
18090 rm -f confcache
18091
18092 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18093 # Let make expand exec_prefix.
18094 test "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).
18100 if test "x$srcdir" = x.; then
18101   ac_vpsub='/^[         ]*VPATH[        ]*=/{
18102 s/:*\$(srcdir):*/:/;
18103 s/:*\${srcdir}:*/:/;
18104 s/:*@srcdir@:*/:/;
18105 s/^\([^=]*=[    ]*\):*/\1/;
18106 s/:*$//;
18107 s/^[^=]*=[      ]*$//;
18108 }'
18109 fi
18110
18111 DEFS=-DHAVE_CONFIG_H
18112
18113
18114 : ${CONFIG_STATUS=./config.status}
18115 ac_clean_files_save=$ac_clean_files
18116 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18117 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18118 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18119 cat >$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
18126 debug=false
18127 SHELL=\${CONFIG_SHELL-$SHELL}
18128 _ACEOF
18129
18130 cat >>$CONFIG_STATUS <<\_ACEOF
18131
18132 ## --------------------- ##
18133 ## M4sh Initialization.  ##
18134 ## --------------------- ##
18135
18136 # Be Bourne compatible
18137 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18138   emulate sh
18139   NULLCMD=:
18140 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18141   set -o posix
18142 fi
18143
18144 # NLS nuisances.
18145 # Support unset when possible.
18146 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18147   as_unset=unset
18148 else
18149   as_unset=false
18150 fi
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.
18179 as_me=`(basename "$0") 2>/dev/null ||
18180 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18181          X"$0" : 'X\(//\)$' \| \
18182          X"$0" : 'X\(/\)$' \| \
18183          .     : '\(.\)' 2>/dev/null ||
18184 echo 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.
18192 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18193 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18194 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18195 as_cr_digits='0123456789'
18196 as_cr_alnum=$as_cr_Letters$as_cr_digits
18197
18198 # The user is always right.
18199 if 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
18209 fi
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
18222 for as_dir in $PATH
18223 do
18224   IFS=$as_save_IFS
18225   test -z "$as_dir" && as_dir=.
18226   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18227 done
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
18238 echo "$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
18244 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18245 do
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
18263 done
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
18287 echo "$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
18299 case `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= ;;
18304 esac
18305
18306 if expr a : '\(a\)' >/dev/null 2>&1; then
18307   as_expr=expr
18308 else
18309   as_expr=false
18310 fi
18311
18312 rm -f conf$$ conf$$.exe conf$$.file
18313 echo >conf$$.file
18314 if 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
18323 elif ln conf$$.file conf$$ 2>/dev/null; then
18324   as_ln_s=ln
18325 else
18326   as_ln_s='cp -p'
18327 fi
18328 rm -f conf$$ conf$$.exe conf$$.file
18329
18330 as_executable_p="test -f"
18331
18332 # Sed expression to map a string onto a valid CPP name.
18333 as_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.
18336 as_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.
18341 as_nl='
18342 '
18343 IFS="   $as_nl"
18344
18345 # CDPATH.
18346 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
18347
18348 exec 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.
18353 exec 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
18360 cat >&5 <<_CSEOF
18361
18362 This file was extended by $as_me, which was
18363 generated 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
18372 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18373 echo >&5
18374 _ACEOF
18375
18376 # Files that config.status was made for.
18377 if test -n "$ac_config_files"; then
18378   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18379 fi
18380
18381 if test -n "$ac_config_headers"; then
18382   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18383 fi
18384
18385 if test -n "$ac_config_links"; then
18386   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18387 fi
18388
18389 if test -n "$ac_config_commands"; then
18390   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18391 fi
18392
18393 cat >>$CONFIG_STATUS <<\_ACEOF
18394
18395 ac_cs_usage="\
18396 \`$as_me' instantiates files from templates according to the
18397 current configuration.
18398
18399 Usage: $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
18410 Configuration files:
18411 $config_files
18412
18413 Configuration headers:
18414 $config_headers
18415
18416 Configuration commands:
18417 $config_commands
18418
18419 Report bugs to <bug-autoconf@gnu.org>."
18420 _ACEOF
18421
18422 cat >>$CONFIG_STATUS <<_ACEOF
18423 ac_cs_version="\\
18424 config.status
18425 configured by $0, generated by GNU Autoconf 2.53,
18426   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18427
18428 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18429 Free Software Foundation, Inc.
18430 This config.status script is free software; the Free Software Foundation
18431 gives unlimited permission to copy, distribute and modify it."
18432 srcdir=$srcdir
18433 INSTALL="$INSTALL"
18434 _ACEOF
18435
18436 cat >>$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.
18439 ac_need_defaults=:
18440 while test $# != 0
18441 do
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
18459 cat >>$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
18464 cat >>$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
18470 Try \`$0 --help' for more information." >&5
18471 echo "$as_me: error: ambiguous option: $1
18472 Try \`$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
18489 Try \`$0 --help' for more information." >&5
18490 echo "$as_me: error: unrecognized option: $1
18491 Try \`$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
18498 done
18499
18500 _ACEOF
18501
18502 cat >>$CONFIG_STATUS <<_ACEOF
18503 #
18504 # INIT-COMMANDS section.
18505 #
18506
18507 AMDEP_TRUE="$AMDEP_TRUE"
18508 ac_aux_dir="$ac_aux_dir"
18509
18510 _ACEOF
18511
18512
18513
18514 cat >>$CONFIG_STATUS <<\_ACEOF
18515 for ac_config_target in $ac_config_targets
18516 do
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
18550 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18551    { (exit 1); exit 1; }; };;
18552   esac
18553 done
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.
18559 if $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
18563 fi
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
18589 cat >>$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
18597 if 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
18601 s,@SHELL@,$SHELL,;t t
18602 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18603 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18604 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18605 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18606 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18607 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18608 s,@exec_prefix@,$exec_prefix,;t t
18609 s,@prefix@,$prefix,;t t
18610 s,@program_transform_name@,$program_transform_name,;t t
18611 s,@bindir@,$bindir,;t t
18612 s,@sbindir@,$sbindir,;t t
18613 s,@libexecdir@,$libexecdir,;t t
18614 s,@datadir@,$datadir,;t t
18615 s,@sysconfdir@,$sysconfdir,;t t
18616 s,@sharedstatedir@,$sharedstatedir,;t t
18617 s,@localstatedir@,$localstatedir,;t t
18618 s,@libdir@,$libdir,;t t
18619 s,@includedir@,$includedir,;t t
18620 s,@oldincludedir@,$oldincludedir,;t t
18621 s,@infodir@,$infodir,;t t
18622 s,@mandir@,$mandir,;t t
18623 s,@build_alias@,$build_alias,;t t
18624 s,@host_alias@,$host_alias,;t t
18625 s,@target_alias@,$target_alias,;t t
18626 s,@DEFS@,$DEFS,;t t
18627 s,@ECHO_C@,$ECHO_C,;t t
18628 s,@ECHO_N@,$ECHO_N,;t t
18629 s,@ECHO_T@,$ECHO_T,;t t
18630 s,@LIBS@,$LIBS,;t t
18631 s,@build@,$build,;t t
18632 s,@build_cpu@,$build_cpu,;t t
18633 s,@build_vendor@,$build_vendor,;t t
18634 s,@build_os@,$build_os,;t t
18635 s,@host@,$host,;t t
18636 s,@host_cpu@,$host_cpu,;t t
18637 s,@host_vendor@,$host_vendor,;t t
18638 s,@host_os@,$host_os,;t t
18639 s,@target@,$target,;t t
18640 s,@target_cpu@,$target_cpu,;t t
18641 s,@target_vendor@,$target_vendor,;t t
18642 s,@target_os@,$target_os,;t t
18643 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18644 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18645 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18646 s,@PACKAGE@,$PACKAGE,;t t
18647 s,@VERSION@,$VERSION,;t t
18648 s,@EXEEXT@,$EXEEXT,;t t
18649 s,@OBJEXT@,$OBJEXT,;t t
18650 s,@ACLOCAL@,$ACLOCAL,;t t
18651 s,@AUTOCONF@,$AUTOCONF,;t t
18652 s,@AUTOMAKE@,$AUTOMAKE,;t t
18653 s,@AUTOHEADER@,$AUTOHEADER,;t t
18654 s,@MAKEINFO@,$MAKEINFO,;t t
18655 s,@AMTAR@,$AMTAR,;t t
18656 s,@install_sh@,$install_sh,;t t
18657 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
18658 s,@AWK@,$AWK,;t t
18659 s,@SET_MAKE@,$SET_MAKE,;t t
18660 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
18661 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
18662 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18663 s,@DEPDIR@,$DEPDIR,;t t
18664 s,@CC@,$CC,;t t
18665 s,@CFLAGS@,$CFLAGS,;t t
18666 s,@LDFLAGS@,$LDFLAGS,;t t
18667 s,@CPPFLAGS@,$CPPFLAGS,;t t
18668 s,@ac_ct_CC@,$ac_ct_CC,;t t
18669 s,@am__include@,$am__include,;t t
18670 s,@am__quote@,$am__quote,;t t
18671 s,@CCDEPMODE@,$CCDEPMODE,;t t
18672 s,@CPP@,$CPP,;t t
18673 s,@LN_S@,$LN_S,;t t
18674 s,@RANLIB@,$RANLIB,;t t
18675 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18676 s,@PATH_SH@,$PATH_SH,;t t
18677 s,@PATH_PERL@,$PATH_PERL,;t t
18678 s,@U@,$U,;t t
18679 s,@ANSI2KNR@,$ANSI2KNR,;t t
18680 s,@LIBOBJS@,$LIBOBJS,;t t
18681 s,@LIBPARSE@,$LIBPARSE,;t t
18682 s,@MAKE_LIBPARSE@,$MAKE_LIBPARSE,;t t
18683 s,@MAKE_LIBPARSE_KERNEL@,$MAKE_LIBPARSE_KERNEL,;t t
18684 s,@MAKE_CHECK_Y2K@,$MAKE_CHECK_Y2K,;t t
18685 s,@RSAOBJS@,$RSAOBJS,;t t
18686 s,@RSASRCS@,$RSASRCS,;t t
18687 s,@RSADIR@,$RSADIR,;t t
18688 s,@RSAREF@,$RSAREF,;t t
18689 s,@LIBRSAREF@,$LIBRSAREF,;t t
18690 s,@MAKE_LIBRSAREF@,$MAKE_LIBRSAREF,;t t
18691 s,@OPENSSL@,$OPENSSL,;t t
18692 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
18693 s,@OPENSSL_LIB@,$OPENSSL_LIB,;t t
18694 s,@MAKE_NTP_GENKEYS@,$MAKE_NTP_GENKEYS,;t t
18695 s,@isRSAREF_TRUE@,$isRSAREF_TRUE,;t t
18696 s,@isRSAREF_FALSE@,$isRSAREF_FALSE,;t t
18697 s,@isRSAEURO_TRUE@,$isRSAEURO_TRUE,;t t
18698 s,@isRSAEURO_FALSE@,$isRSAEURO_FALSE,;t t
18699 s,@AUTOKEY@,$AUTOKEY,;t t
18700 s,@EF_PROGS@,$EF_PROGS,;t t
18701 s,@EF_LIBS@,$EF_LIBS,;t t
18702 s,@TESTDCF@,$TESTDCF,;t t
18703 s,@DCFD@,$DCFD,;t t
18704 s,@MAKE_PARSEKMODULE@,$MAKE_PARSEKMODULE,;t t
18705 s,@PROPDELAY@,$PROPDELAY,;t t
18706 s,@CHUTEST@,$CHUTEST,;t t
18707 s,@CLKTEST@,$CLKTEST,;t t
18708 s,@MAKE_ADJTIMED@,$MAKE_ADJTIMED,;t t
18709 s,@MAKE_NTPTIME@,$MAKE_NTPTIME,;t t
18710 s,@MAKE_TICKADJ@,$MAKE_TICKADJ,;t t
18711 s,@MAKE_TIMETRIM@,$MAKE_TIMETRIM,;t t
18712 CEOF
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
18753 fi # test -n "$CONFIG_FILES"
18754
18755 _ACEOF
18756 cat >>$CONFIG_STATUS <<\_ACEOF
18757 for 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 ||
18776 echo 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=.;;
18785 esac
18786 as_dummy="$ac_dir"
18787 for 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
18796 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18797    { (exit 1); exit 1; }; }
18798     ;;
18799   esac
18800 done; }
18801
18802   ac_builddir=.
18803
18804 if 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'`
18808 else
18809   ac_dir_suffix= ac_top_builddir=
18810 fi
18811
18812 case $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 ;;
18826 esac
18827 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18828 # absolute.
18829 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18830 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18831 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18832 ac_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
18842 echo "$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
18865 echo "$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
18878 echo "$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
18884 cat >>$CONFIG_STATUS <<_ACEOF
18885   sed "$ac_vpsub
18886 $extrasub
18887 _ACEOF
18888 cat >>$CONFIG_STATUS <<\_ACEOF
18889 :t
18890 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18891 s,@configure_input@,$configure_input,;t t
18892 s,@srcdir@,$ac_srcdir,;t t
18893 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18894 s,@top_srcdir@,$ac_top_srcdir,;t t
18895 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18896 s,@builddir@,$ac_builddir,;t t
18897 s,@abs_builddir@,$ac_abs_builddir,;t t
18898 s,@top_builddir@,$ac_top_builddir,;t t
18899 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18900 s,@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
18910 done
18911 _ACEOF
18912 cat >>$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.
18922 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18923 ac_dB='[        ].*$,\1#\2'
18924 ac_dC=' '
18925 ac_dD=',;t'
18926 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18927 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18928 ac_uB='$,\1#\2define\3'
18929 ac_uC=' '
18930 ac_uD=',;t'
18931
18932 for 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
18945 echo "$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
18956 echo "$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
18969 echo "$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.
18986 rm -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'.
18993 cat >confdef2sed.sed <<\_ACEOF
18994 s/[\\&,]/\\&/g
18995 s,[\\$`],\\&,g
18996 t clear
18997 : clear
18998 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18999 t end
19000 s,^[    ]*#[    ]*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.
19006 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19007 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19008 rm -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.
19013 cat >>conftest.undefs <<\_ACEOF
19014 s,^[    ]*#[    ]*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).
19019 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19020 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19021 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19022 echo '  :' >>$CONFIG_STATUS
19023 rm -f conftest.tail
19024 while grep . conftest.defines >/dev/null
19025 do
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
19042 done
19043 rm -f conftest.defines
19044 echo '  fi # egrep' >>$CONFIG_STATUS
19045 echo >>$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).
19049 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19050 rm -f conftest.tail
19051 while grep . conftest.undefs >/dev/null
19052 do
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
19069 done
19070 rm -f conftest.undefs
19071
19072 cat >>$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
19086 echo "$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 ||
19094 echo 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=.;;
19103 esac
19104 as_dummy="$ac_dir"
19105 for 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
19114 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
19115    { (exit 1); exit 1; }; }
19116     ;;
19117   esac
19118 done; }
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
19130 echo timestamp >"./stamp-h1"
19131  ;;
19132   esac
19133 done
19134 _ACEOF
19135 cat >>$CONFIG_STATUS <<\_ACEOF
19136
19137 #
19138 # CONFIG_COMMANDS section.
19139 #
19140 for 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 ||
19149 echo 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
19157 if 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'`
19161 else
19162   ac_dir_suffix= ac_top_builddir=
19163 fi
19164
19165 case $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 ;;
19179 esac
19180 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19181 # absolute.
19182 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19183 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
19184 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19185 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19186
19187
19188   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19189 echo "$as_me: executing $ac_dest commands" >&6;}
19190   case $ac_dest in
19191     default-1 )
19192 test x"$AMDEP_TRUE" != x"" ||
19193 for 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
19228 done
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
19232 done
19233 _ACEOF
19234
19235 cat >>$CONFIG_STATUS <<\_ACEOF
19236
19237 { (exit 0); exit 0; }
19238 _ACEOF
19239 chmod +x $CONFIG_STATUS
19240 ac_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.
19251 if 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; }
19259 fi
19260