source: trunk/third/xntp/configure @ 10921

Revision 10921, 198.8 KB checked in by brlewis, 27 years ago (diff)
Set lbindir and lsbindir if not already set by Athena config.site
  • Property svn:executable set to *
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.12
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15  --enable-debugging       + include debugging code"
16ac_help="$ac_help
17  --enable-gdt-surveying   - include GDT survey code"
18ac_help="$ac_help
19  --enable-md5             + include support for MD5 keys"
20ac_help="$ac_help
21  --enable-des             + include support for DES keys"
22ac_help="$ac_help
23  --enable-BANCOMM         - Datum/Bancomm bc635/VME interface"
24ac_help="$ac_help
25  --enable-GPSVME          - TrueTime GPS receiver/VME interface"
26ac_help="$ac_help
27  --enable-SHM             - SHM clock attached thru shared memory"
28ac_help="$ac_help
29  --enable-all-clocks      + include all suitable non-PARSE clocks:"
30ac_help="$ac_help
31  --enable-ACTS             + ACTS modem service"
32ac_help="$ac_help
33  --enable-ARBITER          + Arbiter 1088A/B GPS receiver"
34ac_help="$ac_help
35  --enable-ARCRON-MSF       + Arcron MSF receiver"
36ac_help="$ac_help
37  --enable-AS2201           + Austron 2200A/2201A GPS receiver"
38ac_help="$ac_help
39  --enable-ATOM             + PPS interface"
40ac_help="$ac_help
41  --enable-CHU              s CHU modem/decoder"
42ac_help="$ac_help
43  --enable-DATUM            s Datum Programmable Time System"
44ac_help="$ac_help
45  --enable-HEATH            s Heath GC-1000 WWV/WWVH receiver"
46ac_help="$ac_help
47  --enable-HPGPS            + HP 58503A GPS receiver"
48ac_help="$ac_help
49  --enable-IRIG             s Sun IRIG audio decoder"
50ac_help="$ac_help
51  --enable-LEITCH           + Leitch CSD 5300 Master Clock System Driver"
52ac_help="$ac_help
53  --enable-LOCAL-CLOCK      + local clock reference"
54ac_help="$ac_help
55  --enable-MSFEES           + EES M201 MSF receiver"
56ac_help="$ac_help
57  --enable-MX4200           s Magnavox MX4200 GPS receiver"
58ac_help="$ac_help
59  --enable-NMEA             + NMEA GPS receiver"
60ac_help="$ac_help
61  --enable-PST              + PST/Traconex 1020 WWV/WWVH receiver"
62ac_help="$ac_help
63  --enable-PTBACTS          s PTB modem service"
64ac_help="$ac_help
65  --enable-TPRO             s KSI/Odetics TPRO/S GPS receiver/IRIG interface"
66ac_help="$ac_help
67  --enable-TRAK             + TRAK 8810 GPS receiver"
68ac_help="$ac_help
69  --enable-TRUETIME         s Kinemetrics/TrueTime receivers"
70ac_help="$ac_help
71  --enable-WWVB             + Spectracom 8170/Netclock/2 WWVB receiver"
72ac_help="$ac_help
73  --enable-USNO             s USNO modem service"
74ac_help="$ac_help
75  --enable-parse-clocks    - include all suitable PARSE clocks:"
76ac_help="$ac_help
77  --enable-COMPUTIME        - Diem Cumputime Radio Clock"
78ac_help="$ac_help
79  --enable-DCF7000          - ELV/DCF7000 clock"
80ac_help="$ac_help
81  --enable-HOPF6021         - HOPF 6021 clock"
82ac_help="$ac_help
83  --enable-MEINBERG         - Meinberg clocks"
84ac_help="$ac_help
85  --enable-RAWDCF           - DCF77 raw time code"
86ac_help="$ac_help
87  --enable-RCC8000          - RCC 8000 clock"
88ac_help="$ac_help
89  --enable-SCHMID           - Schmid DCF77 clock"
90ac_help="$ac_help
91  --enable-TRIMTAIP         - Trimble GPS receiver/TAIP protocol"
92ac_help="$ac_help
93  --enable-TRIMTSIP         - Trimble GPS receiver/TSIP protocol"
94ac_help="$ac_help
95  --enable-kmem            s read /dev/kmem for tick and/or tickadj"
96ac_help="$ac_help
97  --enable-accurate-adjtime s the adjtime() call is accurate"
98ac_help="$ac_help
99  --enable-tick=VALUE      s force a value for 'tick'"
100ac_help="$ac_help
101  --enable-tickadj=VALUE   s force a value for 'tickadj'"
102ac_help="$ac_help
103  --enable-udp-wildcard    s use UDP wildcard delivery"
104ac_help="$ac_help
105  --enable-slew-always     s always slew the time"
106ac_help="$ac_help
107  --enable-step-slew       s step and slew the time"
108ac_help="$ac_help
109  --enable-ntpdate-step    s if ntpdate should step the time"
110ac_help="$ac_help
111  --enable-hourly-todr-sync s if we should sync TODR hourly"
112
113# Initialize some variables set by options.
114# The variables have the same names as the options, with
115# dashes changed to underlines.
116build=NONE
117cache_file=./config.cache
118exec_prefix=NONE
119host=NONE
120no_create=
121nonopt=NONE
122no_recursion=
123prefix=NONE
124program_prefix=NONE
125program_suffix=NONE
126program_transform_name=s,x,x,
127silent=
128site=
129srcdir=
130target=NONE
131verbose=
132x_includes=NONE
133x_libraries=NONE
134bindir='${exec_prefix}/bin'
135sbindir='${exec_prefix}/sbin'
136libexecdir='${exec_prefix}/libexec'
137datadir='${prefix}/share'
138sysconfdir='${prefix}/etc'
139sharedstatedir='${prefix}/com'
140localstatedir='${prefix}/var'
141libdir='${exec_prefix}/lib'
142includedir='${prefix}/include'
143oldincludedir='/usr/include'
144infodir='${prefix}/info'
145mandir='${prefix}/man'
146
147# Initialize some other variables.
148subdirs=
149MFLAGS= MAKEFLAGS=
150# Maximum number of lines to put in a shell here document.
151ac_max_here_lines=12
152
153ac_prev=
154for ac_option
155do
156
157  # If the previous option needs an argument, assign it.
158  if test -n "$ac_prev"; then
159    eval "$ac_prev=\$ac_option"
160    ac_prev=
161    continue
162  fi
163
164  case "$ac_option" in
165  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
166  *) ac_optarg= ;;
167  esac
168
169  # Accept the important Cygnus configure options, so we can diagnose typos.
170
171  case "$ac_option" in
172
173  -bindir | --bindir | --bindi | --bind | --bin | --bi)
174    ac_prev=bindir ;;
175  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
176    bindir="$ac_optarg" ;;
177
178  -build | --build | --buil | --bui | --bu)
179    ac_prev=build ;;
180  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
181    build="$ac_optarg" ;;
182
183  -cache-file | --cache-file | --cache-fil | --cache-fi \
184  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
185    ac_prev=cache_file ;;
186  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
187  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
188    cache_file="$ac_optarg" ;;
189
190  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
191    ac_prev=datadir ;;
192  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
193  | --da=*)
194    datadir="$ac_optarg" ;;
195
196  -disable-* | --disable-*)
197    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
198    # Reject names that are not valid shell variable names.
199    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
200      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
201    fi
202    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
203    eval "enable_${ac_feature}=no" ;;
204
205  -enable-* | --enable-*)
206    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
207    # Reject names that are not valid shell variable names.
208    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
209      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
210    fi
211    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
212    case "$ac_option" in
213      *=*) ;;
214      *) ac_optarg=yes ;;
215    esac
216    eval "enable_${ac_feature}='$ac_optarg'" ;;
217
218  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
219  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
220  | --exec | --exe | --ex)
221    ac_prev=exec_prefix ;;
222  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
223  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
224  | --exec=* | --exe=* | --ex=*)
225    exec_prefix="$ac_optarg" ;;
226
227  -gas | --gas | --ga | --g)
228    # Obsolete; use --with-gas.
229    with_gas=yes ;;
230
231  -help | --help | --hel | --he)
232    # Omit some internal or obsolete options to make the list less imposing.
233    # This message is too long to be a string in the A/UX 3.1 sh.
234    cat << EOF
235Usage: configure [options] [host]
236Options: [defaults in brackets after descriptions]
237Configuration:
238  --cache-file=FILE       cache test results in FILE
239  --help                  print this message
240  --no-create             do not create output files
241  --quiet, --silent       do not print \`checking...' messages
242  --version               print the version of autoconf that created configure
243Directory and file names:
244  --prefix=PREFIX         install architecture-independent files in PREFIX
245                          [$ac_default_prefix]
246  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
247                          [same as prefix]
248  --bindir=DIR            user executables in DIR [EPREFIX/bin]
249  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
250  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
251  --datadir=DIR           read-only architecture-independent data in DIR
252                          [PREFIX/share]
253  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
254  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
255                          [PREFIX/com]
256  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
257  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
258  --includedir=DIR        C header files in DIR [PREFIX/include]
259  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
260  --infodir=DIR           info documentation in DIR [PREFIX/info]
261  --mandir=DIR            man documentation in DIR [PREFIX/man]
262  --srcdir=DIR            find the sources in DIR [configure dir or ..]
263  --program-prefix=PREFIX prepend PREFIX to installed program names
264  --program-suffix=SUFFIX append SUFFIX to installed program names
265  --program-transform-name=PROGRAM
266                          run sed PROGRAM on installed program names
267EOF
268    cat << EOF
269Host type:
270  --build=BUILD           configure for building on BUILD [BUILD=HOST]
271  --host=HOST             configure for HOST [guessed]
272  --target=TARGET         configure for TARGET [TARGET=HOST]
273Features and packages:
274  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
275  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
276  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
277  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
278  --x-includes=DIR        X include files are in DIR
279  --x-libraries=DIR       X library files are in DIR
280EOF
281    if test -n "$ac_help"; then
282      echo "--enable and --with options recognized:$ac_help"
283    fi
284    exit 0 ;;
285
286  -host | --host | --hos | --ho)
287    ac_prev=host ;;
288  -host=* | --host=* | --hos=* | --ho=*)
289    host="$ac_optarg" ;;
290
291  -includedir | --includedir | --includedi | --included | --include \
292  | --includ | --inclu | --incl | --inc)
293    ac_prev=includedir ;;
294  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
295  | --includ=* | --inclu=* | --incl=* | --inc=*)
296    includedir="$ac_optarg" ;;
297
298  -infodir | --infodir | --infodi | --infod | --info | --inf)
299    ac_prev=infodir ;;
300  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
301    infodir="$ac_optarg" ;;
302
303  -libdir | --libdir | --libdi | --libd)
304    ac_prev=libdir ;;
305  -libdir=* | --libdir=* | --libdi=* | --libd=*)
306    libdir="$ac_optarg" ;;
307
308  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
309  | --libexe | --libex | --libe)
310    ac_prev=libexecdir ;;
311  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
312  | --libexe=* | --libex=* | --libe=*)
313    libexecdir="$ac_optarg" ;;
314
315  -localstatedir | --localstatedir | --localstatedi | --localstated \
316  | --localstate | --localstat | --localsta | --localst \
317  | --locals | --local | --loca | --loc | --lo)
318    ac_prev=localstatedir ;;
319  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
320  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
321  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
322    localstatedir="$ac_optarg" ;;
323
324  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
325    ac_prev=mandir ;;
326  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
327    mandir="$ac_optarg" ;;
328
329  -nfp | --nfp | --nf)
330    # Obsolete; use --without-fp.
331    with_fp=no ;;
332
333  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
334  | --no-cr | --no-c)
335    no_create=yes ;;
336
337  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
338  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
339    no_recursion=yes ;;
340
341  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
342  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
343  | --oldin | --oldi | --old | --ol | --o)
344    ac_prev=oldincludedir ;;
345  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
346  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
347  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
348    oldincludedir="$ac_optarg" ;;
349
350  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
351    ac_prev=prefix ;;
352  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
353    prefix="$ac_optarg" ;;
354
355  -program-prefix | --program-prefix | --program-prefi | --program-pref \
356  | --program-pre | --program-pr | --program-p)
357    ac_prev=program_prefix ;;
358  -program-prefix=* | --program-prefix=* | --program-prefi=* \
359  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
360    program_prefix="$ac_optarg" ;;
361
362  -program-suffix | --program-suffix | --program-suffi | --program-suff \
363  | --program-suf | --program-su | --program-s)
364    ac_prev=program_suffix ;;
365  -program-suffix=* | --program-suffix=* | --program-suffi=* \
366  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
367    program_suffix="$ac_optarg" ;;
368
369  -program-transform-name | --program-transform-name \
370  | --program-transform-nam | --program-transform-na \
371  | --program-transform-n | --program-transform- \
372  | --program-transform | --program-transfor \
373  | --program-transfo | --program-transf \
374  | --program-trans | --program-tran \
375  | --progr-tra | --program-tr | --program-t)
376    ac_prev=program_transform_name ;;
377  -program-transform-name=* | --program-transform-name=* \
378  | --program-transform-nam=* | --program-transform-na=* \
379  | --program-transform-n=* | --program-transform-=* \
380  | --program-transform=* | --program-transfor=* \
381  | --program-transfo=* | --program-transf=* \
382  | --program-trans=* | --program-tran=* \
383  | --progr-tra=* | --program-tr=* | --program-t=*)
384    program_transform_name="$ac_optarg" ;;
385
386  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
387  | -silent | --silent | --silen | --sile | --sil)
388    silent=yes ;;
389
390  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
391    ac_prev=sbindir ;;
392  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
393  | --sbi=* | --sb=*)
394    sbindir="$ac_optarg" ;;
395
396  -sharedstatedir | --sharedstatedir | --sharedstatedi \
397  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
398  | --sharedst | --shareds | --shared | --share | --shar \
399  | --sha | --sh)
400    ac_prev=sharedstatedir ;;
401  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
402  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
403  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
404  | --sha=* | --sh=*)
405    sharedstatedir="$ac_optarg" ;;
406
407  -site | --site | --sit)
408    ac_prev=site ;;
409  -site=* | --site=* | --sit=*)
410    site="$ac_optarg" ;;
411
412  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
413    ac_prev=srcdir ;;
414  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
415    srcdir="$ac_optarg" ;;
416
417  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
418  | --syscon | --sysco | --sysc | --sys | --sy)
419    ac_prev=sysconfdir ;;
420  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
421  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
422    sysconfdir="$ac_optarg" ;;
423
424  -target | --target | --targe | --targ | --tar | --ta | --t)
425    ac_prev=target ;;
426  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
427    target="$ac_optarg" ;;
428
429  -v | -verbose | --verbose | --verbos | --verbo | --verb)
430    verbose=yes ;;
431
432  -version | --version | --versio | --versi | --vers)
433    echo "configure generated by autoconf version 2.12"
434    exit 0 ;;
435
436  -with-* | --with-*)
437    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
438    # Reject names that are not valid shell variable names.
439    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
440      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
441    fi
442    ac_package=`echo $ac_package| sed 's/-/_/g'`
443    case "$ac_option" in
444      *=*) ;;
445      *) ac_optarg=yes ;;
446    esac
447    eval "with_${ac_package}='$ac_optarg'" ;;
448
449  -without-* | --without-*)
450    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
451    # Reject names that are not valid shell variable names.
452    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
453      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
454    fi
455    ac_package=`echo $ac_package| sed 's/-/_/g'`
456    eval "with_${ac_package}=no" ;;
457
458  --x)
459    # Obsolete; use --with-x.
460    with_x=yes ;;
461
462  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
463  | --x-incl | --x-inc | --x-in | --x-i)
464    ac_prev=x_includes ;;
465  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
466  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
467    x_includes="$ac_optarg" ;;
468
469  -x-libraries | --x-libraries | --x-librarie | --x-librari \
470  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
471    ac_prev=x_libraries ;;
472  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
473  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
474    x_libraries="$ac_optarg" ;;
475
476  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
477    ;;
478
479  *)
480    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
481      echo "configure: warning: $ac_option: invalid host type" 1>&2
482    fi
483    if test "x$nonopt" != xNONE; then
484      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
485    fi
486    nonopt="$ac_option"
487    ;;
488
489  esac
490done
491
492if test -n "$ac_prev"; then
493  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
494fi
495
496trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
497
498# File descriptor usage:
499# 0 standard input
500# 1 file creation
501# 2 errors and warnings
502# 3 some systems may open it to /dev/tty
503# 4 used on the Kubota Titan
504# 6 checking for... messages and results
505# 5 compiler messages saved in config.log
506if test "$silent" = yes; then
507  exec 6>/dev/null
508else
509  exec 6>&1
510fi
511exec 5>./config.log
512
513echo "\
514This file contains any messages produced by compilers while
515running configure, to aid debugging if configure makes a mistake.
516" 1>&5
517
518# Strip out --no-create and --no-recursion so they do not pile up.
519# Also quote any args containing shell metacharacters.
520ac_configure_args=
521for ac_arg
522do
523  case "$ac_arg" in
524  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
525  | --no-cr | --no-c) ;;
526  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
527  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
528  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
529  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
530  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
531  esac
532done
533
534# NLS nuisances.
535# Only set these to C if already set.  These must not be set unconditionally
536# because not all systems understand e.g. LANG=C (notably SCO).
537# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
538# Non-C LC_CTYPE values break the ctype check.
539if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
540if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
541if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
542if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
543
544# confdefs.h avoids OS command line length limits that DEFS can exceed.
545rm -rf conftest* confdefs.h
546# AIX cpp loses on an empty file, so make sure it contains at least a newline.
547echo > confdefs.h
548
549# A filename unique to this package, relative to the directory that
550# configure is in, which we can look for to find out if srcdir is correct.
551ac_unique_file=xntpd/ntp_refclock.c
552
553# Find the source files, if location was not specified.
554if test -z "$srcdir"; then
555  ac_srcdir_defaulted=yes
556  # Try the directory containing this script, then its parent.
557  ac_prog=$0
558  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
559  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
560  srcdir=$ac_confdir
561  if test ! -r $srcdir/$ac_unique_file; then
562    srcdir=..
563  fi
564else
565  ac_srcdir_defaulted=no
566fi
567if test ! -r $srcdir/$ac_unique_file; then
568  if test "$ac_srcdir_defaulted" = yes; then
569    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
570  else
571    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
572  fi
573fi
574srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
575
576# Prefer explicitly selected file to automatically selected ones.
577if test -z "$CONFIG_SITE"; then
578  if test "x$prefix" != xNONE; then
579    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
580  else
581    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
582  fi
583fi
584for ac_site_file in $CONFIG_SITE; do
585  if test -r "$ac_site_file"; then
586    echo "loading site script $ac_site_file"
587    . "$ac_site_file"
588  fi
589done
590
591if test -r "$cache_file"; then
592  echo "loading cache $cache_file"
593  . $cache_file
594else
595  echo "creating cache $cache_file"
596  > $cache_file
597fi
598
599ac_ext=c
600# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
601ac_cpp='$CPP $CPPFLAGS'
602ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
603ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
604cross_compiling=$ac_cv_prog_cc_cross
605
606if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
607  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
608  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
609    ac_n= ac_c='
610' ac_t='        '
611  else
612    ac_n=-n ac_c= ac_t=
613  fi
614else
615  ac_n= ac_c='\c' ac_t=
616fi
617
618
619ac_aux_dir=
620for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
621  if test -f $ac_dir/install-sh; then
622    ac_aux_dir=$ac_dir
623    ac_install_sh="$ac_aux_dir/install-sh -c"
624    break
625  elif test -f $ac_dir/install.sh; then
626    ac_aux_dir=$ac_dir
627    ac_install_sh="$ac_aux_dir/install.sh -c"
628    break
629  fi
630done
631if test -z "$ac_aux_dir"; then
632  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
633fi
634ac_config_guess=$ac_aux_dir/config.guess
635ac_config_sub=$ac_aux_dir/config.sub
636ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
637
638# Find a good install program.  We prefer a C program (faster),
639# so one script is as good as another.  But avoid the broken or
640# incompatible versions:
641# SysV /etc/install, /usr/sbin/install
642# SunOS /usr/etc/install
643# IRIX /sbin/install
644# AIX /bin/install
645# AFS /usr/afsws/bin/install, which mishandles nonexistent args
646# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
647# ./install, which can be erroneously created by make from ./install.sh.
648echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
649echo "configure:650: checking for a BSD compatible install" >&5
650if test -z "$INSTALL"; then
651if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
652  echo $ac_n "(cached) $ac_c" 1>&6
653else
654    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
655  for ac_dir in $PATH; do
656    # Account for people who put trailing slashes in PATH elements.
657    case "$ac_dir/" in
658    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
659    *)
660      # OSF1 and SCO ODT 3.0 have their own names for install.
661      for ac_prog in ginstall installbsd scoinst install; do
662        if test -f $ac_dir/$ac_prog; then
663          if test $ac_prog = install &&
664            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
665            # AIX install.  It has an incompatible calling convention.
666            # OSF/1 installbsd also uses dspmsg, but is usable.
667            :
668          else
669            ac_cv_path_install="$ac_dir/$ac_prog -c"
670            break 2
671          fi
672        fi
673      done
674      ;;
675    esac
676  done
677  IFS="$ac_save_IFS"
678
679fi
680  if test "${ac_cv_path_install+set}" = set; then
681    INSTALL="$ac_cv_path_install"
682  else
683    # As a last resort, use the slow shell script.  We don't cache a
684    # path for INSTALL within a source directory, because that will
685    # break other packages using the cache if that directory is
686    # removed, or if the path is relative.
687    INSTALL="$ac_install_sh"
688  fi
689fi
690echo "$ac_t""$INSTALL" 1>&6
691
692# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
693# It thinks the first close brace ends the variable substitution.
694test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
695
696test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
697
698
699test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
700
701
702PACKAGE=xntp3
703
704VERSION=5.91
705
706if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
707  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
708fi
709cat >> confdefs.h <<EOF
710#define PACKAGE "$PACKAGE"
711EOF
712
713cat >> confdefs.h <<EOF
714#define VERSION "$VERSION"
715EOF
716
717echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
718echo "configure:719: checking whether build environment is sane" >&5
719# Just in case
720sleep 1
721echo timestamp > conftestfile
722# Do `set' in a subshell so we don't clobber the current shell's
723# arguments.  Must try -L first in case configure is actually a
724# symlink; some systems play weird games with the mod time of symlinks
725# (eg FreeBSD returns the mod time of the symlink's containing
726# directory).
727if (
728   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
729   if test "" = "X"; then
730      # -L didn't work.
731      set X `ls -t $srcdir/configure conftestfile`
732   fi
733   test "$2" = conftestfile
734   )
735then
736   # Ok.
737   :
738else
739   { echo "configure: error: newly created file is older than distributed files!
740Check your system clock" 1>&2; exit 1; }
741fi
742rm -f conftest*
743echo "$ac_t""yes" 1>&6
744if test "$program_transform_name" = s,x,x,; then
745  program_transform_name=
746else
747  # Double any \ or $.  echo might interpret backslashes.
748  cat <<\EOF_SED > conftestsed
749s,\\,\\\\,g; s,\$,$$,g
750EOF_SED
751  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
752  rm -f conftestsed
753fi
754test "$program_prefix" != NONE &&
755  program_transform_name="s,^,${program_prefix},; $program_transform_name"
756# Use a double $ so make ignores it.
757test "$program_suffix" != NONE &&
758  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
759
760# sed with no file args requires a program.
761test "$program_transform_name" = "" && program_transform_name="s,x,x,"
762
763missing_dir=`cd $ac_aux_dir && pwd`
764echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
765echo "configure:766: checking for working aclocal" >&5
766# Run test in a subshell; some versions of sh will print an error if
767# an executable is not found, even if stderr is redirected.
768# Redirect stdin to placate older versions of autoconf.  Sigh.
769if (aclocal --version) < /dev/null > /dev/null 2>&1; then
770   ACLOCAL=aclocal
771   echo "$ac_t""found" 1>&6
772else
773   ACLOCAL="$missing_dir/missing aclocal"
774   echo "$ac_t""missing" 1>&6
775fi
776
777echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
778echo "configure:779: checking for working autoconf" >&5
779# Run test in a subshell; some versions of sh will print an error if
780# an executable is not found, even if stderr is redirected.
781# Redirect stdin to placate older versions of autoconf.  Sigh.
782if (autoconf --version) < /dev/null > /dev/null 2>&1; then
783   AUTOCONF=autoconf
784   echo "$ac_t""found" 1>&6
785else
786   AUTOCONF="$missing_dir/missing autoconf"
787   echo "$ac_t""missing" 1>&6
788fi
789
790echo $ac_n "checking for working automake""... $ac_c" 1>&6
791echo "configure:792: checking for working automake" >&5
792# Run test in a subshell; some versions of sh will print an error if
793# an executable is not found, even if stderr is redirected.
794# Redirect stdin to placate older versions of autoconf.  Sigh.
795if (automake --version) < /dev/null > /dev/null 2>&1; then
796   AUTOMAKE=automake
797   echo "$ac_t""found" 1>&6
798else
799   AUTOMAKE="$missing_dir/missing automake"
800   echo "$ac_t""missing" 1>&6
801fi
802
803echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
804echo "configure:805: checking for working autoheader" >&5
805# Run test in a subshell; some versions of sh will print an error if
806# an executable is not found, even if stderr is redirected.
807# Redirect stdin to placate older versions of autoconf.  Sigh.
808if (autoheader --version) < /dev/null > /dev/null 2>&1; then
809   AUTOHEADER=autoheader
810   echo "$ac_t""found" 1>&6
811else
812   AUTOHEADER="$missing_dir/missing autoheader"
813   echo "$ac_t""missing" 1>&6
814fi
815
816echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
817echo "configure:818: checking for working makeinfo" >&5
818# Run test in a subshell; some versions of sh will print an error if
819# an executable is not found, even if stderr is redirected.
820# Redirect stdin to placate older versions of autoconf.  Sigh.
821if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
822   MAKEINFO=makeinfo
823   echo "$ac_t""found" 1>&6
824else
825   MAKEINFO="$missing_dir/missing makeinfo"
826   echo "$ac_t""missing" 1>&6
827fi
828
829echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
830echo "configure:831: checking whether ${MAKE-make} sets \${MAKE}" >&5
831set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
832if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
833  echo $ac_n "(cached) $ac_c" 1>&6
834else
835  cat > conftestmake <<\EOF
836all:
837        @echo 'ac_maketemp="${MAKE}"'
838EOF
839# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
840eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
841if test -n "$ac_maketemp"; then
842  eval ac_cv_prog_make_${ac_make}_set=yes
843else
844  eval ac_cv_prog_make_${ac_make}_set=no
845fi
846rm -f conftestmake
847fi
848if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
849  echo "$ac_t""yes" 1>&6
850  SET_MAKE=
851else
852  echo "$ac_t""no" 1>&6
853  SET_MAKE="MAKE=${MAKE-make}"
854fi
855
856
857# Do some error checking and defaulting for the host and target type.
858# The inputs are:
859#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
860#
861# The rules are:
862# 1. You are not allowed to specify --host, --target, and nonopt at the
863#    same time.
864# 2. Host defaults to nonopt.
865# 3. If nonopt is not specified, then host defaults to the current host,
866#    as determined by config.guess.
867# 4. Target and build default to nonopt.
868# 5. If nonopt is not specified, then target and build default to host.
869
870# The aliases save the names the user supplied, while $host etc.
871# will get canonicalized.
872case $host---$target---$nonopt in
873NONE---*---* | *---NONE---* | *---*---NONE) ;;
874*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
875esac
876
877
878# Make sure we can run config.sub.
879if $ac_config_sub sun4 >/dev/null 2>&1; then :
880else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
881fi
882
883echo $ac_n "checking host system type""... $ac_c" 1>&6
884echo "configure:885: checking host system type" >&5
885
886host_alias=$host
887case "$host_alias" in
888NONE)
889  case $nonopt in
890  NONE)
891    if host_alias=`$ac_config_guess`; then :
892    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
893    fi ;;
894  *) host_alias=$nonopt ;;
895  esac ;;
896esac
897
898host=`$ac_config_sub $host_alias`
899host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
900host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
901host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
902echo "$ac_t""$host" 1>&6
903
904echo $ac_n "checking target system type""... $ac_c" 1>&6
905echo "configure:906: checking target system type" >&5
906
907target_alias=$target
908case "$target_alias" in
909NONE)
910  case $nonopt in
911  NONE) target_alias=$host_alias ;;
912  *) target_alias=$nonopt ;;
913  esac ;;
914esac
915
916target=`$ac_config_sub $target_alias`
917target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
918target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
919target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
920echo "$ac_t""$target" 1>&6
921
922echo $ac_n "checking build system type""... $ac_c" 1>&6
923echo "configure:924: checking build system type" >&5
924
925build_alias=$build
926case "$build_alias" in
927NONE)
928  case $nonopt in
929  NONE) build_alias=$host_alias ;;
930  *) build_alias=$nonopt ;;
931  esac ;;
932esac
933
934build=`$ac_config_sub $build_alias`
935build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
936build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
937build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
938echo "$ac_t""$build" 1>&6
939
940test "$host_alias" != "$target_alias" &&
941  test "$program_prefix$program_suffix$program_transform_name" = \
942    NONENONEs,x,x, &&
943  program_prefix=${target_alias}-
944
945cat >> confdefs.h <<EOF
946#define STR_SYSTEM "$target"
947EOF
948
949
950
951
952if test "$program_transform_name" = s,x,x,; then
953  program_transform_name=
954else
955  # Double any \ or $.  echo might interpret backslashes.
956  cat <<\EOF_SED > conftestsed
957s,\\,\\\\,g; s,\$,$$,g
958EOF_SED
959  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
960  rm -f conftestsed
961fi
962test "$program_prefix" != NONE &&
963  program_transform_name="s,^,${program_prefix},; $program_transform_name"
964# Use a double $ so make ignores it.
965test "$program_suffix" != NONE &&
966  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
967
968# sed with no file args requires a program.
969test "$program_transform_name" = "" && program_transform_name="s,x,x,"
970
971
972# Extract the first word of "gcc", so it can be a program name with args.
973set dummy gcc; ac_word=$2
974echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
975echo "configure:976: checking for $ac_word" >&5
976if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
977  echo $ac_n "(cached) $ac_c" 1>&6
978else
979  if test -n "$CC"; then
980  ac_cv_prog_CC="$CC" # Let the user override the test.
981else
982  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
983  for ac_dir in $PATH; do
984    test -z "$ac_dir" && ac_dir=.
985    if test -f $ac_dir/$ac_word; then
986      ac_cv_prog_CC="gcc"
987      break
988    fi
989  done
990  IFS="$ac_save_ifs"
991fi
992fi
993CC="$ac_cv_prog_CC"
994if test -n "$CC"; then
995  echo "$ac_t""$CC" 1>&6
996else
997  echo "$ac_t""no" 1>&6
998fi
999
1000if test -z "$CC"; then
1001  # Extract the first word of "cc", so it can be a program name with args.
1002set dummy cc; ac_word=$2
1003echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1004echo "configure:1005: checking for $ac_word" >&5
1005if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1006  echo $ac_n "(cached) $ac_c" 1>&6
1007else
1008  if test -n "$CC"; then
1009  ac_cv_prog_CC="$CC" # Let the user override the test.
1010else
1011  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1012  ac_prog_rejected=no
1013  for ac_dir in $PATH; do
1014    test -z "$ac_dir" && ac_dir=.
1015    if test -f $ac_dir/$ac_word; then
1016      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1017        ac_prog_rejected=yes
1018        continue
1019      fi
1020      ac_cv_prog_CC="cc"
1021      break
1022    fi
1023  done
1024  IFS="$ac_save_ifs"
1025if test $ac_prog_rejected = yes; then
1026  # We found a bogon in the path, so make sure we never use it.
1027  set dummy $ac_cv_prog_CC
1028  shift
1029  if test $# -gt 0; then
1030    # We chose a different compiler from the bogus one.
1031    # However, it has the same basename, so the bogon will be chosen
1032    # first if we set CC to just the basename; use the full file name.
1033    shift
1034    set dummy "$ac_dir/$ac_word" "$@"
1035    shift
1036    ac_cv_prog_CC="$@"
1037  fi
1038fi
1039fi
1040fi
1041CC="$ac_cv_prog_CC"
1042if test -n "$CC"; then
1043  echo "$ac_t""$CC" 1>&6
1044else
1045  echo "$ac_t""no" 1>&6
1046fi
1047
1048  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1049fi
1050
1051echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1052echo "configure:1053: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1053
1054ac_ext=c
1055# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1056ac_cpp='$CPP $CPPFLAGS'
1057ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1058ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1059cross_compiling=$ac_cv_prog_cc_cross
1060
1061cat > conftest.$ac_ext <<EOF
1062#line 1063 "configure"
1063#include "confdefs.h"
1064main(){return(0);}
1065EOF
1066if { (eval echo configure:1067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1067  ac_cv_prog_cc_works=yes
1068  # If we can't run a trivial program, we are probably using a cross compiler.
1069  if (./conftest; exit) 2>/dev/null; then
1070    ac_cv_prog_cc_cross=no
1071  else
1072    ac_cv_prog_cc_cross=yes
1073  fi
1074else
1075  echo "configure: failed program was:" >&5
1076  cat conftest.$ac_ext >&5
1077  ac_cv_prog_cc_works=no
1078fi
1079rm -fr conftest*
1080
1081echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1082if test $ac_cv_prog_cc_works = no; then
1083  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1084fi
1085echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1086echo "configure:1087: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1087echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1088cross_compiling=$ac_cv_prog_cc_cross
1089
1090echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1091echo "configure:1092: checking whether we are using GNU C" >&5
1092if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1093  echo $ac_n "(cached) $ac_c" 1>&6
1094else
1095  cat > conftest.c <<EOF
1096#ifdef __GNUC__
1097  yes;
1098#endif
1099EOF
1100if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1101  ac_cv_prog_gcc=yes
1102else
1103  ac_cv_prog_gcc=no
1104fi
1105fi
1106
1107echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1108
1109if test $ac_cv_prog_gcc = yes; then
1110  GCC=yes
1111  ac_test_CFLAGS="${CFLAGS+set}"
1112  ac_save_CFLAGS="$CFLAGS"
1113  CFLAGS=
1114  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1115echo "configure:1116: checking whether ${CC-cc} accepts -g" >&5
1116if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1117  echo $ac_n "(cached) $ac_c" 1>&6
1118else
1119  echo 'void f(){}' > conftest.c
1120if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1121  ac_cv_prog_cc_g=yes
1122else
1123  ac_cv_prog_cc_g=no
1124fi
1125rm -f conftest*
1126
1127fi
1128
1129echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1130  if test "$ac_test_CFLAGS" = set; then
1131    CFLAGS="$ac_save_CFLAGS"
1132  elif test $ac_cv_prog_cc_g = yes; then
1133    CFLAGS="-g -O2"
1134  else
1135    CFLAGS="-O2"
1136  fi
1137else
1138  GCC=
1139  test "${CFLAGS+set}" = set || CFLAGS="-g"
1140fi
1141
1142echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1143echo "configure:1144: checking how to run the C preprocessor" >&5
1144# On Suns, sometimes $CPP names a directory.
1145if test -n "$CPP" && test -d "$CPP"; then
1146  CPP=
1147fi
1148if test -z "$CPP"; then
1149if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1150  echo $ac_n "(cached) $ac_c" 1>&6
1151else
1152    # This must be in double quotes, not single quotes, because CPP may get
1153  # substituted into the Makefile and "${CC-cc}" will confuse make.
1154  CPP="${CC-cc} -E"
1155  # On the NeXT, cc -E runs the code through the compiler's parser,
1156  # not just through cpp.
1157  cat > conftest.$ac_ext <<EOF
1158#line 1159 "configure"
1159#include "confdefs.h"
1160#include <assert.h>
1161Syntax Error
1162EOF
1163ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1164{ (eval echo configure:1165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1165ac_err=`grep -v '^ *+' conftest.out`
1166if test -z "$ac_err"; then
1167  :
1168else
1169  echo "$ac_err" >&5
1170  echo "configure: failed program was:" >&5
1171  cat conftest.$ac_ext >&5
1172  rm -rf conftest*
1173  CPP="${CC-cc} -E -traditional-cpp"
1174  cat > conftest.$ac_ext <<EOF
1175#line 1176 "configure"
1176#include "confdefs.h"
1177#include <assert.h>
1178Syntax Error
1179EOF
1180ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1181{ (eval echo configure:1182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1182ac_err=`grep -v '^ *+' conftest.out`
1183if test -z "$ac_err"; then
1184  :
1185else
1186  echo "$ac_err" >&5
1187  echo "configure: failed program was:" >&5
1188  cat conftest.$ac_ext >&5
1189  rm -rf conftest*
1190  CPP=/lib/cpp
1191fi
1192rm -f conftest*
1193fi
1194rm -f conftest*
1195  ac_cv_prog_CPP="$CPP"
1196fi
1197  CPP="$ac_cv_prog_CPP"
1198else
1199  ac_cv_prog_CPP="$CPP"
1200fi
1201echo "$ac_t""$CPP" 1>&6
1202
1203
1204case "$host" in
1205 $target)
1206    ;;
1207 *) case "$target" in
1208     *-*-vxworks*)
1209        # Quick and dirty sanity check
1210        case "$VX_KERNEL" in
1211         '') { echo "configure: error: Please follow the directions in html/vxworks.html!" 1>&2; exit 1; }
1212            ;;
1213        esac
1214        CFLAGS="$CFLAGS -DSYS_VXWORKS"
1215        ;;
1216    esac
1217    ;;
1218esac
1219
1220for ac_prog in mawk gawk nawk awk
1221do
1222# Extract the first word of "$ac_prog", so it can be a program name with args.
1223set dummy $ac_prog; ac_word=$2
1224echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1225echo "configure:1226: checking for $ac_word" >&5
1226if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1227  echo $ac_n "(cached) $ac_c" 1>&6
1228else
1229  if test -n "$AWK"; then
1230  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1231else
1232  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1233  for ac_dir in $PATH; do
1234    test -z "$ac_dir" && ac_dir=.
1235    if test -f $ac_dir/$ac_word; then
1236      ac_cv_prog_AWK="$ac_prog"
1237      break
1238    fi
1239  done
1240  IFS="$ac_save_ifs"
1241fi
1242fi
1243AWK="$ac_cv_prog_AWK"
1244if test -n "$AWK"; then
1245  echo "$ac_t""$AWK" 1>&6
1246else
1247  echo "$ac_t""no" 1>&6
1248fi
1249
1250test -n "$AWK" && break
1251done
1252
1253echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1254echo "configure:1255: checking whether ${MAKE-make} sets \${MAKE}" >&5
1255set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1256if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1257  echo $ac_n "(cached) $ac_c" 1>&6
1258else
1259  cat > conftestmake <<\EOF
1260all:
1261        @echo 'ac_maketemp="${MAKE}"'
1262EOF
1263# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1264eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1265if test -n "$ac_maketemp"; then
1266  eval ac_cv_prog_make_${ac_make}_set=yes
1267else
1268  eval ac_cv_prog_make_${ac_make}_set=no
1269fi
1270rm -f conftestmake
1271fi
1272if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1273  echo "$ac_t""yes" 1>&6
1274  SET_MAKE=
1275else
1276  echo "$ac_t""no" 1>&6
1277  SET_MAKE="MAKE=${MAKE-make}"
1278fi
1279
1280
1281rm -f conftest*
1282
1283case "$GCC" in
1284 yes)
1285    CFLAGS="$CFLAGS -Wall"
1286    # CFLAGS="$CFLAGS -Wtraditional"
1287    # CFLAGS="$CFLAGS -Wshadow"
1288    # CFLAGS="$CFLAGS -Wwrite-strings"
1289    # CFLAGS="$CFLAGS -Wconversion"
1290    # CFLAGS="$CFLAGS -Wpointer-arith"
1291    # CFLAGS="$CFLAGS -Wcast-qual"
1292    # CFLAGS="$CFLAGS -Wcast-align"
1293    # CFLAGS="$CFLAGS -Wstrict-prototypes"
1294
1295    echo $ac_n "checking whether ${CC-cc} accepts -pipe""... $ac_c" 1>&6
1296echo "configure:1297: checking whether ${CC-cc} accepts -pipe" >&5
1297if eval "test \"`echo '$''{'ac_cv_prog_cc_pipe'+set}'`\" = set"; then
1298  echo $ac_n "(cached) $ac_c" 1>&6
1299else
1300  echo 'void f(){}' > conftest.c
1301    if test -z "`${CC-cc} -pipe -c conftest.c 2>&1`"; then
1302      ac_cv_prog_cc_pipe=yes
1303    else
1304      ac_cv_prog_cc_pipe=no
1305    fi
1306    rm -f conftest*
1307   
1308fi
1309
1310echo "$ac_t""$ac_cv_prog_cc_pipe" 1>&6
1311
1312    case "$ac_cv_prog_cc_pipe" in
1313     yes)
1314        CFLAGS="$CFLAGS -pipe"
1315        ;;
1316    esac
1317    ;;
1318esac
1319
1320ac_busted_vpath_in_make=no
1321
1322case "$target" in
1323 *-*-irix6.1*)  # 64 bit only
1324    ;;
1325 *-*-irix6*)    # 6.2 (and later?)
1326    ac_busted_vpath_in_make=yes
1327    case "$CFLAGS" in
1328     *-n32*) ;;
1329     *-n64*) ;;
1330     *) CFLAGS="$CFLAGS -n32" ;;
1331    esac
1332    case "$LDFLAGS" in
1333     *-n32*) ;;
1334     *-n64*) ;;
1335     *) LDFLAGS="$LDFLAGS -n32" ;;
1336    esac
1337    ;;
1338esac
1339
1340case "$ac_busted_vpath_in_make$srcdir" in
1341 no*) ;;
1342 yes.) ;;
1343 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | sed -e 's/GNU Make version \(1-9.]*\).*/\1/' -e q`" in
1344     '')
1345        { echo "configure: error: building outside of the main directory requires GNU make" 1>&2; exit 1; }
1346        ;;
1347     *) ;;
1348    esac
1349    ;;
1350esac
1351
1352
1353echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1354echo "configure:1355: checking whether ln -s works" >&5
1355if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1356  echo $ac_n "(cached) $ac_c" 1>&6
1357else
1358  rm -f conftestdata
1359if ln -s X conftestdata 2>/dev/null
1360then
1361  rm -f conftestdata
1362  ac_cv_prog_LN_S="ln -s"
1363else
1364  ac_cv_prog_LN_S=ln
1365fi
1366fi
1367LN_S="$ac_cv_prog_LN_S"
1368if test "$ac_cv_prog_LN_S" = "ln -s"; then
1369  echo "$ac_t""yes" 1>&6
1370else
1371  echo "$ac_t""no" 1>&6
1372fi
1373
1374if test $ac_cv_prog_gcc = yes; then
1375    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1376echo "configure:1377: checking whether ${CC-cc} needs -traditional" >&5
1377if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1378  echo $ac_n "(cached) $ac_c" 1>&6
1379else
1380    ac_pattern="Autoconf.*'x'"
1381  cat > conftest.$ac_ext <<EOF
1382#line 1383 "configure"
1383#include "confdefs.h"
1384#include <sgtty.h>
1385Autoconf TIOCGETP
1386EOF
1387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1388  egrep "$ac_pattern" >/dev/null 2>&1; then
1389  rm -rf conftest*
1390  ac_cv_prog_gcc_traditional=yes
1391else
1392  rm -rf conftest*
1393  ac_cv_prog_gcc_traditional=no
1394fi
1395rm -f conftest*
1396
1397
1398  if test $ac_cv_prog_gcc_traditional = no; then
1399    cat > conftest.$ac_ext <<EOF
1400#line 1401 "configure"
1401#include "confdefs.h"
1402#include <termio.h>
1403Autoconf TCGETA
1404EOF
1405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1406  egrep "$ac_pattern" >/dev/null 2>&1; then
1407  rm -rf conftest*
1408  ac_cv_prog_gcc_traditional=yes
1409fi
1410rm -f conftest*
1411
1412  fi
1413fi
1414
1415echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1416  if test $ac_cv_prog_gcc_traditional = yes; then
1417    CC="$CC -traditional"
1418  fi
1419fi
1420
1421echo $ac_n "checking for AIX""... $ac_c" 1>&6
1422echo "configure:1423: checking for AIX" >&5
1423cat > conftest.$ac_ext <<EOF
1424#line 1425 "configure"
1425#include "confdefs.h"
1426#ifdef _AIX
1427  yes
1428#endif
1429
1430EOF
1431if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1432  egrep "yes" >/dev/null 2>&1; then
1433  rm -rf conftest*
1434  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1435#define _ALL_SOURCE 1
1436EOF
1437
1438else
1439  rm -rf conftest*
1440  echo "$ac_t""no" 1>&6
1441fi
1442rm -f conftest*
1443
1444
1445ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1446echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1447echo "configure:1448: checking for minix/config.h" >&5
1448if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1449  echo $ac_n "(cached) $ac_c" 1>&6
1450else
1451  cat > conftest.$ac_ext <<EOF
1452#line 1453 "configure"
1453#include "confdefs.h"
1454#include <minix/config.h>
1455EOF
1456ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1457{ (eval echo configure:1458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1458ac_err=`grep -v '^ *+' conftest.out`
1459if test -z "$ac_err"; then
1460  rm -rf conftest*
1461  eval "ac_cv_header_$ac_safe=yes"
1462else
1463  echo "$ac_err" >&5
1464  echo "configure: failed program was:" >&5
1465  cat conftest.$ac_ext >&5
1466  rm -rf conftest*
1467  eval "ac_cv_header_$ac_safe=no"
1468fi
1469rm -f conftest*
1470fi
1471if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1472  echo "$ac_t""yes" 1>&6
1473  MINIX=yes
1474else
1475  echo "$ac_t""no" 1>&6
1476MINIX=
1477fi
1478
1479if test "$MINIX" = yes; then
1480  cat >> confdefs.h <<\EOF
1481#define _POSIX_SOURCE 1
1482EOF
1483
1484  cat >> confdefs.h <<\EOF
1485#define _POSIX_1_SOURCE 2
1486EOF
1487
1488  cat >> confdefs.h <<\EOF
1489#define _MINIX 1
1490EOF
1491
1492fi
1493
1494echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1495echo "configure:1496: checking for POSIXized ISC" >&5
1496if test -d /etc/conf/kconfig.d &&
1497  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1498then
1499  echo "$ac_t""yes" 1>&6
1500  ISC=yes # If later tests want to check for ISC.
1501  cat >> confdefs.h <<\EOF
1502#define _POSIX_SOURCE 1
1503EOF
1504
1505  if test "$GCC" = yes; then
1506    CC="$CC -posix"
1507  else
1508    CC="$CC -Xp"
1509  fi
1510else
1511  echo "$ac_t""no" 1>&6
1512  ISC=
1513fi
1514
1515# Extract the first word of "ranlib", so it can be a program name with args.
1516set dummy ranlib; ac_word=$2
1517echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1518echo "configure:1519: checking for $ac_word" >&5
1519if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1520  echo $ac_n "(cached) $ac_c" 1>&6
1521else
1522  if test -n "$RANLIB"; then
1523  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1524else
1525  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1526  for ac_dir in $PATH; do
1527    test -z "$ac_dir" && ac_dir=.
1528    if test -f $ac_dir/$ac_word; then
1529      ac_cv_prog_RANLIB="ranlib"
1530      break
1531    fi
1532  done
1533  IFS="$ac_save_ifs"
1534  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1535fi
1536fi
1537RANLIB="$ac_cv_prog_RANLIB"
1538if test -n "$RANLIB"; then
1539  echo "$ac_t""$RANLIB" 1>&6
1540else
1541  echo "$ac_t""no" 1>&6
1542fi
1543
1544
1545case "$target" in
1546 *-*-vxworks*)
1547    ac_link="$ac_link $VX_KERNEL"
1548    ;;
1549esac
1550
1551# Find a good install program.  We prefer a C program (faster),
1552# so one script is as good as another.  But avoid the broken or
1553# incompatible versions:
1554# SysV /etc/install, /usr/sbin/install
1555# SunOS /usr/etc/install
1556# IRIX /sbin/install
1557# AIX /bin/install
1558# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1559# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1560# ./install, which can be erroneously created by make from ./install.sh.
1561echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1562echo "configure:1563: checking for a BSD compatible install" >&5
1563if test -z "$INSTALL"; then
1564if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1565  echo $ac_n "(cached) $ac_c" 1>&6
1566else
1567    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1568  for ac_dir in $PATH; do
1569    # Account for people who put trailing slashes in PATH elements.
1570    case "$ac_dir/" in
1571    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1572    *)
1573      # OSF1 and SCO ODT 3.0 have their own names for install.
1574      for ac_prog in ginstall installbsd scoinst install; do
1575        if test -f $ac_dir/$ac_prog; then
1576          if test $ac_prog = install &&
1577            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1578            # AIX install.  It has an incompatible calling convention.
1579            # OSF/1 installbsd also uses dspmsg, but is usable.
1580            :
1581          else
1582            ac_cv_path_install="$ac_dir/$ac_prog -c"
1583            break 2
1584          fi
1585        fi
1586      done
1587      ;;
1588    esac
1589  done
1590  IFS="$ac_save_IFS"
1591
1592fi
1593  if test "${ac_cv_path_install+set}" = set; then
1594    INSTALL="$ac_cv_path_install"
1595  else
1596    # As a last resort, use the slow shell script.  We don't cache a
1597    # path for INSTALL within a source directory, because that will
1598    # break other packages using the cache if that directory is
1599    # removed, or if the path is relative.
1600    INSTALL="$ac_install_sh"
1601  fi
1602fi
1603echo "$ac_t""$INSTALL" 1>&6
1604
1605# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1606# It thinks the first close brace ends the variable substitution.
1607test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1608
1609test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1610
1611
1612check_libnsl=yes
1613check_libsocket=yes
1614case "$target" in
1615 *-*-irix[56]*)
1616    check_libnsl=no
1617    check_libsocket=no
1618    ;;
1619esac
1620
1621check_libgen=no
1622case "$target" in
1623 *-univel-sysv4.2*)
1624    check_libgen=yes
1625    ;;
1626esac
1627
1628echo $ac_n "checking for nlist in -lelf""... $ac_c" 1>&6
1629echo "configure:1630: checking for nlist in -lelf" >&5
1630ac_lib_var=`echo elf'_'nlist | sed 'y%./+-%__p_%'`
1631if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1632  echo $ac_n "(cached) $ac_c" 1>&6
1633else
1634  ac_save_LIBS="$LIBS"
1635LIBS="-lelf  $LIBS"
1636cat > conftest.$ac_ext <<EOF
1637#line 1638 "configure"
1638#include "confdefs.h"
1639/* Override any gcc2 internal prototype to avoid an error.  */
1640/* We use char because int might match the return type of a gcc2
1641    builtin and then its argument prototype would still apply.  */
1642char nlist();
1643
1644int main() {
1645nlist()
1646; return 0; }
1647EOF
1648if { (eval echo configure:1649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1649  rm -rf conftest*
1650  eval "ac_cv_lib_$ac_lib_var=yes"
1651else
1652  echo "configure: failed program was:" >&5
1653  cat conftest.$ac_ext >&5
1654  rm -rf conftest*
1655  eval "ac_cv_lib_$ac_lib_var=no"
1656fi
1657rm -f conftest*
1658LIBS="$ac_save_LIBS"
1659
1660fi
1661if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1662  echo "$ac_t""yes" 1>&6
1663    ac_tr_lib=HAVE_LIB`echo elf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1664    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1665  cat >> confdefs.h <<EOF
1666#define $ac_tr_lib 1
1667EOF
1668
1669  LIBS="-lelf $LIBS"
1670
1671else
1672  echo "$ac_t""no" 1>&6
1673fi
1674
1675case "$check_libgen" in
1676 yes)
1677    echo $ac_n "checking for openlog in -lgen""... $ac_c" 1>&6
1678echo "configure:1679: checking for openlog in -lgen" >&5
1679ac_lib_var=`echo gen'_'openlog | sed 'y%./+-%__p_%'`
1680if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1681  echo $ac_n "(cached) $ac_c" 1>&6
1682else
1683  ac_save_LIBS="$LIBS"
1684LIBS="-lgen  $LIBS"
1685cat > conftest.$ac_ext <<EOF
1686#line 1687 "configure"
1687#include "confdefs.h"
1688/* Override any gcc2 internal prototype to avoid an error.  */
1689/* We use char because int might match the return type of a gcc2
1690    builtin and then its argument prototype would still apply.  */
1691char openlog();
1692
1693int main() {
1694openlog()
1695; return 0; }
1696EOF
1697if { (eval echo configure:1698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1698  rm -rf conftest*
1699  eval "ac_cv_lib_$ac_lib_var=yes"
1700else
1701  echo "configure: failed program was:" >&5
1702  cat conftest.$ac_ext >&5
1703  rm -rf conftest*
1704  eval "ac_cv_lib_$ac_lib_var=no"
1705fi
1706rm -f conftest*
1707LIBS="$ac_save_LIBS"
1708
1709fi
1710if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1711  echo "$ac_t""yes" 1>&6
1712    ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1713    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1714  cat >> confdefs.h <<EOF
1715#define $ac_tr_lib 1
1716EOF
1717
1718  LIBS="-lgen $LIBS"
1719
1720else
1721  echo "$ac_t""no" 1>&6
1722fi
1723
1724    ;;
1725esac
1726echo $ac_n "checking for main in -lkvm""... $ac_c" 1>&6
1727echo "configure:1728: checking for main in -lkvm" >&5
1728ac_lib_var=`echo kvm'_'main | sed 'y%./+-%__p_%'`
1729if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1730  echo $ac_n "(cached) $ac_c" 1>&6
1731else
1732  ac_save_LIBS="$LIBS"
1733LIBS="-lkvm  $LIBS"
1734cat > conftest.$ac_ext <<EOF
1735#line 1736 "configure"
1736#include "confdefs.h"
1737
1738int main() {
1739main()
1740; return 0; }
1741EOF
1742if { (eval echo configure:1743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1743  rm -rf conftest*
1744  eval "ac_cv_lib_$ac_lib_var=yes"
1745else
1746  echo "configure: failed program was:" >&5
1747  cat conftest.$ac_ext >&5
1748  rm -rf conftest*
1749  eval "ac_cv_lib_$ac_lib_var=no"
1750fi
1751rm -f conftest*
1752LIBS="$ac_save_LIBS"
1753
1754fi
1755if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1756  echo "$ac_t""yes" 1>&6
1757    ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1758    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1759  cat >> confdefs.h <<EOF
1760#define $ac_tr_lib 1
1761EOF
1762
1763  LIBS="-lkvm $LIBS"
1764
1765else
1766  echo "$ac_t""no" 1>&6
1767fi
1768                echo $ac_n "checking for nlist in -lld""... $ac_c" 1>&6
1769echo "configure:1770: checking for nlist in -lld" >&5
1770ac_lib_var=`echo ld'_'nlist | sed 'y%./+-%__p_%'`
1771if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1772  echo $ac_n "(cached) $ac_c" 1>&6
1773else
1774  ac_save_LIBS="$LIBS"
1775LIBS="-lld  $LIBS"
1776cat > conftest.$ac_ext <<EOF
1777#line 1778 "configure"
1778#include "confdefs.h"
1779/* Override any gcc2 internal prototype to avoid an error.  */
1780/* We use char because int might match the return type of a gcc2
1781    builtin and then its argument prototype would still apply.  */
1782char nlist();
1783
1784int main() {
1785nlist()
1786; return 0; }
1787EOF
1788if { (eval echo configure:1789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1789  rm -rf conftest*
1790  eval "ac_cv_lib_$ac_lib_var=yes"
1791else
1792  echo "configure: failed program was:" >&5
1793  cat conftest.$ac_ext >&5
1794  rm -rf conftest*
1795  eval "ac_cv_lib_$ac_lib_var=no"
1796fi
1797rm -f conftest*
1798LIBS="$ac_save_LIBS"
1799
1800fi
1801if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1802  echo "$ac_t""yes" 1>&6
1803    ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1804    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1805  cat >> confdefs.h <<EOF
1806#define $ac_tr_lib 1
1807EOF
1808
1809  LIBS="-lld $LIBS"
1810
1811else
1812  echo "$ac_t""no" 1>&6
1813fi
1814
1815echo $ac_n "checking for nlist in -lmld""... $ac_c" 1>&6
1816echo "configure:1817: checking for nlist in -lmld" >&5
1817ac_lib_var=`echo mld'_'nlist | sed 'y%./+-%__p_%'`
1818if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1819  echo $ac_n "(cached) $ac_c" 1>&6
1820else
1821  ac_save_LIBS="$LIBS"
1822LIBS="-lmld  $LIBS"
1823cat > conftest.$ac_ext <<EOF
1824#line 1825 "configure"
1825#include "confdefs.h"
1826/* Override any gcc2 internal prototype to avoid an error.  */
1827/* We use char because int might match the return type of a gcc2
1828    builtin and then its argument prototype would still apply.  */
1829char nlist();
1830
1831int main() {
1832nlist()
1833; return 0; }
1834EOF
1835if { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1836  rm -rf conftest*
1837  eval "ac_cv_lib_$ac_lib_var=yes"
1838else
1839  echo "configure: failed program was:" >&5
1840  cat conftest.$ac_ext >&5
1841  rm -rf conftest*
1842  eval "ac_cv_lib_$ac_lib_var=no"
1843fi
1844rm -f conftest*
1845LIBS="$ac_save_LIBS"
1846
1847fi
1848if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1849  echo "$ac_t""yes" 1>&6
1850    ac_tr_lib=HAVE_LIB`echo mld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1851    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1852  cat >> confdefs.h <<EOF
1853#define $ac_tr_lib 1
1854EOF
1855
1856  LIBS="-lmld $LIBS"
1857
1858else
1859  echo "$ac_t""no" 1>&6
1860fi
1861
1862case "$check_libnsl" in
1863 yes)
1864    echo $ac_n "checking for gethostbyaddr in -lnsl""... $ac_c" 1>&6
1865echo "configure:1866: checking for gethostbyaddr in -lnsl" >&5
1866ac_lib_var=`echo nsl'_'gethostbyaddr | sed 'y%./+-%__p_%'`
1867if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1868  echo $ac_n "(cached) $ac_c" 1>&6
1869else
1870  ac_save_LIBS="$LIBS"
1871LIBS="-lnsl -lsocket $LIBS"
1872cat > conftest.$ac_ext <<EOF
1873#line 1874 "configure"
1874#include "confdefs.h"
1875/* Override any gcc2 internal prototype to avoid an error.  */
1876/* We use char because int might match the return type of a gcc2
1877    builtin and then its argument prototype would still apply.  */
1878char gethostbyaddr();
1879
1880int main() {
1881gethostbyaddr()
1882; return 0; }
1883EOF
1884if { (eval echo configure:1885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1885  rm -rf conftest*
1886  eval "ac_cv_lib_$ac_lib_var=yes"
1887else
1888  echo "configure: failed program was:" >&5
1889  cat conftest.$ac_ext >&5
1890  rm -rf conftest*
1891  eval "ac_cv_lib_$ac_lib_var=no"
1892fi
1893rm -f conftest*
1894LIBS="$ac_save_LIBS"
1895
1896fi
1897if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1898  echo "$ac_t""yes" 1>&6
1899    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1900    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1901  cat >> confdefs.h <<EOF
1902#define $ac_tr_lib 1
1903EOF
1904
1905  LIBS="-lnsl $LIBS"
1906
1907else
1908  echo "$ac_t""no" 1>&6
1909fi
1910
1911    ;;
1912esac
1913echo $ac_n "checking for main in -lposix4""... $ac_c" 1>&6
1914echo "configure:1915: checking for main in -lposix4" >&5
1915ac_lib_var=`echo posix4'_'main | sed 'y%./+-%__p_%'`
1916if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1917  echo $ac_n "(cached) $ac_c" 1>&6
1918else
1919  ac_save_LIBS="$LIBS"
1920LIBS="-lposix4  $LIBS"
1921cat > conftest.$ac_ext <<EOF
1922#line 1923 "configure"
1923#include "confdefs.h"
1924
1925int main() {
1926main()
1927; return 0; }
1928EOF
1929if { (eval echo configure:1930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1930  rm -rf conftest*
1931  eval "ac_cv_lib_$ac_lib_var=yes"
1932else
1933  echo "configure: failed program was:" >&5
1934  cat conftest.$ac_ext >&5
1935  rm -rf conftest*
1936  eval "ac_cv_lib_$ac_lib_var=no"
1937fi
1938rm -f conftest*
1939LIBS="$ac_save_LIBS"
1940
1941fi
1942if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1943  echo "$ac_t""yes" 1>&6
1944    ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1945    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1946  cat >> confdefs.h <<EOF
1947#define $ac_tr_lib 1
1948EOF
1949
1950  LIBS="-lposix4 $LIBS"
1951
1952else
1953  echo "$ac_t""no" 1>&6
1954fi
1955        case "$check_libsocket" in
1956 yes)
1957    echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1958echo "configure:1959: checking for socket in -lsocket" >&5
1959ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1960if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1961  echo $ac_n "(cached) $ac_c" 1>&6
1962else
1963  ac_save_LIBS="$LIBS"
1964LIBS="-lsocket  $LIBS"
1965cat > conftest.$ac_ext <<EOF
1966#line 1967 "configure"
1967#include "confdefs.h"
1968/* Override any gcc2 internal prototype to avoid an error.  */
1969/* We use char because int might match the return type of a gcc2
1970    builtin and then its argument prototype would still apply.  */
1971char socket();
1972
1973int main() {
1974socket()
1975; return 0; }
1976EOF
1977if { (eval echo configure:1978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1978  rm -rf conftest*
1979  eval "ac_cv_lib_$ac_lib_var=yes"
1980else
1981  echo "configure: failed program was:" >&5
1982  cat conftest.$ac_ext >&5
1983  rm -rf conftest*
1984  eval "ac_cv_lib_$ac_lib_var=no"
1985fi
1986rm -f conftest*
1987LIBS="$ac_save_LIBS"
1988
1989fi
1990if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1991  echo "$ac_t""yes" 1>&6
1992    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1993    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1994  cat >> confdefs.h <<EOF
1995#define $ac_tr_lib 1
1996EOF
1997
1998  LIBS="-lsocket $LIBS"
1999
2000else
2001  echo "$ac_t""no" 1>&6
2002fi
2003
2004    ;;
2005esac
2006
2007echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2008echo "configure:2009: checking for ANSI C header files" >&5
2009if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2010  echo $ac_n "(cached) $ac_c" 1>&6
2011else
2012  cat > conftest.$ac_ext <<EOF
2013#line 2014 "configure"
2014#include "confdefs.h"
2015#include <stdlib.h>
2016#include <stdarg.h>
2017#include <string.h>
2018#include <float.h>
2019EOF
2020ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2021{ (eval echo configure:2022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2022ac_err=`grep -v '^ *+' conftest.out`
2023if test -z "$ac_err"; then
2024  rm -rf conftest*
2025  ac_cv_header_stdc=yes
2026else
2027  echo "$ac_err" >&5
2028  echo "configure: failed program was:" >&5
2029  cat conftest.$ac_ext >&5
2030  rm -rf conftest*
2031  ac_cv_header_stdc=no
2032fi
2033rm -f conftest*
2034
2035if test $ac_cv_header_stdc = yes; then
2036  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2037cat > conftest.$ac_ext <<EOF
2038#line 2039 "configure"
2039#include "confdefs.h"
2040#include <string.h>
2041EOF
2042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2043  egrep "memchr" >/dev/null 2>&1; then
2044  :
2045else
2046  rm -rf conftest*
2047  ac_cv_header_stdc=no
2048fi
2049rm -f conftest*
2050
2051fi
2052
2053if test $ac_cv_header_stdc = yes; then
2054  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2055cat > conftest.$ac_ext <<EOF
2056#line 2057 "configure"
2057#include "confdefs.h"
2058#include <stdlib.h>
2059EOF
2060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2061  egrep "free" >/dev/null 2>&1; then
2062  :
2063else
2064  rm -rf conftest*
2065  ac_cv_header_stdc=no
2066fi
2067rm -f conftest*
2068
2069fi
2070
2071if test $ac_cv_header_stdc = yes; then
2072  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2073if test "$cross_compiling" = yes; then
2074  :
2075else
2076  cat > conftest.$ac_ext <<EOF
2077#line 2078 "configure"
2078#include "confdefs.h"
2079#include <ctype.h>
2080#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2081#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2082#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2083int main () { int i; for (i = 0; i < 256; i++)
2084if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2085exit (0); }
2086
2087EOF
2088if { (eval echo configure:2089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2089then
2090  :
2091else
2092  echo "configure: failed program was:" >&5
2093  cat conftest.$ac_ext >&5
2094  rm -fr conftest*
2095  ac_cv_header_stdc=no
2096fi
2097rm -fr conftest*
2098fi
2099
2100fi
2101fi
2102
2103echo "$ac_t""$ac_cv_header_stdc" 1>&6
2104if test $ac_cv_header_stdc = yes; then
2105  cat >> confdefs.h <<\EOF
2106#define STDC_HEADERS 1
2107EOF
2108
2109fi
2110
2111for ac_hdr in errno.h fcntl.h memory.h sched.h sgtty.h stdlib.h string.h
2112do
2113ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2114echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2115echo "configure:2116: checking for $ac_hdr" >&5
2116if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2117  echo $ac_n "(cached) $ac_c" 1>&6
2118else
2119  cat > conftest.$ac_ext <<EOF
2120#line 2121 "configure"
2121#include "confdefs.h"
2122#include <$ac_hdr>
2123EOF
2124ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2125{ (eval echo configure:2126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2126ac_err=`grep -v '^ *+' conftest.out`
2127if test -z "$ac_err"; then
2128  rm -rf conftest*
2129  eval "ac_cv_header_$ac_safe=yes"
2130else
2131  echo "$ac_err" >&5
2132  echo "configure: failed program was:" >&5
2133  cat conftest.$ac_ext >&5
2134  rm -rf conftest*
2135  eval "ac_cv_header_$ac_safe=no"
2136fi
2137rm -f conftest*
2138fi
2139if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2140  echo "$ac_t""yes" 1>&6
2141    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2142  cat >> confdefs.h <<EOF
2143#define $ac_tr_hdr 1
2144EOF
2145 
2146else
2147  echo "$ac_t""no" 1>&6
2148fi
2149done
2150
2151for ac_hdr in termio.h termios.h unistd.h utmp.h utmpx.h
2152do
2153ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2154echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2155echo "configure:2156: checking for $ac_hdr" >&5
2156if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2157  echo $ac_n "(cached) $ac_c" 1>&6
2158else
2159  cat > conftest.$ac_ext <<EOF
2160#line 2161 "configure"
2161#include "confdefs.h"
2162#include <$ac_hdr>
2163EOF
2164ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2165{ (eval echo configure:2166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2166ac_err=`grep -v '^ *+' conftest.out`
2167if test -z "$ac_err"; then
2168  rm -rf conftest*
2169  eval "ac_cv_header_$ac_safe=yes"
2170else
2171  echo "$ac_err" >&5
2172  echo "configure: failed program was:" >&5
2173  cat conftest.$ac_ext >&5
2174  rm -rf conftest*
2175  eval "ac_cv_header_$ac_safe=no"
2176fi
2177rm -f conftest*
2178fi
2179if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2180  echo "$ac_t""yes" 1>&6
2181    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2182  cat >> confdefs.h <<EOF
2183#define $ac_tr_hdr 1
2184EOF
2185 
2186else
2187  echo "$ac_t""no" 1>&6
2188fi
2189done
2190
2191for ac_hdr in net/if.h netinet/in.h netinet/ip.h sys/bsd_audioirig.h
2192do
2193ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2194echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2195echo "configure:2196: checking for $ac_hdr" >&5
2196if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2197  echo $ac_n "(cached) $ac_c" 1>&6
2198else
2199  cat > conftest.$ac_ext <<EOF
2200#line 2201 "configure"
2201#include "confdefs.h"
2202#include <$ac_hdr>
2203EOF
2204ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2205{ (eval echo configure:2206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2206ac_err=`grep -v '^ *+' conftest.out`
2207if test -z "$ac_err"; then
2208  rm -rf conftest*
2209  eval "ac_cv_header_$ac_safe=yes"
2210else
2211  echo "$ac_err" >&5
2212  echo "configure: failed program was:" >&5
2213  cat conftest.$ac_ext >&5
2214  rm -rf conftest*
2215  eval "ac_cv_header_$ac_safe=no"
2216fi
2217rm -f conftest*
2218fi
2219if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2220  echo "$ac_t""yes" 1>&6
2221    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2222  cat >> confdefs.h <<EOF
2223#define $ac_tr_hdr 1
2224EOF
2225 
2226else
2227  echo "$ac_t""no" 1>&6
2228fi
2229done
2230
2231for ac_hdr in sys/chudefs.h sys/clkdefs.h sys/file.h
2232do
2233ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2234echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2235echo "configure:2236: checking for $ac_hdr" >&5
2236if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2237  echo $ac_n "(cached) $ac_c" 1>&6
2238else
2239  cat > conftest.$ac_ext <<EOF
2240#line 2241 "configure"
2241#include "confdefs.h"
2242#include <$ac_hdr>
2243EOF
2244ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2245{ (eval echo configure:2246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2246ac_err=`grep -v '^ *+' conftest.out`
2247if test -z "$ac_err"; then
2248  rm -rf conftest*
2249  eval "ac_cv_header_$ac_safe=yes"
2250else
2251  echo "$ac_err" >&5
2252  echo "configure: failed program was:" >&5
2253  cat conftest.$ac_ext >&5
2254  rm -rf conftest*
2255  eval "ac_cv_header_$ac_safe=no"
2256fi
2257rm -f conftest*
2258fi
2259if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2260  echo "$ac_t""yes" 1>&6
2261    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2262  cat >> confdefs.h <<EOF
2263#define $ac_tr_hdr 1
2264EOF
2265 
2266else
2267  echo "$ac_t""no" 1>&6
2268fi
2269done
2270
2271case "$target" in
2272 *-*-sunos4*) ;;
2273 *) for ac_hdr in sys/ioctl.h
2274do
2275ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2276echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2277echo "configure:2278: checking for $ac_hdr" >&5
2278if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2279  echo $ac_n "(cached) $ac_c" 1>&6
2280else
2281  cat > conftest.$ac_ext <<EOF
2282#line 2283 "configure"
2283#include "confdefs.h"
2284#include <$ac_hdr>
2285EOF
2286ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2287{ (eval echo configure:2288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2288ac_err=`grep -v '^ *+' conftest.out`
2289if test -z "$ac_err"; then
2290  rm -rf conftest*
2291  eval "ac_cv_header_$ac_safe=yes"
2292else
2293  echo "$ac_err" >&5
2294  echo "configure: failed program was:" >&5
2295  cat conftest.$ac_ext >&5
2296  rm -rf conftest*
2297  eval "ac_cv_header_$ac_safe=no"
2298fi
2299rm -f conftest*
2300fi
2301if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2302  echo "$ac_t""yes" 1>&6
2303    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2304  cat >> confdefs.h <<EOF
2305#define $ac_tr_hdr 1
2306EOF
2307 
2308else
2309  echo "$ac_t""no" 1>&6
2310fi
2311done
2312
2313    ;;
2314esac
2315for ac_hdr in sys/lock.h sys/mman.h sys/modem.h sys/param.h sys/ppsclock.h
2316do
2317ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2318echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2319echo "configure:2320: checking for $ac_hdr" >&5
2320if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2321  echo $ac_n "(cached) $ac_c" 1>&6
2322else
2323  cat > conftest.$ac_ext <<EOF
2324#line 2325 "configure"
2325#include "confdefs.h"
2326#include <$ac_hdr>
2327EOF
2328ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2329{ (eval echo configure:2330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2330ac_err=`grep -v '^ *+' conftest.out`
2331if test -z "$ac_err"; then
2332  rm -rf conftest*
2333  eval "ac_cv_header_$ac_safe=yes"
2334else
2335  echo "$ac_err" >&5
2336  echo "configure: failed program was:" >&5
2337  cat conftest.$ac_ext >&5
2338  rm -rf conftest*
2339  eval "ac_cv_header_$ac_safe=no"
2340fi
2341rm -f conftest*
2342fi
2343if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2344  echo "$ac_t""yes" 1>&6
2345    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2346  cat >> confdefs.h <<EOF
2347#define $ac_tr_hdr 1
2348EOF
2349 
2350else
2351  echo "$ac_t""no" 1>&6
2352fi
2353done
2354
2355for ac_hdr in sys/proc.h sys/resource.h
2356do
2357ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2358echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2359echo "configure:2360: checking for $ac_hdr" >&5
2360if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2361  echo $ac_n "(cached) $ac_c" 1>&6
2362else
2363  cat > conftest.$ac_ext <<EOF
2364#line 2365 "configure"
2365#include "confdefs.h"
2366#include <$ac_hdr>
2367EOF
2368ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2369{ (eval echo configure:2370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2370ac_err=`grep -v '^ *+' conftest.out`
2371if test -z "$ac_err"; then
2372  rm -rf conftest*
2373  eval "ac_cv_header_$ac_safe=yes"
2374else
2375  echo "$ac_err" >&5
2376  echo "configure: failed program was:" >&5
2377  cat conftest.$ac_ext >&5
2378  rm -rf conftest*
2379  eval "ac_cv_header_$ac_safe=no"
2380fi
2381rm -f conftest*
2382fi
2383if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2384  echo "$ac_t""yes" 1>&6
2385    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2386  cat >> confdefs.h <<EOF
2387#define $ac_tr_hdr 1
2388EOF
2389 
2390else
2391  echo "$ac_t""no" 1>&6
2392fi
2393done
2394
2395case "$target" in
2396 *-*-sco3.2v4.2)
2397    ;;
2398 *)
2399    for ac_hdr in sys/select.h
2400do
2401ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2402echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2403echo "configure:2404: checking for $ac_hdr" >&5
2404if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2405  echo $ac_n "(cached) $ac_c" 1>&6
2406else
2407  cat > conftest.$ac_ext <<EOF
2408#line 2409 "configure"
2409#include "confdefs.h"
2410#include <$ac_hdr>
2411EOF
2412ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2413{ (eval echo configure:2414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2414ac_err=`grep -v '^ *+' conftest.out`
2415if test -z "$ac_err"; then
2416  rm -rf conftest*
2417  eval "ac_cv_header_$ac_safe=yes"
2418else
2419  echo "$ac_err" >&5
2420  echo "configure: failed program was:" >&5
2421  cat conftest.$ac_ext >&5
2422  rm -rf conftest*
2423  eval "ac_cv_header_$ac_safe=no"
2424fi
2425rm -f conftest*
2426fi
2427if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2428  echo "$ac_t""yes" 1>&6
2429    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2430  cat >> confdefs.h <<EOF
2431#define $ac_tr_hdr 1
2432EOF
2433 
2434else
2435  echo "$ac_t""no" 1>&6
2436fi
2437done
2438
2439    ;;
2440esac
2441for ac_hdr in sys/sockio.h sys/stat.h sys/stream.h sys/stropts.h
2442do
2443ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2444echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2445echo "configure:2446: checking for $ac_hdr" >&5
2446if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2447  echo $ac_n "(cached) $ac_c" 1>&6
2448else
2449  cat > conftest.$ac_ext <<EOF
2450#line 2451 "configure"
2451#include "confdefs.h"
2452#include <$ac_hdr>
2453EOF
2454ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2455{ (eval echo configure:2456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2456ac_err=`grep -v '^ *+' conftest.out`
2457if test -z "$ac_err"; then
2458  rm -rf conftest*
2459  eval "ac_cv_header_$ac_safe=yes"
2460else
2461  echo "$ac_err" >&5
2462  echo "configure: failed program was:" >&5
2463  cat conftest.$ac_ext >&5
2464  rm -rf conftest*
2465  eval "ac_cv_header_$ac_safe=no"
2466fi
2467rm -f conftest*
2468fi
2469if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2470  echo "$ac_t""yes" 1>&6
2471    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2472  cat >> confdefs.h <<EOF
2473#define $ac_tr_hdr 1
2474EOF
2475 
2476else
2477  echo "$ac_t""no" 1>&6
2478fi
2479done
2480
2481for ac_hdr in sys/sysctl.h sys/time.h sys/timers.h sys/timex.h sys/tpro.h
2482do
2483ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2484echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2485echo "configure:2486: checking for $ac_hdr" >&5
2486if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2487  echo $ac_n "(cached) $ac_c" 1>&6
2488else
2489  cat > conftest.$ac_ext <<EOF
2490#line 2491 "configure"
2491#include "confdefs.h"
2492#include <$ac_hdr>
2493EOF
2494ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2495{ (eval echo configure:2496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2496ac_err=`grep -v '^ *+' conftest.out`
2497if test -z "$ac_err"; then
2498  rm -rf conftest*
2499  eval "ac_cv_header_$ac_safe=yes"
2500else
2501  echo "$ac_err" >&5
2502  echo "configure: failed program was:" >&5
2503  cat conftest.$ac_ext >&5
2504  rm -rf conftest*
2505  eval "ac_cv_header_$ac_safe=no"
2506fi
2507rm -f conftest*
2508fi
2509if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2510  echo "$ac_t""yes" 1>&6
2511    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2512  cat >> confdefs.h <<EOF
2513#define $ac_tr_hdr 1
2514EOF
2515 
2516else
2517  echo "$ac_t""no" 1>&6
2518fi
2519done
2520
2521for ac_hdr in sys/types.h
2522do
2523ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2524echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2525echo "configure:2526: checking for $ac_hdr" >&5
2526if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2527  echo $ac_n "(cached) $ac_c" 1>&6
2528else
2529  cat > conftest.$ac_ext <<EOF
2530#line 2531 "configure"
2531#include "confdefs.h"
2532#include <$ac_hdr>
2533EOF
2534ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2535{ (eval echo configure:2536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2536ac_err=`grep -v '^ *+' conftest.out`
2537if test -z "$ac_err"; then
2538  rm -rf conftest*
2539  eval "ac_cv_header_$ac_safe=yes"
2540else
2541  echo "$ac_err" >&5
2542  echo "configure: failed program was:" >&5
2543  cat conftest.$ac_ext >&5
2544  rm -rf conftest*
2545  eval "ac_cv_header_$ac_safe=no"
2546fi
2547rm -f conftest*
2548fi
2549if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2550  echo "$ac_t""yes" 1>&6
2551    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2552  cat >> confdefs.h <<EOF
2553#define $ac_tr_hdr 1
2554EOF
2555 
2556else
2557  echo "$ac_t""no" 1>&6
2558fi
2559done
2560
2561echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2562echo "configure:2563: checking whether time.h and sys/time.h may both be included" >&5
2563if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2564  echo $ac_n "(cached) $ac_c" 1>&6
2565else
2566  cat > conftest.$ac_ext <<EOF
2567#line 2568 "configure"
2568#include "confdefs.h"
2569#include <sys/types.h>
2570#include <sys/time.h>
2571#include <time.h>
2572int main() {
2573struct tm *tp;
2574; return 0; }
2575EOF
2576if { (eval echo configure:2577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2577  rm -rf conftest*
2578  ac_cv_header_time=yes
2579else
2580  echo "configure: failed program was:" >&5
2581  cat conftest.$ac_ext >&5
2582  rm -rf conftest*
2583  ac_cv_header_time=no
2584fi
2585rm -f conftest*
2586fi
2587
2588echo "$ac_t""$ac_cv_header_time" 1>&6
2589if test $ac_cv_header_time = yes; then
2590  cat >> confdefs.h <<\EOF
2591#define TIME_WITH_SYS_TIME 1
2592EOF
2593
2594fi
2595
2596case "$target" in
2597*-convex-*)
2598  for ac_hdr in /sys/sync/queue.h /sys/sync/sema.h
2599do
2600ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2601echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2602echo "configure:2603: checking for $ac_hdr" >&5
2603if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2604  echo $ac_n "(cached) $ac_c" 1>&6
2605else
2606  cat > conftest.$ac_ext <<EOF
2607#line 2608 "configure"
2608#include "confdefs.h"
2609#include <$ac_hdr>
2610EOF
2611ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2612{ (eval echo configure:2613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2613ac_err=`grep -v '^ *+' conftest.out`
2614if test -z "$ac_err"; then
2615  rm -rf conftest*
2616  eval "ac_cv_header_$ac_safe=yes"
2617else
2618  echo "$ac_err" >&5
2619  echo "configure: failed program was:" >&5
2620  cat conftest.$ac_ext >&5
2621  rm -rf conftest*
2622  eval "ac_cv_header_$ac_safe=no"
2623fi
2624rm -f conftest*
2625fi
2626if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2627  echo "$ac_t""yes" 1>&6
2628    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2629  cat >> confdefs.h <<EOF
2630#define $ac_tr_hdr 1
2631EOF
2632 
2633else
2634  echo "$ac_t""no" 1>&6
2635fi
2636done
2637
2638  ;;
2639*-*-bsdi*)
2640  for ac_hdr in machine/inline.h sys/pcl720.h sys/i8253.h
2641do
2642ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2643echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2644echo "configure:2645: checking for $ac_hdr" >&5
2645if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2646  echo $ac_n "(cached) $ac_c" 1>&6
2647else
2648  cat > conftest.$ac_ext <<EOF
2649#line 2650 "configure"
2650#include "confdefs.h"
2651#include <$ac_hdr>
2652EOF
2653ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2654{ (eval echo configure:2655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2655ac_err=`grep -v '^ *+' conftest.out`
2656if test -z "$ac_err"; then
2657  rm -rf conftest*
2658  eval "ac_cv_header_$ac_safe=yes"
2659else
2660  echo "$ac_err" >&5
2661  echo "configure: failed program was:" >&5
2662  cat conftest.$ac_ext >&5
2663  rm -rf conftest*
2664  eval "ac_cv_header_$ac_safe=no"
2665fi
2666rm -f conftest*
2667fi
2668if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2669  echo "$ac_t""yes" 1>&6
2670    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2671  cat >> confdefs.h <<EOF
2672#define $ac_tr_hdr 1
2673EOF
2674 
2675else
2676  echo "$ac_t""no" 1>&6
2677fi
2678done
2679
2680  ;;
2681esac
2682
2683ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
2684echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
2685echo "configure:2686: checking for nlist.h" >&5
2686if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2687  echo $ac_n "(cached) $ac_c" 1>&6
2688else
2689  cat > conftest.$ac_ext <<EOF
2690#line 2691 "configure"
2691#include "confdefs.h"
2692#include <nlist.h>
2693EOF
2694ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2695{ (eval echo configure:2696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2696ac_err=`grep -v '^ *+' conftest.out`
2697if test -z "$ac_err"; then
2698  rm -rf conftest*
2699  eval "ac_cv_header_$ac_safe=yes"
2700else
2701  echo "$ac_err" >&5
2702  echo "configure: failed program was:" >&5
2703  cat conftest.$ac_ext >&5
2704  rm -rf conftest*
2705  eval "ac_cv_header_$ac_safe=no"
2706fi
2707rm -f conftest*
2708fi
2709if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2710  echo "$ac_t""yes" 1>&6
2711  cat >> confdefs.h <<\EOF
2712#define NLIST_STRUCT 1
2713EOF
2714
2715echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6
2716echo "configure:2717: checking for n_un in struct nlist" >&5
2717if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then
2718  echo $ac_n "(cached) $ac_c" 1>&6
2719else
2720  cat > conftest.$ac_ext <<EOF
2721#line 2722 "configure"
2722#include "confdefs.h"
2723#include <nlist.h>
2724int main() {
2725struct nlist n; n.n_un.n_name = 0;
2726; return 0; }
2727EOF
2728if { (eval echo configure:2729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2729  rm -rf conftest*
2730  ac_cv_struct_nlist_n_un=yes
2731else
2732  echo "configure: failed program was:" >&5
2733  cat conftest.$ac_ext >&5
2734  rm -rf conftest*
2735  ac_cv_struct_nlist_n_un=no
2736fi
2737rm -f conftest*
2738fi
2739
2740echo "$ac_t""$ac_cv_struct_nlist_n_un" 1>&6
2741if test $ac_cv_struct_nlist_n_un = yes; then
2742  cat >> confdefs.h <<\EOF
2743#define NLIST_NAME_UNION 1
2744EOF
2745
2746fi
2747
2748else
2749  echo "$ac_t""no" 1>&6
2750fi
2751
2752echo $ac_n "checking for basic volatile support""... $ac_c" 1>&6
2753echo "configure:2754: checking for basic volatile support" >&5
2754if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then
2755  echo $ac_n "(cached) $ac_c" 1>&6
2756else
2757  cat > conftest.$ac_ext <<EOF
2758#line 2759 "configure"
2759#include "confdefs.h"
2760
2761int main() {
2762
2763volatile int x;
2764; return 0; }
2765EOF
2766if { (eval echo configure:2767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2767  rm -rf conftest*
2768  ac_cv_c_volatile=yes
2769else
2770  echo "configure: failed program was:" >&5
2771  cat conftest.$ac_ext >&5
2772  rm -rf conftest*
2773  ac_cv_c_volatile=no
2774fi
2775rm -f conftest*
2776
2777fi
2778
2779echo "$ac_t""$ac_cv_c_volatile" 1>&6
2780case "$ac_cv_c_volatile" in
2781 yes)
2782    ;;
2783 *) cat >> confdefs.h <<\EOF
2784#define volatile
2785EOF
2786
2787    ;;
2788esac
2789
2790echo $ac_n "checking for working const""... $ac_c" 1>&6
2791echo "configure:2792: checking for working const" >&5
2792if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2793  echo $ac_n "(cached) $ac_c" 1>&6
2794else
2795  cat > conftest.$ac_ext <<EOF
2796#line 2797 "configure"
2797#include "confdefs.h"
2798
2799int main() {
2800
2801/* Ultrix mips cc rejects this.  */
2802typedef int charset[2]; const charset x;
2803/* SunOS 4.1.1 cc rejects this.  */
2804char const *const *ccp;
2805char **p;
2806/* NEC SVR4.0.2 mips cc rejects this.  */
2807struct point {int x, y;};
2808static struct point const zero = {0,0};
2809/* AIX XL C 1.02.0.0 rejects this.
2810   It does not let you subtract one const X* pointer from another in an arm
2811   of an if-expression whose if-part is not a constant expression */
2812const char *g = "string";
2813ccp = &g + (g ? g-g : 0);
2814/* HPUX 7.0 cc rejects these. */
2815++ccp;
2816p = (char**) ccp;
2817ccp = (char const *const *) p;
2818{ /* SCO 3.2v4 cc rejects this.  */
2819  char *t;
2820  char const *s = 0 ? (char *) 0 : (char const *) 0;
2821
2822  *t++ = 0;
2823}
2824{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2825  int x[] = {25, 17};
2826  const int *foo = &x[0];
2827  ++foo;
2828}
2829{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2830  typedef const int *iptr;
2831  iptr p = 0;
2832  ++p;
2833}
2834{ /* AIX XL C 1.02.0.0 rejects this saying
2835     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2836  struct s { int j; const int *ap[3]; };
2837  struct s *b; b->j = 5;
2838}
2839{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2840  const int foo = 10;
2841}
2842
2843; return 0; }
2844EOF
2845if { (eval echo configure:2846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2846  rm -rf conftest*
2847  ac_cv_c_const=yes
2848else
2849  echo "configure: failed program was:" >&5
2850  cat conftest.$ac_ext >&5
2851  rm -rf conftest*
2852  ac_cv_c_const=no
2853fi
2854rm -f conftest*
2855fi
2856
2857echo "$ac_t""$ac_cv_c_const" 1>&6
2858if test $ac_cv_c_const = no; then
2859  cat >> confdefs.h <<\EOF
2860#define const
2861EOF
2862
2863fi
2864
2865case "$host" in
2866 $target)
2867    echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2868echo "configure:2869: checking whether byte ordering is bigendian" >&5
2869if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2870  echo $ac_n "(cached) $ac_c" 1>&6
2871else
2872  ac_cv_c_bigendian=unknown
2873# See if sys/param.h defines the BYTE_ORDER macro.
2874cat > conftest.$ac_ext <<EOF
2875#line 2876 "configure"
2876#include "confdefs.h"
2877#include <sys/types.h>
2878#include <sys/param.h>
2879int main() {
2880
2881#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2882 bogus endian macros
2883#endif
2884; return 0; }
2885EOF
2886if { (eval echo configure:2887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2887  rm -rf conftest*
2888  # It does; now see whether it defined to BIG_ENDIAN or not.
2889cat > conftest.$ac_ext <<EOF
2890#line 2891 "configure"
2891#include "confdefs.h"
2892#include <sys/types.h>
2893#include <sys/param.h>
2894int main() {
2895
2896#if BYTE_ORDER != BIG_ENDIAN
2897 not big endian
2898#endif
2899; return 0; }
2900EOF
2901if { (eval echo configure:2902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2902  rm -rf conftest*
2903  ac_cv_c_bigendian=yes
2904else
2905  echo "configure: failed program was:" >&5
2906  cat conftest.$ac_ext >&5
2907  rm -rf conftest*
2908  ac_cv_c_bigendian=no
2909fi
2910rm -f conftest*
2911else
2912  echo "configure: failed program was:" >&5
2913  cat conftest.$ac_ext >&5
2914fi
2915rm -f conftest*
2916if test $ac_cv_c_bigendian = unknown; then
2917if test "$cross_compiling" = yes; then
2918    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2919else
2920  cat > conftest.$ac_ext <<EOF
2921#line 2922 "configure"
2922#include "confdefs.h"
2923main () {
2924  /* Are we little or big endian?  From Harbison&Steele.  */
2925  union
2926  {
2927    long l;
2928    char c[sizeof (long)];
2929  } u;
2930  u.l = 1;
2931  exit (u.c[sizeof (long) - 1] == 1);
2932}
2933EOF
2934if { (eval echo configure:2935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2935then
2936  ac_cv_c_bigendian=no
2937else
2938  echo "configure: failed program was:" >&5
2939  cat conftest.$ac_ext >&5
2940  rm -fr conftest*
2941  ac_cv_c_bigendian=yes
2942fi
2943rm -fr conftest*
2944fi
2945
2946fi
2947fi
2948
2949echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2950if test $ac_cv_c_bigendian = yes; then
2951  cat >> confdefs.h <<\EOF
2952#define WORDS_BIGENDIAN 1
2953EOF
2954
2955fi
2956
2957    ;;
2958 *) case "$target" in
2959     i*86-*-vxworks*)
2960        # LITTLEENDIAN
2961        ;;
2962     *-*-vxworks*)
2963        cat >> confdefs.h <<\EOF
2964#define WORDS_BIGENDIAN 1
2965EOF
2966
2967        ;;
2968     *) { echo "configure: error: Cross-compiling needs explicit byte order" 1>&2; exit 1; }
2969        ;;
2970    esac
2971    ;;
2972esac
2973echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2974echo "configure:2975: checking return type of signal handlers" >&5
2975if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2976  echo $ac_n "(cached) $ac_c" 1>&6
2977else
2978  cat > conftest.$ac_ext <<EOF
2979#line 2980 "configure"
2980#include "confdefs.h"
2981#include <sys/types.h>
2982#include <signal.h>
2983#ifdef signal
2984#undef signal
2985#endif
2986#ifdef __cplusplus
2987extern "C" void (*signal (int, void (*)(int)))(int);
2988#else
2989void (*signal ()) ();
2990#endif
2991
2992int main() {
2993int i;
2994; return 0; }
2995EOF
2996if { (eval echo configure:2997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2997  rm -rf conftest*
2998  ac_cv_type_signal=void
2999else
3000  echo "configure: failed program was:" >&5
3001  cat conftest.$ac_ext >&5
3002  rm -rf conftest*
3003  ac_cv_type_signal=int
3004fi
3005rm -f conftest*
3006fi
3007
3008echo "$ac_t""$ac_cv_type_signal" 1>&6
3009cat >> confdefs.h <<EOF
3010#define RETSIGTYPE $ac_cv_type_signal
3011EOF
3012
3013
3014echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3015echo "configure:3016: checking whether struct tm is in sys/time.h or time.h" >&5
3016if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3017  echo $ac_n "(cached) $ac_c" 1>&6
3018else
3019  cat > conftest.$ac_ext <<EOF
3020#line 3021 "configure"
3021#include "confdefs.h"
3022#include <sys/types.h>
3023#include <time.h>
3024int main() {
3025struct tm *tp; tp->tm_sec;
3026; return 0; }
3027EOF
3028if { (eval echo configure:3029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3029  rm -rf conftest*
3030  ac_cv_struct_tm=time.h
3031else
3032  echo "configure: failed program was:" >&5
3033  cat conftest.$ac_ext >&5
3034  rm -rf conftest*
3035  ac_cv_struct_tm=sys/time.h
3036fi
3037rm -f conftest*
3038fi
3039
3040echo "$ac_t""$ac_cv_struct_tm" 1>&6
3041if test $ac_cv_struct_tm = sys/time.h; then
3042  cat >> confdefs.h <<\EOF
3043#define TM_IN_SYS_TIME 1
3044EOF
3045
3046fi
3047
3048
3049echo $ac_n "checking for a fallback value for HZ""... $ac_c" 1>&6
3050echo "configure:3051: checking for a fallback value for HZ" >&5
3051if eval "test \"`echo '$''{'ac_cv_var_default_hz'+set}'`\" = set"; then
3052  echo $ac_n "(cached) $ac_c" 1>&6
3053else
3054  ac_cv_var_default_hz=100
3055case "$target" in
3056 alpha-dec-osf4*)
3057    ac_cv_var_default_hz=1024
3058    ;;
3059 mips-dec-ultrix4*)
3060    ac_cv_var_default_hz=256
3061    ;;
3062esac
3063fi
3064
3065echo "$ac_t""$ac_cv_var_default_hz" 1>&6
3066cat >> confdefs.h <<EOF
3067#define DEFAULT_HZ $ac_cv_var_default_hz
3068EOF
3069
3070
3071echo $ac_n "checking if we need to override the system's value for HZ""... $ac_c" 1>&6
3072echo "configure:3073: checking if we need to override the system's value for HZ" >&5
3073if eval "test \"`echo '$''{'ac_cv_var_override_hz'+set}'`\" = set"; then
3074  echo $ac_n "(cached) $ac_c" 1>&6
3075else
3076  ac_cv_var_override_hz=no
3077case "$target" in
3078 alpha-dec-osf4*)
3079    ac_cv_var_override_hz=yes
3080    ;;
3081 mips-dec-ultrix4*)
3082    ac_cv_var_override_hz=yes
3083    ;;
3084 *-*-freebsd*)
3085    ac_cv_var_override_hz=yes
3086    ;;
3087 *-*-sunos4*)
3088    ac_cv_var_override_hz=yes
3089    ;;
3090esac
3091fi
3092
3093echo "$ac_t""$ac_cv_var_override_hz" 1>&6
3094case "$ac_cv_var_override_hz" in
3095 yes)
3096    cat >> confdefs.h <<\EOF
3097#define OVERRIDE_HZ 1
3098EOF
3099
3100    ;;
3101esac
3102
3103
3104
3105echo $ac_n "checking struct sockaddr for sa_len""... $ac_c" 1>&6
3106echo "configure:3107: checking struct sockaddr for sa_len" >&5
3107if eval "test \"`echo '$''{'ac_cv_struct_sockaddr_has_sa_len'+set}'`\" = set"; then
3108  echo $ac_n "(cached) $ac_c" 1>&6
3109else
3110  cat > conftest.$ac_ext <<EOF
3111#line 3112 "configure"
3112#include "confdefs.h"
3113
3114#include <sys/types.h>
3115#include <sys/socket.h>
3116int main() {
3117
3118extern struct sockaddr *ps;
3119return ps->sa_len;
3120; return 0; }
3121EOF
3122if { (eval echo configure:3123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3123  rm -rf conftest*
3124  ac_cv_struct_sockaddr_has_sa_len=yes
3125else
3126  echo "configure: failed program was:" >&5
3127  cat conftest.$ac_ext >&5
3128  rm -rf conftest*
3129  ac_cv_struct_sockaddr_has_sa_len=no
3130fi
3131rm -f conftest*
3132
3133fi
3134
3135echo "$ac_t""$ac_cv_struct_sockaddr_has_sa_len" 1>&6
3136if test $ac_cv_struct_sockaddr_has_sa_len = yes; then
3137    cat >> confdefs.h <<\EOF
3138#define HAVE_SA_LEN_IN_STRUCT_SOCKADDR 1
3139EOF
3140
3141fi
3142
3143echo $ac_n "checking struct clockinfo for hz""... $ac_c" 1>&6
3144echo "configure:3145: checking struct clockinfo for hz" >&5
3145if eval "test \"`echo '$''{'ac_cv_struct_clockinfo_has_hz'+set}'`\" = set"; then
3146  echo $ac_n "(cached) $ac_c" 1>&6
3147else
3148  cat > conftest.$ac_ext <<EOF
3149#line 3150 "configure"
3150#include "confdefs.h"
3151
3152#include <sys/time.h>
3153int main() {
3154
3155extern struct clockinfo *pc;
3156return pc->hz;
3157; return 0; }
3158EOF
3159if { (eval echo configure:3160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3160  rm -rf conftest*
3161  ac_cv_struct_clockinfo_has_hz=yes
3162else
3163  echo "configure: failed program was:" >&5
3164  cat conftest.$ac_ext >&5
3165  rm -rf conftest*
3166  ac_cv_struct_clockinfo_has_hz=no
3167fi
3168rm -f conftest*
3169
3170fi
3171
3172echo "$ac_t""$ac_cv_struct_clockinfo_has_hz" 1>&6
3173if test $ac_cv_struct_clockinfo_has_hz = yes; then
3174    cat >> confdefs.h <<\EOF
3175#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1
3176EOF
3177
3178fi
3179
3180echo $ac_n "checking struct clockinfo for tickadj""... $ac_c" 1>&6
3181echo "configure:3182: checking struct clockinfo for tickadj" >&5
3182if eval "test \"`echo '$''{'ac_cv_struct_clockinfo_has_tickadj'+set}'`\" = set"; then
3183  echo $ac_n "(cached) $ac_c" 1>&6
3184else
3185  cat > conftest.$ac_ext <<EOF
3186#line 3187 "configure"
3187#include "confdefs.h"
3188
3189#include <sys/time.h>
3190int main() {
3191
3192extern struct clockinfo *pc;
3193return pc->tickadj;
3194; return 0; }
3195EOF
3196if { (eval echo configure:3197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3197  rm -rf conftest*
3198  ac_cv_struct_clockinfo_has_tickadj=yes
3199else
3200  echo "configure: failed program was:" >&5
3201  cat conftest.$ac_ext >&5
3202  rm -rf conftest*
3203  ac_cv_struct_clockinfo_has_tickadj=no
3204fi
3205rm -f conftest*
3206
3207fi
3208
3209echo "$ac_t""$ac_cv_struct_clockinfo_has_tickadj" 1>&6
3210if test $ac_cv_struct_clockinfo_has_tickadj = yes; then
3211    cat >> confdefs.h <<\EOF
3212#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1
3213EOF
3214
3215fi
3216
3217echo $ac_n "checking if C compiler permits function prototypes""... $ac_c" 1>&6
3218echo "configure:3219: checking if C compiler permits function prototypes" >&5
3219if eval "test \"`echo '$''{'ac_cv_have_prototypes'+set}'`\" = set"; then
3220  echo $ac_n "(cached) $ac_c" 1>&6
3221else
3222  cat > conftest.$ac_ext <<EOF
3223#line 3224 "configure"
3224#include "confdefs.h"
3225
3226extern int foo (short);
3227int foo(short i) { return i; }
3228int main() {
3229
3230int i;
3231; return 0; }
3232EOF
3233if { (eval echo configure:3234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3234  rm -rf conftest*
3235  ac_cv_have_prototypes=yes
3236else
3237  echo "configure: failed program was:" >&5
3238  cat conftest.$ac_ext >&5
3239  rm -rf conftest*
3240  ac_cv_have_prototypes=no
3241fi
3242rm -f conftest*
3243
3244fi
3245
3246echo "$ac_t""$ac_cv_have_prototypes" 1>&6
3247if test "$ac_cv_have_prototypes" = yes; then
3248  cat >> confdefs.h <<\EOF
3249#define HAVE_PROTOTYPES 1
3250EOF
3251
3252fi
3253
3254echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3255echo "configure:3256: checking whether char is unsigned" >&5
3256if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3257  echo $ac_n "(cached) $ac_c" 1>&6
3258else
3259  if test "$GCC" = yes; then
3260  # GCC predefines this symbol on systems where it applies.
3261cat > conftest.$ac_ext <<EOF
3262#line 3263 "configure"
3263#include "confdefs.h"
3264#ifdef __CHAR_UNSIGNED__
3265  yes
3266#endif
3267
3268EOF
3269if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3270  egrep "yes" >/dev/null 2>&1; then
3271  rm -rf conftest*
3272  ac_cv_c_char_unsigned=yes
3273else
3274  rm -rf conftest*
3275  ac_cv_c_char_unsigned=no
3276fi
3277rm -f conftest*
3278
3279else
3280if test "$cross_compiling" = yes; then
3281    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3282else
3283  cat > conftest.$ac_ext <<EOF
3284#line 3285 "configure"
3285#include "confdefs.h"
3286/* volatile prevents gcc2 from optimizing the test away on sparcs.  */
3287#if !defined(__STDC__) || __STDC__ != 1
3288#define volatile
3289#endif
3290main() {
3291  volatile char c = 255; exit(c < 0);
3292}
3293EOF
3294if { (eval echo configure:3295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3295then
3296  ac_cv_c_char_unsigned=yes
3297else
3298  echo "configure: failed program was:" >&5
3299  cat conftest.$ac_ext >&5
3300  rm -fr conftest*
3301  ac_cv_c_char_unsigned=no
3302fi
3303rm -fr conftest*
3304fi
3305
3306fi
3307fi
3308
3309echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3310if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3311  cat >> confdefs.h <<\EOF
3312#define __CHAR_UNSIGNED__ 1
3313EOF
3314
3315fi
3316                case "$host" in
3317 $target)
3318    echo $ac_n "checking size of signed char""... $ac_c" 1>&6
3319echo "configure:3320: checking size of signed char" >&5
3320if eval "test \"`echo '$''{'ac_cv_sizeof_signed_char'+set}'`\" = set"; then
3321  echo $ac_n "(cached) $ac_c" 1>&6
3322else
3323  if test "$cross_compiling" = yes; then
3324    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3325else
3326  cat > conftest.$ac_ext <<EOF
3327#line 3328 "configure"
3328#include "confdefs.h"
3329#include <stdio.h>
3330main()
3331{
3332  FILE *f=fopen("conftestval", "w");
3333  if (!f) exit(1);
3334  fprintf(f, "%d\n", sizeof(signed char));
3335  exit(0);
3336}
3337EOF
3338if { (eval echo configure:3339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3339then
3340  ac_cv_sizeof_signed_char=`cat conftestval`
3341else
3342  echo "configure: failed program was:" >&5
3343  cat conftest.$ac_ext >&5
3344  rm -fr conftest*
3345  ac_cv_sizeof_signed_char=0
3346fi
3347rm -fr conftest*
3348fi
3349
3350fi
3351echo "$ac_t""$ac_cv_sizeof_signed_char" 1>&6
3352cat >> confdefs.h <<EOF
3353#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
3354EOF
3355
3356
3357    ;;
3358 *) case "$target" in
3359     *-*-vxworks*)
3360        echo $ac_n "checking size of signed char""... $ac_c" 1>&6
3361echo "configure:3362: checking size of signed char" >&5
3362if eval "test \"`echo '$''{'ac_cv_sizeof_signed_char'+set}'`\" = set"; then
3363  echo $ac_n "(cached) $ac_c" 1>&6
3364else
3365  if test "$cross_compiling" = yes; then
3366  ac_cv_sizeof_signed_char=1
3367else
3368  cat > conftest.$ac_ext <<EOF
3369#line 3370 "configure"
3370#include "confdefs.h"
3371#include <stdio.h>
3372main()
3373{
3374  FILE *f=fopen("conftestval", "w");
3375  if (!f) exit(1);
3376  fprintf(f, "%d\n", sizeof(signed char));
3377  exit(0);
3378}
3379EOF
3380if { (eval echo configure:3381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3381then
3382  ac_cv_sizeof_signed_char=`cat conftestval`
3383else
3384  echo "configure: failed program was:" >&5
3385  cat conftest.$ac_ext >&5
3386  rm -fr conftest*
3387  ac_cv_sizeof_signed_char=0
3388fi
3389rm -fr conftest*
3390fi
3391
3392fi
3393echo "$ac_t""$ac_cv_sizeof_signed_char" 1>&6
3394cat >> confdefs.h <<EOF
3395#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
3396EOF
3397
3398
3399        ;;
3400     *) { echo "configure: error: Cross-compiling needs explicit SIZEOF_SIGNED_LONG" 1>&2; exit 1; }
3401        ;;
3402    esac
3403    ;;
3404esac
3405
3406case "$host" in
3407 $target)
3408    echo $ac_n "checking size of int""... $ac_c" 1>&6
3409echo "configure:3410: checking size of int" >&5
3410if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3411  echo $ac_n "(cached) $ac_c" 1>&6
3412else
3413  if test "$cross_compiling" = yes; then
3414    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3415else
3416  cat > conftest.$ac_ext <<EOF
3417#line 3418 "configure"
3418#include "confdefs.h"
3419#include <stdio.h>
3420main()
3421{
3422  FILE *f=fopen("conftestval", "w");
3423  if (!f) exit(1);
3424  fprintf(f, "%d\n", sizeof(int));
3425  exit(0);
3426}
3427EOF
3428if { (eval echo configure:3429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3429then
3430  ac_cv_sizeof_int=`cat conftestval`
3431else
3432  echo "configure: failed program was:" >&5
3433  cat conftest.$ac_ext >&5
3434  rm -fr conftest*
3435  ac_cv_sizeof_int=0
3436fi
3437rm -fr conftest*
3438fi
3439
3440fi
3441echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3442cat >> confdefs.h <<EOF
3443#define SIZEOF_INT $ac_cv_sizeof_int
3444EOF
3445
3446
3447    ;;
3448 *) case "$target" in
3449     *-*-vxworks*)
3450        echo $ac_n "checking size of int""... $ac_c" 1>&6
3451echo "configure:3452: checking size of int" >&5
3452if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3453  echo $ac_n "(cached) $ac_c" 1>&6
3454else
3455  if test "$cross_compiling" = yes; then
3456  ac_cv_sizeof_int=4
3457else
3458  cat > conftest.$ac_ext <<EOF
3459#line 3460 "configure"
3460#include "confdefs.h"
3461#include <stdio.h>
3462main()
3463{
3464  FILE *f=fopen("conftestval", "w");
3465  if (!f) exit(1);
3466  fprintf(f, "%d\n", sizeof(int));
3467  exit(0);
3468}
3469EOF
3470if { (eval echo configure:3471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3471then
3472  ac_cv_sizeof_int=`cat conftestval`
3473else
3474  echo "configure: failed program was:" >&5
3475  cat conftest.$ac_ext >&5
3476  rm -fr conftest*
3477  ac_cv_sizeof_int=0
3478fi
3479rm -fr conftest*
3480fi
3481
3482fi
3483echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3484cat >> confdefs.h <<EOF
3485#define SIZEOF_INT $ac_cv_sizeof_int
3486EOF
3487
3488
3489        ;;
3490     *) { echo "configure: error: Cross-compiling needs explicit SIZEOF_INT" 1>&2; exit 1; }
3491        ;;
3492    esac
3493    ;;
3494esac
3495
3496case "$host" in
3497 $target)
3498    echo $ac_n "checking size of long""... $ac_c" 1>&6
3499echo "configure:3500: checking size of long" >&5
3500if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3501  echo $ac_n "(cached) $ac_c" 1>&6
3502else
3503  if test "$cross_compiling" = yes; then
3504    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3505else
3506  cat > conftest.$ac_ext <<EOF
3507#line 3508 "configure"
3508#include "confdefs.h"
3509#include <stdio.h>
3510main()
3511{
3512  FILE *f=fopen("conftestval", "w");
3513  if (!f) exit(1);
3514  fprintf(f, "%d\n", sizeof(long));
3515  exit(0);
3516}
3517EOF
3518if { (eval echo configure:3519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3519then
3520  ac_cv_sizeof_long=`cat conftestval`
3521else
3522  echo "configure: failed program was:" >&5
3523  cat conftest.$ac_ext >&5
3524  rm -fr conftest*
3525  ac_cv_sizeof_long=0
3526fi
3527rm -fr conftest*
3528fi
3529
3530fi
3531echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3532cat >> confdefs.h <<EOF
3533#define SIZEOF_LONG $ac_cv_sizeof_long
3534EOF
3535
3536
3537    ;;
3538 *) case "$target" in
3539     *-*-vxworks*)
3540        echo $ac_n "checking size of long""... $ac_c" 1>&6
3541echo "configure:3542: checking size of long" >&5
3542if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3543  echo $ac_n "(cached) $ac_c" 1>&6
3544else
3545  if test "$cross_compiling" = yes; then
3546  ac_cv_sizeof_long=4
3547else
3548  cat > conftest.$ac_ext <<EOF
3549#line 3550 "configure"
3550#include "confdefs.h"
3551#include <stdio.h>
3552main()
3553{
3554  FILE *f=fopen("conftestval", "w");
3555  if (!f) exit(1);
3556  fprintf(f, "%d\n", sizeof(long));
3557  exit(0);
3558}
3559EOF
3560if { (eval echo configure:3561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3561then
3562  ac_cv_sizeof_long=`cat conftestval`
3563else
3564  echo "configure: failed program was:" >&5
3565  cat conftest.$ac_ext >&5
3566  rm -fr conftest*
3567  ac_cv_sizeof_long=0
3568fi
3569rm -fr conftest*
3570fi
3571
3572fi
3573echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3574cat >> confdefs.h <<EOF
3575#define SIZEOF_LONG $ac_cv_sizeof_long
3576EOF
3577
3578
3579        ;;
3580     *) { echo "configure: error: Cross-compiling needs explicit SIZEOF_LONG" 1>&2; exit 1; }
3581        ;;
3582    esac
3583    ;;
3584esac
3585
3586echo $ac_n "checking for s_char""... $ac_c" 1>&6
3587echo "configure:3588: checking for s_char" >&5
3588if eval "test \"`echo '$''{'ac_cv_type_s_char'+set}'`\" = set"; then
3589  echo $ac_n "(cached) $ac_c" 1>&6
3590else
3591  cat > conftest.$ac_ext <<EOF
3592#line 3593 "configure"
3593#include "confdefs.h"
3594#include <sys/types.h>
3595#if STDC_HEADERS
3596#include <stdlib.h>
3597#include <stddef.h>
3598#endif
3599EOF
3600if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3601  egrep "s_char[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3602  rm -rf conftest*
3603  ac_cv_type_s_char=yes
3604else
3605  rm -rf conftest*
3606  ac_cv_type_s_char=no
3607fi
3608rm -f conftest*
3609
3610fi
3611echo "$ac_t""$ac_cv_type_s_char" 1>&6
3612if test $ac_cv_type_s_char = no; then
3613  cat >> confdefs.h <<\EOF
3614#define s_char signed char
3615EOF
3616
3617fi
3618
3619case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
3620 *yes)
3621    # We have a typedef for s_char.  Might as well believe it...
3622    ;;
3623 no0no)
3624    # We have signed chars, can't say 'signed char', no s_char typedef.
3625    cat >> confdefs.h <<\EOF
3626#define NEED_S_CHAR_TYPEDEF 1
3627EOF
3628
3629    ;;
3630 no1no)
3631    # We have signed chars, can say 'signed char', no s_char typedef.
3632    cat >> confdefs.h <<\EOF
3633#define NEED_S_CHAR_TYPEDEF 1
3634EOF
3635
3636    ;;
3637 yes0no)
3638    # We have unsigned chars, can't say 'signed char', no s_char typedef.
3639    { echo "configure: error: No way to specify a signed character!" 1>&2; exit 1; }
3640    ;;
3641 yes1no)
3642    # We have unsigned chars, can say 'signed char', no s_char typedef.
3643    cat >> confdefs.h <<\EOF
3644#define NEED_S_CHAR_TYPEDEF 1
3645EOF
3646
3647    ;;
3648esac
3649echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3650echo "configure:3651: checking for uid_t in sys/types.h" >&5
3651if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3652  echo $ac_n "(cached) $ac_c" 1>&6
3653else
3654  cat > conftest.$ac_ext <<EOF
3655#line 3656 "configure"
3656#include "confdefs.h"
3657#include <sys/types.h>
3658EOF
3659if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3660  egrep "uid_t" >/dev/null 2>&1; then
3661  rm -rf conftest*
3662  ac_cv_type_uid_t=yes
3663else
3664  rm -rf conftest*
3665  ac_cv_type_uid_t=no
3666fi
3667rm -f conftest*
3668
3669fi
3670
3671echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3672if test $ac_cv_type_uid_t = no; then
3673  cat >> confdefs.h <<\EOF
3674#define uid_t int
3675EOF
3676
3677  cat >> confdefs.h <<\EOF
3678#define gid_t int
3679EOF
3680
3681fi
3682
3683
3684case "$target" in
3685 *-*-linux*)
3686    for ac_func in __adjtimex __ntp_gettime
3687do
3688echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3689echo "configure:3690: checking for $ac_func" >&5
3690if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3691  echo $ac_n "(cached) $ac_c" 1>&6
3692else
3693  cat > conftest.$ac_ext <<EOF
3694#line 3695 "configure"
3695#include "confdefs.h"
3696/* System header to define __stub macros and hopefully few prototypes,
3697    which can conflict with char $ac_func(); below.  */
3698#include <assert.h>
3699/* Override any gcc2 internal prototype to avoid an error.  */
3700/* We use char because int might match the return type of a gcc2
3701    builtin and then its argument prototype would still apply.  */
3702char $ac_func();
3703
3704int main() {
3705
3706/* The GNU C library defines this for functions which it implements
3707    to always fail with ENOSYS.  Some functions are actually named
3708    something starting with __ and the normal name is an alias.  */
3709#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3710choke me
3711#else
3712$ac_func();
3713#endif
3714
3715; return 0; }
3716EOF
3717if { (eval echo configure:3718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3718  rm -rf conftest*
3719  eval "ac_cv_func_$ac_func=yes"
3720else
3721  echo "configure: failed program was:" >&5
3722  cat conftest.$ac_ext >&5
3723  rm -rf conftest*
3724  eval "ac_cv_func_$ac_func=no"
3725fi
3726rm -f conftest*
3727fi
3728
3729if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3730  echo "$ac_t""yes" 1>&6
3731    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3732  cat >> confdefs.h <<EOF
3733#define $ac_tr_func 1
3734EOF
3735 
3736else
3737  echo "$ac_t""no" 1>&6
3738fi
3739done
3740
3741    ;;
3742esac
3743for ac_func in clock_settime daemon getbootfile getdtablesize getrusage
3744do
3745echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3746echo "configure:3747: checking for $ac_func" >&5
3747if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3748  echo $ac_n "(cached) $ac_c" 1>&6
3749else
3750  cat > conftest.$ac_ext <<EOF
3751#line 3752 "configure"
3752#include "confdefs.h"
3753/* System header to define __stub macros and hopefully few prototypes,
3754    which can conflict with char $ac_func(); below.  */
3755#include <assert.h>
3756/* Override any gcc2 internal prototype to avoid an error.  */
3757/* We use char because int might match the return type of a gcc2
3758    builtin and then its argument prototype would still apply.  */
3759char $ac_func();
3760
3761int main() {
3762
3763/* The GNU C library defines this for functions which it implements
3764    to always fail with ENOSYS.  Some functions are actually named
3765    something starting with __ and the normal name is an alias.  */
3766#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3767choke me
3768#else
3769$ac_func();
3770#endif
3771
3772; return 0; }
3773EOF
3774if { (eval echo configure:3775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3775  rm -rf conftest*
3776  eval "ac_cv_func_$ac_func=yes"
3777else
3778  echo "configure: failed program was:" >&5
3779  cat conftest.$ac_ext >&5
3780  rm -rf conftest*
3781  eval "ac_cv_func_$ac_func=no"
3782fi
3783rm -f conftest*
3784fi
3785
3786if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3787  echo "$ac_t""yes" 1>&6
3788    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3789  cat >> confdefs.h <<EOF
3790#define $ac_tr_func 1
3791EOF
3792 
3793else
3794  echo "$ac_t""no" 1>&6
3795fi
3796done
3797
3798for ac_func in gettimeofday getuid K_open kvm_open memcpy memmove memset
3799do
3800echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3801echo "configure:3802: checking for $ac_func" >&5
3802if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3803  echo $ac_n "(cached) $ac_c" 1>&6
3804else
3805  cat > conftest.$ac_ext <<EOF
3806#line 3807 "configure"
3807#include "confdefs.h"
3808/* System header to define __stub macros and hopefully few prototypes,
3809    which can conflict with char $ac_func(); below.  */
3810#include <assert.h>
3811/* Override any gcc2 internal prototype to avoid an error.  */
3812/* We use char because int might match the return type of a gcc2
3813    builtin and then its argument prototype would still apply.  */
3814char $ac_func();
3815
3816int main() {
3817
3818/* The GNU C library defines this for functions which it implements
3819    to always fail with ENOSYS.  Some functions are actually named
3820    something starting with __ and the normal name is an alias.  */
3821#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3822choke me
3823#else
3824$ac_func();
3825#endif
3826
3827; return 0; }
3828EOF
3829if { (eval echo configure:3830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3830  rm -rf conftest*
3831  eval "ac_cv_func_$ac_func=yes"
3832else
3833  echo "configure: failed program was:" >&5
3834  cat conftest.$ac_ext >&5
3835  rm -rf conftest*
3836  eval "ac_cv_func_$ac_func=no"
3837fi
3838rm -f conftest*
3839fi
3840
3841if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3842  echo "$ac_t""yes" 1>&6
3843    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3844  cat >> confdefs.h <<EOF
3845#define $ac_tr_func 1
3846EOF
3847 
3848else
3849  echo "$ac_t""no" 1>&6
3850fi
3851done
3852
3853for ac_func in mkstemp
3854do
3855echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3856echo "configure:3857: checking for $ac_func" >&5
3857if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3858  echo $ac_n "(cached) $ac_c" 1>&6
3859else
3860  cat > conftest.$ac_ext <<EOF
3861#line 3862 "configure"
3862#include "confdefs.h"
3863/* System header to define __stub macros and hopefully few prototypes,
3864    which can conflict with char $ac_func(); below.  */
3865#include <assert.h>
3866/* Override any gcc2 internal prototype to avoid an error.  */
3867/* We use char because int might match the return type of a gcc2
3868    builtin and then its argument prototype would still apply.  */
3869char $ac_func();
3870
3871int main() {
3872
3873/* The GNU C library defines this for functions which it implements
3874    to always fail with ENOSYS.  Some functions are actually named
3875    something starting with __ and the normal name is an alias.  */
3876#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3877choke me
3878#else
3879$ac_func();
3880#endif
3881
3882; return 0; }
3883EOF
3884if { (eval echo configure:3885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3885  rm -rf conftest*
3886  eval "ac_cv_func_$ac_func=yes"
3887else
3888  echo "configure: failed program was:" >&5
3889  cat conftest.$ac_ext >&5
3890  rm -rf conftest*
3891  eval "ac_cv_func_$ac_func=no"
3892fi
3893rm -f conftest*
3894fi
3895
3896if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3897  echo "$ac_t""yes" 1>&6
3898    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3899  cat >> confdefs.h <<EOF
3900#define $ac_tr_func 1
3901EOF
3902 
3903else
3904  echo "$ac_t""no" 1>&6
3905fi
3906done
3907
3908case "$target" in
3909 *-*-irix*)
3910    # Just stubs in Irix.  Idiots.
3911    ;;
3912 *) for ac_func in mlockall
3913do
3914echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3915echo "configure:3916: checking for $ac_func" >&5
3916if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3917  echo $ac_n "(cached) $ac_c" 1>&6
3918else
3919  cat > conftest.$ac_ext <<EOF
3920#line 3921 "configure"
3921#include "confdefs.h"
3922/* System header to define __stub macros and hopefully few prototypes,
3923    which can conflict with char $ac_func(); below.  */
3924#include <assert.h>
3925/* Override any gcc2 internal prototype to avoid an error.  */
3926/* We use char because int might match the return type of a gcc2
3927    builtin and then its argument prototype would still apply.  */
3928char $ac_func();
3929
3930int main() {
3931
3932/* The GNU C library defines this for functions which it implements
3933    to always fail with ENOSYS.  Some functions are actually named
3934    something starting with __ and the normal name is an alias.  */
3935#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3936choke me
3937#else
3938$ac_func();
3939#endif
3940
3941; return 0; }
3942EOF
3943if { (eval echo configure:3944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3944  rm -rf conftest*
3945  eval "ac_cv_func_$ac_func=yes"
3946else
3947  echo "configure: failed program was:" >&5
3948  cat conftest.$ac_ext >&5
3949  rm -rf conftest*
3950  eval "ac_cv_func_$ac_func=no"
3951fi
3952rm -f conftest*
3953fi
3954
3955if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3956  echo "$ac_t""yes" 1>&6
3957    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3958  cat >> confdefs.h <<EOF
3959#define $ac_tr_func 1
3960EOF
3961 
3962else
3963  echo "$ac_t""no" 1>&6
3964fi
3965done
3966
3967    ;;
3968esac
3969for ac_func in nice nlist ntp_adjtime ntp_gettime plock
3970do
3971echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3972echo "configure:3973: checking for $ac_func" >&5
3973if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3974  echo $ac_n "(cached) $ac_c" 1>&6
3975else
3976  cat > conftest.$ac_ext <<EOF
3977#line 3978 "configure"
3978#include "confdefs.h"
3979/* System header to define __stub macros and hopefully few prototypes,
3980    which can conflict with char $ac_func(); below.  */
3981#include <assert.h>
3982/* Override any gcc2 internal prototype to avoid an error.  */
3983/* We use char because int might match the return type of a gcc2
3984    builtin and then its argument prototype would still apply.  */
3985char $ac_func();
3986
3987int main() {
3988
3989/* The GNU C library defines this for functions which it implements
3990    to always fail with ENOSYS.  Some functions are actually named
3991    something starting with __ and the normal name is an alias.  */
3992#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3993choke me
3994#else
3995$ac_func();
3996#endif
3997
3998; return 0; }
3999EOF
4000if { (eval echo configure:4001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4001  rm -rf conftest*
4002  eval "ac_cv_func_$ac_func=yes"
4003else
4004  echo "configure: failed program was:" >&5
4005  cat conftest.$ac_ext >&5
4006  rm -rf conftest*
4007  eval "ac_cv_func_$ac_func=no"
4008fi
4009rm -f conftest*
4010fi
4011
4012if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4013  echo "$ac_t""yes" 1>&6
4014    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4015  cat >> confdefs.h <<EOF
4016#define $ac_tr_func 1
4017EOF
4018 
4019else
4020  echo "$ac_t""no" 1>&6
4021fi
4022done
4023
4024for ac_func in pututline pututxline rtprio
4025do
4026echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4027echo "configure:4028: checking for $ac_func" >&5
4028if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4029  echo $ac_n "(cached) $ac_c" 1>&6
4030else
4031  cat > conftest.$ac_ext <<EOF
4032#line 4033 "configure"
4033#include "confdefs.h"
4034/* System header to define __stub macros and hopefully few prototypes,
4035    which can conflict with char $ac_func(); below.  */
4036#include <assert.h>
4037/* Override any gcc2 internal prototype to avoid an error.  */
4038/* We use char because int might match the return type of a gcc2
4039    builtin and then its argument prototype would still apply.  */
4040char $ac_func();
4041
4042int main() {
4043
4044/* The GNU C library defines this for functions which it implements
4045    to always fail with ENOSYS.  Some functions are actually named
4046    something starting with __ and the normal name is an alias.  */
4047#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4048choke me
4049#else
4050$ac_func();
4051#endif
4052
4053; return 0; }
4054EOF
4055if { (eval echo configure:4056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4056  rm -rf conftest*
4057  eval "ac_cv_func_$ac_func=yes"
4058else
4059  echo "configure: failed program was:" >&5
4060  cat conftest.$ac_ext >&5
4061  rm -rf conftest*
4062  eval "ac_cv_func_$ac_func=no"
4063fi
4064rm -f conftest*
4065fi
4066
4067if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4068  echo "$ac_t""yes" 1>&6
4069    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4070  cat >> confdefs.h <<EOF
4071#define $ac_tr_func 1
4072EOF
4073 
4074else
4075  echo "$ac_t""no" 1>&6
4076fi
4077done
4078
4079case "$target" in
4080 *-*-solaris2.5*)
4081    # Just stubs in solaris2.5.  Idiots.
4082    ;;
4083 *) for ac_func in sched_setscheduler
4084do
4085echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4086echo "configure:4087: checking for $ac_func" >&5
4087if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4088  echo $ac_n "(cached) $ac_c" 1>&6
4089else
4090  cat > conftest.$ac_ext <<EOF
4091#line 4092 "configure"
4092#include "confdefs.h"
4093/* System header to define __stub macros and hopefully few prototypes,
4094    which can conflict with char $ac_func(); below.  */
4095#include <assert.h>
4096/* Override any gcc2 internal prototype to avoid an error.  */
4097/* We use char because int might match the return type of a gcc2
4098    builtin and then its argument prototype would still apply.  */
4099char $ac_func();
4100
4101int main() {
4102
4103/* The GNU C library defines this for functions which it implements
4104    to always fail with ENOSYS.  Some functions are actually named
4105    something starting with __ and the normal name is an alias.  */
4106#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4107choke me
4108#else
4109$ac_func();
4110#endif
4111
4112; return 0; }
4113EOF
4114if { (eval echo configure:4115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4115  rm -rf conftest*
4116  eval "ac_cv_func_$ac_func=yes"
4117else
4118  echo "configure: failed program was:" >&5
4119  cat conftest.$ac_ext >&5
4120  rm -rf conftest*
4121  eval "ac_cv_func_$ac_func=no"
4122fi
4123rm -f conftest*
4124fi
4125
4126if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4127  echo "$ac_t""yes" 1>&6
4128    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4129  cat >> confdefs.h <<EOF
4130#define $ac_tr_func 1
4131EOF
4132 
4133else
4134  echo "$ac_t""no" 1>&6
4135fi
4136done
4137
4138    ;;
4139esac
4140for ac_func in setlinebuf
4141do
4142echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4143echo "configure:4144: checking for $ac_func" >&5
4144if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4145  echo $ac_n "(cached) $ac_c" 1>&6
4146else
4147  cat > conftest.$ac_ext <<EOF
4148#line 4149 "configure"
4149#include "confdefs.h"
4150/* System header to define __stub macros and hopefully few prototypes,
4151    which can conflict with char $ac_func(); below.  */
4152#include <assert.h>
4153/* Override any gcc2 internal prototype to avoid an error.  */
4154/* We use char because int might match the return type of a gcc2
4155    builtin and then its argument prototype would still apply.  */
4156char $ac_func();
4157
4158int main() {
4159
4160/* The GNU C library defines this for functions which it implements
4161    to always fail with ENOSYS.  Some functions are actually named
4162    something starting with __ and the normal name is an alias.  */
4163#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4164choke me
4165#else
4166$ac_func();
4167#endif
4168
4169; return 0; }
4170EOF
4171if { (eval echo configure:4172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4172  rm -rf conftest*
4173  eval "ac_cv_func_$ac_func=yes"
4174else
4175  echo "configure: failed program was:" >&5
4176  cat conftest.$ac_ext >&5
4177  rm -rf conftest*
4178  eval "ac_cv_func_$ac_func=no"
4179fi
4180rm -f conftest*
4181fi
4182
4183if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4184  echo "$ac_t""yes" 1>&6
4185    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4186  cat >> confdefs.h <<EOF
4187#define $ac_tr_func 1
4188EOF
4189 
4190else
4191  echo "$ac_t""no" 1>&6
4192fi
4193done
4194
4195for ac_func in setpgid setpriority setsid settimeofday setvbuf sigaction
4196do
4197echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4198echo "configure:4199: checking for $ac_func" >&5
4199if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4200  echo $ac_n "(cached) $ac_c" 1>&6
4201else
4202  cat > conftest.$ac_ext <<EOF
4203#line 4204 "configure"
4204#include "confdefs.h"
4205/* System header to define __stub macros and hopefully few prototypes,
4206    which can conflict with char $ac_func(); below.  */
4207#include <assert.h>
4208/* Override any gcc2 internal prototype to avoid an error.  */
4209/* We use char because int might match the return type of a gcc2
4210    builtin and then its argument prototype would still apply.  */
4211char $ac_func();
4212
4213int main() {
4214
4215/* The GNU C library defines this for functions which it implements
4216    to always fail with ENOSYS.  Some functions are actually named
4217    something starting with __ and the normal name is an alias.  */
4218#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4219choke me
4220#else
4221$ac_func();
4222#endif
4223
4224; return 0; }
4225EOF
4226if { (eval echo configure:4227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4227  rm -rf conftest*
4228  eval "ac_cv_func_$ac_func=yes"
4229else
4230  echo "configure: failed program was:" >&5
4231  cat conftest.$ac_ext >&5
4232  rm -rf conftest*
4233  eval "ac_cv_func_$ac_func=no"
4234fi
4235rm -f conftest*
4236fi
4237
4238if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4239  echo "$ac_t""yes" 1>&6
4240    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4241  cat >> confdefs.h <<EOF
4242#define $ac_tr_func 1
4243EOF
4244 
4245else
4246  echo "$ac_t""no" 1>&6
4247fi
4248done
4249
4250for ac_func in sigvec sigset sigsuspend stime strchr sysconf sysctl
4251do
4252echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4253echo "configure:4254: checking for $ac_func" >&5
4254if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4255  echo $ac_n "(cached) $ac_c" 1>&6
4256else
4257  cat > conftest.$ac_ext <<EOF
4258#line 4259 "configure"
4259#include "confdefs.h"
4260/* System header to define __stub macros and hopefully few prototypes,
4261    which can conflict with char $ac_func(); below.  */
4262#include <assert.h>
4263/* Override any gcc2 internal prototype to avoid an error.  */
4264/* We use char because int might match the return type of a gcc2
4265    builtin and then its argument prototype would still apply.  */
4266char $ac_func();
4267
4268int main() {
4269
4270/* The GNU C library defines this for functions which it implements
4271    to always fail with ENOSYS.  Some functions are actually named
4272    something starting with __ and the normal name is an alias.  */
4273#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4274choke me
4275#else
4276$ac_func();
4277#endif
4278
4279; return 0; }
4280EOF
4281if { (eval echo configure:4282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4282  rm -rf conftest*
4283  eval "ac_cv_func_$ac_func=yes"
4284else
4285  echo "configure: failed program was:" >&5
4286  cat conftest.$ac_ext >&5
4287  rm -rf conftest*
4288  eval "ac_cv_func_$ac_func=no"
4289fi
4290rm -f conftest*
4291fi
4292
4293if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4294  echo "$ac_t""yes" 1>&6
4295    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4296  cat >> confdefs.h <<EOF
4297#define $ac_tr_func 1
4298EOF
4299 
4300else
4301  echo "$ac_t""no" 1>&6
4302fi
4303done
4304
4305for ac_func in timer_create timer_settime umask uname updwtmp updwtmpx
4306do
4307echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4308echo "configure:4309: checking for $ac_func" >&5
4309if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4310  echo $ac_n "(cached) $ac_c" 1>&6
4311else
4312  cat > conftest.$ac_ext <<EOF
4313#line 4314 "configure"
4314#include "confdefs.h"
4315/* System header to define __stub macros and hopefully few prototypes,
4316    which can conflict with char $ac_func(); below.  */
4317#include <assert.h>
4318/* Override any gcc2 internal prototype to avoid an error.  */
4319/* We use char because int might match the return type of a gcc2
4320    builtin and then its argument prototype would still apply.  */
4321char $ac_func();
4322
4323int main() {
4324
4325/* The GNU C library defines this for functions which it implements
4326    to always fail with ENOSYS.  Some functions are actually named
4327    something starting with __ and the normal name is an alias.  */
4328#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4329choke me
4330#else
4331$ac_func();
4332#endif
4333
4334; return 0; }
4335EOF
4336if { (eval echo configure:4337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4337  rm -rf conftest*
4338  eval "ac_cv_func_$ac_func=yes"
4339else
4340  echo "configure: failed program was:" >&5
4341  cat conftest.$ac_ext >&5
4342  rm -rf conftest*
4343  eval "ac_cv_func_$ac_func=no"
4344fi
4345rm -f conftest*
4346fi
4347
4348if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4349  echo "$ac_t""yes" 1>&6
4350    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4351  cat >> confdefs.h <<EOF
4352#define $ac_tr_func 1
4353EOF
4354 
4355else
4356  echo "$ac_t""no" 1>&6
4357fi
4358done
4359
4360for ac_func in vsprintf
4361do
4362echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4363echo "configure:4364: checking for $ac_func" >&5
4364if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4365  echo $ac_n "(cached) $ac_c" 1>&6
4366else
4367  cat > conftest.$ac_ext <<EOF
4368#line 4369 "configure"
4369#include "confdefs.h"
4370/* System header to define __stub macros and hopefully few prototypes,
4371    which can conflict with char $ac_func(); below.  */
4372#include <assert.h>
4373/* Override any gcc2 internal prototype to avoid an error.  */
4374/* We use char because int might match the return type of a gcc2
4375    builtin and then its argument prototype would still apply.  */
4376char $ac_func();
4377
4378int main() {
4379
4380/* The GNU C library defines this for functions which it implements
4381    to always fail with ENOSYS.  Some functions are actually named
4382    something starting with __ and the normal name is an alias.  */
4383#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4384choke me
4385#else
4386$ac_func();
4387#endif
4388
4389; return 0; }
4390EOF
4391if { (eval echo configure:4392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4392  rm -rf conftest*
4393  eval "ac_cv_func_$ac_func=yes"
4394else
4395  echo "configure: failed program was:" >&5
4396  cat conftest.$ac_ext >&5
4397  rm -rf conftest*
4398  eval "ac_cv_func_$ac_func=no"
4399fi
4400rm -f conftest*
4401fi
4402
4403if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4404  echo "$ac_t""yes" 1>&6
4405    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4406  cat >> confdefs.h <<EOF
4407#define $ac_tr_func 1
4408EOF
4409 
4410else
4411  echo "$ac_t""no" 1>&6
4412fi
4413done
4414
4415
4416echo $ac_n "checking number of arguments to gettimeofday()""... $ac_c" 1>&6
4417echo "configure:4418: checking number of arguments to gettimeofday()" >&5
4418if eval "test \"`echo '$''{'ac_cv_func_Xettimeofday_nargs'+set}'`\" = set"; then
4419  echo $ac_n "(cached) $ac_c" 1>&6
4420else
4421  cat > conftest.$ac_ext <<EOF
4422#line 4423 "configure"
4423#include "confdefs.h"
4424#include <sys/time.h>
4425int main() {
4426
4427gettimeofday((struct timeval*)0,(struct timezone*)0);
4428settimeofday((struct timeval*)0,(struct timezone*)0);
4429
4430; return 0; }
4431EOF
4432if { (eval echo configure:4433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4433  rm -rf conftest*
4434  ac_cv_func_Xettimeofday_nargs=2
4435else
4436  echo "configure: failed program was:" >&5
4437  cat conftest.$ac_ext >&5
4438  rm -rf conftest*
4439  ac_cv_func_Xettimeofday_nargs=1
4440fi
4441rm -f conftest*
4442
4443fi
4444
4445echo "$ac_t""$ac_cv_func_Xettimeofday_nargs" 1>&6
4446if test $ac_cv_func_Xettimeofday_nargs = 1; then
4447        cat >> confdefs.h <<\EOF
4448#define SYSV_TIMEOFDAY 1
4449EOF
4450
4451fi
4452
4453echo $ac_n "checking number of arguments taken by setpgrp()""... $ac_c" 1>&6
4454echo "configure:4455: checking number of arguments taken by setpgrp()" >&5
4455if eval "test \"`echo '$''{'ac_cv_func_setpgrp_nargs'+set}'`\" = set"; then
4456  echo $ac_n "(cached) $ac_c" 1>&6
4457else
4458  cat > conftest.$ac_ext <<EOF
4459#line 4460 "configure"
4460#include "confdefs.h"
4461
4462#ifdef HAVE_SYS_TYPES_H
4463# include <sys/types.h>
4464#endif
4465#ifdef HAVE_UNISTD_H
4466# include <unistd.h>
4467#endif
4468
4469int main() {
4470setpgrp(0,0);
4471; return 0; }
4472EOF
4473if { (eval echo configure:4474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4474  rm -rf conftest*
4475  ac_cv_func_setpgrp_nargs=2
4476else
4477  echo "configure: failed program was:" >&5
4478  cat conftest.$ac_ext >&5
4479  rm -rf conftest*
4480  ac_cv_func_setpgrp_nargs=0
4481fi
4482rm -f conftest*
4483
4484fi
4485
4486echo "$ac_t""$ac_cv_func_setpgrp_nargs" 1>&6
4487if test $ac_cv_func_setpgrp_nargs = 0; then
4488        cat >> confdefs.h <<\EOF
4489#define HAVE_SETPGRP_0 1
4490EOF
4491
4492fi
4493
4494save_CFLAGS=$CFLAGS
4495CFLAGS="$CFLAGS -I$srcdir/include"
4496
4497echo $ac_n "checking argument pointer type of qsort()'s compare function and base""... $ac_c" 1>&6
4498echo "configure:4499: checking argument pointer type of qsort()'s compare function and base" >&5
4499if eval "test \"`echo '$''{'ac_cv_func_qsort_argtype'+set}'`\" = set"; then
4500  echo $ac_n "(cached) $ac_c" 1>&6
4501else
4502  cat > conftest.$ac_ext <<EOF
4503#line 4504 "configure"
4504#include "confdefs.h"
4505
4506#include "l_stdlib.h"
4507
4508#ifdef HAVE_PROTOTYPES
4509#define P(x) x
4510#else
4511#define P(x) ()
4512#endif
4513
4514extern void *base;
4515extern sortfunc P((const void *, const void *));
4516int sortfunc(a, b)
4517  const void *a;
4518  const void *b; { return 0; }
4519
4520int main() {
4521
4522qsort(base, 2, sizeof(char *), sortfunc);
4523
4524; return 0; }
4525EOF
4526if { (eval echo configure:4527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4527  rm -rf conftest*
4528  ac_cv_func_qsort_argtype=void
4529else
4530  echo "configure: failed program was:" >&5
4531  cat conftest.$ac_ext >&5
4532  rm -rf conftest*
4533  ac_cv_func_qsort_argtype=char
4534fi
4535rm -f conftest*
4536
4537fi
4538
4539echo "$ac_t""$ac_cv_func_qsort_argtype" 1>&6
4540case "$ac_cv_func_qsort_argtype" in
4541 void)
4542    cat >> confdefs.h <<\EOF
4543#define QSORT_USES_VOID_P 1
4544EOF
4545
4546    ;;
4547esac
4548
4549CFLAGS=$save_CFLAGS
4550
4551echo $ac_n "checking if declaring 'char *sys_errlist' is ok""... $ac_c" 1>&6
4552echo "configure:4553: checking if declaring 'char *sys_errlist' is ok" >&5
4553if eval "test \"`echo '$''{'ac_cv_decl_sys_errlist'+set}'`\" = set"; then
4554  echo $ac_n "(cached) $ac_c" 1>&6
4555else
4556  cat > conftest.$ac_ext <<EOF
4557#line 4558 "configure"
4558#include "confdefs.h"
4559#include <stdio.h>
4560#ifdef HAVE_ERRNO_H
4561#include <errno.h>
4562#endif
4563int main() {
4564  extern char *sys_errlist[];
4565 
4566; return 0; }
4567EOF
4568if { (eval echo configure:4569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4569  rm -rf conftest*
4570  ac_cv_decl_sys_errlist=yes
4571else
4572  echo "configure: failed program was:" >&5
4573  cat conftest.$ac_ext >&5
4574  rm -rf conftest*
4575  ac_cv_decl_sys_errlist=no
4576fi
4577rm -f conftest*
4578fi
4579
4580echo "$ac_t""$ac_cv_decl_sys_errlist" 1>&6
4581case "$ac_cv_decl_sys_errlist" in
4582 yes) cat >> confdefs.h <<\EOF
4583#define CHAR_SYS_ERRLIST 1
4584EOF
4585 ;;
4586esac
4587
4588echo $ac_n "checking if declaring 'syscall()' is ok""... $ac_c" 1>&6
4589echo "configure:4590: checking if declaring 'syscall()' is ok" >&5
4590if eval "test \"`echo '$''{'ac_cv_decl_syscall'+set}'`\" = set"; then
4591  echo $ac_n "(cached) $ac_c" 1>&6
4592else
4593  cat > conftest.$ac_ext <<EOF
4594#line 4595 "configure"
4595#include "confdefs.h"
4596
4597#ifdef HAVE_SYS_TYPES_H
4598# include <sys/types.h>
4599#endif
4600#ifdef HAVE_UNISTD_H
4601# include <unistd.h>
4602#endif
4603#ifdef HAVE_PROTOTYPES
4604#define P(x) x
4605#else
4606#define P(x) ()
4607#endif
4608
4609int main() {
4610extern int syscall P((int, struct timeval *, struct timeval *));
4611; return 0; }
4612EOF
4613if { (eval echo configure:4614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4614  rm -rf conftest*
4615  ac_cv_decl_syscall=yes
4616else
4617  echo "configure: failed program was:" >&5
4618  cat conftest.$ac_ext >&5
4619  rm -rf conftest*
4620  ac_cv_decl_syscall=no
4621fi
4622rm -f conftest*
4623fi
4624
4625echo "$ac_t""$ac_cv_decl_syscall" 1>&6
4626case "$ac_cv_decl_syscall" in
4627 yes) cat >> confdefs.h <<\EOF
4628#define DECL_SYSCALL 1
4629EOF
4630 ;;
4631esac
4632
4633case "$target" in
4634 *-*-osf4*)
4635    cat >> confdefs.h <<\EOF
4636#define DECL_PLOCK_0 1
4637EOF
4638
4639    ;;
4640 *-*-riscos4*)
4641    cat >> confdefs.h <<\EOF
4642#define DECL_ADJTIME_0 1
4643EOF
4644
4645    cat >> confdefs.h <<\EOF
4646#define DECL_BZERO_0 1
4647EOF
4648
4649    cat >> confdefs.h <<\EOF
4650#define DECL_IOCTL_0 1
4651EOF
4652
4653    cat >> confdefs.h <<\EOF
4654#define DECL_IPC_0 1
4655EOF
4656
4657    cat >> confdefs.h <<\EOF
4658#define DECL_MEMMOVE_0 1
4659EOF
4660
4661    cat >> confdefs.h <<\EOF
4662#define DECL_MKTEMP_0 1
4663EOF
4664
4665    cat >> confdefs.h <<\EOF
4666#define DECL_RENAME_0 1
4667EOF
4668
4669    cat >> confdefs.h <<\EOF
4670#define DECL_SELECT_0 1
4671EOF
4672
4673    cat >> confdefs.h <<\EOF
4674#define DECL_SETITIMER_0 1
4675EOF
4676
4677    cat >> confdefs.h <<\EOF
4678#define DECL_SETPRIORITY_0 1
4679EOF
4680
4681    cat >> confdefs.h <<\EOF
4682#define DECL_STDIO_0 1
4683EOF
4684
4685    cat >> confdefs.h <<\EOF
4686#define DECL_STRTOL_0 1
4687EOF
4688
4689    cat >> confdefs.h <<\EOF
4690#define DECL_SYSLOG_0 1
4691EOF
4692
4693    cat >> confdefs.h <<\EOF
4694#define DECL_TIME_0 1
4695EOF
4696
4697    cat >> confdefs.h <<\EOF
4698#define DECL_TIMEOFDAY_0 1
4699EOF
4700
4701    cat >> confdefs.h <<\EOF
4702#define DECL_TOLOWER_0 1
4703EOF
4704
4705    ;;
4706 *-*-solaris2*)
4707    cat >> confdefs.h <<\EOF
4708#define DECL_MKSTEMP_0 1
4709EOF
4710
4711    cat >> confdefs.h <<\EOF
4712#define DECL_SETPRIORITY_1 1
4713EOF
4714
4715    ;;
4716 *-*-sunos4*)
4717    cat >> confdefs.h <<\EOF
4718#define DECL_ADJTIME_0 1
4719EOF
4720
4721    cat >> confdefs.h <<\EOF
4722#define DECL_BCOPY_0 1
4723EOF
4724
4725    cat >> confdefs.h <<\EOF
4726#define DECL_BZERO_0 1
4727EOF
4728
4729    cat >> confdefs.h <<\EOF
4730#define DECL_IOCTL_0 1
4731EOF
4732
4733    cat >> confdefs.h <<\EOF
4734#define DECL_IPC_0 1
4735EOF
4736
4737    cat >> confdefs.h <<\EOF
4738#define DECL_MEMMOVE_0 1
4739EOF
4740
4741    cat >> confdefs.h <<\EOF
4742#define DECL_MKTEMP_0 1
4743EOF
4744
4745    cat >> confdefs.h <<\EOF
4746#define DECL_RENAME_0 1
4747EOF
4748
4749    cat >> confdefs.h <<\EOF
4750#define DECL_SELECT_0 1
4751EOF
4752
4753    cat >> confdefs.h <<\EOF
4754#define DECL_SETITIMER_0 1
4755EOF
4756
4757    cat >> confdefs.h <<\EOF
4758#define DECL_SETPRIORITY_0 1
4759EOF
4760
4761    cat >> confdefs.h <<\EOF
4762#define DECL_SIGVEC_0 1
4763EOF
4764
4765    case "`basename $ac_cv_prog_CC`" in
4766     acc*) ;;
4767     *) cat >> confdefs.h <<\EOF
4768#define DECL_STDIO_0 1
4769EOF
4770
4771        ;;
4772    esac
4773    cat >> confdefs.h <<\EOF
4774#define DECL_STRTOL_0 1
4775EOF
4776
4777    cat >> confdefs.h <<\EOF
4778#define DECL_SYSLOG_0 1
4779EOF
4780
4781    cat >> confdefs.h <<\EOF
4782#define DECL_TIME_0 1
4783EOF
4784
4785    cat >> confdefs.h <<\EOF
4786#define DECL_TIMEOFDAY_0 1
4787EOF
4788
4789    cat >> confdefs.h <<\EOF
4790#define DECL_TOLOWER_0 1
4791EOF
4792
4793    ;;
4794esac
4795
4796echo $ac_n "checking if we should use a streams device for ifconfig""... $ac_c" 1>&6
4797echo "configure:4798: checking if we should use a streams device for ifconfig" >&5
4798if eval "test \"`echo '$''{'ac_cv_var_use_streams_device_for_ifconfig'+set}'`\" = set"; then
4799  echo $ac_n "(cached) $ac_c" 1>&6
4800else
4801  ac_cv_var_use_streams_device_for_ifconfig=no
4802fi
4803
4804echo "$ac_t""$ac_cv_var_use_streams_device_for_ifconfig" 1>&6
4805
4806echo $ac_n "checking if we need extra room for SO_RCVBUF""... $ac_c" 1>&6
4807echo "configure:4808: checking if we need extra room for SO_RCVBUF" >&5
4808if eval "test \"`echo '$''{'ac_cv_var_rcvbuf_slop'+set}'`\" = set"; then
4809  echo $ac_n "(cached) $ac_c" 1>&6
4810else
4811  ans=no
4812case "$target" in
4813 *-*-hpux[567]*)
4814    ans=yes
4815    ;;
4816esac
4817ac_cv_var_rcvbuf_slop=$ans
4818fi
4819
4820echo "$ac_t""$ac_cv_var_rcvbuf_slop" 1>&6
4821case "$ac_cv_var_rcvbuf_slop" in
4822 yes) cat >> confdefs.h <<\EOF
4823#define NEED_RCVBUF_SLOP 1
4824EOF
4825 ;;
4826esac
4827
4828echo $ac_n "checking if we will open the broadcast socket""... $ac_c" 1>&6
4829echo "configure:4830: checking if we will open the broadcast socket" >&5
4830if eval "test \"`echo '$''{'ac_cv_var_open_bcast_socket'+set}'`\" = set"; then
4831  echo $ac_n "(cached) $ac_c" 1>&6
4832else
4833  ans=yes
4834case "$target" in
4835 *-*-domainos)
4836    ans=no
4837    ;;
4838 *-*-linux*)
4839    ans=no
4840    ;;
4841esac
4842ac_cv_var_open_bcast_socket=$ans
4843fi
4844
4845echo "$ac_t""$ac_cv_var_open_bcast_socket" 1>&6
4846case "$ac_cv_var_open_bcast_socket" in
4847 yes) cat >> confdefs.h <<\EOF
4848#define OPEN_BCAST_SOCKET 1
4849EOF
4850 ;;
4851esac
4852
4853echo $ac_n "checking if we want the HPUX version of FindConfig()""... $ac_c" 1>&6
4854echo "configure:4855: checking if we want the HPUX version of FindConfig()" >&5
4855if eval "test \"`echo '$''{'ac_cv_var_hpux_findconfig'+set}'`\" = set"; then
4856  echo $ac_n "(cached) $ac_c" 1>&6
4857else
4858  ans=no
4859case "$target" in
4860 *-*-hpux*)
4861    ans=yes
4862    ;;
4863esac
4864ac_cv_var_hpux_findconfig=$ans
4865fi
4866
4867echo "$ac_t""$ac_cv_var_hpux_findconfig" 1>&6
4868case "$ac_cv_var_hpux_findconfig" in
4869 yes) cat >> confdefs.h <<\EOF
4870#define NEED_HPUX_FINDCONFIG 1
4871EOF
4872 ;;
4873esac
4874
4875echo $ac_n "checking if process groups are set with -pid""... $ac_c" 1>&6
4876echo "configure:4877: checking if process groups are set with -pid" >&5
4877if eval "test \"`echo '$''{'ac_cv_arg_setpgrp_negpid'+set}'`\" = set"; then
4878  echo $ac_n "(cached) $ac_c" 1>&6
4879else
4880  case "$target" in
4881 *-*-hpux[567]*)
4882    ans=no
4883    ;;
4884 *-*-hpux*)
4885    ans=yes
4886    ;;
4887 *-*-linux*)
4888    ans=yes
4889    ;;
4890 *-*-sunos3*)
4891    ans=yes
4892    ;;
4893 *-*-ultrix2*)
4894    ans=yes
4895    ;;
4896 *)
4897    ans=no
4898    ;;
4899esac
4900ac_cv_arg_setpgrp_negpid=$ans
4901fi
4902
4903echo "$ac_t""$ac_cv_arg_setpgrp_negpid" 1>&6
4904case "$ac_cv_arg_setpgrp_negpid" in
4905 yes) cat >> confdefs.h <<\EOF
4906#define UDP_BACKWARDS_SETOWN 1
4907EOF
4908 ;;
4909esac
4910
4911echo $ac_n "checking if we need a ctty for F_SETOWN""... $ac_c" 1>&6
4912echo "configure:4913: checking if we need a ctty for F_SETOWN" >&5
4913if eval "test \"`echo '$''{'ac_cv_func_ctty_for_f_setown'+set}'`\" = set"; then
4914  echo $ac_n "(cached) $ac_c" 1>&6
4915else
4916  case "$target" in
4917 *-*-bsdi2*)
4918    ans=yes
4919    ;;
4920 *-*-freebsd*)
4921    ans=yes
4922    ;;
4923 *-*-osf*)
4924    ans=yes
4925    ;;
4926 *) ans=no
4927    ;;
4928esac
4929ac_cv_func_ctty_for_f_setown=$ans
4930fi
4931
4932echo "$ac_t""$ac_cv_func_ctty_for_f_setown" 1>&6
4933case "$ac_cv_func_ctty_for_f_setown" in
4934 yes) cat >> confdefs.h <<\EOF
4935#define USE_FSETOWNCTTY 1
4936EOF
4937 ;;
4938esac
4939
4940ntp_warning='GRONK'
4941echo $ac_n "checking if we'll use clock_settime or settimeofday or stime""... $ac_c" 1>&6
4942echo "configure:4943: checking if we'll use clock_settime or settimeofday or stime" >&5
4943case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
4944 yes*)
4945    ntp_warning=''
4946    ans='clock_settime()'
4947    ;;
4948 noyes*)
4949    ntp_warning='But clock_settime() would be better (if we had it)'
4950    ans='settimeofday()'
4951    ;;
4952 nonoyes)
4953    ntp_warning='Which is the worst of the three'
4954    ans='stime()'
4955    ;;
4956 *)
4957    case "$host" in
4958     $target) ntp_warning='Which leaves us with nothing to use!'
4959    ans=none
4960    ;;
4961esac
4962esac
4963echo "$ac_t""$ans" 1>&6
4964case "$ntp_warning" in
4965 '') ;;
4966 *) echo "configure: warning: *** $ntp_warning ***" 1>&2
4967    ;;
4968esac
4969
4970echo $ac_n "checking if we have a losing syscall()""... $ac_c" 1>&6
4971echo "configure:4972: checking if we have a losing syscall()" >&5
4972if eval "test \"`echo '$''{'ac_cv_var_syscall_bug'+set}'`\" = set"; then
4973  echo $ac_n "(cached) $ac_c" 1>&6
4974else
4975  case "$target" in
4976 *-*-solaris2.4*)
4977    ans=yes
4978    ;;
4979 *) ans=no
4980    ;;
4981esac
4982ac_cv_var_syscall_bug=$ans
4983fi
4984
4985echo "$ac_t""$ac_cv_var_syscall_bug" 1>&6
4986case "$ac_cv_var_syscall_bug" in
4987 yes) cat >> confdefs.h <<\EOF
4988#define SYSCALL_BUG 1
4989EOF
4990 ;;
4991esac
4992
4993echo $ac_n "checking for Streams/TLI""... $ac_c" 1>&6
4994echo "configure:4995: checking for Streams/TLI" >&5
4995if eval "test \"`echo '$''{'ac_cv_var_streams_tli'+set}'`\" = set"; then
4996  echo $ac_n "(cached) $ac_c" 1>&6
4997else
4998   case "$ac_cv_header_sys_stropts_h" in
4999  yes)
5000     ans=no
5001     # There must be a better way...
5002     case "$target" in
5003      *-sni-sysv*)
5004         ans=yes
5005         ;;
5006      *-*-ptx*)
5007         ans=yes
5008         ;;
5009     esac
5010     ;;
5011 esac
5012 ac_cv_var_streams_tli=$ans
5013fi
5014
5015echo "$ac_t""$ac_cv_var_streams_tli" 1>&6
5016case "$ac_cv_var_streams_tli" in
5017 yes)
5018    cat >> confdefs.h <<\EOF
5019#define STREAMS_TLI 1
5020EOF
5021
5022    ;;
5023esac
5024
5025echo $ac_n "checking for SIGIO""... $ac_c" 1>&6
5026echo "configure:5027: checking for SIGIO" >&5
5027if eval "test \"`echo '$''{'ac_cv_hdr_def_sigio'+set}'`\" = set"; then
5028  echo $ac_n "(cached) $ac_c" 1>&6
5029else
5030  cat > conftest.$ac_ext <<EOF
5031#line 5032 "configure"
5032#include "confdefs.h"
5033#include <signal.h>
5034#ifdef SIGIO
5035   yes
5036#endif
5037 
5038EOF
5039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5040  egrep "yes" >/dev/null 2>&1; then
5041  rm -rf conftest*
5042  ac_cv_hdr_def_sigio=yes
5043else
5044  rm -rf conftest*
5045  ac_cv_hdr_def_sigio=no
5046fi
5047rm -f conftest*
5048
5049fi
5050
5051echo "$ac_t""$ac_cv_hdr_def_sigio" 1>&6
5052
5053echo $ac_n "checking if we want to use signalled IO""... $ac_c" 1>&6
5054echo "configure:5055: checking if we want to use signalled IO" >&5
5055if eval "test \"`echo '$''{'ac_cv_var_signalled_io'+set}'`\" = set"; then
5056  echo $ac_n "(cached) $ac_c" 1>&6
5057else
5058  ans=no
5059case "$ac_cv_hdr_def_sigio" in
5060 yes)
5061    ans=yes
5062    case "$target" in
5063     alpha-dec-osf4*)
5064        ans=no
5065        ;;
5066     *-convex-*)
5067        ans=no
5068        ;;
5069     *-dec-*)
5070        ans=no
5071        ;;
5072     *-sni-sysv*)
5073        ans=no
5074        ;;
5075     *-univel-sysv*)
5076        ans=no
5077        ;;
5078     *-*-irix6*)
5079        ans=no
5080        ;;
5081     *-*-linux*)
5082        ans=no
5083        ;;
5084    esac
5085    ;;
5086esac
5087ac_cv_var_signalled_io=$ans
5088fi
5089
5090echo "$ac_t""$ac_cv_var_signalled_io" 1>&6
5091case "$ac_cv_var_signalled_io" in
5092 yes) cat >> confdefs.h <<\EOF
5093#define HAVE_SIGNALED_IO 1
5094EOF
5095 ;;
5096esac
5097
5098echo $ac_n "checking for SIGPOLL""... $ac_c" 1>&6
5099echo "configure:5100: checking for SIGPOLL" >&5
5100if eval "test \"`echo '$''{'ac_cv_hdr_def_sigpoll'+set}'`\" = set"; then
5101  echo $ac_n "(cached) $ac_c" 1>&6
5102else
5103  cat > conftest.$ac_ext <<EOF
5104#line 5105 "configure"
5105#include "confdefs.h"
5106#include <signal.h>
5107#ifdef SIGPOLL
5108  yes
5109#endif
5110 
5111EOF
5112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5113  egrep "yes" >/dev/null 2>&1; then
5114  rm -rf conftest*
5115  ac_cv_hdr_def_sigpoll=yes
5116else
5117  rm -rf conftest*
5118  ac_cv_hdr_def_sigpoll=no
5119fi
5120rm -f conftest*
5121
5122fi
5123
5124echo "$ac_t""$ac_cv_hdr_def_sigpoll" 1>&6
5125
5126echo $ac_n "checking for SIGSYS""... $ac_c" 1>&6
5127echo "configure:5128: checking for SIGSYS" >&5
5128if eval "test \"`echo '$''{'ac_cv_hdr_def_sigsys'+set}'`\" = set"; then
5129  echo $ac_n "(cached) $ac_c" 1>&6
5130else
5131  cat > conftest.$ac_ext <<EOF
5132#line 5133 "configure"
5133#include "confdefs.h"
5134#include <signal.h>
5135#ifdef SIGSYS
5136  yes
5137#endif
5138 
5139EOF
5140if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5141  egrep "yes" >/dev/null 2>&1; then
5142  rm -rf conftest*
5143  ac_cv_hdr_def_sigsys=yes
5144else
5145  rm -rf conftest*
5146  ac_cv_hdr_def_sigsys=no
5147fi
5148rm -f conftest*
5149
5150fi
5151
5152echo "$ac_t""$ac_cv_hdr_def_sigsys" 1>&6
5153
5154echo $ac_n "checking if we can use SIGPOLL for UDP I/O""... $ac_c" 1>&6
5155echo "configure:5156: checking if we can use SIGPOLL for UDP I/O" >&5
5156if eval "test \"`echo '$''{'ac_cv_var_use_udp_sigpoll'+set}'`\" = set"; then
5157  echo $ac_n "(cached) $ac_c" 1>&6
5158else
5159  ans=no
5160case "$ac_cv_hdr_def_sigpoll" in
5161 yes)
5162        case "$target" in
5163     mips-sgi-irix*)
5164        ans=no
5165        ;;
5166     vax-dec-bsd)
5167        ans=no
5168        ;;
5169     *-sni-sysv*)
5170        ans=no
5171        ;;
5172     *-*-aix4*)
5173        ans=no
5174        ;;
5175     *-*-hpux*)
5176        ans=no
5177        ;;
5178     *-*-linux*)
5179        ans=no
5180        ;;
5181     *-*-osf*)
5182        ans=no
5183        ;;
5184     *-*-sunos*)
5185        ans=no
5186        ;;
5187     *-*-ultrix*)
5188        ans=no
5189        ;;
5190     *) ans=yes
5191        ;;
5192    esac
5193        ;;
5194esac
5195ac_cv_var_use_udp_sigpoll=$ans
5196fi
5197
5198echo "$ac_t""$ac_cv_var_use_udp_sigpoll" 1>&6
5199case "$ac_cv_var_use_udp_sigpoll" in
5200 yes) cat >> confdefs.h <<\EOF
5201#define USE_UDP_SIGPOLL 1
5202EOF
5203 ;;
5204esac
5205
5206echo $ac_n "checking if we can use SIGPOLL for TTY I/O""... $ac_c" 1>&6
5207echo "configure:5208: checking if we can use SIGPOLL for TTY I/O" >&5
5208if eval "test \"`echo '$''{'ac_cv_var_use_tty_sigpoll'+set}'`\" = set"; then
5209  echo $ac_n "(cached) $ac_c" 1>&6
5210else
5211  ans=no
5212case "$ac_cv_hdr_def_sigpoll" in
5213 yes)
5214    case "$target" in
5215     mips-sgi-irix*)
5216        ans=no
5217        ;;
5218     vax-dec-bsd)
5219        ans=no
5220        ;;
5221     *-sni-sysv*)
5222        ans=no
5223        ;;
5224     *-*-aix4*)
5225        ans=no
5226        ;;
5227     *-*-hpux*)
5228        ans=no
5229        ;;
5230     *-*-linux*)
5231        ans=no
5232        ;;
5233     *-*-osf*)
5234        ans=no
5235        ;;
5236     *-*-sunos*)
5237        ans=no
5238        ;;
5239     *-*-ultrix*)
5240        ans=no
5241        ;;
5242     *) ans=yes
5243        ;;
5244    esac
5245    ;;
5246esac
5247ac_cv_var_use_tty_sigpoll=$ans
5248fi
5249
5250echo "$ac_t""$ac_cv_var_use_tty_sigpoll" 1>&6
5251case "$ac_cv_var_use_tty_sigpoll" in
5252 yes) cat >> confdefs.h <<\EOF
5253#define USE_TTY_SIGPOLL 1
5254EOF
5255 ;;
5256esac
5257
5258echo $ac_n "checking if nlist() values might require extra indirection""... $ac_c" 1>&6
5259echo "configure:5260: checking if nlist() values might require extra indirection" >&5
5260if eval "test \"`echo '$''{'ac_cv_var_nlist_extra_indirection'+set}'`\" = set"; then
5261  echo $ac_n "(cached) $ac_c" 1>&6
5262else
5263  ans=no
5264case "$target" in
5265 *-*-aix*)
5266    ans=yes
5267    ;;
5268esac
5269ac_cv_var_nlist_extra_indirection=$ans
5270fi
5271
5272echo "$ac_t""$ac_cv_var_nlist_extra_indirection" 1>&6
5273case "$ac_cv_var_nlist_extra_indirection" in
5274 yes) cat >> confdefs.h <<\EOF
5275#define NLIST_EXTRA_INDIRECTION 1
5276EOF
5277 ;;
5278esac
5279
5280echo $ac_n "checking for a minimum recommended value of tickadj""... $ac_c" 1>&6
5281echo "configure:5282: checking for a minimum recommended value of tickadj" >&5
5282if eval "test \"`echo '$''{'ac_cv_var_min_rec_tickadj'+set}'`\" = set"; then
5283  echo $ac_n "(cached) $ac_c" 1>&6
5284else
5285  ans=no
5286case "$target" in
5287 *-*-aix*)
5288    ans=40
5289    ;;
5290esac
5291ac_cv_var_min_rec_tickadj=$ans
5292fi
5293
5294echo "$ac_t""$ac_cv_var_min_rec_tickadj" 1>&6
5295case "$ac_cv_var_min_rec_tickadj" in
5296 ''|no) ;;
5297 *) cat >> confdefs.h <<EOF
5298#define MIN_REC_TICKADJ $ac_cv_var_min_rec_tickadj
5299EOF
5300 ;;
5301esac
5302
5303echo $ac_n "checking if the TTY code permits PARENB and IGNPAR""... $ac_c" 1>&6
5304echo "configure:5305: checking if the TTY code permits PARENB and IGNPAR" >&5
5305if eval "test \"`echo '$''{'ac_cv_var_no_parenb_ignpar'+set}'`\" = set"; then
5306  echo $ac_n "(cached) $ac_c" 1>&6
5307else
5308  ans=no
5309case "$target" in
5310 mips-sgi-irix*)
5311    ans=yes
5312    ;;
5313esac
5314ac_cv_var_no_parenb_ignpar=$ans
5315fi
5316
5317echo "$ac_t""$ac_cv_var_no_parenb_ignpar" 1>&6
5318case "$ac_cv_var_no_parenb_ignpar" in
5319 yes) cat >> confdefs.h <<\EOF
5320#define NO_PARENB_IGNPAR 1
5321EOF
5322 ;;
5323esac
5324
5325echo $ac_n "checking if we're including debugging code""... $ac_c" 1>&6
5326echo "configure:5327: checking if we're including debugging code" >&5
5327# Check whether --enable-debugging or --disable-debugging was given.
5328if test "${enable_debugging+set}" = set; then
5329  enableval="$enable_debugging"
5330  ntp_ok=$enableval
5331else
5332  ntp_ok=yes
5333fi
5334
5335if test "$ntp_ok" = "yes"; then
5336    cat >> confdefs.h <<\EOF
5337#define DEBUG 1
5338EOF
5339
5340fi
5341echo "$ac_t""$ntp_ok" 1>&6
5342
5343echo $ac_n "checking if we have the tty_clk line discipline/streams module""... $ac_c" 1>&6
5344echo "configure:5345: checking if we have the tty_clk line discipline/streams module" >&5
5345if eval "test \"`echo '$''{'ac_cv_var_tty_clk'+set}'`\" = set"; then
5346  echo $ac_n "(cached) $ac_c" 1>&6
5347else
5348  ac_cv_var_tty_clk=$ac_cv_header_sys_clkdefs_h
5349fi
5350
5351echo "$ac_t""$ac_cv_var_tty_clk" 1>&6
5352case "$ac_cv_var_tty_clk" in
5353 yes) cat >> confdefs.h <<\EOF
5354#define TTYCLK 1
5355EOF
5356 ;;
5357esac
5358
5359echo $ac_n "checking for the ppsclock streams module""... $ac_c" 1>&6
5360echo "configure:5361: checking for the ppsclock streams module" >&5
5361if eval "test \"`echo '$''{'ac_cv_var_ppsclock'+set}'`\" = set"; then
5362  echo $ac_n "(cached) $ac_c" 1>&6
5363else
5364  ac_cv_var_ppsclock=$ac_cv_header_sys_ppsclock_h
5365fi
5366
5367echo "$ac_t""$ac_cv_var_ppsclock" 1>&6
5368case "$ac_cv_var_ppsclock" in
5369 yes) cat >> confdefs.h <<\EOF
5370#define PPS 1
5371EOF
5372 ;;
5373esac
5374
5375echo $ac_n "checking for kernel multicast support""... $ac_c" 1>&6
5376echo "configure:5377: checking for kernel multicast support" >&5
5377if eval "test \"`echo '$''{'ac_cv_var_mcast'+set}'`\" = set"; then
5378  echo $ac_n "(cached) $ac_c" 1>&6
5379else
5380  cat > conftest.$ac_ext <<EOF
5381#line 5382 "configure"
5382#include "confdefs.h"
5383#include <netinet/in.h>
5384#ifdef IP_ADD_MEMBERSHIP
5385   yes
5386#endif
5387 
5388EOF
5389if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5390  egrep "yes" >/dev/null 2>&1; then
5391  rm -rf conftest*
5392  ac_cv_var_mcast=yes
5393else
5394  rm -rf conftest*
5395  ac_cv_var_mcast=no
5396fi
5397rm -f conftest*
5398
5399fi
5400
5401echo "$ac_t""$ac_cv_var_mcast" 1>&6
5402case "$ac_cv_var_mcast" in
5403 yes) cat >> confdefs.h <<\EOF
5404#define MCAST 1
5405EOF
5406 ;;
5407esac
5408
5409echo $ac_n "checking availability of ntp_{adj,get}time()""... $ac_c" 1>&6
5410echo "configure:5411: checking availability of ntp_{adj,get}time()" >&5
5411if eval "test \"`echo '$''{'ac_cv_var_ntp_syscalls'+set}'`\" = set"; then
5412  echo $ac_n "(cached) $ac_c" 1>&6
5413else
5414  ac_cv_var_ntp_syscalls=no
5415 case "$ac_cv_func___adjtimex$ac_cv_func___ntp_gettime" in
5416  yesyes)
5417    ac_cv_var_ntp_syscalls=libc
5418    ;;
5419  *) case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime" in
5420      yesyes)
5421        ac_cv_var_ntp_syscalls=libc
5422        ;;
5423      *) cat > conftest.$ac_ext <<EOF
5424#line 5425 "configure"
5425#include "confdefs.h"
5426#include <sys/syscall.h>
5427#if defined(SYS_ntp_gettime) && defined(SYS_ntp_adjtime)
5428           yes
5429#endif
5430         
5431EOF
5432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5433  egrep "yes" >/dev/null 2>&1; then
5434  rm -rf conftest*
5435  ac_cv_var_ntp_syscalls=kernel
5436fi
5437rm -f conftest*
5438
5439         ;;
5440     esac
5441     ;;
5442 esac
5443fi
5444
5445echo "$ac_t""$ac_cv_var_ntp_syscalls" 1>&6
5446case "$ac_cv_var_ntp_syscalls" in
5447 libc)
5448    cat >> confdefs.h <<\EOF
5449#define NTP_SYSCALLS_LIBC 1
5450EOF
5451
5452    ;;
5453 kernel)
5454    cat >> confdefs.h <<\EOF
5455#define NTP_SYSCALLS_STD 1
5456EOF
5457
5458    ;;
5459 *)
5460    ;;
5461esac
5462
5463echo $ac_n "checking if sys/timex.h has STA_FLL""... $ac_c" 1>&6
5464echo "configure:5465: checking if sys/timex.h has STA_FLL" >&5
5465if eval "test \"`echo '$''{'ac_cv_var_sta_fll'+set}'`\" = set"; then
5466  echo $ac_n "(cached) $ac_c" 1>&6
5467else
5468  cat > conftest.$ac_ext <<EOF
5469#line 5470 "configure"
5470#include "confdefs.h"
5471#include <sys/timex.h>
5472#ifdef STA_FLL
5473    yes
5474#endif
5475   
5476EOF
5477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5478  egrep "yes" >/dev/null 2>&1; then
5479  rm -rf conftest*
5480  ac_cv_var_sta_fll=yes
5481else
5482  rm -rf conftest*
5483  ac_cv_var_sta_fll=no
5484fi
5485rm -f conftest*
5486
5487fi
5488
5489echo "$ac_t""$ac_cv_var_sta_fll" 1>&6
5490
5491echo $ac_n "checking if we have kernel PLL support""... $ac_c" 1>&6
5492echo "configure:5493: checking if we have kernel PLL support" >&5
5493if eval "test \"`echo '$''{'ac_cv_var_kernel_pll'+set}'`\" = set"; then
5494  echo $ac_n "(cached) $ac_c" 1>&6
5495else
5496  case "$ac_cv_header_sys_timex_h$ac_cv_var_sta_fll$ac_cv_var_ntp_syscalls" in
5497 *no*)
5498    ac_cv_var_kernel_pll=no
5499    ;;
5500 *) ac_cv_var_kernel_pll=yes
5501    ;;
5502esac
5503fi
5504
5505echo "$ac_t""$ac_cv_var_kernel_pll" 1>&6
5506case "$ac_cv_var_kernel_pll" in
5507 yes)
5508    cat >> confdefs.h <<\EOF
5509#define KERNEL_PLL 1
5510EOF
5511
5512    ;;
5513esac
5514
5515echo $ac_n "checking if SIOCGIFCONF returns buffer size in the buffer""... $ac_c" 1>&6
5516echo "configure:5517: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
5517if eval "test \"`echo '$''{'ac_cv_var_size_returned_in_buffer'+set}'`\" = set"; then
5518  echo $ac_n "(cached) $ac_c" 1>&6
5519else
5520  ans=no
5521  case "$target" in
5522   *-fujitsu-uxp*)
5523      ans=yes
5524      ;;
5525   *-ncr-sysv4*)
5526      ans=yes
5527      ;;
5528   *-univel-sysv*)
5529      ans=yes
5530      ;;
5531  esac
5532  ac_cv_var_size_returned_in_buffer=$ans
5533fi
5534
5535echo "$ac_t""$ac_cv_var_size_returned_in_buffer" 1>&6
5536case "$ac_cv_var_size_returned_in_buffer" in
5537 yes) cat >> confdefs.h <<\EOF
5538#define SIZE_RETURNED_IN_BUFFER 1
5539EOF
5540 ;;
5541esac
5542
5543echo $ac_n "checking if we want GDT surveying code""... $ac_c" 1>&6
5544echo "configure:5545: checking if we want GDT surveying code" >&5
5545if eval "test \"`echo '$''{'ac_cv_var_gdt_surveying'+set}'`\" = set"; then
5546  echo $ac_n "(cached) $ac_c" 1>&6
5547else
5548  # Check whether --enable-gdt-surveying or --disable-gdt-surveying was given.
5549if test "${enable_gdt_surveying+set}" = set; then
5550  enableval="$enable_gdt_surveying"
5551  ans=$enableval
5552else
5553  ans=no
5554fi
5555
5556ac_cv_var_gdt_surveying=$ans
5557fi
5558
5559echo "$ac_t""$ac_cv_var_gdt_surveying" 1>&6
5560case "$ac_cv_var_gdt_surveying" in
5561 yes) cat >> confdefs.h <<\EOF
5562#define GDT_SURVEYING 1
5563EOF
5564 ;;
5565esac
5566
5567echo $ac_n "checking if we want to use MD5 authentication""... $ac_c" 1>&6
5568echo "configure:5569: checking if we want to use MD5 authentication" >&5
5569if eval "test \"`echo '$''{'ac_cv_var_use_md5'+set}'`\" = set"; then
5570  echo $ac_n "(cached) $ac_c" 1>&6
5571else
5572  # Check whether --enable-md5 or --disable-md5 was given.
5573if test "${enable_md5+set}" = set; then
5574  enableval="$enable_md5"
5575  ans=$enableval
5576else
5577  ans=yes
5578fi
5579
5580ac_cv_var_use_md5=$ans
5581fi
5582
5583echo "$ac_t""$ac_cv_var_use_md5" 1>&6
5584case "$ac_cv_var_use_md5" in
5585 yes) cat >> confdefs.h <<\EOF
5586#define MD5 1
5587EOF
5588 ;;
5589esac
5590
5591echo $ac_n "checking if we want to use DES authentication""... $ac_c" 1>&6
5592echo "configure:5593: checking if we want to use DES authentication" >&5
5593if eval "test \"`echo '$''{'ac_cv_var_use_des'+set}'`\" = set"; then
5594  echo $ac_n "(cached) $ac_c" 1>&6
5595else
5596  # Check whether --enable-des or --disable-des was given.
5597if test "${enable_des+set}" = set; then
5598  enableval="$enable_des"
5599  ans=$enableval
5600else
5601  ans=yes
5602fi
5603
5604ac_cv_var_use_des=$ans
5605fi
5606
5607echo "$ac_t""$ac_cv_var_use_des" 1>&6
5608case "$ac_cv_var_use_des" in
5609 yes) cat >> confdefs.h <<\EOF
5610#define DES 1
5611EOF
5612 ;;
5613esac
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627ntp_refclock=no
5628
5629# HPUX only, and by explicit request
5630echo $ac_n "checking Datum/Bancomm bc635/VME interface""... $ac_c" 1>&6
5631echo "configure:5632: checking Datum/Bancomm bc635/VME interface" >&5
5632# Check whether --enable-BANCOMM or --disable-BANCOMM was given.
5633if test "${enable_BANCOMM+set}" = set; then
5634  enableval="$enable_BANCOMM"
5635  ntp_ok=$enableval
5636else
5637  ntp_ok=no
5638fi
5639
5640if test "$ntp_ok" = "yes"; then
5641    ntp_refclock=yes
5642    cat >> confdefs.h <<\EOF
5643#define BANC 1
5644EOF
5645
5646fi
5647echo "$ac_t""$ntp_ok" 1>&6
5648case "$ntp_ok$target" in
5649 yes*-*-hpux*) ;;
5650 yes*) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;;
5651esac
5652
5653#HPUX only, and only by explicit request
5654echo $ac_n "checking TrueTime GPS receiver/VME interface""... $ac_c" 1>&6
5655echo "configure:5656: checking TrueTime GPS receiver/VME interface" >&5
5656# Check whether --enable-GPSVME or --disable-GPSVME was given.
5657if test "${enable_GPSVME+set}" = set; then
5658  enableval="$enable_GPSVME"
5659  ntp_ok=$enableval
5660else
5661  ntp_ok=no
5662fi
5663
5664if test "$ntp_ok" = "yes"; then
5665    ntp_refclock=yes
5666    cat >> confdefs.h <<\EOF
5667#define GPSVME 1
5668EOF
5669
5670fi
5671echo "$ac_t""$ntp_ok" 1>&6
5672case "$ntp_ok$target" in
5673 yes*-*-hpux*) ;;
5674 yes*) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;;
5675esac
5676
5677echo $ac_n "checking for PCL720 clock support""... $ac_c" 1>&6
5678echo "configure:5679: checking for PCL720 clock support" >&5
5679case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
5680 yesyesyes)
5681    cat >> confdefs.h <<\EOF
5682#define PPS720 1
5683EOF
5684
5685    ans=yes
5686    ;;
5687 *)
5688    ans=no
5689    ;;
5690esac
5691echo "$ac_t""$ans" 1>&6
5692
5693echo $ac_n "checking for SHM clock attached thru shared memory""... $ac_c" 1>&6
5694echo "configure:5695: checking for SHM clock attached thru shared memory" >&5
5695# Check whether --enable-SHM or --disable-SHM was given.
5696if test "${enable_SHM+set}" = set; then
5697  enableval="$enable_SHM"
5698  ntp_ok=$enableval
5699else
5700  ntp_ok=no
5701fi
5702
5703if test "$ntp_ok" = "yes"; then
5704    ntp_refclock=yes
5705    cat >> confdefs.h <<\EOF
5706#define SHM_CLOCK 1
5707EOF
5708
5709fi
5710echo "$ac_t""$ntp_ok" 1>&6
5711
5712echo $ac_n "checking for default inclusion of all suitable non-PARSE clocks""... $ac_c" 1>&6
5713echo "configure:5714: checking for default inclusion of all suitable non-PARSE clocks" >&5
5714# Check whether --enable-all-clocks or --disable-all-clocks was given.
5715if test "${enable_all_clocks+set}" = set; then
5716  enableval="$enable_all_clocks"
5717  ntp_eac=$enableval
5718else
5719  ntp_eac=yes
5720fi
5721
5722echo "$ac_t""$ntp_eac" 1>&6
5723
5724echo $ac_n "checking if we have support for PARSE clocks""... $ac_c" 1>&6
5725echo "configure:5726: checking if we have support for PARSE clocks" >&5
5726case "$ac_cv_header_termio_h$ac_cv_header_termios_h" in
5727 *yes*)
5728    ntp_canparse=yes
5729    ;;
5730 *) ntp_canparse=no
5731    ;;
5732esac
5733echo "$ac_t""$ntp_canparse" 1>&6
5734
5735# Requires modem control
5736echo $ac_n "checking ACTS modem service""... $ac_c" 1>&6
5737echo "configure:5738: checking ACTS modem service" >&5
5738# Check whether --enable-ACTS or --disable-ACTS was given.
5739if test "${enable_ACTS+set}" = set; then
5740  enableval="$enable_ACTS"
5741  ntp_ok=$enableval
5742else
5743  cat > conftest.$ac_ext <<EOF
5744#line 5745 "configure"
5745#include "confdefs.h"
5746#include <termios.h>
5747#ifdef TIOCMBIS
5748         yes
5749#endif
5750         
5751EOF
5752if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5753  egrep "yes" >/dev/null 2>&1; then
5754  rm -rf conftest*
5755  ntp_ok=$ntp_eac
5756else
5757  rm -rf conftest*
5758  ntp_ok=no
5759fi
5760rm -f conftest*
5761
5762fi
5763
5764if test "$ntp_ok" = "yes"; then
5765    ntp_refclock=yes
5766    cat >> confdefs.h <<\EOF
5767#define ACTS 1
5768EOF
5769
5770fi
5771echo "$ac_t""$ntp_ok" 1>&6
5772
5773echo $ac_n "checking Arbiter 1088A/B GPS receiver""... $ac_c" 1>&6
5774echo "configure:5775: checking Arbiter 1088A/B GPS receiver" >&5
5775# Check whether --enable-ARBITER or --disable-ARBITER was given.
5776if test "${enable_ARBITER+set}" = set; then
5777  enableval="$enable_ARBITER"
5778  ntp_ok=$enableval
5779else
5780  ntp_ok=$ntp_eac
5781fi
5782
5783if test "$ntp_ok" = "yes"; then
5784    ntp_refclock=yes
5785    cat >> confdefs.h <<\EOF
5786#define ARBITER 1
5787EOF
5788
5789fi
5790echo "$ac_t""$ntp_ok" 1>&6
5791
5792echo $ac_n "checking Arcron MSF receiver""... $ac_c" 1>&6
5793echo "configure:5794: checking Arcron MSF receiver" >&5
5794# Check whether --enable-ARCRON_MSF or --disable-ARCRON_MSF was given.
5795if test "${enable_ARCRON_MSF+set}" = set; then
5796  enableval="$enable_ARCRON_MSF"
5797  ntp_ok=$enableval
5798else
5799  ntp_ok=$ntp_eac
5800fi
5801
5802if test "$ntp_ok" = "yes"; then
5803    ntp_refclock=yes
5804    cat >> confdefs.h <<\EOF
5805#define ARCRON_MSF 1
5806EOF
5807
5808fi
5809echo "$ac_t""$ntp_ok" 1>&6
5810
5811echo $ac_n "checking Austron 2200A/2201A GPS receiver""... $ac_c" 1>&6
5812echo "configure:5813: checking Austron 2200A/2201A GPS receiver" >&5
5813# Check whether --enable-AS2201 or --disable-AS2201 was given.
5814if test "${enable_AS2201+set}" = set; then
5815  enableval="$enable_AS2201"
5816  ntp_ok=$enableval
5817else
5818  ntp_ok=$ntp_eac
5819fi
5820
5821if test "$ntp_ok" = "yes"; then
5822    ntp_refclock=yes
5823    cat >> confdefs.h <<\EOF
5824#define AS2201 1
5825EOF
5826
5827fi
5828echo "$ac_t""$ntp_ok" 1>&6
5829
5830echo $ac_n "checking PPS interface""... $ac_c" 1>&6
5831echo "configure:5832: checking PPS interface" >&5
5832# Check whether --enable-ATOM or --disable-ATOM was given.
5833if test "${enable_ATOM+set}" = set; then
5834  enableval="$enable_ATOM"
5835  ntp_ok=$enableval
5836else
5837  ntp_ok=$ntp_eac
5838fi
5839
5840if test "$ntp_ok" = "yes"; then
5841    ntp_refclock=yes
5842    cat >> confdefs.h <<\EOF
5843#define ATOM 1
5844EOF
5845
5846fi
5847echo "$ac_t""$ntp_ok" 1>&6
5848
5849echo $ac_n "checking CHU modem/decoder""... $ac_c" 1>&6
5850echo "configure:5851: checking CHU modem/decoder" >&5
5851# Check whether --enable-CHU or --disable-CHU was given.
5852if test "${enable_CHU+set}" = set; then
5853  enableval="$enable_CHU"
5854  ntp_ok=$enableval
5855else
5856  case "$ntp_eac$ac_cv_header_sys_chudefs_h" in
5857     yesyes)
5858        ntp_ok=yes
5859        ;;
5860     *) ntp_ok=no
5861        ;;
5862    esac
5863fi
5864
5865if test "$ntp_ok" = "yes"; then
5866    ntp_refclock=yes
5867    cat >> confdefs.h <<\EOF
5868#define CHUCLK 1
5869EOF
5870
5871fi
5872echo "$ac_t""$ntp_ok" 1>&6
5873case "$ntp_ok$ac_cv_header_sys_chudefs_h" in
5874 yesno) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;;
5875esac
5876
5877# Not under HP-UX
5878echo $ac_n "checking Datum Programmable Time System""... $ac_c" 1>&6
5879echo "configure:5880: checking Datum Programmable Time System" >&5
5880# Check whether --enable-DATUM or --disable-DATUM was given.
5881if test "${enable_DATUM+set}" = set; then
5882  enableval="$enable_DATUM"
5883  ntp_ok=$enableval
5884else
5885  case "$ac_cv_header_termios_h" in
5886    yes)
5887        ntp_ok=$ntp_eac
5888        ;;
5889    *) ntp_ok=no
5890        ;;
5891    esac
5892fi
5893
5894if test "$ntp_ok" = "yes"; then
5895    ntp_refclock=yes
5896    cat >> confdefs.h <<\EOF
5897#define DATUM 1
5898EOF
5899
5900fi
5901echo "$ac_t""$ntp_ok" 1>&6
5902
5903# Requires modem control
5904echo $ac_n "checking Heath GC-1000 WWV/WWVH receiver""... $ac_c" 1>&6
5905echo "configure:5906: checking Heath GC-1000 WWV/WWVH receiver" >&5
5906# Check whether --enable-HEATH or --disable-HEATH was given.
5907if test "${enable_HEATH+set}" = set; then
5908  enableval="$enable_HEATH"
5909  ntp_ok=$enableval
5910else
5911  cat > conftest.$ac_ext <<EOF
5912#line 5913 "configure"
5913#include "confdefs.h"
5914#include <termios.h>
5915#ifdef TIOCMBIS
5916         yes
5917#endif
5918         
5919EOF
5920if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5921  egrep "yes" >/dev/null 2>&1; then
5922  rm -rf conftest*
5923  ntp_ok=$ntp_eac
5924else
5925  rm -rf conftest*
5926  ntp_ok=no
5927fi
5928rm -f conftest*
5929
5930fi
5931
5932if test "$ntp_ok" = "yes"; then
5933    ntp_refclock=yes
5934    cat >> confdefs.h <<\EOF
5935#define HEATH 1
5936EOF
5937
5938fi
5939echo "$ac_t""$ntp_ok" 1>&6
5940
5941echo $ac_n "checking HP 58503A GPS receiver""... $ac_c" 1>&6
5942echo "configure:5943: checking HP 58503A GPS receiver" >&5
5943# Check whether --enable-HPGPS or --disable-HPGPS was given.
5944if test "${enable_HPGPS+set}" = set; then
5945  enableval="$enable_HPGPS"
5946  ntp_ok=$enableval
5947else
5948  ntp_ok=$ntp_eac
5949fi
5950
5951if test "$ntp_ok" = "yes"; then
5952    ntp_refclock=yes
5953    cat >> confdefs.h <<\EOF
5954#define HPGPS 1
5955EOF
5956
5957fi
5958echo "$ac_t""$ntp_ok" 1>&6
5959
5960echo $ac_n "checking Sun IRIG audio decoder""... $ac_c" 1>&6
5961echo "configure:5962: checking Sun IRIG audio decoder" >&5
5962# Check whether --enable-IRIG or --disable-IRIG was given.
5963if test "${enable_IRIG+set}" = set; then
5964  enableval="$enable_IRIG"
5965  ntp_ok=$enableval
5966else
5967  case "$ac_cv_header_sys_bsd_audioirig_h" in
5968     yes)
5969        ntp_ok=$ntp_eac
5970        ;;
5971     *) ntp_ok=no
5972        ;;
5973    esac
5974fi
5975
5976if test "$ntp_ok" = "yes"; then
5977    ntp_refclock=yes
5978    cat >> confdefs.h <<\EOF
5979#define IRIG 1
5980EOF
5981
5982fi
5983echo "$ac_t""$ntp_ok" 1>&6
5984case "$ntp_ok$ac_cv_header_sys_bsd_audioirig_h" in
5985 yesno) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;;
5986esac
5987
5988echo $ac_n "checking Leitch CSD 5300 Master Clock System Driver""... $ac_c" 1>&6
5989echo "configure:5990: checking Leitch CSD 5300 Master Clock System Driver" >&5
5990# Check whether --enable-LEITCH or --disable-LEITCH was given.
5991if test "${enable_LEITCH+set}" = set; then
5992  enableval="$enable_LEITCH"
5993  ntp_ok=$enableval
5994else
5995  ntp_ok=$ntp_eac
5996fi
5997
5998if test "$ntp_ok" = "yes"; then
5999    ntp_refclock=yes
6000    cat >> confdefs.h <<\EOF
6001#define LEITCH 1
6002EOF
6003
6004fi
6005echo "$ac_t""$ntp_ok" 1>&6
6006
6007echo $ac_n "checking local clock reference""... $ac_c" 1>&6
6008echo "configure:6009: checking local clock reference" >&5
6009# Check whether --enable-LOCAL-CLOCK or --disable-LOCAL-CLOCK was given.
6010if test "${enable_LOCAL_CLOCK+set}" = set; then
6011  enableval="$enable_LOCAL_CLOCK"
6012  ntp_ok=$enableval
6013else
6014  ntp_ok=$ntp_eac
6015fi
6016
6017if test "$ntp_ok" = "yes"; then
6018    ntp_refclock=yes
6019    cat >> confdefs.h <<\EOF
6020#define LOCAL_CLOCK 1
6021EOF
6022
6023fi
6024echo "$ac_t""$ntp_ok" 1>&6
6025
6026echo $ac_n "checking EES M201 MSF receiver""... $ac_c" 1>&6
6027echo "configure:6028: checking EES M201 MSF receiver" >&5
6028# Check whether --enable-MSFEES or --disable-MSFEES was given.
6029if test "${enable_MSFEES+set}" = set; then
6030  enableval="$enable_MSFEES"
6031  ntp_ok=$enableval
6032else
6033  ntp_ok=$ntp_eac
6034fi
6035
6036if test "$ntp_ok" = "yes"; then
6037    ntp_refclock=yes
6038    cat >> confdefs.h <<\EOF
6039#define MSFEES 1
6040EOF
6041
6042fi
6043echo "$ac_t""$ntp_ok" 1>&6
6044
6045# Not Ultrix
6046echo $ac_n "checking Magnavox MX4200 GPS receiver""... $ac_c" 1>&6
6047echo "configure:6048: checking Magnavox MX4200 GPS receiver" >&5
6048# Check whether --enable-MX4200 or --disable-MX4200 was given.
6049if test "${enable_MX4200+set}" = set; then
6050  enableval="$enable_MX4200"
6051  ntp_ok=$enableval
6052else
6053  case "$ac_cv_var_ppsclock" in
6054     yes) ntp_ok=$ntp_eac
6055        ;;
6056     *) ntp_ok=no
6057        ;;
6058    esac
6059fi
6060
6061if test "$ntp_ok" = "yes"; then
6062    ntp_refclock=yes
6063    cat >> confdefs.h <<\EOF
6064#define MX4200 1
6065EOF
6066
6067fi
6068echo "$ac_t""$ntp_ok" 1>&6
6069case "$ntp_ok$target" in
6070 yes*-*-ultrix*) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;;
6071esac
6072
6073echo $ac_n "checking NMEA GPS receiver""... $ac_c" 1>&6
6074echo "configure:6075: checking NMEA GPS receiver" >&5
6075# Check whether --enable-NMEA or --disable-NMEA was given.
6076if test "${enable_NMEA+set}" = set; then
6077  enableval="$enable_NMEA"
6078  ntp_ok=$enableval
6079else
6080  ntp_ok=$ntp_eac
6081fi
6082
6083if test "$ntp_ok" = "yes"; then
6084    ntp_refclock=yes
6085    cat >> confdefs.h <<\EOF
6086#define NMEA 1
6087EOF
6088
6089fi
6090echo "$ac_t""$ntp_ok" 1>&6
6091
6092echo $ac_n "checking PST/Traconex 1020 WWV/WWVH receiver""... $ac_c" 1>&6
6093echo "configure:6094: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
6094# Check whether --enable-PST or --disable-PST was given.
6095if test "${enable_PST+set}" = set; then
6096  enableval="$enable_PST"
6097  ntp_ok=$enableval
6098else
6099  ntp_ok=$ntp_eac
6100fi
6101
6102if test "$ntp_ok" = "yes"; then
6103    ntp_refclock=yes
6104    cat >> confdefs.h <<\EOF
6105#define PST 1
6106EOF
6107
6108fi
6109echo "$ac_t""$ntp_ok" 1>&6
6110
6111# Requires modem control
6112echo $ac_n "checking PTB modem service""... $ac_c" 1>&6
6113echo "configure:6114: checking PTB modem service" >&5
6114# Check whether --enable-PTBACTS or --disable-PTBACTS was given.
6115if test "${enable_PTBACTS+set}" = set; then
6116  enableval="$enable_PTBACTS"
6117  ntp_ok=$enableval
6118else
6119  cat > conftest.$ac_ext <<EOF
6120#line 6121 "configure"
6121#include "confdefs.h"
6122#include <termios.h>
6123#ifdef TIOCMBIS
6124         yes
6125#endif
6126         
6127EOF
6128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6129  egrep "yes" >/dev/null 2>&1; then
6130  rm -rf conftest*
6131  ntp_ok=$ntp_eac
6132else
6133  rm -rf conftest*
6134  ntp_ok=no
6135fi
6136rm -f conftest*
6137
6138fi
6139
6140if test "$ntp_ok" = "yes"; then
6141    ntp_refclock=yes
6142    cat >> confdefs.h <<\EOF
6143#define PTBACTS 1
6144EOF
6145
6146fi
6147echo "$ac_t""$ntp_ok" 1>&6
6148
6149echo $ac_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface""... $ac_c" 1>&6
6150echo "configure:6151: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
6151# Check whether --enable-TPRO or --disable-TPRO was given.
6152if test "${enable_TPRO+set}" = set; then
6153  enableval="$enable_TPRO"
6154  ntp_ok=$enableval
6155else
6156  case "$ac_cv_header_sys_tpro_h" in
6157     yes)
6158        ntp_ok=$ntp_eac
6159        ;;
6160     *) ntp_ok=no
6161        ;;
6162    esac
6163fi
6164
6165if test "$ntp_ok" = "yes"; then
6166    ntp_refclock=yes
6167    cat >> confdefs.h <<\EOF
6168#define TPRO 1
6169EOF
6170
6171fi
6172echo "$ac_t""$ntp_ok" 1>&6
6173case "$ntp_ok$ac_cv_header_sys_tpro" in
6174 yesno) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;;
6175esac
6176
6177echo $ac_n "checking TRAK 8810 GPS receiver""... $ac_c" 1>&6
6178echo "configure:6179: checking TRAK 8810 GPS receiver" >&5
6179# Check whether --enable-TRAK or --disable-TRAK was given.
6180if test "${enable_TRAK+set}" = set; then
6181  enableval="$enable_TRAK"
6182  ntp_ok=$enableval
6183else
6184  ntp_ok=$ntp_eac
6185fi
6186
6187if test "$ntp_ok" = "yes"; then
6188    ntp_refclock=yes
6189    cat >> confdefs.h <<\EOF
6190#define TRAK 1
6191EOF
6192
6193fi
6194echo "$ac_t""$ntp_ok" 1>&6
6195
6196# Not on a vax-dec-bsd
6197echo $ac_n "checking Kinemetrics/TrueTime receivers""... $ac_c" 1>&6
6198echo "configure:6199: checking Kinemetrics/TrueTime receivers" >&5
6199# Check whether --enable-TRUETIME or --disable-TRUETIME was given.
6200if test "${enable_TRUETIME+set}" = set; then
6201  enableval="$enable_TRUETIME"
6202  ntp_ok=$enableval
6203else
6204  case "$target" in
6205     vax-dec-bsd)
6206        ntp_ok=no
6207        ;;
6208     *)
6209        ntp_ok=$ntp_eac
6210        ;;
6211    esac
6212fi
6213
6214if test "$ntp_ok" = "yes"; then
6215    ntp_refclock=yes
6216    cat >> confdefs.h <<\EOF
6217#define TRUETIME 1
6218EOF
6219
6220fi
6221echo "$ac_t""$ntp_ok" 1>&6
6222case "$ntp_ok$target" in
6223 yesvax-dec-bsd) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;;
6224esac
6225
6226echo $ac_n "checking Spectracom 8170/Netclock/2 WWVB receiver""... $ac_c" 1>&6
6227echo "configure:6228: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
6228# Check whether --enable-WWVB or --disable-WWVB was given.
6229if test "${enable_WWVB+set}" = set; then
6230  enableval="$enable_WWVB"
6231  ntp_ok=$enableval
6232else
6233  ntp_ok=$ntp_eac
6234fi
6235
6236if test "$ntp_ok" = "yes"; then
6237    ntp_refclock=yes
6238    cat >> confdefs.h <<\EOF
6239#define WWVB 1
6240EOF
6241
6242fi
6243echo "$ac_t""$ntp_ok" 1>&6
6244
6245# Requires modem control
6246echo $ac_n "checking USNO modem service""... $ac_c" 1>&6
6247echo "configure:6248: checking USNO modem service" >&5
6248# Check whether --enable-USNO or --disable-USNO was given.
6249if test "${enable_USNO+set}" = set; then
6250  enableval="$enable_USNO"
6251  ntp_ok=$enableval
6252else
6253  cat > conftest.$ac_ext <<EOF
6254#line 6255 "configure"
6255#include "confdefs.h"
6256#include <termios.h>
6257#ifdef TIOCMBIS
6258         yes
6259#endif
6260         
6261EOF
6262if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6263  egrep "yes" >/dev/null 2>&1; then
6264  rm -rf conftest*
6265  ntp_ok=$ntp_eac
6266else
6267  rm -rf conftest*
6268  ntp_ok=no
6269fi
6270rm -f conftest*
6271
6272fi
6273
6274if test "$ntp_ok" = "yes"; then
6275    ntp_refclock=yes
6276    cat >> confdefs.h <<\EOF
6277#define USNO 1
6278EOF
6279
6280fi
6281echo "$ac_t""$ntp_ok" 1>&6
6282
6283echo $ac_n "checking for default inclusion of all suitable PARSE clocks""... $ac_c" 1>&6
6284echo "configure:6285: checking for default inclusion of all suitable PARSE clocks" >&5
6285# Check whether --enable-parse-clocks or --disable-parse-clocks was given.
6286if test "${enable_parse_clocks+set}" = set; then
6287  enableval="$enable_parse_clocks"
6288  ntp_eapc=$enableval
6289else
6290  ntp_eapc=no
6291fi
6292
6293echo "$ac_t""$ntp_eapc" 1>&6
6294
6295case "$ntp_eac$ntp_eapc$ntp_canparse" in
6296 noyes*)
6297    { echo "configure: error: "--enable-parse-clocks" requires "--enable-all-clocks"." 1>&2; exit 1; }
6298    ;;
6299 yesyesno)
6300    { echo "configure: error: You said "--enable-parse-clocks" but PARSE isn't supported!" 1>&2; exit 1; }
6301    ;;
6302 *) ;;
6303esac
6304
6305ntp_libparse=no
6306ntp_parseutil=no
6307ntp_rawdcf=no
6308
6309echo $ac_n "checking Diem Computime Radio Clock""... $ac_c" 1>&6
6310echo "configure:6311: checking Diem Computime Radio Clock" >&5
6311# Check whether --enable-COMPUTIME or --disable-COMPUTIME was given.
6312if test "${enable_COMPUTIME+set}" = set; then
6313  enableval="$enable_COMPUTIME"
6314  ntp_ok=$enableval
6315else
6316  ntp_ok=$ntp_eapc
6317fi
6318
6319if test "$ntp_ok" = "yes"; then
6320    ntp_libparse=yes
6321    ntp_refclock=yes
6322    cat >> confdefs.h <<\EOF
6323#define CLOCK_COMPUTIME 1
6324EOF
6325
6326fi
6327echo "$ac_t""$ntp_ok" 1>&6
6328case "$ntp_ok$ntp_canparse" in
6329 yesno)
6330    { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
6331    ;;
6332esac
6333
6334echo $ac_n "checking ELV/DCF7000 clock""... $ac_c" 1>&6
6335echo "configure:6336: checking ELV/DCF7000 clock" >&5
6336# Check whether --enable-DCF7000 or --disable-DCF7000 was given.
6337if test "${enable_DCF7000+set}" = set; then
6338  enableval="$enable_DCF7000"
6339  ntp_ok=$enableval
6340else
6341  ntp_ok=$ntp_eapc
6342fi
6343
6344if test "$ntp_ok" = "yes"; then
6345    ntp_libparse=yes
6346    ntp_refclock=yes
6347    cat >> confdefs.h <<\EOF
6348#define CLOCK_DCF7000 1
6349EOF
6350
6351fi
6352echo "$ac_t""$ntp_ok" 1>&6
6353case "$ntp_ok$ntp_canparse" in
6354 yesno)
6355    { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
6356    ;;
6357esac
6358
6359echo $ac_n "checking HOPF 6021 clock""... $ac_c" 1>&6
6360echo "configure:6361: checking HOPF 6021 clock" >&5
6361# Check whether --enable-HOPF6021 or --disable-HOPF6021 was given.
6362if test "${enable_HOPF6021+set}" = set; then
6363  enableval="$enable_HOPF6021"
6364  ntp_ok=$enableval
6365else
6366  ntp_ok=$ntp_eapc
6367fi
6368
6369if test "$ntp_ok" = "yes"; then
6370    ntp_libparse=yes
6371    ntp_refclock=yes
6372    cat >> confdefs.h <<\EOF
6373#define CLOCK_HOPF6021 1
6374EOF
6375
6376fi
6377echo "$ac_t""$ntp_ok" 1>&6
6378case "$ntp_ok$ntp_canparse" in
6379 yesno)
6380    { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
6381    ;;
6382esac
6383
6384echo $ac_n "checking Meinberg clocks""... $ac_c" 1>&6
6385echo "configure:6386: checking Meinberg clocks" >&5
6386# Check whether --enable-MEINBERG or --disable-MEINBERG was given.
6387if test "${enable_MEINBERG+set}" = set; then
6388  enableval="$enable_MEINBERG"
6389  ntp_ok=$enableval
6390else
6391  ntp_ok=$ntp_eapc
6392fi
6393
6394if test "$ntp_ok" = "yes"; then
6395    ntp_libparse=yes
6396    ntp_refclock=yes
6397    cat >> confdefs.h <<\EOF
6398#define CLOCK_MEINBERG 1
6399EOF
6400
6401fi
6402echo "$ac_t""$ntp_ok" 1>&6
6403case "$ntp_ok$ntp_canparse" in
6404 yesno)
6405    { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
6406    ;;
6407esac
6408
6409echo $ac_n "checking DCF77 raw time code""... $ac_c" 1>&6
6410echo "configure:6411: checking DCF77 raw time code" >&5
6411# Check whether --enable-RAWDCF or --disable-RAWDCF was given.
6412if test "${enable_RAWDCF+set}" = set; then
6413  enableval="$enable_RAWDCF"
6414  ntp_ok=$enableval
6415else
6416  ntp_ok=$ntp_eapc
6417fi
6418
6419if test "$ntp_ok" = "yes"; then
6420    ntp_libparse=yes
6421    ntp_parseutil=yes
6422    ntp_refclock=yes
6423    ntp_rawdcf=yes
6424    cat >> confdefs.h <<\EOF
6425#define CLOCK_RAWDCF 1
6426EOF
6427
6428fi
6429echo "$ac_t""$ntp_ok" 1>&6
6430case "$ntp_ok$ntp_canparse" in
6431 yesno)
6432    { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
6433    ;;
6434esac
6435
6436case "$ntp_rawdcf" in
6437 yes)
6438    echo $ac_n "checking if we must enable parity for RAWDCF""... $ac_c" 1>&6
6439echo "configure:6440: checking if we must enable parity for RAWDCF" >&5
6440if eval "test \"`echo '$''{'ac_cv_var_rawdcf_parity'+set}'`\" = set"; then
6441  echo $ac_n "(cached) $ac_c" 1>&6
6442else
6443  ans=no
6444    case "$target" in
6445     *-*-linux*)
6446        ans=yes
6447        ;;
6448    esac
6449    ac_cv_var_rawdcf_parity=$ans
6450fi
6451
6452echo "$ac_t""$ac_cv_var_rawdcf_parity" 1>&6
6453    case "$ac_cv_var_rawdcf_parity" in
6454     yes) cat >> confdefs.h <<\EOF
6455#define RAWDCF_NO_IGNPAR 1
6456EOF
6457 ;;
6458    esac
6459
6460    echo $ac_n "checking if we are powering the DCF77 from DTR""... $ac_c" 1>&6
6461echo "configure:6462: checking if we are powering the DCF77 from DTR" >&5
6462if eval "test \"`echo '$''{'ac_cv_var_dtr_powers_dcf77'+set}'`\" = set"; then
6463  echo $ac_n "(cached) $ac_c" 1>&6
6464else
6465  ans=no
6466    case "$target" in
6467     *-*-linux*)
6468        ans=yes
6469        ;;
6470    esac
6471    ac_cv_var_dtr_powers_dcf77=$ans
6472fi
6473
6474echo "$ac_t""$ac_cv_var_dtr_powers_dcf77" 1>&6
6475    case "$ac_cv_var_dtr_powers_dcf77" in
6476     yes) cat >> confdefs.h <<\EOF
6477#define RAWDCF_SETDTR 1
6478EOF
6479 ;;
6480    esac
6481    ;;
6482 *) # HMS: Is this a good idea?
6483    ac_cv_var_rawdcf_parity=no
6484    ac_cv_var_dtr_powers_dcf77=no
6485    ;;
6486esac
6487
6488echo $ac_n "checking RCC 8000 clock""... $ac_c" 1>&6
6489echo "configure:6490: checking RCC 8000 clock" >&5
6490# Check whether --enable-RCC8000 or --disable-RCC8000 was given.
6491if test "${enable_RCC8000+set}" = set; then
6492  enableval="$enable_RCC8000"
6493  ntp_ok=$enableval
6494else
6495  ntp_ok=$ntp_eapc
6496fi
6497
6498if test "$ntp_ok" = "yes"; then
6499    ntp_libparse=yes
6500    ntp_refclock=yes
6501    cat >> confdefs.h <<\EOF
6502#define CLOCK_RCC8000 1
6503EOF
6504
6505fi
6506echo "$ac_t""$ntp_ok" 1>&6
6507case "$ntp_ok$ntp_canparse" in
6508 yesno)
6509    { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
6510    ;;
6511esac
6512
6513echo $ac_n "checking Schmid DCF77 clock""... $ac_c" 1>&6
6514echo "configure:6515: checking Schmid DCF77 clock" >&5
6515# Check whether --enable-SCHMID or --disable-SCHMID was given.
6516if test "${enable_SCHMID+set}" = set; then
6517  enableval="$enable_SCHMID"
6518  ntp_ok=$enableval
6519else
6520  ntp_ok=$ntp_eapc
6521fi
6522
6523if test "$ntp_ok" = "yes"; then
6524    ntp_libparse=yes
6525    ntp_refclock=yes
6526    cat >> confdefs.h <<\EOF
6527#define CLOCK_SCHMID 1
6528EOF
6529
6530fi
6531echo "$ac_t""$ntp_ok" 1>&6
6532case "$ntp_ok$ntp_canparse" in
6533 yesno)
6534    { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
6535    ;;
6536esac
6537
6538echo $ac_n "checking Trimble GPS receiver/TAIP protocol""... $ac_c" 1>&6
6539echo "configure:6540: checking Trimble GPS receiver/TAIP protocol" >&5
6540# Check whether --enable-TRIMTAIP or --disable-TRIMTAIP was given.
6541if test "${enable_TRIMTAIP+set}" = set; then
6542  enableval="$enable_TRIMTAIP"
6543  ntp_ok=$enableval
6544else
6545  ntp_ok=$ntp_eapc
6546fi
6547
6548if test "$ntp_ok" = "yes"; then
6549    ntp_libparse=yes
6550    ntp_refclock=yes
6551    cat >> confdefs.h <<\EOF
6552#define CLOCK_TRIMTAIP 1
6553EOF
6554
6555fi
6556echo "$ac_t""$ntp_ok" 1>&6
6557case "$ntp_ok$ntp_canparse" in
6558 yesno)
6559    { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
6560    ;;
6561esac
6562
6563echo $ac_n "checking Trimble GPS receiver/TSIP protocol""... $ac_c" 1>&6
6564echo "configure:6565: checking Trimble GPS receiver/TSIP protocol" >&5
6565# Check whether --enable-TRIMTSIP or --disable-TRIMTSIP was given.
6566if test "${enable_TRIMTSIP+set}" = set; then
6567  enableval="$enable_TRIMTSIP"
6568  ntp_ok=$enableval
6569else
6570  ntp_ok=$ntp_eapc
6571fi
6572
6573if test "$ntp_ok" = "yes"; then
6574    ntp_libparse=yes
6575    ntp_refclock=yes
6576    cat >> confdefs.h <<\EOF
6577#define CLOCK_TRIMTSIP 1
6578EOF
6579
6580fi
6581echo "$ac_t""$ntp_ok" 1>&6
6582case "$ntp_ok$ntp_canparse" in
6583 yesno)
6584    { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
6585    ;;
6586esac
6587
6588
6589
6590echo $ac_n "checking if we need to make and use the parse libraries""... $ac_c" 1>&6
6591echo "configure:6592: checking if we need to make and use the parse libraries" >&5
6592ans=no
6593case "$ntp_libparse" in
6594 yes)
6595    ans=yes
6596    cat >> confdefs.h <<\EOF
6597#define PARSE 1
6598EOF
6599
6600    LIBPARSE=../libparse/libparse.a
6601    MAKE_LIBPARSE=libparse.a
6602    ;;
6603esac
6604echo "$ac_t""$ans" 1>&6
6605
6606
6607
6608echo $ac_n "checking if we need dcf parse utilities""... $ac_c" 1>&6
6609echo "configure:6610: checking if we need dcf parse utilities" >&5
6610ans=no
6611if test "$ntp_parseutil" = "yes"; then
6612    case "$target" in
6613     *-*-sunos4*|*-*-solaris2*)
6614        ans="dcfd testdcf"
6615        DCFD=dcfd
6616        TESTDCF=testdcf
6617        ;;
6618    esac
6619fi
6620echo "$ac_t""$ans" 1>&6
6621
6622
6623echo $ac_n "checking if we can build kernel streams modules for parse""... $ac_c" 1>&6
6624echo "configure:6625: checking if we can build kernel streams modules for parse" >&5
6625ans=no
6626if test "$ntp_parseutil$ac_cv_header_sys_stropts_h" = "yesyes"; then
6627    case "$target" in
6628     sparc-*-sunos4*)
6629        case "$ac_cv_var_kernel_pll" in
6630        yes)
6631            cat >> confdefs.h <<\EOF
6632#define PPS_SYNC 1
6633EOF
6634
6635            ;;
6636        esac
6637        ans=parsestreams
6638        MAKE_PARSEKMODULE=parsestreams.loadable_module.o
6639        ;;
6640     sparc-*-solaris2*)
6641        ans=parsesolaris
6642        MAKE_PARSEKMODULE=parse
6643        ;;
6644    esac
6645fi
6646echo "$ac_t""$ans" 1>&6
6647
6648echo $ac_n "checking if we need basic refclock support""... $ac_c" 1>&6
6649echo "configure:6650: checking if we need basic refclock support" >&5
6650if test "$ntp_refclock" = "yes"; then
6651    cat >> confdefs.h <<\EOF
6652#define REFCLOCK 1
6653EOF
6654
6655fi
6656echo "$ac_t""$ntp_refclock" 1>&6
6657
6658                       
6659
6660echo $ac_n "checking if we want HP-UX adjtimed support""... $ac_c" 1>&6
6661echo "configure:6662: checking if we want HP-UX adjtimed support" >&5
6662case "$target" in
6663 *-*-hpux[56789]*)
6664    ans=yes
6665    ;;
6666 *) ans=no
6667    ;;
6668esac
6669if test "$ans" = "yes"; then
6670    MAKE_ADJTIMED=adjtimed
6671    cat >> confdefs.h <<\EOF
6672#define NEED_HPUX_ADJTIME 1
6673EOF
6674
6675fi
6676echo "$ac_t""$ans" 1>&6
6677
6678echo $ac_n "checking if we can read kmem""... $ac_c" 1>&6
6679echo "configure:6680: checking if we can read kmem" >&5
6680if eval "test \"`echo '$''{'ac_cv_var_can_kmem'+set}'`\" = set"; then
6681  echo $ac_n "(cached) $ac_c" 1>&6
6682else
6683  # Check whether --enable-kmem or --disable-kmem was given.
6684if test "${enable_kmem+set}" = set; then
6685  enableval="$enable_kmem"
6686  ans=$enableval
6687else
6688      case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
6689     *yes*)
6690        ans=yes
6691        ;;
6692     *) ans=no
6693        ;;
6694    esac
6695    case "$target" in
6696     *-*-aix*)
6697        #ans=no
6698        ;;
6699     *-*-domainos)      # Won't be found...
6700        ans=no
6701        ;;
6702     *-*-hpux*)
6703        #ans=no
6704        ;;
6705     *-*-irix[456]*)
6706        ans=no
6707        ;;
6708     *-*-linux*)
6709        ans=no
6710        ;;
6711     *-*-winnt3.5)
6712        ans=no
6713        ;;
6714    esac
6715       
6716fi
6717
6718ac_cv_var_can_kmem=$ans
6719fi
6720
6721echo "$ac_t""$ac_cv_var_can_kmem" 1>&6
6722
6723case "$ac_cv_var_can_kmem" in
6724 *yes*) ;;
6725 *) cat >> confdefs.h <<\EOF
6726#define NOKMEM 1
6727EOF
6728 ;;
6729esac
6730
6731echo $ac_n "checking if adjtime is accurate""... $ac_c" 1>&6
6732echo "configure:6733: checking if adjtime is accurate" >&5
6733if eval "test \"`echo '$''{'ac_cv_var_adjtime_is_accurate'+set}'`\" = set"; then
6734  echo $ac_n "(cached) $ac_c" 1>&6
6735else
6736  # Check whether --enable-accurate-adjtime or --disable-accurate-adjtime was given.
6737if test "${enable_accurate_adjtime+set}" = set; then
6738  enableval="$enable_accurate_adjtime"
6739  ans=$enableval
6740else
6741      case "$target" in
6742      i386-sequent-ptx*)
6743         ans=no
6744         ;;
6745      i386-unknown-osf1*)
6746         ans=yes
6747         ;;
6748      mips-sgi-irix[456]*)
6749         ans=yes
6750         ;;
6751      *-fujitsu-uxp*)
6752         ans=yes
6753         ;;
6754      *-ibm-aix4*)
6755         ans=yes
6756         ;;
6757      *-*-linux*)
6758         ans=yes
6759         ;;
6760      *-*-solaris2.[01]*)
6761         ans=no
6762         ;;
6763      *-*-solaris2*)
6764         ans=yes
6765         ;;
6766      *) ans=no
6767         ;;
6768     esac
6769         
6770fi
6771
6772ac_cv_var_adjtime_is_accurate=$ans
6773fi
6774
6775echo "$ac_t""$ac_cv_var_adjtime_is_accurate" 1>&6
6776case "$ac_cv_var_adjtime_is_accurate" in
6777 yes) cat >> confdefs.h <<\EOF
6778#define ADJTIME_IS_ACCURATE 1
6779EOF
6780 ;;
6781esac
6782
6783echo $ac_n "checking the name of 'tick' in the kernel""... $ac_c" 1>&6
6784echo "configure:6785: checking the name of 'tick' in the kernel" >&5
6785if eval "test \"`echo '$''{'ac_cv_var_nlist_tick'+set}'`\" = set"; then
6786  echo $ac_n "(cached) $ac_c" 1>&6
6787else
6788  ans=_tick
6789case "$target" in
6790 m68*-hp-hpux*) # HP9000/300?
6791    ans=_old_tick
6792    ;;
6793 *-apple-aux[23]*)
6794    ans=tick
6795    ;;
6796 *-hp-hpux*)
6797    ans=old_tick
6798    ;;
6799 *-ibm-aix[34]*)
6800    ans=no
6801    ;;
6802 *-*-ptx*)
6803    ans=tick
6804    ;;
6805 *-*-sco3.2v[45]*)
6806    ans=no
6807    ;;
6808 *-*-solaris2*)
6809    ans=nsec_per_tick
6810    ;;
6811 *-*-sysv4*)
6812    ans=tick
6813    ;;
6814esac
6815ac_cv_var_nlist_tick=$ans
6816fi
6817
6818echo "$ac_t""$ac_cv_var_nlist_tick" 1>&6
6819case "$ac_cv_var_nlist_tick" in
6820 ''|no) ;;      # HMS: I think we can only get 'no' here...
6821 *) cat >> confdefs.h <<EOF
6822#define K_TICK_NAME "$ac_cv_var_nlist_tick"
6823EOF
6824 ;;
6825esac
6826#
6827echo $ac_n "checking for the units of 'tick'""... $ac_c" 1>&6
6828echo "configure:6829: checking for the units of 'tick'" >&5
6829if eval "test \"`echo '$''{'ac_cv_var_tick_nano'+set}'`\" = set"; then
6830  echo $ac_n "(cached) $ac_c" 1>&6
6831else
6832  ans=usec
6833case "$target" in
6834 *-*-solaris2*)
6835    ans=nsec
6836    ;;
6837esac
6838ac_cv_var_tick_nano=$ans
6839fi
6840
6841echo "$ac_t""$ac_cv_var_tick_nano" 1>&6
6842case "$ac_cv_var_tick_nano" in
6843 nsec)
6844    cat >> confdefs.h <<\EOF
6845#define TICK_NANO 1
6846EOF
6847
6848    ;;
6849esac
6850#
6851echo $ac_n "checking the name of 'tickadj' in the kernel""... $ac_c" 1>&6
6852echo "configure:6853: checking the name of 'tickadj' in the kernel" >&5
6853if eval "test \"`echo '$''{'ac_cv_var_nlist_tickadj'+set}'`\" = set"; then
6854  echo $ac_n "(cached) $ac_c" 1>&6
6855else
6856  ans=_tickadj
6857case "$target" in
6858 m68*-hp-hpux*) # HP9000/300?
6859    ans=_tickadj
6860    ;;
6861 *-apple-aux[23]*)
6862    ans=tickadj
6863    ;;
6864 *-hp-hpux10*)
6865    ans=no
6866    ;;
6867 *-hp-hpux9*)
6868    ans=no
6869    ;;
6870 *-hp-hpux*)
6871    ans=tickadj
6872    ;;
6873 *-*-aix*)
6874    ans=tickadj
6875    ;;
6876 *-*-ptx*)
6877    ans=tickadj
6878    ;;
6879 *-*-sco3.2v4*)
6880    ans=stickadj
6881    ;;
6882 *-*-sco3.2v5.0*)
6883    ans=clock_drift
6884    ;;
6885 *-*-solaris2*)
6886    ans=no      # hrestime_adj
6887    ;;
6888 *-*-sysv4*)
6889    ans=tickadj
6890    ;;
6891esac
6892ac_cv_var_nlist_tickadj=$ans
6893fi
6894
6895echo "$ac_t""$ac_cv_var_nlist_tickadj" 1>&6
6896case "$ac_cv_var_nlist_tickadj" in
6897 ''|no) ;;      # HMS: I think we can only get 'no' here...
6898 *) cat >> confdefs.h <<EOF
6899#define K_TICKADJ_NAME "$ac_cv_var_nlist_tickadj"
6900EOF
6901 ;;
6902esac
6903#
6904echo $ac_n "checking for the units of 'tickadj'""... $ac_c" 1>&6
6905echo "configure:6906: checking for the units of 'tickadj'" >&5
6906if eval "test \"`echo '$''{'ac_cv_var_tickadj_nano'+set}'`\" = set"; then
6907  echo $ac_n "(cached) $ac_c" 1>&6
6908else
6909  ans=usec
6910case "$target" in
6911 *-*-solaris2*)
6912    ans=nsec
6913    ;;
6914esac
6915ac_cv_var_tickadj_nano=$ans
6916fi
6917
6918echo "$ac_t""$ac_cv_var_tickadj_nano" 1>&6
6919case "$ac_cv_var_tickadj_nano" in
6920 nsec)
6921    cat >> confdefs.h <<\EOF
6922#define TICKADJ_NANO 1
6923EOF
6924
6925    ;;
6926esac
6927#
6928echo $ac_n "checking half-heartedly for 'dosynctodr' in the kernel""... $ac_c" 1>&6
6929echo "configure:6930: checking half-heartedly for 'dosynctodr' in the kernel" >&5
6930if eval "test \"`echo '$''{'ac_cv_var_nlist_dosynctodr'+set}'`\" = set"; then
6931  echo $ac_n "(cached) $ac_c" 1>&6
6932else
6933  case "$target" in
6934 *-apple-aux[23]*)
6935    ans=no
6936    ;;
6937 *-sni-sysv*)
6938    ans=dosynctodr
6939    ;;
6940 *-*-aix*)
6941    ans=dosynctodr
6942    ;;
6943 *-*-hpux*)
6944    ans=no
6945    ;;
6946 *-*-nextstep*)
6947    ans=_dosynctodr
6948    ;;
6949 *-*-ptx*)
6950    ans=doresettodr
6951    ;;
6952 *-*-sco3.2v4*)
6953    ans=no
6954    ;;
6955 *-*-sco3.2v5*)
6956    ans=track_rtc
6957    ;;
6958 *-*-solaris2*)
6959    ans=dosynctodr
6960    ;;
6961 *-*-sysv4*)
6962    ans=doresettodr
6963    ;;
6964 *)
6965    ans=_dosynctodr
6966    ;;
6967esac
6968ac_cv_var_nlist_dosynctodr=$ans
6969fi
6970
6971echo "$ac_t""$ac_cv_var_nlist_dosynctodr" 1>&6
6972case "$ac_cv_var_nlist_dosynctodr" in
6973 no) ;;
6974 *)  cat >> confdefs.h <<EOF
6975#define K_DOSYNCTODR_NAME "$ac_cv_var_nlist_dosynctodr"
6976EOF
6977
6978     ;;
6979esac
6980#
6981echo $ac_n "checking half-heartedly for 'noprintf' in the kernel""... $ac_c" 1>&6
6982echo "configure:6983: checking half-heartedly for 'noprintf' in the kernel" >&5
6983if eval "test \"`echo '$''{'ac_cv_var_nlist_noprintf'+set}'`\" = set"; then
6984  echo $ac_n "(cached) $ac_c" 1>&6
6985else
6986  case "$target" in
6987 *-apple-aux[23]*)
6988    ans=no
6989    ;;
6990 *-sni-sysv*)
6991    ans=noprintf
6992    ;;
6993 *-*-aix*)
6994    ans=noprintf
6995    ;;
6996 *-*-hpux*)
6997    ans=no
6998    ;;
6999 *-*-ptx*)
7000    ans=noprintf
7001    ;;
7002 *-*-nextstep*)
7003    ans=_noprintf
7004    ;;
7005 *-*-solaris2*)
7006    ans=noprintf
7007    ;;
7008 *-*-sysv4*)
7009    ans=noprintf
7010    ;;
7011 *)
7012    ans=_noprintf
7013    ;;
7014esac
7015ac_cv_var_nlist_noprintf=$ans
7016fi
7017
7018echo "$ac_t""$ac_cv_var_nlist_noprintf" 1>&6
7019case "$ac_cv_var_nlist_noprintf" in
7020 no) ;;
7021 *)  cat >> confdefs.h <<EOF
7022#define K_NOPRINTF_NAME "$ac_cv_var_nlist_noprintf"
7023EOF
7024
7025     ;;
7026esac
7027
7028
7029
7030
7031echo $ac_n "checking for a default value for 'tick'""... $ac_c" 1>&6
7032echo "configure:7033: checking for a default value for 'tick'" >&5
7033if eval "test \"`echo '$''{'ac_cv_var_tick'+set}'`\" = set"; then
7034  echo $ac_n "(cached) $ac_c" 1>&6
7035else
7036  # Check whether --enable-tick or --disable-tick was given.
7037if test "${enable_tick+set}" = set; then
7038  enableval="$enable_tick"
7039  ans=$enableval
7040else
7041  ans=no
7042     case "$target" in
7043      *-univel-sysv*)
7044         ans=10000
7045         ;;
7046      *-*-irix*)
7047         ans=10000
7048         ;;
7049      *-*-linux*)
7050         ans=txc.tick
7051         ;;
7052      *-*-winnt3.5)
7053         ans='(every / 10)'
7054         ;;
7055      *)
7056         ans='1000000L/hz'
7057         ;;
7058     esac
7059fi
7060
7061ac_cv_var_tick=$ans
7062fi
7063
7064echo "$ac_t""$ac_cv_var_tick" 1>&6
7065case "$ac_cv_var_tick" in
7066 ''|no) ;;      # HMS: I think we can only get 'no' here...
7067 *) cat >> confdefs.h <<EOF
7068#define PRESET_TICK $ac_cv_var_tick
7069EOF
7070 ;;
7071esac
7072
7073echo $ac_n "checking for a default value for 'tickadj'""... $ac_c" 1>&6
7074echo "configure:7075: checking for a default value for 'tickadj'" >&5
7075if eval "test \"`echo '$''{'ac_cv_var_tickadj'+set}'`\" = set"; then
7076  echo $ac_n "(cached) $ac_c" 1>&6
7077else
7078  # Check whether --enable-tickadj or --disable-tickadj was given.
7079if test "${enable_tickadj+set}" = set; then
7080  enableval="$enable_tickadj"
7081  ans=$enableval
7082else
7083  ans='500/hz'
7084  case "$target" in
7085   *-fujitsu-uxp*)
7086      case "$ac_cv_var_adjtime_is_accurate" in
7087       yes) ans='tick/16' ;;
7088      esac
7089      ;;
7090   *-univel-sysv*)
7091      ans=80
7092      ;;
7093   *-*-aix*)
7094      case "$ac_cv_var_can_kmem" in
7095       no) ans=1000 ;;
7096      esac
7097      ;;
7098   *-*-domainos)        # Skippy: won't be found...
7099      case "$ac_cv_var_can_kmem" in
7100       no) ans=668 ;;
7101      esac
7102      ;;
7103   *-*-hpux*)
7104      case "$ac_cv_var_adjtime_is_accurate" in
7105       yes) ans='tick/16' ;;
7106      esac
7107      ;;
7108   *-*-irix*)
7109      ans=150
7110      ;;
7111   *-*-sco3.2v4*)
7112      ans=1000000L/hz
7113      ;;
7114   *-*-sco3.2v5.0*)
7115      ans=1000000L/hz
7116      ;;
7117   *-*-solaris2*)
7118      case "$ac_cv_var_adjtime_is_accurate" in
7119       yes)
7120          #ans='tick/16'
7121          ;;
7122      esac
7123      ;;
7124   *-*-winnt3.5)
7125      ans=50
7126      ;;
7127  esac
7128fi
7129
7130ac_cv_var_tickadj=$ans
7131fi
7132
7133echo "$ac_t""$ac_cv_var_tickadj" 1>&6
7134case "$ac_cv_var_tickadj" in
7135 ''|no) ;;      # HMS: I think we can only get 'no' here...
7136 *) cat >> confdefs.h <<EOF
7137#define PRESET_TICKADJ $ac_cv_var_tickadj
7138EOF
7139 ;;
7140esac
7141
7142case "$target" in
7143 *-*-sco3.2v4*) cat >> confdefs.h <<\EOF
7144#define SCO3_TICKADJ 1
7145EOF
7146 ;;
7147 *-*-sco3.2v5*) cat >> confdefs.h <<\EOF
7148#define SCO5_TICKADJ 1
7149EOF
7150 ;;
7151esac
7152
7153case "$ac_cv_var_can_kmem$ac_cv_var_tick$ac_cv_var_tickadj" in
7154 nonono)        # Don't read KMEM, no presets.  Bogus.
7155    { echo "configure: error: Can't read kmem but no PRESET_TICK or PRESET_TICKADJ" 1>&2; exit 1; }
7156    ;;
7157 nono*)         # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
7158    { echo "configure: error: Can't read kmem but no PRESET_TICK" 1>&2; exit 1; }
7159    ;;
7160 no*no)         # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Bogus.
7161    { echo "configure: error: Can't read kmem but no PRESET_TICKADJ" 1>&2; exit 1; }
7162    ;;
7163 no*)           # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ.  Cool.
7164    ;;
7165 yesnono)       # Read KMEM, no presets.  Cool.
7166    ;;
7167 yesno*)        # Read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
7168    echo "configure: warning: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." 1>&2
7169    ;;
7170 yes*no)        # Read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Cool.
7171    ;;
7172 yes*)          # READ KMEM, PRESET_TICK and PRESET_TICKADJ.
7173    ;;
7174 *)             # Generally bogus.
7175    { echo "configure: error: This shouldn't happen." 1>&2; exit 1; }
7176    ;;
7177esac
7178
7179
7180MAKE_TICKADJ=tickadj
7181
7182
7183echo $ac_n "checking if we want and can make the ntptime utility""... $ac_c" 1>&6
7184echo "configure:7185: checking if we want and can make the ntptime utility" >&5
7185if eval "test \"`echo '$''{'ac_cv_make_ntptime'+set}'`\" = set"; then
7186  echo $ac_n "(cached) $ac_c" 1>&6
7187else
7188  case "$ac_cv_var_kernel_pll$ac_cv_hdr_def_sigsys" in
7189 yes*)
7190    ans=yes
7191    ;;
7192 *)
7193    ans=no
7194    ;;
7195esac;
7196ac_cv_make_ntptime=$ans
7197fi
7198
7199echo "$ac_t""$ac_cv_make_ntptime" 1>&6
7200case "$ac_cv_make_ntptime" in
7201 yes)
7202    MAKE_NTPTIME=ntptime
7203    ;;
7204esac
7205
7206echo $ac_n "checking if we want UDP wildcard delivery""... $ac_c" 1>&6
7207echo "configure:7208: checking if we want UDP wildcard delivery" >&5
7208if eval "test \"`echo '$''{'ac_cv_var_udp_wildcard_delivery'+set}'`\" = set"; then
7209  echo $ac_n "(cached) $ac_c" 1>&6
7210else
7211  # Check whether --enable-udp-wildcard or --disable-udp-wildcard was given.
7212if test "${enable_udp_wildcard+set}" = set; then
7213  enableval="$enable_udp_wildcard"
7214  ans=$enableval
7215else
7216  ans=no
7217     case "$target" in
7218      *-fujitsu-uxp*)
7219         ans=yes
7220         ;;
7221      *-univel-sysv*)
7222         ans=yes
7223         ;;
7224      *-*-aix3.2*)
7225         ans=yes
7226         ;;
7227      *-*-aix4*)
7228         ans=yes
7229         ;;
7230      *-*-bsdi*)
7231         ans=yes
7232         ;;
7233      *-*-domainos)
7234         ans=yes
7235         ;;
7236      *-*-freebsd*)
7237        ans=yes
7238        ;;
7239      *-*-hpux*)
7240         ans=yes
7241         ;;
7242      *-*-irix6*)
7243         ans=yes
7244         ;;
7245      *-*-linux*)
7246         ans=yes
7247         ;;
7248      *-*-osf*)
7249         ans=yes
7250         ;;
7251      *-*-ptx*)
7252         ans=yes
7253         ;;
7254      *-*-solaris2*)
7255         ans=yes
7256         ;;
7257      *-*-sunos4*)
7258         ans=yes
7259         ;;
7260     esac
7261fi
7262
7263ac_cv_var_udp_wildcard_delivery=$ans
7264fi
7265
7266echo "$ac_t""$ac_cv_var_udp_wildcard_delivery" 1>&6
7267case "$ac_cv_var_udp_wildcard_delivery" in
7268 yes) cat >> confdefs.h <<\EOF
7269#define UDP_WILDCARD_DELIVERY 1
7270EOF
7271 ;;
7272esac
7273
7274echo $ac_n "checking if we should always slew the time""... $ac_c" 1>&6
7275echo "configure:7276: checking if we should always slew the time" >&5
7276if eval "test \"`echo '$''{'ac_cv_var_slew_always'+set}'`\" = set"; then
7277  echo $ac_n "(cached) $ac_c" 1>&6
7278else
7279  # Check whether --enable-slew-always or --disable-slew-always was given.
7280if test "${enable_slew_always+set}" = set; then
7281  enableval="$enable_slew_always"
7282  ans=$enableval
7283else
7284      case "$target" in
7285      *-apple-aux[23]*)
7286         ans=yes
7287         ;;
7288      *-*-bsdi[012]*)
7289         ans=no
7290         ;;
7291      *-*-bsdi*)
7292         ans=yes
7293         ;;
7294      *-*-openvms*)     # HMS: won't be found
7295         ans=yes
7296         ;;
7297      *) ans=no
7298         ;;
7299     esac
7300         
7301fi
7302
7303ac_cv_var_slew_always=$ans
7304fi
7305
7306echo "$ac_t""$ac_cv_var_slew_always" 1>&6
7307case "$ac_cv_var_slew_always" in
7308 yes) cat >> confdefs.h <<\EOF
7309#define SLEWALWAYS 1
7310EOF
7311 ;;
7312esac
7313
7314echo $ac_n "checking if we should step and slew the time""... $ac_c" 1>&6
7315echo "configure:7316: checking if we should step and slew the time" >&5
7316if eval "test \"`echo '$''{'ac_cv_var_step_slew'+set}'`\" = set"; then
7317  echo $ac_n "(cached) $ac_c" 1>&6
7318else
7319  # Check whether --enable-step-slew or --disable-step-slew was given.
7320if test "${enable_step_slew+set}" = set; then
7321  enableval="$enable_step_slew"
7322  ans=$enableval
7323else
7324      case "$target" in
7325      *-sni-sysv*)
7326         ans=yes
7327         ;;
7328      *-univel-sysv*)
7329         ans=no
7330         ;;
7331      *-*-ptx*)
7332         ans=yes
7333         ;;
7334      *-*-solaris2.[012]*)
7335         ans=yes
7336         ;;
7337      *-*-sysv4*)       # HMS: Does this catch Fujitsu UXP?
7338         ans=yes
7339         ;;
7340      *) ans=no
7341         ;;
7342     esac
7343         
7344fi
7345
7346ac_cv_var_step_slew=$ans
7347fi
7348
7349echo "$ac_t""$ac_cv_var_step_slew" 1>&6
7350case "$ac_cv_var_step_slew" in
7351 yes) cat >> confdefs.h <<\EOF
7352#define STEP_SLEW 1
7353EOF
7354 ;;
7355esac
7356
7357echo $ac_n "checking if ntpdate should step the time""... $ac_c" 1>&6
7358echo "configure:7359: checking if ntpdate should step the time" >&5
7359if eval "test \"`echo '$''{'ac_cv_var_ntpdate_step'+set}'`\" = set"; then
7360  echo $ac_n "(cached) $ac_c" 1>&6
7361else
7362  # Check whether --enable-ntpdate-step or --disable-ntpdate-step was given.
7363if test "${enable_ntpdate_step+set}" = set; then
7364  enableval="$enable_ntpdate_step"
7365  ans=$enableval
7366else
7367      case "$target" in
7368      *-apple-aux[23]*)
7369         ans=yes
7370         ;;
7371      *) ans=no
7372         ;;
7373     esac
7374         
7375fi
7376
7377ac_cv_var_ntpdate_step=$ans
7378fi
7379
7380echo "$ac_t""$ac_cv_var_ntpdate_step" 1>&6
7381case "$ac_cv_var_ntpdate_step" in
7382 yes) cat >> confdefs.h <<\EOF
7383#define FORCE_NTPDATE_STEP 1
7384EOF
7385 ;;
7386esac
7387
7388echo $ac_n "checking if we should sync TODR clock every hour""... $ac_c" 1>&6
7389echo "configure:7390: checking if we should sync TODR clock every hour" >&5
7390if eval "test \"`echo '$''{'ac_cv_var_sync_todr'+set}'`\" = set"; then
7391  echo $ac_n "(cached) $ac_c" 1>&6
7392else
7393  # Check whether --enable-hourly-todr-sync or --disable-hourly-todr-sync was given.
7394if test "${enable_hourly_todr_sync+set}" = set; then
7395  enableval="$enable_hourly_todr_sync"
7396  ans=$enableval
7397else
7398  case "$target" in
7399      *-*-nextstep*)
7400         ans=yes
7401         ;;
7402      *-*-openvms*)     # HMS: won't be found
7403         ans=yes
7404         ;;
7405      *) ans=no
7406         ;;
7407     esac
7408fi
7409
7410ac_cv_var_sync_todr=$ans
7411fi
7412
7413echo "$ac_t""$ac_cv_var_sync_todr" 1>&6
7414case "$ac_cv_var_sync_todr" in
7415 yes) cat >> confdefs.h <<\EOF
7416#define DOSYNCTODR 1
7417EOF
7418 ;;
7419esac
7420
7421case "$host" in
7422 $target)
7423    ;;
7424 *) case "$target" in
7425     *-*-vxworks*)
7426        LDFLAGS="$LDFLAGS -r"
7427        ;;
7428    esac
7429    ;;
7430esac
7431
7432# Set lbindir and lsbindir if not already set by Athena config.site
7433test -z "$lbindir" && lbindir='${bindir}'
7434test -z "$lsbindir" && lsbindir='${sbindir}'
7435
7436
7437
7438trap '' 1 2 15
7439cat > confcache <<\EOF
7440# This file is a shell script that caches the results of configure
7441# tests run on this system so they can be shared between configure
7442# scripts and configure runs.  It is not useful on other systems.
7443# If it contains results you don't want to keep, you may remove or edit it.
7444#
7445# By default, configure uses ./config.cache as the cache file,
7446# creating it if it does not exist already.  You can give configure
7447# the --cache-file=FILE option to use a different cache file; that is
7448# what configure does when it calls configure scripts in
7449# subdirectories, so they share the cache.
7450# Giving --cache-file=/dev/null disables caching, for debugging configure.
7451# config.status only pays attention to the cache file if you give it the
7452# --recheck option to rerun configure.
7453#
7454EOF
7455# The following way of writing the cache mishandles newlines in values,
7456# but we know of no workaround that is simple, portable, and efficient.
7457# So, don't put newlines in cache variables' values.
7458# Ultrix sh set writes to stderr and can't be redirected directly,
7459# and sets the high bit in the cache file unless we assign to the vars.
7460(set) 2>&1 |
7461  case `(ac_space=' '; set) 2>&1` in
7462  *ac_space=\ *)
7463    # `set' does not quote correctly, so add quotes (double-quote substitution
7464    # turns \\\\ into \\, and sed turns \\ into \).
7465    sed -n \
7466      -e "s/'/'\\\\''/g" \
7467      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7468    ;;
7469  *)
7470    # `set' quotes correctly as required by POSIX, so do not add quotes.
7471    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7472    ;;
7473  esac >> confcache
7474if cmp -s $cache_file confcache; then
7475  :
7476else
7477  if test -w $cache_file; then
7478    echo "updating cache $cache_file"
7479    cat confcache > $cache_file
7480  else
7481    echo "not updating unwritable cache $cache_file"
7482  fi
7483fi
7484rm -f confcache
7485
7486trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7487
7488test "x$prefix" = xNONE && prefix=$ac_default_prefix
7489# Let make expand exec_prefix.
7490test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7491
7492# Any assignment to VPATH causes Sun make to only execute
7493# the first set of double-colon rules, so remove it if not needed.
7494# If there is a colon in the path, we need to keep it.
7495if test "x$srcdir" = x.; then
7496  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
7497fi
7498
7499trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7500
7501DEFS=-DHAVE_CONFIG_H
7502
7503# Without the "./", some shells look in PATH for config.status.
7504: ${CONFIG_STATUS=./config.status}
7505
7506echo creating $CONFIG_STATUS
7507rm -f $CONFIG_STATUS
7508cat > $CONFIG_STATUS <<EOF
7509#! /bin/sh
7510# Generated automatically by configure.
7511# Run this file to recreate the current configuration.
7512# This directory was configured as follows,
7513# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7514#
7515# $0 $ac_configure_args
7516#
7517# Compiler output produced by configure, useful for debugging
7518# configure, is in ./config.log if it exists.
7519
7520ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7521for ac_option
7522do
7523  case "\$ac_option" in
7524  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7525    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7526    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7527  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7528    echo "$CONFIG_STATUS generated by autoconf version 2.12"
7529    exit 0 ;;
7530  -help | --help | --hel | --he | --h)
7531    echo "\$ac_cs_usage"; exit 0 ;;
7532  *) echo "\$ac_cs_usage"; exit 1 ;;
7533  esac
7534done
7535
7536ac_given_srcdir=$srcdir
7537ac_given_INSTALL="$INSTALL"
7538
7539trap 'rm -fr `echo "Makefile adjtimed/Makefile authstuff/Makefile clockstuff/Makefile \
7540include/Makefile kernel/Makefile kernel/sys/Makefile libntp/Makefile \
7541libparse/Makefile ntpdate/Makefile ntpq/Makefile ntptrace/Makefile \
7542parseutil/Makefile xntpd/Makefile \
7543xntpdc/Makefile util/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7544EOF
7545cat >> $CONFIG_STATUS <<EOF
7546
7547# Protect against being on the right side of a sed subst in config.status.
7548sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7549 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7550$ac_vpsub
7551$extrasub
7552s%@CFLAGS@%$CFLAGS%g
7553s%@CPPFLAGS@%$CPPFLAGS%g
7554s%@CXXFLAGS@%$CXXFLAGS%g
7555s%@DEFS@%$DEFS%g
7556s%@LDFLAGS@%$LDFLAGS%g
7557s%@LIBS@%$LIBS%g
7558s%@exec_prefix@%$exec_prefix%g
7559s%@prefix@%$prefix%g
7560s%@program_transform_name@%$program_transform_name%g
7561s%@bindir@%$bindir%g
7562s%@sbindir@%$sbindir%g
7563s%@libexecdir@%$libexecdir%g
7564s%@datadir@%$datadir%g
7565s%@sysconfdir@%$sysconfdir%g
7566s%@sharedstatedir@%$sharedstatedir%g
7567s%@localstatedir@%$localstatedir%g
7568s%@libdir@%$libdir%g
7569s%@includedir@%$includedir%g
7570s%@oldincludedir@%$oldincludedir%g
7571s%@infodir@%$infodir%g
7572s%@mandir@%$mandir%g
7573s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7574s%@INSTALL_DATA@%$INSTALL_DATA%g
7575s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7576s%@PACKAGE@%$PACKAGE%g
7577s%@VERSION@%$VERSION%g
7578s%@ACLOCAL@%$ACLOCAL%g
7579s%@AUTOCONF@%$AUTOCONF%g
7580s%@AUTOMAKE@%$AUTOMAKE%g
7581s%@AUTOHEADER@%$AUTOHEADER%g
7582s%@MAKEINFO@%$MAKEINFO%g
7583s%@SET_MAKE@%$SET_MAKE%g
7584s%@host@%$host%g
7585s%@host_alias@%$host_alias%g
7586s%@host_cpu@%$host_cpu%g
7587s%@host_vendor@%$host_vendor%g
7588s%@host_os@%$host_os%g
7589s%@target@%$target%g
7590s%@target_alias@%$target_alias%g
7591s%@target_cpu@%$target_cpu%g
7592s%@target_vendor@%$target_vendor%g
7593s%@target_os@%$target_os%g
7594s%@build@%$build%g
7595s%@build_alias@%$build_alias%g
7596s%@build_cpu@%$build_cpu%g
7597s%@build_vendor@%$build_vendor%g
7598s%@build_os@%$build_os%g
7599s%@CC@%$CC%g
7600s%@CPP@%$CPP%g
7601s%@AWK@%$AWK%g
7602s%@LN_S@%$LN_S%g
7603s%@RANLIB@%$RANLIB%g
7604s%@AUTHCERT@%$AUTHCERT%g
7605s%@AUTHSPEED@%$AUTHSPEED%g
7606s%@MD5DRIVER@%$MD5DRIVER%g
7607s%@KEYPARITY@%$KEYPARITY%g
7608s%@MAKEIPFP@%$MAKEIPFP%g
7609s%@MAKEPC1@%$MAKEPC1%g
7610s%@MAKEPC2@%$MAKEPC2%g
7611s%@MAKESP@%$MAKESP%g
7612s%@MKRANDKEYS@%$MKRANDKEYS%g
7613s%@OMAKEIPFP@%$OMAKEIPFP%g
7614s%@UNIXCERT@%$UNIXCERT%g
7615s%@LIBPARSE@%$LIBPARSE%g
7616s%@MAKE_LIBPARSE@%$MAKE_LIBPARSE%g
7617s%@MAKE_LIBPARSE_KERNEL@%$MAKE_LIBPARSE_KERNEL%g
7618s%@TESTDCF@%$TESTDCF%g
7619s%@DCFD@%$DCFD%g
7620s%@MAKE_PARSEKMODULE@%$MAKE_PARSEKMODULE%g
7621s%@PROPDELAY@%$PROPDELAY%g
7622s%@CHUTEST@%$CHUTEST%g
7623s%@CLKTEST@%$CLKTEST%g
7624s%@MAKE_ADJTIMED@%$MAKE_ADJTIMED%g
7625s%@MAKE_TICKADJ@%$MAKE_TICKADJ%g
7626s%@MAKE_NTPTIME@%$MAKE_NTPTIME%g
7627s%@lbindir@%$lbindir%g
7628s%@lsbindir@%$lsbindir%g
7629
7630CEOF
7631EOF
7632
7633cat >> $CONFIG_STATUS <<\EOF
7634
7635# Split the substitutions into bite-sized pieces for seds with
7636# small command number limits, like on Digital OSF/1 and HP-UX.
7637ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7638ac_file=1 # Number of current file.
7639ac_beg=1 # First line for current file.
7640ac_end=$ac_max_sed_cmds # Line after last line for current file.
7641ac_more_lines=:
7642ac_sed_cmds=""
7643while $ac_more_lines; do
7644  if test $ac_beg -gt 1; then
7645    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7646  else
7647    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7648  fi
7649  if test ! -s conftest.s$ac_file; then
7650    ac_more_lines=false
7651    rm -f conftest.s$ac_file
7652  else
7653    if test -z "$ac_sed_cmds"; then
7654      ac_sed_cmds="sed -f conftest.s$ac_file"
7655    else
7656      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7657    fi
7658    ac_file=`expr $ac_file + 1`
7659    ac_beg=$ac_end
7660    ac_end=`expr $ac_end + $ac_max_sed_cmds`
7661  fi
7662done
7663if test -z "$ac_sed_cmds"; then
7664  ac_sed_cmds=cat
7665fi
7666EOF
7667
7668cat >> $CONFIG_STATUS <<EOF
7669
7670CONFIG_FILES=\${CONFIG_FILES-"Makefile adjtimed/Makefile authstuff/Makefile clockstuff/Makefile \
7671include/Makefile kernel/Makefile kernel/sys/Makefile libntp/Makefile \
7672libparse/Makefile ntpdate/Makefile ntpq/Makefile ntptrace/Makefile \
7673parseutil/Makefile xntpd/Makefile \
7674xntpdc/Makefile util/Makefile"}
7675EOF
7676cat >> $CONFIG_STATUS <<\EOF
7677for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7678  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7679  case "$ac_file" in
7680  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7681       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7682  *) ac_file_in="${ac_file}.in" ;;
7683  esac
7684
7685  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7686
7687  # Remove last slash and all that follows it.  Not all systems have dirname.
7688  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7689  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7690    # The file is in a subdirectory.
7691    test ! -d "$ac_dir" && mkdir "$ac_dir"
7692    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7693    # A "../" for each directory in $ac_dir_suffix.
7694    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7695  else
7696    ac_dir_suffix= ac_dots=
7697  fi
7698
7699  case "$ac_given_srcdir" in
7700  .)  srcdir=.
7701      if test -z "$ac_dots"; then top_srcdir=.
7702      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7703  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7704  *) # Relative path.
7705    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7706    top_srcdir="$ac_dots$ac_given_srcdir" ;;
7707  esac
7708
7709  case "$ac_given_INSTALL" in
7710  [/$]*) INSTALL="$ac_given_INSTALL" ;;
7711  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7712  esac
7713
7714  echo creating "$ac_file"
7715  rm -f "$ac_file"
7716  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7717  case "$ac_file" in
7718  *Makefile*) ac_comsub="1i\\
7719# $configure_input" ;;
7720  *) ac_comsub= ;;
7721  esac
7722
7723  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7724  sed -e "$ac_comsub
7725s%@configure_input@%$configure_input%g
7726s%@srcdir@%$srcdir%g
7727s%@top_srcdir@%$top_srcdir%g
7728s%@INSTALL@%$INSTALL%g
7729" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7730fi; done
7731rm -f conftest.s*
7732
7733# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7734# NAME is the cpp macro being defined and VALUE is the value it is being given.
7735#
7736# ac_d sets the value in "#define NAME VALUE" lines.
7737ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
7738ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
7739ac_dC='\3'
7740ac_dD='%g'
7741# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7742ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7743ac_uB='\([      ]\)%\1#\2define\3'
7744ac_uC=' '
7745ac_uD='\4%g'
7746# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7747ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7748ac_eB='$%\1#\2define\3'
7749ac_eC=' '
7750ac_eD='%g'
7751
7752if test "${CONFIG_HEADERS+set}" != set; then
7753EOF
7754cat >> $CONFIG_STATUS <<EOF
7755  CONFIG_HEADERS="config.h"
7756EOF
7757cat >> $CONFIG_STATUS <<\EOF
7758fi
7759for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7760  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7761  case "$ac_file" in
7762  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7763       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7764  *) ac_file_in="${ac_file}.in" ;;
7765  esac
7766
7767  echo creating $ac_file
7768
7769  rm -f conftest.frag conftest.in conftest.out
7770  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7771  cat $ac_file_inputs > conftest.in
7772
7773EOF
7774
7775# Transform confdefs.h into a sed script conftest.vals that substitutes
7776# the proper values into config.h.in to produce config.h.  And first:
7777# Protect against being on the right side of a sed subst in config.status.
7778# Protect against being in an unquoted here document in config.status.
7779rm -f conftest.vals
7780cat > conftest.hdr <<\EOF
7781s/[\\&%]/\\&/g
7782s%[\\$`]%\\&%g
7783s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7784s%ac_d%ac_u%gp
7785s%ac_u%ac_e%gp
7786EOF
7787sed -n -f conftest.hdr confdefs.h > conftest.vals
7788rm -f conftest.hdr
7789
7790# This sed command replaces #undef with comments.  This is necessary, for
7791# example, in the case of _POSIX_SOURCE, which is predefined and required
7792# on some systems where configure will not decide to define it.
7793cat >> conftest.vals <<\EOF
7794s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7795EOF
7796
7797# Break up conftest.vals because some shells have a limit on
7798# the size of here documents, and old seds have small limits too.
7799
7800rm -f conftest.tail
7801while :
7802do
7803  ac_lines=`grep -c . conftest.vals`
7804  # grep -c gives empty output for an empty file on some AIX systems.
7805  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7806  # Write a limited-size here document to conftest.frag.
7807  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7808  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7809  echo 'CEOF
7810  sed -f conftest.frag conftest.in > conftest.out
7811  rm -f conftest.in
7812  mv conftest.out conftest.in
7813' >> $CONFIG_STATUS
7814  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7815  rm -f conftest.vals
7816  mv conftest.tail conftest.vals
7817done
7818rm -f conftest.vals
7819
7820cat >> $CONFIG_STATUS <<\EOF
7821  rm -f conftest.frag conftest.h
7822  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
7823  cat conftest.in >> conftest.h
7824  rm -f conftest.in
7825  if cmp -s $ac_file conftest.h 2>/dev/null; then
7826    echo "$ac_file is unchanged"
7827    rm -f conftest.h
7828  else
7829    # Remove last slash and all that follows it.  Not all systems have dirname.
7830      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7831      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7832      # The file is in a subdirectory.
7833      test ! -d "$ac_dir" && mkdir "$ac_dir"
7834    fi
7835    rm -f $ac_file
7836    mv conftest.h $ac_file
7837  fi
7838fi; done
7839
7840EOF
7841cat >> $CONFIG_STATUS <<EOF
7842
7843
7844EOF
7845cat >> $CONFIG_STATUS <<\EOF
7846test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
7847\
7848test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
7849exit 0
7850EOF
7851chmod +x $CONFIG_STATUS
7852rm -fr confdefs* $ac_clean_files
7853test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7854
7855
Note: See TracBrowser for help on using the repository browser.