xref: /freebsd/contrib/ntp/configure (revision 1e413cf93298b5b97441a21d9a50fdcd0ee9945e)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.57.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15  emulate sh
16  NULLCMD=:
17  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18  # is contrary to our usage.  Disable this feature.
19  alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21  set -o posix
22fi
23
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  as_mkdir_p=false
222fi
223
224as_executable_p="test -f"
225
226# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" 	$as_nl"
238
239# CDPATH.
240$as_unset CDPATH
241
242
243# Name of the host.
244# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245# so uname gets run too.
246ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248exec 6>&1
249
250#
251# Initializations.
252#
253ac_default_prefix=/usr/local
254ac_config_libobj_dir=.
255cross_compiling=no
256subdirs=
257MFLAGS=
258MAKEFLAGS=
259SHELL=${CONFIG_SHELL-/bin/sh}
260
261# Maximum number of lines to put in a shell here document.
262# This variable seems obsolete.  It should probably be removed, and
263# only ac_max_sed_lines should be used.
264: ${ac_max_here_lines=38}
265
266# Identity of this package.
267PACKAGE_NAME=
268PACKAGE_TARNAME=
269PACKAGE_VERSION=
270PACKAGE_STRING=
271PACKAGE_BUGREPORT=
272
273ac_unique_file="ntpd/ntp_refclock.c"
274# Factoring default headers for most tests.
275ac_includes_default="\
276#include <stdio.h>
277#if HAVE_SYS_TYPES_H
278# include <sys/types.h>
279#endif
280#if HAVE_SYS_STAT_H
281# include <sys/stat.h>
282#endif
283#if STDC_HEADERS
284# include <stdlib.h>
285# include <stddef.h>
286#else
287# if HAVE_STDLIB_H
288#  include <stdlib.h>
289# endif
290#endif
291#if HAVE_STRING_H
292# if !STDC_HEADERS && HAVE_MEMORY_H
293#  include <memory.h>
294# endif
295# include <string.h>
296#endif
297#if HAVE_STRINGS_H
298# include <strings.h>
299#endif
300#if HAVE_INTTYPES_H
301# include <inttypes.h>
302#else
303# if HAVE_STDINT_H
304#  include <stdint.h>
305# endif
306#endif
307#if HAVE_UNISTD_H
308# include <unistd.h>
309#endif"
310
311ac_subdirs_all="$ac_subdirs_all arlib"
312ac_subdirs_all="$ac_subdirs_all sntp"
313ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LN_S RANLIB ac_ct_RANLIB PATH_SH PATH_PERL READLINE_LIBS U ANSI2KNR LIBOBJS LIBPARSE MAKE_LIBPARSE MAKE_LIBPARSE_KERNEL MAKE_CHECK_Y2K OPENSSL OPENSSL_INC OPENSSL_LIB MAKE_NTP_KEYGEN LCRYPTO EF_PROGS EF_LIBS MAKE_SNTP TESTDCF DCFD MAKE_PARSEKMODULE PROPDELAY CHUTEST CLKTEST MAKE_ADJTIMED MAKE_NTPTIME MAKE_TICKADJ MAKE_TIMETRIM MAKE_LIBNTPSIM MAKE_NTPDSIM ARLIB_DIR subdirs LTLIBOBJS'
314ac_subst_files=''
315
316# Initialize some variables set by options.
317ac_init_help=
318ac_init_version=false
319# The variables have the same names as the options, with
320# dashes changed to underlines.
321cache_file=/dev/null
322exec_prefix=NONE
323no_create=
324no_recursion=
325prefix=NONE
326program_prefix=NONE
327program_suffix=NONE
328program_transform_name=s,x,x,
329silent=
330site=
331srcdir=
332verbose=
333x_includes=NONE
334x_libraries=NONE
335
336# Installation directory options.
337# These are left unexpanded so users can "make install exec_prefix=/foo"
338# and all the variables that are supposed to be based on exec_prefix
339# by default will actually change.
340# Use braces instead of parens because sh, perl, etc. also accept them.
341bindir='${exec_prefix}/bin'
342sbindir='${exec_prefix}/sbin'
343libexecdir='${exec_prefix}/libexec'
344datadir='${prefix}/share'
345sysconfdir='${prefix}/etc'
346sharedstatedir='${prefix}/com'
347localstatedir='${prefix}/var'
348libdir='${exec_prefix}/lib'
349includedir='${prefix}/include'
350oldincludedir='/usr/include'
351infodir='${prefix}/info'
352mandir='${prefix}/man'
353
354ac_prev=
355for ac_option
356do
357  # If the previous option needs an argument, assign it.
358  if test -n "$ac_prev"; then
359    eval "$ac_prev=\$ac_option"
360    ac_prev=
361    continue
362  fi
363
364  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366  # Accept the important Cygnus configure options, so we can diagnose typos.
367
368  case $ac_option in
369
370  -bindir | --bindir | --bindi | --bind | --bin | --bi)
371    ac_prev=bindir ;;
372  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373    bindir=$ac_optarg ;;
374
375  -build | --build | --buil | --bui | --bu)
376    ac_prev=build_alias ;;
377  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378    build_alias=$ac_optarg ;;
379
380  -cache-file | --cache-file | --cache-fil | --cache-fi \
381  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382    ac_prev=cache_file ;;
383  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385    cache_file=$ac_optarg ;;
386
387  --config-cache | -C)
388    cache_file=config.cache ;;
389
390  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391    ac_prev=datadir ;;
392  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393  | --da=*)
394    datadir=$ac_optarg ;;
395
396  -disable-* | --disable-*)
397    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398    # Reject names that are not valid shell variable names.
399    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401   { (exit 1); exit 1; }; }
402    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403    eval "enable_$ac_feature=no" ;;
404
405  -enable-* | --enable-*)
406    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407    # Reject names that are not valid shell variable names.
408    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410   { (exit 1); exit 1; }; }
411    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412    case $ac_option in
413      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414      *) ac_optarg=yes ;;
415    esac
416    eval "enable_$ac_feature='$ac_optarg'" ;;
417
418  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420  | --exec | --exe | --ex)
421    ac_prev=exec_prefix ;;
422  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424  | --exec=* | --exe=* | --ex=*)
425    exec_prefix=$ac_optarg ;;
426
427  -gas | --gas | --ga | --g)
428    # Obsolete; use --with-gas.
429    with_gas=yes ;;
430
431  -help | --help | --hel | --he | -h)
432    ac_init_help=long ;;
433  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434    ac_init_help=recursive ;;
435  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436    ac_init_help=short ;;
437
438  -host | --host | --hos | --ho)
439    ac_prev=host_alias ;;
440  -host=* | --host=* | --hos=* | --ho=*)
441    host_alias=$ac_optarg ;;
442
443  -includedir | --includedir | --includedi | --included | --include \
444  | --includ | --inclu | --incl | --inc)
445    ac_prev=includedir ;;
446  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447  | --includ=* | --inclu=* | --incl=* | --inc=*)
448    includedir=$ac_optarg ;;
449
450  -infodir | --infodir | --infodi | --infod | --info | --inf)
451    ac_prev=infodir ;;
452  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453    infodir=$ac_optarg ;;
454
455  -libdir | --libdir | --libdi | --libd)
456    ac_prev=libdir ;;
457  -libdir=* | --libdir=* | --libdi=* | --libd=*)
458    libdir=$ac_optarg ;;
459
460  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461  | --libexe | --libex | --libe)
462    ac_prev=libexecdir ;;
463  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464  | --libexe=* | --libex=* | --libe=*)
465    libexecdir=$ac_optarg ;;
466
467  -localstatedir | --localstatedir | --localstatedi | --localstated \
468  | --localstate | --localstat | --localsta | --localst \
469  | --locals | --local | --loca | --loc | --lo)
470    ac_prev=localstatedir ;;
471  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474    localstatedir=$ac_optarg ;;
475
476  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477    ac_prev=mandir ;;
478  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479    mandir=$ac_optarg ;;
480
481  -nfp | --nfp | --nf)
482    # Obsolete; use --without-fp.
483    with_fp=no ;;
484
485  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486  | --no-cr | --no-c | -n)
487    no_create=yes ;;
488
489  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491    no_recursion=yes ;;
492
493  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495  | --oldin | --oldi | --old | --ol | --o)
496    ac_prev=oldincludedir ;;
497  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500    oldincludedir=$ac_optarg ;;
501
502  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503    ac_prev=prefix ;;
504  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505    prefix=$ac_optarg ;;
506
507  -program-prefix | --program-prefix | --program-prefi | --program-pref \
508  | --program-pre | --program-pr | --program-p)
509    ac_prev=program_prefix ;;
510  -program-prefix=* | --program-prefix=* | --program-prefi=* \
511  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512    program_prefix=$ac_optarg ;;
513
514  -program-suffix | --program-suffix | --program-suffi | --program-suff \
515  | --program-suf | --program-su | --program-s)
516    ac_prev=program_suffix ;;
517  -program-suffix=* | --program-suffix=* | --program-suffi=* \
518  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519    program_suffix=$ac_optarg ;;
520
521  -program-transform-name | --program-transform-name \
522  | --program-transform-nam | --program-transform-na \
523  | --program-transform-n | --program-transform- \
524  | --program-transform | --program-transfor \
525  | --program-transfo | --program-transf \
526  | --program-trans | --program-tran \
527  | --progr-tra | --program-tr | --program-t)
528    ac_prev=program_transform_name ;;
529  -program-transform-name=* | --program-transform-name=* \
530  | --program-transform-nam=* | --program-transform-na=* \
531  | --program-transform-n=* | --program-transform-=* \
532  | --program-transform=* | --program-transfor=* \
533  | --program-transfo=* | --program-transf=* \
534  | --program-trans=* | --program-tran=* \
535  | --progr-tra=* | --program-tr=* | --program-t=*)
536    program_transform_name=$ac_optarg ;;
537
538  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539  | -silent | --silent | --silen | --sile | --sil)
540    silent=yes ;;
541
542  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543    ac_prev=sbindir ;;
544  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545  | --sbi=* | --sb=*)
546    sbindir=$ac_optarg ;;
547
548  -sharedstatedir | --sharedstatedir | --sharedstatedi \
549  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550  | --sharedst | --shareds | --shared | --share | --shar \
551  | --sha | --sh)
552    ac_prev=sharedstatedir ;;
553  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556  | --sha=* | --sh=*)
557    sharedstatedir=$ac_optarg ;;
558
559  -site | --site | --sit)
560    ac_prev=site ;;
561  -site=* | --site=* | --sit=*)
562    site=$ac_optarg ;;
563
564  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565    ac_prev=srcdir ;;
566  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567    srcdir=$ac_optarg ;;
568
569  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570  | --syscon | --sysco | --sysc | --sys | --sy)
571    ac_prev=sysconfdir ;;
572  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574    sysconfdir=$ac_optarg ;;
575
576  -target | --target | --targe | --targ | --tar | --ta | --t)
577    ac_prev=target_alias ;;
578  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579    target_alias=$ac_optarg ;;
580
581  -v | -verbose | --verbose | --verbos | --verbo | --verb)
582    verbose=yes ;;
583
584  -version | --version | --versio | --versi | --vers | -V)
585    ac_init_version=: ;;
586
587  -with-* | --with-*)
588    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589    # Reject names that are not valid shell variable names.
590    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591      { echo "$as_me: error: invalid package name: $ac_package" >&2
592   { (exit 1); exit 1; }; }
593    ac_package=`echo $ac_package| sed 's/-/_/g'`
594    case $ac_option in
595      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596      *) ac_optarg=yes ;;
597    esac
598    eval "with_$ac_package='$ac_optarg'" ;;
599
600  -without-* | --without-*)
601    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602    # Reject names that are not valid shell variable names.
603    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604      { echo "$as_me: error: invalid package name: $ac_package" >&2
605   { (exit 1); exit 1; }; }
606    ac_package=`echo $ac_package | sed 's/-/_/g'`
607    eval "with_$ac_package=no" ;;
608
609  --x)
610    # Obsolete; use --with-x.
611    with_x=yes ;;
612
613  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614  | --x-incl | --x-inc | --x-in | --x-i)
615    ac_prev=x_includes ;;
616  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618    x_includes=$ac_optarg ;;
619
620  -x-libraries | --x-libraries | --x-librarie | --x-librari \
621  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622    ac_prev=x_libraries ;;
623  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625    x_libraries=$ac_optarg ;;
626
627  -*) { echo "$as_me: error: unrecognized option: $ac_option
628Try \`$0 --help' for more information." >&2
629   { (exit 1); exit 1; }; }
630    ;;
631
632  *=*)
633    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634    # Reject names that are not valid shell variable names.
635    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637   { (exit 1); exit 1; }; }
638    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639    eval "$ac_envvar='$ac_optarg'"
640    export $ac_envvar ;;
641
642  *)
643    # FIXME: should be removed in autoconf 3.0.
644    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648    ;;
649
650  esac
651done
652
653if test -n "$ac_prev"; then
654  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655  { echo "$as_me: error: missing argument to $ac_option" >&2
656   { (exit 1); exit 1; }; }
657fi
658
659# Be sure to have absolute paths.
660for ac_var in exec_prefix prefix
661do
662  eval ac_val=$`echo $ac_var`
663  case $ac_val in
664    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666   { (exit 1); exit 1; }; };;
667  esac
668done
669
670# Be sure to have absolute paths.
671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672              localstatedir libdir includedir oldincludedir infodir mandir
673do
674  eval ac_val=$`echo $ac_var`
675  case $ac_val in
676    [\\/$]* | ?:[\\/]* ) ;;
677    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678   { (exit 1); exit 1; }; };;
679  esac
680done
681
682# There might be people who depend on the old broken behavior: `$host'
683# used to hold the argument of --host etc.
684# FIXME: To remove some day.
685build=$build_alias
686host=$host_alias
687target=$target_alias
688
689# FIXME: To remove some day.
690if test "x$host_alias" != x; then
691  if test "x$build_alias" = x; then
692    cross_compiling=maybe
693    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694    If a cross compiler is detected then cross compile mode will be used." >&2
695  elif test "x$build_alias" != "x$host_alias"; then
696    cross_compiling=yes
697  fi
698fi
699
700ac_tool_prefix=
701test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703test "$silent" = yes && exec 6>/dev/null
704
705
706# Find the source files, if location was not specified.
707if test -z "$srcdir"; then
708  ac_srcdir_defaulted=yes
709  # Try the directory containing this script, then its parent.
710  ac_confdir=`(dirname "$0") 2>/dev/null ||
711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712         X"$0" : 'X\(//\)[^/]' \| \
713         X"$0" : 'X\(//\)$' \| \
714         X"$0" : 'X\(/\)' \| \
715         .     : '\(.\)' 2>/dev/null ||
716echo X"$0" |
717    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719  	  /^X\(\/\/\)$/{ s//\1/; q; }
720  	  /^X\(\/\).*/{ s//\1/; q; }
721  	  s/.*/./; q'`
722  srcdir=$ac_confdir
723  if test ! -r $srcdir/$ac_unique_file; then
724    srcdir=..
725  fi
726else
727  ac_srcdir_defaulted=no
728fi
729if test ! -r $srcdir/$ac_unique_file; then
730  if test "$ac_srcdir_defaulted" = yes; then
731    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732   { (exit 1); exit 1; }; }
733  else
734    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735   { (exit 1); exit 1; }; }
736  fi
737fi
738(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740   { (exit 1); exit 1; }; }
741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742ac_env_build_alias_set=${build_alias+set}
743ac_env_build_alias_value=$build_alias
744ac_cv_env_build_alias_set=${build_alias+set}
745ac_cv_env_build_alias_value=$build_alias
746ac_env_host_alias_set=${host_alias+set}
747ac_env_host_alias_value=$host_alias
748ac_cv_env_host_alias_set=${host_alias+set}
749ac_cv_env_host_alias_value=$host_alias
750ac_env_target_alias_set=${target_alias+set}
751ac_env_target_alias_value=$target_alias
752ac_cv_env_target_alias_set=${target_alias+set}
753ac_cv_env_target_alias_value=$target_alias
754ac_env_CC_set=${CC+set}
755ac_env_CC_value=$CC
756ac_cv_env_CC_set=${CC+set}
757ac_cv_env_CC_value=$CC
758ac_env_CFLAGS_set=${CFLAGS+set}
759ac_env_CFLAGS_value=$CFLAGS
760ac_cv_env_CFLAGS_set=${CFLAGS+set}
761ac_cv_env_CFLAGS_value=$CFLAGS
762ac_env_LDFLAGS_set=${LDFLAGS+set}
763ac_env_LDFLAGS_value=$LDFLAGS
764ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765ac_cv_env_LDFLAGS_value=$LDFLAGS
766ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_env_CPPFLAGS_value=$CPPFLAGS
768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770ac_env_CPP_set=${CPP+set}
771ac_env_CPP_value=$CPP
772ac_cv_env_CPP_set=${CPP+set}
773ac_cv_env_CPP_value=$CPP
774
775#
776# Report the --help message.
777#
778if test "$ac_init_help" = "long"; then
779  # Omit some internal or obsolete options to make the list less imposing.
780  # This message is too long to be a string in the A/UX 3.1 sh.
781  cat <<_ACEOF
782\`configure' configures this package to adapt to many kinds of systems.
783
784Usage: $0 [OPTION]... [VAR=VALUE]...
785
786To assign environment variables (e.g., CC, CFLAGS...), specify them as
787VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789Defaults for the options are specified in brackets.
790
791Configuration:
792  -h, --help              display this help and exit
793      --help=short        display options specific to this package
794      --help=recursive    display the short help of all the included packages
795  -V, --version           display version information and exit
796  -q, --quiet, --silent   do not print \`checking...' messages
797      --cache-file=FILE   cache test results in FILE [disabled]
798  -C, --config-cache      alias for \`--cache-file=config.cache'
799  -n, --no-create         do not create output files
800      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
802_ACEOF
803
804  cat <<_ACEOF
805Installation directories:
806  --prefix=PREFIX         install architecture-independent files in PREFIX
807                          [$ac_default_prefix]
808  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809                          [PREFIX]
810
811By default, \`make install' will install all the files in
812\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814for instance \`--prefix=\$HOME'.
815
816For better control, use the options below.
817
818Fine tuning of the installation directories:
819  --bindir=DIR           user executables [EPREFIX/bin]
820  --sbindir=DIR          system admin executables [EPREFIX/sbin]
821  --libexecdir=DIR       program executables [EPREFIX/libexec]
822  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826  --libdir=DIR           object code libraries [EPREFIX/lib]
827  --includedir=DIR       C header files [PREFIX/include]
828  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829  --infodir=DIR          info documentation [PREFIX/info]
830  --mandir=DIR           man documentation [PREFIX/man]
831_ACEOF
832
833  cat <<\_ACEOF
834
835Program names:
836  --program-prefix=PREFIX            prepend PREFIX to installed program names
837  --program-suffix=SUFFIX            append SUFFIX to installed program names
838  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
839
840System types:
841  --build=BUILD     configure for building on BUILD [guessed]
842  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
843  --target=TARGET   configure for building compilers for TARGET [HOST]
844_ACEOF
845fi
846
847if test -n "$ac_init_help"; then
848
849  cat <<\_ACEOF
850
851Optional Features:
852  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
853  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
854  --disable-dependency-tracking Speeds up one-time builds
855  --enable-dependency-tracking  Do not reject slow dependency extractors
856  --enable-clockctl       Use /dev/clockctl for non-root time control
857  --enable-debugging      + include debugging code
858  --enable-dst-minutes=60 + minutes per DST adjustment
859  --enable-BANCOMM        - Datum/Bancomm bc635/VME interface
860  --enable-GPSVME         - TrueTime GPS receiver/VME interface
861  --enable-all-clocks     + include all suitable non-PARSE clocks:
862  --enable-ACTS           s ACTS modem service
863  --enable-ARBITER        + Arbiter 1088A/B GPS receiver
864  --enable-ARCRON-MSF     + Arcron MSF receiver
865  --enable-AS2201         + Austron 2200A/2201A GPS receiver
866  --enable-ATOM           s ATOM PPS interface
867  --enable-CHRONOLOG      + Chrono-log K-series WWVB receiver
868  --enable-CHU            + CHU modem/decoder
869  --enable-AUDIO-CHU      s CHU audio/decoder
870  --enable-DATUM          s Datum Programmable Time System
871  --enable-DUMBCLOCK      + Dumb generic hh:mm:ss local clock
872  --enable-FG             + Forum Graphic GPS
873  --enable-HEATH          s Heath GC-1000 WWV/WWVH receiver
874  --enable-HOPFSERIAL     + hopf serial clock device
875  --enable-HOPFPCI        + hopf 6039 PCI board
876  --enable-HPGPS          + HP 58503A GPS receiver
877  --enable-IRIG           s IRIG audio decoder
878  --enable-JJY            + JJY receiver
879  --enable-JUPITER        s Rockwell Jupiter GPS receiver
880  --enable-LEITCH         + Leitch CSD 5300 Master Clock System Driver
881  --enable-LOCAL-CLOCK    + local clock reference
882  --enable-MSFEES         + EES M201 MSF receiver
883  --enable-MX4200         s Magnavox MX4200 GPS receiver
884  --enable-NEOCLOCK4X     + NeoClock4X DCF77 / TDF receiver
885  --enable-NMEA           + NMEA GPS receiver
886  --enable-ONCORE         s Motorola VP/UT Oncore GPS receiver
887  --enable-PALISADE       s Palisade clock
888  --enable-PCF            + Conrad parallel port radio clock
889  --enable-PST            + PST/Traconex 1020 WWV/WWVH receiver
890  --enable-PTBACTS        s PTB modem service
891  --enable-RIPENCC        - RIPENCC specific Trimble driver
892  --enable-SHM            s SHM clock attached thru shared memory
893  --enable-SPECTRACOM     + Spectracom 8170/Netclock/2 WWVB receiver
894  --enable-TPRO           s KSI/Odetics TPRO/S GPS receiver/IRIG interface
895  --enable-TRAK           + TRAK 8810 GPS receiver
896  --enable-TRUETIME       s Kinemetrics/TrueTime receivers
897  --enable-TT560          - TrueTime 560 IRIG-B decoder
898  --enable-ULINK          + Ultralink WWVB receiver
899  --enable-USNO           s USNO modem service
900  --enable-WWV            s WWV Audio receiver
901  --enable-ZYFER          + Zyfer GPStarplus receiver
902  --enable-parse-clocks   - include all suitable PARSE clocks:
903  --enable-COMPUTIME      s Diem Computime Radio Clock
904  --enable-DCF7000        s ELV/DCF7000 clock
905  --enable-HOPF6021       s HOPF 6021 clock
906  --enable-MEINBERG       s Meinberg clocks
907  --enable-RAWDCF         s DCF77 raw time code
908  --enable-RCC8000        s RCC 8000 clock
909  --enable-SCHMID         s Schmid DCF77 clock
910  --enable-TRIMTAIP       s Trimble GPS receiver/TAIP protocol
911  --enable-TRIMTSIP       s Trimble GPS receiver/TSIP protocol
912  --enable-WHARTON        s WHARTON 400A Series clock
913  --enable-VARITEXT       s VARITEXT clock
914  --enable-kmem           s read /dev/kmem for tick and/or tickadj
915  --enable-accurate-adjtime
916                          s the adjtime() call is accurate
917  --enable-tick=VALUE     s force a value for 'tick'
918  --enable-tickadj=VALUE  s force a value for 'tickadj'
919  --enable-simulator      - build/install the NTPD simulator?
920  --enable-udp-wildcard   s use UDP wildcard delivery
921  --enable-slew-always    s always slew the time
922  --enable-step-slew      s step and slew the time
923  --enable-ntpdate-step   s if ntpdate should step the time
924  --enable-hourly-todr-sync
925                          s if we should sync TODR hourly
926  --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
927  --enable-irig-sawtooth  s if we should enable the IRIG sawtooth filter
928  --enable-nist           - if we should enable the NIST lockclock scheme
929
930Optional Packages:
931  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
932  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
933  --with-openssl-libdir   + =/something/reasonable
934  --with-openssl-incdir   + =/something/reasonable
935  --with-crypto           + =openssl
936  --with-electricfence    - compile with ElectricFence malloc debugger
937  --with-sntp             - Build SNTP?
938  --with-arlib            - Compile the async resolver library?
939
940Some influential environment variables:
941  CC          C compiler command
942  CFLAGS      C compiler flags
943  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
944              nonstandard directory <lib dir>
945  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
946              headers in a nonstandard directory <include dir>
947  CPP         C preprocessor
948
949Use these variables to override the choices made by `configure' or to help
950it to find libraries and programs with nonstandard names/locations.
951
952_ACEOF
953fi
954
955if test "$ac_init_help" = "recursive"; then
956  # If there are subdirs, report their specific --help.
957  ac_popdir=`pwd`
958  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
959    test -d $ac_dir || continue
960    ac_builddir=.
961
962if test "$ac_dir" != .; then
963  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
964  # A "../" for each directory in $ac_dir_suffix.
965  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
966else
967  ac_dir_suffix= ac_top_builddir=
968fi
969
970case $srcdir in
971  .)  # No --srcdir option.  We are building in place.
972    ac_srcdir=.
973    if test -z "$ac_top_builddir"; then
974       ac_top_srcdir=.
975    else
976       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
977    fi ;;
978  [\\/]* | ?:[\\/]* )  # Absolute path.
979    ac_srcdir=$srcdir$ac_dir_suffix;
980    ac_top_srcdir=$srcdir ;;
981  *) # Relative path.
982    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
983    ac_top_srcdir=$ac_top_builddir$srcdir ;;
984esac
985# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
986# absolute.
987ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
988ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
989ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
990ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
991
992    cd $ac_dir
993    # Check for guested configure; otherwise get Cygnus style configure.
994    if test -f $ac_srcdir/configure.gnu; then
995      echo
996      $SHELL $ac_srcdir/configure.gnu  --help=recursive
997    elif test -f $ac_srcdir/configure; then
998      echo
999      $SHELL $ac_srcdir/configure  --help=recursive
1000    elif test -f $ac_srcdir/configure.ac ||
1001           test -f $ac_srcdir/configure.in; then
1002      echo
1003      $ac_configure --help
1004    else
1005      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1006    fi
1007    cd $ac_popdir
1008  done
1009fi
1010
1011test -n "$ac_init_help" && exit 0
1012if $ac_init_version; then
1013  cat <<\_ACEOF
1014
1015Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1016Free Software Foundation, Inc.
1017This configure script is free software; the Free Software Foundation
1018gives unlimited permission to copy, distribute and modify it.
1019_ACEOF
1020  exit 0
1021fi
1022exec 5>config.log
1023cat >&5 <<_ACEOF
1024This file contains any messages produced by compilers while
1025running configure, to aid debugging if configure makes a mistake.
1026
1027It was created by $as_me, which was
1028generated by GNU Autoconf 2.57.  Invocation command line was
1029
1030  $ $0 $@
1031
1032_ACEOF
1033{
1034cat <<_ASUNAME
1035## --------- ##
1036## Platform. ##
1037## --------- ##
1038
1039hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1040uname -m = `(uname -m) 2>/dev/null || echo unknown`
1041uname -r = `(uname -r) 2>/dev/null || echo unknown`
1042uname -s = `(uname -s) 2>/dev/null || echo unknown`
1043uname -v = `(uname -v) 2>/dev/null || echo unknown`
1044
1045/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1046/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1047
1048/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1049/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1050/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1051hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1052/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1053/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1054/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1055
1056_ASUNAME
1057
1058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1059for as_dir in $PATH
1060do
1061  IFS=$as_save_IFS
1062  test -z "$as_dir" && as_dir=.
1063  echo "PATH: $as_dir"
1064done
1065
1066} >&5
1067
1068cat >&5 <<_ACEOF
1069
1070
1071## ----------- ##
1072## Core tests. ##
1073## ----------- ##
1074
1075_ACEOF
1076
1077
1078# Keep a trace of the command line.
1079# Strip out --no-create and --no-recursion so they do not pile up.
1080# Strip out --silent because we don't want to record it for future runs.
1081# Also quote any args containing shell meta-characters.
1082# Make two passes to allow for proper duplicate-argument suppression.
1083ac_configure_args=
1084ac_configure_args0=
1085ac_configure_args1=
1086ac_sep=
1087ac_must_keep_next=false
1088for ac_pass in 1 2
1089do
1090  for ac_arg
1091  do
1092    case $ac_arg in
1093    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1094    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095    | -silent | --silent | --silen | --sile | --sil)
1096      continue ;;
1097    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1098      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1099    esac
1100    case $ac_pass in
1101    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1102    2)
1103      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1104      if test $ac_must_keep_next = true; then
1105        ac_must_keep_next=false # Got value, back to normal.
1106      else
1107        case $ac_arg in
1108          *=* | --config-cache | -C | -disable-* | --disable-* \
1109          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1110          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1111          | -with-* | --with-* | -without-* | --without-* | --x)
1112            case "$ac_configure_args0 " in
1113              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1114            esac
1115            ;;
1116          -* ) ac_must_keep_next=true ;;
1117        esac
1118      fi
1119      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1120      # Get rid of the leading space.
1121      ac_sep=" "
1122      ;;
1123    esac
1124  done
1125done
1126$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1127$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1128
1129# When interrupted or exit'd, cleanup temporary files, and complete
1130# config.log.  We remove comments because anyway the quotes in there
1131# would cause problems or look ugly.
1132# WARNING: Be sure not to use single quotes in there, as some shells,
1133# such as our DU 5.0 friend, will then `close' the trap.
1134trap 'exit_status=$?
1135  # Save into config.log some information that might help in debugging.
1136  {
1137    echo
1138
1139    cat <<\_ASBOX
1140## ---------------- ##
1141## Cache variables. ##
1142## ---------------- ##
1143_ASBOX
1144    echo
1145    # The following way of writing the cache mishandles newlines in values,
1146{
1147  (set) 2>&1 |
1148    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1149    *ac_space=\ *)
1150      sed -n \
1151        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1152    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1153      ;;
1154    *)
1155      sed -n \
1156        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1157      ;;
1158    esac;
1159}
1160    echo
1161
1162    cat <<\_ASBOX
1163## ----------------- ##
1164## Output variables. ##
1165## ----------------- ##
1166_ASBOX
1167    echo
1168    for ac_var in $ac_subst_vars
1169    do
1170      eval ac_val=$`echo $ac_var`
1171      echo "$ac_var='"'"'$ac_val'"'"'"
1172    done | sort
1173    echo
1174
1175    if test -n "$ac_subst_files"; then
1176      cat <<\_ASBOX
1177## ------------- ##
1178## Output files. ##
1179## ------------- ##
1180_ASBOX
1181      echo
1182      for ac_var in $ac_subst_files
1183      do
1184	eval ac_val=$`echo $ac_var`
1185        echo "$ac_var='"'"'$ac_val'"'"'"
1186      done | sort
1187      echo
1188    fi
1189
1190    if test -s confdefs.h; then
1191      cat <<\_ASBOX
1192## ----------- ##
1193## confdefs.h. ##
1194## ----------- ##
1195_ASBOX
1196      echo
1197      sed "/^$/d" confdefs.h | sort
1198      echo
1199    fi
1200    test "$ac_signal" != 0 &&
1201      echo "$as_me: caught signal $ac_signal"
1202    echo "$as_me: exit $exit_status"
1203  } >&5
1204  rm -f core core.* *.core &&
1205  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1206    exit $exit_status
1207     ' 0
1208for ac_signal in 1 2 13 15; do
1209  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1210done
1211ac_signal=0
1212
1213# confdefs.h avoids OS command line length limits that DEFS can exceed.
1214rm -rf conftest* confdefs.h
1215# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1216echo >confdefs.h
1217
1218# Predefined preprocessor variables.
1219
1220cat >>confdefs.h <<_ACEOF
1221#define PACKAGE_NAME "$PACKAGE_NAME"
1222_ACEOF
1223
1224
1225cat >>confdefs.h <<_ACEOF
1226#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1227_ACEOF
1228
1229
1230cat >>confdefs.h <<_ACEOF
1231#define PACKAGE_VERSION "$PACKAGE_VERSION"
1232_ACEOF
1233
1234
1235cat >>confdefs.h <<_ACEOF
1236#define PACKAGE_STRING "$PACKAGE_STRING"
1237_ACEOF
1238
1239
1240cat >>confdefs.h <<_ACEOF
1241#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1242_ACEOF
1243
1244
1245# Let the site file select an alternate cache file if it wants to.
1246# Prefer explicitly selected file to automatically selected ones.
1247if test -z "$CONFIG_SITE"; then
1248  if test "x$prefix" != xNONE; then
1249    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1250  else
1251    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1252  fi
1253fi
1254for ac_site_file in $CONFIG_SITE; do
1255  if test -r "$ac_site_file"; then
1256    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1257echo "$as_me: loading site script $ac_site_file" >&6;}
1258    sed 's/^/| /' "$ac_site_file" >&5
1259    . "$ac_site_file"
1260  fi
1261done
1262
1263if test -r "$cache_file"; then
1264  # Some versions of bash will fail to source /dev/null (special
1265  # files actually), so we avoid doing that.
1266  if test -f "$cache_file"; then
1267    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1268echo "$as_me: loading cache $cache_file" >&6;}
1269    case $cache_file in
1270      [\\/]* | ?:[\\/]* ) . $cache_file;;
1271      *)                      . ./$cache_file;;
1272    esac
1273  fi
1274else
1275  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1276echo "$as_me: creating cache $cache_file" >&6;}
1277  >$cache_file
1278fi
1279
1280# Check that the precious variables saved in the cache have kept the same
1281# value.
1282ac_cache_corrupted=false
1283for ac_var in `(set) 2>&1 |
1284               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1285  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1286  eval ac_new_set=\$ac_env_${ac_var}_set
1287  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1288  eval ac_new_val="\$ac_env_${ac_var}_value"
1289  case $ac_old_set,$ac_new_set in
1290    set,)
1291      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1292echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1293      ac_cache_corrupted=: ;;
1294    ,set)
1295      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1296echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1297      ac_cache_corrupted=: ;;
1298    ,);;
1299    *)
1300      if test "x$ac_old_val" != "x$ac_new_val"; then
1301        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1302echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1303        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1304echo "$as_me:   former value:  $ac_old_val" >&2;}
1305        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1306echo "$as_me:   current value: $ac_new_val" >&2;}
1307        ac_cache_corrupted=:
1308      fi;;
1309  esac
1310  # Pass precious variables to config.status.
1311  if test "$ac_new_set" = set; then
1312    case $ac_new_val in
1313    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1314      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1315    *) ac_arg=$ac_var=$ac_new_val ;;
1316    esac
1317    case " $ac_configure_args " in
1318      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1319      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1320    esac
1321  fi
1322done
1323if $ac_cache_corrupted; then
1324  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1325echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1326  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1327echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1328   { (exit 1); exit 1; }; }
1329fi
1330
1331ac_ext=c
1332ac_cpp='$CPP $CPPFLAGS'
1333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1335ac_compiler_gnu=$ac_cv_c_compiler_gnu
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355ac_aux_dir=
1356for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1357  if test -f $ac_dir/install-sh; then
1358    ac_aux_dir=$ac_dir
1359    ac_install_sh="$ac_aux_dir/install-sh -c"
1360    break
1361  elif test -f $ac_dir/install.sh; then
1362    ac_aux_dir=$ac_dir
1363    ac_install_sh="$ac_aux_dir/install.sh -c"
1364    break
1365  elif test -f $ac_dir/shtool; then
1366    ac_aux_dir=$ac_dir
1367    ac_install_sh="$ac_aux_dir/shtool install -c"
1368    break
1369  fi
1370done
1371if test -z "$ac_aux_dir"; then
1372  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1373echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1374   { (exit 1); exit 1; }; }
1375fi
1376ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1377ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1378ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1379
1380# Make sure we can run config.sub.
1381$ac_config_sub sun4 >/dev/null 2>&1 ||
1382  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1383echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1384   { (exit 1); exit 1; }; }
1385
1386echo "$as_me:$LINENO: checking build system type" >&5
1387echo $ECHO_N "checking build system type... $ECHO_C" >&6
1388if test "${ac_cv_build+set}" = set; then
1389  echo $ECHO_N "(cached) $ECHO_C" >&6
1390else
1391  ac_cv_build_alias=$build_alias
1392test -z "$ac_cv_build_alias" &&
1393  ac_cv_build_alias=`$ac_config_guess`
1394test -z "$ac_cv_build_alias" &&
1395  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1396echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1397   { (exit 1); exit 1; }; }
1398ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1399  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1400echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1401   { (exit 1); exit 1; }; }
1402
1403fi
1404echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1405echo "${ECHO_T}$ac_cv_build" >&6
1406build=$ac_cv_build
1407build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1408build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1409build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1410
1411
1412echo "$as_me:$LINENO: checking host system type" >&5
1413echo $ECHO_N "checking host system type... $ECHO_C" >&6
1414if test "${ac_cv_host+set}" = set; then
1415  echo $ECHO_N "(cached) $ECHO_C" >&6
1416else
1417  ac_cv_host_alias=$host_alias
1418test -z "$ac_cv_host_alias" &&
1419  ac_cv_host_alias=$ac_cv_build_alias
1420ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1421  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1422echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1423   { (exit 1); exit 1; }; }
1424
1425fi
1426echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1427echo "${ECHO_T}$ac_cv_host" >&6
1428host=$ac_cv_host
1429host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1430host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1431host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1432
1433
1434echo "$as_me:$LINENO: checking target system type" >&5
1435echo $ECHO_N "checking target system type... $ECHO_C" >&6
1436if test "${ac_cv_target+set}" = set; then
1437  echo $ECHO_N "(cached) $ECHO_C" >&6
1438else
1439  ac_cv_target_alias=$target_alias
1440test "x$ac_cv_target_alias" = "x" &&
1441  ac_cv_target_alias=$ac_cv_host_alias
1442ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1443  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1444echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1445   { (exit 1); exit 1; }; }
1446
1447fi
1448echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1449echo "${ECHO_T}$ac_cv_target" >&6
1450target=$ac_cv_target
1451target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1452target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1453target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1454
1455
1456# The aliases save the names the user supplied, while $host etc.
1457# will get canonicalized.
1458test -n "$target_alias" &&
1459  test "$program_prefix$program_suffix$program_transform_name" = \
1460    NONENONEs,x,x, &&
1461  program_prefix=${target_alias}-
1462
1463cat >>confdefs.h <<_ACEOF
1464#define STR_SYSTEM "$host"
1465_ACEOF
1466
1467          ac_config_headers="$ac_config_headers config.h"
1468
1469test "$program_prefix" != NONE &&
1470  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1471# Use a double $ so make ignores it.
1472test "$program_suffix" != NONE &&
1473  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1474# Double any \ or $.  echo might interpret backslashes.
1475# By default was `s,x,x', remove it if useless.
1476cat <<\_ACEOF >conftest.sed
1477s/[\\$]/&&/g;s/;s,x,x,$//
1478_ACEOF
1479program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1480rm conftest.sed
1481
1482am__api_version="1.7"
1483# Find a good install program.  We prefer a C program (faster),
1484# so one script is as good as another.  But avoid the broken or
1485# incompatible versions:
1486# SysV /etc/install, /usr/sbin/install
1487# SunOS /usr/etc/install
1488# IRIX /sbin/install
1489# AIX /bin/install
1490# AmigaOS /C/install, which installs bootblocks on floppy discs
1491# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1492# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1493# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1494# ./install, which can be erroneously created by make from ./install.sh.
1495echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1496echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1497if test -z "$INSTALL"; then
1498if test "${ac_cv_path_install+set}" = set; then
1499  echo $ECHO_N "(cached) $ECHO_C" >&6
1500else
1501  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502for as_dir in $PATH
1503do
1504  IFS=$as_save_IFS
1505  test -z "$as_dir" && as_dir=.
1506  # Account for people who put trailing slashes in PATH elements.
1507case $as_dir/ in
1508  ./ | .// | /cC/* | \
1509  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1510  /usr/ucb/* ) ;;
1511  *)
1512    # OSF1 and SCO ODT 3.0 have their own names for install.
1513    # Don't use installbsd from OSF since it installs stuff as root
1514    # by default.
1515    for ac_prog in ginstall scoinst install; do
1516      for ac_exec_ext in '' $ac_executable_extensions; do
1517        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1518          if test $ac_prog = install &&
1519            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1520            # AIX install.  It has an incompatible calling convention.
1521            :
1522          elif test $ac_prog = install &&
1523            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1524            # program-specific install script used by HP pwplus--don't use.
1525            :
1526          else
1527            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1528            break 3
1529          fi
1530        fi
1531      done
1532    done
1533    ;;
1534esac
1535done
1536
1537
1538fi
1539  if test "${ac_cv_path_install+set}" = set; then
1540    INSTALL=$ac_cv_path_install
1541  else
1542    # As a last resort, use the slow shell script.  We don't cache a
1543    # path for INSTALL within a source directory, because that will
1544    # break other packages using the cache if that directory is
1545    # removed, or if the path is relative.
1546    INSTALL=$ac_install_sh
1547  fi
1548fi
1549echo "$as_me:$LINENO: result: $INSTALL" >&5
1550echo "${ECHO_T}$INSTALL" >&6
1551
1552# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1553# It thinks the first close brace ends the variable substitution.
1554test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1555
1556test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1557
1558test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1559
1560echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1561echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1562# Just in case
1563sleep 1
1564echo timestamp > conftest.file
1565# Do `set' in a subshell so we don't clobber the current shell's
1566# arguments.  Must try -L first in case configure is actually a
1567# symlink; some systems play weird games with the mod time of symlinks
1568# (eg FreeBSD returns the mod time of the symlink's containing
1569# directory).
1570if (
1571   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1572   if test "$*" = "X"; then
1573      # -L didn't work.
1574      set X `ls -t $srcdir/configure conftest.file`
1575   fi
1576   rm -f conftest.file
1577   if test "$*" != "X $srcdir/configure conftest.file" \
1578      && test "$*" != "X conftest.file $srcdir/configure"; then
1579
1580      # If neither matched, then we have a broken ls.  This can happen
1581      # if, for instance, CONFIG_SHELL is bash and it inherits a
1582      # broken ls alias from the environment.  This has actually
1583      # happened.  Such a system could not be considered "sane".
1584      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1585alias in your environment" >&5
1586echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1587alias in your environment" >&2;}
1588   { (exit 1); exit 1; }; }
1589   fi
1590
1591   test "$2" = conftest.file
1592   )
1593then
1594   # Ok.
1595   :
1596else
1597   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1598Check your system clock" >&5
1599echo "$as_me: error: newly created file is older than distributed files!
1600Check your system clock" >&2;}
1601   { (exit 1); exit 1; }; }
1602fi
1603echo "$as_me:$LINENO: result: yes" >&5
1604echo "${ECHO_T}yes" >&6
1605
1606# expand $ac_aux_dir to an absolute path
1607am_aux_dir=`cd $ac_aux_dir && pwd`
1608
1609test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1610# Use eval to expand $SHELL
1611if eval "$MISSING --run true"; then
1612  am_missing_run="$MISSING --run "
1613else
1614  am_missing_run=
1615  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1616echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1617fi
1618
1619for ac_prog in gawk mawk nawk awk
1620do
1621  # Extract the first word of "$ac_prog", so it can be a program name with args.
1622set dummy $ac_prog; ac_word=$2
1623echo "$as_me:$LINENO: checking for $ac_word" >&5
1624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1625if test "${ac_cv_prog_AWK+set}" = set; then
1626  echo $ECHO_N "(cached) $ECHO_C" >&6
1627else
1628  if test -n "$AWK"; then
1629  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1630else
1631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632for as_dir in $PATH
1633do
1634  IFS=$as_save_IFS
1635  test -z "$as_dir" && as_dir=.
1636  for ac_exec_ext in '' $ac_executable_extensions; do
1637  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1638    ac_cv_prog_AWK="$ac_prog"
1639    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1640    break 2
1641  fi
1642done
1643done
1644
1645fi
1646fi
1647AWK=$ac_cv_prog_AWK
1648if test -n "$AWK"; then
1649  echo "$as_me:$LINENO: result: $AWK" >&5
1650echo "${ECHO_T}$AWK" >&6
1651else
1652  echo "$as_me:$LINENO: result: no" >&5
1653echo "${ECHO_T}no" >&6
1654fi
1655
1656  test -n "$AWK" && break
1657done
1658
1659echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1660echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1661set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1662if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1663  echo $ECHO_N "(cached) $ECHO_C" >&6
1664else
1665  cat >conftest.make <<\_ACEOF
1666all:
1667	@echo 'ac_maketemp="$(MAKE)"'
1668_ACEOF
1669# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1670eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1671if test -n "$ac_maketemp"; then
1672  eval ac_cv_prog_make_${ac_make}_set=yes
1673else
1674  eval ac_cv_prog_make_${ac_make}_set=no
1675fi
1676rm -f conftest.make
1677fi
1678if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1679  echo "$as_me:$LINENO: result: yes" >&5
1680echo "${ECHO_T}yes" >&6
1681  SET_MAKE=
1682else
1683  echo "$as_me:$LINENO: result: no" >&5
1684echo "${ECHO_T}no" >&6
1685  SET_MAKE="MAKE=${MAKE-make}"
1686fi
1687
1688rm -rf .tst 2>/dev/null
1689mkdir .tst 2>/dev/null
1690if test -d .tst; then
1691  am__leading_dot=.
1692else
1693  am__leading_dot=_
1694fi
1695rmdir .tst 2>/dev/null
1696
1697 # test to see if srcdir already configured
1698if test "`cd $srcdir && pwd`" != "`pwd`" &&
1699   test -f $srcdir/config.status; then
1700  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1701echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1702   { (exit 1); exit 1; }; }
1703fi
1704
1705# test whether we have cygpath
1706if test -z "$CYGPATH_W"; then
1707  if (cygpath --version) >/dev/null 2>/dev/null; then
1708    CYGPATH_W='cygpath -w'
1709  else
1710    CYGPATH_W=echo
1711  fi
1712fi
1713
1714
1715# Define the identity of the package.
1716 PACKAGE=ntp
1717 VERSION=4.2.0
1718
1719
1720cat >>confdefs.h <<_ACEOF
1721#define PACKAGE "$PACKAGE"
1722_ACEOF
1723
1724
1725cat >>confdefs.h <<_ACEOF
1726#define VERSION "$VERSION"
1727_ACEOF
1728
1729# Some tools Automake needs.
1730
1731ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1732
1733
1734AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1735
1736
1737AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1738
1739
1740AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1741
1742
1743MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1744
1745
1746AMTAR=${AMTAR-"${am_missing_run}tar"}
1747
1748install_sh=${install_sh-"$am_aux_dir/install-sh"}
1749
1750# Installed binaries are usually stripped using `strip' when the user
1751# run `make install-strip'.  However `strip' might not be the right
1752# tool to use in cross-compilation environments, therefore Automake
1753# will honor the `STRIP' environment variable to overrule this program.
1754if test "$cross_compiling" != no; then
1755  if test -n "$ac_tool_prefix"; then
1756  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1757set dummy ${ac_tool_prefix}strip; ac_word=$2
1758echo "$as_me:$LINENO: checking for $ac_word" >&5
1759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1760if test "${ac_cv_prog_STRIP+set}" = set; then
1761  echo $ECHO_N "(cached) $ECHO_C" >&6
1762else
1763  if test -n "$STRIP"; then
1764  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1765else
1766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767for as_dir in $PATH
1768do
1769  IFS=$as_save_IFS
1770  test -z "$as_dir" && as_dir=.
1771  for ac_exec_ext in '' $ac_executable_extensions; do
1772  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1773    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1774    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775    break 2
1776  fi
1777done
1778done
1779
1780fi
1781fi
1782STRIP=$ac_cv_prog_STRIP
1783if test -n "$STRIP"; then
1784  echo "$as_me:$LINENO: result: $STRIP" >&5
1785echo "${ECHO_T}$STRIP" >&6
1786else
1787  echo "$as_me:$LINENO: result: no" >&5
1788echo "${ECHO_T}no" >&6
1789fi
1790
1791fi
1792if test -z "$ac_cv_prog_STRIP"; then
1793  ac_ct_STRIP=$STRIP
1794  # Extract the first word of "strip", so it can be a program name with args.
1795set dummy strip; ac_word=$2
1796echo "$as_me:$LINENO: checking for $ac_word" >&5
1797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1798if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1799  echo $ECHO_N "(cached) $ECHO_C" >&6
1800else
1801  if test -n "$ac_ct_STRIP"; then
1802  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1803else
1804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1805for as_dir in $PATH
1806do
1807  IFS=$as_save_IFS
1808  test -z "$as_dir" && as_dir=.
1809  for ac_exec_ext in '' $ac_executable_extensions; do
1810  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1811    ac_cv_prog_ac_ct_STRIP="strip"
1812    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1813    break 2
1814  fi
1815done
1816done
1817
1818  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1819fi
1820fi
1821ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1822if test -n "$ac_ct_STRIP"; then
1823  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1824echo "${ECHO_T}$ac_ct_STRIP" >&6
1825else
1826  echo "$as_me:$LINENO: result: no" >&5
1827echo "${ECHO_T}no" >&6
1828fi
1829
1830  STRIP=$ac_ct_STRIP
1831else
1832  STRIP="$ac_cv_prog_STRIP"
1833fi
1834
1835fi
1836INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1837
1838# We need awk for the "check" target.  The system "awk" is bad on
1839# some platforms.
1840
1841
1842
1843
1844
1845ac_cv_var_atom_ok=no
1846ac_cv_var_oncore_ok=no
1847ac_cv_var_ripe_ncc_ok=no
1848ac_cv_var_jupiter_ok=no
1849
1850iCFLAGS="$CFLAGS"
1851
1852DEPDIR="${am__leading_dot}deps"
1853
1854          ac_config_commands="$ac_config_commands depfiles"
1855
1856
1857am_make=${MAKE-make}
1858cat > confinc << 'END'
1859am__doit:
1860	@echo done
1861.PHONY: am__doit
1862END
1863# If we don't find an include directive, just comment out the code.
1864echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1865echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1866am__include="#"
1867am__quote=
1868_am_result=none
1869# First try GNU make style include.
1870echo "include confinc" > confmf
1871# We grep out `Entering directory' and `Leaving directory'
1872# messages which can occur if `w' ends up in MAKEFLAGS.
1873# In particular we don't look at `^make:' because GNU make might
1874# be invoked under some other name (usually "gmake"), in which
1875# case it prints its new name instead of `make'.
1876if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1877   am__include=include
1878   am__quote=
1879   _am_result=GNU
1880fi
1881# Now try BSD make style include.
1882if test "$am__include" = "#"; then
1883   echo '.include "confinc"' > confmf
1884   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1885      am__include=.include
1886      am__quote="\""
1887      _am_result=BSD
1888   fi
1889fi
1890
1891
1892echo "$as_me:$LINENO: result: $_am_result" >&5
1893echo "${ECHO_T}$_am_result" >&6
1894rm -f confinc confmf
1895
1896# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1897if test "${enable_dependency_tracking+set}" = set; then
1898  enableval="$enable_dependency_tracking"
1899
1900fi;
1901if test "x$enable_dependency_tracking" != xno; then
1902  am_depcomp="$ac_aux_dir/depcomp"
1903  AMDEPBACKSLASH='\'
1904fi
1905
1906
1907if test "x$enable_dependency_tracking" != xno; then
1908  AMDEP_TRUE=
1909  AMDEP_FALSE='#'
1910else
1911  AMDEP_TRUE='#'
1912  AMDEP_FALSE=
1913fi
1914
1915
1916
1917ac_ext=c
1918ac_cpp='$CPP $CPPFLAGS'
1919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1921ac_compiler_gnu=$ac_cv_c_compiler_gnu
1922if test -n "$ac_tool_prefix"; then
1923  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1924set dummy ${ac_tool_prefix}gcc; ac_word=$2
1925echo "$as_me:$LINENO: checking for $ac_word" >&5
1926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1927if test "${ac_cv_prog_CC+set}" = set; then
1928  echo $ECHO_N "(cached) $ECHO_C" >&6
1929else
1930  if test -n "$CC"; then
1931  ac_cv_prog_CC="$CC" # Let the user override the test.
1932else
1933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934for as_dir in $PATH
1935do
1936  IFS=$as_save_IFS
1937  test -z "$as_dir" && as_dir=.
1938  for ac_exec_ext in '' $ac_executable_extensions; do
1939  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1940    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1941    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942    break 2
1943  fi
1944done
1945done
1946
1947fi
1948fi
1949CC=$ac_cv_prog_CC
1950if test -n "$CC"; then
1951  echo "$as_me:$LINENO: result: $CC" >&5
1952echo "${ECHO_T}$CC" >&6
1953else
1954  echo "$as_me:$LINENO: result: no" >&5
1955echo "${ECHO_T}no" >&6
1956fi
1957
1958fi
1959if test -z "$ac_cv_prog_CC"; then
1960  ac_ct_CC=$CC
1961  # Extract the first word of "gcc", so it can be a program name with args.
1962set dummy gcc; ac_word=$2
1963echo "$as_me:$LINENO: checking for $ac_word" >&5
1964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1965if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1966  echo $ECHO_N "(cached) $ECHO_C" >&6
1967else
1968  if test -n "$ac_ct_CC"; then
1969  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1970else
1971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972for as_dir in $PATH
1973do
1974  IFS=$as_save_IFS
1975  test -z "$as_dir" && as_dir=.
1976  for ac_exec_ext in '' $ac_executable_extensions; do
1977  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1978    ac_cv_prog_ac_ct_CC="gcc"
1979    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980    break 2
1981  fi
1982done
1983done
1984
1985fi
1986fi
1987ac_ct_CC=$ac_cv_prog_ac_ct_CC
1988if test -n "$ac_ct_CC"; then
1989  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1990echo "${ECHO_T}$ac_ct_CC" >&6
1991else
1992  echo "$as_me:$LINENO: result: no" >&5
1993echo "${ECHO_T}no" >&6
1994fi
1995
1996  CC=$ac_ct_CC
1997else
1998  CC="$ac_cv_prog_CC"
1999fi
2000
2001if test -z "$CC"; then
2002  if test -n "$ac_tool_prefix"; then
2003  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2004set dummy ${ac_tool_prefix}cc; ac_word=$2
2005echo "$as_me:$LINENO: checking for $ac_word" >&5
2006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007if test "${ac_cv_prog_CC+set}" = set; then
2008  echo $ECHO_N "(cached) $ECHO_C" >&6
2009else
2010  if test -n "$CC"; then
2011  ac_cv_prog_CC="$CC" # Let the user override the test.
2012else
2013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014for as_dir in $PATH
2015do
2016  IFS=$as_save_IFS
2017  test -z "$as_dir" && as_dir=.
2018  for ac_exec_ext in '' $ac_executable_extensions; do
2019  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020    ac_cv_prog_CC="${ac_tool_prefix}cc"
2021    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022    break 2
2023  fi
2024done
2025done
2026
2027fi
2028fi
2029CC=$ac_cv_prog_CC
2030if test -n "$CC"; then
2031  echo "$as_me:$LINENO: result: $CC" >&5
2032echo "${ECHO_T}$CC" >&6
2033else
2034  echo "$as_me:$LINENO: result: no" >&5
2035echo "${ECHO_T}no" >&6
2036fi
2037
2038fi
2039if test -z "$ac_cv_prog_CC"; then
2040  ac_ct_CC=$CC
2041  # Extract the first word of "cc", so it can be a program name with args.
2042set dummy cc; ac_word=$2
2043echo "$as_me:$LINENO: checking for $ac_word" >&5
2044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2046  echo $ECHO_N "(cached) $ECHO_C" >&6
2047else
2048  if test -n "$ac_ct_CC"; then
2049  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2050else
2051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052for as_dir in $PATH
2053do
2054  IFS=$as_save_IFS
2055  test -z "$as_dir" && as_dir=.
2056  for ac_exec_ext in '' $ac_executable_extensions; do
2057  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2058    ac_cv_prog_ac_ct_CC="cc"
2059    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060    break 2
2061  fi
2062done
2063done
2064
2065fi
2066fi
2067ac_ct_CC=$ac_cv_prog_ac_ct_CC
2068if test -n "$ac_ct_CC"; then
2069  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2070echo "${ECHO_T}$ac_ct_CC" >&6
2071else
2072  echo "$as_me:$LINENO: result: no" >&5
2073echo "${ECHO_T}no" >&6
2074fi
2075
2076  CC=$ac_ct_CC
2077else
2078  CC="$ac_cv_prog_CC"
2079fi
2080
2081fi
2082if test -z "$CC"; then
2083  # Extract the first word of "cc", so it can be a program name with args.
2084set dummy cc; ac_word=$2
2085echo "$as_me:$LINENO: checking for $ac_word" >&5
2086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2087if test "${ac_cv_prog_CC+set}" = set; then
2088  echo $ECHO_N "(cached) $ECHO_C" >&6
2089else
2090  if test -n "$CC"; then
2091  ac_cv_prog_CC="$CC" # Let the user override the test.
2092else
2093  ac_prog_rejected=no
2094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095for as_dir in $PATH
2096do
2097  IFS=$as_save_IFS
2098  test -z "$as_dir" && as_dir=.
2099  for ac_exec_ext in '' $ac_executable_extensions; do
2100  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2101    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2102       ac_prog_rejected=yes
2103       continue
2104     fi
2105    ac_cv_prog_CC="cc"
2106    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107    break 2
2108  fi
2109done
2110done
2111
2112if test $ac_prog_rejected = yes; then
2113  # We found a bogon in the path, so make sure we never use it.
2114  set dummy $ac_cv_prog_CC
2115  shift
2116  if test $# != 0; then
2117    # We chose a different compiler from the bogus one.
2118    # However, it has the same basename, so the bogon will be chosen
2119    # first if we set CC to just the basename; use the full file name.
2120    shift
2121    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2122  fi
2123fi
2124fi
2125fi
2126CC=$ac_cv_prog_CC
2127if test -n "$CC"; then
2128  echo "$as_me:$LINENO: result: $CC" >&5
2129echo "${ECHO_T}$CC" >&6
2130else
2131  echo "$as_me:$LINENO: result: no" >&5
2132echo "${ECHO_T}no" >&6
2133fi
2134
2135fi
2136if test -z "$CC"; then
2137  if test -n "$ac_tool_prefix"; then
2138  for ac_prog in cl
2139  do
2140    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2141set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2142echo "$as_me:$LINENO: checking for $ac_word" >&5
2143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2144if test "${ac_cv_prog_CC+set}" = set; then
2145  echo $ECHO_N "(cached) $ECHO_C" >&6
2146else
2147  if test -n "$CC"; then
2148  ac_cv_prog_CC="$CC" # Let the user override the test.
2149else
2150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151for as_dir in $PATH
2152do
2153  IFS=$as_save_IFS
2154  test -z "$as_dir" && as_dir=.
2155  for ac_exec_ext in '' $ac_executable_extensions; do
2156  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2157    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2158    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159    break 2
2160  fi
2161done
2162done
2163
2164fi
2165fi
2166CC=$ac_cv_prog_CC
2167if test -n "$CC"; then
2168  echo "$as_me:$LINENO: result: $CC" >&5
2169echo "${ECHO_T}$CC" >&6
2170else
2171  echo "$as_me:$LINENO: result: no" >&5
2172echo "${ECHO_T}no" >&6
2173fi
2174
2175    test -n "$CC" && break
2176  done
2177fi
2178if test -z "$CC"; then
2179  ac_ct_CC=$CC
2180  for ac_prog in cl
2181do
2182  # Extract the first word of "$ac_prog", so it can be a program name with args.
2183set dummy $ac_prog; ac_word=$2
2184echo "$as_me:$LINENO: checking for $ac_word" >&5
2185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2186if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2187  echo $ECHO_N "(cached) $ECHO_C" >&6
2188else
2189  if test -n "$ac_ct_CC"; then
2190  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2191else
2192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193for as_dir in $PATH
2194do
2195  IFS=$as_save_IFS
2196  test -z "$as_dir" && as_dir=.
2197  for ac_exec_ext in '' $ac_executable_extensions; do
2198  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2199    ac_cv_prog_ac_ct_CC="$ac_prog"
2200    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201    break 2
2202  fi
2203done
2204done
2205
2206fi
2207fi
2208ac_ct_CC=$ac_cv_prog_ac_ct_CC
2209if test -n "$ac_ct_CC"; then
2210  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2211echo "${ECHO_T}$ac_ct_CC" >&6
2212else
2213  echo "$as_me:$LINENO: result: no" >&5
2214echo "${ECHO_T}no" >&6
2215fi
2216
2217  test -n "$ac_ct_CC" && break
2218done
2219
2220  CC=$ac_ct_CC
2221fi
2222
2223fi
2224
2225
2226test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2227See \`config.log' for more details." >&5
2228echo "$as_me: error: no acceptable C compiler found in \$PATH
2229See \`config.log' for more details." >&2;}
2230   { (exit 1); exit 1; }; }
2231
2232# Provide some information about the compiler.
2233echo "$as_me:$LINENO:" \
2234     "checking for C compiler version" >&5
2235ac_compiler=`set X $ac_compile; echo $2`
2236{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2237  (eval $ac_compiler --version </dev/null >&5) 2>&5
2238  ac_status=$?
2239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240  (exit $ac_status); }
2241{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2242  (eval $ac_compiler -v </dev/null >&5) 2>&5
2243  ac_status=$?
2244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245  (exit $ac_status); }
2246{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2247  (eval $ac_compiler -V </dev/null >&5) 2>&5
2248  ac_status=$?
2249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250  (exit $ac_status); }
2251
2252cat >conftest.$ac_ext <<_ACEOF
2253#line $LINENO "configure"
2254/* confdefs.h.  */
2255_ACEOF
2256cat confdefs.h >>conftest.$ac_ext
2257cat >>conftest.$ac_ext <<_ACEOF
2258/* end confdefs.h.  */
2259
2260int
2261main ()
2262{
2263
2264  ;
2265  return 0;
2266}
2267_ACEOF
2268ac_clean_files_save=$ac_clean_files
2269ac_clean_files="$ac_clean_files a.out a.exe b.out"
2270# Try to create an executable without -o first, disregard a.out.
2271# It will help us diagnose broken compilers, and finding out an intuition
2272# of exeext.
2273echo "$as_me:$LINENO: checking for C compiler default output" >&5
2274echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2275ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2276if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2277  (eval $ac_link_default) 2>&5
2278  ac_status=$?
2279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280  (exit $ac_status); }; then
2281  # Find the output, starting from the most likely.  This scheme is
2282# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2283# resort.
2284
2285# Be careful to initialize this variable, since it used to be cached.
2286# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2287ac_cv_exeext=
2288# b.out is created by i960 compilers.
2289for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2290do
2291  test -f "$ac_file" || continue
2292  case $ac_file in
2293    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2294        ;;
2295    conftest.$ac_ext )
2296        # This is the source file.
2297        ;;
2298    [ab].out )
2299        # We found the default executable, but exeext='' is most
2300        # certainly right.
2301        break;;
2302    *.* )
2303        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2304        # FIXME: I believe we export ac_cv_exeext for Libtool,
2305        # but it would be cool to find out if it's true.  Does anybody
2306        # maintain Libtool? --akim.
2307        export ac_cv_exeext
2308        break;;
2309    * )
2310        break;;
2311  esac
2312done
2313else
2314  echo "$as_me: failed program was:" >&5
2315sed 's/^/| /' conftest.$ac_ext >&5
2316
2317{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2318See \`config.log' for more details." >&5
2319echo "$as_me: error: C compiler cannot create executables
2320See \`config.log' for more details." >&2;}
2321   { (exit 77); exit 77; }; }
2322fi
2323
2324ac_exeext=$ac_cv_exeext
2325echo "$as_me:$LINENO: result: $ac_file" >&5
2326echo "${ECHO_T}$ac_file" >&6
2327
2328# Check the compiler produces executables we can run.  If not, either
2329# the compiler is broken, or we cross compile.
2330echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2331echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2332# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2333# If not cross compiling, check that we can run a simple program.
2334if test "$cross_compiling" != yes; then
2335  if { ac_try='./$ac_file'
2336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337  (eval $ac_try) 2>&5
2338  ac_status=$?
2339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340  (exit $ac_status); }; }; then
2341    cross_compiling=no
2342  else
2343    if test "$cross_compiling" = maybe; then
2344	cross_compiling=yes
2345    else
2346	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2347If you meant to cross compile, use \`--host'.
2348See \`config.log' for more details." >&5
2349echo "$as_me: error: cannot run C compiled programs.
2350If you meant to cross compile, use \`--host'.
2351See \`config.log' for more details." >&2;}
2352   { (exit 1); exit 1; }; }
2353    fi
2354  fi
2355fi
2356echo "$as_me:$LINENO: result: yes" >&5
2357echo "${ECHO_T}yes" >&6
2358
2359rm -f a.out a.exe conftest$ac_cv_exeext b.out
2360ac_clean_files=$ac_clean_files_save
2361# Check the compiler produces executables we can run.  If not, either
2362# the compiler is broken, or we cross compile.
2363echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2364echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2365echo "$as_me:$LINENO: result: $cross_compiling" >&5
2366echo "${ECHO_T}$cross_compiling" >&6
2367
2368echo "$as_me:$LINENO: checking for suffix of executables" >&5
2369echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2371  (eval $ac_link) 2>&5
2372  ac_status=$?
2373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374  (exit $ac_status); }; then
2375  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2376# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2377# work properly (i.e., refer to `conftest.exe'), while it won't with
2378# `rm'.
2379for ac_file in conftest.exe conftest conftest.*; do
2380  test -f "$ac_file" || continue
2381  case $ac_file in
2382    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2383    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2384          export ac_cv_exeext
2385          break;;
2386    * ) break;;
2387  esac
2388done
2389else
2390  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2391See \`config.log' for more details." >&5
2392echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2393See \`config.log' for more details." >&2;}
2394   { (exit 1); exit 1; }; }
2395fi
2396
2397rm -f conftest$ac_cv_exeext
2398echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2399echo "${ECHO_T}$ac_cv_exeext" >&6
2400
2401rm -f conftest.$ac_ext
2402EXEEXT=$ac_cv_exeext
2403ac_exeext=$EXEEXT
2404echo "$as_me:$LINENO: checking for suffix of object files" >&5
2405echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2406if test "${ac_cv_objext+set}" = set; then
2407  echo $ECHO_N "(cached) $ECHO_C" >&6
2408else
2409  cat >conftest.$ac_ext <<_ACEOF
2410#line $LINENO "configure"
2411/* confdefs.h.  */
2412_ACEOF
2413cat confdefs.h >>conftest.$ac_ext
2414cat >>conftest.$ac_ext <<_ACEOF
2415/* end confdefs.h.  */
2416
2417int
2418main ()
2419{
2420
2421  ;
2422  return 0;
2423}
2424_ACEOF
2425rm -f conftest.o conftest.obj
2426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2427  (eval $ac_compile) 2>&5
2428  ac_status=$?
2429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430  (exit $ac_status); }; then
2431  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2432  case $ac_file in
2433    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2434    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2435       break;;
2436  esac
2437done
2438else
2439  echo "$as_me: failed program was:" >&5
2440sed 's/^/| /' conftest.$ac_ext >&5
2441
2442{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2443See \`config.log' for more details." >&5
2444echo "$as_me: error: cannot compute suffix of object files: cannot compile
2445See \`config.log' for more details." >&2;}
2446   { (exit 1); exit 1; }; }
2447fi
2448
2449rm -f conftest.$ac_cv_objext conftest.$ac_ext
2450fi
2451echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2452echo "${ECHO_T}$ac_cv_objext" >&6
2453OBJEXT=$ac_cv_objext
2454ac_objext=$OBJEXT
2455echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2456echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2457if test "${ac_cv_c_compiler_gnu+set}" = set; then
2458  echo $ECHO_N "(cached) $ECHO_C" >&6
2459else
2460  cat >conftest.$ac_ext <<_ACEOF
2461#line $LINENO "configure"
2462/* confdefs.h.  */
2463_ACEOF
2464cat confdefs.h >>conftest.$ac_ext
2465cat >>conftest.$ac_ext <<_ACEOF
2466/* end confdefs.h.  */
2467
2468int
2469main ()
2470{
2471#ifndef __GNUC__
2472       choke me
2473#endif
2474
2475  ;
2476  return 0;
2477}
2478_ACEOF
2479rm -f conftest.$ac_objext
2480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2481  (eval $ac_compile) 2>&5
2482  ac_status=$?
2483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484  (exit $ac_status); } &&
2485         { ac_try='test -s conftest.$ac_objext'
2486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487  (eval $ac_try) 2>&5
2488  ac_status=$?
2489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490  (exit $ac_status); }; }; then
2491  ac_compiler_gnu=yes
2492else
2493  echo "$as_me: failed program was:" >&5
2494sed 's/^/| /' conftest.$ac_ext >&5
2495
2496ac_compiler_gnu=no
2497fi
2498rm -f conftest.$ac_objext conftest.$ac_ext
2499ac_cv_c_compiler_gnu=$ac_compiler_gnu
2500
2501fi
2502echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2503echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2504GCC=`test $ac_compiler_gnu = yes && echo yes`
2505ac_test_CFLAGS=${CFLAGS+set}
2506ac_save_CFLAGS=$CFLAGS
2507CFLAGS="-g"
2508echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2509echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2510if test "${ac_cv_prog_cc_g+set}" = set; then
2511  echo $ECHO_N "(cached) $ECHO_C" >&6
2512else
2513  cat >conftest.$ac_ext <<_ACEOF
2514#line $LINENO "configure"
2515/* confdefs.h.  */
2516_ACEOF
2517cat confdefs.h >>conftest.$ac_ext
2518cat >>conftest.$ac_ext <<_ACEOF
2519/* end confdefs.h.  */
2520
2521int
2522main ()
2523{
2524
2525  ;
2526  return 0;
2527}
2528_ACEOF
2529rm -f conftest.$ac_objext
2530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2531  (eval $ac_compile) 2>&5
2532  ac_status=$?
2533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534  (exit $ac_status); } &&
2535         { ac_try='test -s conftest.$ac_objext'
2536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537  (eval $ac_try) 2>&5
2538  ac_status=$?
2539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540  (exit $ac_status); }; }; then
2541  ac_cv_prog_cc_g=yes
2542else
2543  echo "$as_me: failed program was:" >&5
2544sed 's/^/| /' conftest.$ac_ext >&5
2545
2546ac_cv_prog_cc_g=no
2547fi
2548rm -f conftest.$ac_objext conftest.$ac_ext
2549fi
2550echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2551echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2552if test "$ac_test_CFLAGS" = set; then
2553  CFLAGS=$ac_save_CFLAGS
2554elif test $ac_cv_prog_cc_g = yes; then
2555  if test "$GCC" = yes; then
2556    CFLAGS="-g -O2"
2557  else
2558    CFLAGS="-g"
2559  fi
2560else
2561  if test "$GCC" = yes; then
2562    CFLAGS="-O2"
2563  else
2564    CFLAGS=
2565  fi
2566fi
2567echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2568echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2569if test "${ac_cv_prog_cc_stdc+set}" = set; then
2570  echo $ECHO_N "(cached) $ECHO_C" >&6
2571else
2572  ac_cv_prog_cc_stdc=no
2573ac_save_CC=$CC
2574cat >conftest.$ac_ext <<_ACEOF
2575#line $LINENO "configure"
2576/* confdefs.h.  */
2577_ACEOF
2578cat confdefs.h >>conftest.$ac_ext
2579cat >>conftest.$ac_ext <<_ACEOF
2580/* end confdefs.h.  */
2581#include <stdarg.h>
2582#include <stdio.h>
2583#include <sys/types.h>
2584#include <sys/stat.h>
2585/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2586struct buf { int x; };
2587FILE * (*rcsopen) (struct buf *, struct stat *, int);
2588static char *e (p, i)
2589     char **p;
2590     int i;
2591{
2592  return p[i];
2593}
2594static char *f (char * (*g) (char **, int), char **p, ...)
2595{
2596  char *s;
2597  va_list v;
2598  va_start (v,p);
2599  s = g (p, va_arg (v,int));
2600  va_end (v);
2601  return s;
2602}
2603int test (int i, double x);
2604struct s1 {int (*f) (int a);};
2605struct s2 {int (*f) (double a);};
2606int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2607int argc;
2608char **argv;
2609int
2610main ()
2611{
2612return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2613  ;
2614  return 0;
2615}
2616_ACEOF
2617# Don't try gcc -ansi; that turns off useful extensions and
2618# breaks some systems' header files.
2619# AIX			-qlanglvl=ansi
2620# Ultrix and OSF/1	-std1
2621# HP-UX 10.20 and later	-Ae
2622# HP-UX older versions	-Aa -D_HPUX_SOURCE
2623# SVR4			-Xc -D__EXTENSIONS__
2624for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2625do
2626  CC="$ac_save_CC $ac_arg"
2627  rm -f conftest.$ac_objext
2628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2629  (eval $ac_compile) 2>&5
2630  ac_status=$?
2631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632  (exit $ac_status); } &&
2633         { ac_try='test -s conftest.$ac_objext'
2634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635  (eval $ac_try) 2>&5
2636  ac_status=$?
2637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638  (exit $ac_status); }; }; then
2639  ac_cv_prog_cc_stdc=$ac_arg
2640break
2641else
2642  echo "$as_me: failed program was:" >&5
2643sed 's/^/| /' conftest.$ac_ext >&5
2644
2645fi
2646rm -f conftest.$ac_objext
2647done
2648rm -f conftest.$ac_ext conftest.$ac_objext
2649CC=$ac_save_CC
2650
2651fi
2652
2653case "x$ac_cv_prog_cc_stdc" in
2654  x|xno)
2655    echo "$as_me:$LINENO: result: none needed" >&5
2656echo "${ECHO_T}none needed" >&6 ;;
2657  *)
2658    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2659echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2660    CC="$CC $ac_cv_prog_cc_stdc" ;;
2661esac
2662
2663# Some people use a C++ compiler to compile C.  Since we use `exit',
2664# in C++ we need to declare it.  In case someone uses the same compiler
2665# for both compiling C and C++ we need to have the C++ compiler decide
2666# the declaration of exit, since it's the most demanding environment.
2667cat >conftest.$ac_ext <<_ACEOF
2668#ifndef __cplusplus
2669  choke me
2670#endif
2671_ACEOF
2672rm -f conftest.$ac_objext
2673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674  (eval $ac_compile) 2>&5
2675  ac_status=$?
2676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677  (exit $ac_status); } &&
2678         { ac_try='test -s conftest.$ac_objext'
2679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680  (eval $ac_try) 2>&5
2681  ac_status=$?
2682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683  (exit $ac_status); }; }; then
2684  for ac_declaration in \
2685   ''\
2686   '#include <stdlib.h>' \
2687   'extern "C" void std::exit (int) throw (); using std::exit;' \
2688   'extern "C" void std::exit (int); using std::exit;' \
2689   'extern "C" void exit (int) throw ();' \
2690   'extern "C" void exit (int);' \
2691   'void exit (int);'
2692do
2693  cat >conftest.$ac_ext <<_ACEOF
2694#line $LINENO "configure"
2695/* confdefs.h.  */
2696_ACEOF
2697cat confdefs.h >>conftest.$ac_ext
2698cat >>conftest.$ac_ext <<_ACEOF
2699/* end confdefs.h.  */
2700#include <stdlib.h>
2701$ac_declaration
2702int
2703main ()
2704{
2705exit (42);
2706  ;
2707  return 0;
2708}
2709_ACEOF
2710rm -f conftest.$ac_objext
2711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2712  (eval $ac_compile) 2>&5
2713  ac_status=$?
2714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715  (exit $ac_status); } &&
2716         { ac_try='test -s conftest.$ac_objext'
2717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718  (eval $ac_try) 2>&5
2719  ac_status=$?
2720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721  (exit $ac_status); }; }; then
2722  :
2723else
2724  echo "$as_me: failed program was:" >&5
2725sed 's/^/| /' conftest.$ac_ext >&5
2726
2727continue
2728fi
2729rm -f conftest.$ac_objext conftest.$ac_ext
2730  cat >conftest.$ac_ext <<_ACEOF
2731#line $LINENO "configure"
2732/* confdefs.h.  */
2733_ACEOF
2734cat confdefs.h >>conftest.$ac_ext
2735cat >>conftest.$ac_ext <<_ACEOF
2736/* end confdefs.h.  */
2737$ac_declaration
2738int
2739main ()
2740{
2741exit (42);
2742  ;
2743  return 0;
2744}
2745_ACEOF
2746rm -f conftest.$ac_objext
2747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2748  (eval $ac_compile) 2>&5
2749  ac_status=$?
2750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751  (exit $ac_status); } &&
2752         { ac_try='test -s conftest.$ac_objext'
2753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754  (eval $ac_try) 2>&5
2755  ac_status=$?
2756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757  (exit $ac_status); }; }; then
2758  break
2759else
2760  echo "$as_me: failed program was:" >&5
2761sed 's/^/| /' conftest.$ac_ext >&5
2762
2763fi
2764rm -f conftest.$ac_objext conftest.$ac_ext
2765done
2766rm -f conftest*
2767if test -n "$ac_declaration"; then
2768  echo '#ifdef __cplusplus' >>confdefs.h
2769  echo $ac_declaration      >>confdefs.h
2770  echo '#endif'             >>confdefs.h
2771fi
2772
2773else
2774  echo "$as_me: failed program was:" >&5
2775sed 's/^/| /' conftest.$ac_ext >&5
2776
2777fi
2778rm -f conftest.$ac_objext conftest.$ac_ext
2779ac_ext=c
2780ac_cpp='$CPP $CPPFLAGS'
2781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783ac_compiler_gnu=$ac_cv_c_compiler_gnu
2784
2785depcc="$CC"   am_compiler_list=
2786
2787echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2788echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2789if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2790  echo $ECHO_N "(cached) $ECHO_C" >&6
2791else
2792  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2793  # We make a subdir and do the tests there.  Otherwise we can end up
2794  # making bogus files that we don't know about and never remove.  For
2795  # instance it was reported that on HP-UX the gcc test will end up
2796  # making a dummy file named `D' -- because `-MD' means `put the output
2797  # in D'.
2798  mkdir conftest.dir
2799  # Copy depcomp to subdir because otherwise we won't find it if we're
2800  # using a relative directory.
2801  cp "$am_depcomp" conftest.dir
2802  cd conftest.dir
2803  # We will build objects and dependencies in a subdirectory because
2804  # it helps to detect inapplicable dependency modes.  For instance
2805  # both Tru64's cc and ICC support -MD to output dependencies as a
2806  # side effect of compilation, but ICC will put the dependencies in
2807  # the current directory while Tru64 will put them in the object
2808  # directory.
2809  mkdir sub
2810
2811  am_cv_CC_dependencies_compiler_type=none
2812  if test "$am_compiler_list" = ""; then
2813     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2814  fi
2815  for depmode in $am_compiler_list; do
2816    # Setup a source with many dependencies, because some compilers
2817    # like to wrap large dependency lists on column 80 (with \), and
2818    # we should not choose a depcomp mode which is confused by this.
2819    #
2820    # We need to recreate these files for each test, as the compiler may
2821    # overwrite some of them when testing with obscure command lines.
2822    # This happens at least with the AIX C compiler.
2823    : > sub/conftest.c
2824    for i in 1 2 3 4 5 6; do
2825      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2826      : > sub/conftst$i.h
2827    done
2828    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2829
2830    case $depmode in
2831    nosideeffect)
2832      # after this tag, mechanisms are not by side-effect, so they'll
2833      # only be used when explicitly requested
2834      if test "x$enable_dependency_tracking" = xyes; then
2835	continue
2836      else
2837	break
2838      fi
2839      ;;
2840    none) break ;;
2841    esac
2842    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2843    # mode.  It turns out that the SunPro C++ compiler does not properly
2844    # handle `-M -o', and we need to detect this.
2845    if depmode=$depmode \
2846       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2847       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2848       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2849         >/dev/null 2>conftest.err &&
2850       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2851       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2852       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2853      # icc doesn't choke on unknown options, it will just issue warnings
2854      # (even with -Werror).  So we grep stderr for any message
2855      # that says an option was ignored.
2856      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2857        am_cv_CC_dependencies_compiler_type=$depmode
2858        break
2859      fi
2860    fi
2861  done
2862
2863  cd ..
2864  rm -rf conftest.dir
2865else
2866  am_cv_CC_dependencies_compiler_type=none
2867fi
2868
2869fi
2870echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2871echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2872CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2873
2874
2875
2876if
2877  test "x$enable_dependency_tracking" != xno \
2878  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2879  am__fastdepCC_TRUE=
2880  am__fastdepCC_FALSE='#'
2881else
2882  am__fastdepCC_TRUE='#'
2883  am__fastdepCC_FALSE=
2884fi
2885
2886
2887
2888ac_ext=c
2889ac_cpp='$CPP $CPPFLAGS'
2890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892ac_compiler_gnu=$ac_cv_c_compiler_gnu
2893echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2894echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2895# On Suns, sometimes $CPP names a directory.
2896if test -n "$CPP" && test -d "$CPP"; then
2897  CPP=
2898fi
2899if test -z "$CPP"; then
2900  if test "${ac_cv_prog_CPP+set}" = set; then
2901  echo $ECHO_N "(cached) $ECHO_C" >&6
2902else
2903      # Double quotes because CPP needs to be expanded
2904    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2905    do
2906      ac_preproc_ok=false
2907for ac_c_preproc_warn_flag in '' yes
2908do
2909  # Use a header file that comes with gcc, so configuring glibc
2910  # with a fresh cross-compiler works.
2911  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2912  # <limits.h> exists even on freestanding compilers.
2913  # On the NeXT, cc -E runs the code through the compiler's parser,
2914  # not just through cpp. "Syntax error" is here to catch this case.
2915  cat >conftest.$ac_ext <<_ACEOF
2916#line $LINENO "configure"
2917/* confdefs.h.  */
2918_ACEOF
2919cat confdefs.h >>conftest.$ac_ext
2920cat >>conftest.$ac_ext <<_ACEOF
2921/* end confdefs.h.  */
2922#ifdef __STDC__
2923# include <limits.h>
2924#else
2925# include <assert.h>
2926#endif
2927                     Syntax error
2928_ACEOF
2929if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2930  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2931  ac_status=$?
2932  grep -v '^ *+' conftest.er1 >conftest.err
2933  rm -f conftest.er1
2934  cat conftest.err >&5
2935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936  (exit $ac_status); } >/dev/null; then
2937  if test -s conftest.err; then
2938    ac_cpp_err=$ac_c_preproc_warn_flag
2939  else
2940    ac_cpp_err=
2941  fi
2942else
2943  ac_cpp_err=yes
2944fi
2945if test -z "$ac_cpp_err"; then
2946  :
2947else
2948  echo "$as_me: failed program was:" >&5
2949sed 's/^/| /' conftest.$ac_ext >&5
2950
2951  # Broken: fails on valid input.
2952continue
2953fi
2954rm -f conftest.err conftest.$ac_ext
2955
2956  # OK, works on sane cases.  Now check whether non-existent headers
2957  # can be detected and how.
2958  cat >conftest.$ac_ext <<_ACEOF
2959#line $LINENO "configure"
2960/* confdefs.h.  */
2961_ACEOF
2962cat confdefs.h >>conftest.$ac_ext
2963cat >>conftest.$ac_ext <<_ACEOF
2964/* end confdefs.h.  */
2965#include <ac_nonexistent.h>
2966_ACEOF
2967if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2968  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2969  ac_status=$?
2970  grep -v '^ *+' conftest.er1 >conftest.err
2971  rm -f conftest.er1
2972  cat conftest.err >&5
2973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974  (exit $ac_status); } >/dev/null; then
2975  if test -s conftest.err; then
2976    ac_cpp_err=$ac_c_preproc_warn_flag
2977  else
2978    ac_cpp_err=
2979  fi
2980else
2981  ac_cpp_err=yes
2982fi
2983if test -z "$ac_cpp_err"; then
2984  # Broken: success on invalid input.
2985continue
2986else
2987  echo "$as_me: failed program was:" >&5
2988sed 's/^/| /' conftest.$ac_ext >&5
2989
2990  # Passes both tests.
2991ac_preproc_ok=:
2992break
2993fi
2994rm -f conftest.err conftest.$ac_ext
2995
2996done
2997# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2998rm -f conftest.err conftest.$ac_ext
2999if $ac_preproc_ok; then
3000  break
3001fi
3002
3003    done
3004    ac_cv_prog_CPP=$CPP
3005
3006fi
3007  CPP=$ac_cv_prog_CPP
3008else
3009  ac_cv_prog_CPP=$CPP
3010fi
3011echo "$as_me:$LINENO: result: $CPP" >&5
3012echo "${ECHO_T}$CPP" >&6
3013ac_preproc_ok=false
3014for ac_c_preproc_warn_flag in '' yes
3015do
3016  # Use a header file that comes with gcc, so configuring glibc
3017  # with a fresh cross-compiler works.
3018  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3019  # <limits.h> exists even on freestanding compilers.
3020  # On the NeXT, cc -E runs the code through the compiler's parser,
3021  # not just through cpp. "Syntax error" is here to catch this case.
3022  cat >conftest.$ac_ext <<_ACEOF
3023#line $LINENO "configure"
3024/* confdefs.h.  */
3025_ACEOF
3026cat confdefs.h >>conftest.$ac_ext
3027cat >>conftest.$ac_ext <<_ACEOF
3028/* end confdefs.h.  */
3029#ifdef __STDC__
3030# include <limits.h>
3031#else
3032# include <assert.h>
3033#endif
3034                     Syntax error
3035_ACEOF
3036if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3037  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3038  ac_status=$?
3039  grep -v '^ *+' conftest.er1 >conftest.err
3040  rm -f conftest.er1
3041  cat conftest.err >&5
3042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043  (exit $ac_status); } >/dev/null; then
3044  if test -s conftest.err; then
3045    ac_cpp_err=$ac_c_preproc_warn_flag
3046  else
3047    ac_cpp_err=
3048  fi
3049else
3050  ac_cpp_err=yes
3051fi
3052if test -z "$ac_cpp_err"; then
3053  :
3054else
3055  echo "$as_me: failed program was:" >&5
3056sed 's/^/| /' conftest.$ac_ext >&5
3057
3058  # Broken: fails on valid input.
3059continue
3060fi
3061rm -f conftest.err conftest.$ac_ext
3062
3063  # OK, works on sane cases.  Now check whether non-existent headers
3064  # can be detected and how.
3065  cat >conftest.$ac_ext <<_ACEOF
3066#line $LINENO "configure"
3067/* confdefs.h.  */
3068_ACEOF
3069cat confdefs.h >>conftest.$ac_ext
3070cat >>conftest.$ac_ext <<_ACEOF
3071/* end confdefs.h.  */
3072#include <ac_nonexistent.h>
3073_ACEOF
3074if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3075  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3076  ac_status=$?
3077  grep -v '^ *+' conftest.er1 >conftest.err
3078  rm -f conftest.er1
3079  cat conftest.err >&5
3080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081  (exit $ac_status); } >/dev/null; then
3082  if test -s conftest.err; then
3083    ac_cpp_err=$ac_c_preproc_warn_flag
3084  else
3085    ac_cpp_err=
3086  fi
3087else
3088  ac_cpp_err=yes
3089fi
3090if test -z "$ac_cpp_err"; then
3091  # Broken: success on invalid input.
3092continue
3093else
3094  echo "$as_me: failed program was:" >&5
3095sed 's/^/| /' conftest.$ac_ext >&5
3096
3097  # Passes both tests.
3098ac_preproc_ok=:
3099break
3100fi
3101rm -f conftest.err conftest.$ac_ext
3102
3103done
3104# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3105rm -f conftest.err conftest.$ac_ext
3106if $ac_preproc_ok; then
3107  :
3108else
3109  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3110See \`config.log' for more details." >&5
3111echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3112See \`config.log' for more details." >&2;}
3113   { (exit 1); exit 1; }; }
3114fi
3115
3116ac_ext=c
3117ac_cpp='$CPP $CPPFLAGS'
3118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120ac_compiler_gnu=$ac_cv_c_compiler_gnu
3121
3122
3123echo "$as_me:$LINENO: checking for egrep" >&5
3124echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3125if test "${ac_cv_prog_egrep+set}" = set; then
3126  echo $ECHO_N "(cached) $ECHO_C" >&6
3127else
3128  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3129    then ac_cv_prog_egrep='grep -E'
3130    else ac_cv_prog_egrep='egrep'
3131    fi
3132fi
3133echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3134echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3135 EGREP=$ac_cv_prog_egrep
3136
3137
3138
3139echo "$as_me:$LINENO: checking for AIX" >&5
3140echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3141cat >conftest.$ac_ext <<_ACEOF
3142#line $LINENO "configure"
3143/* confdefs.h.  */
3144_ACEOF
3145cat confdefs.h >>conftest.$ac_ext
3146cat >>conftest.$ac_ext <<_ACEOF
3147/* end confdefs.h.  */
3148#ifdef _AIX
3149  yes
3150#endif
3151
3152_ACEOF
3153if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3154  $EGREP "yes" >/dev/null 2>&1; then
3155  echo "$as_me:$LINENO: result: yes" >&5
3156echo "${ECHO_T}yes" >&6
3157cat >>confdefs.h <<\_ACEOF
3158#define _ALL_SOURCE 1
3159_ACEOF
3160
3161else
3162  echo "$as_me:$LINENO: result: no" >&5
3163echo "${ECHO_T}no" >&6
3164fi
3165rm -f conftest*
3166
3167
3168echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3169echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3170if test "${ac_cv_header_stdc+set}" = set; then
3171  echo $ECHO_N "(cached) $ECHO_C" >&6
3172else
3173  cat >conftest.$ac_ext <<_ACEOF
3174#line $LINENO "configure"
3175/* confdefs.h.  */
3176_ACEOF
3177cat confdefs.h >>conftest.$ac_ext
3178cat >>conftest.$ac_ext <<_ACEOF
3179/* end confdefs.h.  */
3180#include <stdlib.h>
3181#include <stdarg.h>
3182#include <string.h>
3183#include <float.h>
3184
3185int
3186main ()
3187{
3188
3189  ;
3190  return 0;
3191}
3192_ACEOF
3193rm -f conftest.$ac_objext
3194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3195  (eval $ac_compile) 2>&5
3196  ac_status=$?
3197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198  (exit $ac_status); } &&
3199         { ac_try='test -s conftest.$ac_objext'
3200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201  (eval $ac_try) 2>&5
3202  ac_status=$?
3203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204  (exit $ac_status); }; }; then
3205  ac_cv_header_stdc=yes
3206else
3207  echo "$as_me: failed program was:" >&5
3208sed 's/^/| /' conftest.$ac_ext >&5
3209
3210ac_cv_header_stdc=no
3211fi
3212rm -f conftest.$ac_objext conftest.$ac_ext
3213
3214if test $ac_cv_header_stdc = yes; then
3215  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3216  cat >conftest.$ac_ext <<_ACEOF
3217#line $LINENO "configure"
3218/* confdefs.h.  */
3219_ACEOF
3220cat confdefs.h >>conftest.$ac_ext
3221cat >>conftest.$ac_ext <<_ACEOF
3222/* end confdefs.h.  */
3223#include <string.h>
3224
3225_ACEOF
3226if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3227  $EGREP "memchr" >/dev/null 2>&1; then
3228  :
3229else
3230  ac_cv_header_stdc=no
3231fi
3232rm -f conftest*
3233
3234fi
3235
3236if test $ac_cv_header_stdc = yes; then
3237  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3238  cat >conftest.$ac_ext <<_ACEOF
3239#line $LINENO "configure"
3240/* confdefs.h.  */
3241_ACEOF
3242cat confdefs.h >>conftest.$ac_ext
3243cat >>conftest.$ac_ext <<_ACEOF
3244/* end confdefs.h.  */
3245#include <stdlib.h>
3246
3247_ACEOF
3248if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3249  $EGREP "free" >/dev/null 2>&1; then
3250  :
3251else
3252  ac_cv_header_stdc=no
3253fi
3254rm -f conftest*
3255
3256fi
3257
3258if test $ac_cv_header_stdc = yes; then
3259  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3260  if test "$cross_compiling" = yes; then
3261  :
3262else
3263  cat >conftest.$ac_ext <<_ACEOF
3264#line $LINENO "configure"
3265/* confdefs.h.  */
3266_ACEOF
3267cat confdefs.h >>conftest.$ac_ext
3268cat >>conftest.$ac_ext <<_ACEOF
3269/* end confdefs.h.  */
3270#include <ctype.h>
3271#if ((' ' & 0x0FF) == 0x020)
3272# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3273# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3274#else
3275# define ISLOWER(c) \
3276                   (('a' <= (c) && (c) <= 'i') \
3277                     || ('j' <= (c) && (c) <= 'r') \
3278                     || ('s' <= (c) && (c) <= 'z'))
3279# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3280#endif
3281
3282#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3283int
3284main ()
3285{
3286  int i;
3287  for (i = 0; i < 256; i++)
3288    if (XOR (islower (i), ISLOWER (i))
3289        || toupper (i) != TOUPPER (i))
3290      exit(2);
3291  exit (0);
3292}
3293_ACEOF
3294rm -f conftest$ac_exeext
3295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3296  (eval $ac_link) 2>&5
3297  ac_status=$?
3298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301  (eval $ac_try) 2>&5
3302  ac_status=$?
3303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304  (exit $ac_status); }; }; then
3305  :
3306else
3307  echo "$as_me: program exited with status $ac_status" >&5
3308echo "$as_me: failed program was:" >&5
3309sed 's/^/| /' conftest.$ac_ext >&5
3310
3311( exit $ac_status )
3312ac_cv_header_stdc=no
3313fi
3314rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3315fi
3316fi
3317fi
3318echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3319echo "${ECHO_T}$ac_cv_header_stdc" >&6
3320if test $ac_cv_header_stdc = yes; then
3321
3322cat >>confdefs.h <<\_ACEOF
3323#define STDC_HEADERS 1
3324_ACEOF
3325
3326fi
3327
3328# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3339                  inttypes.h stdint.h unistd.h
3340do
3341as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3342echo "$as_me:$LINENO: checking for $ac_header" >&5
3343echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3344if eval "test \"\${$as_ac_Header+set}\" = set"; then
3345  echo $ECHO_N "(cached) $ECHO_C" >&6
3346else
3347  cat >conftest.$ac_ext <<_ACEOF
3348#line $LINENO "configure"
3349/* confdefs.h.  */
3350_ACEOF
3351cat confdefs.h >>conftest.$ac_ext
3352cat >>conftest.$ac_ext <<_ACEOF
3353/* end confdefs.h.  */
3354$ac_includes_default
3355
3356#include <$ac_header>
3357_ACEOF
3358rm -f conftest.$ac_objext
3359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3360  (eval $ac_compile) 2>&5
3361  ac_status=$?
3362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363  (exit $ac_status); } &&
3364         { ac_try='test -s conftest.$ac_objext'
3365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366  (eval $ac_try) 2>&5
3367  ac_status=$?
3368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369  (exit $ac_status); }; }; then
3370  eval "$as_ac_Header=yes"
3371else
3372  echo "$as_me: failed program was:" >&5
3373sed 's/^/| /' conftest.$ac_ext >&5
3374
3375eval "$as_ac_Header=no"
3376fi
3377rm -f conftest.$ac_objext conftest.$ac_ext
3378fi
3379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3380echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3381if test `eval echo '${'$as_ac_Header'}'` = yes; then
3382  cat >>confdefs.h <<_ACEOF
3383#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3384_ACEOF
3385
3386fi
3387
3388done
3389
3390
3391if test "${ac_cv_header_minix_config_h+set}" = set; then
3392  echo "$as_me:$LINENO: checking for minix/config.h" >&5
3393echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3394if test "${ac_cv_header_minix_config_h+set}" = set; then
3395  echo $ECHO_N "(cached) $ECHO_C" >&6
3396fi
3397echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3398echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3399else
3400  # Is the header compilable?
3401echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3402echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3403cat >conftest.$ac_ext <<_ACEOF
3404#line $LINENO "configure"
3405/* confdefs.h.  */
3406_ACEOF
3407cat confdefs.h >>conftest.$ac_ext
3408cat >>conftest.$ac_ext <<_ACEOF
3409/* end confdefs.h.  */
3410$ac_includes_default
3411#include <minix/config.h>
3412_ACEOF
3413rm -f conftest.$ac_objext
3414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3415  (eval $ac_compile) 2>&5
3416  ac_status=$?
3417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418  (exit $ac_status); } &&
3419         { ac_try='test -s conftest.$ac_objext'
3420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421  (eval $ac_try) 2>&5
3422  ac_status=$?
3423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424  (exit $ac_status); }; }; then
3425  ac_header_compiler=yes
3426else
3427  echo "$as_me: failed program was:" >&5
3428sed 's/^/| /' conftest.$ac_ext >&5
3429
3430ac_header_compiler=no
3431fi
3432rm -f conftest.$ac_objext conftest.$ac_ext
3433echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3434echo "${ECHO_T}$ac_header_compiler" >&6
3435
3436# Is the header present?
3437echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3438echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3439cat >conftest.$ac_ext <<_ACEOF
3440#line $LINENO "configure"
3441/* confdefs.h.  */
3442_ACEOF
3443cat confdefs.h >>conftest.$ac_ext
3444cat >>conftest.$ac_ext <<_ACEOF
3445/* end confdefs.h.  */
3446#include <minix/config.h>
3447_ACEOF
3448if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3449  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3450  ac_status=$?
3451  grep -v '^ *+' conftest.er1 >conftest.err
3452  rm -f conftest.er1
3453  cat conftest.err >&5
3454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455  (exit $ac_status); } >/dev/null; then
3456  if test -s conftest.err; then
3457    ac_cpp_err=$ac_c_preproc_warn_flag
3458  else
3459    ac_cpp_err=
3460  fi
3461else
3462  ac_cpp_err=yes
3463fi
3464if test -z "$ac_cpp_err"; then
3465  ac_header_preproc=yes
3466else
3467  echo "$as_me: failed program was:" >&5
3468sed 's/^/| /' conftest.$ac_ext >&5
3469
3470  ac_header_preproc=no
3471fi
3472rm -f conftest.err conftest.$ac_ext
3473echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3474echo "${ECHO_T}$ac_header_preproc" >&6
3475
3476# So?  What about this header?
3477case $ac_header_compiler:$ac_header_preproc in
3478  yes:no )
3479    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3480echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3481    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3482echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3483    (
3484      cat <<\_ASBOX
3485## ------------------------------------ ##
3486## Report this to bug-autoconf@gnu.org. ##
3487## ------------------------------------ ##
3488_ASBOX
3489    ) |
3490      sed "s/^/$as_me: WARNING:     /" >&2
3491    ;;
3492  no:yes )
3493    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3494echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3495    { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3496echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3497    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3498echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3499    (
3500      cat <<\_ASBOX
3501## ------------------------------------ ##
3502## Report this to bug-autoconf@gnu.org. ##
3503## ------------------------------------ ##
3504_ASBOX
3505    ) |
3506      sed "s/^/$as_me: WARNING:     /" >&2
3507    ;;
3508esac
3509echo "$as_me:$LINENO: checking for minix/config.h" >&5
3510echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3511if test "${ac_cv_header_minix_config_h+set}" = set; then
3512  echo $ECHO_N "(cached) $ECHO_C" >&6
3513else
3514  ac_cv_header_minix_config_h=$ac_header_preproc
3515fi
3516echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3517echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3518
3519fi
3520if test $ac_cv_header_minix_config_h = yes; then
3521  MINIX=yes
3522else
3523  MINIX=
3524fi
3525
3526
3527if test "$MINIX" = yes; then
3528
3529cat >>confdefs.h <<\_ACEOF
3530#define _POSIX_SOURCE 1
3531_ACEOF
3532
3533
3534cat >>confdefs.h <<\_ACEOF
3535#define _POSIX_1_SOURCE 2
3536_ACEOF
3537
3538
3539cat >>confdefs.h <<\_ACEOF
3540#define _MINIX 1
3541_ACEOF
3542
3543fi
3544
3545
3546ac_ext=c
3547ac_cpp='$CPP $CPPFLAGS'
3548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551if test -n "$ac_tool_prefix"; then
3552  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3553set dummy ${ac_tool_prefix}gcc; ac_word=$2
3554echo "$as_me:$LINENO: checking for $ac_word" >&5
3555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3556if test "${ac_cv_prog_CC+set}" = set; then
3557  echo $ECHO_N "(cached) $ECHO_C" >&6
3558else
3559  if test -n "$CC"; then
3560  ac_cv_prog_CC="$CC" # Let the user override the test.
3561else
3562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563for as_dir in $PATH
3564do
3565  IFS=$as_save_IFS
3566  test -z "$as_dir" && as_dir=.
3567  for ac_exec_ext in '' $ac_executable_extensions; do
3568  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3569    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3570    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3571    break 2
3572  fi
3573done
3574done
3575
3576fi
3577fi
3578CC=$ac_cv_prog_CC
3579if test -n "$CC"; then
3580  echo "$as_me:$LINENO: result: $CC" >&5
3581echo "${ECHO_T}$CC" >&6
3582else
3583  echo "$as_me:$LINENO: result: no" >&5
3584echo "${ECHO_T}no" >&6
3585fi
3586
3587fi
3588if test -z "$ac_cv_prog_CC"; then
3589  ac_ct_CC=$CC
3590  # Extract the first word of "gcc", so it can be a program name with args.
3591set dummy gcc; ac_word=$2
3592echo "$as_me:$LINENO: checking for $ac_word" >&5
3593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3594if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3595  echo $ECHO_N "(cached) $ECHO_C" >&6
3596else
3597  if test -n "$ac_ct_CC"; then
3598  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3599else
3600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601for as_dir in $PATH
3602do
3603  IFS=$as_save_IFS
3604  test -z "$as_dir" && as_dir=.
3605  for ac_exec_ext in '' $ac_executable_extensions; do
3606  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3607    ac_cv_prog_ac_ct_CC="gcc"
3608    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3609    break 2
3610  fi
3611done
3612done
3613
3614fi
3615fi
3616ac_ct_CC=$ac_cv_prog_ac_ct_CC
3617if test -n "$ac_ct_CC"; then
3618  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3619echo "${ECHO_T}$ac_ct_CC" >&6
3620else
3621  echo "$as_me:$LINENO: result: no" >&5
3622echo "${ECHO_T}no" >&6
3623fi
3624
3625  CC=$ac_ct_CC
3626else
3627  CC="$ac_cv_prog_CC"
3628fi
3629
3630if test -z "$CC"; then
3631  if test -n "$ac_tool_prefix"; then
3632  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3633set dummy ${ac_tool_prefix}cc; ac_word=$2
3634echo "$as_me:$LINENO: checking for $ac_word" >&5
3635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3636if test "${ac_cv_prog_CC+set}" = set; then
3637  echo $ECHO_N "(cached) $ECHO_C" >&6
3638else
3639  if test -n "$CC"; then
3640  ac_cv_prog_CC="$CC" # Let the user override the test.
3641else
3642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643for as_dir in $PATH
3644do
3645  IFS=$as_save_IFS
3646  test -z "$as_dir" && as_dir=.
3647  for ac_exec_ext in '' $ac_executable_extensions; do
3648  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3649    ac_cv_prog_CC="${ac_tool_prefix}cc"
3650    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3651    break 2
3652  fi
3653done
3654done
3655
3656fi
3657fi
3658CC=$ac_cv_prog_CC
3659if test -n "$CC"; then
3660  echo "$as_me:$LINENO: result: $CC" >&5
3661echo "${ECHO_T}$CC" >&6
3662else
3663  echo "$as_me:$LINENO: result: no" >&5
3664echo "${ECHO_T}no" >&6
3665fi
3666
3667fi
3668if test -z "$ac_cv_prog_CC"; then
3669  ac_ct_CC=$CC
3670  # Extract the first word of "cc", so it can be a program name with args.
3671set dummy cc; ac_word=$2
3672echo "$as_me:$LINENO: checking for $ac_word" >&5
3673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3674if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3675  echo $ECHO_N "(cached) $ECHO_C" >&6
3676else
3677  if test -n "$ac_ct_CC"; then
3678  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3679else
3680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681for as_dir in $PATH
3682do
3683  IFS=$as_save_IFS
3684  test -z "$as_dir" && as_dir=.
3685  for ac_exec_ext in '' $ac_executable_extensions; do
3686  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3687    ac_cv_prog_ac_ct_CC="cc"
3688    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3689    break 2
3690  fi
3691done
3692done
3693
3694fi
3695fi
3696ac_ct_CC=$ac_cv_prog_ac_ct_CC
3697if test -n "$ac_ct_CC"; then
3698  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3699echo "${ECHO_T}$ac_ct_CC" >&6
3700else
3701  echo "$as_me:$LINENO: result: no" >&5
3702echo "${ECHO_T}no" >&6
3703fi
3704
3705  CC=$ac_ct_CC
3706else
3707  CC="$ac_cv_prog_CC"
3708fi
3709
3710fi
3711if test -z "$CC"; then
3712  # Extract the first word of "cc", so it can be a program name with args.
3713set dummy cc; ac_word=$2
3714echo "$as_me:$LINENO: checking for $ac_word" >&5
3715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3716if test "${ac_cv_prog_CC+set}" = set; then
3717  echo $ECHO_N "(cached) $ECHO_C" >&6
3718else
3719  if test -n "$CC"; then
3720  ac_cv_prog_CC="$CC" # Let the user override the test.
3721else
3722  ac_prog_rejected=no
3723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724for as_dir in $PATH
3725do
3726  IFS=$as_save_IFS
3727  test -z "$as_dir" && as_dir=.
3728  for ac_exec_ext in '' $ac_executable_extensions; do
3729  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3730    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3731       ac_prog_rejected=yes
3732       continue
3733     fi
3734    ac_cv_prog_CC="cc"
3735    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3736    break 2
3737  fi
3738done
3739done
3740
3741if test $ac_prog_rejected = yes; then
3742  # We found a bogon in the path, so make sure we never use it.
3743  set dummy $ac_cv_prog_CC
3744  shift
3745  if test $# != 0; then
3746    # We chose a different compiler from the bogus one.
3747    # However, it has the same basename, so the bogon will be chosen
3748    # first if we set CC to just the basename; use the full file name.
3749    shift
3750    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3751  fi
3752fi
3753fi
3754fi
3755CC=$ac_cv_prog_CC
3756if test -n "$CC"; then
3757  echo "$as_me:$LINENO: result: $CC" >&5
3758echo "${ECHO_T}$CC" >&6
3759else
3760  echo "$as_me:$LINENO: result: no" >&5
3761echo "${ECHO_T}no" >&6
3762fi
3763
3764fi
3765if test -z "$CC"; then
3766  if test -n "$ac_tool_prefix"; then
3767  for ac_prog in cl
3768  do
3769    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3770set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3771echo "$as_me:$LINENO: checking for $ac_word" >&5
3772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773if test "${ac_cv_prog_CC+set}" = set; then
3774  echo $ECHO_N "(cached) $ECHO_C" >&6
3775else
3776  if test -n "$CC"; then
3777  ac_cv_prog_CC="$CC" # Let the user override the test.
3778else
3779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780for as_dir in $PATH
3781do
3782  IFS=$as_save_IFS
3783  test -z "$as_dir" && as_dir=.
3784  for ac_exec_ext in '' $ac_executable_extensions; do
3785  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3786    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3787    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3788    break 2
3789  fi
3790done
3791done
3792
3793fi
3794fi
3795CC=$ac_cv_prog_CC
3796if test -n "$CC"; then
3797  echo "$as_me:$LINENO: result: $CC" >&5
3798echo "${ECHO_T}$CC" >&6
3799else
3800  echo "$as_me:$LINENO: result: no" >&5
3801echo "${ECHO_T}no" >&6
3802fi
3803
3804    test -n "$CC" && break
3805  done
3806fi
3807if test -z "$CC"; then
3808  ac_ct_CC=$CC
3809  for ac_prog in cl
3810do
3811  # Extract the first word of "$ac_prog", so it can be a program name with args.
3812set dummy $ac_prog; ac_word=$2
3813echo "$as_me:$LINENO: checking for $ac_word" >&5
3814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3815if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3816  echo $ECHO_N "(cached) $ECHO_C" >&6
3817else
3818  if test -n "$ac_ct_CC"; then
3819  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3820else
3821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822for as_dir in $PATH
3823do
3824  IFS=$as_save_IFS
3825  test -z "$as_dir" && as_dir=.
3826  for ac_exec_ext in '' $ac_executable_extensions; do
3827  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828    ac_cv_prog_ac_ct_CC="$ac_prog"
3829    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3830    break 2
3831  fi
3832done
3833done
3834
3835fi
3836fi
3837ac_ct_CC=$ac_cv_prog_ac_ct_CC
3838if test -n "$ac_ct_CC"; then
3839  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3840echo "${ECHO_T}$ac_ct_CC" >&6
3841else
3842  echo "$as_me:$LINENO: result: no" >&5
3843echo "${ECHO_T}no" >&6
3844fi
3845
3846  test -n "$ac_ct_CC" && break
3847done
3848
3849  CC=$ac_ct_CC
3850fi
3851
3852fi
3853
3854
3855test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3856See \`config.log' for more details." >&5
3857echo "$as_me: error: no acceptable C compiler found in \$PATH
3858See \`config.log' for more details." >&2;}
3859   { (exit 1); exit 1; }; }
3860
3861# Provide some information about the compiler.
3862echo "$as_me:$LINENO:" \
3863     "checking for C compiler version" >&5
3864ac_compiler=`set X $ac_compile; echo $2`
3865{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3866  (eval $ac_compiler --version </dev/null >&5) 2>&5
3867  ac_status=$?
3868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869  (exit $ac_status); }
3870{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3871  (eval $ac_compiler -v </dev/null >&5) 2>&5
3872  ac_status=$?
3873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874  (exit $ac_status); }
3875{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3876  (eval $ac_compiler -V </dev/null >&5) 2>&5
3877  ac_status=$?
3878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879  (exit $ac_status); }
3880
3881echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3882echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3883if test "${ac_cv_c_compiler_gnu+set}" = set; then
3884  echo $ECHO_N "(cached) $ECHO_C" >&6
3885else
3886  cat >conftest.$ac_ext <<_ACEOF
3887#line $LINENO "configure"
3888/* confdefs.h.  */
3889_ACEOF
3890cat confdefs.h >>conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF
3892/* end confdefs.h.  */
3893
3894int
3895main ()
3896{
3897#ifndef __GNUC__
3898       choke me
3899#endif
3900
3901  ;
3902  return 0;
3903}
3904_ACEOF
3905rm -f conftest.$ac_objext
3906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3907  (eval $ac_compile) 2>&5
3908  ac_status=$?
3909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910  (exit $ac_status); } &&
3911         { ac_try='test -s conftest.$ac_objext'
3912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3913  (eval $ac_try) 2>&5
3914  ac_status=$?
3915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916  (exit $ac_status); }; }; then
3917  ac_compiler_gnu=yes
3918else
3919  echo "$as_me: failed program was:" >&5
3920sed 's/^/| /' conftest.$ac_ext >&5
3921
3922ac_compiler_gnu=no
3923fi
3924rm -f conftest.$ac_objext conftest.$ac_ext
3925ac_cv_c_compiler_gnu=$ac_compiler_gnu
3926
3927fi
3928echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3929echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3930GCC=`test $ac_compiler_gnu = yes && echo yes`
3931ac_test_CFLAGS=${CFLAGS+set}
3932ac_save_CFLAGS=$CFLAGS
3933CFLAGS="-g"
3934echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3935echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3936if test "${ac_cv_prog_cc_g+set}" = set; then
3937  echo $ECHO_N "(cached) $ECHO_C" >&6
3938else
3939  cat >conftest.$ac_ext <<_ACEOF
3940#line $LINENO "configure"
3941/* confdefs.h.  */
3942_ACEOF
3943cat confdefs.h >>conftest.$ac_ext
3944cat >>conftest.$ac_ext <<_ACEOF
3945/* end confdefs.h.  */
3946
3947int
3948main ()
3949{
3950
3951  ;
3952  return 0;
3953}
3954_ACEOF
3955rm -f conftest.$ac_objext
3956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3957  (eval $ac_compile) 2>&5
3958  ac_status=$?
3959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960  (exit $ac_status); } &&
3961         { ac_try='test -s conftest.$ac_objext'
3962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963  (eval $ac_try) 2>&5
3964  ac_status=$?
3965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966  (exit $ac_status); }; }; then
3967  ac_cv_prog_cc_g=yes
3968else
3969  echo "$as_me: failed program was:" >&5
3970sed 's/^/| /' conftest.$ac_ext >&5
3971
3972ac_cv_prog_cc_g=no
3973fi
3974rm -f conftest.$ac_objext conftest.$ac_ext
3975fi
3976echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3977echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3978if test "$ac_test_CFLAGS" = set; then
3979  CFLAGS=$ac_save_CFLAGS
3980elif test $ac_cv_prog_cc_g = yes; then
3981  if test "$GCC" = yes; then
3982    CFLAGS="-g -O2"
3983  else
3984    CFLAGS="-g"
3985  fi
3986else
3987  if test "$GCC" = yes; then
3988    CFLAGS="-O2"
3989  else
3990    CFLAGS=
3991  fi
3992fi
3993echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3994echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3995if test "${ac_cv_prog_cc_stdc+set}" = set; then
3996  echo $ECHO_N "(cached) $ECHO_C" >&6
3997else
3998  ac_cv_prog_cc_stdc=no
3999ac_save_CC=$CC
4000cat >conftest.$ac_ext <<_ACEOF
4001#line $LINENO "configure"
4002/* confdefs.h.  */
4003_ACEOF
4004cat confdefs.h >>conftest.$ac_ext
4005cat >>conftest.$ac_ext <<_ACEOF
4006/* end confdefs.h.  */
4007#include <stdarg.h>
4008#include <stdio.h>
4009#include <sys/types.h>
4010#include <sys/stat.h>
4011/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4012struct buf { int x; };
4013FILE * (*rcsopen) (struct buf *, struct stat *, int);
4014static char *e (p, i)
4015     char **p;
4016     int i;
4017{
4018  return p[i];
4019}
4020static char *f (char * (*g) (char **, int), char **p, ...)
4021{
4022  char *s;
4023  va_list v;
4024  va_start (v,p);
4025  s = g (p, va_arg (v,int));
4026  va_end (v);
4027  return s;
4028}
4029int test (int i, double x);
4030struct s1 {int (*f) (int a);};
4031struct s2 {int (*f) (double a);};
4032int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4033int argc;
4034char **argv;
4035int
4036main ()
4037{
4038return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4039  ;
4040  return 0;
4041}
4042_ACEOF
4043# Don't try gcc -ansi; that turns off useful extensions and
4044# breaks some systems' header files.
4045# AIX			-qlanglvl=ansi
4046# Ultrix and OSF/1	-std1
4047# HP-UX 10.20 and later	-Ae
4048# HP-UX older versions	-Aa -D_HPUX_SOURCE
4049# SVR4			-Xc -D__EXTENSIONS__
4050for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4051do
4052  CC="$ac_save_CC $ac_arg"
4053  rm -f conftest.$ac_objext
4054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4055  (eval $ac_compile) 2>&5
4056  ac_status=$?
4057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058  (exit $ac_status); } &&
4059         { ac_try='test -s conftest.$ac_objext'
4060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061  (eval $ac_try) 2>&5
4062  ac_status=$?
4063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064  (exit $ac_status); }; }; then
4065  ac_cv_prog_cc_stdc=$ac_arg
4066break
4067else
4068  echo "$as_me: failed program was:" >&5
4069sed 's/^/| /' conftest.$ac_ext >&5
4070
4071fi
4072rm -f conftest.$ac_objext
4073done
4074rm -f conftest.$ac_ext conftest.$ac_objext
4075CC=$ac_save_CC
4076
4077fi
4078
4079case "x$ac_cv_prog_cc_stdc" in
4080  x|xno)
4081    echo "$as_me:$LINENO: result: none needed" >&5
4082echo "${ECHO_T}none needed" >&6 ;;
4083  *)
4084    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4085echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4086    CC="$CC $ac_cv_prog_cc_stdc" ;;
4087esac
4088
4089# Some people use a C++ compiler to compile C.  Since we use `exit',
4090# in C++ we need to declare it.  In case someone uses the same compiler
4091# for both compiling C and C++ we need to have the C++ compiler decide
4092# the declaration of exit, since it's the most demanding environment.
4093cat >conftest.$ac_ext <<_ACEOF
4094#ifndef __cplusplus
4095  choke me
4096#endif
4097_ACEOF
4098rm -f conftest.$ac_objext
4099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4100  (eval $ac_compile) 2>&5
4101  ac_status=$?
4102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103  (exit $ac_status); } &&
4104         { ac_try='test -s conftest.$ac_objext'
4105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106  (eval $ac_try) 2>&5
4107  ac_status=$?
4108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109  (exit $ac_status); }; }; then
4110  for ac_declaration in \
4111   ''\
4112   '#include <stdlib.h>' \
4113   'extern "C" void std::exit (int) throw (); using std::exit;' \
4114   'extern "C" void std::exit (int); using std::exit;' \
4115   'extern "C" void exit (int) throw ();' \
4116   'extern "C" void exit (int);' \
4117   'void exit (int);'
4118do
4119  cat >conftest.$ac_ext <<_ACEOF
4120#line $LINENO "configure"
4121/* confdefs.h.  */
4122_ACEOF
4123cat confdefs.h >>conftest.$ac_ext
4124cat >>conftest.$ac_ext <<_ACEOF
4125/* end confdefs.h.  */
4126#include <stdlib.h>
4127$ac_declaration
4128int
4129main ()
4130{
4131exit (42);
4132  ;
4133  return 0;
4134}
4135_ACEOF
4136rm -f conftest.$ac_objext
4137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4138  (eval $ac_compile) 2>&5
4139  ac_status=$?
4140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141  (exit $ac_status); } &&
4142         { ac_try='test -s conftest.$ac_objext'
4143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144  (eval $ac_try) 2>&5
4145  ac_status=$?
4146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147  (exit $ac_status); }; }; then
4148  :
4149else
4150  echo "$as_me: failed program was:" >&5
4151sed 's/^/| /' conftest.$ac_ext >&5
4152
4153continue
4154fi
4155rm -f conftest.$ac_objext conftest.$ac_ext
4156  cat >conftest.$ac_ext <<_ACEOF
4157#line $LINENO "configure"
4158/* confdefs.h.  */
4159_ACEOF
4160cat confdefs.h >>conftest.$ac_ext
4161cat >>conftest.$ac_ext <<_ACEOF
4162/* end confdefs.h.  */
4163$ac_declaration
4164int
4165main ()
4166{
4167exit (42);
4168  ;
4169  return 0;
4170}
4171_ACEOF
4172rm -f conftest.$ac_objext
4173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4174  (eval $ac_compile) 2>&5
4175  ac_status=$?
4176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177  (exit $ac_status); } &&
4178         { ac_try='test -s conftest.$ac_objext'
4179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180  (eval $ac_try) 2>&5
4181  ac_status=$?
4182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183  (exit $ac_status); }; }; then
4184  break
4185else
4186  echo "$as_me: failed program was:" >&5
4187sed 's/^/| /' conftest.$ac_ext >&5
4188
4189fi
4190rm -f conftest.$ac_objext conftest.$ac_ext
4191done
4192rm -f conftest*
4193if test -n "$ac_declaration"; then
4194  echo '#ifdef __cplusplus' >>confdefs.h
4195  echo $ac_declaration      >>confdefs.h
4196  echo '#endif'             >>confdefs.h
4197fi
4198
4199else
4200  echo "$as_me: failed program was:" >&5
4201sed 's/^/| /' conftest.$ac_ext >&5
4202
4203fi
4204rm -f conftest.$ac_objext conftest.$ac_ext
4205ac_ext=c
4206ac_cpp='$CPP $CPPFLAGS'
4207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210
4211depcc="$CC"   am_compiler_list=
4212
4213echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4214echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4215if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4216  echo $ECHO_N "(cached) $ECHO_C" >&6
4217else
4218  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4219  # We make a subdir and do the tests there.  Otherwise we can end up
4220  # making bogus files that we don't know about and never remove.  For
4221  # instance it was reported that on HP-UX the gcc test will end up
4222  # making a dummy file named `D' -- because `-MD' means `put the output
4223  # in D'.
4224  mkdir conftest.dir
4225  # Copy depcomp to subdir because otherwise we won't find it if we're
4226  # using a relative directory.
4227  cp "$am_depcomp" conftest.dir
4228  cd conftest.dir
4229  # We will build objects and dependencies in a subdirectory because
4230  # it helps to detect inapplicable dependency modes.  For instance
4231  # both Tru64's cc and ICC support -MD to output dependencies as a
4232  # side effect of compilation, but ICC will put the dependencies in
4233  # the current directory while Tru64 will put them in the object
4234  # directory.
4235  mkdir sub
4236
4237  am_cv_CC_dependencies_compiler_type=none
4238  if test "$am_compiler_list" = ""; then
4239     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4240  fi
4241  for depmode in $am_compiler_list; do
4242    # Setup a source with many dependencies, because some compilers
4243    # like to wrap large dependency lists on column 80 (with \), and
4244    # we should not choose a depcomp mode which is confused by this.
4245    #
4246    # We need to recreate these files for each test, as the compiler may
4247    # overwrite some of them when testing with obscure command lines.
4248    # This happens at least with the AIX C compiler.
4249    : > sub/conftest.c
4250    for i in 1 2 3 4 5 6; do
4251      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4252      : > sub/conftst$i.h
4253    done
4254    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4255
4256    case $depmode in
4257    nosideeffect)
4258      # after this tag, mechanisms are not by side-effect, so they'll
4259      # only be used when explicitly requested
4260      if test "x$enable_dependency_tracking" = xyes; then
4261	continue
4262      else
4263	break
4264      fi
4265      ;;
4266    none) break ;;
4267    esac
4268    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4269    # mode.  It turns out that the SunPro C++ compiler does not properly
4270    # handle `-M -o', and we need to detect this.
4271    if depmode=$depmode \
4272       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4273       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4274       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4275         >/dev/null 2>conftest.err &&
4276       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4277       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4278       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4279      # icc doesn't choke on unknown options, it will just issue warnings
4280      # (even with -Werror).  So we grep stderr for any message
4281      # that says an option was ignored.
4282      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4283        am_cv_CC_dependencies_compiler_type=$depmode
4284        break
4285      fi
4286    fi
4287  done
4288
4289  cd ..
4290  rm -rf conftest.dir
4291else
4292  am_cv_CC_dependencies_compiler_type=none
4293fi
4294
4295fi
4296echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4297echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4298CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4299
4300
4301
4302if
4303  test "x$enable_dependency_tracking" != xno \
4304  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4305  am__fastdepCC_TRUE=
4306  am__fastdepCC_FALSE='#'
4307else
4308  am__fastdepCC_TRUE='#'
4309  am__fastdepCC_FALSE=
4310fi
4311
4312
4313
4314ac_ext=c
4315ac_cpp='$CPP $CPPFLAGS'
4316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318ac_compiler_gnu=$ac_cv_c_compiler_gnu
4319echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4320echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4321# On Suns, sometimes $CPP names a directory.
4322if test -n "$CPP" && test -d "$CPP"; then
4323  CPP=
4324fi
4325if test -z "$CPP"; then
4326  if test "${ac_cv_prog_CPP+set}" = set; then
4327  echo $ECHO_N "(cached) $ECHO_C" >&6
4328else
4329      # Double quotes because CPP needs to be expanded
4330    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4331    do
4332      ac_preproc_ok=false
4333for ac_c_preproc_warn_flag in '' yes
4334do
4335  # Use a header file that comes with gcc, so configuring glibc
4336  # with a fresh cross-compiler works.
4337  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4338  # <limits.h> exists even on freestanding compilers.
4339  # On the NeXT, cc -E runs the code through the compiler's parser,
4340  # not just through cpp. "Syntax error" is here to catch this case.
4341  cat >conftest.$ac_ext <<_ACEOF
4342#line $LINENO "configure"
4343/* confdefs.h.  */
4344_ACEOF
4345cat confdefs.h >>conftest.$ac_ext
4346cat >>conftest.$ac_ext <<_ACEOF
4347/* end confdefs.h.  */
4348#ifdef __STDC__
4349# include <limits.h>
4350#else
4351# include <assert.h>
4352#endif
4353                     Syntax error
4354_ACEOF
4355if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4356  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4357  ac_status=$?
4358  grep -v '^ *+' conftest.er1 >conftest.err
4359  rm -f conftest.er1
4360  cat conftest.err >&5
4361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362  (exit $ac_status); } >/dev/null; then
4363  if test -s conftest.err; then
4364    ac_cpp_err=$ac_c_preproc_warn_flag
4365  else
4366    ac_cpp_err=
4367  fi
4368else
4369  ac_cpp_err=yes
4370fi
4371if test -z "$ac_cpp_err"; then
4372  :
4373else
4374  echo "$as_me: failed program was:" >&5
4375sed 's/^/| /' conftest.$ac_ext >&5
4376
4377  # Broken: fails on valid input.
4378continue
4379fi
4380rm -f conftest.err conftest.$ac_ext
4381
4382  # OK, works on sane cases.  Now check whether non-existent headers
4383  # can be detected and how.
4384  cat >conftest.$ac_ext <<_ACEOF
4385#line $LINENO "configure"
4386/* confdefs.h.  */
4387_ACEOF
4388cat confdefs.h >>conftest.$ac_ext
4389cat >>conftest.$ac_ext <<_ACEOF
4390/* end confdefs.h.  */
4391#include <ac_nonexistent.h>
4392_ACEOF
4393if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4394  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4395  ac_status=$?
4396  grep -v '^ *+' conftest.er1 >conftest.err
4397  rm -f conftest.er1
4398  cat conftest.err >&5
4399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400  (exit $ac_status); } >/dev/null; then
4401  if test -s conftest.err; then
4402    ac_cpp_err=$ac_c_preproc_warn_flag
4403  else
4404    ac_cpp_err=
4405  fi
4406else
4407  ac_cpp_err=yes
4408fi
4409if test -z "$ac_cpp_err"; then
4410  # Broken: success on invalid input.
4411continue
4412else
4413  echo "$as_me: failed program was:" >&5
4414sed 's/^/| /' conftest.$ac_ext >&5
4415
4416  # Passes both tests.
4417ac_preproc_ok=:
4418break
4419fi
4420rm -f conftest.err conftest.$ac_ext
4421
4422done
4423# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4424rm -f conftest.err conftest.$ac_ext
4425if $ac_preproc_ok; then
4426  break
4427fi
4428
4429    done
4430    ac_cv_prog_CPP=$CPP
4431
4432fi
4433  CPP=$ac_cv_prog_CPP
4434else
4435  ac_cv_prog_CPP=$CPP
4436fi
4437echo "$as_me:$LINENO: result: $CPP" >&5
4438echo "${ECHO_T}$CPP" >&6
4439ac_preproc_ok=false
4440for ac_c_preproc_warn_flag in '' yes
4441do
4442  # Use a header file that comes with gcc, so configuring glibc
4443  # with a fresh cross-compiler works.
4444  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4445  # <limits.h> exists even on freestanding compilers.
4446  # On the NeXT, cc -E runs the code through the compiler's parser,
4447  # not just through cpp. "Syntax error" is here to catch this case.
4448  cat >conftest.$ac_ext <<_ACEOF
4449#line $LINENO "configure"
4450/* confdefs.h.  */
4451_ACEOF
4452cat confdefs.h >>conftest.$ac_ext
4453cat >>conftest.$ac_ext <<_ACEOF
4454/* end confdefs.h.  */
4455#ifdef __STDC__
4456# include <limits.h>
4457#else
4458# include <assert.h>
4459#endif
4460                     Syntax error
4461_ACEOF
4462if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4463  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4464  ac_status=$?
4465  grep -v '^ *+' conftest.er1 >conftest.err
4466  rm -f conftest.er1
4467  cat conftest.err >&5
4468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469  (exit $ac_status); } >/dev/null; then
4470  if test -s conftest.err; then
4471    ac_cpp_err=$ac_c_preproc_warn_flag
4472  else
4473    ac_cpp_err=
4474  fi
4475else
4476  ac_cpp_err=yes
4477fi
4478if test -z "$ac_cpp_err"; then
4479  :
4480else
4481  echo "$as_me: failed program was:" >&5
4482sed 's/^/| /' conftest.$ac_ext >&5
4483
4484  # Broken: fails on valid input.
4485continue
4486fi
4487rm -f conftest.err conftest.$ac_ext
4488
4489  # OK, works on sane cases.  Now check whether non-existent headers
4490  # can be detected and how.
4491  cat >conftest.$ac_ext <<_ACEOF
4492#line $LINENO "configure"
4493/* confdefs.h.  */
4494_ACEOF
4495cat confdefs.h >>conftest.$ac_ext
4496cat >>conftest.$ac_ext <<_ACEOF
4497/* end confdefs.h.  */
4498#include <ac_nonexistent.h>
4499_ACEOF
4500if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4501  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4502  ac_status=$?
4503  grep -v '^ *+' conftest.er1 >conftest.err
4504  rm -f conftest.er1
4505  cat conftest.err >&5
4506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507  (exit $ac_status); } >/dev/null; then
4508  if test -s conftest.err; then
4509    ac_cpp_err=$ac_c_preproc_warn_flag
4510  else
4511    ac_cpp_err=
4512  fi
4513else
4514  ac_cpp_err=yes
4515fi
4516if test -z "$ac_cpp_err"; then
4517  # Broken: success on invalid input.
4518continue
4519else
4520  echo "$as_me: failed program was:" >&5
4521sed 's/^/| /' conftest.$ac_ext >&5
4522
4523  # Passes both tests.
4524ac_preproc_ok=:
4525break
4526fi
4527rm -f conftest.err conftest.$ac_ext
4528
4529done
4530# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4531rm -f conftest.err conftest.$ac_ext
4532if $ac_preproc_ok; then
4533  :
4534else
4535  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4536See \`config.log' for more details." >&5
4537echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4538See \`config.log' for more details." >&2;}
4539   { (exit 1); exit 1; }; }
4540fi
4541
4542ac_ext=c
4543ac_cpp='$CPP $CPPFLAGS'
4544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546ac_compiler_gnu=$ac_cv_c_compiler_gnu
4547
4548
4549case "$host" in
4550 *-*-amigaos)
4551    CFLAGS="$CFLAGS -Dfork=vfork -DSYS_AMIGA"
4552    ;;
4553 *-pc-cygwin*)
4554    CFLAGS="$CFLAGS -DSYS_CYGWIN32"
4555    ;;
4556 i386-sequent-sysv4)
4557    case "$CC" in
4558     cc)
4559	CFLAGS="$CFLAGS -Wc,+abi-socket"
4560	;;
4561    esac
4562    ;;
4563 *-*-mpeix*)
4564    CPPFLAGS="$CPPFLAGS -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE -I/SYSLOG/PUB"
4565    LDFLAGS="$LDFLAGS -L/SYSLOG/PUB"
4566    LIBS="$LIBS -lcurses"
4567    ;;
4568esac
4569
4570echo "$as_me:$LINENO: checking if we should use /dev/clockctl" >&5
4571echo $ECHO_N "checking if we should use /dev/clockctl... $ECHO_C" >&6
4572if test "${ac_clockctl+set}" = set; then
4573  echo $ECHO_N "(cached) $ECHO_C" >&6
4574else
4575  # Check whether --enable-clockctl or --disable-clockctl was given.
4576if test "${enable_clockctl+set}" = set; then
4577  enableval="$enable_clockctl"
4578  ans=$enableval
4579else
4580  case "$target" in
4581      *-*-netbsd*)
4582	 ans=yes
4583	 ;;
4584      *) ans=no
4585	 ;;
4586     esac
4587
4588fi;
4589ac_clockctl=$ans
4590fi
4591echo "$as_me:$LINENO: result: $ac_clockctl" >&5
4592echo "${ECHO_T}$ac_clockctl" >&6
4593# End of AC_CACHE_CHECK for clockctl
4594
4595for ac_header in sys/clockctl.h
4596do
4597as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4598if eval "test \"\${$as_ac_Header+set}\" = set"; then
4599  echo "$as_me:$LINENO: checking for $ac_header" >&5
4600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4601if eval "test \"\${$as_ac_Header+set}\" = set"; then
4602  echo $ECHO_N "(cached) $ECHO_C" >&6
4603fi
4604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4605echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4606else
4607  # Is the header compilable?
4608echo "$as_me:$LINENO: checking $ac_header usability" >&5
4609echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4610cat >conftest.$ac_ext <<_ACEOF
4611#line $LINENO "configure"
4612/* confdefs.h.  */
4613_ACEOF
4614cat confdefs.h >>conftest.$ac_ext
4615cat >>conftest.$ac_ext <<_ACEOF
4616/* end confdefs.h.  */
4617$ac_includes_default
4618#include <$ac_header>
4619_ACEOF
4620rm -f conftest.$ac_objext
4621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4622  (eval $ac_compile) 2>&5
4623  ac_status=$?
4624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625  (exit $ac_status); } &&
4626         { ac_try='test -s conftest.$ac_objext'
4627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628  (eval $ac_try) 2>&5
4629  ac_status=$?
4630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631  (exit $ac_status); }; }; then
4632  ac_header_compiler=yes
4633else
4634  echo "$as_me: failed program was:" >&5
4635sed 's/^/| /' conftest.$ac_ext >&5
4636
4637ac_header_compiler=no
4638fi
4639rm -f conftest.$ac_objext conftest.$ac_ext
4640echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4641echo "${ECHO_T}$ac_header_compiler" >&6
4642
4643# Is the header present?
4644echo "$as_me:$LINENO: checking $ac_header presence" >&5
4645echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4646cat >conftest.$ac_ext <<_ACEOF
4647#line $LINENO "configure"
4648/* confdefs.h.  */
4649_ACEOF
4650cat confdefs.h >>conftest.$ac_ext
4651cat >>conftest.$ac_ext <<_ACEOF
4652/* end confdefs.h.  */
4653#include <$ac_header>
4654_ACEOF
4655if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4656  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4657  ac_status=$?
4658  grep -v '^ *+' conftest.er1 >conftest.err
4659  rm -f conftest.er1
4660  cat conftest.err >&5
4661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662  (exit $ac_status); } >/dev/null; then
4663  if test -s conftest.err; then
4664    ac_cpp_err=$ac_c_preproc_warn_flag
4665  else
4666    ac_cpp_err=
4667  fi
4668else
4669  ac_cpp_err=yes
4670fi
4671if test -z "$ac_cpp_err"; then
4672  ac_header_preproc=yes
4673else
4674  echo "$as_me: failed program was:" >&5
4675sed 's/^/| /' conftest.$ac_ext >&5
4676
4677  ac_header_preproc=no
4678fi
4679rm -f conftest.err conftest.$ac_ext
4680echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4681echo "${ECHO_T}$ac_header_preproc" >&6
4682
4683# So?  What about this header?
4684case $ac_header_compiler:$ac_header_preproc in
4685  yes:no )
4686    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4687echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4688    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4689echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4690    (
4691      cat <<\_ASBOX
4692## ------------------------------------ ##
4693## Report this to bug-autoconf@gnu.org. ##
4694## ------------------------------------ ##
4695_ASBOX
4696    ) |
4697      sed "s/^/$as_me: WARNING:     /" >&2
4698    ;;
4699  no:yes )
4700    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4701echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4702    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4703echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4704    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4705echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4706    (
4707      cat <<\_ASBOX
4708## ------------------------------------ ##
4709## Report this to bug-autoconf@gnu.org. ##
4710## ------------------------------------ ##
4711_ASBOX
4712    ) |
4713      sed "s/^/$as_me: WARNING:     /" >&2
4714    ;;
4715esac
4716echo "$as_me:$LINENO: checking for $ac_header" >&5
4717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4718if eval "test \"\${$as_ac_Header+set}\" = set"; then
4719  echo $ECHO_N "(cached) $ECHO_C" >&6
4720else
4721  eval "$as_ac_Header=$ac_header_preproc"
4722fi
4723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4724echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4725
4726fi
4727if test `eval echo '${'$as_ac_Header'}'` = yes; then
4728  cat >>confdefs.h <<_ACEOF
4729#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4730_ACEOF
4731
4732fi
4733
4734done
4735
4736case "$ac_clockctl$ac_cv_header_sys_clockctl_h" in
4737 yesyes)
4738
4739cat >>confdefs.h <<\_ACEOF
4740#define HAVE_CLOCKCTL
4741_ACEOF
4742
4743    ;;
4744esac
4745
4746case "$build" in
4747 $host)
4748    ;;
4749 *) case "$host" in
4750     *-*-vxworks*)
4751	# Quick and dirty sanity check
4752	case "$VX_KERNEL" in
4753	 '') { { echo "$as_me:$LINENO: error: Please follow the directions in html/vxworks.html!" >&5
4754echo "$as_me: error: Please follow the directions in html/vxworks.html!" >&2;}
4755   { (exit 1); exit 1; }; }
4756	    ;;
4757	esac
4758        CFLAGS="$CFLAGS -DSYS_VXWORKS"
4759        ;;
4760    esac
4761    ;;
4762esac
4763
4764for ac_prog in gawk mawk nawk awk
4765do
4766  # Extract the first word of "$ac_prog", so it can be a program name with args.
4767set dummy $ac_prog; ac_word=$2
4768echo "$as_me:$LINENO: checking for $ac_word" >&5
4769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4770if test "${ac_cv_prog_AWK+set}" = set; then
4771  echo $ECHO_N "(cached) $ECHO_C" >&6
4772else
4773  if test -n "$AWK"; then
4774  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4775else
4776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777for as_dir in $PATH
4778do
4779  IFS=$as_save_IFS
4780  test -z "$as_dir" && as_dir=.
4781  for ac_exec_ext in '' $ac_executable_extensions; do
4782  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4783    ac_cv_prog_AWK="$ac_prog"
4784    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4785    break 2
4786  fi
4787done
4788done
4789
4790fi
4791fi
4792AWK=$ac_cv_prog_AWK
4793if test -n "$AWK"; then
4794  echo "$as_me:$LINENO: result: $AWK" >&5
4795echo "${ECHO_T}$AWK" >&6
4796else
4797  echo "$as_me:$LINENO: result: no" >&5
4798echo "${ECHO_T}no" >&6
4799fi
4800
4801  test -n "$AWK" && break
4802done
4803
4804echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4805echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4806set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4807if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4808  echo $ECHO_N "(cached) $ECHO_C" >&6
4809else
4810  cat >conftest.make <<\_ACEOF
4811all:
4812	@echo 'ac_maketemp="$(MAKE)"'
4813_ACEOF
4814# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4815eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4816if test -n "$ac_maketemp"; then
4817  eval ac_cv_prog_make_${ac_make}_set=yes
4818else
4819  eval ac_cv_prog_make_${ac_make}_set=no
4820fi
4821rm -f conftest.make
4822fi
4823if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4824  echo "$as_me:$LINENO: result: yes" >&5
4825echo "${ECHO_T}yes" >&6
4826  SET_MAKE=
4827else
4828  echo "$as_me:$LINENO: result: no" >&5
4829echo "${ECHO_T}no" >&6
4830  SET_MAKE="MAKE=${MAKE-make}"
4831fi
4832
4833
4834rm -f conftest*
4835
4836case "$GCC" in
4837 yes)
4838    CFLAGS="$CFLAGS -Wall"
4839    # CFLAGS="$CFLAGS -Wcast-align"
4840    CFLAGS="$CFLAGS -Wcast-qual"
4841    # CFLAGS="$CFLAGS -Wconversion"
4842    # CFLAGS="$CFLAGS -Werror"
4843    CFLAGS="$CFLAGS -Wmissing-prototypes"
4844    CFLAGS="$CFLAGS -Wpointer-arith"
4845    CFLAGS="$CFLAGS -Wshadow"
4846    CFLAGS="$CFLAGS -Wstrict-prototypes"
4847    # CFLAGS="$CFLAGS -Wtraditional"
4848    # CFLAGS="$CFLAGS -Wwrite-strings"
4849
4850    ;;
4851esac
4852
4853ac_busted_vpath_in_make=no
4854
4855case "$host" in
4856 *-next-nextstep3)
4857    CFLAGS="$CFLAGS -posix"
4858    ;;
4859 *-*-irix6.1*)	# 64 bit only
4860    # busted vpath?
4861    ;;
4862 *-*-irix6*)	# 6.2 (and later?)
4863    ac_busted_vpath_in_make=yes
4864    # don't pass -n32 to gcc, it cannot handle and doesn't need it
4865    if test "$GCC" != yes; then
4866      case "$CFLAGS" in
4867       *-n32*) ;;
4868       *-n64*) ;;
4869       *-64*) ;;
4870       *) case "$iCFLAGS" in
4871	   '') CFLAGS="-O2 -g3 -n32" ;;
4872	   *)  CFLAGS="$CFLAGS -n32" ;;
4873	  esac
4874	  ;;
4875      esac
4876      case "$LDFLAGS" in
4877       *-n32*) ;;
4878       *-n64*) ;;
4879       *-64*) ;;
4880       *) LDFLAGS="$LDFLAGS -n32" ;;
4881      esac
4882    fi
4883    ;;
4884 *-*-solaris2.5.1)
4885    ac_busted_vpath_in_make=yes
4886    ;;
4887 *-*-unicosmp*)
4888    ac_busted_vpath_in_make=yes
4889    ;;
4890esac
4891
4892case "$ac_busted_vpath_in_make$srcdir" in
4893 no*) ;;
4894 yes.) ;;
4895 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | sed -e 's/GNU Make version \(1-9.]*\).*/\1/' -e q`" in
4896     '')
4897	{ { echo "$as_me:$LINENO: error: building outside of the main directory requires GNU make" >&5
4898echo "$as_me: error: building outside of the main directory requires GNU make" >&2;}
4899   { (exit 1); exit 1; }; }
4900	;;
4901     *) ;;
4902    esac
4903    ;;
4904esac
4905
4906
4907echo "$as_me:$LINENO: checking whether ln -s works" >&5
4908echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4909LN_S=$as_ln_s
4910if test "$LN_S" = "ln -s"; then
4911  echo "$as_me:$LINENO: result: yes" >&5
4912echo "${ECHO_T}yes" >&6
4913else
4914  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4915echo "${ECHO_T}no, using $LN_S" >&6
4916fi
4917
4918if test $ac_cv_c_compiler_gnu = yes; then
4919    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4920echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4921if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4922  echo $ECHO_N "(cached) $ECHO_C" >&6
4923else
4924    ac_pattern="Autoconf.*'x'"
4925  cat >conftest.$ac_ext <<_ACEOF
4926#line $LINENO "configure"
4927/* confdefs.h.  */
4928_ACEOF
4929cat confdefs.h >>conftest.$ac_ext
4930cat >>conftest.$ac_ext <<_ACEOF
4931/* end confdefs.h.  */
4932#include <sgtty.h>
4933Autoconf TIOCGETP
4934_ACEOF
4935if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4936  $EGREP "$ac_pattern" >/dev/null 2>&1; then
4937  ac_cv_prog_gcc_traditional=yes
4938else
4939  ac_cv_prog_gcc_traditional=no
4940fi
4941rm -f conftest*
4942
4943
4944  if test $ac_cv_prog_gcc_traditional = no; then
4945    cat >conftest.$ac_ext <<_ACEOF
4946#line $LINENO "configure"
4947/* confdefs.h.  */
4948_ACEOF
4949cat confdefs.h >>conftest.$ac_ext
4950cat >>conftest.$ac_ext <<_ACEOF
4951/* end confdefs.h.  */
4952#include <termio.h>
4953Autoconf TCGETA
4954_ACEOF
4955if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4956  $EGREP "$ac_pattern" >/dev/null 2>&1; then
4957  ac_cv_prog_gcc_traditional=yes
4958fi
4959rm -f conftest*
4960
4961  fi
4962fi
4963echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4964echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4965  if test $ac_cv_prog_gcc_traditional = yes; then
4966    CC="$CC -traditional"
4967  fi
4968fi
4969
4970echo "$as_me:$LINENO: checking for working volatile" >&5
4971echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4972if test "${ac_cv_c_volatile+set}" = set; then
4973  echo $ECHO_N "(cached) $ECHO_C" >&6
4974else
4975  cat >conftest.$ac_ext <<_ACEOF
4976#line $LINENO "configure"
4977/* confdefs.h.  */
4978_ACEOF
4979cat confdefs.h >>conftest.$ac_ext
4980cat >>conftest.$ac_ext <<_ACEOF
4981/* end confdefs.h.  */
4982
4983int
4984main ()
4985{
4986
4987volatile int x;
4988int * volatile y;
4989  ;
4990  return 0;
4991}
4992_ACEOF
4993rm -f conftest.$ac_objext
4994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4995  (eval $ac_compile) 2>&5
4996  ac_status=$?
4997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998  (exit $ac_status); } &&
4999         { ac_try='test -s conftest.$ac_objext'
5000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001  (eval $ac_try) 2>&5
5002  ac_status=$?
5003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004  (exit $ac_status); }; }; then
5005  ac_cv_c_volatile=yes
5006else
5007  echo "$as_me: failed program was:" >&5
5008sed 's/^/| /' conftest.$ac_ext >&5
5009
5010ac_cv_c_volatile=no
5011fi
5012rm -f conftest.$ac_objext conftest.$ac_ext
5013fi
5014echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5015echo "${ECHO_T}$ac_cv_c_volatile" >&6
5016if test $ac_cv_c_volatile = no; then
5017
5018cat >>confdefs.h <<\_ACEOF
5019#define volatile
5020_ACEOF
5021
5022fi
5023
5024echo "$as_me:$LINENO: checking for library containing strerror" >&5
5025echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
5026if test "${ac_cv_search_strerror+set}" = set; then
5027  echo $ECHO_N "(cached) $ECHO_C" >&6
5028else
5029  ac_func_search_save_LIBS=$LIBS
5030ac_cv_search_strerror=no
5031cat >conftest.$ac_ext <<_ACEOF
5032#line $LINENO "configure"
5033/* confdefs.h.  */
5034_ACEOF
5035cat confdefs.h >>conftest.$ac_ext
5036cat >>conftest.$ac_ext <<_ACEOF
5037/* end confdefs.h.  */
5038
5039/* Override any gcc2 internal prototype to avoid an error.  */
5040#ifdef __cplusplus
5041extern "C"
5042#endif
5043/* We use char because int might match the return type of a gcc2
5044   builtin and then its argument prototype would still apply.  */
5045char strerror ();
5046int
5047main ()
5048{
5049strerror ();
5050  ;
5051  return 0;
5052}
5053_ACEOF
5054rm -f conftest.$ac_objext conftest$ac_exeext
5055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5056  (eval $ac_link) 2>&5
5057  ac_status=$?
5058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059  (exit $ac_status); } &&
5060         { ac_try='test -s conftest$ac_exeext'
5061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5062  (eval $ac_try) 2>&5
5063  ac_status=$?
5064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065  (exit $ac_status); }; }; then
5066  ac_cv_search_strerror="none required"
5067else
5068  echo "$as_me: failed program was:" >&5
5069sed 's/^/| /' conftest.$ac_ext >&5
5070
5071fi
5072rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5073if test "$ac_cv_search_strerror" = no; then
5074  for ac_lib in cposix; do
5075    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5076    cat >conftest.$ac_ext <<_ACEOF
5077#line $LINENO "configure"
5078/* confdefs.h.  */
5079_ACEOF
5080cat confdefs.h >>conftest.$ac_ext
5081cat >>conftest.$ac_ext <<_ACEOF
5082/* end confdefs.h.  */
5083
5084/* Override any gcc2 internal prototype to avoid an error.  */
5085#ifdef __cplusplus
5086extern "C"
5087#endif
5088/* We use char because int might match the return type of a gcc2
5089   builtin and then its argument prototype would still apply.  */
5090char strerror ();
5091int
5092main ()
5093{
5094strerror ();
5095  ;
5096  return 0;
5097}
5098_ACEOF
5099rm -f conftest.$ac_objext conftest$ac_exeext
5100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5101  (eval $ac_link) 2>&5
5102  ac_status=$?
5103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104  (exit $ac_status); } &&
5105         { ac_try='test -s conftest$ac_exeext'
5106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107  (eval $ac_try) 2>&5
5108  ac_status=$?
5109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110  (exit $ac_status); }; }; then
5111  ac_cv_search_strerror="-l$ac_lib"
5112break
5113else
5114  echo "$as_me: failed program was:" >&5
5115sed 's/^/| /' conftest.$ac_ext >&5
5116
5117fi
5118rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5119  done
5120fi
5121LIBS=$ac_func_search_save_LIBS
5122fi
5123echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5124echo "${ECHO_T}$ac_cv_search_strerror" >&6
5125if test "$ac_cv_search_strerror" != no; then
5126  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5127
5128fi
5129
5130if test -n "$ac_tool_prefix"; then
5131  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5132set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5133echo "$as_me:$LINENO: checking for $ac_word" >&5
5134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5135if test "${ac_cv_prog_RANLIB+set}" = set; then
5136  echo $ECHO_N "(cached) $ECHO_C" >&6
5137else
5138  if test -n "$RANLIB"; then
5139  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5140else
5141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142for as_dir in $PATH
5143do
5144  IFS=$as_save_IFS
5145  test -z "$as_dir" && as_dir=.
5146  for ac_exec_ext in '' $ac_executable_extensions; do
5147  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5149    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150    break 2
5151  fi
5152done
5153done
5154
5155fi
5156fi
5157RANLIB=$ac_cv_prog_RANLIB
5158if test -n "$RANLIB"; then
5159  echo "$as_me:$LINENO: result: $RANLIB" >&5
5160echo "${ECHO_T}$RANLIB" >&6
5161else
5162  echo "$as_me:$LINENO: result: no" >&5
5163echo "${ECHO_T}no" >&6
5164fi
5165
5166fi
5167if test -z "$ac_cv_prog_RANLIB"; then
5168  ac_ct_RANLIB=$RANLIB
5169  # Extract the first word of "ranlib", so it can be a program name with args.
5170set dummy ranlib; ac_word=$2
5171echo "$as_me:$LINENO: checking for $ac_word" >&5
5172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5173if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5174  echo $ECHO_N "(cached) $ECHO_C" >&6
5175else
5176  if test -n "$ac_ct_RANLIB"; then
5177  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5178else
5179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180for as_dir in $PATH
5181do
5182  IFS=$as_save_IFS
5183  test -z "$as_dir" && as_dir=.
5184  for ac_exec_ext in '' $ac_executable_extensions; do
5185  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5186    ac_cv_prog_ac_ct_RANLIB="ranlib"
5187    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5188    break 2
5189  fi
5190done
5191done
5192
5193  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5194fi
5195fi
5196ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5197if test -n "$ac_ct_RANLIB"; then
5198  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5199echo "${ECHO_T}$ac_ct_RANLIB" >&6
5200else
5201  echo "$as_me:$LINENO: result: no" >&5
5202echo "${ECHO_T}no" >&6
5203fi
5204
5205  RANLIB=$ac_ct_RANLIB
5206else
5207  RANLIB="$ac_cv_prog_RANLIB"
5208fi
5209
5210# Extract the first word of "sh", so it can be a program name with args.
5211set dummy sh; ac_word=$2
5212echo "$as_me:$LINENO: checking for $ac_word" >&5
5213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5214if test "${ac_cv_path_PATH_SH+set}" = set; then
5215  echo $ECHO_N "(cached) $ECHO_C" >&6
5216else
5217  case $PATH_SH in
5218  [\\/]* | ?:[\\/]*)
5219  ac_cv_path_PATH_SH="$PATH_SH" # Let the user override the test with a path.
5220  ;;
5221  *)
5222  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223for as_dir in $PATH
5224do
5225  IFS=$as_save_IFS
5226  test -z "$as_dir" && as_dir=.
5227  for ac_exec_ext in '' $ac_executable_extensions; do
5228  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5229    ac_cv_path_PATH_SH="$as_dir/$ac_word$ac_exec_ext"
5230    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5231    break 2
5232  fi
5233done
5234done
5235
5236  ;;
5237esac
5238fi
5239PATH_SH=$ac_cv_path_PATH_SH
5240
5241if test -n "$PATH_SH"; then
5242  echo "$as_me:$LINENO: result: $PATH_SH" >&5
5243echo "${ECHO_T}$PATH_SH" >&6
5244else
5245  echo "$as_me:$LINENO: result: no" >&5
5246echo "${ECHO_T}no" >&6
5247fi
5248
5249# Extract the first word of "perl", so it can be a program name with args.
5250set dummy perl; ac_word=$2
5251echo "$as_me:$LINENO: checking for $ac_word" >&5
5252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5253if test "${ac_cv_path_PATH_PERL+set}" = set; then
5254  echo $ECHO_N "(cached) $ECHO_C" >&6
5255else
5256  case $PATH_PERL in
5257  [\\/]* | ?:[\\/]*)
5258  ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
5259  ;;
5260  *)
5261  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262for as_dir in $PATH
5263do
5264  IFS=$as_save_IFS
5265  test -z "$as_dir" && as_dir=.
5266  for ac_exec_ext in '' $ac_executable_extensions; do
5267  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5268    ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
5269    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5270    break 2
5271  fi
5272done
5273done
5274
5275  ;;
5276esac
5277fi
5278PATH_PERL=$ac_cv_path_PATH_PERL
5279
5280if test -n "$PATH_PERL"; then
5281  echo "$as_me:$LINENO: result: $PATH_PERL" >&5
5282echo "${ECHO_T}$PATH_PERL" >&6
5283else
5284  echo "$as_me:$LINENO: result: no" >&5
5285echo "${ECHO_T}no" >&6
5286fi
5287
5288
5289
5290
5291cat >conftest.$ac_ext <<_ACEOF
5292#line $LINENO "configure"
5293/* confdefs.h.  */
5294_ACEOF
5295cat confdefs.h >>conftest.$ac_ext
5296cat >>conftest.$ac_ext <<_ACEOF
5297/* end confdefs.h.  */
5298#define ACAT(a,b)a ## b
5299ACAT(Cir,cus)
5300
5301_ACEOF
5302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5303  $EGREP "Circus" >/dev/null 2>&1; then
5304  cat >>confdefs.h <<\_ACEOF
5305#define ULONG_CONST(a) a ## UL
5306_ACEOF
5307
5308else
5309  cat >conftest.$ac_ext <<_ACEOF
5310#line $LINENO "configure"
5311/* confdefs.h.  */
5312_ACEOF
5313cat confdefs.h >>conftest.$ac_ext
5314cat >>conftest.$ac_ext <<_ACEOF
5315/* end confdefs.h.  */
5316#define RCAT(a,b)a/**/b
5317RCAT(Rei,ser)
5318
5319_ACEOF
5320if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5321  $EGREP "Reiser" >/dev/null 2>&1; then
5322  cat >>confdefs.h <<\_ACEOF
5323#define ULONG_CONST(a) a/**/L
5324_ACEOF
5325
5326else
5327  { { echo "$as_me:$LINENO: error: How do we create an unsigned long constant?" >&5
5328echo "$as_me: error: How do we create an unsigned long constant?" >&2;}
5329   { (exit 1); exit 1; }; }
5330fi
5331rm -f conftest*
5332
5333fi
5334rm -f conftest*
5335
5336
5337case "$host" in
5338 *-*-vxworks*)
5339    ac_link="$ac_link $VX_KERNEL"
5340    ;;
5341esac
5342
5343# Find a good install program.  We prefer a C program (faster),
5344# so one script is as good as another.  But avoid the broken or
5345# incompatible versions:
5346# SysV /etc/install, /usr/sbin/install
5347# SunOS /usr/etc/install
5348# IRIX /sbin/install
5349# AIX /bin/install
5350# AmigaOS /C/install, which installs bootblocks on floppy discs
5351# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5352# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5353# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5354# ./install, which can be erroneously created by make from ./install.sh.
5355echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5356echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5357if test -z "$INSTALL"; then
5358if test "${ac_cv_path_install+set}" = set; then
5359  echo $ECHO_N "(cached) $ECHO_C" >&6
5360else
5361  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362for as_dir in $PATH
5363do
5364  IFS=$as_save_IFS
5365  test -z "$as_dir" && as_dir=.
5366  # Account for people who put trailing slashes in PATH elements.
5367case $as_dir/ in
5368  ./ | .// | /cC/* | \
5369  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5370  /usr/ucb/* ) ;;
5371  *)
5372    # OSF1 and SCO ODT 3.0 have their own names for install.
5373    # Don't use installbsd from OSF since it installs stuff as root
5374    # by default.
5375    for ac_prog in ginstall scoinst install; do
5376      for ac_exec_ext in '' $ac_executable_extensions; do
5377        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5378          if test $ac_prog = install &&
5379            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5380            # AIX install.  It has an incompatible calling convention.
5381            :
5382          elif test $ac_prog = install &&
5383            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5384            # program-specific install script used by HP pwplus--don't use.
5385            :
5386          else
5387            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5388            break 3
5389          fi
5390        fi
5391      done
5392    done
5393    ;;
5394esac
5395done
5396
5397
5398fi
5399  if test "${ac_cv_path_install+set}" = set; then
5400    INSTALL=$ac_cv_path_install
5401  else
5402    # As a last resort, use the slow shell script.  We don't cache a
5403    # path for INSTALL within a source directory, because that will
5404    # break other packages using the cache if that directory is
5405    # removed, or if the path is relative.
5406    INSTALL=$ac_install_sh
5407  fi
5408fi
5409echo "$as_me:$LINENO: result: $INSTALL" >&5
5410echo "${ECHO_T}$INSTALL" >&6
5411
5412# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5413# It thinks the first close brace ends the variable substitution.
5414test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5415
5416test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5417
5418test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5419
5420
5421case "$host" in
5422 *-pc-cygwin*)
5423
5424echo "$as_me:$LINENO: checking for main in -ladvapi32" >&5
5425echo $ECHO_N "checking for main in -ladvapi32... $ECHO_C" >&6
5426if test "${ac_cv_lib_advapi32_main+set}" = set; then
5427  echo $ECHO_N "(cached) $ECHO_C" >&6
5428else
5429  ac_check_lib_save_LIBS=$LIBS
5430LIBS="-ladvapi32  $LIBS"
5431cat >conftest.$ac_ext <<_ACEOF
5432#line $LINENO "configure"
5433/* confdefs.h.  */
5434_ACEOF
5435cat confdefs.h >>conftest.$ac_ext
5436cat >>conftest.$ac_ext <<_ACEOF
5437/* end confdefs.h.  */
5438
5439
5440int
5441main ()
5442{
5443main ();
5444  ;
5445  return 0;
5446}
5447_ACEOF
5448rm -f conftest.$ac_objext conftest$ac_exeext
5449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5450  (eval $ac_link) 2>&5
5451  ac_status=$?
5452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453  (exit $ac_status); } &&
5454         { ac_try='test -s conftest$ac_exeext'
5455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456  (eval $ac_try) 2>&5
5457  ac_status=$?
5458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459  (exit $ac_status); }; }; then
5460  ac_cv_lib_advapi32_main=yes
5461else
5462  echo "$as_me: failed program was:" >&5
5463sed 's/^/| /' conftest.$ac_ext >&5
5464
5465ac_cv_lib_advapi32_main=no
5466fi
5467rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5468LIBS=$ac_check_lib_save_LIBS
5469fi
5470echo "$as_me:$LINENO: result: $ac_cv_lib_advapi32_main" >&5
5471echo "${ECHO_T}$ac_cv_lib_advapi32_main" >&6
5472if test $ac_cv_lib_advapi32_main = yes; then
5473  cat >>confdefs.h <<_ACEOF
5474#define HAVE_LIBADVAPI32 1
5475_ACEOF
5476
5477  LIBS="-ladvapi32 $LIBS"
5478
5479fi
5480
5481    ;;
5482esac
5483
5484echo "$as_me:$LINENO: checking for nlist in -lelf" >&5
5485echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6
5486if test "${ac_cv_lib_elf_nlist+set}" = set; then
5487  echo $ECHO_N "(cached) $ECHO_C" >&6
5488else
5489  ac_check_lib_save_LIBS=$LIBS
5490LIBS="-lelf  $LIBS"
5491cat >conftest.$ac_ext <<_ACEOF
5492#line $LINENO "configure"
5493/* confdefs.h.  */
5494_ACEOF
5495cat confdefs.h >>conftest.$ac_ext
5496cat >>conftest.$ac_ext <<_ACEOF
5497/* end confdefs.h.  */
5498
5499/* Override any gcc2 internal prototype to avoid an error.  */
5500#ifdef __cplusplus
5501extern "C"
5502#endif
5503/* We use char because int might match the return type of a gcc2
5504   builtin and then its argument prototype would still apply.  */
5505char nlist ();
5506int
5507main ()
5508{
5509nlist ();
5510  ;
5511  return 0;
5512}
5513_ACEOF
5514rm -f conftest.$ac_objext conftest$ac_exeext
5515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5516  (eval $ac_link) 2>&5
5517  ac_status=$?
5518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519  (exit $ac_status); } &&
5520         { ac_try='test -s conftest$ac_exeext'
5521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5522  (eval $ac_try) 2>&5
5523  ac_status=$?
5524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525  (exit $ac_status); }; }; then
5526  ac_cv_lib_elf_nlist=yes
5527else
5528  echo "$as_me: failed program was:" >&5
5529sed 's/^/| /' conftest.$ac_ext >&5
5530
5531ac_cv_lib_elf_nlist=no
5532fi
5533rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5534LIBS=$ac_check_lib_save_LIBS
5535fi
5536echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5
5537echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6
5538if test $ac_cv_lib_elf_nlist = yes; then
5539  cat >>confdefs.h <<_ACEOF
5540#define HAVE_LIBELF 1
5541_ACEOF
5542
5543  LIBS="-lelf $LIBS"
5544
5545fi
5546
5547echo "$as_me:$LINENO: checking for main in -lkvm" >&5
5548echo $ECHO_N "checking for main in -lkvm... $ECHO_C" >&6
5549if test "${ac_cv_lib_kvm_main+set}" = set; then
5550  echo $ECHO_N "(cached) $ECHO_C" >&6
5551else
5552  ac_check_lib_save_LIBS=$LIBS
5553LIBS="-lkvm  $LIBS"
5554cat >conftest.$ac_ext <<_ACEOF
5555#line $LINENO "configure"
5556/* confdefs.h.  */
5557_ACEOF
5558cat confdefs.h >>conftest.$ac_ext
5559cat >>conftest.$ac_ext <<_ACEOF
5560/* end confdefs.h.  */
5561
5562
5563int
5564main ()
5565{
5566main ();
5567  ;
5568  return 0;
5569}
5570_ACEOF
5571rm -f conftest.$ac_objext conftest$ac_exeext
5572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5573  (eval $ac_link) 2>&5
5574  ac_status=$?
5575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576  (exit $ac_status); } &&
5577         { ac_try='test -s conftest$ac_exeext'
5578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579  (eval $ac_try) 2>&5
5580  ac_status=$?
5581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582  (exit $ac_status); }; }; then
5583  ac_cv_lib_kvm_main=yes
5584else
5585  echo "$as_me: failed program was:" >&5
5586sed 's/^/| /' conftest.$ac_ext >&5
5587
5588ac_cv_lib_kvm_main=no
5589fi
5590rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5591LIBS=$ac_check_lib_save_LIBS
5592fi
5593echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_main" >&5
5594echo "${ECHO_T}$ac_cv_lib_kvm_main" >&6
5595if test $ac_cv_lib_kvm_main = yes; then
5596  cat >>confdefs.h <<_ACEOF
5597#define HAVE_LIBKVM 1
5598_ACEOF
5599
5600  LIBS="-lkvm $LIBS"
5601
5602fi
5603
5604echo "$as_me:$LINENO: checking for nlist in -lld" >&5
5605echo $ECHO_N "checking for nlist in -lld... $ECHO_C" >&6
5606if test "${ac_cv_lib_ld_nlist+set}" = set; then
5607  echo $ECHO_N "(cached) $ECHO_C" >&6
5608else
5609  ac_check_lib_save_LIBS=$LIBS
5610LIBS="-lld  $LIBS"
5611cat >conftest.$ac_ext <<_ACEOF
5612#line $LINENO "configure"
5613/* confdefs.h.  */
5614_ACEOF
5615cat confdefs.h >>conftest.$ac_ext
5616cat >>conftest.$ac_ext <<_ACEOF
5617/* end confdefs.h.  */
5618
5619/* Override any gcc2 internal prototype to avoid an error.  */
5620#ifdef __cplusplus
5621extern "C"
5622#endif
5623/* We use char because int might match the return type of a gcc2
5624   builtin and then its argument prototype would still apply.  */
5625char nlist ();
5626int
5627main ()
5628{
5629nlist ();
5630  ;
5631  return 0;
5632}
5633_ACEOF
5634rm -f conftest.$ac_objext conftest$ac_exeext
5635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5636  (eval $ac_link) 2>&5
5637  ac_status=$?
5638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639  (exit $ac_status); } &&
5640         { ac_try='test -s conftest$ac_exeext'
5641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642  (eval $ac_try) 2>&5
5643  ac_status=$?
5644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645  (exit $ac_status); }; }; then
5646  ac_cv_lib_ld_nlist=yes
5647else
5648  echo "$as_me: failed program was:" >&5
5649sed 's/^/| /' conftest.$ac_ext >&5
5650
5651ac_cv_lib_ld_nlist=no
5652fi
5653rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5654LIBS=$ac_check_lib_save_LIBS
5655fi
5656echo "$as_me:$LINENO: result: $ac_cv_lib_ld_nlist" >&5
5657echo "${ECHO_T}$ac_cv_lib_ld_nlist" >&6
5658if test $ac_cv_lib_ld_nlist = yes; then
5659  cat >>confdefs.h <<_ACEOF
5660#define HAVE_LIBLD 1
5661_ACEOF
5662
5663  LIBS="-lld $LIBS"
5664
5665fi
5666
5667
5668echo "$as_me:$LINENO: checking for nlist in -lmld" >&5
5669echo $ECHO_N "checking for nlist in -lmld... $ECHO_C" >&6
5670if test "${ac_cv_lib_mld_nlist+set}" = set; then
5671  echo $ECHO_N "(cached) $ECHO_C" >&6
5672else
5673  ac_check_lib_save_LIBS=$LIBS
5674LIBS="-lmld  $LIBS"
5675cat >conftest.$ac_ext <<_ACEOF
5676#line $LINENO "configure"
5677/* confdefs.h.  */
5678_ACEOF
5679cat confdefs.h >>conftest.$ac_ext
5680cat >>conftest.$ac_ext <<_ACEOF
5681/* end confdefs.h.  */
5682
5683/* Override any gcc2 internal prototype to avoid an error.  */
5684#ifdef __cplusplus
5685extern "C"
5686#endif
5687/* We use char because int might match the return type of a gcc2
5688   builtin and then its argument prototype would still apply.  */
5689char nlist ();
5690int
5691main ()
5692{
5693nlist ();
5694  ;
5695  return 0;
5696}
5697_ACEOF
5698rm -f conftest.$ac_objext conftest$ac_exeext
5699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5700  (eval $ac_link) 2>&5
5701  ac_status=$?
5702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703  (exit $ac_status); } &&
5704         { ac_try='test -s conftest$ac_exeext'
5705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706  (eval $ac_try) 2>&5
5707  ac_status=$?
5708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709  (exit $ac_status); }; }; then
5710  ac_cv_lib_mld_nlist=yes
5711else
5712  echo "$as_me: failed program was:" >&5
5713sed 's/^/| /' conftest.$ac_ext >&5
5714
5715ac_cv_lib_mld_nlist=no
5716fi
5717rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5718LIBS=$ac_check_lib_save_LIBS
5719fi
5720echo "$as_me:$LINENO: result: $ac_cv_lib_mld_nlist" >&5
5721echo "${ECHO_T}$ac_cv_lib_mld_nlist" >&6
5722if test $ac_cv_lib_mld_nlist = yes; then
5723  cat >>confdefs.h <<_ACEOF
5724#define HAVE_LIBMLD 1
5725_ACEOF
5726
5727  LIBS="-lmld $LIBS"
5728
5729fi
5730
5731echo "$as_me:$LINENO: checking for gethostent" >&5
5732echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
5733if test "${ac_cv_func_gethostent+set}" = set; then
5734  echo $ECHO_N "(cached) $ECHO_C" >&6
5735else
5736  cat >conftest.$ac_ext <<_ACEOF
5737#line $LINENO "configure"
5738/* confdefs.h.  */
5739_ACEOF
5740cat confdefs.h >>conftest.$ac_ext
5741cat >>conftest.$ac_ext <<_ACEOF
5742/* end confdefs.h.  */
5743/* System header to define __stub macros and hopefully few prototypes,
5744    which can conflict with char gethostent (); below.
5745    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5746    <limits.h> exists even on freestanding compilers.  */
5747#ifdef __STDC__
5748# include <limits.h>
5749#else
5750# include <assert.h>
5751#endif
5752/* Override any gcc2 internal prototype to avoid an error.  */
5753#ifdef __cplusplus
5754extern "C"
5755{
5756#endif
5757/* We use char because int might match the return type of a gcc2
5758   builtin and then its argument prototype would still apply.  */
5759char gethostent ();
5760/* The GNU C library defines this for functions which it implements
5761    to always fail with ENOSYS.  Some functions are actually named
5762    something starting with __ and the normal name is an alias.  */
5763#if defined (__stub_gethostent) || defined (__stub___gethostent)
5764choke me
5765#else
5766char (*f) () = gethostent;
5767#endif
5768#ifdef __cplusplus
5769}
5770#endif
5771
5772int
5773main ()
5774{
5775return f != gethostent;
5776  ;
5777  return 0;
5778}
5779_ACEOF
5780rm -f conftest.$ac_objext conftest$ac_exeext
5781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5782  (eval $ac_link) 2>&5
5783  ac_status=$?
5784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785  (exit $ac_status); } &&
5786         { ac_try='test -s conftest$ac_exeext'
5787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788  (eval $ac_try) 2>&5
5789  ac_status=$?
5790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791  (exit $ac_status); }; }; then
5792  ac_cv_func_gethostent=yes
5793else
5794  echo "$as_me: failed program was:" >&5
5795sed 's/^/| /' conftest.$ac_ext >&5
5796
5797ac_cv_func_gethostent=no
5798fi
5799rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5800fi
5801echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
5802echo "${ECHO_T}$ac_cv_func_gethostent" >&6
5803if test $ac_cv_func_gethostent = yes; then
5804  :
5805else
5806
5807echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
5808echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
5809if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
5810  echo $ECHO_N "(cached) $ECHO_C" >&6
5811else
5812  ac_check_lib_save_LIBS=$LIBS
5813LIBS="-lnsl -lsocket $LIBS"
5814cat >conftest.$ac_ext <<_ACEOF
5815#line $LINENO "configure"
5816/* confdefs.h.  */
5817_ACEOF
5818cat confdefs.h >>conftest.$ac_ext
5819cat >>conftest.$ac_ext <<_ACEOF
5820/* end confdefs.h.  */
5821
5822/* Override any gcc2 internal prototype to avoid an error.  */
5823#ifdef __cplusplus
5824extern "C"
5825#endif
5826/* We use char because int might match the return type of a gcc2
5827   builtin and then its argument prototype would still apply.  */
5828char gethostent ();
5829int
5830main ()
5831{
5832gethostent ();
5833  ;
5834  return 0;
5835}
5836_ACEOF
5837rm -f conftest.$ac_objext conftest$ac_exeext
5838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5839  (eval $ac_link) 2>&5
5840  ac_status=$?
5841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842  (exit $ac_status); } &&
5843         { ac_try='test -s conftest$ac_exeext'
5844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845  (eval $ac_try) 2>&5
5846  ac_status=$?
5847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848  (exit $ac_status); }; }; then
5849  ac_cv_lib_nsl_gethostent=yes
5850else
5851  echo "$as_me: failed program was:" >&5
5852sed 's/^/| /' conftest.$ac_ext >&5
5853
5854ac_cv_lib_nsl_gethostent=no
5855fi
5856rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5857LIBS=$ac_check_lib_save_LIBS
5858fi
5859echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
5860echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
5861if test $ac_cv_lib_nsl_gethostent = yes; then
5862  cat >>confdefs.h <<_ACEOF
5863#define HAVE_LIBNSL 1
5864_ACEOF
5865
5866  LIBS="-lnsl $LIBS"
5867
5868fi
5869
5870fi
5871
5872echo "$as_me:$LINENO: checking for openlog" >&5
5873echo $ECHO_N "checking for openlog... $ECHO_C" >&6
5874if test "${ac_cv_func_openlog+set}" = set; then
5875  echo $ECHO_N "(cached) $ECHO_C" >&6
5876else
5877  cat >conftest.$ac_ext <<_ACEOF
5878#line $LINENO "configure"
5879/* confdefs.h.  */
5880_ACEOF
5881cat confdefs.h >>conftest.$ac_ext
5882cat >>conftest.$ac_ext <<_ACEOF
5883/* end confdefs.h.  */
5884/* System header to define __stub macros and hopefully few prototypes,
5885    which can conflict with char openlog (); below.
5886    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5887    <limits.h> exists even on freestanding compilers.  */
5888#ifdef __STDC__
5889# include <limits.h>
5890#else
5891# include <assert.h>
5892#endif
5893/* Override any gcc2 internal prototype to avoid an error.  */
5894#ifdef __cplusplus
5895extern "C"
5896{
5897#endif
5898/* We use char because int might match the return type of a gcc2
5899   builtin and then its argument prototype would still apply.  */
5900char openlog ();
5901/* The GNU C library defines this for functions which it implements
5902    to always fail with ENOSYS.  Some functions are actually named
5903    something starting with __ and the normal name is an alias.  */
5904#if defined (__stub_openlog) || defined (__stub___openlog)
5905choke me
5906#else
5907char (*f) () = openlog;
5908#endif
5909#ifdef __cplusplus
5910}
5911#endif
5912
5913int
5914main ()
5915{
5916return f != openlog;
5917  ;
5918  return 0;
5919}
5920_ACEOF
5921rm -f conftest.$ac_objext conftest$ac_exeext
5922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5923  (eval $ac_link) 2>&5
5924  ac_status=$?
5925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926  (exit $ac_status); } &&
5927         { ac_try='test -s conftest$ac_exeext'
5928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929  (eval $ac_try) 2>&5
5930  ac_status=$?
5931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932  (exit $ac_status); }; }; then
5933  ac_cv_func_openlog=yes
5934else
5935  echo "$as_me: failed program was:" >&5
5936sed 's/^/| /' conftest.$ac_ext >&5
5937
5938ac_cv_func_openlog=no
5939fi
5940rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5941fi
5942echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
5943echo "${ECHO_T}$ac_cv_func_openlog" >&6
5944if test $ac_cv_func_openlog = yes; then
5945  :
5946else
5947
5948echo "$as_me:$LINENO: checking for openlog in -lgen" >&5
5949echo $ECHO_N "checking for openlog in -lgen... $ECHO_C" >&6
5950if test "${ac_cv_lib_gen_openlog+set}" = set; then
5951  echo $ECHO_N "(cached) $ECHO_C" >&6
5952else
5953  ac_check_lib_save_LIBS=$LIBS
5954LIBS="-lgen  $LIBS"
5955cat >conftest.$ac_ext <<_ACEOF
5956#line $LINENO "configure"
5957/* confdefs.h.  */
5958_ACEOF
5959cat confdefs.h >>conftest.$ac_ext
5960cat >>conftest.$ac_ext <<_ACEOF
5961/* end confdefs.h.  */
5962
5963/* Override any gcc2 internal prototype to avoid an error.  */
5964#ifdef __cplusplus
5965extern "C"
5966#endif
5967/* We use char because int might match the return type of a gcc2
5968   builtin and then its argument prototype would still apply.  */
5969char openlog ();
5970int
5971main ()
5972{
5973openlog ();
5974  ;
5975  return 0;
5976}
5977_ACEOF
5978rm -f conftest.$ac_objext conftest$ac_exeext
5979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5980  (eval $ac_link) 2>&5
5981  ac_status=$?
5982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983  (exit $ac_status); } &&
5984         { ac_try='test -s conftest$ac_exeext'
5985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986  (eval $ac_try) 2>&5
5987  ac_status=$?
5988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989  (exit $ac_status); }; }; then
5990  ac_cv_lib_gen_openlog=yes
5991else
5992  echo "$as_me: failed program was:" >&5
5993sed 's/^/| /' conftest.$ac_ext >&5
5994
5995ac_cv_lib_gen_openlog=no
5996fi
5997rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5998LIBS=$ac_check_lib_save_LIBS
5999fi
6000echo "$as_me:$LINENO: result: $ac_cv_lib_gen_openlog" >&5
6001echo "${ECHO_T}$ac_cv_lib_gen_openlog" >&6
6002if test $ac_cv_lib_gen_openlog = yes; then
6003  cat >>confdefs.h <<_ACEOF
6004#define HAVE_LIBGEN 1
6005_ACEOF
6006
6007  LIBS="-lgen $LIBS"
6008
6009else
6010
6011echo "$as_me:$LINENO: checking for openlog in -lsyslog" >&5
6012echo $ECHO_N "checking for openlog in -lsyslog... $ECHO_C" >&6
6013if test "${ac_cv_lib_syslog_openlog+set}" = set; then
6014  echo $ECHO_N "(cached) $ECHO_C" >&6
6015else
6016  ac_check_lib_save_LIBS=$LIBS
6017LIBS="-lsyslog -lsocket $LIBS"
6018cat >conftest.$ac_ext <<_ACEOF
6019#line $LINENO "configure"
6020/* confdefs.h.  */
6021_ACEOF
6022cat confdefs.h >>conftest.$ac_ext
6023cat >>conftest.$ac_ext <<_ACEOF
6024/* end confdefs.h.  */
6025
6026/* Override any gcc2 internal prototype to avoid an error.  */
6027#ifdef __cplusplus
6028extern "C"
6029#endif
6030/* We use char because int might match the return type of a gcc2
6031   builtin and then its argument prototype would still apply.  */
6032char openlog ();
6033int
6034main ()
6035{
6036openlog ();
6037  ;
6038  return 0;
6039}
6040_ACEOF
6041rm -f conftest.$ac_objext conftest$ac_exeext
6042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6043  (eval $ac_link) 2>&5
6044  ac_status=$?
6045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046  (exit $ac_status); } &&
6047         { ac_try='test -s conftest$ac_exeext'
6048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049  (eval $ac_try) 2>&5
6050  ac_status=$?
6051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052  (exit $ac_status); }; }; then
6053  ac_cv_lib_syslog_openlog=yes
6054else
6055  echo "$as_me: failed program was:" >&5
6056sed 's/^/| /' conftest.$ac_ext >&5
6057
6058ac_cv_lib_syslog_openlog=no
6059fi
6060rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6061LIBS=$ac_check_lib_save_LIBS
6062fi
6063echo "$as_me:$LINENO: result: $ac_cv_lib_syslog_openlog" >&5
6064echo "${ECHO_T}$ac_cv_lib_syslog_openlog" >&6
6065if test $ac_cv_lib_syslog_openlog = yes; then
6066  cat >>confdefs.h <<_ACEOF
6067#define HAVE_LIBSYSLOG 1
6068_ACEOF
6069
6070  LIBS="-lsyslog $LIBS"
6071
6072fi
6073
6074fi
6075
6076fi
6077
6078
6079echo "$as_me:$LINENO: checking for MD5Init in -lmd5" >&5
6080echo $ECHO_N "checking for MD5Init in -lmd5... $ECHO_C" >&6
6081if test "${ac_cv_lib_md5_MD5Init+set}" = set; then
6082  echo $ECHO_N "(cached) $ECHO_C" >&6
6083else
6084  ac_check_lib_save_LIBS=$LIBS
6085LIBS="-lmd5  $LIBS"
6086cat >conftest.$ac_ext <<_ACEOF
6087#line $LINENO "configure"
6088/* confdefs.h.  */
6089_ACEOF
6090cat confdefs.h >>conftest.$ac_ext
6091cat >>conftest.$ac_ext <<_ACEOF
6092/* end confdefs.h.  */
6093
6094/* Override any gcc2 internal prototype to avoid an error.  */
6095#ifdef __cplusplus
6096extern "C"
6097#endif
6098/* We use char because int might match the return type of a gcc2
6099   builtin and then its argument prototype would still apply.  */
6100char MD5Init ();
6101int
6102main ()
6103{
6104MD5Init ();
6105  ;
6106  return 0;
6107}
6108_ACEOF
6109rm -f conftest.$ac_objext conftest$ac_exeext
6110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6111  (eval $ac_link) 2>&5
6112  ac_status=$?
6113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114  (exit $ac_status); } &&
6115         { ac_try='test -s conftest$ac_exeext'
6116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117  (eval $ac_try) 2>&5
6118  ac_status=$?
6119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120  (exit $ac_status); }; }; then
6121  ac_cv_lib_md5_MD5Init=yes
6122else
6123  echo "$as_me: failed program was:" >&5
6124sed 's/^/| /' conftest.$ac_ext >&5
6125
6126ac_cv_lib_md5_MD5Init=no
6127fi
6128rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6129LIBS=$ac_check_lib_save_LIBS
6130fi
6131echo "$as_me:$LINENO: result: $ac_cv_lib_md5_MD5Init" >&5
6132echo "${ECHO_T}$ac_cv_lib_md5_MD5Init" >&6
6133if test $ac_cv_lib_md5_MD5Init = yes; then
6134  cat >>confdefs.h <<_ACEOF
6135#define HAVE_LIBMD5 1
6136_ACEOF
6137
6138  LIBS="-lmd5 $LIBS"
6139
6140else
6141
6142echo "$as_me:$LINENO: checking for MD5Init in -lmd" >&5
6143echo $ECHO_N "checking for MD5Init in -lmd... $ECHO_C" >&6
6144if test "${ac_cv_lib_md_MD5Init+set}" = set; then
6145  echo $ECHO_N "(cached) $ECHO_C" >&6
6146else
6147  ac_check_lib_save_LIBS=$LIBS
6148LIBS="-lmd  $LIBS"
6149cat >conftest.$ac_ext <<_ACEOF
6150#line $LINENO "configure"
6151/* confdefs.h.  */
6152_ACEOF
6153cat confdefs.h >>conftest.$ac_ext
6154cat >>conftest.$ac_ext <<_ACEOF
6155/* end confdefs.h.  */
6156
6157/* Override any gcc2 internal prototype to avoid an error.  */
6158#ifdef __cplusplus
6159extern "C"
6160#endif
6161/* We use char because int might match the return type of a gcc2
6162   builtin and then its argument prototype would still apply.  */
6163char MD5Init ();
6164int
6165main ()
6166{
6167MD5Init ();
6168  ;
6169  return 0;
6170}
6171_ACEOF
6172rm -f conftest.$ac_objext conftest$ac_exeext
6173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6174  (eval $ac_link) 2>&5
6175  ac_status=$?
6176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177  (exit $ac_status); } &&
6178         { ac_try='test -s conftest$ac_exeext'
6179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180  (eval $ac_try) 2>&5
6181  ac_status=$?
6182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183  (exit $ac_status); }; }; then
6184  ac_cv_lib_md_MD5Init=yes
6185else
6186  echo "$as_me: failed program was:" >&5
6187sed 's/^/| /' conftest.$ac_ext >&5
6188
6189ac_cv_lib_md_MD5Init=no
6190fi
6191rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6192LIBS=$ac_check_lib_save_LIBS
6193fi
6194echo "$as_me:$LINENO: result: $ac_cv_lib_md_MD5Init" >&5
6195echo "${ECHO_T}$ac_cv_lib_md_MD5Init" >&6
6196if test $ac_cv_lib_md_MD5Init = yes; then
6197  cat >>confdefs.h <<_ACEOF
6198#define HAVE_LIBMD 1
6199_ACEOF
6200
6201  LIBS="-lmd $LIBS"
6202
6203fi
6204
6205fi
6206
6207
6208for ac_func in MD5Init
6209do
6210as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6211echo "$as_me:$LINENO: checking for $ac_func" >&5
6212echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6213if eval "test \"\${$as_ac_var+set}\" = set"; then
6214  echo $ECHO_N "(cached) $ECHO_C" >&6
6215else
6216  cat >conftest.$ac_ext <<_ACEOF
6217#line $LINENO "configure"
6218/* confdefs.h.  */
6219_ACEOF
6220cat confdefs.h >>conftest.$ac_ext
6221cat >>conftest.$ac_ext <<_ACEOF
6222/* end confdefs.h.  */
6223/* System header to define __stub macros and hopefully few prototypes,
6224    which can conflict with char $ac_func (); below.
6225    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6226    <limits.h> exists even on freestanding compilers.  */
6227#ifdef __STDC__
6228# include <limits.h>
6229#else
6230# include <assert.h>
6231#endif
6232/* Override any gcc2 internal prototype to avoid an error.  */
6233#ifdef __cplusplus
6234extern "C"
6235{
6236#endif
6237/* We use char because int might match the return type of a gcc2
6238   builtin and then its argument prototype would still apply.  */
6239char $ac_func ();
6240/* The GNU C library defines this for functions which it implements
6241    to always fail with ENOSYS.  Some functions are actually named
6242    something starting with __ and the normal name is an alias.  */
6243#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6244choke me
6245#else
6246char (*f) () = $ac_func;
6247#endif
6248#ifdef __cplusplus
6249}
6250#endif
6251
6252int
6253main ()
6254{
6255return f != $ac_func;
6256  ;
6257  return 0;
6258}
6259_ACEOF
6260rm -f conftest.$ac_objext conftest$ac_exeext
6261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6262  (eval $ac_link) 2>&5
6263  ac_status=$?
6264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265  (exit $ac_status); } &&
6266         { ac_try='test -s conftest$ac_exeext'
6267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268  (eval $ac_try) 2>&5
6269  ac_status=$?
6270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271  (exit $ac_status); }; }; then
6272  eval "$as_ac_var=yes"
6273else
6274  echo "$as_me: failed program was:" >&5
6275sed 's/^/| /' conftest.$ac_ext >&5
6276
6277eval "$as_ac_var=no"
6278fi
6279rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6280fi
6281echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6282echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6283if test `eval echo '${'$as_ac_var'}'` = yes; then
6284  cat >>confdefs.h <<_ACEOF
6285#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6286_ACEOF
6287
6288fi
6289done
6290
6291
6292
6293for ac_header in readline/history.h readline/readline.h
6294do
6295as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6296if eval "test \"\${$as_ac_Header+set}\" = set"; then
6297  echo "$as_me:$LINENO: checking for $ac_header" >&5
6298echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6299if eval "test \"\${$as_ac_Header+set}\" = set"; then
6300  echo $ECHO_N "(cached) $ECHO_C" >&6
6301fi
6302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6303echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6304else
6305  # Is the header compilable?
6306echo "$as_me:$LINENO: checking $ac_header usability" >&5
6307echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6308cat >conftest.$ac_ext <<_ACEOF
6309#line $LINENO "configure"
6310/* confdefs.h.  */
6311_ACEOF
6312cat confdefs.h >>conftest.$ac_ext
6313cat >>conftest.$ac_ext <<_ACEOF
6314/* end confdefs.h.  */
6315$ac_includes_default
6316#include <$ac_header>
6317_ACEOF
6318rm -f conftest.$ac_objext
6319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6320  (eval $ac_compile) 2>&5
6321  ac_status=$?
6322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323  (exit $ac_status); } &&
6324         { ac_try='test -s conftest.$ac_objext'
6325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326  (eval $ac_try) 2>&5
6327  ac_status=$?
6328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329  (exit $ac_status); }; }; then
6330  ac_header_compiler=yes
6331else
6332  echo "$as_me: failed program was:" >&5
6333sed 's/^/| /' conftest.$ac_ext >&5
6334
6335ac_header_compiler=no
6336fi
6337rm -f conftest.$ac_objext conftest.$ac_ext
6338echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6339echo "${ECHO_T}$ac_header_compiler" >&6
6340
6341# Is the header present?
6342echo "$as_me:$LINENO: checking $ac_header presence" >&5
6343echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6344cat >conftest.$ac_ext <<_ACEOF
6345#line $LINENO "configure"
6346/* confdefs.h.  */
6347_ACEOF
6348cat confdefs.h >>conftest.$ac_ext
6349cat >>conftest.$ac_ext <<_ACEOF
6350/* end confdefs.h.  */
6351#include <$ac_header>
6352_ACEOF
6353if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6354  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6355  ac_status=$?
6356  grep -v '^ *+' conftest.er1 >conftest.err
6357  rm -f conftest.er1
6358  cat conftest.err >&5
6359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360  (exit $ac_status); } >/dev/null; then
6361  if test -s conftest.err; then
6362    ac_cpp_err=$ac_c_preproc_warn_flag
6363  else
6364    ac_cpp_err=
6365  fi
6366else
6367  ac_cpp_err=yes
6368fi
6369if test -z "$ac_cpp_err"; then
6370  ac_header_preproc=yes
6371else
6372  echo "$as_me: failed program was:" >&5
6373sed 's/^/| /' conftest.$ac_ext >&5
6374
6375  ac_header_preproc=no
6376fi
6377rm -f conftest.err conftest.$ac_ext
6378echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6379echo "${ECHO_T}$ac_header_preproc" >&6
6380
6381# So?  What about this header?
6382case $ac_header_compiler:$ac_header_preproc in
6383  yes:no )
6384    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6385echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6386    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6387echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6388    (
6389      cat <<\_ASBOX
6390## ------------------------------------ ##
6391## Report this to bug-autoconf@gnu.org. ##
6392## ------------------------------------ ##
6393_ASBOX
6394    ) |
6395      sed "s/^/$as_me: WARNING:     /" >&2
6396    ;;
6397  no:yes )
6398    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6399echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6400    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6401echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6402    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6403echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6404    (
6405      cat <<\_ASBOX
6406## ------------------------------------ ##
6407## Report this to bug-autoconf@gnu.org. ##
6408## ------------------------------------ ##
6409_ASBOX
6410    ) |
6411      sed "s/^/$as_me: WARNING:     /" >&2
6412    ;;
6413esac
6414echo "$as_me:$LINENO: checking for $ac_header" >&5
6415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6416if eval "test \"\${$as_ac_Header+set}\" = set"; then
6417  echo $ECHO_N "(cached) $ECHO_C" >&6
6418else
6419  eval "$as_ac_Header=$ac_header_preproc"
6420fi
6421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6422echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6423
6424fi
6425if test `eval echo '${'$as_ac_Header'}'` = yes; then
6426  cat >>confdefs.h <<_ACEOF
6427#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6428_ACEOF
6429
6430fi
6431
6432done
6433
6434case "$ac_cv_header_readline_history_h$ac_cv_header_readline_readline_h" in
6435 *no*) ;;
6436 *) save_LIBS=$LIBS
6437    LIBS=
6438
6439echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
6440echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
6441if test "${ac_cv_lib_readline_readline+set}" = set; then
6442  echo $ECHO_N "(cached) $ECHO_C" >&6
6443else
6444  ac_check_lib_save_LIBS=$LIBS
6445LIBS="-lreadline  $LIBS"
6446cat >conftest.$ac_ext <<_ACEOF
6447#line $LINENO "configure"
6448/* confdefs.h.  */
6449_ACEOF
6450cat confdefs.h >>conftest.$ac_ext
6451cat >>conftest.$ac_ext <<_ACEOF
6452/* end confdefs.h.  */
6453
6454/* Override any gcc2 internal prototype to avoid an error.  */
6455#ifdef __cplusplus
6456extern "C"
6457#endif
6458/* We use char because int might match the return type of a gcc2
6459   builtin and then its argument prototype would still apply.  */
6460char readline ();
6461int
6462main ()
6463{
6464readline ();
6465  ;
6466  return 0;
6467}
6468_ACEOF
6469rm -f conftest.$ac_objext conftest$ac_exeext
6470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6471  (eval $ac_link) 2>&5
6472  ac_status=$?
6473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474  (exit $ac_status); } &&
6475         { ac_try='test -s conftest$ac_exeext'
6476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477  (eval $ac_try) 2>&5
6478  ac_status=$?
6479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480  (exit $ac_status); }; }; then
6481  ac_cv_lib_readline_readline=yes
6482else
6483  echo "$as_me: failed program was:" >&5
6484sed 's/^/| /' conftest.$ac_ext >&5
6485
6486ac_cv_lib_readline_readline=no
6487fi
6488rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6489LIBS=$ac_check_lib_save_LIBS
6490fi
6491echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
6492echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
6493if test $ac_cv_lib_readline_readline = yes; then
6494  cat >>confdefs.h <<_ACEOF
6495#define HAVE_LIBREADLINE 1
6496_ACEOF
6497
6498  LIBS="-lreadline $LIBS"
6499
6500else
6501  { echo "$as_me:$LINENO: Trying again with -lcurses" >&5
6502echo "$as_me: Trying again with -lcurses" >&6;}
6503     unset ac_cv_lib_readline_readline
6504     echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
6505echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
6506if test "${ac_cv_lib_readline_readline+set}" = set; then
6507  echo $ECHO_N "(cached) $ECHO_C" >&6
6508else
6509  ac_check_lib_save_LIBS=$LIBS
6510LIBS="-lreadline -lcurses $LIBS"
6511cat >conftest.$ac_ext <<_ACEOF
6512#line $LINENO "configure"
6513/* confdefs.h.  */
6514_ACEOF
6515cat confdefs.h >>conftest.$ac_ext
6516cat >>conftest.$ac_ext <<_ACEOF
6517/* end confdefs.h.  */
6518
6519/* Override any gcc2 internal prototype to avoid an error.  */
6520#ifdef __cplusplus
6521extern "C"
6522#endif
6523/* We use char because int might match the return type of a gcc2
6524   builtin and then its argument prototype would still apply.  */
6525char readline ();
6526int
6527main ()
6528{
6529readline ();
6530  ;
6531  return 0;
6532}
6533_ACEOF
6534rm -f conftest.$ac_objext conftest$ac_exeext
6535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6536  (eval $ac_link) 2>&5
6537  ac_status=$?
6538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539  (exit $ac_status); } &&
6540         { ac_try='test -s conftest$ac_exeext'
6541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542  (eval $ac_try) 2>&5
6543  ac_status=$?
6544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545  (exit $ac_status); }; }; then
6546  ac_cv_lib_readline_readline=yes
6547else
6548  echo "$as_me: failed program was:" >&5
6549sed 's/^/| /' conftest.$ac_ext >&5
6550
6551ac_cv_lib_readline_readline=no
6552fi
6553rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6554LIBS=$ac_check_lib_save_LIBS
6555fi
6556echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
6557echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
6558if test $ac_cv_lib_readline_readline = yes; then
6559  LIBS="-lreadline -lcurses $LIBS"
6560      cat >>confdefs.h <<\_ACEOF
6561#define HAVE_LIBREADLINE 1
6562_ACEOF
6563
6564
6565cat >>confdefs.h <<\_ACEOF
6566#define HAVE_LIBCURSES
6567_ACEOF
6568
6569else
6570  echo "$as_me:$LINENO: checking for readline in -ledit" >&5
6571echo $ECHO_N "checking for readline in -ledit... $ECHO_C" >&6
6572if test "${ac_cv_lib_edit_readline+set}" = set; then
6573  echo $ECHO_N "(cached) $ECHO_C" >&6
6574else
6575  ac_check_lib_save_LIBS=$LIBS
6576LIBS="-ledit -lcurses $LIBS"
6577cat >conftest.$ac_ext <<_ACEOF
6578#line $LINENO "configure"
6579/* confdefs.h.  */
6580_ACEOF
6581cat confdefs.h >>conftest.$ac_ext
6582cat >>conftest.$ac_ext <<_ACEOF
6583/* end confdefs.h.  */
6584
6585/* Override any gcc2 internal prototype to avoid an error.  */
6586#ifdef __cplusplus
6587extern "C"
6588#endif
6589/* We use char because int might match the return type of a gcc2
6590   builtin and then its argument prototype would still apply.  */
6591char readline ();
6592int
6593main ()
6594{
6595readline ();
6596  ;
6597  return 0;
6598}
6599_ACEOF
6600rm -f conftest.$ac_objext conftest$ac_exeext
6601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6602  (eval $ac_link) 2>&5
6603  ac_status=$?
6604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605  (exit $ac_status); } &&
6606         { ac_try='test -s conftest$ac_exeext'
6607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608  (eval $ac_try) 2>&5
6609  ac_status=$?
6610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611  (exit $ac_status); }; }; then
6612  ac_cv_lib_edit_readline=yes
6613else
6614  echo "$as_me: failed program was:" >&5
6615sed 's/^/| /' conftest.$ac_ext >&5
6616
6617ac_cv_lib_edit_readline=no
6618fi
6619rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6620LIBS=$ac_check_lib_save_LIBS
6621fi
6622echo "$as_me:$LINENO: result: $ac_cv_lib_edit_readline" >&5
6623echo "${ECHO_T}$ac_cv_lib_edit_readline" >&6
6624if test $ac_cv_lib_edit_readline = yes; then
6625  LIBS="-ledit -lcurses"
6626
6627cat >>confdefs.h <<\_ACEOF
6628#define HAVE_LIBEDIT
6629_ACEOF
6630
6631
6632cat >>confdefs.h <<\_ACEOF
6633#define HAVE_LIBCURSES
6634_ACEOF
6635
6636
6637fi
6638
6639
6640fi
6641
6642fi
6643
6644    READLINE_LIBS=$LIBS
6645
6646    LIBS=$save_LIBS
6647    ;;
6648esac
6649
6650
6651case "$host" in
6652 *-*-linux*) ;;
6653 *)
6654
6655echo "$as_me:$LINENO: checking for sched_setscheduler in -lrt" >&5
6656echo $ECHO_N "checking for sched_setscheduler in -lrt... $ECHO_C" >&6
6657if test "${ac_cv_lib_rt_sched_setscheduler+set}" = set; then
6658  echo $ECHO_N "(cached) $ECHO_C" >&6
6659else
6660  ac_check_lib_save_LIBS=$LIBS
6661LIBS="-lrt  $LIBS"
6662cat >conftest.$ac_ext <<_ACEOF
6663#line $LINENO "configure"
6664/* confdefs.h.  */
6665_ACEOF
6666cat confdefs.h >>conftest.$ac_ext
6667cat >>conftest.$ac_ext <<_ACEOF
6668/* end confdefs.h.  */
6669
6670/* Override any gcc2 internal prototype to avoid an error.  */
6671#ifdef __cplusplus
6672extern "C"
6673#endif
6674/* We use char because int might match the return type of a gcc2
6675   builtin and then its argument prototype would still apply.  */
6676char sched_setscheduler ();
6677int
6678main ()
6679{
6680sched_setscheduler ();
6681  ;
6682  return 0;
6683}
6684_ACEOF
6685rm -f conftest.$ac_objext conftest$ac_exeext
6686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6687  (eval $ac_link) 2>&5
6688  ac_status=$?
6689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690  (exit $ac_status); } &&
6691         { ac_try='test -s conftest$ac_exeext'
6692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693  (eval $ac_try) 2>&5
6694  ac_status=$?
6695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696  (exit $ac_status); }; }; then
6697  ac_cv_lib_rt_sched_setscheduler=yes
6698else
6699  echo "$as_me: failed program was:" >&5
6700sed 's/^/| /' conftest.$ac_ext >&5
6701
6702ac_cv_lib_rt_sched_setscheduler=no
6703fi
6704rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6705LIBS=$ac_check_lib_save_LIBS
6706fi
6707echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_setscheduler" >&5
6708echo "${ECHO_T}$ac_cv_lib_rt_sched_setscheduler" >&6
6709if test $ac_cv_lib_rt_sched_setscheduler = yes; then
6710  cat >>confdefs.h <<_ACEOF
6711#define HAVE_LIBRT 1
6712_ACEOF
6713
6714  LIBS="-lrt $LIBS"
6715
6716else
6717
6718echo "$as_me:$LINENO: checking for sched_setscheduler in -lposix4" >&5
6719echo $ECHO_N "checking for sched_setscheduler in -lposix4... $ECHO_C" >&6
6720if test "${ac_cv_lib_posix4_sched_setscheduler+set}" = set; then
6721  echo $ECHO_N "(cached) $ECHO_C" >&6
6722else
6723  ac_check_lib_save_LIBS=$LIBS
6724LIBS="-lposix4  $LIBS"
6725cat >conftest.$ac_ext <<_ACEOF
6726#line $LINENO "configure"
6727/* confdefs.h.  */
6728_ACEOF
6729cat confdefs.h >>conftest.$ac_ext
6730cat >>conftest.$ac_ext <<_ACEOF
6731/* end confdefs.h.  */
6732
6733/* Override any gcc2 internal prototype to avoid an error.  */
6734#ifdef __cplusplus
6735extern "C"
6736#endif
6737/* We use char because int might match the return type of a gcc2
6738   builtin and then its argument prototype would still apply.  */
6739char sched_setscheduler ();
6740int
6741main ()
6742{
6743sched_setscheduler ();
6744  ;
6745  return 0;
6746}
6747_ACEOF
6748rm -f conftest.$ac_objext conftest$ac_exeext
6749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6750  (eval $ac_link) 2>&5
6751  ac_status=$?
6752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753  (exit $ac_status); } &&
6754         { ac_try='test -s conftest$ac_exeext'
6755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756  (eval $ac_try) 2>&5
6757  ac_status=$?
6758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759  (exit $ac_status); }; }; then
6760  ac_cv_lib_posix4_sched_setscheduler=yes
6761else
6762  echo "$as_me: failed program was:" >&5
6763sed 's/^/| /' conftest.$ac_ext >&5
6764
6765ac_cv_lib_posix4_sched_setscheduler=no
6766fi
6767rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6768LIBS=$ac_check_lib_save_LIBS
6769fi
6770echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_setscheduler" >&5
6771echo "${ECHO_T}$ac_cv_lib_posix4_sched_setscheduler" >&6
6772if test $ac_cv_lib_posix4_sched_setscheduler = yes; then
6773  cat >>confdefs.h <<_ACEOF
6774#define HAVE_LIBPOSIX4 1
6775_ACEOF
6776
6777  LIBS="-lposix4 $LIBS"
6778
6779fi
6780
6781fi
6782
6783    ;;
6784esac
6785
6786echo "$as_me:$LINENO: checking for setsockopt" >&5
6787echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
6788if test "${ac_cv_func_setsockopt+set}" = set; then
6789  echo $ECHO_N "(cached) $ECHO_C" >&6
6790else
6791  cat >conftest.$ac_ext <<_ACEOF
6792#line $LINENO "configure"
6793/* confdefs.h.  */
6794_ACEOF
6795cat confdefs.h >>conftest.$ac_ext
6796cat >>conftest.$ac_ext <<_ACEOF
6797/* end confdefs.h.  */
6798/* System header to define __stub macros and hopefully few prototypes,
6799    which can conflict with char setsockopt (); below.
6800    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6801    <limits.h> exists even on freestanding compilers.  */
6802#ifdef __STDC__
6803# include <limits.h>
6804#else
6805# include <assert.h>
6806#endif
6807/* Override any gcc2 internal prototype to avoid an error.  */
6808#ifdef __cplusplus
6809extern "C"
6810{
6811#endif
6812/* We use char because int might match the return type of a gcc2
6813   builtin and then its argument prototype would still apply.  */
6814char setsockopt ();
6815/* The GNU C library defines this for functions which it implements
6816    to always fail with ENOSYS.  Some functions are actually named
6817    something starting with __ and the normal name is an alias.  */
6818#if defined (__stub_setsockopt) || defined (__stub___setsockopt)
6819choke me
6820#else
6821char (*f) () = setsockopt;
6822#endif
6823#ifdef __cplusplus
6824}
6825#endif
6826
6827int
6828main ()
6829{
6830return f != setsockopt;
6831  ;
6832  return 0;
6833}
6834_ACEOF
6835rm -f conftest.$ac_objext conftest$ac_exeext
6836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6837  (eval $ac_link) 2>&5
6838  ac_status=$?
6839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840  (exit $ac_status); } &&
6841         { ac_try='test -s conftest$ac_exeext'
6842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6843  (eval $ac_try) 2>&5
6844  ac_status=$?
6845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846  (exit $ac_status); }; }; then
6847  ac_cv_func_setsockopt=yes
6848else
6849  echo "$as_me: failed program was:" >&5
6850sed 's/^/| /' conftest.$ac_ext >&5
6851
6852ac_cv_func_setsockopt=no
6853fi
6854rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6855fi
6856echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
6857echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
6858if test $ac_cv_func_setsockopt = yes; then
6859  :
6860else
6861
6862echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
6863echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
6864if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
6865  echo $ECHO_N "(cached) $ECHO_C" >&6
6866else
6867  ac_check_lib_save_LIBS=$LIBS
6868LIBS="-lsocket  $LIBS"
6869cat >conftest.$ac_ext <<_ACEOF
6870#line $LINENO "configure"
6871/* confdefs.h.  */
6872_ACEOF
6873cat confdefs.h >>conftest.$ac_ext
6874cat >>conftest.$ac_ext <<_ACEOF
6875/* end confdefs.h.  */
6876
6877/* Override any gcc2 internal prototype to avoid an error.  */
6878#ifdef __cplusplus
6879extern "C"
6880#endif
6881/* We use char because int might match the return type of a gcc2
6882   builtin and then its argument prototype would still apply.  */
6883char setsockopt ();
6884int
6885main ()
6886{
6887setsockopt ();
6888  ;
6889  return 0;
6890}
6891_ACEOF
6892rm -f conftest.$ac_objext conftest$ac_exeext
6893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6894  (eval $ac_link) 2>&5
6895  ac_status=$?
6896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897  (exit $ac_status); } &&
6898         { ac_try='test -s conftest$ac_exeext'
6899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900  (eval $ac_try) 2>&5
6901  ac_status=$?
6902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903  (exit $ac_status); }; }; then
6904  ac_cv_lib_socket_setsockopt=yes
6905else
6906  echo "$as_me: failed program was:" >&5
6907sed 's/^/| /' conftest.$ac_ext >&5
6908
6909ac_cv_lib_socket_setsockopt=no
6910fi
6911rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6912LIBS=$ac_check_lib_save_LIBS
6913fi
6914echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
6915echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
6916if test $ac_cv_lib_socket_setsockopt = yes; then
6917  cat >>confdefs.h <<_ACEOF
6918#define HAVE_LIBSOCKET 1
6919_ACEOF
6920
6921  LIBS="-lsocket $LIBS"
6922
6923fi
6924
6925fi
6926
6927
6928echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6929echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6930if test "${ac_cv_header_stdc+set}" = set; then
6931  echo $ECHO_N "(cached) $ECHO_C" >&6
6932else
6933  cat >conftest.$ac_ext <<_ACEOF
6934#line $LINENO "configure"
6935/* confdefs.h.  */
6936_ACEOF
6937cat confdefs.h >>conftest.$ac_ext
6938cat >>conftest.$ac_ext <<_ACEOF
6939/* end confdefs.h.  */
6940#include <stdlib.h>
6941#include <stdarg.h>
6942#include <string.h>
6943#include <float.h>
6944
6945int
6946main ()
6947{
6948
6949  ;
6950  return 0;
6951}
6952_ACEOF
6953rm -f conftest.$ac_objext
6954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6955  (eval $ac_compile) 2>&5
6956  ac_status=$?
6957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958  (exit $ac_status); } &&
6959         { ac_try='test -s conftest.$ac_objext'
6960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961  (eval $ac_try) 2>&5
6962  ac_status=$?
6963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964  (exit $ac_status); }; }; then
6965  ac_cv_header_stdc=yes
6966else
6967  echo "$as_me: failed program was:" >&5
6968sed 's/^/| /' conftest.$ac_ext >&5
6969
6970ac_cv_header_stdc=no
6971fi
6972rm -f conftest.$ac_objext conftest.$ac_ext
6973
6974if test $ac_cv_header_stdc = yes; then
6975  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6976  cat >conftest.$ac_ext <<_ACEOF
6977#line $LINENO "configure"
6978/* confdefs.h.  */
6979_ACEOF
6980cat confdefs.h >>conftest.$ac_ext
6981cat >>conftest.$ac_ext <<_ACEOF
6982/* end confdefs.h.  */
6983#include <string.h>
6984
6985_ACEOF
6986if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6987  $EGREP "memchr" >/dev/null 2>&1; then
6988  :
6989else
6990  ac_cv_header_stdc=no
6991fi
6992rm -f conftest*
6993
6994fi
6995
6996if test $ac_cv_header_stdc = yes; then
6997  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6998  cat >conftest.$ac_ext <<_ACEOF
6999#line $LINENO "configure"
7000/* confdefs.h.  */
7001_ACEOF
7002cat confdefs.h >>conftest.$ac_ext
7003cat >>conftest.$ac_ext <<_ACEOF
7004/* end confdefs.h.  */
7005#include <stdlib.h>
7006
7007_ACEOF
7008if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7009  $EGREP "free" >/dev/null 2>&1; then
7010  :
7011else
7012  ac_cv_header_stdc=no
7013fi
7014rm -f conftest*
7015
7016fi
7017
7018if test $ac_cv_header_stdc = yes; then
7019  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7020  if test "$cross_compiling" = yes; then
7021  :
7022else
7023  cat >conftest.$ac_ext <<_ACEOF
7024#line $LINENO "configure"
7025/* confdefs.h.  */
7026_ACEOF
7027cat confdefs.h >>conftest.$ac_ext
7028cat >>conftest.$ac_ext <<_ACEOF
7029/* end confdefs.h.  */
7030#include <ctype.h>
7031#if ((' ' & 0x0FF) == 0x020)
7032# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7033# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7034#else
7035# define ISLOWER(c) \
7036                   (('a' <= (c) && (c) <= 'i') \
7037                     || ('j' <= (c) && (c) <= 'r') \
7038                     || ('s' <= (c) && (c) <= 'z'))
7039# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7040#endif
7041
7042#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7043int
7044main ()
7045{
7046  int i;
7047  for (i = 0; i < 256; i++)
7048    if (XOR (islower (i), ISLOWER (i))
7049        || toupper (i) != TOUPPER (i))
7050      exit(2);
7051  exit (0);
7052}
7053_ACEOF
7054rm -f conftest$ac_exeext
7055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7056  (eval $ac_link) 2>&5
7057  ac_status=$?
7058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061  (eval $ac_try) 2>&5
7062  ac_status=$?
7063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064  (exit $ac_status); }; }; then
7065  :
7066else
7067  echo "$as_me: program exited with status $ac_status" >&5
7068echo "$as_me: failed program was:" >&5
7069sed 's/^/| /' conftest.$ac_ext >&5
7070
7071( exit $ac_status )
7072ac_cv_header_stdc=no
7073fi
7074rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7075fi
7076fi
7077fi
7078echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7079echo "${ECHO_T}$ac_cv_header_stdc" >&6
7080if test $ac_cv_header_stdc = yes; then
7081
7082cat >>confdefs.h <<\_ACEOF
7083#define STDC_HEADERS 1
7084_ACEOF
7085
7086fi
7087
7088
7089
7090
7091
7092
7093for ac_header in bstring.h errno.h fcntl.h ieeefp.h math.h
7094do
7095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7096if eval "test \"\${$as_ac_Header+set}\" = set"; then
7097  echo "$as_me:$LINENO: checking for $ac_header" >&5
7098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7099if eval "test \"\${$as_ac_Header+set}\" = set"; then
7100  echo $ECHO_N "(cached) $ECHO_C" >&6
7101fi
7102echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7103echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7104else
7105  # Is the header compilable?
7106echo "$as_me:$LINENO: checking $ac_header usability" >&5
7107echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7108cat >conftest.$ac_ext <<_ACEOF
7109#line $LINENO "configure"
7110/* confdefs.h.  */
7111_ACEOF
7112cat confdefs.h >>conftest.$ac_ext
7113cat >>conftest.$ac_ext <<_ACEOF
7114/* end confdefs.h.  */
7115$ac_includes_default
7116#include <$ac_header>
7117_ACEOF
7118rm -f conftest.$ac_objext
7119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7120  (eval $ac_compile) 2>&5
7121  ac_status=$?
7122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123  (exit $ac_status); } &&
7124         { ac_try='test -s conftest.$ac_objext'
7125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126  (eval $ac_try) 2>&5
7127  ac_status=$?
7128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129  (exit $ac_status); }; }; then
7130  ac_header_compiler=yes
7131else
7132  echo "$as_me: failed program was:" >&5
7133sed 's/^/| /' conftest.$ac_ext >&5
7134
7135ac_header_compiler=no
7136fi
7137rm -f conftest.$ac_objext conftest.$ac_ext
7138echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7139echo "${ECHO_T}$ac_header_compiler" >&6
7140
7141# Is the header present?
7142echo "$as_me:$LINENO: checking $ac_header presence" >&5
7143echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7144cat >conftest.$ac_ext <<_ACEOF
7145#line $LINENO "configure"
7146/* confdefs.h.  */
7147_ACEOF
7148cat confdefs.h >>conftest.$ac_ext
7149cat >>conftest.$ac_ext <<_ACEOF
7150/* end confdefs.h.  */
7151#include <$ac_header>
7152_ACEOF
7153if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7154  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7155  ac_status=$?
7156  grep -v '^ *+' conftest.er1 >conftest.err
7157  rm -f conftest.er1
7158  cat conftest.err >&5
7159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160  (exit $ac_status); } >/dev/null; then
7161  if test -s conftest.err; then
7162    ac_cpp_err=$ac_c_preproc_warn_flag
7163  else
7164    ac_cpp_err=
7165  fi
7166else
7167  ac_cpp_err=yes
7168fi
7169if test -z "$ac_cpp_err"; then
7170  ac_header_preproc=yes
7171else
7172  echo "$as_me: failed program was:" >&5
7173sed 's/^/| /' conftest.$ac_ext >&5
7174
7175  ac_header_preproc=no
7176fi
7177rm -f conftest.err conftest.$ac_ext
7178echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7179echo "${ECHO_T}$ac_header_preproc" >&6
7180
7181# So?  What about this header?
7182case $ac_header_compiler:$ac_header_preproc in
7183  yes:no )
7184    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7185echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7186    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7187echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7188    (
7189      cat <<\_ASBOX
7190## ------------------------------------ ##
7191## Report this to bug-autoconf@gnu.org. ##
7192## ------------------------------------ ##
7193_ASBOX
7194    ) |
7195      sed "s/^/$as_me: WARNING:     /" >&2
7196    ;;
7197  no:yes )
7198    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7199echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7200    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7201echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7202    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7203echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7204    (
7205      cat <<\_ASBOX
7206## ------------------------------------ ##
7207## Report this to bug-autoconf@gnu.org. ##
7208## ------------------------------------ ##
7209_ASBOX
7210    ) |
7211      sed "s/^/$as_me: WARNING:     /" >&2
7212    ;;
7213esac
7214echo "$as_me:$LINENO: checking for $ac_header" >&5
7215echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7216if eval "test \"\${$as_ac_Header+set}\" = set"; then
7217  echo $ECHO_N "(cached) $ECHO_C" >&6
7218else
7219  eval "$as_ac_Header=$ac_header_preproc"
7220fi
7221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7222echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7223
7224fi
7225if test `eval echo '${'$as_ac_Header'}'` = yes; then
7226  cat >>confdefs.h <<_ACEOF
7227#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7228_ACEOF
7229
7230fi
7231
7232done
7233
7234# HMS: Lame, but fast.
7235if test -f /etc/redhat-release
7236then
7237    :
7238else
7239
7240for ac_header in md5.h
7241do
7242as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7243if eval "test \"\${$as_ac_Header+set}\" = set"; then
7244  echo "$as_me:$LINENO: checking for $ac_header" >&5
7245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7246if eval "test \"\${$as_ac_Header+set}\" = set"; then
7247  echo $ECHO_N "(cached) $ECHO_C" >&6
7248fi
7249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7250echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7251else
7252  # Is the header compilable?
7253echo "$as_me:$LINENO: checking $ac_header usability" >&5
7254echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7255cat >conftest.$ac_ext <<_ACEOF
7256#line $LINENO "configure"
7257/* confdefs.h.  */
7258_ACEOF
7259cat confdefs.h >>conftest.$ac_ext
7260cat >>conftest.$ac_ext <<_ACEOF
7261/* end confdefs.h.  */
7262$ac_includes_default
7263#include <$ac_header>
7264_ACEOF
7265rm -f conftest.$ac_objext
7266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7267  (eval $ac_compile) 2>&5
7268  ac_status=$?
7269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270  (exit $ac_status); } &&
7271         { ac_try='test -s conftest.$ac_objext'
7272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273  (eval $ac_try) 2>&5
7274  ac_status=$?
7275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276  (exit $ac_status); }; }; then
7277  ac_header_compiler=yes
7278else
7279  echo "$as_me: failed program was:" >&5
7280sed 's/^/| /' conftest.$ac_ext >&5
7281
7282ac_header_compiler=no
7283fi
7284rm -f conftest.$ac_objext conftest.$ac_ext
7285echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7286echo "${ECHO_T}$ac_header_compiler" >&6
7287
7288# Is the header present?
7289echo "$as_me:$LINENO: checking $ac_header presence" >&5
7290echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7291cat >conftest.$ac_ext <<_ACEOF
7292#line $LINENO "configure"
7293/* confdefs.h.  */
7294_ACEOF
7295cat confdefs.h >>conftest.$ac_ext
7296cat >>conftest.$ac_ext <<_ACEOF
7297/* end confdefs.h.  */
7298#include <$ac_header>
7299_ACEOF
7300if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7301  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7302  ac_status=$?
7303  grep -v '^ *+' conftest.er1 >conftest.err
7304  rm -f conftest.er1
7305  cat conftest.err >&5
7306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307  (exit $ac_status); } >/dev/null; then
7308  if test -s conftest.err; then
7309    ac_cpp_err=$ac_c_preproc_warn_flag
7310  else
7311    ac_cpp_err=
7312  fi
7313else
7314  ac_cpp_err=yes
7315fi
7316if test -z "$ac_cpp_err"; then
7317  ac_header_preproc=yes
7318else
7319  echo "$as_me: failed program was:" >&5
7320sed 's/^/| /' conftest.$ac_ext >&5
7321
7322  ac_header_preproc=no
7323fi
7324rm -f conftest.err conftest.$ac_ext
7325echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7326echo "${ECHO_T}$ac_header_preproc" >&6
7327
7328# So?  What about this header?
7329case $ac_header_compiler:$ac_header_preproc in
7330  yes:no )
7331    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7332echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7333    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7334echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7335    (
7336      cat <<\_ASBOX
7337## ------------------------------------ ##
7338## Report this to bug-autoconf@gnu.org. ##
7339## ------------------------------------ ##
7340_ASBOX
7341    ) |
7342      sed "s/^/$as_me: WARNING:     /" >&2
7343    ;;
7344  no:yes )
7345    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7346echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7347    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7348echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7349    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7350echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7351    (
7352      cat <<\_ASBOX
7353## ------------------------------------ ##
7354## Report this to bug-autoconf@gnu.org. ##
7355## ------------------------------------ ##
7356_ASBOX
7357    ) |
7358      sed "s/^/$as_me: WARNING:     /" >&2
7359    ;;
7360esac
7361echo "$as_me:$LINENO: checking for $ac_header" >&5
7362echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7363if eval "test \"\${$as_ac_Header+set}\" = set"; then
7364  echo $ECHO_N "(cached) $ECHO_C" >&6
7365else
7366  eval "$as_ac_Header=$ac_header_preproc"
7367fi
7368echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7369echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7370
7371fi
7372if test `eval echo '${'$as_ac_Header'}'` = yes; then
7373  cat >>confdefs.h <<_ACEOF
7374#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7375_ACEOF
7376
7377fi
7378
7379done
7380
7381fi
7382
7383
7384
7385for ac_header in memory.h netdb.h poll.h
7386do
7387as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7388if eval "test \"\${$as_ac_Header+set}\" = set"; then
7389  echo "$as_me:$LINENO: checking for $ac_header" >&5
7390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7391if eval "test \"\${$as_ac_Header+set}\" = set"; then
7392  echo $ECHO_N "(cached) $ECHO_C" >&6
7393fi
7394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7396else
7397  # Is the header compilable?
7398echo "$as_me:$LINENO: checking $ac_header usability" >&5
7399echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7400cat >conftest.$ac_ext <<_ACEOF
7401#line $LINENO "configure"
7402/* confdefs.h.  */
7403_ACEOF
7404cat confdefs.h >>conftest.$ac_ext
7405cat >>conftest.$ac_ext <<_ACEOF
7406/* end confdefs.h.  */
7407$ac_includes_default
7408#include <$ac_header>
7409_ACEOF
7410rm -f conftest.$ac_objext
7411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7412  (eval $ac_compile) 2>&5
7413  ac_status=$?
7414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415  (exit $ac_status); } &&
7416         { ac_try='test -s conftest.$ac_objext'
7417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418  (eval $ac_try) 2>&5
7419  ac_status=$?
7420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421  (exit $ac_status); }; }; then
7422  ac_header_compiler=yes
7423else
7424  echo "$as_me: failed program was:" >&5
7425sed 's/^/| /' conftest.$ac_ext >&5
7426
7427ac_header_compiler=no
7428fi
7429rm -f conftest.$ac_objext conftest.$ac_ext
7430echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7431echo "${ECHO_T}$ac_header_compiler" >&6
7432
7433# Is the header present?
7434echo "$as_me:$LINENO: checking $ac_header presence" >&5
7435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7436cat >conftest.$ac_ext <<_ACEOF
7437#line $LINENO "configure"
7438/* confdefs.h.  */
7439_ACEOF
7440cat confdefs.h >>conftest.$ac_ext
7441cat >>conftest.$ac_ext <<_ACEOF
7442/* end confdefs.h.  */
7443#include <$ac_header>
7444_ACEOF
7445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7446  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7447  ac_status=$?
7448  grep -v '^ *+' conftest.er1 >conftest.err
7449  rm -f conftest.er1
7450  cat conftest.err >&5
7451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452  (exit $ac_status); } >/dev/null; then
7453  if test -s conftest.err; then
7454    ac_cpp_err=$ac_c_preproc_warn_flag
7455  else
7456    ac_cpp_err=
7457  fi
7458else
7459  ac_cpp_err=yes
7460fi
7461if test -z "$ac_cpp_err"; then
7462  ac_header_preproc=yes
7463else
7464  echo "$as_me: failed program was:" >&5
7465sed 's/^/| /' conftest.$ac_ext >&5
7466
7467  ac_header_preproc=no
7468fi
7469rm -f conftest.err conftest.$ac_ext
7470echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7471echo "${ECHO_T}$ac_header_preproc" >&6
7472
7473# So?  What about this header?
7474case $ac_header_compiler:$ac_header_preproc in
7475  yes:no )
7476    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7477echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7478    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7479echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7480    (
7481      cat <<\_ASBOX
7482## ------------------------------------ ##
7483## Report this to bug-autoconf@gnu.org. ##
7484## ------------------------------------ ##
7485_ASBOX
7486    ) |
7487      sed "s/^/$as_me: WARNING:     /" >&2
7488    ;;
7489  no:yes )
7490    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7491echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7492    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7493echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7494    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7495echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7496    (
7497      cat <<\_ASBOX
7498## ------------------------------------ ##
7499## Report this to bug-autoconf@gnu.org. ##
7500## ------------------------------------ ##
7501_ASBOX
7502    ) |
7503      sed "s/^/$as_me: WARNING:     /" >&2
7504    ;;
7505esac
7506echo "$as_me:$LINENO: checking for $ac_header" >&5
7507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7508if eval "test \"\${$as_ac_Header+set}\" = set"; then
7509  echo $ECHO_N "(cached) $ECHO_C" >&6
7510else
7511  eval "$as_ac_Header=$ac_header_preproc"
7512fi
7513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7514echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7515
7516fi
7517if test `eval echo '${'$as_ac_Header'}'` = yes; then
7518  cat >>confdefs.h <<_ACEOF
7519#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7520_ACEOF
7521
7522fi
7523
7524done
7525
7526
7527
7528
7529
7530
7531for ac_header in sched.h sgtty.h stdlib.h string.h termio.h
7532do
7533as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7534if eval "test \"\${$as_ac_Header+set}\" = set"; then
7535  echo "$as_me:$LINENO: checking for $ac_header" >&5
7536echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7537if eval "test \"\${$as_ac_Header+set}\" = set"; then
7538  echo $ECHO_N "(cached) $ECHO_C" >&6
7539fi
7540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7541echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7542else
7543  # Is the header compilable?
7544echo "$as_me:$LINENO: checking $ac_header usability" >&5
7545echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7546cat >conftest.$ac_ext <<_ACEOF
7547#line $LINENO "configure"
7548/* confdefs.h.  */
7549_ACEOF
7550cat confdefs.h >>conftest.$ac_ext
7551cat >>conftest.$ac_ext <<_ACEOF
7552/* end confdefs.h.  */
7553$ac_includes_default
7554#include <$ac_header>
7555_ACEOF
7556rm -f conftest.$ac_objext
7557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7558  (eval $ac_compile) 2>&5
7559  ac_status=$?
7560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561  (exit $ac_status); } &&
7562         { ac_try='test -s conftest.$ac_objext'
7563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7564  (eval $ac_try) 2>&5
7565  ac_status=$?
7566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567  (exit $ac_status); }; }; then
7568  ac_header_compiler=yes
7569else
7570  echo "$as_me: failed program was:" >&5
7571sed 's/^/| /' conftest.$ac_ext >&5
7572
7573ac_header_compiler=no
7574fi
7575rm -f conftest.$ac_objext conftest.$ac_ext
7576echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7577echo "${ECHO_T}$ac_header_compiler" >&6
7578
7579# Is the header present?
7580echo "$as_me:$LINENO: checking $ac_header presence" >&5
7581echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7582cat >conftest.$ac_ext <<_ACEOF
7583#line $LINENO "configure"
7584/* confdefs.h.  */
7585_ACEOF
7586cat confdefs.h >>conftest.$ac_ext
7587cat >>conftest.$ac_ext <<_ACEOF
7588/* end confdefs.h.  */
7589#include <$ac_header>
7590_ACEOF
7591if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7592  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7593  ac_status=$?
7594  grep -v '^ *+' conftest.er1 >conftest.err
7595  rm -f conftest.er1
7596  cat conftest.err >&5
7597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598  (exit $ac_status); } >/dev/null; then
7599  if test -s conftest.err; then
7600    ac_cpp_err=$ac_c_preproc_warn_flag
7601  else
7602    ac_cpp_err=
7603  fi
7604else
7605  ac_cpp_err=yes
7606fi
7607if test -z "$ac_cpp_err"; then
7608  ac_header_preproc=yes
7609else
7610  echo "$as_me: failed program was:" >&5
7611sed 's/^/| /' conftest.$ac_ext >&5
7612
7613  ac_header_preproc=no
7614fi
7615rm -f conftest.err conftest.$ac_ext
7616echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7617echo "${ECHO_T}$ac_header_preproc" >&6
7618
7619# So?  What about this header?
7620case $ac_header_compiler:$ac_header_preproc in
7621  yes:no )
7622    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7623echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7624    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7625echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7626    (
7627      cat <<\_ASBOX
7628## ------------------------------------ ##
7629## Report this to bug-autoconf@gnu.org. ##
7630## ------------------------------------ ##
7631_ASBOX
7632    ) |
7633      sed "s/^/$as_me: WARNING:     /" >&2
7634    ;;
7635  no:yes )
7636    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7637echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7638    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7639echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7640    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7641echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7642    (
7643      cat <<\_ASBOX
7644## ------------------------------------ ##
7645## Report this to bug-autoconf@gnu.org. ##
7646## ------------------------------------ ##
7647_ASBOX
7648    ) |
7649      sed "s/^/$as_me: WARNING:     /" >&2
7650    ;;
7651esac
7652echo "$as_me:$LINENO: checking for $ac_header" >&5
7653echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7654if eval "test \"\${$as_ac_Header+set}\" = set"; then
7655  echo $ECHO_N "(cached) $ECHO_C" >&6
7656else
7657  eval "$as_ac_Header=$ac_header_preproc"
7658fi
7659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7660echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7661
7662fi
7663if test `eval echo '${'$as_ac_Header'}'` = yes; then
7664  cat >>confdefs.h <<_ACEOF
7665#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7666_ACEOF
7667
7668fi
7669
7670done
7671
7672
7673
7674
7675
7676for ac_header in termios.h timepps.h timex.h unistd.h
7677do
7678as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7679if eval "test \"\${$as_ac_Header+set}\" = set"; then
7680  echo "$as_me:$LINENO: checking for $ac_header" >&5
7681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7682if eval "test \"\${$as_ac_Header+set}\" = set"; then
7683  echo $ECHO_N "(cached) $ECHO_C" >&6
7684fi
7685echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7686echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7687else
7688  # Is the header compilable?
7689echo "$as_me:$LINENO: checking $ac_header usability" >&5
7690echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7691cat >conftest.$ac_ext <<_ACEOF
7692#line $LINENO "configure"
7693/* confdefs.h.  */
7694_ACEOF
7695cat confdefs.h >>conftest.$ac_ext
7696cat >>conftest.$ac_ext <<_ACEOF
7697/* end confdefs.h.  */
7698$ac_includes_default
7699#include <$ac_header>
7700_ACEOF
7701rm -f conftest.$ac_objext
7702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7703  (eval $ac_compile) 2>&5
7704  ac_status=$?
7705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706  (exit $ac_status); } &&
7707         { ac_try='test -s conftest.$ac_objext'
7708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709  (eval $ac_try) 2>&5
7710  ac_status=$?
7711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712  (exit $ac_status); }; }; then
7713  ac_header_compiler=yes
7714else
7715  echo "$as_me: failed program was:" >&5
7716sed 's/^/| /' conftest.$ac_ext >&5
7717
7718ac_header_compiler=no
7719fi
7720rm -f conftest.$ac_objext conftest.$ac_ext
7721echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7722echo "${ECHO_T}$ac_header_compiler" >&6
7723
7724# Is the header present?
7725echo "$as_me:$LINENO: checking $ac_header presence" >&5
7726echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7727cat >conftest.$ac_ext <<_ACEOF
7728#line $LINENO "configure"
7729/* confdefs.h.  */
7730_ACEOF
7731cat confdefs.h >>conftest.$ac_ext
7732cat >>conftest.$ac_ext <<_ACEOF
7733/* end confdefs.h.  */
7734#include <$ac_header>
7735_ACEOF
7736if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7737  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7738  ac_status=$?
7739  grep -v '^ *+' conftest.er1 >conftest.err
7740  rm -f conftest.er1
7741  cat conftest.err >&5
7742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743  (exit $ac_status); } >/dev/null; then
7744  if test -s conftest.err; then
7745    ac_cpp_err=$ac_c_preproc_warn_flag
7746  else
7747    ac_cpp_err=
7748  fi
7749else
7750  ac_cpp_err=yes
7751fi
7752if test -z "$ac_cpp_err"; then
7753  ac_header_preproc=yes
7754else
7755  echo "$as_me: failed program was:" >&5
7756sed 's/^/| /' conftest.$ac_ext >&5
7757
7758  ac_header_preproc=no
7759fi
7760rm -f conftest.err conftest.$ac_ext
7761echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7762echo "${ECHO_T}$ac_header_preproc" >&6
7763
7764# So?  What about this header?
7765case $ac_header_compiler:$ac_header_preproc in
7766  yes:no )
7767    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7768echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7769    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7770echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7771    (
7772      cat <<\_ASBOX
7773## ------------------------------------ ##
7774## Report this to bug-autoconf@gnu.org. ##
7775## ------------------------------------ ##
7776_ASBOX
7777    ) |
7778      sed "s/^/$as_me: WARNING:     /" >&2
7779    ;;
7780  no:yes )
7781    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7782echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7783    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7784echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7785    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7786echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7787    (
7788      cat <<\_ASBOX
7789## ------------------------------------ ##
7790## Report this to bug-autoconf@gnu.org. ##
7791## ------------------------------------ ##
7792_ASBOX
7793    ) |
7794      sed "s/^/$as_me: WARNING:     /" >&2
7795    ;;
7796esac
7797echo "$as_me:$LINENO: checking for $ac_header" >&5
7798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7799if eval "test \"\${$as_ac_Header+set}\" = set"; then
7800  echo $ECHO_N "(cached) $ECHO_C" >&6
7801else
7802  eval "$as_ac_Header=$ac_header_preproc"
7803fi
7804echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7805echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7806
7807fi
7808if test `eval echo '${'$as_ac_Header'}'` = yes; then
7809  cat >>confdefs.h <<_ACEOF
7810#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7811_ACEOF
7812
7813fi
7814
7815done
7816
7817case "$host" in
7818 *-*-aix*)
7819
7820for ac_header in utmpx.h
7821do
7822as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7823if eval "test \"\${$as_ac_Header+set}\" = set"; then
7824  echo "$as_me:$LINENO: checking for $ac_header" >&5
7825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7826if eval "test \"\${$as_ac_Header+set}\" = set"; then
7827  echo $ECHO_N "(cached) $ECHO_C" >&6
7828fi
7829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7830echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7831else
7832  # Is the header compilable?
7833echo "$as_me:$LINENO: checking $ac_header usability" >&5
7834echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7835cat >conftest.$ac_ext <<_ACEOF
7836#line $LINENO "configure"
7837/* confdefs.h.  */
7838_ACEOF
7839cat confdefs.h >>conftest.$ac_ext
7840cat >>conftest.$ac_ext <<_ACEOF
7841/* end confdefs.h.  */
7842$ac_includes_default
7843#include <$ac_header>
7844_ACEOF
7845rm -f conftest.$ac_objext
7846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7847  (eval $ac_compile) 2>&5
7848  ac_status=$?
7849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850  (exit $ac_status); } &&
7851         { ac_try='test -s conftest.$ac_objext'
7852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7853  (eval $ac_try) 2>&5
7854  ac_status=$?
7855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856  (exit $ac_status); }; }; then
7857  ac_header_compiler=yes
7858else
7859  echo "$as_me: failed program was:" >&5
7860sed 's/^/| /' conftest.$ac_ext >&5
7861
7862ac_header_compiler=no
7863fi
7864rm -f conftest.$ac_objext conftest.$ac_ext
7865echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7866echo "${ECHO_T}$ac_header_compiler" >&6
7867
7868# Is the header present?
7869echo "$as_me:$LINENO: checking $ac_header presence" >&5
7870echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7871cat >conftest.$ac_ext <<_ACEOF
7872#line $LINENO "configure"
7873/* confdefs.h.  */
7874_ACEOF
7875cat confdefs.h >>conftest.$ac_ext
7876cat >>conftest.$ac_ext <<_ACEOF
7877/* end confdefs.h.  */
7878#include <$ac_header>
7879_ACEOF
7880if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7881  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7882  ac_status=$?
7883  grep -v '^ *+' conftest.er1 >conftest.err
7884  rm -f conftest.er1
7885  cat conftest.err >&5
7886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887  (exit $ac_status); } >/dev/null; then
7888  if test -s conftest.err; then
7889    ac_cpp_err=$ac_c_preproc_warn_flag
7890  else
7891    ac_cpp_err=
7892  fi
7893else
7894  ac_cpp_err=yes
7895fi
7896if test -z "$ac_cpp_err"; then
7897  ac_header_preproc=yes
7898else
7899  echo "$as_me: failed program was:" >&5
7900sed 's/^/| /' conftest.$ac_ext >&5
7901
7902  ac_header_preproc=no
7903fi
7904rm -f conftest.err conftest.$ac_ext
7905echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7906echo "${ECHO_T}$ac_header_preproc" >&6
7907
7908# So?  What about this header?
7909case $ac_header_compiler:$ac_header_preproc in
7910  yes:no )
7911    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7912echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7913    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7914echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7915    (
7916      cat <<\_ASBOX
7917## ------------------------------------ ##
7918## Report this to bug-autoconf@gnu.org. ##
7919## ------------------------------------ ##
7920_ASBOX
7921    ) |
7922      sed "s/^/$as_me: WARNING:     /" >&2
7923    ;;
7924  no:yes )
7925    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7926echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7927    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7928echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7929    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7930echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7931    (
7932      cat <<\_ASBOX
7933## ------------------------------------ ##
7934## Report this to bug-autoconf@gnu.org. ##
7935## ------------------------------------ ##
7936_ASBOX
7937    ) |
7938      sed "s/^/$as_me: WARNING:     /" >&2
7939    ;;
7940esac
7941echo "$as_me:$LINENO: checking for $ac_header" >&5
7942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7943if eval "test \"\${$as_ac_Header+set}\" = set"; then
7944  echo $ECHO_N "(cached) $ECHO_C" >&6
7945else
7946  eval "$as_ac_Header=$ac_header_preproc"
7947fi
7948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7949echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7950
7951fi
7952if test `eval echo '${'$as_ac_Header'}'` = yes; then
7953  cat >>confdefs.h <<_ACEOF
7954#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7955_ACEOF
7956
7957fi
7958
7959done
7960
7961    case "$ac_cv_header_utmpx_h" in
7962     yes) ;;
7963     *)
7964for ac_header in utmp.h
7965do
7966as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7967if eval "test \"\${$as_ac_Header+set}\" = set"; then
7968  echo "$as_me:$LINENO: checking for $ac_header" >&5
7969echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7970if eval "test \"\${$as_ac_Header+set}\" = set"; then
7971  echo $ECHO_N "(cached) $ECHO_C" >&6
7972fi
7973echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7974echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7975else
7976  # Is the header compilable?
7977echo "$as_me:$LINENO: checking $ac_header usability" >&5
7978echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7979cat >conftest.$ac_ext <<_ACEOF
7980#line $LINENO "configure"
7981/* confdefs.h.  */
7982_ACEOF
7983cat confdefs.h >>conftest.$ac_ext
7984cat >>conftest.$ac_ext <<_ACEOF
7985/* end confdefs.h.  */
7986$ac_includes_default
7987#include <$ac_header>
7988_ACEOF
7989rm -f conftest.$ac_objext
7990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7991  (eval $ac_compile) 2>&5
7992  ac_status=$?
7993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994  (exit $ac_status); } &&
7995         { ac_try='test -s conftest.$ac_objext'
7996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997  (eval $ac_try) 2>&5
7998  ac_status=$?
7999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000  (exit $ac_status); }; }; then
8001  ac_header_compiler=yes
8002else
8003  echo "$as_me: failed program was:" >&5
8004sed 's/^/| /' conftest.$ac_ext >&5
8005
8006ac_header_compiler=no
8007fi
8008rm -f conftest.$ac_objext conftest.$ac_ext
8009echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8010echo "${ECHO_T}$ac_header_compiler" >&6
8011
8012# Is the header present?
8013echo "$as_me:$LINENO: checking $ac_header presence" >&5
8014echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8015cat >conftest.$ac_ext <<_ACEOF
8016#line $LINENO "configure"
8017/* confdefs.h.  */
8018_ACEOF
8019cat confdefs.h >>conftest.$ac_ext
8020cat >>conftest.$ac_ext <<_ACEOF
8021/* end confdefs.h.  */
8022#include <$ac_header>
8023_ACEOF
8024if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8025  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8026  ac_status=$?
8027  grep -v '^ *+' conftest.er1 >conftest.err
8028  rm -f conftest.er1
8029  cat conftest.err >&5
8030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031  (exit $ac_status); } >/dev/null; then
8032  if test -s conftest.err; then
8033    ac_cpp_err=$ac_c_preproc_warn_flag
8034  else
8035    ac_cpp_err=
8036  fi
8037else
8038  ac_cpp_err=yes
8039fi
8040if test -z "$ac_cpp_err"; then
8041  ac_header_preproc=yes
8042else
8043  echo "$as_me: failed program was:" >&5
8044sed 's/^/| /' conftest.$ac_ext >&5
8045
8046  ac_header_preproc=no
8047fi
8048rm -f conftest.err conftest.$ac_ext
8049echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8050echo "${ECHO_T}$ac_header_preproc" >&6
8051
8052# So?  What about this header?
8053case $ac_header_compiler:$ac_header_preproc in
8054  yes:no )
8055    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8056echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8057    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8058echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8059    (
8060      cat <<\_ASBOX
8061## ------------------------------------ ##
8062## Report this to bug-autoconf@gnu.org. ##
8063## ------------------------------------ ##
8064_ASBOX
8065    ) |
8066      sed "s/^/$as_me: WARNING:     /" >&2
8067    ;;
8068  no:yes )
8069    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8070echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8071    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8072echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8073    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8074echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8075    (
8076      cat <<\_ASBOX
8077## ------------------------------------ ##
8078## Report this to bug-autoconf@gnu.org. ##
8079## ------------------------------------ ##
8080_ASBOX
8081    ) |
8082      sed "s/^/$as_me: WARNING:     /" >&2
8083    ;;
8084esac
8085echo "$as_me:$LINENO: checking for $ac_header" >&5
8086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8087if eval "test \"\${$as_ac_Header+set}\" = set"; then
8088  echo $ECHO_N "(cached) $ECHO_C" >&6
8089else
8090  eval "$as_ac_Header=$ac_header_preproc"
8091fi
8092echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8093echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8094
8095fi
8096if test `eval echo '${'$as_ac_Header'}'` = yes; then
8097  cat >>confdefs.h <<_ACEOF
8098#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8099_ACEOF
8100
8101fi
8102
8103done
8104 ;;
8105    esac
8106    ;;
8107 *)
8108
8109for ac_header in utmp.h utmpx.h
8110do
8111as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8112if eval "test \"\${$as_ac_Header+set}\" = set"; then
8113  echo "$as_me:$LINENO: checking for $ac_header" >&5
8114echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8115if eval "test \"\${$as_ac_Header+set}\" = set"; then
8116  echo $ECHO_N "(cached) $ECHO_C" >&6
8117fi
8118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8119echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8120else
8121  # Is the header compilable?
8122echo "$as_me:$LINENO: checking $ac_header usability" >&5
8123echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8124cat >conftest.$ac_ext <<_ACEOF
8125#line $LINENO "configure"
8126/* confdefs.h.  */
8127_ACEOF
8128cat confdefs.h >>conftest.$ac_ext
8129cat >>conftest.$ac_ext <<_ACEOF
8130/* end confdefs.h.  */
8131$ac_includes_default
8132#include <$ac_header>
8133_ACEOF
8134rm -f conftest.$ac_objext
8135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8136  (eval $ac_compile) 2>&5
8137  ac_status=$?
8138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139  (exit $ac_status); } &&
8140         { ac_try='test -s conftest.$ac_objext'
8141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142  (eval $ac_try) 2>&5
8143  ac_status=$?
8144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145  (exit $ac_status); }; }; then
8146  ac_header_compiler=yes
8147else
8148  echo "$as_me: failed program was:" >&5
8149sed 's/^/| /' conftest.$ac_ext >&5
8150
8151ac_header_compiler=no
8152fi
8153rm -f conftest.$ac_objext conftest.$ac_ext
8154echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8155echo "${ECHO_T}$ac_header_compiler" >&6
8156
8157# Is the header present?
8158echo "$as_me:$LINENO: checking $ac_header presence" >&5
8159echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8160cat >conftest.$ac_ext <<_ACEOF
8161#line $LINENO "configure"
8162/* confdefs.h.  */
8163_ACEOF
8164cat confdefs.h >>conftest.$ac_ext
8165cat >>conftest.$ac_ext <<_ACEOF
8166/* end confdefs.h.  */
8167#include <$ac_header>
8168_ACEOF
8169if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8170  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8171  ac_status=$?
8172  grep -v '^ *+' conftest.er1 >conftest.err
8173  rm -f conftest.er1
8174  cat conftest.err >&5
8175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176  (exit $ac_status); } >/dev/null; then
8177  if test -s conftest.err; then
8178    ac_cpp_err=$ac_c_preproc_warn_flag
8179  else
8180    ac_cpp_err=
8181  fi
8182else
8183  ac_cpp_err=yes
8184fi
8185if test -z "$ac_cpp_err"; then
8186  ac_header_preproc=yes
8187else
8188  echo "$as_me: failed program was:" >&5
8189sed 's/^/| /' conftest.$ac_ext >&5
8190
8191  ac_header_preproc=no
8192fi
8193rm -f conftest.err conftest.$ac_ext
8194echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8195echo "${ECHO_T}$ac_header_preproc" >&6
8196
8197# So?  What about this header?
8198case $ac_header_compiler:$ac_header_preproc in
8199  yes:no )
8200    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8201echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8202    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8203echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8204    (
8205      cat <<\_ASBOX
8206## ------------------------------------ ##
8207## Report this to bug-autoconf@gnu.org. ##
8208## ------------------------------------ ##
8209_ASBOX
8210    ) |
8211      sed "s/^/$as_me: WARNING:     /" >&2
8212    ;;
8213  no:yes )
8214    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8215echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8216    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8217echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8218    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8219echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8220    (
8221      cat <<\_ASBOX
8222## ------------------------------------ ##
8223## Report this to bug-autoconf@gnu.org. ##
8224## ------------------------------------ ##
8225_ASBOX
8226    ) |
8227      sed "s/^/$as_me: WARNING:     /" >&2
8228    ;;
8229esac
8230echo "$as_me:$LINENO: checking for $ac_header" >&5
8231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8232if eval "test \"\${$as_ac_Header+set}\" = set"; then
8233  echo $ECHO_N "(cached) $ECHO_C" >&6
8234else
8235  eval "$as_ac_Header=$ac_header_preproc"
8236fi
8237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8239
8240fi
8241if test `eval echo '${'$as_ac_Header'}'` = yes; then
8242  cat >>confdefs.h <<_ACEOF
8243#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8244_ACEOF
8245
8246fi
8247
8248done
8249 ;;
8250esac
8251
8252for ac_header in arpa/nameser.h
8253do
8254as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8255if eval "test \"\${$as_ac_Header+set}\" = set"; then
8256  echo "$as_me:$LINENO: checking for $ac_header" >&5
8257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8258if eval "test \"\${$as_ac_Header+set}\" = set"; then
8259  echo $ECHO_N "(cached) $ECHO_C" >&6
8260fi
8261echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8262echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8263else
8264  # Is the header compilable?
8265echo "$as_me:$LINENO: checking $ac_header usability" >&5
8266echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8267cat >conftest.$ac_ext <<_ACEOF
8268#line $LINENO "configure"
8269/* confdefs.h.  */
8270_ACEOF
8271cat confdefs.h >>conftest.$ac_ext
8272cat >>conftest.$ac_ext <<_ACEOF
8273/* end confdefs.h.  */
8274$ac_includes_default
8275#include <$ac_header>
8276_ACEOF
8277rm -f conftest.$ac_objext
8278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8279  (eval $ac_compile) 2>&5
8280  ac_status=$?
8281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282  (exit $ac_status); } &&
8283         { ac_try='test -s conftest.$ac_objext'
8284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8285  (eval $ac_try) 2>&5
8286  ac_status=$?
8287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288  (exit $ac_status); }; }; then
8289  ac_header_compiler=yes
8290else
8291  echo "$as_me: failed program was:" >&5
8292sed 's/^/| /' conftest.$ac_ext >&5
8293
8294ac_header_compiler=no
8295fi
8296rm -f conftest.$ac_objext conftest.$ac_ext
8297echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8298echo "${ECHO_T}$ac_header_compiler" >&6
8299
8300# Is the header present?
8301echo "$as_me:$LINENO: checking $ac_header presence" >&5
8302echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8303cat >conftest.$ac_ext <<_ACEOF
8304#line $LINENO "configure"
8305/* confdefs.h.  */
8306_ACEOF
8307cat confdefs.h >>conftest.$ac_ext
8308cat >>conftest.$ac_ext <<_ACEOF
8309/* end confdefs.h.  */
8310#include <$ac_header>
8311_ACEOF
8312if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8313  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8314  ac_status=$?
8315  grep -v '^ *+' conftest.er1 >conftest.err
8316  rm -f conftest.er1
8317  cat conftest.err >&5
8318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319  (exit $ac_status); } >/dev/null; then
8320  if test -s conftest.err; then
8321    ac_cpp_err=$ac_c_preproc_warn_flag
8322  else
8323    ac_cpp_err=
8324  fi
8325else
8326  ac_cpp_err=yes
8327fi
8328if test -z "$ac_cpp_err"; then
8329  ac_header_preproc=yes
8330else
8331  echo "$as_me: failed program was:" >&5
8332sed 's/^/| /' conftest.$ac_ext >&5
8333
8334  ac_header_preproc=no
8335fi
8336rm -f conftest.err conftest.$ac_ext
8337echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8338echo "${ECHO_T}$ac_header_preproc" >&6
8339
8340# So?  What about this header?
8341case $ac_header_compiler:$ac_header_preproc in
8342  yes:no )
8343    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8344echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8345    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8346echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8347    (
8348      cat <<\_ASBOX
8349## ------------------------------------ ##
8350## Report this to bug-autoconf@gnu.org. ##
8351## ------------------------------------ ##
8352_ASBOX
8353    ) |
8354      sed "s/^/$as_me: WARNING:     /" >&2
8355    ;;
8356  no:yes )
8357    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8358echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8359    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8360echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8361    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8362echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8363    (
8364      cat <<\_ASBOX
8365## ------------------------------------ ##
8366## Report this to bug-autoconf@gnu.org. ##
8367## ------------------------------------ ##
8368_ASBOX
8369    ) |
8370      sed "s/^/$as_me: WARNING:     /" >&2
8371    ;;
8372esac
8373echo "$as_me:$LINENO: checking for $ac_header" >&5
8374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8375if eval "test \"\${$as_ac_Header+set}\" = set"; then
8376  echo $ECHO_N "(cached) $ECHO_C" >&6
8377else
8378  eval "$as_ac_Header=$ac_header_preproc"
8379fi
8380echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8381echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8382
8383fi
8384if test `eval echo '${'$as_ac_Header'}'` = yes; then
8385  cat >>confdefs.h <<_ACEOF
8386#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8387_ACEOF
8388
8389fi
8390
8391done
8392
8393
8394for ac_header in net/if.h
8395do
8396as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8397echo "$as_me:$LINENO: checking for $ac_header" >&5
8398echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8399if eval "test \"\${$as_ac_Header+set}\" = set"; then
8400  echo $ECHO_N "(cached) $ECHO_C" >&6
8401else
8402  cat >conftest.$ac_ext <<_ACEOF
8403#line $LINENO "configure"
8404/* confdefs.h.  */
8405_ACEOF
8406cat confdefs.h >>conftest.$ac_ext
8407cat >>conftest.$ac_ext <<_ACEOF
8408/* end confdefs.h.  */
8409#if HAVE_SYS_SOCKET_H
8410#include <sys/socket.h>
8411#endif
8412
8413
8414#include <$ac_header>
8415_ACEOF
8416rm -f conftest.$ac_objext
8417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8418  (eval $ac_compile) 2>&5
8419  ac_status=$?
8420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421  (exit $ac_status); } &&
8422         { ac_try='test -s conftest.$ac_objext'
8423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424  (eval $ac_try) 2>&5
8425  ac_status=$?
8426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427  (exit $ac_status); }; }; then
8428  eval "$as_ac_Header=yes"
8429else
8430  echo "$as_me: failed program was:" >&5
8431sed 's/^/| /' conftest.$ac_ext >&5
8432
8433eval "$as_ac_Header=no"
8434fi
8435rm -f conftest.$ac_objext conftest.$ac_ext
8436fi
8437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8438echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8439if test `eval echo '${'$as_ac_Header'}'` = yes; then
8440  cat >>confdefs.h <<_ACEOF
8441#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8442_ACEOF
8443
8444fi
8445
8446done
8447
8448
8449for ac_header in net/if6.h
8450do
8451as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8452if eval "test \"\${$as_ac_Header+set}\" = set"; then
8453  echo "$as_me:$LINENO: checking for $ac_header" >&5
8454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8455if eval "test \"\${$as_ac_Header+set}\" = set"; then
8456  echo $ECHO_N "(cached) $ECHO_C" >&6
8457fi
8458echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8459echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8460else
8461  # Is the header compilable?
8462echo "$as_me:$LINENO: checking $ac_header usability" >&5
8463echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8464cat >conftest.$ac_ext <<_ACEOF
8465#line $LINENO "configure"
8466/* confdefs.h.  */
8467_ACEOF
8468cat confdefs.h >>conftest.$ac_ext
8469cat >>conftest.$ac_ext <<_ACEOF
8470/* end confdefs.h.  */
8471$ac_includes_default
8472#include <$ac_header>
8473_ACEOF
8474rm -f conftest.$ac_objext
8475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8476  (eval $ac_compile) 2>&5
8477  ac_status=$?
8478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479  (exit $ac_status); } &&
8480         { ac_try='test -s conftest.$ac_objext'
8481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482  (eval $ac_try) 2>&5
8483  ac_status=$?
8484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485  (exit $ac_status); }; }; then
8486  ac_header_compiler=yes
8487else
8488  echo "$as_me: failed program was:" >&5
8489sed 's/^/| /' conftest.$ac_ext >&5
8490
8491ac_header_compiler=no
8492fi
8493rm -f conftest.$ac_objext conftest.$ac_ext
8494echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8495echo "${ECHO_T}$ac_header_compiler" >&6
8496
8497# Is the header present?
8498echo "$as_me:$LINENO: checking $ac_header presence" >&5
8499echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8500cat >conftest.$ac_ext <<_ACEOF
8501#line $LINENO "configure"
8502/* confdefs.h.  */
8503_ACEOF
8504cat confdefs.h >>conftest.$ac_ext
8505cat >>conftest.$ac_ext <<_ACEOF
8506/* end confdefs.h.  */
8507#include <$ac_header>
8508_ACEOF
8509if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8510  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8511  ac_status=$?
8512  grep -v '^ *+' conftest.er1 >conftest.err
8513  rm -f conftest.er1
8514  cat conftest.err >&5
8515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516  (exit $ac_status); } >/dev/null; then
8517  if test -s conftest.err; then
8518    ac_cpp_err=$ac_c_preproc_warn_flag
8519  else
8520    ac_cpp_err=
8521  fi
8522else
8523  ac_cpp_err=yes
8524fi
8525if test -z "$ac_cpp_err"; then
8526  ac_header_preproc=yes
8527else
8528  echo "$as_me: failed program was:" >&5
8529sed 's/^/| /' conftest.$ac_ext >&5
8530
8531  ac_header_preproc=no
8532fi
8533rm -f conftest.err conftest.$ac_ext
8534echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8535echo "${ECHO_T}$ac_header_preproc" >&6
8536
8537# So?  What about this header?
8538case $ac_header_compiler:$ac_header_preproc in
8539  yes:no )
8540    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8541echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8542    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8543echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8544    (
8545      cat <<\_ASBOX
8546## ------------------------------------ ##
8547## Report this to bug-autoconf@gnu.org. ##
8548## ------------------------------------ ##
8549_ASBOX
8550    ) |
8551      sed "s/^/$as_me: WARNING:     /" >&2
8552    ;;
8553  no:yes )
8554    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8555echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8556    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8557echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8558    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8559echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8560    (
8561      cat <<\_ASBOX
8562## ------------------------------------ ##
8563## Report this to bug-autoconf@gnu.org. ##
8564## ------------------------------------ ##
8565_ASBOX
8566    ) |
8567      sed "s/^/$as_me: WARNING:     /" >&2
8568    ;;
8569esac
8570echo "$as_me:$LINENO: checking for $ac_header" >&5
8571echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8572if eval "test \"\${$as_ac_Header+set}\" = set"; then
8573  echo $ECHO_N "(cached) $ECHO_C" >&6
8574else
8575  eval "$as_ac_Header=$ac_header_preproc"
8576fi
8577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8578echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8579
8580fi
8581if test `eval echo '${'$as_ac_Header'}'` = yes; then
8582  cat >>confdefs.h <<_ACEOF
8583#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8584_ACEOF
8585
8586fi
8587
8588done
8589
8590
8591
8592for ac_header in netinet/in_system.h netinet/in_systm.h
8593do
8594as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8595if eval "test \"\${$as_ac_Header+set}\" = set"; then
8596  echo "$as_me:$LINENO: checking for $ac_header" >&5
8597echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8598if eval "test \"\${$as_ac_Header+set}\" = set"; then
8599  echo $ECHO_N "(cached) $ECHO_C" >&6
8600fi
8601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8602echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8603else
8604  # Is the header compilable?
8605echo "$as_me:$LINENO: checking $ac_header usability" >&5
8606echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8607cat >conftest.$ac_ext <<_ACEOF
8608#line $LINENO "configure"
8609/* confdefs.h.  */
8610_ACEOF
8611cat confdefs.h >>conftest.$ac_ext
8612cat >>conftest.$ac_ext <<_ACEOF
8613/* end confdefs.h.  */
8614$ac_includes_default
8615#include <$ac_header>
8616_ACEOF
8617rm -f conftest.$ac_objext
8618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8619  (eval $ac_compile) 2>&5
8620  ac_status=$?
8621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622  (exit $ac_status); } &&
8623         { ac_try='test -s conftest.$ac_objext'
8624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625  (eval $ac_try) 2>&5
8626  ac_status=$?
8627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628  (exit $ac_status); }; }; then
8629  ac_header_compiler=yes
8630else
8631  echo "$as_me: failed program was:" >&5
8632sed 's/^/| /' conftest.$ac_ext >&5
8633
8634ac_header_compiler=no
8635fi
8636rm -f conftest.$ac_objext conftest.$ac_ext
8637echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8638echo "${ECHO_T}$ac_header_compiler" >&6
8639
8640# Is the header present?
8641echo "$as_me:$LINENO: checking $ac_header presence" >&5
8642echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8643cat >conftest.$ac_ext <<_ACEOF
8644#line $LINENO "configure"
8645/* confdefs.h.  */
8646_ACEOF
8647cat confdefs.h >>conftest.$ac_ext
8648cat >>conftest.$ac_ext <<_ACEOF
8649/* end confdefs.h.  */
8650#include <$ac_header>
8651_ACEOF
8652if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8653  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8654  ac_status=$?
8655  grep -v '^ *+' conftest.er1 >conftest.err
8656  rm -f conftest.er1
8657  cat conftest.err >&5
8658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659  (exit $ac_status); } >/dev/null; then
8660  if test -s conftest.err; then
8661    ac_cpp_err=$ac_c_preproc_warn_flag
8662  else
8663    ac_cpp_err=
8664  fi
8665else
8666  ac_cpp_err=yes
8667fi
8668if test -z "$ac_cpp_err"; then
8669  ac_header_preproc=yes
8670else
8671  echo "$as_me: failed program was:" >&5
8672sed 's/^/| /' conftest.$ac_ext >&5
8673
8674  ac_header_preproc=no
8675fi
8676rm -f conftest.err conftest.$ac_ext
8677echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8678echo "${ECHO_T}$ac_header_preproc" >&6
8679
8680# So?  What about this header?
8681case $ac_header_compiler:$ac_header_preproc in
8682  yes:no )
8683    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8684echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8685    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8686echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8687    (
8688      cat <<\_ASBOX
8689## ------------------------------------ ##
8690## Report this to bug-autoconf@gnu.org. ##
8691## ------------------------------------ ##
8692_ASBOX
8693    ) |
8694      sed "s/^/$as_me: WARNING:     /" >&2
8695    ;;
8696  no:yes )
8697    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8698echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8699    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8700echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8701    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8702echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8703    (
8704      cat <<\_ASBOX
8705## ------------------------------------ ##
8706## Report this to bug-autoconf@gnu.org. ##
8707## ------------------------------------ ##
8708_ASBOX
8709    ) |
8710      sed "s/^/$as_me: WARNING:     /" >&2
8711    ;;
8712esac
8713echo "$as_me:$LINENO: checking for $ac_header" >&5
8714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8715if eval "test \"\${$as_ac_Header+set}\" = set"; then
8716  echo $ECHO_N "(cached) $ECHO_C" >&6
8717else
8718  eval "$as_ac_Header=$ac_header_preproc"
8719fi
8720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8721echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8722
8723fi
8724if test `eval echo '${'$as_ac_Header'}'` = yes; then
8725  cat >>confdefs.h <<_ACEOF
8726#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8727_ACEOF
8728
8729fi
8730
8731done
8732
8733
8734for ac_header in netinet/in.h
8735do
8736as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8737if eval "test \"\${$as_ac_Header+set}\" = set"; then
8738  echo "$as_me:$LINENO: checking for $ac_header" >&5
8739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8740if eval "test \"\${$as_ac_Header+set}\" = set"; then
8741  echo $ECHO_N "(cached) $ECHO_C" >&6
8742fi
8743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8744echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8745else
8746  # Is the header compilable?
8747echo "$as_me:$LINENO: checking $ac_header usability" >&5
8748echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8749cat >conftest.$ac_ext <<_ACEOF
8750#line $LINENO "configure"
8751/* confdefs.h.  */
8752_ACEOF
8753cat confdefs.h >>conftest.$ac_ext
8754cat >>conftest.$ac_ext <<_ACEOF
8755/* end confdefs.h.  */
8756$ac_includes_default
8757#include <$ac_header>
8758_ACEOF
8759rm -f conftest.$ac_objext
8760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8761  (eval $ac_compile) 2>&5
8762  ac_status=$?
8763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764  (exit $ac_status); } &&
8765         { ac_try='test -s conftest.$ac_objext'
8766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8767  (eval $ac_try) 2>&5
8768  ac_status=$?
8769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770  (exit $ac_status); }; }; then
8771  ac_header_compiler=yes
8772else
8773  echo "$as_me: failed program was:" >&5
8774sed 's/^/| /' conftest.$ac_ext >&5
8775
8776ac_header_compiler=no
8777fi
8778rm -f conftest.$ac_objext conftest.$ac_ext
8779echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8780echo "${ECHO_T}$ac_header_compiler" >&6
8781
8782# Is the header present?
8783echo "$as_me:$LINENO: checking $ac_header presence" >&5
8784echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8785cat >conftest.$ac_ext <<_ACEOF
8786#line $LINENO "configure"
8787/* confdefs.h.  */
8788_ACEOF
8789cat confdefs.h >>conftest.$ac_ext
8790cat >>conftest.$ac_ext <<_ACEOF
8791/* end confdefs.h.  */
8792#include <$ac_header>
8793_ACEOF
8794if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8795  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8796  ac_status=$?
8797  grep -v '^ *+' conftest.er1 >conftest.err
8798  rm -f conftest.er1
8799  cat conftest.err >&5
8800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801  (exit $ac_status); } >/dev/null; then
8802  if test -s conftest.err; then
8803    ac_cpp_err=$ac_c_preproc_warn_flag
8804  else
8805    ac_cpp_err=
8806  fi
8807else
8808  ac_cpp_err=yes
8809fi
8810if test -z "$ac_cpp_err"; then
8811  ac_header_preproc=yes
8812else
8813  echo "$as_me: failed program was:" >&5
8814sed 's/^/| /' conftest.$ac_ext >&5
8815
8816  ac_header_preproc=no
8817fi
8818rm -f conftest.err conftest.$ac_ext
8819echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8820echo "${ECHO_T}$ac_header_preproc" >&6
8821
8822# So?  What about this header?
8823case $ac_header_compiler:$ac_header_preproc in
8824  yes:no )
8825    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8826echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8827    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8828echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8829    (
8830      cat <<\_ASBOX
8831## ------------------------------------ ##
8832## Report this to bug-autoconf@gnu.org. ##
8833## ------------------------------------ ##
8834_ASBOX
8835    ) |
8836      sed "s/^/$as_me: WARNING:     /" >&2
8837    ;;
8838  no:yes )
8839    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8840echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8841    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8842echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8843    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8844echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8845    (
8846      cat <<\_ASBOX
8847## ------------------------------------ ##
8848## Report this to bug-autoconf@gnu.org. ##
8849## ------------------------------------ ##
8850_ASBOX
8851    ) |
8852      sed "s/^/$as_me: WARNING:     /" >&2
8853    ;;
8854esac
8855echo "$as_me:$LINENO: checking for $ac_header" >&5
8856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8857if eval "test \"\${$as_ac_Header+set}\" = set"; then
8858  echo $ECHO_N "(cached) $ECHO_C" >&6
8859else
8860  eval "$as_ac_Header=$ac_header_preproc"
8861fi
8862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8863echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8864
8865fi
8866if test `eval echo '${'$as_ac_Header'}'` = yes; then
8867  cat >>confdefs.h <<_ACEOF
8868#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8869_ACEOF
8870
8871fi
8872
8873done
8874
8875
8876for ac_header in netinet/ip.h
8877do
8878as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8879echo "$as_me:$LINENO: checking for $ac_header" >&5
8880echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8881if eval "test \"\${$as_ac_Header+set}\" = set"; then
8882  echo $ECHO_N "(cached) $ECHO_C" >&6
8883else
8884  cat >conftest.$ac_ext <<_ACEOF
8885#line $LINENO "configure"
8886/* confdefs.h.  */
8887_ACEOF
8888cat confdefs.h >>conftest.$ac_ext
8889cat >>conftest.$ac_ext <<_ACEOF
8890/* end confdefs.h.  */
8891#if HAVE_SYS_TYPES_H
8892#include <sys/types.h>
8893#endif
8894#if HAVE_NETINET_IN_H
8895#include <netinet/in.h>
8896#endif
8897#if HAVE_NETINET_IN_SYSTM_H
8898#include <netinet/in_systm.h>
8899#endif
8900
8901
8902#include <$ac_header>
8903_ACEOF
8904rm -f conftest.$ac_objext
8905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8906  (eval $ac_compile) 2>&5
8907  ac_status=$?
8908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909  (exit $ac_status); } &&
8910         { ac_try='test -s conftest.$ac_objext'
8911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912  (eval $ac_try) 2>&5
8913  ac_status=$?
8914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915  (exit $ac_status); }; }; then
8916  eval "$as_ac_Header=yes"
8917else
8918  echo "$as_me: failed program was:" >&5
8919sed 's/^/| /' conftest.$ac_ext >&5
8920
8921eval "$as_ac_Header=no"
8922fi
8923rm -f conftest.$ac_objext conftest.$ac_ext
8924fi
8925echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8926echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8927if test `eval echo '${'$as_ac_Header'}'` = yes; then
8928  cat >>confdefs.h <<_ACEOF
8929#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8930_ACEOF
8931
8932fi
8933
8934done
8935
8936
8937for ac_header in netinfo/ni.h
8938do
8939as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8940if eval "test \"\${$as_ac_Header+set}\" = set"; then
8941  echo "$as_me:$LINENO: checking for $ac_header" >&5
8942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8943if eval "test \"\${$as_ac_Header+set}\" = set"; then
8944  echo $ECHO_N "(cached) $ECHO_C" >&6
8945fi
8946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8948else
8949  # Is the header compilable?
8950echo "$as_me:$LINENO: checking $ac_header usability" >&5
8951echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8952cat >conftest.$ac_ext <<_ACEOF
8953#line $LINENO "configure"
8954/* confdefs.h.  */
8955_ACEOF
8956cat confdefs.h >>conftest.$ac_ext
8957cat >>conftest.$ac_ext <<_ACEOF
8958/* end confdefs.h.  */
8959$ac_includes_default
8960#include <$ac_header>
8961_ACEOF
8962rm -f conftest.$ac_objext
8963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8964  (eval $ac_compile) 2>&5
8965  ac_status=$?
8966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967  (exit $ac_status); } &&
8968         { ac_try='test -s conftest.$ac_objext'
8969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970  (eval $ac_try) 2>&5
8971  ac_status=$?
8972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973  (exit $ac_status); }; }; then
8974  ac_header_compiler=yes
8975else
8976  echo "$as_me: failed program was:" >&5
8977sed 's/^/| /' conftest.$ac_ext >&5
8978
8979ac_header_compiler=no
8980fi
8981rm -f conftest.$ac_objext conftest.$ac_ext
8982echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8983echo "${ECHO_T}$ac_header_compiler" >&6
8984
8985# Is the header present?
8986echo "$as_me:$LINENO: checking $ac_header presence" >&5
8987echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8988cat >conftest.$ac_ext <<_ACEOF
8989#line $LINENO "configure"
8990/* confdefs.h.  */
8991_ACEOF
8992cat confdefs.h >>conftest.$ac_ext
8993cat >>conftest.$ac_ext <<_ACEOF
8994/* end confdefs.h.  */
8995#include <$ac_header>
8996_ACEOF
8997if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8998  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8999  ac_status=$?
9000  grep -v '^ *+' conftest.er1 >conftest.err
9001  rm -f conftest.er1
9002  cat conftest.err >&5
9003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004  (exit $ac_status); } >/dev/null; then
9005  if test -s conftest.err; then
9006    ac_cpp_err=$ac_c_preproc_warn_flag
9007  else
9008    ac_cpp_err=
9009  fi
9010else
9011  ac_cpp_err=yes
9012fi
9013if test -z "$ac_cpp_err"; then
9014  ac_header_preproc=yes
9015else
9016  echo "$as_me: failed program was:" >&5
9017sed 's/^/| /' conftest.$ac_ext >&5
9018
9019  ac_header_preproc=no
9020fi
9021rm -f conftest.err conftest.$ac_ext
9022echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9023echo "${ECHO_T}$ac_header_preproc" >&6
9024
9025# So?  What about this header?
9026case $ac_header_compiler:$ac_header_preproc in
9027  yes:no )
9028    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9029echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9030    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9031echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9032    (
9033      cat <<\_ASBOX
9034## ------------------------------------ ##
9035## Report this to bug-autoconf@gnu.org. ##
9036## ------------------------------------ ##
9037_ASBOX
9038    ) |
9039      sed "s/^/$as_me: WARNING:     /" >&2
9040    ;;
9041  no:yes )
9042    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9043echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9044    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9045echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9046    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9047echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9048    (
9049      cat <<\_ASBOX
9050## ------------------------------------ ##
9051## Report this to bug-autoconf@gnu.org. ##
9052## ------------------------------------ ##
9053_ASBOX
9054    ) |
9055      sed "s/^/$as_me: WARNING:     /" >&2
9056    ;;
9057esac
9058echo "$as_me:$LINENO: checking for $ac_header" >&5
9059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9060if eval "test \"\${$as_ac_Header+set}\" = set"; then
9061  echo $ECHO_N "(cached) $ECHO_C" >&6
9062else
9063  eval "$as_ac_Header=$ac_header_preproc"
9064fi
9065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9066echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9067
9068fi
9069if test `eval echo '${'$as_ac_Header'}'` = yes; then
9070  cat >>confdefs.h <<_ACEOF
9071#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9072_ACEOF
9073
9074cat >>confdefs.h <<\_ACEOF
9075#define HAVE_NETINFO 1
9076_ACEOF
9077
9078fi
9079
9080done
9081
9082
9083
9084for ac_header in sun/audioio.h sys/audioio.h
9085do
9086as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9087if eval "test \"\${$as_ac_Header+set}\" = set"; then
9088  echo "$as_me:$LINENO: checking for $ac_header" >&5
9089echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9090if eval "test \"\${$as_ac_Header+set}\" = set"; then
9091  echo $ECHO_N "(cached) $ECHO_C" >&6
9092fi
9093echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9094echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9095else
9096  # Is the header compilable?
9097echo "$as_me:$LINENO: checking $ac_header usability" >&5
9098echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9099cat >conftest.$ac_ext <<_ACEOF
9100#line $LINENO "configure"
9101/* confdefs.h.  */
9102_ACEOF
9103cat confdefs.h >>conftest.$ac_ext
9104cat >>conftest.$ac_ext <<_ACEOF
9105/* end confdefs.h.  */
9106$ac_includes_default
9107#include <$ac_header>
9108_ACEOF
9109rm -f conftest.$ac_objext
9110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9111  (eval $ac_compile) 2>&5
9112  ac_status=$?
9113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114  (exit $ac_status); } &&
9115         { ac_try='test -s conftest.$ac_objext'
9116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117  (eval $ac_try) 2>&5
9118  ac_status=$?
9119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120  (exit $ac_status); }; }; then
9121  ac_header_compiler=yes
9122else
9123  echo "$as_me: failed program was:" >&5
9124sed 's/^/| /' conftest.$ac_ext >&5
9125
9126ac_header_compiler=no
9127fi
9128rm -f conftest.$ac_objext conftest.$ac_ext
9129echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9130echo "${ECHO_T}$ac_header_compiler" >&6
9131
9132# Is the header present?
9133echo "$as_me:$LINENO: checking $ac_header presence" >&5
9134echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9135cat >conftest.$ac_ext <<_ACEOF
9136#line $LINENO "configure"
9137/* confdefs.h.  */
9138_ACEOF
9139cat confdefs.h >>conftest.$ac_ext
9140cat >>conftest.$ac_ext <<_ACEOF
9141/* end confdefs.h.  */
9142#include <$ac_header>
9143_ACEOF
9144if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9145  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9146  ac_status=$?
9147  grep -v '^ *+' conftest.er1 >conftest.err
9148  rm -f conftest.er1
9149  cat conftest.err >&5
9150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151  (exit $ac_status); } >/dev/null; then
9152  if test -s conftest.err; then
9153    ac_cpp_err=$ac_c_preproc_warn_flag
9154  else
9155    ac_cpp_err=
9156  fi
9157else
9158  ac_cpp_err=yes
9159fi
9160if test -z "$ac_cpp_err"; then
9161  ac_header_preproc=yes
9162else
9163  echo "$as_me: failed program was:" >&5
9164sed 's/^/| /' conftest.$ac_ext >&5
9165
9166  ac_header_preproc=no
9167fi
9168rm -f conftest.err conftest.$ac_ext
9169echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9170echo "${ECHO_T}$ac_header_preproc" >&6
9171
9172# So?  What about this header?
9173case $ac_header_compiler:$ac_header_preproc in
9174  yes:no )
9175    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9176echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9177    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9178echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9179    (
9180      cat <<\_ASBOX
9181## ------------------------------------ ##
9182## Report this to bug-autoconf@gnu.org. ##
9183## ------------------------------------ ##
9184_ASBOX
9185    ) |
9186      sed "s/^/$as_me: WARNING:     /" >&2
9187    ;;
9188  no:yes )
9189    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9190echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9191    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9192echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9193    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9194echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9195    (
9196      cat <<\_ASBOX
9197## ------------------------------------ ##
9198## Report this to bug-autoconf@gnu.org. ##
9199## ------------------------------------ ##
9200_ASBOX
9201    ) |
9202      sed "s/^/$as_me: WARNING:     /" >&2
9203    ;;
9204esac
9205echo "$as_me:$LINENO: checking for $ac_header" >&5
9206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9207if eval "test \"\${$as_ac_Header+set}\" = set"; then
9208  echo $ECHO_N "(cached) $ECHO_C" >&6
9209else
9210  eval "$as_ac_Header=$ac_header_preproc"
9211fi
9212echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9213echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9214
9215fi
9216if test `eval echo '${'$as_ac_Header'}'` = yes; then
9217  cat >>confdefs.h <<_ACEOF
9218#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9219_ACEOF
9220
9221fi
9222
9223done
9224
9225
9226
9227for ac_header in sys/clkdefs.h sys/file.h
9228do
9229as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9230if eval "test \"\${$as_ac_Header+set}\" = set"; then
9231  echo "$as_me:$LINENO: checking for $ac_header" >&5
9232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9233if eval "test \"\${$as_ac_Header+set}\" = set"; then
9234  echo $ECHO_N "(cached) $ECHO_C" >&6
9235fi
9236echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9237echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9238else
9239  # Is the header compilable?
9240echo "$as_me:$LINENO: checking $ac_header usability" >&5
9241echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9242cat >conftest.$ac_ext <<_ACEOF
9243#line $LINENO "configure"
9244/* confdefs.h.  */
9245_ACEOF
9246cat confdefs.h >>conftest.$ac_ext
9247cat >>conftest.$ac_ext <<_ACEOF
9248/* end confdefs.h.  */
9249$ac_includes_default
9250#include <$ac_header>
9251_ACEOF
9252rm -f conftest.$ac_objext
9253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9254  (eval $ac_compile) 2>&5
9255  ac_status=$?
9256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257  (exit $ac_status); } &&
9258         { ac_try='test -s conftest.$ac_objext'
9259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260  (eval $ac_try) 2>&5
9261  ac_status=$?
9262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263  (exit $ac_status); }; }; then
9264  ac_header_compiler=yes
9265else
9266  echo "$as_me: failed program was:" >&5
9267sed 's/^/| /' conftest.$ac_ext >&5
9268
9269ac_header_compiler=no
9270fi
9271rm -f conftest.$ac_objext conftest.$ac_ext
9272echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9273echo "${ECHO_T}$ac_header_compiler" >&6
9274
9275# Is the header present?
9276echo "$as_me:$LINENO: checking $ac_header presence" >&5
9277echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9278cat >conftest.$ac_ext <<_ACEOF
9279#line $LINENO "configure"
9280/* confdefs.h.  */
9281_ACEOF
9282cat confdefs.h >>conftest.$ac_ext
9283cat >>conftest.$ac_ext <<_ACEOF
9284/* end confdefs.h.  */
9285#include <$ac_header>
9286_ACEOF
9287if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9288  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9289  ac_status=$?
9290  grep -v '^ *+' conftest.er1 >conftest.err
9291  rm -f conftest.er1
9292  cat conftest.err >&5
9293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294  (exit $ac_status); } >/dev/null; then
9295  if test -s conftest.err; then
9296    ac_cpp_err=$ac_c_preproc_warn_flag
9297  else
9298    ac_cpp_err=
9299  fi
9300else
9301  ac_cpp_err=yes
9302fi
9303if test -z "$ac_cpp_err"; then
9304  ac_header_preproc=yes
9305else
9306  echo "$as_me: failed program was:" >&5
9307sed 's/^/| /' conftest.$ac_ext >&5
9308
9309  ac_header_preproc=no
9310fi
9311rm -f conftest.err conftest.$ac_ext
9312echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9313echo "${ECHO_T}$ac_header_preproc" >&6
9314
9315# So?  What about this header?
9316case $ac_header_compiler:$ac_header_preproc in
9317  yes:no )
9318    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9319echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9320    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9321echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9322    (
9323      cat <<\_ASBOX
9324## ------------------------------------ ##
9325## Report this to bug-autoconf@gnu.org. ##
9326## ------------------------------------ ##
9327_ASBOX
9328    ) |
9329      sed "s/^/$as_me: WARNING:     /" >&2
9330    ;;
9331  no:yes )
9332    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9333echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9334    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9335echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9336    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9337echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9338    (
9339      cat <<\_ASBOX
9340## ------------------------------------ ##
9341## Report this to bug-autoconf@gnu.org. ##
9342## ------------------------------------ ##
9343_ASBOX
9344    ) |
9345      sed "s/^/$as_me: WARNING:     /" >&2
9346    ;;
9347esac
9348echo "$as_me:$LINENO: checking for $ac_header" >&5
9349echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9350if eval "test \"\${$as_ac_Header+set}\" = set"; then
9351  echo $ECHO_N "(cached) $ECHO_C" >&6
9352else
9353  eval "$as_ac_Header=$ac_header_preproc"
9354fi
9355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9356echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9357
9358fi
9359if test `eval echo '${'$as_ac_Header'}'` = yes; then
9360  cat >>confdefs.h <<_ACEOF
9361#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9362_ACEOF
9363
9364fi
9365
9366done
9367
9368case "$host" in
9369 *-*-sunos4*) ;;
9370 *)
9371for ac_header in sys/ioctl.h
9372do
9373as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9374if eval "test \"\${$as_ac_Header+set}\" = set"; then
9375  echo "$as_me:$LINENO: checking for $ac_header" >&5
9376echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9377if eval "test \"\${$as_ac_Header+set}\" = set"; then
9378  echo $ECHO_N "(cached) $ECHO_C" >&6
9379fi
9380echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9381echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9382else
9383  # Is the header compilable?
9384echo "$as_me:$LINENO: checking $ac_header usability" >&5
9385echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9386cat >conftest.$ac_ext <<_ACEOF
9387#line $LINENO "configure"
9388/* confdefs.h.  */
9389_ACEOF
9390cat confdefs.h >>conftest.$ac_ext
9391cat >>conftest.$ac_ext <<_ACEOF
9392/* end confdefs.h.  */
9393$ac_includes_default
9394#include <$ac_header>
9395_ACEOF
9396rm -f conftest.$ac_objext
9397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9398  (eval $ac_compile) 2>&5
9399  ac_status=$?
9400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401  (exit $ac_status); } &&
9402         { ac_try='test -s conftest.$ac_objext'
9403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404  (eval $ac_try) 2>&5
9405  ac_status=$?
9406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407  (exit $ac_status); }; }; then
9408  ac_header_compiler=yes
9409else
9410  echo "$as_me: failed program was:" >&5
9411sed 's/^/| /' conftest.$ac_ext >&5
9412
9413ac_header_compiler=no
9414fi
9415rm -f conftest.$ac_objext conftest.$ac_ext
9416echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9417echo "${ECHO_T}$ac_header_compiler" >&6
9418
9419# Is the header present?
9420echo "$as_me:$LINENO: checking $ac_header presence" >&5
9421echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9422cat >conftest.$ac_ext <<_ACEOF
9423#line $LINENO "configure"
9424/* confdefs.h.  */
9425_ACEOF
9426cat confdefs.h >>conftest.$ac_ext
9427cat >>conftest.$ac_ext <<_ACEOF
9428/* end confdefs.h.  */
9429#include <$ac_header>
9430_ACEOF
9431if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9432  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9433  ac_status=$?
9434  grep -v '^ *+' conftest.er1 >conftest.err
9435  rm -f conftest.er1
9436  cat conftest.err >&5
9437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438  (exit $ac_status); } >/dev/null; then
9439  if test -s conftest.err; then
9440    ac_cpp_err=$ac_c_preproc_warn_flag
9441  else
9442    ac_cpp_err=
9443  fi
9444else
9445  ac_cpp_err=yes
9446fi
9447if test -z "$ac_cpp_err"; then
9448  ac_header_preproc=yes
9449else
9450  echo "$as_me: failed program was:" >&5
9451sed 's/^/| /' conftest.$ac_ext >&5
9452
9453  ac_header_preproc=no
9454fi
9455rm -f conftest.err conftest.$ac_ext
9456echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9457echo "${ECHO_T}$ac_header_preproc" >&6
9458
9459# So?  What about this header?
9460case $ac_header_compiler:$ac_header_preproc in
9461  yes:no )
9462    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9463echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9464    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9465echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9466    (
9467      cat <<\_ASBOX
9468## ------------------------------------ ##
9469## Report this to bug-autoconf@gnu.org. ##
9470## ------------------------------------ ##
9471_ASBOX
9472    ) |
9473      sed "s/^/$as_me: WARNING:     /" >&2
9474    ;;
9475  no:yes )
9476    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9477echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9478    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9479echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9480    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9481echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9482    (
9483      cat <<\_ASBOX
9484## ------------------------------------ ##
9485## Report this to bug-autoconf@gnu.org. ##
9486## ------------------------------------ ##
9487_ASBOX
9488    ) |
9489      sed "s/^/$as_me: WARNING:     /" >&2
9490    ;;
9491esac
9492echo "$as_me:$LINENO: checking for $ac_header" >&5
9493echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9494if eval "test \"\${$as_ac_Header+set}\" = set"; then
9495  echo $ECHO_N "(cached) $ECHO_C" >&6
9496else
9497  eval "$as_ac_Header=$ac_header_preproc"
9498fi
9499echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9500echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9501
9502fi
9503if test `eval echo '${'$as_ac_Header'}'` = yes; then
9504  cat >>confdefs.h <<_ACEOF
9505#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9506_ACEOF
9507
9508fi
9509
9510done
9511
9512    ;;
9513esac
9514
9515for ac_header in sys/ipc.h
9516do
9517as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9518if eval "test \"\${$as_ac_Header+set}\" = set"; then
9519  echo "$as_me:$LINENO: checking for $ac_header" >&5
9520echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9521if eval "test \"\${$as_ac_Header+set}\" = set"; then
9522  echo $ECHO_N "(cached) $ECHO_C" >&6
9523fi
9524echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9525echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9526else
9527  # Is the header compilable?
9528echo "$as_me:$LINENO: checking $ac_header usability" >&5
9529echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9530cat >conftest.$ac_ext <<_ACEOF
9531#line $LINENO "configure"
9532/* confdefs.h.  */
9533_ACEOF
9534cat confdefs.h >>conftest.$ac_ext
9535cat >>conftest.$ac_ext <<_ACEOF
9536/* end confdefs.h.  */
9537$ac_includes_default
9538#include <$ac_header>
9539_ACEOF
9540rm -f conftest.$ac_objext
9541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9542  (eval $ac_compile) 2>&5
9543  ac_status=$?
9544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545  (exit $ac_status); } &&
9546         { ac_try='test -s conftest.$ac_objext'
9547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548  (eval $ac_try) 2>&5
9549  ac_status=$?
9550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551  (exit $ac_status); }; }; then
9552  ac_header_compiler=yes
9553else
9554  echo "$as_me: failed program was:" >&5
9555sed 's/^/| /' conftest.$ac_ext >&5
9556
9557ac_header_compiler=no
9558fi
9559rm -f conftest.$ac_objext conftest.$ac_ext
9560echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9561echo "${ECHO_T}$ac_header_compiler" >&6
9562
9563# Is the header present?
9564echo "$as_me:$LINENO: checking $ac_header presence" >&5
9565echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9566cat >conftest.$ac_ext <<_ACEOF
9567#line $LINENO "configure"
9568/* confdefs.h.  */
9569_ACEOF
9570cat confdefs.h >>conftest.$ac_ext
9571cat >>conftest.$ac_ext <<_ACEOF
9572/* end confdefs.h.  */
9573#include <$ac_header>
9574_ACEOF
9575if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9576  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9577  ac_status=$?
9578  grep -v '^ *+' conftest.er1 >conftest.err
9579  rm -f conftest.er1
9580  cat conftest.err >&5
9581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582  (exit $ac_status); } >/dev/null; then
9583  if test -s conftest.err; then
9584    ac_cpp_err=$ac_c_preproc_warn_flag
9585  else
9586    ac_cpp_err=
9587  fi
9588else
9589  ac_cpp_err=yes
9590fi
9591if test -z "$ac_cpp_err"; then
9592  ac_header_preproc=yes
9593else
9594  echo "$as_me: failed program was:" >&5
9595sed 's/^/| /' conftest.$ac_ext >&5
9596
9597  ac_header_preproc=no
9598fi
9599rm -f conftest.err conftest.$ac_ext
9600echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9601echo "${ECHO_T}$ac_header_preproc" >&6
9602
9603# So?  What about this header?
9604case $ac_header_compiler:$ac_header_preproc in
9605  yes:no )
9606    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9607echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9608    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9609echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9610    (
9611      cat <<\_ASBOX
9612## ------------------------------------ ##
9613## Report this to bug-autoconf@gnu.org. ##
9614## ------------------------------------ ##
9615_ASBOX
9616    ) |
9617      sed "s/^/$as_me: WARNING:     /" >&2
9618    ;;
9619  no:yes )
9620    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9621echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9622    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9623echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9624    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9625echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9626    (
9627      cat <<\_ASBOX
9628## ------------------------------------ ##
9629## Report this to bug-autoconf@gnu.org. ##
9630## ------------------------------------ ##
9631_ASBOX
9632    ) |
9633      sed "s/^/$as_me: WARNING:     /" >&2
9634    ;;
9635esac
9636echo "$as_me:$LINENO: checking for $ac_header" >&5
9637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9638if eval "test \"\${$as_ac_Header+set}\" = set"; then
9639  echo $ECHO_N "(cached) $ECHO_C" >&6
9640else
9641  eval "$as_ac_Header=$ac_header_preproc"
9642fi
9643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9644echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9645
9646fi
9647if test `eval echo '${'$as_ac_Header'}'` = yes; then
9648  cat >>confdefs.h <<_ACEOF
9649#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9650_ACEOF
9651
9652fi
9653
9654done
9655
9656
9657
9658
9659
9660
9661for ac_header in sys/lock.h sys/mman.h sys/modem.h sys/param.h sys/ppsclock.h
9662do
9663as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9664if eval "test \"\${$as_ac_Header+set}\" = set"; then
9665  echo "$as_me:$LINENO: checking for $ac_header" >&5
9666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9667if eval "test \"\${$as_ac_Header+set}\" = set"; then
9668  echo $ECHO_N "(cached) $ECHO_C" >&6
9669fi
9670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9671echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9672else
9673  # Is the header compilable?
9674echo "$as_me:$LINENO: checking $ac_header usability" >&5
9675echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9676cat >conftest.$ac_ext <<_ACEOF
9677#line $LINENO "configure"
9678/* confdefs.h.  */
9679_ACEOF
9680cat confdefs.h >>conftest.$ac_ext
9681cat >>conftest.$ac_ext <<_ACEOF
9682/* end confdefs.h.  */
9683$ac_includes_default
9684#include <$ac_header>
9685_ACEOF
9686rm -f conftest.$ac_objext
9687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9688  (eval $ac_compile) 2>&5
9689  ac_status=$?
9690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691  (exit $ac_status); } &&
9692         { ac_try='test -s conftest.$ac_objext'
9693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694  (eval $ac_try) 2>&5
9695  ac_status=$?
9696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697  (exit $ac_status); }; }; then
9698  ac_header_compiler=yes
9699else
9700  echo "$as_me: failed program was:" >&5
9701sed 's/^/| /' conftest.$ac_ext >&5
9702
9703ac_header_compiler=no
9704fi
9705rm -f conftest.$ac_objext conftest.$ac_ext
9706echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9707echo "${ECHO_T}$ac_header_compiler" >&6
9708
9709# Is the header present?
9710echo "$as_me:$LINENO: checking $ac_header presence" >&5
9711echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9712cat >conftest.$ac_ext <<_ACEOF
9713#line $LINENO "configure"
9714/* confdefs.h.  */
9715_ACEOF
9716cat confdefs.h >>conftest.$ac_ext
9717cat >>conftest.$ac_ext <<_ACEOF
9718/* end confdefs.h.  */
9719#include <$ac_header>
9720_ACEOF
9721if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9722  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9723  ac_status=$?
9724  grep -v '^ *+' conftest.er1 >conftest.err
9725  rm -f conftest.er1
9726  cat conftest.err >&5
9727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728  (exit $ac_status); } >/dev/null; then
9729  if test -s conftest.err; then
9730    ac_cpp_err=$ac_c_preproc_warn_flag
9731  else
9732    ac_cpp_err=
9733  fi
9734else
9735  ac_cpp_err=yes
9736fi
9737if test -z "$ac_cpp_err"; then
9738  ac_header_preproc=yes
9739else
9740  echo "$as_me: failed program was:" >&5
9741sed 's/^/| /' conftest.$ac_ext >&5
9742
9743  ac_header_preproc=no
9744fi
9745rm -f conftest.err conftest.$ac_ext
9746echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9747echo "${ECHO_T}$ac_header_preproc" >&6
9748
9749# So?  What about this header?
9750case $ac_header_compiler:$ac_header_preproc in
9751  yes:no )
9752    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9753echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9754    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9755echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9756    (
9757      cat <<\_ASBOX
9758## ------------------------------------ ##
9759## Report this to bug-autoconf@gnu.org. ##
9760## ------------------------------------ ##
9761_ASBOX
9762    ) |
9763      sed "s/^/$as_me: WARNING:     /" >&2
9764    ;;
9765  no:yes )
9766    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9767echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9768    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9769echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9770    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9771echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9772    (
9773      cat <<\_ASBOX
9774## ------------------------------------ ##
9775## Report this to bug-autoconf@gnu.org. ##
9776## ------------------------------------ ##
9777_ASBOX
9778    ) |
9779      sed "s/^/$as_me: WARNING:     /" >&2
9780    ;;
9781esac
9782echo "$as_me:$LINENO: checking for $ac_header" >&5
9783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9784if eval "test \"\${$as_ac_Header+set}\" = set"; then
9785  echo $ECHO_N "(cached) $ECHO_C" >&6
9786else
9787  eval "$as_ac_Header=$ac_header_preproc"
9788fi
9789echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9790echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9791
9792fi
9793if test `eval echo '${'$as_ac_Header'}'` = yes; then
9794  cat >>confdefs.h <<_ACEOF
9795#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9796_ACEOF
9797
9798fi
9799
9800done
9801
9802
9803
9804
9805
9806for ac_header in sys/ppstime.h sys/proc.h sys/resource.h sys/sched.h
9807do
9808as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9809if eval "test \"\${$as_ac_Header+set}\" = set"; then
9810  echo "$as_me:$LINENO: checking for $ac_header" >&5
9811echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9812if eval "test \"\${$as_ac_Header+set}\" = set"; then
9813  echo $ECHO_N "(cached) $ECHO_C" >&6
9814fi
9815echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9816echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9817else
9818  # Is the header compilable?
9819echo "$as_me:$LINENO: checking $ac_header usability" >&5
9820echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9821cat >conftest.$ac_ext <<_ACEOF
9822#line $LINENO "configure"
9823/* confdefs.h.  */
9824_ACEOF
9825cat confdefs.h >>conftest.$ac_ext
9826cat >>conftest.$ac_ext <<_ACEOF
9827/* end confdefs.h.  */
9828$ac_includes_default
9829#include <$ac_header>
9830_ACEOF
9831rm -f conftest.$ac_objext
9832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9833  (eval $ac_compile) 2>&5
9834  ac_status=$?
9835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836  (exit $ac_status); } &&
9837         { ac_try='test -s conftest.$ac_objext'
9838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839  (eval $ac_try) 2>&5
9840  ac_status=$?
9841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842  (exit $ac_status); }; }; then
9843  ac_header_compiler=yes
9844else
9845  echo "$as_me: failed program was:" >&5
9846sed 's/^/| /' conftest.$ac_ext >&5
9847
9848ac_header_compiler=no
9849fi
9850rm -f conftest.$ac_objext conftest.$ac_ext
9851echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9852echo "${ECHO_T}$ac_header_compiler" >&6
9853
9854# Is the header present?
9855echo "$as_me:$LINENO: checking $ac_header presence" >&5
9856echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9857cat >conftest.$ac_ext <<_ACEOF
9858#line $LINENO "configure"
9859/* confdefs.h.  */
9860_ACEOF
9861cat confdefs.h >>conftest.$ac_ext
9862cat >>conftest.$ac_ext <<_ACEOF
9863/* end confdefs.h.  */
9864#include <$ac_header>
9865_ACEOF
9866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9867  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9868  ac_status=$?
9869  grep -v '^ *+' conftest.er1 >conftest.err
9870  rm -f conftest.er1
9871  cat conftest.err >&5
9872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873  (exit $ac_status); } >/dev/null; then
9874  if test -s conftest.err; then
9875    ac_cpp_err=$ac_c_preproc_warn_flag
9876  else
9877    ac_cpp_err=
9878  fi
9879else
9880  ac_cpp_err=yes
9881fi
9882if test -z "$ac_cpp_err"; then
9883  ac_header_preproc=yes
9884else
9885  echo "$as_me: failed program was:" >&5
9886sed 's/^/| /' conftest.$ac_ext >&5
9887
9888  ac_header_preproc=no
9889fi
9890rm -f conftest.err conftest.$ac_ext
9891echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9892echo "${ECHO_T}$ac_header_preproc" >&6
9893
9894# So?  What about this header?
9895case $ac_header_compiler:$ac_header_preproc in
9896  yes:no )
9897    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9898echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9899    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9900echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9901    (
9902      cat <<\_ASBOX
9903## ------------------------------------ ##
9904## Report this to bug-autoconf@gnu.org. ##
9905## ------------------------------------ ##
9906_ASBOX
9907    ) |
9908      sed "s/^/$as_me: WARNING:     /" >&2
9909    ;;
9910  no:yes )
9911    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9912echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9913    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9914echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9915    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9916echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9917    (
9918      cat <<\_ASBOX
9919## ------------------------------------ ##
9920## Report this to bug-autoconf@gnu.org. ##
9921## ------------------------------------ ##
9922_ASBOX
9923    ) |
9924      sed "s/^/$as_me: WARNING:     /" >&2
9925    ;;
9926esac
9927echo "$as_me:$LINENO: checking for $ac_header" >&5
9928echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9929if eval "test \"\${$as_ac_Header+set}\" = set"; then
9930  echo $ECHO_N "(cached) $ECHO_C" >&6
9931else
9932  eval "$as_ac_Header=$ac_header_preproc"
9933fi
9934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9935echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9936
9937fi
9938if test `eval echo '${'$as_ac_Header'}'` = yes; then
9939  cat >>confdefs.h <<_ACEOF
9940#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9941_ACEOF
9942
9943fi
9944
9945done
9946
9947case "$host" in
9948 *-*-sco*)
9949
9950for ac_header in sys/sio.h
9951do
9952as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9953if eval "test \"\${$as_ac_Header+set}\" = set"; then
9954  echo "$as_me:$LINENO: checking for $ac_header" >&5
9955echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9956if eval "test \"\${$as_ac_Header+set}\" = set"; then
9957  echo $ECHO_N "(cached) $ECHO_C" >&6
9958fi
9959echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9960echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9961else
9962  # Is the header compilable?
9963echo "$as_me:$LINENO: checking $ac_header usability" >&5
9964echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9965cat >conftest.$ac_ext <<_ACEOF
9966#line $LINENO "configure"
9967/* confdefs.h.  */
9968_ACEOF
9969cat confdefs.h >>conftest.$ac_ext
9970cat >>conftest.$ac_ext <<_ACEOF
9971/* end confdefs.h.  */
9972$ac_includes_default
9973#include <$ac_header>
9974_ACEOF
9975rm -f conftest.$ac_objext
9976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9977  (eval $ac_compile) 2>&5
9978  ac_status=$?
9979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980  (exit $ac_status); } &&
9981         { ac_try='test -s conftest.$ac_objext'
9982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9983  (eval $ac_try) 2>&5
9984  ac_status=$?
9985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986  (exit $ac_status); }; }; then
9987  ac_header_compiler=yes
9988else
9989  echo "$as_me: failed program was:" >&5
9990sed 's/^/| /' conftest.$ac_ext >&5
9991
9992ac_header_compiler=no
9993fi
9994rm -f conftest.$ac_objext conftest.$ac_ext
9995echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9996echo "${ECHO_T}$ac_header_compiler" >&6
9997
9998# Is the header present?
9999echo "$as_me:$LINENO: checking $ac_header presence" >&5
10000echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10001cat >conftest.$ac_ext <<_ACEOF
10002#line $LINENO "configure"
10003/* confdefs.h.  */
10004_ACEOF
10005cat confdefs.h >>conftest.$ac_ext
10006cat >>conftest.$ac_ext <<_ACEOF
10007/* end confdefs.h.  */
10008#include <$ac_header>
10009_ACEOF
10010if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10011  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10012  ac_status=$?
10013  grep -v '^ *+' conftest.er1 >conftest.err
10014  rm -f conftest.er1
10015  cat conftest.err >&5
10016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017  (exit $ac_status); } >/dev/null; then
10018  if test -s conftest.err; then
10019    ac_cpp_err=$ac_c_preproc_warn_flag
10020  else
10021    ac_cpp_err=
10022  fi
10023else
10024  ac_cpp_err=yes
10025fi
10026if test -z "$ac_cpp_err"; then
10027  ac_header_preproc=yes
10028else
10029  echo "$as_me: failed program was:" >&5
10030sed 's/^/| /' conftest.$ac_ext >&5
10031
10032  ac_header_preproc=no
10033fi
10034rm -f conftest.err conftest.$ac_ext
10035echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10036echo "${ECHO_T}$ac_header_preproc" >&6
10037
10038# So?  What about this header?
10039case $ac_header_compiler:$ac_header_preproc in
10040  yes:no )
10041    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10042echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10043    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10044echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10045    (
10046      cat <<\_ASBOX
10047## ------------------------------------ ##
10048## Report this to bug-autoconf@gnu.org. ##
10049## ------------------------------------ ##
10050_ASBOX
10051    ) |
10052      sed "s/^/$as_me: WARNING:     /" >&2
10053    ;;
10054  no:yes )
10055    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10056echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10057    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10058echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10059    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10060echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10061    (
10062      cat <<\_ASBOX
10063## ------------------------------------ ##
10064## Report this to bug-autoconf@gnu.org. ##
10065## ------------------------------------ ##
10066_ASBOX
10067    ) |
10068      sed "s/^/$as_me: WARNING:     /" >&2
10069    ;;
10070esac
10071echo "$as_me:$LINENO: checking for $ac_header" >&5
10072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10073if eval "test \"\${$as_ac_Header+set}\" = set"; then
10074  echo $ECHO_N "(cached) $ECHO_C" >&6
10075else
10076  eval "$as_ac_Header=$ac_header_preproc"
10077fi
10078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10079echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10080
10081fi
10082if test `eval echo '${'$as_ac_Header'}'` = yes; then
10083  cat >>confdefs.h <<_ACEOF
10084#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10085_ACEOF
10086
10087fi
10088
10089done
10090
10091    ;;
10092esac
10093
10094
10095
10096
10097for ac_header in sys/select.h sys/shm.h sys/signal.h sys/sockio.h
10098do
10099as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10100if eval "test \"\${$as_ac_Header+set}\" = set"; then
10101  echo "$as_me:$LINENO: checking for $ac_header" >&5
10102echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10103if eval "test \"\${$as_ac_Header+set}\" = set"; then
10104  echo $ECHO_N "(cached) $ECHO_C" >&6
10105fi
10106echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10107echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10108else
10109  # Is the header compilable?
10110echo "$as_me:$LINENO: checking $ac_header usability" >&5
10111echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10112cat >conftest.$ac_ext <<_ACEOF
10113#line $LINENO "configure"
10114/* confdefs.h.  */
10115_ACEOF
10116cat confdefs.h >>conftest.$ac_ext
10117cat >>conftest.$ac_ext <<_ACEOF
10118/* end confdefs.h.  */
10119$ac_includes_default
10120#include <$ac_header>
10121_ACEOF
10122rm -f conftest.$ac_objext
10123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10124  (eval $ac_compile) 2>&5
10125  ac_status=$?
10126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127  (exit $ac_status); } &&
10128         { ac_try='test -s conftest.$ac_objext'
10129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130  (eval $ac_try) 2>&5
10131  ac_status=$?
10132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133  (exit $ac_status); }; }; then
10134  ac_header_compiler=yes
10135else
10136  echo "$as_me: failed program was:" >&5
10137sed 's/^/| /' conftest.$ac_ext >&5
10138
10139ac_header_compiler=no
10140fi
10141rm -f conftest.$ac_objext conftest.$ac_ext
10142echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10143echo "${ECHO_T}$ac_header_compiler" >&6
10144
10145# Is the header present?
10146echo "$as_me:$LINENO: checking $ac_header presence" >&5
10147echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10148cat >conftest.$ac_ext <<_ACEOF
10149#line $LINENO "configure"
10150/* confdefs.h.  */
10151_ACEOF
10152cat confdefs.h >>conftest.$ac_ext
10153cat >>conftest.$ac_ext <<_ACEOF
10154/* end confdefs.h.  */
10155#include <$ac_header>
10156_ACEOF
10157if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10158  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10159  ac_status=$?
10160  grep -v '^ *+' conftest.er1 >conftest.err
10161  rm -f conftest.er1
10162  cat conftest.err >&5
10163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164  (exit $ac_status); } >/dev/null; then
10165  if test -s conftest.err; then
10166    ac_cpp_err=$ac_c_preproc_warn_flag
10167  else
10168    ac_cpp_err=
10169  fi
10170else
10171  ac_cpp_err=yes
10172fi
10173if test -z "$ac_cpp_err"; then
10174  ac_header_preproc=yes
10175else
10176  echo "$as_me: failed program was:" >&5
10177sed 's/^/| /' conftest.$ac_ext >&5
10178
10179  ac_header_preproc=no
10180fi
10181rm -f conftest.err conftest.$ac_ext
10182echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10183echo "${ECHO_T}$ac_header_preproc" >&6
10184
10185# So?  What about this header?
10186case $ac_header_compiler:$ac_header_preproc in
10187  yes:no )
10188    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10189echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10190    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10191echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10192    (
10193      cat <<\_ASBOX
10194## ------------------------------------ ##
10195## Report this to bug-autoconf@gnu.org. ##
10196## ------------------------------------ ##
10197_ASBOX
10198    ) |
10199      sed "s/^/$as_me: WARNING:     /" >&2
10200    ;;
10201  no:yes )
10202    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10203echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10204    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10205echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10206    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10207echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10208    (
10209      cat <<\_ASBOX
10210## ------------------------------------ ##
10211## Report this to bug-autoconf@gnu.org. ##
10212## ------------------------------------ ##
10213_ASBOX
10214    ) |
10215      sed "s/^/$as_me: WARNING:     /" >&2
10216    ;;
10217esac
10218echo "$as_me:$LINENO: checking for $ac_header" >&5
10219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10220if eval "test \"\${$as_ac_Header+set}\" = set"; then
10221  echo $ECHO_N "(cached) $ECHO_C" >&6
10222else
10223  eval "$as_ac_Header=$ac_header_preproc"
10224fi
10225echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10226echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10227
10228fi
10229if test `eval echo '${'$as_ac_Header'}'` = yes; then
10230  cat >>confdefs.h <<_ACEOF
10231#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10232_ACEOF
10233
10234fi
10235
10236done
10237
10238
10239
10240for ac_header in machine/soundcard.h sys/soundcard.h
10241do
10242as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10243if eval "test \"\${$as_ac_Header+set}\" = set"; then
10244  echo "$as_me:$LINENO: checking for $ac_header" >&5
10245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10246if eval "test \"\${$as_ac_Header+set}\" = set"; then
10247  echo $ECHO_N "(cached) $ECHO_C" >&6
10248fi
10249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10250echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10251else
10252  # Is the header compilable?
10253echo "$as_me:$LINENO: checking $ac_header usability" >&5
10254echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10255cat >conftest.$ac_ext <<_ACEOF
10256#line $LINENO "configure"
10257/* confdefs.h.  */
10258_ACEOF
10259cat confdefs.h >>conftest.$ac_ext
10260cat >>conftest.$ac_ext <<_ACEOF
10261/* end confdefs.h.  */
10262$ac_includes_default
10263#include <$ac_header>
10264_ACEOF
10265rm -f conftest.$ac_objext
10266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10267  (eval $ac_compile) 2>&5
10268  ac_status=$?
10269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270  (exit $ac_status); } &&
10271         { ac_try='test -s conftest.$ac_objext'
10272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273  (eval $ac_try) 2>&5
10274  ac_status=$?
10275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276  (exit $ac_status); }; }; then
10277  ac_header_compiler=yes
10278else
10279  echo "$as_me: failed program was:" >&5
10280sed 's/^/| /' conftest.$ac_ext >&5
10281
10282ac_header_compiler=no
10283fi
10284rm -f conftest.$ac_objext conftest.$ac_ext
10285echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10286echo "${ECHO_T}$ac_header_compiler" >&6
10287
10288# Is the header present?
10289echo "$as_me:$LINENO: checking $ac_header presence" >&5
10290echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10291cat >conftest.$ac_ext <<_ACEOF
10292#line $LINENO "configure"
10293/* confdefs.h.  */
10294_ACEOF
10295cat confdefs.h >>conftest.$ac_ext
10296cat >>conftest.$ac_ext <<_ACEOF
10297/* end confdefs.h.  */
10298#include <$ac_header>
10299_ACEOF
10300if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10301  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10302  ac_status=$?
10303  grep -v '^ *+' conftest.er1 >conftest.err
10304  rm -f conftest.er1
10305  cat conftest.err >&5
10306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307  (exit $ac_status); } >/dev/null; then
10308  if test -s conftest.err; then
10309    ac_cpp_err=$ac_c_preproc_warn_flag
10310  else
10311    ac_cpp_err=
10312  fi
10313else
10314  ac_cpp_err=yes
10315fi
10316if test -z "$ac_cpp_err"; then
10317  ac_header_preproc=yes
10318else
10319  echo "$as_me: failed program was:" >&5
10320sed 's/^/| /' conftest.$ac_ext >&5
10321
10322  ac_header_preproc=no
10323fi
10324rm -f conftest.err conftest.$ac_ext
10325echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10326echo "${ECHO_T}$ac_header_preproc" >&6
10327
10328# So?  What about this header?
10329case $ac_header_compiler:$ac_header_preproc in
10330  yes:no )
10331    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10332echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10333    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10334echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10335    (
10336      cat <<\_ASBOX
10337## ------------------------------------ ##
10338## Report this to bug-autoconf@gnu.org. ##
10339## ------------------------------------ ##
10340_ASBOX
10341    ) |
10342      sed "s/^/$as_me: WARNING:     /" >&2
10343    ;;
10344  no:yes )
10345    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10346echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10347    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10348echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10349    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10350echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10351    (
10352      cat <<\_ASBOX
10353## ------------------------------------ ##
10354## Report this to bug-autoconf@gnu.org. ##
10355## ------------------------------------ ##
10356_ASBOX
10357    ) |
10358      sed "s/^/$as_me: WARNING:     /" >&2
10359    ;;
10360esac
10361echo "$as_me:$LINENO: checking for $ac_header" >&5
10362echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10363if eval "test \"\${$as_ac_Header+set}\" = set"; then
10364  echo $ECHO_N "(cached) $ECHO_C" >&6
10365else
10366  eval "$as_ac_Header=$ac_header_preproc"
10367fi
10368echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10369echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10370
10371fi
10372if test `eval echo '${'$as_ac_Header'}'` = yes; then
10373  cat >>confdefs.h <<_ACEOF
10374#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10375_ACEOF
10376
10377fi
10378
10379done
10380
10381
10382
10383for ac_header in sys/stat.h sys/stream.h
10384do
10385as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10386if eval "test \"\${$as_ac_Header+set}\" = set"; then
10387  echo "$as_me:$LINENO: checking for $ac_header" >&5
10388echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10389if eval "test \"\${$as_ac_Header+set}\" = set"; then
10390  echo $ECHO_N "(cached) $ECHO_C" >&6
10391fi
10392echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10393echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10394else
10395  # Is the header compilable?
10396echo "$as_me:$LINENO: checking $ac_header usability" >&5
10397echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10398cat >conftest.$ac_ext <<_ACEOF
10399#line $LINENO "configure"
10400/* confdefs.h.  */
10401_ACEOF
10402cat confdefs.h >>conftest.$ac_ext
10403cat >>conftest.$ac_ext <<_ACEOF
10404/* end confdefs.h.  */
10405$ac_includes_default
10406#include <$ac_header>
10407_ACEOF
10408rm -f conftest.$ac_objext
10409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10410  (eval $ac_compile) 2>&5
10411  ac_status=$?
10412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413  (exit $ac_status); } &&
10414         { ac_try='test -s conftest.$ac_objext'
10415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10416  (eval $ac_try) 2>&5
10417  ac_status=$?
10418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419  (exit $ac_status); }; }; then
10420  ac_header_compiler=yes
10421else
10422  echo "$as_me: failed program was:" >&5
10423sed 's/^/| /' conftest.$ac_ext >&5
10424
10425ac_header_compiler=no
10426fi
10427rm -f conftest.$ac_objext conftest.$ac_ext
10428echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10429echo "${ECHO_T}$ac_header_compiler" >&6
10430
10431# Is the header present?
10432echo "$as_me:$LINENO: checking $ac_header presence" >&5
10433echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10434cat >conftest.$ac_ext <<_ACEOF
10435#line $LINENO "configure"
10436/* confdefs.h.  */
10437_ACEOF
10438cat confdefs.h >>conftest.$ac_ext
10439cat >>conftest.$ac_ext <<_ACEOF
10440/* end confdefs.h.  */
10441#include <$ac_header>
10442_ACEOF
10443if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10444  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10445  ac_status=$?
10446  grep -v '^ *+' conftest.er1 >conftest.err
10447  rm -f conftest.er1
10448  cat conftest.err >&5
10449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450  (exit $ac_status); } >/dev/null; then
10451  if test -s conftest.err; then
10452    ac_cpp_err=$ac_c_preproc_warn_flag
10453  else
10454    ac_cpp_err=
10455  fi
10456else
10457  ac_cpp_err=yes
10458fi
10459if test -z "$ac_cpp_err"; then
10460  ac_header_preproc=yes
10461else
10462  echo "$as_me: failed program was:" >&5
10463sed 's/^/| /' conftest.$ac_ext >&5
10464
10465  ac_header_preproc=no
10466fi
10467rm -f conftest.err conftest.$ac_ext
10468echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10469echo "${ECHO_T}$ac_header_preproc" >&6
10470
10471# So?  What about this header?
10472case $ac_header_compiler:$ac_header_preproc in
10473  yes:no )
10474    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10475echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10476    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10477echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10478    (
10479      cat <<\_ASBOX
10480## ------------------------------------ ##
10481## Report this to bug-autoconf@gnu.org. ##
10482## ------------------------------------ ##
10483_ASBOX
10484    ) |
10485      sed "s/^/$as_me: WARNING:     /" >&2
10486    ;;
10487  no:yes )
10488    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10489echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10490    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10491echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10492    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10493echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10494    (
10495      cat <<\_ASBOX
10496## ------------------------------------ ##
10497## Report this to bug-autoconf@gnu.org. ##
10498## ------------------------------------ ##
10499_ASBOX
10500    ) |
10501      sed "s/^/$as_me: WARNING:     /" >&2
10502    ;;
10503esac
10504echo "$as_me:$LINENO: checking for $ac_header" >&5
10505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10506if eval "test \"\${$as_ac_Header+set}\" = set"; then
10507  echo $ECHO_N "(cached) $ECHO_C" >&6
10508else
10509  eval "$as_ac_Header=$ac_header_preproc"
10510fi
10511echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10512echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10513
10514fi
10515if test `eval echo '${'$as_ac_Header'}'` = yes; then
10516  cat >>confdefs.h <<_ACEOF
10517#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10518_ACEOF
10519
10520fi
10521
10522done
10523
10524
10525
10526
10527
10528for ac_header in sys/stropts.h sys/sysctl.h sys/syssgi.h sys/systune.h
10529do
10530as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10531if eval "test \"\${$as_ac_Header+set}\" = set"; then
10532  echo "$as_me:$LINENO: checking for $ac_header" >&5
10533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10534if eval "test \"\${$as_ac_Header+set}\" = set"; then
10535  echo $ECHO_N "(cached) $ECHO_C" >&6
10536fi
10537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10538echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10539else
10540  # Is the header compilable?
10541echo "$as_me:$LINENO: checking $ac_header usability" >&5
10542echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10543cat >conftest.$ac_ext <<_ACEOF
10544#line $LINENO "configure"
10545/* confdefs.h.  */
10546_ACEOF
10547cat confdefs.h >>conftest.$ac_ext
10548cat >>conftest.$ac_ext <<_ACEOF
10549/* end confdefs.h.  */
10550$ac_includes_default
10551#include <$ac_header>
10552_ACEOF
10553rm -f conftest.$ac_objext
10554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10555  (eval $ac_compile) 2>&5
10556  ac_status=$?
10557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558  (exit $ac_status); } &&
10559         { ac_try='test -s conftest.$ac_objext'
10560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10561  (eval $ac_try) 2>&5
10562  ac_status=$?
10563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564  (exit $ac_status); }; }; then
10565  ac_header_compiler=yes
10566else
10567  echo "$as_me: failed program was:" >&5
10568sed 's/^/| /' conftest.$ac_ext >&5
10569
10570ac_header_compiler=no
10571fi
10572rm -f conftest.$ac_objext conftest.$ac_ext
10573echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10574echo "${ECHO_T}$ac_header_compiler" >&6
10575
10576# Is the header present?
10577echo "$as_me:$LINENO: checking $ac_header presence" >&5
10578echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10579cat >conftest.$ac_ext <<_ACEOF
10580#line $LINENO "configure"
10581/* confdefs.h.  */
10582_ACEOF
10583cat confdefs.h >>conftest.$ac_ext
10584cat >>conftest.$ac_ext <<_ACEOF
10585/* end confdefs.h.  */
10586#include <$ac_header>
10587_ACEOF
10588if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10589  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10590  ac_status=$?
10591  grep -v '^ *+' conftest.er1 >conftest.err
10592  rm -f conftest.er1
10593  cat conftest.err >&5
10594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595  (exit $ac_status); } >/dev/null; then
10596  if test -s conftest.err; then
10597    ac_cpp_err=$ac_c_preproc_warn_flag
10598  else
10599    ac_cpp_err=
10600  fi
10601else
10602  ac_cpp_err=yes
10603fi
10604if test -z "$ac_cpp_err"; then
10605  ac_header_preproc=yes
10606else
10607  echo "$as_me: failed program was:" >&5
10608sed 's/^/| /' conftest.$ac_ext >&5
10609
10610  ac_header_preproc=no
10611fi
10612rm -f conftest.err conftest.$ac_ext
10613echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10614echo "${ECHO_T}$ac_header_preproc" >&6
10615
10616# So?  What about this header?
10617case $ac_header_compiler:$ac_header_preproc in
10618  yes:no )
10619    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10620echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10621    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10622echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10623    (
10624      cat <<\_ASBOX
10625## ------------------------------------ ##
10626## Report this to bug-autoconf@gnu.org. ##
10627## ------------------------------------ ##
10628_ASBOX
10629    ) |
10630      sed "s/^/$as_me: WARNING:     /" >&2
10631    ;;
10632  no:yes )
10633    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10634echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10635    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10636echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10637    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10638echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10639    (
10640      cat <<\_ASBOX
10641## ------------------------------------ ##
10642## Report this to bug-autoconf@gnu.org. ##
10643## ------------------------------------ ##
10644_ASBOX
10645    ) |
10646      sed "s/^/$as_me: WARNING:     /" >&2
10647    ;;
10648esac
10649echo "$as_me:$LINENO: checking for $ac_header" >&5
10650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10651if eval "test \"\${$as_ac_Header+set}\" = set"; then
10652  echo $ECHO_N "(cached) $ECHO_C" >&6
10653else
10654  eval "$as_ac_Header=$ac_header_preproc"
10655fi
10656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10658
10659fi
10660if test `eval echo '${'$as_ac_Header'}'` = yes; then
10661  cat >>confdefs.h <<_ACEOF
10662#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10663_ACEOF
10664
10665fi
10666
10667done
10668
10669
10670
10671
10672for ac_header in sys/termios.h sys/time.h sys/signal.h
10673do
10674as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10675if eval "test \"\${$as_ac_Header+set}\" = set"; then
10676  echo "$as_me:$LINENO: checking for $ac_header" >&5
10677echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10678if eval "test \"\${$as_ac_Header+set}\" = set"; then
10679  echo $ECHO_N "(cached) $ECHO_C" >&6
10680fi
10681echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10682echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10683else
10684  # Is the header compilable?
10685echo "$as_me:$LINENO: checking $ac_header usability" >&5
10686echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10687cat >conftest.$ac_ext <<_ACEOF
10688#line $LINENO "configure"
10689/* confdefs.h.  */
10690_ACEOF
10691cat confdefs.h >>conftest.$ac_ext
10692cat >>conftest.$ac_ext <<_ACEOF
10693/* end confdefs.h.  */
10694$ac_includes_default
10695#include <$ac_header>
10696_ACEOF
10697rm -f conftest.$ac_objext
10698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10699  (eval $ac_compile) 2>&5
10700  ac_status=$?
10701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702  (exit $ac_status); } &&
10703         { ac_try='test -s conftest.$ac_objext'
10704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705  (eval $ac_try) 2>&5
10706  ac_status=$?
10707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708  (exit $ac_status); }; }; then
10709  ac_header_compiler=yes
10710else
10711  echo "$as_me: failed program was:" >&5
10712sed 's/^/| /' conftest.$ac_ext >&5
10713
10714ac_header_compiler=no
10715fi
10716rm -f conftest.$ac_objext conftest.$ac_ext
10717echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10718echo "${ECHO_T}$ac_header_compiler" >&6
10719
10720# Is the header present?
10721echo "$as_me:$LINENO: checking $ac_header presence" >&5
10722echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10723cat >conftest.$ac_ext <<_ACEOF
10724#line $LINENO "configure"
10725/* confdefs.h.  */
10726_ACEOF
10727cat confdefs.h >>conftest.$ac_ext
10728cat >>conftest.$ac_ext <<_ACEOF
10729/* end confdefs.h.  */
10730#include <$ac_header>
10731_ACEOF
10732if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10733  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10734  ac_status=$?
10735  grep -v '^ *+' conftest.er1 >conftest.err
10736  rm -f conftest.er1
10737  cat conftest.err >&5
10738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739  (exit $ac_status); } >/dev/null; then
10740  if test -s conftest.err; then
10741    ac_cpp_err=$ac_c_preproc_warn_flag
10742  else
10743    ac_cpp_err=
10744  fi
10745else
10746  ac_cpp_err=yes
10747fi
10748if test -z "$ac_cpp_err"; then
10749  ac_header_preproc=yes
10750else
10751  echo "$as_me: failed program was:" >&5
10752sed 's/^/| /' conftest.$ac_ext >&5
10753
10754  ac_header_preproc=no
10755fi
10756rm -f conftest.err conftest.$ac_ext
10757echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10758echo "${ECHO_T}$ac_header_preproc" >&6
10759
10760# So?  What about this header?
10761case $ac_header_compiler:$ac_header_preproc in
10762  yes:no )
10763    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10764echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10765    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10766echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10767    (
10768      cat <<\_ASBOX
10769## ------------------------------------ ##
10770## Report this to bug-autoconf@gnu.org. ##
10771## ------------------------------------ ##
10772_ASBOX
10773    ) |
10774      sed "s/^/$as_me: WARNING:     /" >&2
10775    ;;
10776  no:yes )
10777    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10778echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10779    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10780echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10781    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10782echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10783    (
10784      cat <<\_ASBOX
10785## ------------------------------------ ##
10786## Report this to bug-autoconf@gnu.org. ##
10787## ------------------------------------ ##
10788_ASBOX
10789    ) |
10790      sed "s/^/$as_me: WARNING:     /" >&2
10791    ;;
10792esac
10793echo "$as_me:$LINENO: checking for $ac_header" >&5
10794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10795if eval "test \"\${$as_ac_Header+set}\" = set"; then
10796  echo $ECHO_N "(cached) $ECHO_C" >&6
10797else
10798  eval "$as_ac_Header=$ac_header_preproc"
10799fi
10800echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10801echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10802
10803fi
10804if test `eval echo '${'$as_ac_Header'}'` = yes; then
10805  cat >>confdefs.h <<_ACEOF
10806#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10807_ACEOF
10808
10809fi
10810
10811done
10812
10813cat >conftest.$ac_ext <<_ACEOF
10814#line $LINENO "configure"
10815/* confdefs.h.  */
10816_ACEOF
10817cat confdefs.h >>conftest.$ac_ext
10818cat >>conftest.$ac_ext <<_ACEOF
10819/* end confdefs.h.  */
10820#include <sys/timepps.h>
10821#ifdef PPS_API_VERS_1
10822yes
10823#endif
10824
10825_ACEOF
10826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10827  $EGREP "yes" >/dev/null 2>&1; then
10828
10829for ac_header in sys/timepps.h
10830do
10831as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10832if eval "test \"\${$as_ac_Header+set}\" = set"; then
10833  echo "$as_me:$LINENO: checking for $ac_header" >&5
10834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10835if eval "test \"\${$as_ac_Header+set}\" = set"; then
10836  echo $ECHO_N "(cached) $ECHO_C" >&6
10837fi
10838echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10839echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10840else
10841  # Is the header compilable?
10842echo "$as_me:$LINENO: checking $ac_header usability" >&5
10843echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10844cat >conftest.$ac_ext <<_ACEOF
10845#line $LINENO "configure"
10846/* confdefs.h.  */
10847_ACEOF
10848cat confdefs.h >>conftest.$ac_ext
10849cat >>conftest.$ac_ext <<_ACEOF
10850/* end confdefs.h.  */
10851$ac_includes_default
10852#include <$ac_header>
10853_ACEOF
10854rm -f conftest.$ac_objext
10855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10856  (eval $ac_compile) 2>&5
10857  ac_status=$?
10858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859  (exit $ac_status); } &&
10860         { ac_try='test -s conftest.$ac_objext'
10861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10862  (eval $ac_try) 2>&5
10863  ac_status=$?
10864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865  (exit $ac_status); }; }; then
10866  ac_header_compiler=yes
10867else
10868  echo "$as_me: failed program was:" >&5
10869sed 's/^/| /' conftest.$ac_ext >&5
10870
10871ac_header_compiler=no
10872fi
10873rm -f conftest.$ac_objext conftest.$ac_ext
10874echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10875echo "${ECHO_T}$ac_header_compiler" >&6
10876
10877# Is the header present?
10878echo "$as_me:$LINENO: checking $ac_header presence" >&5
10879echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10880cat >conftest.$ac_ext <<_ACEOF
10881#line $LINENO "configure"
10882/* confdefs.h.  */
10883_ACEOF
10884cat confdefs.h >>conftest.$ac_ext
10885cat >>conftest.$ac_ext <<_ACEOF
10886/* end confdefs.h.  */
10887#include <$ac_header>
10888_ACEOF
10889if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10890  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10891  ac_status=$?
10892  grep -v '^ *+' conftest.er1 >conftest.err
10893  rm -f conftest.er1
10894  cat conftest.err >&5
10895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896  (exit $ac_status); } >/dev/null; then
10897  if test -s conftest.err; then
10898    ac_cpp_err=$ac_c_preproc_warn_flag
10899  else
10900    ac_cpp_err=
10901  fi
10902else
10903  ac_cpp_err=yes
10904fi
10905if test -z "$ac_cpp_err"; then
10906  ac_header_preproc=yes
10907else
10908  echo "$as_me: failed program was:" >&5
10909sed 's/^/| /' conftest.$ac_ext >&5
10910
10911  ac_header_preproc=no
10912fi
10913rm -f conftest.err conftest.$ac_ext
10914echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10915echo "${ECHO_T}$ac_header_preproc" >&6
10916
10917# So?  What about this header?
10918case $ac_header_compiler:$ac_header_preproc in
10919  yes:no )
10920    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10921echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10922    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10923echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10924    (
10925      cat <<\_ASBOX
10926## ------------------------------------ ##
10927## Report this to bug-autoconf@gnu.org. ##
10928## ------------------------------------ ##
10929_ASBOX
10930    ) |
10931      sed "s/^/$as_me: WARNING:     /" >&2
10932    ;;
10933  no:yes )
10934    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10935echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10936    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10937echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10938    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10939echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10940    (
10941      cat <<\_ASBOX
10942## ------------------------------------ ##
10943## Report this to bug-autoconf@gnu.org. ##
10944## ------------------------------------ ##
10945_ASBOX
10946    ) |
10947      sed "s/^/$as_me: WARNING:     /" >&2
10948    ;;
10949esac
10950echo "$as_me:$LINENO: checking for $ac_header" >&5
10951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10952if eval "test \"\${$as_ac_Header+set}\" = set"; then
10953  echo $ECHO_N "(cached) $ECHO_C" >&6
10954else
10955  eval "$as_ac_Header=$ac_header_preproc"
10956fi
10957echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10958echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10959
10960fi
10961if test `eval echo '${'$as_ac_Header'}'` = yes; then
10962  cat >>confdefs.h <<_ACEOF
10963#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10964_ACEOF
10965
10966fi
10967
10968done
10969
10970fi
10971rm -f conftest*
10972
10973
10974
10975
10976
10977
10978for ac_header in sys/timers.h sys/timex.h sys/tpro.h sys/types.h sys/wait.h
10979do
10980as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10981if eval "test \"\${$as_ac_Header+set}\" = set"; then
10982  echo "$as_me:$LINENO: checking for $ac_header" >&5
10983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10984if eval "test \"\${$as_ac_Header+set}\" = set"; then
10985  echo $ECHO_N "(cached) $ECHO_C" >&6
10986fi
10987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10988echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10989else
10990  # Is the header compilable?
10991echo "$as_me:$LINENO: checking $ac_header usability" >&5
10992echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10993cat >conftest.$ac_ext <<_ACEOF
10994#line $LINENO "configure"
10995/* confdefs.h.  */
10996_ACEOF
10997cat confdefs.h >>conftest.$ac_ext
10998cat >>conftest.$ac_ext <<_ACEOF
10999/* end confdefs.h.  */
11000$ac_includes_default
11001#include <$ac_header>
11002_ACEOF
11003rm -f conftest.$ac_objext
11004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11005  (eval $ac_compile) 2>&5
11006  ac_status=$?
11007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008  (exit $ac_status); } &&
11009         { ac_try='test -s conftest.$ac_objext'
11010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11011  (eval $ac_try) 2>&5
11012  ac_status=$?
11013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014  (exit $ac_status); }; }; then
11015  ac_header_compiler=yes
11016else
11017  echo "$as_me: failed program was:" >&5
11018sed 's/^/| /' conftest.$ac_ext >&5
11019
11020ac_header_compiler=no
11021fi
11022rm -f conftest.$ac_objext conftest.$ac_ext
11023echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11024echo "${ECHO_T}$ac_header_compiler" >&6
11025
11026# Is the header present?
11027echo "$as_me:$LINENO: checking $ac_header presence" >&5
11028echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11029cat >conftest.$ac_ext <<_ACEOF
11030#line $LINENO "configure"
11031/* confdefs.h.  */
11032_ACEOF
11033cat confdefs.h >>conftest.$ac_ext
11034cat >>conftest.$ac_ext <<_ACEOF
11035/* end confdefs.h.  */
11036#include <$ac_header>
11037_ACEOF
11038if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11039  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11040  ac_status=$?
11041  grep -v '^ *+' conftest.er1 >conftest.err
11042  rm -f conftest.er1
11043  cat conftest.err >&5
11044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045  (exit $ac_status); } >/dev/null; then
11046  if test -s conftest.err; then
11047    ac_cpp_err=$ac_c_preproc_warn_flag
11048  else
11049    ac_cpp_err=
11050  fi
11051else
11052  ac_cpp_err=yes
11053fi
11054if test -z "$ac_cpp_err"; then
11055  ac_header_preproc=yes
11056else
11057  echo "$as_me: failed program was:" >&5
11058sed 's/^/| /' conftest.$ac_ext >&5
11059
11060  ac_header_preproc=no
11061fi
11062rm -f conftest.err conftest.$ac_ext
11063echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11064echo "${ECHO_T}$ac_header_preproc" >&6
11065
11066# So?  What about this header?
11067case $ac_header_compiler:$ac_header_preproc in
11068  yes:no )
11069    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11070echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11071    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11072echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11073    (
11074      cat <<\_ASBOX
11075## ------------------------------------ ##
11076## Report this to bug-autoconf@gnu.org. ##
11077## ------------------------------------ ##
11078_ASBOX
11079    ) |
11080      sed "s/^/$as_me: WARNING:     /" >&2
11081    ;;
11082  no:yes )
11083    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11084echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11085    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11086echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11087    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11088echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11089    (
11090      cat <<\_ASBOX
11091## ------------------------------------ ##
11092## Report this to bug-autoconf@gnu.org. ##
11093## ------------------------------------ ##
11094_ASBOX
11095    ) |
11096      sed "s/^/$as_me: WARNING:     /" >&2
11097    ;;
11098esac
11099echo "$as_me:$LINENO: checking for $ac_header" >&5
11100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11101if eval "test \"\${$as_ac_Header+set}\" = set"; then
11102  echo $ECHO_N "(cached) $ECHO_C" >&6
11103else
11104  eval "$as_ac_Header=$ac_header_preproc"
11105fi
11106echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11107echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11108
11109fi
11110if test `eval echo '${'$as_ac_Header'}'` = yes; then
11111  cat >>confdefs.h <<_ACEOF
11112#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11113_ACEOF
11114
11115fi
11116
11117done
11118
11119echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11120echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11121if test "${ac_cv_header_time+set}" = set; then
11122  echo $ECHO_N "(cached) $ECHO_C" >&6
11123else
11124  cat >conftest.$ac_ext <<_ACEOF
11125#line $LINENO "configure"
11126/* confdefs.h.  */
11127_ACEOF
11128cat confdefs.h >>conftest.$ac_ext
11129cat >>conftest.$ac_ext <<_ACEOF
11130/* end confdefs.h.  */
11131#include <sys/types.h>
11132#include <sys/time.h>
11133#include <time.h>
11134
11135int
11136main ()
11137{
11138if ((struct tm *) 0)
11139return 0;
11140  ;
11141  return 0;
11142}
11143_ACEOF
11144rm -f conftest.$ac_objext
11145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11146  (eval $ac_compile) 2>&5
11147  ac_status=$?
11148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149  (exit $ac_status); } &&
11150         { ac_try='test -s conftest.$ac_objext'
11151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11152  (eval $ac_try) 2>&5
11153  ac_status=$?
11154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155  (exit $ac_status); }; }; then
11156  ac_cv_header_time=yes
11157else
11158  echo "$as_me: failed program was:" >&5
11159sed 's/^/| /' conftest.$ac_ext >&5
11160
11161ac_cv_header_time=no
11162fi
11163rm -f conftest.$ac_objext conftest.$ac_ext
11164fi
11165echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11166echo "${ECHO_T}$ac_cv_header_time" >&6
11167if test $ac_cv_header_time = yes; then
11168
11169cat >>confdefs.h <<\_ACEOF
11170#define TIME_WITH_SYS_TIME 1
11171_ACEOF
11172
11173fi
11174
11175case "$host" in
11176*-convex-*)
11177
11178
11179for ac_header in /sys/sync/queue.h /sys/sync/sema.h
11180do
11181as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11182if eval "test \"\${$as_ac_Header+set}\" = set"; then
11183  echo "$as_me:$LINENO: checking for $ac_header" >&5
11184echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11185if eval "test \"\${$as_ac_Header+set}\" = set"; then
11186  echo $ECHO_N "(cached) $ECHO_C" >&6
11187fi
11188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11189echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11190else
11191  # Is the header compilable?
11192echo "$as_me:$LINENO: checking $ac_header usability" >&5
11193echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11194cat >conftest.$ac_ext <<_ACEOF
11195#line $LINENO "configure"
11196/* confdefs.h.  */
11197_ACEOF
11198cat confdefs.h >>conftest.$ac_ext
11199cat >>conftest.$ac_ext <<_ACEOF
11200/* end confdefs.h.  */
11201$ac_includes_default
11202#include <$ac_header>
11203_ACEOF
11204rm -f conftest.$ac_objext
11205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11206  (eval $ac_compile) 2>&5
11207  ac_status=$?
11208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209  (exit $ac_status); } &&
11210         { ac_try='test -s conftest.$ac_objext'
11211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212  (eval $ac_try) 2>&5
11213  ac_status=$?
11214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215  (exit $ac_status); }; }; then
11216  ac_header_compiler=yes
11217else
11218  echo "$as_me: failed program was:" >&5
11219sed 's/^/| /' conftest.$ac_ext >&5
11220
11221ac_header_compiler=no
11222fi
11223rm -f conftest.$ac_objext conftest.$ac_ext
11224echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11225echo "${ECHO_T}$ac_header_compiler" >&6
11226
11227# Is the header present?
11228echo "$as_me:$LINENO: checking $ac_header presence" >&5
11229echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11230cat >conftest.$ac_ext <<_ACEOF
11231#line $LINENO "configure"
11232/* confdefs.h.  */
11233_ACEOF
11234cat confdefs.h >>conftest.$ac_ext
11235cat >>conftest.$ac_ext <<_ACEOF
11236/* end confdefs.h.  */
11237#include <$ac_header>
11238_ACEOF
11239if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11240  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11241  ac_status=$?
11242  grep -v '^ *+' conftest.er1 >conftest.err
11243  rm -f conftest.er1
11244  cat conftest.err >&5
11245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246  (exit $ac_status); } >/dev/null; then
11247  if test -s conftest.err; then
11248    ac_cpp_err=$ac_c_preproc_warn_flag
11249  else
11250    ac_cpp_err=
11251  fi
11252else
11253  ac_cpp_err=yes
11254fi
11255if test -z "$ac_cpp_err"; then
11256  ac_header_preproc=yes
11257else
11258  echo "$as_me: failed program was:" >&5
11259sed 's/^/| /' conftest.$ac_ext >&5
11260
11261  ac_header_preproc=no
11262fi
11263rm -f conftest.err conftest.$ac_ext
11264echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11265echo "${ECHO_T}$ac_header_preproc" >&6
11266
11267# So?  What about this header?
11268case $ac_header_compiler:$ac_header_preproc in
11269  yes:no )
11270    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11271echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11272    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11273echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11274    (
11275      cat <<\_ASBOX
11276## ------------------------------------ ##
11277## Report this to bug-autoconf@gnu.org. ##
11278## ------------------------------------ ##
11279_ASBOX
11280    ) |
11281      sed "s/^/$as_me: WARNING:     /" >&2
11282    ;;
11283  no:yes )
11284    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11285echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11286    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11287echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11288    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11289echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11290    (
11291      cat <<\_ASBOX
11292## ------------------------------------ ##
11293## Report this to bug-autoconf@gnu.org. ##
11294## ------------------------------------ ##
11295_ASBOX
11296    ) |
11297      sed "s/^/$as_me: WARNING:     /" >&2
11298    ;;
11299esac
11300echo "$as_me:$LINENO: checking for $ac_header" >&5
11301echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11302if eval "test \"\${$as_ac_Header+set}\" = set"; then
11303  echo $ECHO_N "(cached) $ECHO_C" >&6
11304else
11305  eval "$as_ac_Header=$ac_header_preproc"
11306fi
11307echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11308echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11309
11310fi
11311if test `eval echo '${'$as_ac_Header'}'` = yes; then
11312  cat >>confdefs.h <<_ACEOF
11313#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11314_ACEOF
11315
11316fi
11317
11318done
11319
11320  ;;
11321*-*-bsdi*)
11322
11323
11324
11325for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
11326do
11327as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11328if eval "test \"\${$as_ac_Header+set}\" = set"; then
11329  echo "$as_me:$LINENO: checking for $ac_header" >&5
11330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11331if eval "test \"\${$as_ac_Header+set}\" = set"; then
11332  echo $ECHO_N "(cached) $ECHO_C" >&6
11333fi
11334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11335echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11336else
11337  # Is the header compilable?
11338echo "$as_me:$LINENO: checking $ac_header usability" >&5
11339echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11340cat >conftest.$ac_ext <<_ACEOF
11341#line $LINENO "configure"
11342/* confdefs.h.  */
11343_ACEOF
11344cat confdefs.h >>conftest.$ac_ext
11345cat >>conftest.$ac_ext <<_ACEOF
11346/* end confdefs.h.  */
11347$ac_includes_default
11348#include <$ac_header>
11349_ACEOF
11350rm -f conftest.$ac_objext
11351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11352  (eval $ac_compile) 2>&5
11353  ac_status=$?
11354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355  (exit $ac_status); } &&
11356         { ac_try='test -s conftest.$ac_objext'
11357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11358  (eval $ac_try) 2>&5
11359  ac_status=$?
11360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361  (exit $ac_status); }; }; then
11362  ac_header_compiler=yes
11363else
11364  echo "$as_me: failed program was:" >&5
11365sed 's/^/| /' conftest.$ac_ext >&5
11366
11367ac_header_compiler=no
11368fi
11369rm -f conftest.$ac_objext conftest.$ac_ext
11370echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11371echo "${ECHO_T}$ac_header_compiler" >&6
11372
11373# Is the header present?
11374echo "$as_me:$LINENO: checking $ac_header presence" >&5
11375echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11376cat >conftest.$ac_ext <<_ACEOF
11377#line $LINENO "configure"
11378/* confdefs.h.  */
11379_ACEOF
11380cat confdefs.h >>conftest.$ac_ext
11381cat >>conftest.$ac_ext <<_ACEOF
11382/* end confdefs.h.  */
11383#include <$ac_header>
11384_ACEOF
11385if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11386  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11387  ac_status=$?
11388  grep -v '^ *+' conftest.er1 >conftest.err
11389  rm -f conftest.er1
11390  cat conftest.err >&5
11391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392  (exit $ac_status); } >/dev/null; then
11393  if test -s conftest.err; then
11394    ac_cpp_err=$ac_c_preproc_warn_flag
11395  else
11396    ac_cpp_err=
11397  fi
11398else
11399  ac_cpp_err=yes
11400fi
11401if test -z "$ac_cpp_err"; then
11402  ac_header_preproc=yes
11403else
11404  echo "$as_me: failed program was:" >&5
11405sed 's/^/| /' conftest.$ac_ext >&5
11406
11407  ac_header_preproc=no
11408fi
11409rm -f conftest.err conftest.$ac_ext
11410echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11411echo "${ECHO_T}$ac_header_preproc" >&6
11412
11413# So?  What about this header?
11414case $ac_header_compiler:$ac_header_preproc in
11415  yes:no )
11416    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11417echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11418    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11419echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11420    (
11421      cat <<\_ASBOX
11422## ------------------------------------ ##
11423## Report this to bug-autoconf@gnu.org. ##
11424## ------------------------------------ ##
11425_ASBOX
11426    ) |
11427      sed "s/^/$as_me: WARNING:     /" >&2
11428    ;;
11429  no:yes )
11430    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11431echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11432    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11433echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11434    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11435echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11436    (
11437      cat <<\_ASBOX
11438## ------------------------------------ ##
11439## Report this to bug-autoconf@gnu.org. ##
11440## ------------------------------------ ##
11441_ASBOX
11442    ) |
11443      sed "s/^/$as_me: WARNING:     /" >&2
11444    ;;
11445esac
11446echo "$as_me:$LINENO: checking for $ac_header" >&5
11447echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11448if eval "test \"\${$as_ac_Header+set}\" = set"; then
11449  echo $ECHO_N "(cached) $ECHO_C" >&6
11450else
11451  eval "$as_ac_Header=$ac_header_preproc"
11452fi
11453echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11454echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11455
11456fi
11457if test `eval echo '${'$as_ac_Header'}'` = yes; then
11458  cat >>confdefs.h <<_ACEOF
11459#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11460_ACEOF
11461
11462fi
11463
11464done
11465
11466  ;;
11467esac
11468
11469if test "${ac_cv_header_nlist_h+set}" = set; then
11470  echo "$as_me:$LINENO: checking for nlist.h" >&5
11471echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6
11472if test "${ac_cv_header_nlist_h+set}" = set; then
11473  echo $ECHO_N "(cached) $ECHO_C" >&6
11474fi
11475echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
11476echo "${ECHO_T}$ac_cv_header_nlist_h" >&6
11477else
11478  # Is the header compilable?
11479echo "$as_me:$LINENO: checking nlist.h usability" >&5
11480echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6
11481cat >conftest.$ac_ext <<_ACEOF
11482#line $LINENO "configure"
11483/* confdefs.h.  */
11484_ACEOF
11485cat confdefs.h >>conftest.$ac_ext
11486cat >>conftest.$ac_ext <<_ACEOF
11487/* end confdefs.h.  */
11488$ac_includes_default
11489#include <nlist.h>
11490_ACEOF
11491rm -f conftest.$ac_objext
11492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11493  (eval $ac_compile) 2>&5
11494  ac_status=$?
11495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496  (exit $ac_status); } &&
11497         { ac_try='test -s conftest.$ac_objext'
11498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499  (eval $ac_try) 2>&5
11500  ac_status=$?
11501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502  (exit $ac_status); }; }; then
11503  ac_header_compiler=yes
11504else
11505  echo "$as_me: failed program was:" >&5
11506sed 's/^/| /' conftest.$ac_ext >&5
11507
11508ac_header_compiler=no
11509fi
11510rm -f conftest.$ac_objext conftest.$ac_ext
11511echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11512echo "${ECHO_T}$ac_header_compiler" >&6
11513
11514# Is the header present?
11515echo "$as_me:$LINENO: checking nlist.h presence" >&5
11516echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6
11517cat >conftest.$ac_ext <<_ACEOF
11518#line $LINENO "configure"
11519/* confdefs.h.  */
11520_ACEOF
11521cat confdefs.h >>conftest.$ac_ext
11522cat >>conftest.$ac_ext <<_ACEOF
11523/* end confdefs.h.  */
11524#include <nlist.h>
11525_ACEOF
11526if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11527  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11528  ac_status=$?
11529  grep -v '^ *+' conftest.er1 >conftest.err
11530  rm -f conftest.er1
11531  cat conftest.err >&5
11532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533  (exit $ac_status); } >/dev/null; then
11534  if test -s conftest.err; then
11535    ac_cpp_err=$ac_c_preproc_warn_flag
11536  else
11537    ac_cpp_err=
11538  fi
11539else
11540  ac_cpp_err=yes
11541fi
11542if test -z "$ac_cpp_err"; then
11543  ac_header_preproc=yes
11544else
11545  echo "$as_me: failed program was:" >&5
11546sed 's/^/| /' conftest.$ac_ext >&5
11547
11548  ac_header_preproc=no
11549fi
11550rm -f conftest.err conftest.$ac_ext
11551echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11552echo "${ECHO_T}$ac_header_preproc" >&6
11553
11554# So?  What about this header?
11555case $ac_header_compiler:$ac_header_preproc in
11556  yes:no )
11557    { echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
11558echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11559    { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5
11560echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;}
11561    (
11562      cat <<\_ASBOX
11563## ------------------------------------ ##
11564## Report this to bug-autoconf@gnu.org. ##
11565## ------------------------------------ ##
11566_ASBOX
11567    ) |
11568      sed "s/^/$as_me: WARNING:     /" >&2
11569    ;;
11570  no:yes )
11571    { echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled" >&5
11572echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;}
11573    { echo "$as_me:$LINENO: WARNING: nlist.h: check for missing prerequisite headers?" >&5
11574echo "$as_me: WARNING: nlist.h: check for missing prerequisite headers?" >&2;}
11575    { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5
11576echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;}
11577    (
11578      cat <<\_ASBOX
11579## ------------------------------------ ##
11580## Report this to bug-autoconf@gnu.org. ##
11581## ------------------------------------ ##
11582_ASBOX
11583    ) |
11584      sed "s/^/$as_me: WARNING:     /" >&2
11585    ;;
11586esac
11587echo "$as_me:$LINENO: checking for nlist.h" >&5
11588echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6
11589if test "${ac_cv_header_nlist_h+set}" = set; then
11590  echo $ECHO_N "(cached) $ECHO_C" >&6
11591else
11592  ac_cv_header_nlist_h=$ac_header_preproc
11593fi
11594echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
11595echo "${ECHO_T}$ac_cv_header_nlist_h" >&6
11596
11597fi
11598if test $ac_cv_header_nlist_h = yes; then
11599
11600cat >>confdefs.h <<\_ACEOF
11601#define NLIST_STRUCT 1
11602_ACEOF
11603
11604echo "$as_me:$LINENO: checking for n_un in struct nlist" >&5
11605echo $ECHO_N "checking for n_un in struct nlist... $ECHO_C" >&6
11606if test "${ac_cv_struct_nlist_n_un+set}" = set; then
11607  echo $ECHO_N "(cached) $ECHO_C" >&6
11608else
11609  cat >conftest.$ac_ext <<_ACEOF
11610#line $LINENO "configure"
11611/* confdefs.h.  */
11612_ACEOF
11613cat confdefs.h >>conftest.$ac_ext
11614cat >>conftest.$ac_ext <<_ACEOF
11615/* end confdefs.h.  */
11616#include <nlist.h>
11617int
11618main ()
11619{
11620struct nlist n; n.n_un.n_name = 0;
11621  ;
11622  return 0;
11623}
11624_ACEOF
11625rm -f conftest.$ac_objext
11626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11627  (eval $ac_compile) 2>&5
11628  ac_status=$?
11629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630  (exit $ac_status); } &&
11631         { ac_try='test -s conftest.$ac_objext'
11632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633  (eval $ac_try) 2>&5
11634  ac_status=$?
11635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636  (exit $ac_status); }; }; then
11637  ac_cv_struct_nlist_n_un=yes
11638else
11639  echo "$as_me: failed program was:" >&5
11640sed 's/^/| /' conftest.$ac_ext >&5
11641
11642ac_cv_struct_nlist_n_un=no
11643fi
11644rm -f conftest.$ac_objext conftest.$ac_ext
11645fi
11646echo "$as_me:$LINENO: result: $ac_cv_struct_nlist_n_un" >&5
11647echo "${ECHO_T}$ac_cv_struct_nlist_n_un" >&6
11648if test $ac_cv_struct_nlist_n_un = yes; then
11649
11650cat >>confdefs.h <<\_ACEOF
11651#define NLIST_NAME_UNION 1
11652_ACEOF
11653
11654fi
11655
11656fi
11657
11658
11659
11660
11661for ac_header in resolv.h
11662do
11663as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11664echo "$as_me:$LINENO: checking for $ac_header" >&5
11665echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11666if eval "test \"\${$as_ac_Header+set}\" = set"; then
11667  echo $ECHO_N "(cached) $ECHO_C" >&6
11668else
11669  cat >conftest.$ac_ext <<_ACEOF
11670#line $LINENO "configure"
11671/* confdefs.h.  */
11672_ACEOF
11673cat confdefs.h >>conftest.$ac_ext
11674cat >>conftest.$ac_ext <<_ACEOF
11675/* end confdefs.h.  */
11676#if HAVE_SYS_TYPES_H
11677#include <sys/types.h>
11678#endif
11679#if HAVE_NETINET_IN_H
11680#include <netinet/in.h>
11681#endif
11682#if HAVE_ARPA_NAMESER_H
11683#include <arpa/nameser.h>
11684#endif
11685
11686
11687#include <$ac_header>
11688_ACEOF
11689rm -f conftest.$ac_objext
11690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11691  (eval $ac_compile) 2>&5
11692  ac_status=$?
11693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694  (exit $ac_status); } &&
11695         { ac_try='test -s conftest.$ac_objext'
11696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697  (eval $ac_try) 2>&5
11698  ac_status=$?
11699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700  (exit $ac_status); }; }; then
11701  eval "$as_ac_Header=yes"
11702else
11703  echo "$as_me: failed program was:" >&5
11704sed 's/^/| /' conftest.$ac_ext >&5
11705
11706eval "$as_ac_Header=no"
11707fi
11708rm -f conftest.$ac_objext conftest.$ac_ext
11709fi
11710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11711echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11712if test `eval echo '${'$as_ac_Header'}'` = yes; then
11713  cat >>confdefs.h <<_ACEOF
11714#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11715_ACEOF
11716
11717fi
11718
11719done
11720
11721
11722echo "$as_me:$LINENO: checking for basic volatile support" >&5
11723echo $ECHO_N "checking for basic volatile support... $ECHO_C" >&6
11724if test "${ac_cv_c_volatile+set}" = set; then
11725  echo $ECHO_N "(cached) $ECHO_C" >&6
11726else
11727  cat >conftest.$ac_ext <<_ACEOF
11728#line $LINENO "configure"
11729/* confdefs.h.  */
11730_ACEOF
11731cat confdefs.h >>conftest.$ac_ext
11732cat >>conftest.$ac_ext <<_ACEOF
11733/* end confdefs.h.  */
11734
11735int
11736main ()
11737{
11738
11739volatile int x;
11740  ;
11741  return 0;
11742}
11743_ACEOF
11744rm -f conftest.$ac_objext
11745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11746  (eval $ac_compile) 2>&5
11747  ac_status=$?
11748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749  (exit $ac_status); } &&
11750         { ac_try='test -s conftest.$ac_objext'
11751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11752  (eval $ac_try) 2>&5
11753  ac_status=$?
11754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755  (exit $ac_status); }; }; then
11756  ac_cv_c_volatile=yes
11757else
11758  echo "$as_me: failed program was:" >&5
11759sed 's/^/| /' conftest.$ac_ext >&5
11760
11761ac_cv_c_volatile=no
11762fi
11763rm -f conftest.$ac_objext conftest.$ac_ext
11764
11765fi
11766echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11767echo "${ECHO_T}$ac_cv_c_volatile" >&6
11768case "$ac_cv_c_volatile" in
11769 yes)
11770    ;;
11771 *)
11772cat >>confdefs.h <<\_ACEOF
11773#define volatile
11774_ACEOF
11775
11776    ;;
11777esac
11778
11779case "$host" in
11780 sparc-*-solaris2*)
11781    # Assume that solaris2 is Ansi C...
11782    ;;
11783 *)
11784
11785
11786
11787echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
11788echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
11789if test "${am_cv_prog_cc_stdc+set}" = set; then
11790  echo $ECHO_N "(cached) $ECHO_C" >&6
11791else
11792  am_cv_prog_cc_stdc=no
11793ac_save_CC="$CC"
11794# Don't try gcc -ansi; that turns off useful extensions and
11795# breaks some systems' header files.
11796# AIX			-qlanglvl=ansi
11797# Ultrix and OSF/1	-std1
11798# HP-UX 10.20 and later	-Ae
11799# HP-UX older versions	-Aa -D_HPUX_SOURCE
11800# SVR4			-Xc -D__EXTENSIONS__
11801for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11802do
11803  CC="$ac_save_CC $ac_arg"
11804  cat >conftest.$ac_ext <<_ACEOF
11805#line $LINENO "configure"
11806/* confdefs.h.  */
11807_ACEOF
11808cat confdefs.h >>conftest.$ac_ext
11809cat >>conftest.$ac_ext <<_ACEOF
11810/* end confdefs.h.  */
11811#include <stdarg.h>
11812#include <stdio.h>
11813#include <sys/types.h>
11814#include <sys/stat.h>
11815/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11816struct buf { int x; };
11817FILE * (*rcsopen) (struct buf *, struct stat *, int);
11818static char *e (p, i)
11819     char **p;
11820     int i;
11821{
11822  return p[i];
11823}
11824static char *f (char * (*g) (char **, int), char **p, ...)
11825{
11826  char *s;
11827  va_list v;
11828  va_start (v,p);
11829  s = g (p, va_arg (v,int));
11830  va_end (v);
11831  return s;
11832}
11833int test (int i, double x);
11834struct s1 {int (*f) (int a);};
11835struct s2 {int (*f) (double a);};
11836int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11837int argc;
11838char **argv;
11839
11840int
11841main ()
11842{
11843
11844return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11845
11846  ;
11847  return 0;
11848}
11849_ACEOF
11850rm -f conftest.$ac_objext
11851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11852  (eval $ac_compile) 2>&5
11853  ac_status=$?
11854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855  (exit $ac_status); } &&
11856         { ac_try='test -s conftest.$ac_objext'
11857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858  (eval $ac_try) 2>&5
11859  ac_status=$?
11860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861  (exit $ac_status); }; }; then
11862  am_cv_prog_cc_stdc="$ac_arg"; break
11863else
11864  echo "$as_me: failed program was:" >&5
11865sed 's/^/| /' conftest.$ac_ext >&5
11866
11867fi
11868rm -f conftest.$ac_objext conftest.$ac_ext
11869done
11870CC="$ac_save_CC"
11871
11872fi
11873
11874if test -z "$am_cv_prog_cc_stdc"; then
11875  echo "$as_me:$LINENO: result: none needed" >&5
11876echo "${ECHO_T}none needed" >&6
11877else
11878  echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
11879echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
11880fi
11881case "x$am_cv_prog_cc_stdc" in
11882  x|xno) ;;
11883  *) CC="$CC $am_cv_prog_cc_stdc" ;;
11884esac
11885
11886
11887
11888echo "$as_me:$LINENO: checking for function prototypes" >&5
11889echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
11890if test "$am_cv_prog_cc_stdc" != no; then
11891  echo "$as_me:$LINENO: result: yes" >&5
11892echo "${ECHO_T}yes" >&6
11893
11894cat >>confdefs.h <<\_ACEOF
11895#define PROTOTYPES 1
11896_ACEOF
11897
11898  U= ANSI2KNR=
11899else
11900  echo "$as_me:$LINENO: result: no" >&5
11901echo "${ECHO_T}no" >&6
11902  U=_ ANSI2KNR=./ansi2knr
11903fi
11904# Ensure some checks needed by ansi2knr itself.
11905echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11906echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11907if test "${ac_cv_header_stdc+set}" = set; then
11908  echo $ECHO_N "(cached) $ECHO_C" >&6
11909else
11910  cat >conftest.$ac_ext <<_ACEOF
11911#line $LINENO "configure"
11912/* confdefs.h.  */
11913_ACEOF
11914cat confdefs.h >>conftest.$ac_ext
11915cat >>conftest.$ac_ext <<_ACEOF
11916/* end confdefs.h.  */
11917#include <stdlib.h>
11918#include <stdarg.h>
11919#include <string.h>
11920#include <float.h>
11921
11922int
11923main ()
11924{
11925
11926  ;
11927  return 0;
11928}
11929_ACEOF
11930rm -f conftest.$ac_objext
11931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11932  (eval $ac_compile) 2>&5
11933  ac_status=$?
11934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935  (exit $ac_status); } &&
11936         { ac_try='test -s conftest.$ac_objext'
11937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938  (eval $ac_try) 2>&5
11939  ac_status=$?
11940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941  (exit $ac_status); }; }; then
11942  ac_cv_header_stdc=yes
11943else
11944  echo "$as_me: failed program was:" >&5
11945sed 's/^/| /' conftest.$ac_ext >&5
11946
11947ac_cv_header_stdc=no
11948fi
11949rm -f conftest.$ac_objext conftest.$ac_ext
11950
11951if test $ac_cv_header_stdc = yes; then
11952  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11953  cat >conftest.$ac_ext <<_ACEOF
11954#line $LINENO "configure"
11955/* confdefs.h.  */
11956_ACEOF
11957cat confdefs.h >>conftest.$ac_ext
11958cat >>conftest.$ac_ext <<_ACEOF
11959/* end confdefs.h.  */
11960#include <string.h>
11961
11962_ACEOF
11963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11964  $EGREP "memchr" >/dev/null 2>&1; then
11965  :
11966else
11967  ac_cv_header_stdc=no
11968fi
11969rm -f conftest*
11970
11971fi
11972
11973if test $ac_cv_header_stdc = yes; then
11974  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11975  cat >conftest.$ac_ext <<_ACEOF
11976#line $LINENO "configure"
11977/* confdefs.h.  */
11978_ACEOF
11979cat confdefs.h >>conftest.$ac_ext
11980cat >>conftest.$ac_ext <<_ACEOF
11981/* end confdefs.h.  */
11982#include <stdlib.h>
11983
11984_ACEOF
11985if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11986  $EGREP "free" >/dev/null 2>&1; then
11987  :
11988else
11989  ac_cv_header_stdc=no
11990fi
11991rm -f conftest*
11992
11993fi
11994
11995if test $ac_cv_header_stdc = yes; then
11996  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11997  if test "$cross_compiling" = yes; then
11998  :
11999else
12000  cat >conftest.$ac_ext <<_ACEOF
12001#line $LINENO "configure"
12002/* confdefs.h.  */
12003_ACEOF
12004cat confdefs.h >>conftest.$ac_ext
12005cat >>conftest.$ac_ext <<_ACEOF
12006/* end confdefs.h.  */
12007#include <ctype.h>
12008#if ((' ' & 0x0FF) == 0x020)
12009# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12010# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12011#else
12012# define ISLOWER(c) \
12013                   (('a' <= (c) && (c) <= 'i') \
12014                     || ('j' <= (c) && (c) <= 'r') \
12015                     || ('s' <= (c) && (c) <= 'z'))
12016# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12017#endif
12018
12019#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12020int
12021main ()
12022{
12023  int i;
12024  for (i = 0; i < 256; i++)
12025    if (XOR (islower (i), ISLOWER (i))
12026        || toupper (i) != TOUPPER (i))
12027      exit(2);
12028  exit (0);
12029}
12030_ACEOF
12031rm -f conftest$ac_exeext
12032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12033  (eval $ac_link) 2>&5
12034  ac_status=$?
12035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038  (eval $ac_try) 2>&5
12039  ac_status=$?
12040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041  (exit $ac_status); }; }; then
12042  :
12043else
12044  echo "$as_me: program exited with status $ac_status" >&5
12045echo "$as_me: failed program was:" >&5
12046sed 's/^/| /' conftest.$ac_ext >&5
12047
12048( exit $ac_status )
12049ac_cv_header_stdc=no
12050fi
12051rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12052fi
12053fi
12054fi
12055echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12056echo "${ECHO_T}$ac_cv_header_stdc" >&6
12057if test $ac_cv_header_stdc = yes; then
12058
12059cat >>confdefs.h <<\_ACEOF
12060#define STDC_HEADERS 1
12061_ACEOF
12062
12063fi
12064
12065
12066for ac_header in string.h
12067do
12068as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12069if eval "test \"\${$as_ac_Header+set}\" = set"; then
12070  echo "$as_me:$LINENO: checking for $ac_header" >&5
12071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12072if eval "test \"\${$as_ac_Header+set}\" = set"; then
12073  echo $ECHO_N "(cached) $ECHO_C" >&6
12074fi
12075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12076echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12077else
12078  # Is the header compilable?
12079echo "$as_me:$LINENO: checking $ac_header usability" >&5
12080echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12081cat >conftest.$ac_ext <<_ACEOF
12082#line $LINENO "configure"
12083/* confdefs.h.  */
12084_ACEOF
12085cat confdefs.h >>conftest.$ac_ext
12086cat >>conftest.$ac_ext <<_ACEOF
12087/* end confdefs.h.  */
12088$ac_includes_default
12089#include <$ac_header>
12090_ACEOF
12091rm -f conftest.$ac_objext
12092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12093  (eval $ac_compile) 2>&5
12094  ac_status=$?
12095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096  (exit $ac_status); } &&
12097         { ac_try='test -s conftest.$ac_objext'
12098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099  (eval $ac_try) 2>&5
12100  ac_status=$?
12101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102  (exit $ac_status); }; }; then
12103  ac_header_compiler=yes
12104else
12105  echo "$as_me: failed program was:" >&5
12106sed 's/^/| /' conftest.$ac_ext >&5
12107
12108ac_header_compiler=no
12109fi
12110rm -f conftest.$ac_objext conftest.$ac_ext
12111echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12112echo "${ECHO_T}$ac_header_compiler" >&6
12113
12114# Is the header present?
12115echo "$as_me:$LINENO: checking $ac_header presence" >&5
12116echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12117cat >conftest.$ac_ext <<_ACEOF
12118#line $LINENO "configure"
12119/* confdefs.h.  */
12120_ACEOF
12121cat confdefs.h >>conftest.$ac_ext
12122cat >>conftest.$ac_ext <<_ACEOF
12123/* end confdefs.h.  */
12124#include <$ac_header>
12125_ACEOF
12126if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12127  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12128  ac_status=$?
12129  grep -v '^ *+' conftest.er1 >conftest.err
12130  rm -f conftest.er1
12131  cat conftest.err >&5
12132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133  (exit $ac_status); } >/dev/null; then
12134  if test -s conftest.err; then
12135    ac_cpp_err=$ac_c_preproc_warn_flag
12136  else
12137    ac_cpp_err=
12138  fi
12139else
12140  ac_cpp_err=yes
12141fi
12142if test -z "$ac_cpp_err"; then
12143  ac_header_preproc=yes
12144else
12145  echo "$as_me: failed program was:" >&5
12146sed 's/^/| /' conftest.$ac_ext >&5
12147
12148  ac_header_preproc=no
12149fi
12150rm -f conftest.err conftest.$ac_ext
12151echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12152echo "${ECHO_T}$ac_header_preproc" >&6
12153
12154# So?  What about this header?
12155case $ac_header_compiler:$ac_header_preproc in
12156  yes:no )
12157    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12158echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12159    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12160echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12161    (
12162      cat <<\_ASBOX
12163## ------------------------------------ ##
12164## Report this to bug-autoconf@gnu.org. ##
12165## ------------------------------------ ##
12166_ASBOX
12167    ) |
12168      sed "s/^/$as_me: WARNING:     /" >&2
12169    ;;
12170  no:yes )
12171    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12172echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12173    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12174echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12175    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12176echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12177    (
12178      cat <<\_ASBOX
12179## ------------------------------------ ##
12180## Report this to bug-autoconf@gnu.org. ##
12181## ------------------------------------ ##
12182_ASBOX
12183    ) |
12184      sed "s/^/$as_me: WARNING:     /" >&2
12185    ;;
12186esac
12187echo "$as_me:$LINENO: checking for $ac_header" >&5
12188echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12189if eval "test \"\${$as_ac_Header+set}\" = set"; then
12190  echo $ECHO_N "(cached) $ECHO_C" >&6
12191else
12192  eval "$as_ac_Header=$ac_header_preproc"
12193fi
12194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12195echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12196
12197fi
12198if test `eval echo '${'$as_ac_Header'}'` = yes; then
12199  cat >>confdefs.h <<_ACEOF
12200#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12201_ACEOF
12202
12203fi
12204
12205done
12206
12207
12208    ;;
12209esac
12210echo "$as_me:$LINENO: checking if C compiler permits function prototypes" >&5
12211echo $ECHO_N "checking if C compiler permits function prototypes... $ECHO_C" >&6
12212if test "${ac_cv_have_prototypes+set}" = set; then
12213  echo $ECHO_N "(cached) $ECHO_C" >&6
12214else
12215  cat >conftest.$ac_ext <<_ACEOF
12216#line $LINENO "configure"
12217/* confdefs.h.  */
12218_ACEOF
12219cat confdefs.h >>conftest.$ac_ext
12220cat >>conftest.$ac_ext <<_ACEOF
12221/* end confdefs.h.  */
12222
12223extern int foo (short);
12224int foo(short i) { return i; }
12225int
12226main ()
12227{
12228
12229int i;
12230  ;
12231  return 0;
12232}
12233_ACEOF
12234rm -f conftest.$ac_objext
12235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12236  (eval $ac_compile) 2>&5
12237  ac_status=$?
12238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239  (exit $ac_status); } &&
12240         { ac_try='test -s conftest.$ac_objext'
12241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12242  (eval $ac_try) 2>&5
12243  ac_status=$?
12244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245  (exit $ac_status); }; }; then
12246  ac_cv_have_prototypes=yes
12247else
12248  echo "$as_me: failed program was:" >&5
12249sed 's/^/| /' conftest.$ac_ext >&5
12250
12251ac_cv_have_prototypes=no
12252fi
12253rm -f conftest.$ac_objext conftest.$ac_ext
12254
12255fi
12256echo "$as_me:$LINENO: result: $ac_cv_have_prototypes" >&5
12257echo "${ECHO_T}$ac_cv_have_prototypes" >&6
12258if test "$ac_cv_have_prototypes" = yes; then
12259
12260cat >>confdefs.h <<\_ACEOF
12261#define HAVE_PROTOTYPES 1
12262_ACEOF
12263
12264fi
12265
12266echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12267echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12268if test "${ac_cv_c_const+set}" = set; then
12269  echo $ECHO_N "(cached) $ECHO_C" >&6
12270else
12271  cat >conftest.$ac_ext <<_ACEOF
12272#line $LINENO "configure"
12273/* confdefs.h.  */
12274_ACEOF
12275cat confdefs.h >>conftest.$ac_ext
12276cat >>conftest.$ac_ext <<_ACEOF
12277/* end confdefs.h.  */
12278
12279int
12280main ()
12281{
12282/* FIXME: Include the comments suggested by Paul. */
12283#ifndef __cplusplus
12284  /* Ultrix mips cc rejects this.  */
12285  typedef int charset[2];
12286  const charset x;
12287  /* SunOS 4.1.1 cc rejects this.  */
12288  char const *const *ccp;
12289  char **p;
12290  /* NEC SVR4.0.2 mips cc rejects this.  */
12291  struct point {int x, y;};
12292  static struct point const zero = {0,0};
12293  /* AIX XL C 1.02.0.0 rejects this.
12294     It does not let you subtract one const X* pointer from another in
12295     an arm of an if-expression whose if-part is not a constant
12296     expression */
12297  const char *g = "string";
12298  ccp = &g + (g ? g-g : 0);
12299  /* HPUX 7.0 cc rejects these. */
12300  ++ccp;
12301  p = (char**) ccp;
12302  ccp = (char const *const *) p;
12303  { /* SCO 3.2v4 cc rejects this.  */
12304    char *t;
12305    char const *s = 0 ? (char *) 0 : (char const *) 0;
12306
12307    *t++ = 0;
12308  }
12309  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12310    int x[] = {25, 17};
12311    const int *foo = &x[0];
12312    ++foo;
12313  }
12314  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12315    typedef const int *iptr;
12316    iptr p = 0;
12317    ++p;
12318  }
12319  { /* AIX XL C 1.02.0.0 rejects this saying
12320       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12321    struct s { int j; const int *ap[3]; };
12322    struct s *b; b->j = 5;
12323  }
12324  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12325    const int foo = 10;
12326  }
12327#endif
12328
12329  ;
12330  return 0;
12331}
12332_ACEOF
12333rm -f conftest.$ac_objext
12334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12335  (eval $ac_compile) 2>&5
12336  ac_status=$?
12337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338  (exit $ac_status); } &&
12339         { ac_try='test -s conftest.$ac_objext'
12340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341  (eval $ac_try) 2>&5
12342  ac_status=$?
12343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344  (exit $ac_status); }; }; then
12345  ac_cv_c_const=yes
12346else
12347  echo "$as_me: failed program was:" >&5
12348sed 's/^/| /' conftest.$ac_ext >&5
12349
12350ac_cv_c_const=no
12351fi
12352rm -f conftest.$ac_objext conftest.$ac_ext
12353fi
12354echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12355echo "${ECHO_T}$ac_cv_c_const" >&6
12356if test $ac_cv_c_const = no; then
12357
12358cat >>confdefs.h <<\_ACEOF
12359#define const
12360_ACEOF
12361
12362fi
12363
12364echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12365echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
12366if test "${ac_cv_c_bigendian+set}" = set; then
12367  echo $ECHO_N "(cached) $ECHO_C" >&6
12368else
12369  # See if sys/param.h defines the BYTE_ORDER macro.
12370cat >conftest.$ac_ext <<_ACEOF
12371#line $LINENO "configure"
12372/* confdefs.h.  */
12373_ACEOF
12374cat confdefs.h >>conftest.$ac_ext
12375cat >>conftest.$ac_ext <<_ACEOF
12376/* end confdefs.h.  */
12377#include <sys/types.h>
12378#include <sys/param.h>
12379
12380int
12381main ()
12382{
12383#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12384 bogus endian macros
12385#endif
12386
12387  ;
12388  return 0;
12389}
12390_ACEOF
12391rm -f conftest.$ac_objext
12392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12393  (eval $ac_compile) 2>&5
12394  ac_status=$?
12395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396  (exit $ac_status); } &&
12397         { ac_try='test -s conftest.$ac_objext'
12398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399  (eval $ac_try) 2>&5
12400  ac_status=$?
12401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402  (exit $ac_status); }; }; then
12403  # It does; now see whether it defined to BIG_ENDIAN or not.
12404cat >conftest.$ac_ext <<_ACEOF
12405#line $LINENO "configure"
12406/* confdefs.h.  */
12407_ACEOF
12408cat confdefs.h >>conftest.$ac_ext
12409cat >>conftest.$ac_ext <<_ACEOF
12410/* end confdefs.h.  */
12411#include <sys/types.h>
12412#include <sys/param.h>
12413
12414int
12415main ()
12416{
12417#if BYTE_ORDER != BIG_ENDIAN
12418 not big endian
12419#endif
12420
12421  ;
12422  return 0;
12423}
12424_ACEOF
12425rm -f conftest.$ac_objext
12426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12427  (eval $ac_compile) 2>&5
12428  ac_status=$?
12429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430  (exit $ac_status); } &&
12431         { ac_try='test -s conftest.$ac_objext'
12432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433  (eval $ac_try) 2>&5
12434  ac_status=$?
12435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436  (exit $ac_status); }; }; then
12437  ac_cv_c_bigendian=yes
12438else
12439  echo "$as_me: failed program was:" >&5
12440sed 's/^/| /' conftest.$ac_ext >&5
12441
12442ac_cv_c_bigendian=no
12443fi
12444rm -f conftest.$ac_objext conftest.$ac_ext
12445else
12446  echo "$as_me: failed program was:" >&5
12447sed 's/^/| /' conftest.$ac_ext >&5
12448
12449# It does not; compile a test program.
12450if test "$cross_compiling" = yes; then
12451  # try to guess the endianness by grepping values into an object file
12452  ac_cv_c_bigendian=unknown
12453  cat >conftest.$ac_ext <<_ACEOF
12454#line $LINENO "configure"
12455/* confdefs.h.  */
12456_ACEOF
12457cat confdefs.h >>conftest.$ac_ext
12458cat >>conftest.$ac_ext <<_ACEOF
12459/* end confdefs.h.  */
12460short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12461short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12462void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12463short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12464short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12465void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12466int
12467main ()
12468{
12469 _ascii (); _ebcdic ();
12470  ;
12471  return 0;
12472}
12473_ACEOF
12474rm -f conftest.$ac_objext
12475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12476  (eval $ac_compile) 2>&5
12477  ac_status=$?
12478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479  (exit $ac_status); } &&
12480         { ac_try='test -s conftest.$ac_objext'
12481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482  (eval $ac_try) 2>&5
12483  ac_status=$?
12484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485  (exit $ac_status); }; }; then
12486  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
12487  ac_cv_c_bigendian=yes
12488fi
12489if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12490  if test "$ac_cv_c_bigendian" = unknown; then
12491    ac_cv_c_bigendian=no
12492  else
12493    # finding both strings is unlikely to happen, but who knows?
12494    ac_cv_c_bigendian=unknown
12495  fi
12496fi
12497else
12498  echo "$as_me: failed program was:" >&5
12499sed 's/^/| /' conftest.$ac_ext >&5
12500
12501fi
12502rm -f conftest.$ac_objext conftest.$ac_ext
12503else
12504  cat >conftest.$ac_ext <<_ACEOF
12505#line $LINENO "configure"
12506/* confdefs.h.  */
12507_ACEOF
12508cat confdefs.h >>conftest.$ac_ext
12509cat >>conftest.$ac_ext <<_ACEOF
12510/* end confdefs.h.  */
12511int
12512main ()
12513{
12514  /* Are we little or big endian?  From Harbison&Steele.  */
12515  union
12516  {
12517    long l;
12518    char c[sizeof (long)];
12519  } u;
12520  u.l = 1;
12521  exit (u.c[sizeof (long) - 1] == 1);
12522}
12523_ACEOF
12524rm -f conftest$ac_exeext
12525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12526  (eval $ac_link) 2>&5
12527  ac_status=$?
12528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531  (eval $ac_try) 2>&5
12532  ac_status=$?
12533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534  (exit $ac_status); }; }; then
12535  ac_cv_c_bigendian=no
12536else
12537  echo "$as_me: program exited with status $ac_status" >&5
12538echo "$as_me: failed program was:" >&5
12539sed 's/^/| /' conftest.$ac_ext >&5
12540
12541( exit $ac_status )
12542ac_cv_c_bigendian=yes
12543fi
12544rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12545fi
12546fi
12547rm -f conftest.$ac_objext conftest.$ac_ext
12548fi
12549echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12550echo "${ECHO_T}$ac_cv_c_bigendian" >&6
12551case $ac_cv_c_bigendian in
12552  yes)
12553
12554cat >>confdefs.h <<\_ACEOF
12555#define WORDS_BIGENDIAN 1
12556_ACEOF
12557 ;;
12558  no)
12559     ;;
12560  *)
12561    { { echo "$as_me:$LINENO: error: unknown endianness
12562presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12563echo "$as_me: error: unknown endianness
12564presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12565   { (exit 1); exit 1; }; } ;;
12566esac
12567
12568echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12569echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12570if test "${ac_cv_type_signal+set}" = set; then
12571  echo $ECHO_N "(cached) $ECHO_C" >&6
12572else
12573  cat >conftest.$ac_ext <<_ACEOF
12574#line $LINENO "configure"
12575/* confdefs.h.  */
12576_ACEOF
12577cat confdefs.h >>conftest.$ac_ext
12578cat >>conftest.$ac_ext <<_ACEOF
12579/* end confdefs.h.  */
12580#include <sys/types.h>
12581#include <signal.h>
12582#ifdef signal
12583# undef signal
12584#endif
12585#ifdef __cplusplus
12586extern "C" void (*signal (int, void (*)(int)))(int);
12587#else
12588void (*signal ()) ();
12589#endif
12590
12591int
12592main ()
12593{
12594int i;
12595  ;
12596  return 0;
12597}
12598_ACEOF
12599rm -f conftest.$ac_objext
12600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12601  (eval $ac_compile) 2>&5
12602  ac_status=$?
12603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604  (exit $ac_status); } &&
12605         { ac_try='test -s conftest.$ac_objext'
12606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12607  (eval $ac_try) 2>&5
12608  ac_status=$?
12609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610  (exit $ac_status); }; }; then
12611  ac_cv_type_signal=void
12612else
12613  echo "$as_me: failed program was:" >&5
12614sed 's/^/| /' conftest.$ac_ext >&5
12615
12616ac_cv_type_signal=int
12617fi
12618rm -f conftest.$ac_objext conftest.$ac_ext
12619fi
12620echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12621echo "${ECHO_T}$ac_cv_type_signal" >&6
12622
12623cat >>confdefs.h <<_ACEOF
12624#define RETSIGTYPE $ac_cv_type_signal
12625_ACEOF
12626
12627
12628echo "$as_me:$LINENO: checking for off_t" >&5
12629echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12630if test "${ac_cv_type_off_t+set}" = set; then
12631  echo $ECHO_N "(cached) $ECHO_C" >&6
12632else
12633  cat >conftest.$ac_ext <<_ACEOF
12634#line $LINENO "configure"
12635/* confdefs.h.  */
12636_ACEOF
12637cat confdefs.h >>conftest.$ac_ext
12638cat >>conftest.$ac_ext <<_ACEOF
12639/* end confdefs.h.  */
12640$ac_includes_default
12641int
12642main ()
12643{
12644if ((off_t *) 0)
12645  return 0;
12646if (sizeof (off_t))
12647  return 0;
12648  ;
12649  return 0;
12650}
12651_ACEOF
12652rm -f conftest.$ac_objext
12653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12654  (eval $ac_compile) 2>&5
12655  ac_status=$?
12656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657  (exit $ac_status); } &&
12658         { ac_try='test -s conftest.$ac_objext'
12659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660  (eval $ac_try) 2>&5
12661  ac_status=$?
12662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663  (exit $ac_status); }; }; then
12664  ac_cv_type_off_t=yes
12665else
12666  echo "$as_me: failed program was:" >&5
12667sed 's/^/| /' conftest.$ac_ext >&5
12668
12669ac_cv_type_off_t=no
12670fi
12671rm -f conftest.$ac_objext conftest.$ac_ext
12672fi
12673echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12674echo "${ECHO_T}$ac_cv_type_off_t" >&6
12675if test $ac_cv_type_off_t = yes; then
12676  :
12677else
12678
12679cat >>confdefs.h <<_ACEOF
12680#define off_t long
12681_ACEOF
12682
12683fi
12684
12685echo "$as_me:$LINENO: checking for size_t" >&5
12686echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12687if test "${ac_cv_type_size_t+set}" = set; then
12688  echo $ECHO_N "(cached) $ECHO_C" >&6
12689else
12690  cat >conftest.$ac_ext <<_ACEOF
12691#line $LINENO "configure"
12692/* confdefs.h.  */
12693_ACEOF
12694cat confdefs.h >>conftest.$ac_ext
12695cat >>conftest.$ac_ext <<_ACEOF
12696/* end confdefs.h.  */
12697$ac_includes_default
12698int
12699main ()
12700{
12701if ((size_t *) 0)
12702  return 0;
12703if (sizeof (size_t))
12704  return 0;
12705  ;
12706  return 0;
12707}
12708_ACEOF
12709rm -f conftest.$ac_objext
12710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12711  (eval $ac_compile) 2>&5
12712  ac_status=$?
12713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714  (exit $ac_status); } &&
12715         { ac_try='test -s conftest.$ac_objext'
12716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717  (eval $ac_try) 2>&5
12718  ac_status=$?
12719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720  (exit $ac_status); }; }; then
12721  ac_cv_type_size_t=yes
12722else
12723  echo "$as_me: failed program was:" >&5
12724sed 's/^/| /' conftest.$ac_ext >&5
12725
12726ac_cv_type_size_t=no
12727fi
12728rm -f conftest.$ac_objext conftest.$ac_ext
12729fi
12730echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12731echo "${ECHO_T}$ac_cv_type_size_t" >&6
12732if test $ac_cv_type_size_t = yes; then
12733  :
12734else
12735
12736cat >>confdefs.h <<_ACEOF
12737#define size_t unsigned
12738_ACEOF
12739
12740fi
12741
12742echo "$as_me:$LINENO: checking for time_t" >&5
12743echo $ECHO_N "checking for time_t... $ECHO_C" >&6
12744if test "${ac_cv_type_time_t+set}" = set; then
12745  echo $ECHO_N "(cached) $ECHO_C" >&6
12746else
12747  cat >conftest.$ac_ext <<_ACEOF
12748#line $LINENO "configure"
12749/* confdefs.h.  */
12750_ACEOF
12751cat confdefs.h >>conftest.$ac_ext
12752cat >>conftest.$ac_ext <<_ACEOF
12753/* end confdefs.h.  */
12754$ac_includes_default
12755int
12756main ()
12757{
12758if ((time_t *) 0)
12759  return 0;
12760if (sizeof (time_t))
12761  return 0;
12762  ;
12763  return 0;
12764}
12765_ACEOF
12766rm -f conftest.$ac_objext
12767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12768  (eval $ac_compile) 2>&5
12769  ac_status=$?
12770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771  (exit $ac_status); } &&
12772         { ac_try='test -s conftest.$ac_objext'
12773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774  (eval $ac_try) 2>&5
12775  ac_status=$?
12776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777  (exit $ac_status); }; }; then
12778  ac_cv_type_time_t=yes
12779else
12780  echo "$as_me: failed program was:" >&5
12781sed 's/^/| /' conftest.$ac_ext >&5
12782
12783ac_cv_type_time_t=no
12784fi
12785rm -f conftest.$ac_objext conftest.$ac_ext
12786fi
12787echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
12788echo "${ECHO_T}$ac_cv_type_time_t" >&6
12789if test $ac_cv_type_time_t = yes; then
12790  :
12791else
12792
12793cat >>confdefs.h <<_ACEOF
12794#define time_t long
12795_ACEOF
12796
12797fi
12798
12799echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12800echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12801if test "${ac_cv_struct_tm+set}" = set; then
12802  echo $ECHO_N "(cached) $ECHO_C" >&6
12803else
12804  cat >conftest.$ac_ext <<_ACEOF
12805#line $LINENO "configure"
12806/* confdefs.h.  */
12807_ACEOF
12808cat confdefs.h >>conftest.$ac_ext
12809cat >>conftest.$ac_ext <<_ACEOF
12810/* end confdefs.h.  */
12811#include <sys/types.h>
12812#include <time.h>
12813
12814int
12815main ()
12816{
12817struct tm *tp; tp->tm_sec;
12818  ;
12819  return 0;
12820}
12821_ACEOF
12822rm -f conftest.$ac_objext
12823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12824  (eval $ac_compile) 2>&5
12825  ac_status=$?
12826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827  (exit $ac_status); } &&
12828         { ac_try='test -s conftest.$ac_objext'
12829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830  (eval $ac_try) 2>&5
12831  ac_status=$?
12832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833  (exit $ac_status); }; }; then
12834  ac_cv_struct_tm=time.h
12835else
12836  echo "$as_me: failed program was:" >&5
12837sed 's/^/| /' conftest.$ac_ext >&5
12838
12839ac_cv_struct_tm=sys/time.h
12840fi
12841rm -f conftest.$ac_objext conftest.$ac_ext
12842fi
12843echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12844echo "${ECHO_T}$ac_cv_struct_tm" >&6
12845if test $ac_cv_struct_tm = sys/time.h; then
12846
12847cat >>confdefs.h <<\_ACEOF
12848#define TM_IN_SYS_TIME 1
12849_ACEOF
12850
12851fi
12852
12853
12854echo "$as_me:$LINENO: checking for u_int8_t" >&5
12855echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
12856if test "${ac_cv_type_u_int8_t+set}" = set; then
12857  echo $ECHO_N "(cached) $ECHO_C" >&6
12858else
12859  cat >conftest.$ac_ext <<_ACEOF
12860#line $LINENO "configure"
12861/* confdefs.h.  */
12862_ACEOF
12863cat confdefs.h >>conftest.$ac_ext
12864cat >>conftest.$ac_ext <<_ACEOF
12865/* end confdefs.h.  */
12866#include <sys/types.h>
12867int
12868main ()
12869{
12870u_int8_t len = 42; return 0;
12871  ;
12872  return 0;
12873}
12874_ACEOF
12875rm -f conftest.$ac_objext
12876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12877  (eval $ac_compile) 2>&5
12878  ac_status=$?
12879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880  (exit $ac_status); } &&
12881         { ac_try='test -s conftest.$ac_objext'
12882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12883  (eval $ac_try) 2>&5
12884  ac_status=$?
12885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886  (exit $ac_status); }; }; then
12887  ac_cv_type_u_int8_t=yes
12888else
12889  echo "$as_me: failed program was:" >&5
12890sed 's/^/| /' conftest.$ac_ext >&5
12891
12892ac_cv_type_u_int8_t=no
12893fi
12894rm -f conftest.$ac_objext conftest.$ac_ext
12895
12896fi
12897echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
12898echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
12899if test $ac_cv_type_u_int8_t = yes; then
12900
12901cat >>confdefs.h <<\_ACEOF
12902#define HAVE_TYPE_U_INT8_T 1
12903_ACEOF
12904
12905fi
12906
12907echo "$as_me:$LINENO: checking for u_int64_t" >&5
12908echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
12909if test "${ac_cv_type_u_int64_t+set}" = set; then
12910  echo $ECHO_N "(cached) $ECHO_C" >&6
12911else
12912  cat >conftest.$ac_ext <<_ACEOF
12913#line $LINENO "configure"
12914/* confdefs.h.  */
12915_ACEOF
12916cat confdefs.h >>conftest.$ac_ext
12917cat >>conftest.$ac_ext <<_ACEOF
12918/* end confdefs.h.  */
12919#include <sys/types.h>
12920int
12921main ()
12922{
12923u_int64_t len = 42; return 0;
12924  ;
12925  return 0;
12926}
12927_ACEOF
12928rm -f conftest.$ac_objext
12929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12930  (eval $ac_compile) 2>&5
12931  ac_status=$?
12932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933  (exit $ac_status); } &&
12934         { ac_try='test -s conftest.$ac_objext'
12935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12936  (eval $ac_try) 2>&5
12937  ac_status=$?
12938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939  (exit $ac_status); }; }; then
12940  ac_cv_type_u_int64_t=yes
12941else
12942  echo "$as_me: failed program was:" >&5
12943sed 's/^/| /' conftest.$ac_ext >&5
12944
12945ac_cv_type_u_int64_t=no
12946fi
12947rm -f conftest.$ac_objext conftest.$ac_ext
12948
12949fi
12950echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12951echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
12952if test $ac_cv_type_u_int64_t = yes; then
12953
12954cat >>confdefs.h <<\_ACEOF
12955#define HAVE_TYPE_U_INT64_T 1
12956_ACEOF
12957
12958fi
12959
12960echo "$as_me:$LINENO: checking for a fallback value for HZ" >&5
12961echo $ECHO_N "checking for a fallback value for HZ... $ECHO_C" >&6
12962if test "${ac_cv_var_default_hz+set}" = set; then
12963  echo $ECHO_N "(cached) $ECHO_C" >&6
12964else
12965  ac_cv_var_default_hz=100
12966case "$host" in
12967 alpha*-dec-osf4*|alpha*-dec-osf5*)
12968    ac_cv_var_default_hz=1024
12969    ;;
12970 mips-dec-ultrix4*)
12971    ac_cv_var_default_hz=256
12972    ;;
12973esac
12974fi
12975echo "$as_me:$LINENO: result: $ac_cv_var_default_hz" >&5
12976echo "${ECHO_T}$ac_cv_var_default_hz" >&6
12977
12978cat >>confdefs.h <<_ACEOF
12979#define DEFAULT_HZ $ac_cv_var_default_hz
12980_ACEOF
12981
12982
12983echo "$as_me:$LINENO: checking if we need to override the system's value for HZ" >&5
12984echo $ECHO_N "checking if we need to override the system's value for HZ... $ECHO_C" >&6
12985if test "${ac_cv_var_override_hz+set}" = set; then
12986  echo $ECHO_N "(cached) $ECHO_C" >&6
12987else
12988  ac_cv_var_override_hz=no
12989case "$host" in
12990 alpha*-dec-osf4*|alpha*-dec-osf5*)
12991    ac_cv_var_override_hz=yes
12992    ;;
12993 mips-dec-ultrix4*)
12994    ac_cv_var_override_hz=yes
12995    ;;
12996 *-*-freebsd*)
12997    ac_cv_var_override_hz=yes
12998    ;;
12999 *-*-sunos4*)
13000    ac_cv_var_override_hz=yes
13001    ;;
13002esac
13003fi
13004echo "$as_me:$LINENO: result: $ac_cv_var_override_hz" >&5
13005echo "${ECHO_T}$ac_cv_var_override_hz" >&6
13006case "$ac_cv_var_override_hz" in
13007 yes)
13008
13009cat >>confdefs.h <<\_ACEOF
13010#define OVERRIDE_HZ 1
13011_ACEOF
13012
13013    ;;
13014esac
13015
13016
13017
13018echo "$as_me:$LINENO: checking struct sigaction for sa_sigaction" >&5
13019echo $ECHO_N "checking struct sigaction for sa_sigaction... $ECHO_C" >&6
13020if test "${ac_cv_struct_sigaction_has_sa_sigaction+set}" = set; then
13021  echo $ECHO_N "(cached) $ECHO_C" >&6
13022else
13023
13024    cat >conftest.$ac_ext <<_ACEOF
13025#line $LINENO "configure"
13026/* confdefs.h.  */
13027_ACEOF
13028cat confdefs.h >>conftest.$ac_ext
13029cat >>conftest.$ac_ext <<_ACEOF
13030/* end confdefs.h.  */
13031#include <signal.h>
13032int
13033main ()
13034{
13035struct sigaction act; act.sa_sigaction = 0;
13036  ;
13037  return 0;
13038}
13039_ACEOF
13040rm -f conftest.$ac_objext
13041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13042  (eval $ac_compile) 2>&5
13043  ac_status=$?
13044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045  (exit $ac_status); } &&
13046         { ac_try='test -s conftest.$ac_objext'
13047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048  (eval $ac_try) 2>&5
13049  ac_status=$?
13050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051  (exit $ac_status); }; }; then
13052  ac_cv_struct_sigaction_has_sa_sigaction=yes
13053else
13054  echo "$as_me: failed program was:" >&5
13055sed 's/^/| /' conftest.$ac_ext >&5
13056
13057ac_cv_struct_sigaction_has_sa_sigaction=no
13058
13059fi
13060rm -f conftest.$ac_objext conftest.$ac_ext
13061
13062
13063fi
13064echo "$as_me:$LINENO: result: $ac_cv_struct_sigaction_has_sa_sigaction" >&5
13065echo "${ECHO_T}$ac_cv_struct_sigaction_has_sa_sigaction" >&6
13066if test $ac_cv_struct_sigaction_has_sa_sigaction = yes; then
13067
13068cat >>confdefs.h <<\_ACEOF
13069#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1
13070_ACEOF
13071
13072fi
13073
13074echo "$as_me:$LINENO: checking for struct ppsclockev" >&5
13075echo $ECHO_N "checking for struct ppsclockev... $ECHO_C" >&6
13076if test "${ac_cv_struct_ppsclockev+set}" = set; then
13077  echo $ECHO_N "(cached) $ECHO_C" >&6
13078else
13079  cat >conftest.$ac_ext <<_ACEOF
13080#line $LINENO "configure"
13081/* confdefs.h.  */
13082_ACEOF
13083cat confdefs.h >>conftest.$ac_ext
13084cat >>conftest.$ac_ext <<_ACEOF
13085/* end confdefs.h.  */
13086
13087#include <sys/types.h>
13088#ifdef HAVE_SYS_TERMIOS_H
13089# include <sys/termios.h>
13090#endif
13091#ifdef HAVE_SYS_TIME_H
13092# include <sys/time.h>
13093#endif
13094#ifdef HAVE_SYS_PPSCLOCK_H
13095# include <sys/ppsclock.h>
13096#endif
13097int
13098main ()
13099{
13100
13101extern struct ppsclockev *pce;
13102return pce->serial;
13103  ;
13104  return 0;
13105}
13106_ACEOF
13107rm -f conftest.$ac_objext
13108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13109  (eval $ac_compile) 2>&5
13110  ac_status=$?
13111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112  (exit $ac_status); } &&
13113         { ac_try='test -s conftest.$ac_objext'
13114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115  (eval $ac_try) 2>&5
13116  ac_status=$?
13117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118  (exit $ac_status); }; }; then
13119  ac_cv_struct_ppsclockev=yes
13120else
13121  echo "$as_me: failed program was:" >&5
13122sed 's/^/| /' conftest.$ac_ext >&5
13123
13124ac_cv_struct_ppsclockev=no
13125fi
13126rm -f conftest.$ac_objext conftest.$ac_ext
13127
13128fi
13129echo "$as_me:$LINENO: result: $ac_cv_struct_ppsclockev" >&5
13130echo "${ECHO_T}$ac_cv_struct_ppsclockev" >&6
13131if test $ac_cv_struct_ppsclockev = yes; then
13132
13133cat >>confdefs.h <<\_ACEOF
13134#define HAVE_STRUCT_PPSCLOCKEV 1
13135_ACEOF
13136
13137fi
13138
13139echo "$as_me:$LINENO: checking struct sockaddr for sa_len" >&5
13140echo $ECHO_N "checking struct sockaddr for sa_len... $ECHO_C" >&6
13141if test "${ac_cv_struct_sockaddr_has_sa_len+set}" = set; then
13142  echo $ECHO_N "(cached) $ECHO_C" >&6
13143else
13144  cat >conftest.$ac_ext <<_ACEOF
13145#line $LINENO "configure"
13146/* confdefs.h.  */
13147_ACEOF
13148cat confdefs.h >>conftest.$ac_ext
13149cat >>conftest.$ac_ext <<_ACEOF
13150/* end confdefs.h.  */
13151
13152#include <sys/types.h>
13153#include <sys/socket.h>
13154int
13155main ()
13156{
13157
13158extern struct sockaddr *ps;
13159return ps->sa_len;
13160  ;
13161  return 0;
13162}
13163_ACEOF
13164rm -f conftest.$ac_objext
13165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13166  (eval $ac_compile) 2>&5
13167  ac_status=$?
13168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169  (exit $ac_status); } &&
13170         { ac_try='test -s conftest.$ac_objext'
13171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13172  (eval $ac_try) 2>&5
13173  ac_status=$?
13174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175  (exit $ac_status); }; }; then
13176  ac_cv_struct_sockaddr_has_sa_len=yes
13177else
13178  echo "$as_me: failed program was:" >&5
13179sed 's/^/| /' conftest.$ac_ext >&5
13180
13181ac_cv_struct_sockaddr_has_sa_len=no
13182fi
13183rm -f conftest.$ac_objext conftest.$ac_ext
13184
13185fi
13186echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_has_sa_len" >&5
13187echo "${ECHO_T}$ac_cv_struct_sockaddr_has_sa_len" >&6
13188if test $ac_cv_struct_sockaddr_has_sa_len = yes; then
13189
13190cat >>confdefs.h <<\_ACEOF
13191#define HAVE_SA_LEN_IN_STRUCT_SOCKADDR 1
13192_ACEOF
13193
13194fi
13195
13196echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
13197echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
13198if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
13199  echo $ECHO_N "(cached) $ECHO_C" >&6
13200else
13201
13202	cat >conftest.$ac_ext <<_ACEOF
13203#line $LINENO "configure"
13204/* confdefs.h.  */
13205_ACEOF
13206cat confdefs.h >>conftest.$ac_ext
13207cat >>conftest.$ac_ext <<_ACEOF
13208/* end confdefs.h.  */
13209
13210#include <sys/types.h>
13211#include <sys/socket.h>
13212
13213int
13214main ()
13215{
13216 struct sockaddr_storage s; s.ss_family = 1;
13217  ;
13218  return 0;
13219}
13220_ACEOF
13221rm -f conftest.$ac_objext
13222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13223  (eval $ac_compile) 2>&5
13224  ac_status=$?
13225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226  (exit $ac_status); } &&
13227         { ac_try='test -s conftest.$ac_objext'
13228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13229  (eval $ac_try) 2>&5
13230  ac_status=$?
13231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232  (exit $ac_status); }; }; then
13233   ac_cv_have_ss_family_in_struct_ss="yes"
13234else
13235  echo "$as_me: failed program was:" >&5
13236sed 's/^/| /' conftest.$ac_ext >&5
13237
13238 ac_cv_have_ss_family_in_struct_ss="no"
13239fi
13240rm -f conftest.$ac_objext conftest.$ac_ext
13241
13242fi
13243echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
13244echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
13245if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
13246
13247cat >>confdefs.h <<\_ACEOF
13248#define HAVE_SS_FAMILY_IN_SS 1
13249_ACEOF
13250
13251else
13252    # Hack around a problem...
13253    case "$host" in
13254     *-*-hpux11.11) CPPFLAGS="$CPPFLAGS -D_NETINET_IN6_H"
13255	;;
13256    esac
13257fi
13258
13259echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
13260echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
13261if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
13262  echo $ECHO_N "(cached) $ECHO_C" >&6
13263else
13264
13265	cat >conftest.$ac_ext <<_ACEOF
13266#line $LINENO "configure"
13267/* confdefs.h.  */
13268_ACEOF
13269cat confdefs.h >>conftest.$ac_ext
13270cat >>conftest.$ac_ext <<_ACEOF
13271/* end confdefs.h.  */
13272
13273#include <sys/types.h>
13274#include <sys/socket.h>
13275
13276int
13277main ()
13278{
13279 struct sockaddr_storage s; s.__ss_family = 1;
13280  ;
13281  return 0;
13282}
13283_ACEOF
13284rm -f conftest.$ac_objext
13285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13286  (eval $ac_compile) 2>&5
13287  ac_status=$?
13288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289  (exit $ac_status); } &&
13290         { ac_try='test -s conftest.$ac_objext'
13291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292  (eval $ac_try) 2>&5
13293  ac_status=$?
13294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295  (exit $ac_status); }; }; then
13296   ac_cv_have___ss_family_in_struct_ss="yes"
13297else
13298  echo "$as_me: failed program was:" >&5
13299sed 's/^/| /' conftest.$ac_ext >&5
13300
13301 ac_cv_have___ss_family_in_struct_ss="no"
13302
13303fi
13304rm -f conftest.$ac_objext conftest.$ac_ext
13305
13306fi
13307echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
13308echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
13309if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
13310
13311cat >>confdefs.h <<\_ACEOF
13312#define HAVE___SS_FAMILY_IN_SS 1
13313_ACEOF
13314
13315fi
13316
13317
13318
13319
13320case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
13321  *yes*)
13322    echo "$as_me:$LINENO: checking for struct snd_size" >&5
13323echo $ECHO_N "checking for struct snd_size... $ECHO_C" >&6
13324if test "${ac_cv_struct_snd_size+set}" = set; then
13325  echo $ECHO_N "(cached) $ECHO_C" >&6
13326else
13327  cat >conftest.$ac_ext <<_ACEOF
13328#line $LINENO "configure"
13329/* confdefs.h.  */
13330_ACEOF
13331cat confdefs.h >>conftest.$ac_ext
13332cat >>conftest.$ac_ext <<_ACEOF
13333/* end confdefs.h.  */
13334
13335#ifdef HAVE_MACHINE_SOUNDCARD_H
13336# include <machine/soundcard.h>
13337#endif
13338#ifdef HAVE_SYS_SOUNDCARD_H
13339# include <sys/soundcard.h>
13340#endif
13341int
13342main ()
13343{
13344
13345extern struct snd_size *ss;
13346return ss->rec_size;
13347  ;
13348  return 0;
13349}
13350_ACEOF
13351rm -f conftest.$ac_objext
13352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13353  (eval $ac_compile) 2>&5
13354  ac_status=$?
13355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356  (exit $ac_status); } &&
13357         { ac_try='test -s conftest.$ac_objext'
13358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13359  (eval $ac_try) 2>&5
13360  ac_status=$?
13361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362  (exit $ac_status); }; }; then
13363  ac_cv_struct_snd_size=yes
13364else
13365  echo "$as_me: failed program was:" >&5
13366sed 's/^/| /' conftest.$ac_ext >&5
13367
13368ac_cv_struct_snd_size=no
13369fi
13370rm -f conftest.$ac_objext conftest.$ac_ext
13371
13372fi
13373echo "$as_me:$LINENO: result: $ac_cv_struct_snd_size" >&5
13374echo "${ECHO_T}$ac_cv_struct_snd_size" >&6
13375    case "$ac_cv_struct_snd_size" in
13376     yes)
13377cat >>confdefs.h <<\_ACEOF
13378#define HAVE_STRUCT_SND_SIZE 1
13379_ACEOF
13380 ;;
13381    esac
13382    ;;
13383esac
13384
13385echo "$as_me:$LINENO: checking struct clockinfo for hz" >&5
13386echo $ECHO_N "checking struct clockinfo for hz... $ECHO_C" >&6
13387if test "${ac_cv_struct_clockinfo_has_hz+set}" = set; then
13388  echo $ECHO_N "(cached) $ECHO_C" >&6
13389else
13390  cat >conftest.$ac_ext <<_ACEOF
13391#line $LINENO "configure"
13392/* confdefs.h.  */
13393_ACEOF
13394cat confdefs.h >>conftest.$ac_ext
13395cat >>conftest.$ac_ext <<_ACEOF
13396/* end confdefs.h.  */
13397
13398#include <sys/time.h>
13399int
13400main ()
13401{
13402
13403extern struct clockinfo *pc;
13404return pc->hz;
13405  ;
13406  return 0;
13407}
13408_ACEOF
13409rm -f conftest.$ac_objext
13410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13411  (eval $ac_compile) 2>&5
13412  ac_status=$?
13413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414  (exit $ac_status); } &&
13415         { ac_try='test -s conftest.$ac_objext'
13416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13417  (eval $ac_try) 2>&5
13418  ac_status=$?
13419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420  (exit $ac_status); }; }; then
13421  ac_cv_struct_clockinfo_has_hz=yes
13422else
13423  echo "$as_me: failed program was:" >&5
13424sed 's/^/| /' conftest.$ac_ext >&5
13425
13426ac_cv_struct_clockinfo_has_hz=no
13427fi
13428rm -f conftest.$ac_objext conftest.$ac_ext
13429
13430fi
13431echo "$as_me:$LINENO: result: $ac_cv_struct_clockinfo_has_hz" >&5
13432echo "${ECHO_T}$ac_cv_struct_clockinfo_has_hz" >&6
13433if test $ac_cv_struct_clockinfo_has_hz = yes; then
13434
13435cat >>confdefs.h <<\_ACEOF
13436#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1
13437_ACEOF
13438
13439fi
13440
13441echo "$as_me:$LINENO: checking struct clockinfo for tickadj" >&5
13442echo $ECHO_N "checking struct clockinfo for tickadj... $ECHO_C" >&6
13443if test "${ac_cv_struct_clockinfo_has_tickadj+set}" = set; then
13444  echo $ECHO_N "(cached) $ECHO_C" >&6
13445else
13446  cat >conftest.$ac_ext <<_ACEOF
13447#line $LINENO "configure"
13448/* confdefs.h.  */
13449_ACEOF
13450cat confdefs.h >>conftest.$ac_ext
13451cat >>conftest.$ac_ext <<_ACEOF
13452/* end confdefs.h.  */
13453
13454#include <sys/time.h>
13455int
13456main ()
13457{
13458
13459extern struct clockinfo *pc;
13460return pc->tickadj;
13461  ;
13462  return 0;
13463}
13464_ACEOF
13465rm -f conftest.$ac_objext
13466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13467  (eval $ac_compile) 2>&5
13468  ac_status=$?
13469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470  (exit $ac_status); } &&
13471         { ac_try='test -s conftest.$ac_objext'
13472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473  (eval $ac_try) 2>&5
13474  ac_status=$?
13475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476  (exit $ac_status); }; }; then
13477  ac_cv_struct_clockinfo_has_tickadj=yes
13478else
13479  echo "$as_me: failed program was:" >&5
13480sed 's/^/| /' conftest.$ac_ext >&5
13481
13482ac_cv_struct_clockinfo_has_tickadj=no
13483fi
13484rm -f conftest.$ac_objext conftest.$ac_ext
13485
13486fi
13487echo "$as_me:$LINENO: result: $ac_cv_struct_clockinfo_has_tickadj" >&5
13488echo "${ECHO_T}$ac_cv_struct_clockinfo_has_tickadj" >&6
13489if test $ac_cv_struct_clockinfo_has_tickadj = yes; then
13490
13491cat >>confdefs.h <<\_ACEOF
13492#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1
13493_ACEOF
13494
13495fi
13496
13497echo "$as_me:$LINENO: checking for struct timespec" >&5
13498echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
13499if test "${ac_cv_struct_timespec+set}" = set; then
13500  echo $ECHO_N "(cached) $ECHO_C" >&6
13501else
13502  cat >conftest.$ac_ext <<_ACEOF
13503#line $LINENO "configure"
13504/* confdefs.h.  */
13505_ACEOF
13506cat confdefs.h >>conftest.$ac_ext
13507cat >>conftest.$ac_ext <<_ACEOF
13508/* end confdefs.h.  */
13509
13510#include <sys/time.h>
13511/* Under SunOS, timespec is in sys/timepps.h, which needs errno.h and FRAC */
13512#ifdef HAVE_ERRNO_H
13513# include <errno.h>
13514#endif
13515#ifdef HAVE_SYS_TIMEPPS_H
13516# define FRAC 4294967296
13517# include <sys/timepps.h>
13518#endif
13519int
13520main ()
13521{
13522struct timespec n;
13523  ;
13524  return 0;
13525}
13526_ACEOF
13527rm -f conftest.$ac_objext
13528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13529  (eval $ac_compile) 2>&5
13530  ac_status=$?
13531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532  (exit $ac_status); } &&
13533         { ac_try='test -s conftest.$ac_objext'
13534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535  (eval $ac_try) 2>&5
13536  ac_status=$?
13537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538  (exit $ac_status); }; }; then
13539  ac_cv_struct_timespec=yes
13540else
13541  echo "$as_me: failed program was:" >&5
13542sed 's/^/| /' conftest.$ac_ext >&5
13543
13544ac_cv_struct_timespec=no
13545fi
13546rm -f conftest.$ac_objext conftest.$ac_ext
13547fi
13548echo "$as_me:$LINENO: result: $ac_cv_struct_timespec" >&5
13549echo "${ECHO_T}$ac_cv_struct_timespec" >&6
13550if test $ac_cv_struct_timespec = yes; then
13551
13552cat >>confdefs.h <<\_ACEOF
13553#define HAVE_STRUCT_TIMESPEC 1
13554_ACEOF
13555
13556fi
13557
13558echo "$as_me:$LINENO: checking for struct ntptimeval" >&5
13559echo $ECHO_N "checking for struct ntptimeval... $ECHO_C" >&6
13560if test "${ac_cv_struct_ntptimeval+set}" = set; then
13561  echo $ECHO_N "(cached) $ECHO_C" >&6
13562else
13563  cat >conftest.$ac_ext <<_ACEOF
13564#line $LINENO "configure"
13565/* confdefs.h.  */
13566_ACEOF
13567cat confdefs.h >>conftest.$ac_ext
13568cat >>conftest.$ac_ext <<_ACEOF
13569/* end confdefs.h.  */
13570
13571#include <sys/time.h>
13572#include <sys/timex.h>
13573int
13574main ()
13575{
13576struct ntptimeval n;
13577  ;
13578  return 0;
13579}
13580_ACEOF
13581rm -f conftest.$ac_objext
13582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13583  (eval $ac_compile) 2>&5
13584  ac_status=$?
13585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586  (exit $ac_status); } &&
13587         { ac_try='test -s conftest.$ac_objext'
13588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13589  (eval $ac_try) 2>&5
13590  ac_status=$?
13591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592  (exit $ac_status); }; }; then
13593  ac_cv_struct_ntptimeval=yes
13594else
13595  echo "$as_me: failed program was:" >&5
13596sed 's/^/| /' conftest.$ac_ext >&5
13597
13598ac_cv_struct_ntptimeval=no
13599fi
13600rm -f conftest.$ac_objext conftest.$ac_ext
13601fi
13602echo "$as_me:$LINENO: result: $ac_cv_struct_ntptimeval" >&5
13603echo "${ECHO_T}$ac_cv_struct_ntptimeval" >&6
13604if test $ac_cv_struct_ntptimeval = yes; then
13605
13606cat >>confdefs.h <<\_ACEOF
13607#define HAVE_STRUCT_NTPTIMEVAL 1
13608_ACEOF
13609
13610fi
13611
13612echo "$as_me:$LINENO: checking for struct ntptimeval.time.tv_nsec" >&5
13613echo $ECHO_N "checking for struct ntptimeval.time.tv_nsec... $ECHO_C" >&6
13614if test "${ac_cv_member_struct_ntptimeval_time_tv_nsec+set}" = set; then
13615  echo $ECHO_N "(cached) $ECHO_C" >&6
13616else
13617  cat >conftest.$ac_ext <<_ACEOF
13618#line $LINENO "configure"
13619/* confdefs.h.  */
13620_ACEOF
13621cat confdefs.h >>conftest.$ac_ext
13622cat >>conftest.$ac_ext <<_ACEOF
13623/* end confdefs.h.  */
13624#ifdef HAVE_SYS_TIME_H
13625#include <sys/time.h>
13626#else
13627# ifdef HAVE_TIME_H
13628# include <time.h>
13629# endif
13630#endif
13631#ifdef HAVE_SYS_TIMEX_H
13632#include <sys/timex.h>
13633#else
13634# ifdef HAVE_TIMEX_H
13635# include <timex.h>
13636# endif
13637#endif
13638
13639int
13640main ()
13641{
13642static struct ntptimeval ac_aggr;
13643if (ac_aggr.time.tv_nsec)
13644return 0;
13645  ;
13646  return 0;
13647}
13648_ACEOF
13649rm -f conftest.$ac_objext
13650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13651  (eval $ac_compile) 2>&5
13652  ac_status=$?
13653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654  (exit $ac_status); } &&
13655         { ac_try='test -s conftest.$ac_objext'
13656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657  (eval $ac_try) 2>&5
13658  ac_status=$?
13659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660  (exit $ac_status); }; }; then
13661  ac_cv_member_struct_ntptimeval_time_tv_nsec=yes
13662else
13663  echo "$as_me: failed program was:" >&5
13664sed 's/^/| /' conftest.$ac_ext >&5
13665
13666cat >conftest.$ac_ext <<_ACEOF
13667#line $LINENO "configure"
13668/* confdefs.h.  */
13669_ACEOF
13670cat confdefs.h >>conftest.$ac_ext
13671cat >>conftest.$ac_ext <<_ACEOF
13672/* end confdefs.h.  */
13673#ifdef HAVE_SYS_TIME_H
13674#include <sys/time.h>
13675#else
13676# ifdef HAVE_TIME_H
13677# include <time.h>
13678# endif
13679#endif
13680#ifdef HAVE_SYS_TIMEX_H
13681#include <sys/timex.h>
13682#else
13683# ifdef HAVE_TIMEX_H
13684# include <timex.h>
13685# endif
13686#endif
13687
13688int
13689main ()
13690{
13691static struct ntptimeval ac_aggr;
13692if (sizeof ac_aggr.time.tv_nsec)
13693return 0;
13694  ;
13695  return 0;
13696}
13697_ACEOF
13698rm -f conftest.$ac_objext
13699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13700  (eval $ac_compile) 2>&5
13701  ac_status=$?
13702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703  (exit $ac_status); } &&
13704         { ac_try='test -s conftest.$ac_objext'
13705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13706  (eval $ac_try) 2>&5
13707  ac_status=$?
13708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709  (exit $ac_status); }; }; then
13710  ac_cv_member_struct_ntptimeval_time_tv_nsec=yes
13711else
13712  echo "$as_me: failed program was:" >&5
13713sed 's/^/| /' conftest.$ac_ext >&5
13714
13715ac_cv_member_struct_ntptimeval_time_tv_nsec=no
13716fi
13717rm -f conftest.$ac_objext conftest.$ac_ext
13718fi
13719rm -f conftest.$ac_objext conftest.$ac_ext
13720fi
13721echo "$as_me:$LINENO: result: $ac_cv_member_struct_ntptimeval_time_tv_nsec" >&5
13722echo "${ECHO_T}$ac_cv_member_struct_ntptimeval_time_tv_nsec" >&6
13723if test $ac_cv_member_struct_ntptimeval_time_tv_nsec = yes; then
13724
13725cat >>confdefs.h <<_ACEOF
13726#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
13727_ACEOF
13728
13729
13730fi
13731
13732
13733echo "$as_me:$LINENO: checking for inline" >&5
13734echo $ECHO_N "checking for inline... $ECHO_C" >&6
13735if test "${ac_cv_c_inline+set}" = set; then
13736  echo $ECHO_N "(cached) $ECHO_C" >&6
13737else
13738  ac_cv_c_inline=no
13739for ac_kw in inline __inline__ __inline; do
13740  cat >conftest.$ac_ext <<_ACEOF
13741#line $LINENO "configure"
13742/* confdefs.h.  */
13743_ACEOF
13744cat confdefs.h >>conftest.$ac_ext
13745cat >>conftest.$ac_ext <<_ACEOF
13746/* end confdefs.h.  */
13747#ifndef __cplusplus
13748typedef int foo_t;
13749static $ac_kw foo_t static_foo () {return 0; }
13750$ac_kw foo_t foo () {return 0; }
13751#endif
13752
13753_ACEOF
13754rm -f conftest.$ac_objext
13755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13756  (eval $ac_compile) 2>&5
13757  ac_status=$?
13758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759  (exit $ac_status); } &&
13760         { ac_try='test -s conftest.$ac_objext'
13761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13762  (eval $ac_try) 2>&5
13763  ac_status=$?
13764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765  (exit $ac_status); }; }; then
13766  ac_cv_c_inline=$ac_kw; break
13767else
13768  echo "$as_me: failed program was:" >&5
13769sed 's/^/| /' conftest.$ac_ext >&5
13770
13771fi
13772rm -f conftest.$ac_objext conftest.$ac_ext
13773done
13774
13775fi
13776echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13777echo "${ECHO_T}$ac_cv_c_inline" >&6
13778case $ac_cv_c_inline in
13779  inline | yes) ;;
13780  no)
13781cat >>confdefs.h <<\_ACEOF
13782#define inline
13783_ACEOF
13784 ;;
13785  *)  cat >>confdefs.h <<_ACEOF
13786#define inline $ac_cv_c_inline
13787_ACEOF
13788 ;;
13789esac
13790
13791
13792echo "$as_me:$LINENO: checking whether char is unsigned" >&5
13793echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
13794if test "${ac_cv_c_char_unsigned+set}" = set; then
13795  echo $ECHO_N "(cached) $ECHO_C" >&6
13796else
13797  cat >conftest.$ac_ext <<_ACEOF
13798#line $LINENO "configure"
13799/* confdefs.h.  */
13800_ACEOF
13801cat confdefs.h >>conftest.$ac_ext
13802cat >>conftest.$ac_ext <<_ACEOF
13803/* end confdefs.h.  */
13804$ac_includes_default
13805int
13806main ()
13807{
13808static int test_array [1 - 2 * !(((char) -1) < 0)];
13809test_array [0] = 0
13810
13811  ;
13812  return 0;
13813}
13814_ACEOF
13815rm -f conftest.$ac_objext
13816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13817  (eval $ac_compile) 2>&5
13818  ac_status=$?
13819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820  (exit $ac_status); } &&
13821         { ac_try='test -s conftest.$ac_objext'
13822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823  (eval $ac_try) 2>&5
13824  ac_status=$?
13825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826  (exit $ac_status); }; }; then
13827  ac_cv_c_char_unsigned=no
13828else
13829  echo "$as_me: failed program was:" >&5
13830sed 's/^/| /' conftest.$ac_ext >&5
13831
13832ac_cv_c_char_unsigned=yes
13833fi
13834rm -f conftest.$ac_objext conftest.$ac_ext
13835fi
13836echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
13837echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
13838if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
13839  cat >>confdefs.h <<\_ACEOF
13840#define __CHAR_UNSIGNED__ 1
13841_ACEOF
13842
13843fi
13844		echo "$as_me:$LINENO: checking for signed char" >&5
13845echo $ECHO_N "checking for signed char... $ECHO_C" >&6
13846if test "${ac_cv_type_signed_char+set}" = set; then
13847  echo $ECHO_N "(cached) $ECHO_C" >&6
13848else
13849  cat >conftest.$ac_ext <<_ACEOF
13850#line $LINENO "configure"
13851/* confdefs.h.  */
13852_ACEOF
13853cat confdefs.h >>conftest.$ac_ext
13854cat >>conftest.$ac_ext <<_ACEOF
13855/* end confdefs.h.  */
13856$ac_includes_default
13857int
13858main ()
13859{
13860if ((signed char *) 0)
13861  return 0;
13862if (sizeof (signed char))
13863  return 0;
13864  ;
13865  return 0;
13866}
13867_ACEOF
13868rm -f conftest.$ac_objext
13869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13870  (eval $ac_compile) 2>&5
13871  ac_status=$?
13872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873  (exit $ac_status); } &&
13874         { ac_try='test -s conftest.$ac_objext'
13875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876  (eval $ac_try) 2>&5
13877  ac_status=$?
13878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879  (exit $ac_status); }; }; then
13880  ac_cv_type_signed_char=yes
13881else
13882  echo "$as_me: failed program was:" >&5
13883sed 's/^/| /' conftest.$ac_ext >&5
13884
13885ac_cv_type_signed_char=no
13886fi
13887rm -f conftest.$ac_objext conftest.$ac_ext
13888fi
13889echo "$as_me:$LINENO: result: $ac_cv_type_signed_char" >&5
13890echo "${ECHO_T}$ac_cv_type_signed_char" >&6
13891
13892echo "$as_me:$LINENO: checking size of signed char" >&5
13893echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
13894if test "${ac_cv_sizeof_signed_char+set}" = set; then
13895  echo $ECHO_N "(cached) $ECHO_C" >&6
13896else
13897  if test "$ac_cv_type_signed_char" = yes; then
13898  # The cast to unsigned long works around a bug in the HP C Compiler
13899  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13900  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13901  # This bug is HP SR number 8606223364.
13902  if test "$cross_compiling" = yes; then
13903  # Depending upon the size, compute the lo and hi bounds.
13904cat >conftest.$ac_ext <<_ACEOF
13905#line $LINENO "configure"
13906/* confdefs.h.  */
13907_ACEOF
13908cat confdefs.h >>conftest.$ac_ext
13909cat >>conftest.$ac_ext <<_ACEOF
13910/* end confdefs.h.  */
13911$ac_includes_default
13912int
13913main ()
13914{
13915static int test_array [1 - 2 * !(((long) (sizeof (signed char))) >= 0)];
13916test_array [0] = 0
13917
13918  ;
13919  return 0;
13920}
13921_ACEOF
13922rm -f conftest.$ac_objext
13923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13924  (eval $ac_compile) 2>&5
13925  ac_status=$?
13926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927  (exit $ac_status); } &&
13928         { ac_try='test -s conftest.$ac_objext'
13929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930  (eval $ac_try) 2>&5
13931  ac_status=$?
13932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933  (exit $ac_status); }; }; then
13934  ac_lo=0 ac_mid=0
13935  while :; do
13936    cat >conftest.$ac_ext <<_ACEOF
13937#line $LINENO "configure"
13938/* confdefs.h.  */
13939_ACEOF
13940cat confdefs.h >>conftest.$ac_ext
13941cat >>conftest.$ac_ext <<_ACEOF
13942/* end confdefs.h.  */
13943$ac_includes_default
13944int
13945main ()
13946{
13947static int test_array [1 - 2 * !(((long) (sizeof (signed char))) <= $ac_mid)];
13948test_array [0] = 0
13949
13950  ;
13951  return 0;
13952}
13953_ACEOF
13954rm -f conftest.$ac_objext
13955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13956  (eval $ac_compile) 2>&5
13957  ac_status=$?
13958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959  (exit $ac_status); } &&
13960         { ac_try='test -s conftest.$ac_objext'
13961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13962  (eval $ac_try) 2>&5
13963  ac_status=$?
13964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965  (exit $ac_status); }; }; then
13966  ac_hi=$ac_mid; break
13967else
13968  echo "$as_me: failed program was:" >&5
13969sed 's/^/| /' conftest.$ac_ext >&5
13970
13971ac_lo=`expr $ac_mid + 1`
13972                    if test $ac_lo -le $ac_mid; then
13973                      ac_lo= ac_hi=
13974                      break
13975                    fi
13976                    ac_mid=`expr 2 '*' $ac_mid + 1`
13977fi
13978rm -f conftest.$ac_objext conftest.$ac_ext
13979  done
13980else
13981  echo "$as_me: failed program was:" >&5
13982sed 's/^/| /' conftest.$ac_ext >&5
13983
13984cat >conftest.$ac_ext <<_ACEOF
13985#line $LINENO "configure"
13986/* confdefs.h.  */
13987_ACEOF
13988cat confdefs.h >>conftest.$ac_ext
13989cat >>conftest.$ac_ext <<_ACEOF
13990/* end confdefs.h.  */
13991$ac_includes_default
13992int
13993main ()
13994{
13995static int test_array [1 - 2 * !(((long) (sizeof (signed char))) < 0)];
13996test_array [0] = 0
13997
13998  ;
13999  return 0;
14000}
14001_ACEOF
14002rm -f conftest.$ac_objext
14003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14004  (eval $ac_compile) 2>&5
14005  ac_status=$?
14006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007  (exit $ac_status); } &&
14008         { ac_try='test -s conftest.$ac_objext'
14009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010  (eval $ac_try) 2>&5
14011  ac_status=$?
14012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013  (exit $ac_status); }; }; then
14014  ac_hi=-1 ac_mid=-1
14015  while :; do
14016    cat >conftest.$ac_ext <<_ACEOF
14017#line $LINENO "configure"
14018/* confdefs.h.  */
14019_ACEOF
14020cat confdefs.h >>conftest.$ac_ext
14021cat >>conftest.$ac_ext <<_ACEOF
14022/* end confdefs.h.  */
14023$ac_includes_default
14024int
14025main ()
14026{
14027static int test_array [1 - 2 * !(((long) (sizeof (signed char))) >= $ac_mid)];
14028test_array [0] = 0
14029
14030  ;
14031  return 0;
14032}
14033_ACEOF
14034rm -f conftest.$ac_objext
14035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14036  (eval $ac_compile) 2>&5
14037  ac_status=$?
14038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039  (exit $ac_status); } &&
14040         { ac_try='test -s conftest.$ac_objext'
14041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14042  (eval $ac_try) 2>&5
14043  ac_status=$?
14044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045  (exit $ac_status); }; }; then
14046  ac_lo=$ac_mid; break
14047else
14048  echo "$as_me: failed program was:" >&5
14049sed 's/^/| /' conftest.$ac_ext >&5
14050
14051ac_hi=`expr '(' $ac_mid ')' - 1`
14052                       if test $ac_mid -le $ac_hi; then
14053                         ac_lo= ac_hi=
14054                         break
14055                       fi
14056                       ac_mid=`expr 2 '*' $ac_mid`
14057fi
14058rm -f conftest.$ac_objext conftest.$ac_ext
14059  done
14060else
14061  echo "$as_me: failed program was:" >&5
14062sed 's/^/| /' conftest.$ac_ext >&5
14063
14064ac_lo= ac_hi=
14065fi
14066rm -f conftest.$ac_objext conftest.$ac_ext
14067fi
14068rm -f conftest.$ac_objext conftest.$ac_ext
14069# Binary search between lo and hi bounds.
14070while test "x$ac_lo" != "x$ac_hi"; do
14071  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14072  cat >conftest.$ac_ext <<_ACEOF
14073#line $LINENO "configure"
14074/* confdefs.h.  */
14075_ACEOF
14076cat confdefs.h >>conftest.$ac_ext
14077cat >>conftest.$ac_ext <<_ACEOF
14078/* end confdefs.h.  */
14079$ac_includes_default
14080int
14081main ()
14082{
14083static int test_array [1 - 2 * !(((long) (sizeof (signed char))) <= $ac_mid)];
14084test_array [0] = 0
14085
14086  ;
14087  return 0;
14088}
14089_ACEOF
14090rm -f conftest.$ac_objext
14091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14092  (eval $ac_compile) 2>&5
14093  ac_status=$?
14094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095  (exit $ac_status); } &&
14096         { ac_try='test -s conftest.$ac_objext'
14097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098  (eval $ac_try) 2>&5
14099  ac_status=$?
14100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101  (exit $ac_status); }; }; then
14102  ac_hi=$ac_mid
14103else
14104  echo "$as_me: failed program was:" >&5
14105sed 's/^/| /' conftest.$ac_ext >&5
14106
14107ac_lo=`expr '(' $ac_mid ')' + 1`
14108fi
14109rm -f conftest.$ac_objext conftest.$ac_ext
14110done
14111case $ac_lo in
14112?*) ac_cv_sizeof_signed_char=$ac_lo;;
14113'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char), 77
14114See \`config.log' for more details." >&5
14115echo "$as_me: error: cannot compute sizeof (signed char), 77
14116See \`config.log' for more details." >&2;}
14117   { (exit 1); exit 1; }; } ;;
14118esac
14119else
14120  if test "$cross_compiling" = yes; then
14121  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14122See \`config.log' for more details." >&5
14123echo "$as_me: error: cannot run test program while cross compiling
14124See \`config.log' for more details." >&2;}
14125   { (exit 1); exit 1; }; }
14126else
14127  cat >conftest.$ac_ext <<_ACEOF
14128#line $LINENO "configure"
14129/* confdefs.h.  */
14130_ACEOF
14131cat confdefs.h >>conftest.$ac_ext
14132cat >>conftest.$ac_ext <<_ACEOF
14133/* end confdefs.h.  */
14134$ac_includes_default
14135long longval () { return (long) (sizeof (signed char)); }
14136unsigned long ulongval () { return (long) (sizeof (signed char)); }
14137#include <stdio.h>
14138#include <stdlib.h>
14139int
14140main ()
14141{
14142
14143  FILE *f = fopen ("conftest.val", "w");
14144  if (! f)
14145    exit (1);
14146  if (((long) (sizeof (signed char))) < 0)
14147    {
14148      long i = longval ();
14149      if (i != ((long) (sizeof (signed char))))
14150	exit (1);
14151      fprintf (f, "%ld\n", i);
14152    }
14153  else
14154    {
14155      unsigned long i = ulongval ();
14156      if (i != ((long) (sizeof (signed char))))
14157	exit (1);
14158      fprintf (f, "%lu\n", i);
14159    }
14160  exit (ferror (f) || fclose (f) != 0);
14161
14162  ;
14163  return 0;
14164}
14165_ACEOF
14166rm -f conftest$ac_exeext
14167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14168  (eval $ac_link) 2>&5
14169  ac_status=$?
14170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173  (eval $ac_try) 2>&5
14174  ac_status=$?
14175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176  (exit $ac_status); }; }; then
14177  ac_cv_sizeof_signed_char=`cat conftest.val`
14178else
14179  echo "$as_me: program exited with status $ac_status" >&5
14180echo "$as_me: failed program was:" >&5
14181sed 's/^/| /' conftest.$ac_ext >&5
14182
14183( exit $ac_status )
14184{ { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char), 77
14185See \`config.log' for more details." >&5
14186echo "$as_me: error: cannot compute sizeof (signed char), 77
14187See \`config.log' for more details." >&2;}
14188   { (exit 1); exit 1; }; }
14189fi
14190rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14191fi
14192fi
14193rm -f conftest.val
14194else
14195  ac_cv_sizeof_signed_char=0
14196fi
14197fi
14198echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
14199echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
14200cat >>confdefs.h <<_ACEOF
14201#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
14202_ACEOF
14203
14204
14205echo "$as_me:$LINENO: checking for int" >&5
14206echo $ECHO_N "checking for int... $ECHO_C" >&6
14207if test "${ac_cv_type_int+set}" = set; then
14208  echo $ECHO_N "(cached) $ECHO_C" >&6
14209else
14210  cat >conftest.$ac_ext <<_ACEOF
14211#line $LINENO "configure"
14212/* confdefs.h.  */
14213_ACEOF
14214cat confdefs.h >>conftest.$ac_ext
14215cat >>conftest.$ac_ext <<_ACEOF
14216/* end confdefs.h.  */
14217$ac_includes_default
14218int
14219main ()
14220{
14221if ((int *) 0)
14222  return 0;
14223if (sizeof (int))
14224  return 0;
14225  ;
14226  return 0;
14227}
14228_ACEOF
14229rm -f conftest.$ac_objext
14230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14231  (eval $ac_compile) 2>&5
14232  ac_status=$?
14233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234  (exit $ac_status); } &&
14235         { ac_try='test -s conftest.$ac_objext'
14236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237  (eval $ac_try) 2>&5
14238  ac_status=$?
14239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240  (exit $ac_status); }; }; then
14241  ac_cv_type_int=yes
14242else
14243  echo "$as_me: failed program was:" >&5
14244sed 's/^/| /' conftest.$ac_ext >&5
14245
14246ac_cv_type_int=no
14247fi
14248rm -f conftest.$ac_objext conftest.$ac_ext
14249fi
14250echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14251echo "${ECHO_T}$ac_cv_type_int" >&6
14252
14253echo "$as_me:$LINENO: checking size of int" >&5
14254echo $ECHO_N "checking size of int... $ECHO_C" >&6
14255if test "${ac_cv_sizeof_int+set}" = set; then
14256  echo $ECHO_N "(cached) $ECHO_C" >&6
14257else
14258  if test "$ac_cv_type_int" = yes; then
14259  # The cast to unsigned long works around a bug in the HP C Compiler
14260  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14261  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14262  # This bug is HP SR number 8606223364.
14263  if test "$cross_compiling" = yes; then
14264  # Depending upon the size, compute the lo and hi bounds.
14265cat >conftest.$ac_ext <<_ACEOF
14266#line $LINENO "configure"
14267/* confdefs.h.  */
14268_ACEOF
14269cat confdefs.h >>conftest.$ac_ext
14270cat >>conftest.$ac_ext <<_ACEOF
14271/* end confdefs.h.  */
14272$ac_includes_default
14273int
14274main ()
14275{
14276static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14277test_array [0] = 0
14278
14279  ;
14280  return 0;
14281}
14282_ACEOF
14283rm -f conftest.$ac_objext
14284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14285  (eval $ac_compile) 2>&5
14286  ac_status=$?
14287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288  (exit $ac_status); } &&
14289         { ac_try='test -s conftest.$ac_objext'
14290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291  (eval $ac_try) 2>&5
14292  ac_status=$?
14293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294  (exit $ac_status); }; }; then
14295  ac_lo=0 ac_mid=0
14296  while :; do
14297    cat >conftest.$ac_ext <<_ACEOF
14298#line $LINENO "configure"
14299/* confdefs.h.  */
14300_ACEOF
14301cat confdefs.h >>conftest.$ac_ext
14302cat >>conftest.$ac_ext <<_ACEOF
14303/* end confdefs.h.  */
14304$ac_includes_default
14305int
14306main ()
14307{
14308static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14309test_array [0] = 0
14310
14311  ;
14312  return 0;
14313}
14314_ACEOF
14315rm -f conftest.$ac_objext
14316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14317  (eval $ac_compile) 2>&5
14318  ac_status=$?
14319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320  (exit $ac_status); } &&
14321         { ac_try='test -s conftest.$ac_objext'
14322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323  (eval $ac_try) 2>&5
14324  ac_status=$?
14325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326  (exit $ac_status); }; }; then
14327  ac_hi=$ac_mid; break
14328else
14329  echo "$as_me: failed program was:" >&5
14330sed 's/^/| /' conftest.$ac_ext >&5
14331
14332ac_lo=`expr $ac_mid + 1`
14333                    if test $ac_lo -le $ac_mid; then
14334                      ac_lo= ac_hi=
14335                      break
14336                    fi
14337                    ac_mid=`expr 2 '*' $ac_mid + 1`
14338fi
14339rm -f conftest.$ac_objext conftest.$ac_ext
14340  done
14341else
14342  echo "$as_me: failed program was:" >&5
14343sed 's/^/| /' conftest.$ac_ext >&5
14344
14345cat >conftest.$ac_ext <<_ACEOF
14346#line $LINENO "configure"
14347/* confdefs.h.  */
14348_ACEOF
14349cat confdefs.h >>conftest.$ac_ext
14350cat >>conftest.$ac_ext <<_ACEOF
14351/* end confdefs.h.  */
14352$ac_includes_default
14353int
14354main ()
14355{
14356static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14357test_array [0] = 0
14358
14359  ;
14360  return 0;
14361}
14362_ACEOF
14363rm -f conftest.$ac_objext
14364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14365  (eval $ac_compile) 2>&5
14366  ac_status=$?
14367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368  (exit $ac_status); } &&
14369         { ac_try='test -s conftest.$ac_objext'
14370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14371  (eval $ac_try) 2>&5
14372  ac_status=$?
14373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374  (exit $ac_status); }; }; then
14375  ac_hi=-1 ac_mid=-1
14376  while :; do
14377    cat >conftest.$ac_ext <<_ACEOF
14378#line $LINENO "configure"
14379/* confdefs.h.  */
14380_ACEOF
14381cat confdefs.h >>conftest.$ac_ext
14382cat >>conftest.$ac_ext <<_ACEOF
14383/* end confdefs.h.  */
14384$ac_includes_default
14385int
14386main ()
14387{
14388static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14389test_array [0] = 0
14390
14391  ;
14392  return 0;
14393}
14394_ACEOF
14395rm -f conftest.$ac_objext
14396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14397  (eval $ac_compile) 2>&5
14398  ac_status=$?
14399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400  (exit $ac_status); } &&
14401         { ac_try='test -s conftest.$ac_objext'
14402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14403  (eval $ac_try) 2>&5
14404  ac_status=$?
14405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406  (exit $ac_status); }; }; then
14407  ac_lo=$ac_mid; break
14408else
14409  echo "$as_me: failed program was:" >&5
14410sed 's/^/| /' conftest.$ac_ext >&5
14411
14412ac_hi=`expr '(' $ac_mid ')' - 1`
14413                       if test $ac_mid -le $ac_hi; then
14414                         ac_lo= ac_hi=
14415                         break
14416                       fi
14417                       ac_mid=`expr 2 '*' $ac_mid`
14418fi
14419rm -f conftest.$ac_objext conftest.$ac_ext
14420  done
14421else
14422  echo "$as_me: failed program was:" >&5
14423sed 's/^/| /' conftest.$ac_ext >&5
14424
14425ac_lo= ac_hi=
14426fi
14427rm -f conftest.$ac_objext conftest.$ac_ext
14428fi
14429rm -f conftest.$ac_objext conftest.$ac_ext
14430# Binary search between lo and hi bounds.
14431while test "x$ac_lo" != "x$ac_hi"; do
14432  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14433  cat >conftest.$ac_ext <<_ACEOF
14434#line $LINENO "configure"
14435/* confdefs.h.  */
14436_ACEOF
14437cat confdefs.h >>conftest.$ac_ext
14438cat >>conftest.$ac_ext <<_ACEOF
14439/* end confdefs.h.  */
14440$ac_includes_default
14441int
14442main ()
14443{
14444static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14445test_array [0] = 0
14446
14447  ;
14448  return 0;
14449}
14450_ACEOF
14451rm -f conftest.$ac_objext
14452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14453  (eval $ac_compile) 2>&5
14454  ac_status=$?
14455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456  (exit $ac_status); } &&
14457         { ac_try='test -s conftest.$ac_objext'
14458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14459  (eval $ac_try) 2>&5
14460  ac_status=$?
14461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462  (exit $ac_status); }; }; then
14463  ac_hi=$ac_mid
14464else
14465  echo "$as_me: failed program was:" >&5
14466sed 's/^/| /' conftest.$ac_ext >&5
14467
14468ac_lo=`expr '(' $ac_mid ')' + 1`
14469fi
14470rm -f conftest.$ac_objext conftest.$ac_ext
14471done
14472case $ac_lo in
14473?*) ac_cv_sizeof_int=$ac_lo;;
14474'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14475See \`config.log' for more details." >&5
14476echo "$as_me: error: cannot compute sizeof (int), 77
14477See \`config.log' for more details." >&2;}
14478   { (exit 1); exit 1; }; } ;;
14479esac
14480else
14481  if test "$cross_compiling" = yes; then
14482  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14483See \`config.log' for more details." >&5
14484echo "$as_me: error: cannot run test program while cross compiling
14485See \`config.log' for more details." >&2;}
14486   { (exit 1); exit 1; }; }
14487else
14488  cat >conftest.$ac_ext <<_ACEOF
14489#line $LINENO "configure"
14490/* confdefs.h.  */
14491_ACEOF
14492cat confdefs.h >>conftest.$ac_ext
14493cat >>conftest.$ac_ext <<_ACEOF
14494/* end confdefs.h.  */
14495$ac_includes_default
14496long longval () { return (long) (sizeof (int)); }
14497unsigned long ulongval () { return (long) (sizeof (int)); }
14498#include <stdio.h>
14499#include <stdlib.h>
14500int
14501main ()
14502{
14503
14504  FILE *f = fopen ("conftest.val", "w");
14505  if (! f)
14506    exit (1);
14507  if (((long) (sizeof (int))) < 0)
14508    {
14509      long i = longval ();
14510      if (i != ((long) (sizeof (int))))
14511	exit (1);
14512      fprintf (f, "%ld\n", i);
14513    }
14514  else
14515    {
14516      unsigned long i = ulongval ();
14517      if (i != ((long) (sizeof (int))))
14518	exit (1);
14519      fprintf (f, "%lu\n", i);
14520    }
14521  exit (ferror (f) || fclose (f) != 0);
14522
14523  ;
14524  return 0;
14525}
14526_ACEOF
14527rm -f conftest$ac_exeext
14528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14529  (eval $ac_link) 2>&5
14530  ac_status=$?
14531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534  (eval $ac_try) 2>&5
14535  ac_status=$?
14536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537  (exit $ac_status); }; }; then
14538  ac_cv_sizeof_int=`cat conftest.val`
14539else
14540  echo "$as_me: program exited with status $ac_status" >&5
14541echo "$as_me: failed program was:" >&5
14542sed 's/^/| /' conftest.$ac_ext >&5
14543
14544( exit $ac_status )
14545{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14546See \`config.log' for more details." >&5
14547echo "$as_me: error: cannot compute sizeof (int), 77
14548See \`config.log' for more details." >&2;}
14549   { (exit 1); exit 1; }; }
14550fi
14551rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14552fi
14553fi
14554rm -f conftest.val
14555else
14556  ac_cv_sizeof_int=0
14557fi
14558fi
14559echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14560echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14561cat >>confdefs.h <<_ACEOF
14562#define SIZEOF_INT $ac_cv_sizeof_int
14563_ACEOF
14564
14565
14566echo "$as_me:$LINENO: checking for long" >&5
14567echo $ECHO_N "checking for long... $ECHO_C" >&6
14568if test "${ac_cv_type_long+set}" = set; then
14569  echo $ECHO_N "(cached) $ECHO_C" >&6
14570else
14571  cat >conftest.$ac_ext <<_ACEOF
14572#line $LINENO "configure"
14573/* confdefs.h.  */
14574_ACEOF
14575cat confdefs.h >>conftest.$ac_ext
14576cat >>conftest.$ac_ext <<_ACEOF
14577/* end confdefs.h.  */
14578$ac_includes_default
14579int
14580main ()
14581{
14582if ((long *) 0)
14583  return 0;
14584if (sizeof (long))
14585  return 0;
14586  ;
14587  return 0;
14588}
14589_ACEOF
14590rm -f conftest.$ac_objext
14591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14592  (eval $ac_compile) 2>&5
14593  ac_status=$?
14594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595  (exit $ac_status); } &&
14596         { ac_try='test -s conftest.$ac_objext'
14597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598  (eval $ac_try) 2>&5
14599  ac_status=$?
14600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601  (exit $ac_status); }; }; then
14602  ac_cv_type_long=yes
14603else
14604  echo "$as_me: failed program was:" >&5
14605sed 's/^/| /' conftest.$ac_ext >&5
14606
14607ac_cv_type_long=no
14608fi
14609rm -f conftest.$ac_objext conftest.$ac_ext
14610fi
14611echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14612echo "${ECHO_T}$ac_cv_type_long" >&6
14613
14614echo "$as_me:$LINENO: checking size of long" >&5
14615echo $ECHO_N "checking size of long... $ECHO_C" >&6
14616if test "${ac_cv_sizeof_long+set}" = set; then
14617  echo $ECHO_N "(cached) $ECHO_C" >&6
14618else
14619  if test "$ac_cv_type_long" = yes; then
14620  # The cast to unsigned long works around a bug in the HP C Compiler
14621  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14622  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14623  # This bug is HP SR number 8606223364.
14624  if test "$cross_compiling" = yes; then
14625  # Depending upon the size, compute the lo and hi bounds.
14626cat >conftest.$ac_ext <<_ACEOF
14627#line $LINENO "configure"
14628/* confdefs.h.  */
14629_ACEOF
14630cat confdefs.h >>conftest.$ac_ext
14631cat >>conftest.$ac_ext <<_ACEOF
14632/* end confdefs.h.  */
14633$ac_includes_default
14634int
14635main ()
14636{
14637static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14638test_array [0] = 0
14639
14640  ;
14641  return 0;
14642}
14643_ACEOF
14644rm -f conftest.$ac_objext
14645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14646  (eval $ac_compile) 2>&5
14647  ac_status=$?
14648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649  (exit $ac_status); } &&
14650         { ac_try='test -s conftest.$ac_objext'
14651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14652  (eval $ac_try) 2>&5
14653  ac_status=$?
14654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655  (exit $ac_status); }; }; then
14656  ac_lo=0 ac_mid=0
14657  while :; do
14658    cat >conftest.$ac_ext <<_ACEOF
14659#line $LINENO "configure"
14660/* confdefs.h.  */
14661_ACEOF
14662cat confdefs.h >>conftest.$ac_ext
14663cat >>conftest.$ac_ext <<_ACEOF
14664/* end confdefs.h.  */
14665$ac_includes_default
14666int
14667main ()
14668{
14669static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14670test_array [0] = 0
14671
14672  ;
14673  return 0;
14674}
14675_ACEOF
14676rm -f conftest.$ac_objext
14677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14678  (eval $ac_compile) 2>&5
14679  ac_status=$?
14680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681  (exit $ac_status); } &&
14682         { ac_try='test -s conftest.$ac_objext'
14683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14684  (eval $ac_try) 2>&5
14685  ac_status=$?
14686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687  (exit $ac_status); }; }; then
14688  ac_hi=$ac_mid; break
14689else
14690  echo "$as_me: failed program was:" >&5
14691sed 's/^/| /' conftest.$ac_ext >&5
14692
14693ac_lo=`expr $ac_mid + 1`
14694                    if test $ac_lo -le $ac_mid; then
14695                      ac_lo= ac_hi=
14696                      break
14697                    fi
14698                    ac_mid=`expr 2 '*' $ac_mid + 1`
14699fi
14700rm -f conftest.$ac_objext conftest.$ac_ext
14701  done
14702else
14703  echo "$as_me: failed program was:" >&5
14704sed 's/^/| /' conftest.$ac_ext >&5
14705
14706cat >conftest.$ac_ext <<_ACEOF
14707#line $LINENO "configure"
14708/* confdefs.h.  */
14709_ACEOF
14710cat confdefs.h >>conftest.$ac_ext
14711cat >>conftest.$ac_ext <<_ACEOF
14712/* end confdefs.h.  */
14713$ac_includes_default
14714int
14715main ()
14716{
14717static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14718test_array [0] = 0
14719
14720  ;
14721  return 0;
14722}
14723_ACEOF
14724rm -f conftest.$ac_objext
14725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14726  (eval $ac_compile) 2>&5
14727  ac_status=$?
14728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729  (exit $ac_status); } &&
14730         { ac_try='test -s conftest.$ac_objext'
14731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732  (eval $ac_try) 2>&5
14733  ac_status=$?
14734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735  (exit $ac_status); }; }; then
14736  ac_hi=-1 ac_mid=-1
14737  while :; do
14738    cat >conftest.$ac_ext <<_ACEOF
14739#line $LINENO "configure"
14740/* confdefs.h.  */
14741_ACEOF
14742cat confdefs.h >>conftest.$ac_ext
14743cat >>conftest.$ac_ext <<_ACEOF
14744/* end confdefs.h.  */
14745$ac_includes_default
14746int
14747main ()
14748{
14749static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14750test_array [0] = 0
14751
14752  ;
14753  return 0;
14754}
14755_ACEOF
14756rm -f conftest.$ac_objext
14757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14758  (eval $ac_compile) 2>&5
14759  ac_status=$?
14760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761  (exit $ac_status); } &&
14762         { ac_try='test -s conftest.$ac_objext'
14763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14764  (eval $ac_try) 2>&5
14765  ac_status=$?
14766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767  (exit $ac_status); }; }; then
14768  ac_lo=$ac_mid; break
14769else
14770  echo "$as_me: failed program was:" >&5
14771sed 's/^/| /' conftest.$ac_ext >&5
14772
14773ac_hi=`expr '(' $ac_mid ')' - 1`
14774                       if test $ac_mid -le $ac_hi; then
14775                         ac_lo= ac_hi=
14776                         break
14777                       fi
14778                       ac_mid=`expr 2 '*' $ac_mid`
14779fi
14780rm -f conftest.$ac_objext conftest.$ac_ext
14781  done
14782else
14783  echo "$as_me: failed program was:" >&5
14784sed 's/^/| /' conftest.$ac_ext >&5
14785
14786ac_lo= ac_hi=
14787fi
14788rm -f conftest.$ac_objext conftest.$ac_ext
14789fi
14790rm -f conftest.$ac_objext conftest.$ac_ext
14791# Binary search between lo and hi bounds.
14792while test "x$ac_lo" != "x$ac_hi"; do
14793  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14794  cat >conftest.$ac_ext <<_ACEOF
14795#line $LINENO "configure"
14796/* confdefs.h.  */
14797_ACEOF
14798cat confdefs.h >>conftest.$ac_ext
14799cat >>conftest.$ac_ext <<_ACEOF
14800/* end confdefs.h.  */
14801$ac_includes_default
14802int
14803main ()
14804{
14805static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14806test_array [0] = 0
14807
14808  ;
14809  return 0;
14810}
14811_ACEOF
14812rm -f conftest.$ac_objext
14813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14814  (eval $ac_compile) 2>&5
14815  ac_status=$?
14816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817  (exit $ac_status); } &&
14818         { ac_try='test -s conftest.$ac_objext'
14819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14820  (eval $ac_try) 2>&5
14821  ac_status=$?
14822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823  (exit $ac_status); }; }; then
14824  ac_hi=$ac_mid
14825else
14826  echo "$as_me: failed program was:" >&5
14827sed 's/^/| /' conftest.$ac_ext >&5
14828
14829ac_lo=`expr '(' $ac_mid ')' + 1`
14830fi
14831rm -f conftest.$ac_objext conftest.$ac_ext
14832done
14833case $ac_lo in
14834?*) ac_cv_sizeof_long=$ac_lo;;
14835'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14836See \`config.log' for more details." >&5
14837echo "$as_me: error: cannot compute sizeof (long), 77
14838See \`config.log' for more details." >&2;}
14839   { (exit 1); exit 1; }; } ;;
14840esac
14841else
14842  if test "$cross_compiling" = yes; then
14843  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14844See \`config.log' for more details." >&5
14845echo "$as_me: error: cannot run test program while cross compiling
14846See \`config.log' for more details." >&2;}
14847   { (exit 1); exit 1; }; }
14848else
14849  cat >conftest.$ac_ext <<_ACEOF
14850#line $LINENO "configure"
14851/* confdefs.h.  */
14852_ACEOF
14853cat confdefs.h >>conftest.$ac_ext
14854cat >>conftest.$ac_ext <<_ACEOF
14855/* end confdefs.h.  */
14856$ac_includes_default
14857long longval () { return (long) (sizeof (long)); }
14858unsigned long ulongval () { return (long) (sizeof (long)); }
14859#include <stdio.h>
14860#include <stdlib.h>
14861int
14862main ()
14863{
14864
14865  FILE *f = fopen ("conftest.val", "w");
14866  if (! f)
14867    exit (1);
14868  if (((long) (sizeof (long))) < 0)
14869    {
14870      long i = longval ();
14871      if (i != ((long) (sizeof (long))))
14872	exit (1);
14873      fprintf (f, "%ld\n", i);
14874    }
14875  else
14876    {
14877      unsigned long i = ulongval ();
14878      if (i != ((long) (sizeof (long))))
14879	exit (1);
14880      fprintf (f, "%lu\n", i);
14881    }
14882  exit (ferror (f) || fclose (f) != 0);
14883
14884  ;
14885  return 0;
14886}
14887_ACEOF
14888rm -f conftest$ac_exeext
14889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14890  (eval $ac_link) 2>&5
14891  ac_status=$?
14892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14895  (eval $ac_try) 2>&5
14896  ac_status=$?
14897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898  (exit $ac_status); }; }; then
14899  ac_cv_sizeof_long=`cat conftest.val`
14900else
14901  echo "$as_me: program exited with status $ac_status" >&5
14902echo "$as_me: failed program was:" >&5
14903sed 's/^/| /' conftest.$ac_ext >&5
14904
14905( exit $ac_status )
14906{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14907See \`config.log' for more details." >&5
14908echo "$as_me: error: cannot compute sizeof (long), 77
14909See \`config.log' for more details." >&2;}
14910   { (exit 1); exit 1; }; }
14911fi
14912rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14913fi
14914fi
14915rm -f conftest.val
14916else
14917  ac_cv_sizeof_long=0
14918fi
14919fi
14920echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14921echo "${ECHO_T}$ac_cv_sizeof_long" >&6
14922cat >>confdefs.h <<_ACEOF
14923#define SIZEOF_LONG $ac_cv_sizeof_long
14924_ACEOF
14925
14926
14927
14928echo "$as_me:$LINENO: checking for s_char" >&5
14929echo $ECHO_N "checking for s_char... $ECHO_C" >&6
14930if test "${ac_cv_type_s_char+set}" = set; then
14931  echo $ECHO_N "(cached) $ECHO_C" >&6
14932else
14933  cat >conftest.$ac_ext <<_ACEOF
14934#line $LINENO "configure"
14935/* confdefs.h.  */
14936_ACEOF
14937cat confdefs.h >>conftest.$ac_ext
14938cat >>conftest.$ac_ext <<_ACEOF
14939/* end confdefs.h.  */
14940$ac_includes_default
14941int
14942main ()
14943{
14944if ((s_char *) 0)
14945  return 0;
14946if (sizeof (s_char))
14947  return 0;
14948  ;
14949  return 0;
14950}
14951_ACEOF
14952rm -f conftest.$ac_objext
14953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14954  (eval $ac_compile) 2>&5
14955  ac_status=$?
14956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957  (exit $ac_status); } &&
14958         { ac_try='test -s conftest.$ac_objext'
14959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14960  (eval $ac_try) 2>&5
14961  ac_status=$?
14962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963  (exit $ac_status); }; }; then
14964  ac_cv_type_s_char=yes
14965else
14966  echo "$as_me: failed program was:" >&5
14967sed 's/^/| /' conftest.$ac_ext >&5
14968
14969ac_cv_type_s_char=no
14970fi
14971rm -f conftest.$ac_objext conftest.$ac_ext
14972fi
14973echo "$as_me:$LINENO: result: $ac_cv_type_s_char" >&5
14974echo "${ECHO_T}$ac_cv_type_s_char" >&6
14975if test $ac_cv_type_s_char = yes; then
14976
14977cat >>confdefs.h <<_ACEOF
14978#define HAVE_S_CHAR 1
14979_ACEOF
14980
14981
14982fi
14983
14984case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
14985 *yes)
14986    # We have a typedef for s_char.  Might as well believe it...
14987    ;;
14988 no0no)
14989    # We have signed chars, can't say 'signed char', no s_char typedef.
14990
14991cat >>confdefs.h <<\_ACEOF
14992#define NEED_S_CHAR_TYPEDEF 1
14993_ACEOF
14994
14995    ;;
14996 no1no)
14997    # We have signed chars, can say 'signed char', no s_char typedef.
14998    cat >>confdefs.h <<\_ACEOF
14999#define NEED_S_CHAR_TYPEDEF 1
15000_ACEOF
15001
15002    ;;
15003 yes0no)
15004    # We have unsigned chars, can't say 'signed char', no s_char typedef.
15005    { { echo "$as_me:$LINENO: error: No way to specify a signed character!" >&5
15006echo "$as_me: error: No way to specify a signed character!" >&2;}
15007   { (exit 1); exit 1; }; }
15008    ;;
15009 yes1no)
15010    # We have unsigned chars, can say 'signed char', no s_char typedef.
15011    cat >>confdefs.h <<\_ACEOF
15012#define NEED_S_CHAR_TYPEDEF 1
15013_ACEOF
15014
15015    ;;
15016esac
15017echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
15018echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
15019if test "${ac_cv_type_uid_t+set}" = set; then
15020  echo $ECHO_N "(cached) $ECHO_C" >&6
15021else
15022  cat >conftest.$ac_ext <<_ACEOF
15023#line $LINENO "configure"
15024/* confdefs.h.  */
15025_ACEOF
15026cat confdefs.h >>conftest.$ac_ext
15027cat >>conftest.$ac_ext <<_ACEOF
15028/* end confdefs.h.  */
15029#include <sys/types.h>
15030
15031_ACEOF
15032if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15033  $EGREP "uid_t" >/dev/null 2>&1; then
15034  ac_cv_type_uid_t=yes
15035else
15036  ac_cv_type_uid_t=no
15037fi
15038rm -f conftest*
15039
15040fi
15041echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
15042echo "${ECHO_T}$ac_cv_type_uid_t" >&6
15043if test $ac_cv_type_uid_t = no; then
15044
15045cat >>confdefs.h <<\_ACEOF
15046#define uid_t int
15047_ACEOF
15048
15049
15050cat >>confdefs.h <<\_ACEOF
15051#define gid_t int
15052_ACEOF
15053
15054fi
15055
15056
15057case "$host" in
15058 *-*-linux*)
15059
15060
15061for ac_func in __adjtimex __ntp_gettime
15062do
15063as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15064echo "$as_me:$LINENO: checking for $ac_func" >&5
15065echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15066if eval "test \"\${$as_ac_var+set}\" = set"; then
15067  echo $ECHO_N "(cached) $ECHO_C" >&6
15068else
15069  cat >conftest.$ac_ext <<_ACEOF
15070#line $LINENO "configure"
15071/* confdefs.h.  */
15072_ACEOF
15073cat confdefs.h >>conftest.$ac_ext
15074cat >>conftest.$ac_ext <<_ACEOF
15075/* end confdefs.h.  */
15076/* System header to define __stub macros and hopefully few prototypes,
15077    which can conflict with char $ac_func (); below.
15078    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15079    <limits.h> exists even on freestanding compilers.  */
15080#ifdef __STDC__
15081# include <limits.h>
15082#else
15083# include <assert.h>
15084#endif
15085/* Override any gcc2 internal prototype to avoid an error.  */
15086#ifdef __cplusplus
15087extern "C"
15088{
15089#endif
15090/* We use char because int might match the return type of a gcc2
15091   builtin and then its argument prototype would still apply.  */
15092char $ac_func ();
15093/* The GNU C library defines this for functions which it implements
15094    to always fail with ENOSYS.  Some functions are actually named
15095    something starting with __ and the normal name is an alias.  */
15096#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15097choke me
15098#else
15099char (*f) () = $ac_func;
15100#endif
15101#ifdef __cplusplus
15102}
15103#endif
15104
15105int
15106main ()
15107{
15108return f != $ac_func;
15109  ;
15110  return 0;
15111}
15112_ACEOF
15113rm -f conftest.$ac_objext conftest$ac_exeext
15114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15115  (eval $ac_link) 2>&5
15116  ac_status=$?
15117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118  (exit $ac_status); } &&
15119         { ac_try='test -s conftest$ac_exeext'
15120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121  (eval $ac_try) 2>&5
15122  ac_status=$?
15123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124  (exit $ac_status); }; }; then
15125  eval "$as_ac_var=yes"
15126else
15127  echo "$as_me: failed program was:" >&5
15128sed 's/^/| /' conftest.$ac_ext >&5
15129
15130eval "$as_ac_var=no"
15131fi
15132rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15133fi
15134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15135echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15136if test `eval echo '${'$as_ac_var'}'` = yes; then
15137  cat >>confdefs.h <<_ACEOF
15138#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15139_ACEOF
15140
15141fi
15142done
15143
15144    ;;
15145esac
15146case "$host" in
15147 *-*-aix[45]*)
15148	# (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
15149	# (returning ENOSYS).  I didn't check 4.2.  If, in the future,
15150	# IBM pulls its thumbs out long enough to implement clock_settime,
15151	# this conditional will need to change.  Maybe use AC_TRY_RUN
15152	# instead to try to set the time to itself and check errno.
15153    ;;
15154 *)
15155
15156for ac_func in clock_gettime clock_settime
15157do
15158as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15159echo "$as_me:$LINENO: checking for $ac_func" >&5
15160echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15161if eval "test \"\${$as_ac_var+set}\" = set"; then
15162  echo $ECHO_N "(cached) $ECHO_C" >&6
15163else
15164  cat >conftest.$ac_ext <<_ACEOF
15165#line $LINENO "configure"
15166/* confdefs.h.  */
15167_ACEOF
15168cat confdefs.h >>conftest.$ac_ext
15169cat >>conftest.$ac_ext <<_ACEOF
15170/* end confdefs.h.  */
15171/* System header to define __stub macros and hopefully few prototypes,
15172    which can conflict with char $ac_func (); below.
15173    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15174    <limits.h> exists even on freestanding compilers.  */
15175#ifdef __STDC__
15176# include <limits.h>
15177#else
15178# include <assert.h>
15179#endif
15180/* Override any gcc2 internal prototype to avoid an error.  */
15181#ifdef __cplusplus
15182extern "C"
15183{
15184#endif
15185/* We use char because int might match the return type of a gcc2
15186   builtin and then its argument prototype would still apply.  */
15187char $ac_func ();
15188/* The GNU C library defines this for functions which it implements
15189    to always fail with ENOSYS.  Some functions are actually named
15190    something starting with __ and the normal name is an alias.  */
15191#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15192choke me
15193#else
15194char (*f) () = $ac_func;
15195#endif
15196#ifdef __cplusplus
15197}
15198#endif
15199
15200int
15201main ()
15202{
15203return f != $ac_func;
15204  ;
15205  return 0;
15206}
15207_ACEOF
15208rm -f conftest.$ac_objext conftest$ac_exeext
15209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15210  (eval $ac_link) 2>&5
15211  ac_status=$?
15212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213  (exit $ac_status); } &&
15214         { ac_try='test -s conftest$ac_exeext'
15215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15216  (eval $ac_try) 2>&5
15217  ac_status=$?
15218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219  (exit $ac_status); }; }; then
15220  eval "$as_ac_var=yes"
15221else
15222  echo "$as_me: failed program was:" >&5
15223sed 's/^/| /' conftest.$ac_ext >&5
15224
15225eval "$as_ac_var=no"
15226fi
15227rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15228fi
15229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15230echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15231if test `eval echo '${'$as_ac_var'}'` = yes; then
15232  cat >>confdefs.h <<_ACEOF
15233#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15234_ACEOF
15235
15236fi
15237done
15238
15239    ;;
15240esac
15241
15242for ac_func in daemon
15243do
15244as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15245echo "$as_me:$LINENO: checking for $ac_func" >&5
15246echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15247if eval "test \"\${$as_ac_var+set}\" = set"; then
15248  echo $ECHO_N "(cached) $ECHO_C" >&6
15249else
15250  cat >conftest.$ac_ext <<_ACEOF
15251#line $LINENO "configure"
15252/* confdefs.h.  */
15253_ACEOF
15254cat confdefs.h >>conftest.$ac_ext
15255cat >>conftest.$ac_ext <<_ACEOF
15256/* end confdefs.h.  */
15257/* System header to define __stub macros and hopefully few prototypes,
15258    which can conflict with char $ac_func (); below.
15259    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15260    <limits.h> exists even on freestanding compilers.  */
15261#ifdef __STDC__
15262# include <limits.h>
15263#else
15264# include <assert.h>
15265#endif
15266/* Override any gcc2 internal prototype to avoid an error.  */
15267#ifdef __cplusplus
15268extern "C"
15269{
15270#endif
15271/* We use char because int might match the return type of a gcc2
15272   builtin and then its argument prototype would still apply.  */
15273char $ac_func ();
15274/* The GNU C library defines this for functions which it implements
15275    to always fail with ENOSYS.  Some functions are actually named
15276    something starting with __ and the normal name is an alias.  */
15277#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15278choke me
15279#else
15280char (*f) () = $ac_func;
15281#endif
15282#ifdef __cplusplus
15283}
15284#endif
15285
15286int
15287main ()
15288{
15289return f != $ac_func;
15290  ;
15291  return 0;
15292}
15293_ACEOF
15294rm -f conftest.$ac_objext conftest$ac_exeext
15295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15296  (eval $ac_link) 2>&5
15297  ac_status=$?
15298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299  (exit $ac_status); } &&
15300         { ac_try='test -s conftest$ac_exeext'
15301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302  (eval $ac_try) 2>&5
15303  ac_status=$?
15304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305  (exit $ac_status); }; }; then
15306  eval "$as_ac_var=yes"
15307else
15308  echo "$as_me: failed program was:" >&5
15309sed 's/^/| /' conftest.$ac_ext >&5
15310
15311eval "$as_ac_var=no"
15312fi
15313rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15314fi
15315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15316echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15317if test `eval echo '${'$as_ac_var'}'` = yes; then
15318  cat >>confdefs.h <<_ACEOF
15319#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15320_ACEOF
15321
15322fi
15323done
15324
15325
15326for ac_func in finite
15327do
15328as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15329echo "$as_me:$LINENO: checking for $ac_func" >&5
15330echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15331if eval "test \"\${$as_ac_var+set}\" = set"; then
15332  echo $ECHO_N "(cached) $ECHO_C" >&6
15333else
15334  cat >conftest.$ac_ext <<_ACEOF
15335#line $LINENO "configure"
15336/* confdefs.h.  */
15337_ACEOF
15338cat confdefs.h >>conftest.$ac_ext
15339cat >>conftest.$ac_ext <<_ACEOF
15340/* end confdefs.h.  */
15341/* System header to define __stub macros and hopefully few prototypes,
15342    which can conflict with char $ac_func (); below.
15343    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15344    <limits.h> exists even on freestanding compilers.  */
15345#ifdef __STDC__
15346# include <limits.h>
15347#else
15348# include <assert.h>
15349#endif
15350/* Override any gcc2 internal prototype to avoid an error.  */
15351#ifdef __cplusplus
15352extern "C"
15353{
15354#endif
15355/* We use char because int might match the return type of a gcc2
15356   builtin and then its argument prototype would still apply.  */
15357char $ac_func ();
15358/* The GNU C library defines this for functions which it implements
15359    to always fail with ENOSYS.  Some functions are actually named
15360    something starting with __ and the normal name is an alias.  */
15361#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15362choke me
15363#else
15364char (*f) () = $ac_func;
15365#endif
15366#ifdef __cplusplus
15367}
15368#endif
15369
15370int
15371main ()
15372{
15373return f != $ac_func;
15374  ;
15375  return 0;
15376}
15377_ACEOF
15378rm -f conftest.$ac_objext conftest$ac_exeext
15379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15380  (eval $ac_link) 2>&5
15381  ac_status=$?
15382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383  (exit $ac_status); } &&
15384         { ac_try='test -s conftest$ac_exeext'
15385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15386  (eval $ac_try) 2>&5
15387  ac_status=$?
15388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389  (exit $ac_status); }; }; then
15390  eval "$as_ac_var=yes"
15391else
15392  echo "$as_me: failed program was:" >&5
15393sed 's/^/| /' conftest.$ac_ext >&5
15394
15395eval "$as_ac_var=no"
15396fi
15397rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15398fi
15399echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15400echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15401if test `eval echo '${'$as_ac_var'}'` = yes; then
15402  cat >>confdefs.h <<_ACEOF
15403#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15404_ACEOF
15405
15406else
15407
15408for ac_func in isfinite
15409do
15410as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15411echo "$as_me:$LINENO: checking for $ac_func" >&5
15412echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15413if eval "test \"\${$as_ac_var+set}\" = set"; then
15414  echo $ECHO_N "(cached) $ECHO_C" >&6
15415else
15416  cat >conftest.$ac_ext <<_ACEOF
15417#line $LINENO "configure"
15418/* confdefs.h.  */
15419_ACEOF
15420cat confdefs.h >>conftest.$ac_ext
15421cat >>conftest.$ac_ext <<_ACEOF
15422/* end confdefs.h.  */
15423/* System header to define __stub macros and hopefully few prototypes,
15424    which can conflict with char $ac_func (); below.
15425    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15426    <limits.h> exists even on freestanding compilers.  */
15427#ifdef __STDC__
15428# include <limits.h>
15429#else
15430# include <assert.h>
15431#endif
15432/* Override any gcc2 internal prototype to avoid an error.  */
15433#ifdef __cplusplus
15434extern "C"
15435{
15436#endif
15437/* We use char because int might match the return type of a gcc2
15438   builtin and then its argument prototype would still apply.  */
15439char $ac_func ();
15440/* The GNU C library defines this for functions which it implements
15441    to always fail with ENOSYS.  Some functions are actually named
15442    something starting with __ and the normal name is an alias.  */
15443#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15444choke me
15445#else
15446char (*f) () = $ac_func;
15447#endif
15448#ifdef __cplusplus
15449}
15450#endif
15451
15452int
15453main ()
15454{
15455return f != $ac_func;
15456  ;
15457  return 0;
15458}
15459_ACEOF
15460rm -f conftest.$ac_objext conftest$ac_exeext
15461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15462  (eval $ac_link) 2>&5
15463  ac_status=$?
15464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465  (exit $ac_status); } &&
15466         { ac_try='test -s conftest$ac_exeext'
15467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468  (eval $ac_try) 2>&5
15469  ac_status=$?
15470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471  (exit $ac_status); }; }; then
15472  eval "$as_ac_var=yes"
15473else
15474  echo "$as_me: failed program was:" >&5
15475sed 's/^/| /' conftest.$ac_ext >&5
15476
15477eval "$as_ac_var=no"
15478fi
15479rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15480fi
15481echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15482echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15483if test `eval echo '${'$as_ac_var'}'` = yes; then
15484  cat >>confdefs.h <<_ACEOF
15485#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15486_ACEOF
15487
15488else
15489  echo "$as_me:$LINENO: checking for isfinite with <math.h>" >&5
15490echo $ECHO_N "checking for isfinite with <math.h>... $ECHO_C" >&6
15491    _libs=$LIBS
15492    LIBS="$LIBS -lm"
15493    cat >conftest.$ac_ext <<_ACEOF
15494#line $LINENO "configure"
15495/* confdefs.h.  */
15496_ACEOF
15497cat confdefs.h >>conftest.$ac_ext
15498cat >>conftest.$ac_ext <<_ACEOF
15499/* end confdefs.h.  */
15500#include <math.h>
15501int
15502main ()
15503{
15504float f = 0.0; isfinite(f)
15505  ;
15506  return 0;
15507}
15508_ACEOF
15509rm -f conftest.$ac_objext conftest$ac_exeext
15510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15511  (eval $ac_link) 2>&5
15512  ac_status=$?
15513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514  (exit $ac_status); } &&
15515         { ac_try='test -s conftest$ac_exeext'
15516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517  (eval $ac_try) 2>&5
15518  ac_status=$?
15519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520  (exit $ac_status); }; }; then
15521  echo "$as_me:$LINENO: result: yes" >&5
15522echo "${ECHO_T}yes" >&6
15523      cat >>confdefs.h <<\_ACEOF
15524#define HAVE_ISFINITE 1
15525_ACEOF
15526
15527else
15528  echo "$as_me: failed program was:" >&5
15529sed 's/^/| /' conftest.$ac_ext >&5
15530
15531echo "$as_me:$LINENO: result: no" >&5
15532echo "${ECHO_T}no" >&6
15533fi
15534rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15535    LIBS=$_libs
15536fi
15537done
15538
15539fi
15540done
15541
15542
15543
15544
15545
15546for ac_func in getbootfile getclock getdtablesize getrusage
15547do
15548as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15549echo "$as_me:$LINENO: checking for $ac_func" >&5
15550echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15551if eval "test \"\${$as_ac_var+set}\" = set"; then
15552  echo $ECHO_N "(cached) $ECHO_C" >&6
15553else
15554  cat >conftest.$ac_ext <<_ACEOF
15555#line $LINENO "configure"
15556/* confdefs.h.  */
15557_ACEOF
15558cat confdefs.h >>conftest.$ac_ext
15559cat >>conftest.$ac_ext <<_ACEOF
15560/* end confdefs.h.  */
15561/* System header to define __stub macros and hopefully few prototypes,
15562    which can conflict with char $ac_func (); below.
15563    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15564    <limits.h> exists even on freestanding compilers.  */
15565#ifdef __STDC__
15566# include <limits.h>
15567#else
15568# include <assert.h>
15569#endif
15570/* Override any gcc2 internal prototype to avoid an error.  */
15571#ifdef __cplusplus
15572extern "C"
15573{
15574#endif
15575/* We use char because int might match the return type of a gcc2
15576   builtin and then its argument prototype would still apply.  */
15577char $ac_func ();
15578/* The GNU C library defines this for functions which it implements
15579    to always fail with ENOSYS.  Some functions are actually named
15580    something starting with __ and the normal name is an alias.  */
15581#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15582choke me
15583#else
15584char (*f) () = $ac_func;
15585#endif
15586#ifdef __cplusplus
15587}
15588#endif
15589
15590int
15591main ()
15592{
15593return f != $ac_func;
15594  ;
15595  return 0;
15596}
15597_ACEOF
15598rm -f conftest.$ac_objext conftest$ac_exeext
15599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15600  (eval $ac_link) 2>&5
15601  ac_status=$?
15602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603  (exit $ac_status); } &&
15604         { ac_try='test -s conftest$ac_exeext'
15605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606  (eval $ac_try) 2>&5
15607  ac_status=$?
15608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609  (exit $ac_status); }; }; then
15610  eval "$as_ac_var=yes"
15611else
15612  echo "$as_me: failed program was:" >&5
15613sed 's/^/| /' conftest.$ac_ext >&5
15614
15615eval "$as_ac_var=no"
15616fi
15617rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15618fi
15619echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15620echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15621if test `eval echo '${'$as_ac_var'}'` = yes; then
15622  cat >>confdefs.h <<_ACEOF
15623#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15624_ACEOF
15625
15626fi
15627done
15628
15629echo "$as_me:$LINENO: checking for gettimeofday" >&5
15630echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
15631if test "${ac_cv_func_gettimeofday+set}" = set; then
15632  echo $ECHO_N "(cached) $ECHO_C" >&6
15633else
15634  cat >conftest.$ac_ext <<_ACEOF
15635#line $LINENO "configure"
15636/* confdefs.h.  */
15637_ACEOF
15638cat confdefs.h >>conftest.$ac_ext
15639cat >>conftest.$ac_ext <<_ACEOF
15640/* end confdefs.h.  */
15641/* System header to define __stub macros and hopefully few prototypes,
15642    which can conflict with char gettimeofday (); below.
15643    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15644    <limits.h> exists even on freestanding compilers.  */
15645#ifdef __STDC__
15646# include <limits.h>
15647#else
15648# include <assert.h>
15649#endif
15650/* Override any gcc2 internal prototype to avoid an error.  */
15651#ifdef __cplusplus
15652extern "C"
15653{
15654#endif
15655/* We use char because int might match the return type of a gcc2
15656   builtin and then its argument prototype would still apply.  */
15657char gettimeofday ();
15658/* The GNU C library defines this for functions which it implements
15659    to always fail with ENOSYS.  Some functions are actually named
15660    something starting with __ and the normal name is an alias.  */
15661#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
15662choke me
15663#else
15664char (*f) () = gettimeofday;
15665#endif
15666#ifdef __cplusplus
15667}
15668#endif
15669
15670int
15671main ()
15672{
15673return f != gettimeofday;
15674  ;
15675  return 0;
15676}
15677_ACEOF
15678rm -f conftest.$ac_objext conftest$ac_exeext
15679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15680  (eval $ac_link) 2>&5
15681  ac_status=$?
15682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683  (exit $ac_status); } &&
15684         { ac_try='test -s conftest$ac_exeext'
15685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686  (eval $ac_try) 2>&5
15687  ac_status=$?
15688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689  (exit $ac_status); }; }; then
15690  ac_cv_func_gettimeofday=yes
15691else
15692  echo "$as_me: failed program was:" >&5
15693sed 's/^/| /' conftest.$ac_ext >&5
15694
15695ac_cv_func_gettimeofday=no
15696fi
15697rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15698fi
15699echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
15700echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
15701if test $ac_cv_func_gettimeofday = yes; then
15702  :
15703else
15704
15705case "$host" in
15706  *-*-mpeix*) ac_cv_func_gettimeofday=yes
15707    ;;
15708esac
15709fi
15710
15711case "$host" in
15712 *-pc-cygwin*)
15713    ;;
15714 *)
15715for ac_func in getuid
15716do
15717as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15718echo "$as_me:$LINENO: checking for $ac_func" >&5
15719echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15720if eval "test \"\${$as_ac_var+set}\" = set"; then
15721  echo $ECHO_N "(cached) $ECHO_C" >&6
15722else
15723  cat >conftest.$ac_ext <<_ACEOF
15724#line $LINENO "configure"
15725/* confdefs.h.  */
15726_ACEOF
15727cat confdefs.h >>conftest.$ac_ext
15728cat >>conftest.$ac_ext <<_ACEOF
15729/* end confdefs.h.  */
15730/* System header to define __stub macros and hopefully few prototypes,
15731    which can conflict with char $ac_func (); below.
15732    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15733    <limits.h> exists even on freestanding compilers.  */
15734#ifdef __STDC__
15735# include <limits.h>
15736#else
15737# include <assert.h>
15738#endif
15739/* Override any gcc2 internal prototype to avoid an error.  */
15740#ifdef __cplusplus
15741extern "C"
15742{
15743#endif
15744/* We use char because int might match the return type of a gcc2
15745   builtin and then its argument prototype would still apply.  */
15746char $ac_func ();
15747/* The GNU C library defines this for functions which it implements
15748    to always fail with ENOSYS.  Some functions are actually named
15749    something starting with __ and the normal name is an alias.  */
15750#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15751choke me
15752#else
15753char (*f) () = $ac_func;
15754#endif
15755#ifdef __cplusplus
15756}
15757#endif
15758
15759int
15760main ()
15761{
15762return f != $ac_func;
15763  ;
15764  return 0;
15765}
15766_ACEOF
15767rm -f conftest.$ac_objext conftest$ac_exeext
15768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15769  (eval $ac_link) 2>&5
15770  ac_status=$?
15771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772  (exit $ac_status); } &&
15773         { ac_try='test -s conftest$ac_exeext'
15774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775  (eval $ac_try) 2>&5
15776  ac_status=$?
15777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778  (exit $ac_status); }; }; then
15779  eval "$as_ac_var=yes"
15780else
15781  echo "$as_me: failed program was:" >&5
15782sed 's/^/| /' conftest.$ac_ext >&5
15783
15784eval "$as_ac_var=no"
15785fi
15786rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15787fi
15788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15789echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15790if test `eval echo '${'$as_ac_var'}'` = yes; then
15791  cat >>confdefs.h <<_ACEOF
15792#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15793_ACEOF
15794
15795fi
15796done
15797
15798    ;;
15799esac
15800
15801for ac_func in hstrerror
15802do
15803as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15804echo "$as_me:$LINENO: checking for $ac_func" >&5
15805echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15806if eval "test \"\${$as_ac_var+set}\" = set"; then
15807  echo $ECHO_N "(cached) $ECHO_C" >&6
15808else
15809  cat >conftest.$ac_ext <<_ACEOF
15810#line $LINENO "configure"
15811/* confdefs.h.  */
15812_ACEOF
15813cat confdefs.h >>conftest.$ac_ext
15814cat >>conftest.$ac_ext <<_ACEOF
15815/* end confdefs.h.  */
15816/* System header to define __stub macros and hopefully few prototypes,
15817    which can conflict with char $ac_func (); below.
15818    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15819    <limits.h> exists even on freestanding compilers.  */
15820#ifdef __STDC__
15821# include <limits.h>
15822#else
15823# include <assert.h>
15824#endif
15825/* Override any gcc2 internal prototype to avoid an error.  */
15826#ifdef __cplusplus
15827extern "C"
15828{
15829#endif
15830/* We use char because int might match the return type of a gcc2
15831   builtin and then its argument prototype would still apply.  */
15832char $ac_func ();
15833/* The GNU C library defines this for functions which it implements
15834    to always fail with ENOSYS.  Some functions are actually named
15835    something starting with __ and the normal name is an alias.  */
15836#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15837choke me
15838#else
15839char (*f) () = $ac_func;
15840#endif
15841#ifdef __cplusplus
15842}
15843#endif
15844
15845int
15846main ()
15847{
15848return f != $ac_func;
15849  ;
15850  return 0;
15851}
15852_ACEOF
15853rm -f conftest.$ac_objext conftest$ac_exeext
15854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15855  (eval $ac_link) 2>&5
15856  ac_status=$?
15857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858  (exit $ac_status); } &&
15859         { ac_try='test -s conftest$ac_exeext'
15860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15861  (eval $ac_try) 2>&5
15862  ac_status=$?
15863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864  (exit $ac_status); }; }; then
15865  eval "$as_ac_var=yes"
15866else
15867  echo "$as_me: failed program was:" >&5
15868sed 's/^/| /' conftest.$ac_ext >&5
15869
15870eval "$as_ac_var=no"
15871fi
15872rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15873fi
15874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15875echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15876if test `eval echo '${'$as_ac_var'}'` = yes; then
15877  cat >>confdefs.h <<_ACEOF
15878#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15879_ACEOF
15880
15881fi
15882done
15883
15884echo "$as_me:$LINENO: checking for inet_ntop" >&5
15885echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
15886if test "${ac_cv_func_inet_ntop+set}" = set; then
15887  echo $ECHO_N "(cached) $ECHO_C" >&6
15888else
15889  cat >conftest.$ac_ext <<_ACEOF
15890#line $LINENO "configure"
15891/* confdefs.h.  */
15892_ACEOF
15893cat confdefs.h >>conftest.$ac_ext
15894cat >>conftest.$ac_ext <<_ACEOF
15895/* end confdefs.h.  */
15896/* System header to define __stub macros and hopefully few prototypes,
15897    which can conflict with char inet_ntop (); below.
15898    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15899    <limits.h> exists even on freestanding compilers.  */
15900#ifdef __STDC__
15901# include <limits.h>
15902#else
15903# include <assert.h>
15904#endif
15905/* Override any gcc2 internal prototype to avoid an error.  */
15906#ifdef __cplusplus
15907extern "C"
15908{
15909#endif
15910/* We use char because int might match the return type of a gcc2
15911   builtin and then its argument prototype would still apply.  */
15912char inet_ntop ();
15913/* The GNU C library defines this for functions which it implements
15914    to always fail with ENOSYS.  Some functions are actually named
15915    something starting with __ and the normal name is an alias.  */
15916#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
15917choke me
15918#else
15919char (*f) () = inet_ntop;
15920#endif
15921#ifdef __cplusplus
15922}
15923#endif
15924
15925int
15926main ()
15927{
15928return f != inet_ntop;
15929  ;
15930  return 0;
15931}
15932_ACEOF
15933rm -f conftest.$ac_objext conftest$ac_exeext
15934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15935  (eval $ac_link) 2>&5
15936  ac_status=$?
15937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938  (exit $ac_status); } &&
15939         { ac_try='test -s conftest$ac_exeext'
15940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15941  (eval $ac_try) 2>&5
15942  ac_status=$?
15943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944  (exit $ac_status); }; }; then
15945  ac_cv_func_inet_ntop=yes
15946else
15947  echo "$as_me: failed program was:" >&5
15948sed 's/^/| /' conftest.$ac_ext >&5
15949
15950ac_cv_func_inet_ntop=no
15951fi
15952rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15953fi
15954echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
15955echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
15956if test $ac_cv_func_inet_ntop = yes; then
15957  :
15958else
15959
15960cat >>confdefs.h <<\_ACEOF
15961#define ISC_PLATFORM_NEEDNTOP 1
15962_ACEOF
15963
15964fi
15965
15966
15967
15968
15969
15970
15971for ac_func in K_open kvm_open memcpy memmove memset
15972do
15973as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15974echo "$as_me:$LINENO: checking for $ac_func" >&5
15975echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15976if eval "test \"\${$as_ac_var+set}\" = set"; then
15977  echo $ECHO_N "(cached) $ECHO_C" >&6
15978else
15979  cat >conftest.$ac_ext <<_ACEOF
15980#line $LINENO "configure"
15981/* confdefs.h.  */
15982_ACEOF
15983cat confdefs.h >>conftest.$ac_ext
15984cat >>conftest.$ac_ext <<_ACEOF
15985/* end confdefs.h.  */
15986/* System header to define __stub macros and hopefully few prototypes,
15987    which can conflict with char $ac_func (); below.
15988    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15989    <limits.h> exists even on freestanding compilers.  */
15990#ifdef __STDC__
15991# include <limits.h>
15992#else
15993# include <assert.h>
15994#endif
15995/* Override any gcc2 internal prototype to avoid an error.  */
15996#ifdef __cplusplus
15997extern "C"
15998{
15999#endif
16000/* We use char because int might match the return type of a gcc2
16001   builtin and then its argument prototype would still apply.  */
16002char $ac_func ();
16003/* The GNU C library defines this for functions which it implements
16004    to always fail with ENOSYS.  Some functions are actually named
16005    something starting with __ and the normal name is an alias.  */
16006#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16007choke me
16008#else
16009char (*f) () = $ac_func;
16010#endif
16011#ifdef __cplusplus
16012}
16013#endif
16014
16015int
16016main ()
16017{
16018return f != $ac_func;
16019  ;
16020  return 0;
16021}
16022_ACEOF
16023rm -f conftest.$ac_objext conftest$ac_exeext
16024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16025  (eval $ac_link) 2>&5
16026  ac_status=$?
16027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028  (exit $ac_status); } &&
16029         { ac_try='test -s conftest$ac_exeext'
16030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16031  (eval $ac_try) 2>&5
16032  ac_status=$?
16033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034  (exit $ac_status); }; }; then
16035  eval "$as_ac_var=yes"
16036else
16037  echo "$as_me: failed program was:" >&5
16038sed 's/^/| /' conftest.$ac_ext >&5
16039
16040eval "$as_ac_var=no"
16041fi
16042rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16043fi
16044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16045echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16046if test `eval echo '${'$as_ac_var'}'` = yes; then
16047  cat >>confdefs.h <<_ACEOF
16048#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16049_ACEOF
16050
16051fi
16052done
16053
16054case "$host" in
16055 *-*-sco3.2v5.0.*)
16056    # Just stubs.  Idiots.
16057    ;;
16058 *)
16059for ac_func in mkstemp
16060do
16061as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16062echo "$as_me:$LINENO: checking for $ac_func" >&5
16063echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16064if eval "test \"\${$as_ac_var+set}\" = set"; then
16065  echo $ECHO_N "(cached) $ECHO_C" >&6
16066else
16067  cat >conftest.$ac_ext <<_ACEOF
16068#line $LINENO "configure"
16069/* confdefs.h.  */
16070_ACEOF
16071cat confdefs.h >>conftest.$ac_ext
16072cat >>conftest.$ac_ext <<_ACEOF
16073/* end confdefs.h.  */
16074/* System header to define __stub macros and hopefully few prototypes,
16075    which can conflict with char $ac_func (); below.
16076    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16077    <limits.h> exists even on freestanding compilers.  */
16078#ifdef __STDC__
16079# include <limits.h>
16080#else
16081# include <assert.h>
16082#endif
16083/* Override any gcc2 internal prototype to avoid an error.  */
16084#ifdef __cplusplus
16085extern "C"
16086{
16087#endif
16088/* We use char because int might match the return type of a gcc2
16089   builtin and then its argument prototype would still apply.  */
16090char $ac_func ();
16091/* The GNU C library defines this for functions which it implements
16092    to always fail with ENOSYS.  Some functions are actually named
16093    something starting with __ and the normal name is an alias.  */
16094#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16095choke me
16096#else
16097char (*f) () = $ac_func;
16098#endif
16099#ifdef __cplusplus
16100}
16101#endif
16102
16103int
16104main ()
16105{
16106return f != $ac_func;
16107  ;
16108  return 0;
16109}
16110_ACEOF
16111rm -f conftest.$ac_objext conftest$ac_exeext
16112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16113  (eval $ac_link) 2>&5
16114  ac_status=$?
16115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116  (exit $ac_status); } &&
16117         { ac_try='test -s conftest$ac_exeext'
16118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16119  (eval $ac_try) 2>&5
16120  ac_status=$?
16121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122  (exit $ac_status); }; }; then
16123  eval "$as_ac_var=yes"
16124else
16125  echo "$as_me: failed program was:" >&5
16126sed 's/^/| /' conftest.$ac_ext >&5
16127
16128eval "$as_ac_var=no"
16129fi
16130rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16131fi
16132echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16133echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16134if test `eval echo '${'$as_ac_var'}'` = yes; then
16135  cat >>confdefs.h <<_ACEOF
16136#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16137_ACEOF
16138
16139fi
16140done
16141
16142    ;;
16143esac
16144
16145for ac_func in mktime
16146do
16147as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16148echo "$as_me:$LINENO: checking for $ac_func" >&5
16149echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16150if eval "test \"\${$as_ac_var+set}\" = set"; then
16151  echo $ECHO_N "(cached) $ECHO_C" >&6
16152else
16153  cat >conftest.$ac_ext <<_ACEOF
16154#line $LINENO "configure"
16155/* confdefs.h.  */
16156_ACEOF
16157cat confdefs.h >>conftest.$ac_ext
16158cat >>conftest.$ac_ext <<_ACEOF
16159/* end confdefs.h.  */
16160/* System header to define __stub macros and hopefully few prototypes,
16161    which can conflict with char $ac_func (); below.
16162    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16163    <limits.h> exists even on freestanding compilers.  */
16164#ifdef __STDC__
16165# include <limits.h>
16166#else
16167# include <assert.h>
16168#endif
16169/* Override any gcc2 internal prototype to avoid an error.  */
16170#ifdef __cplusplus
16171extern "C"
16172{
16173#endif
16174/* We use char because int might match the return type of a gcc2
16175   builtin and then its argument prototype would still apply.  */
16176char $ac_func ();
16177/* The GNU C library defines this for functions which it implements
16178    to always fail with ENOSYS.  Some functions are actually named
16179    something starting with __ and the normal name is an alias.  */
16180#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16181choke me
16182#else
16183char (*f) () = $ac_func;
16184#endif
16185#ifdef __cplusplus
16186}
16187#endif
16188
16189int
16190main ()
16191{
16192return f != $ac_func;
16193  ;
16194  return 0;
16195}
16196_ACEOF
16197rm -f conftest.$ac_objext conftest$ac_exeext
16198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16199  (eval $ac_link) 2>&5
16200  ac_status=$?
16201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202  (exit $ac_status); } &&
16203         { ac_try='test -s conftest$ac_exeext'
16204  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205  (eval $ac_try) 2>&5
16206  ac_status=$?
16207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208  (exit $ac_status); }; }; then
16209  eval "$as_ac_var=yes"
16210else
16211  echo "$as_me: failed program was:" >&5
16212sed 's/^/| /' conftest.$ac_ext >&5
16213
16214eval "$as_ac_var=no"
16215fi
16216rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16217fi
16218echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16219echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16220if test `eval echo '${'$as_ac_var'}'` = yes; then
16221  cat >>confdefs.h <<_ACEOF
16222#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16223_ACEOF
16224
16225fi
16226done
16227
16228case "$host" in
16229 *-*-aix[45]*)
16230    # Just a stub.  Idiots.
16231    ;;
16232 *-*-irix[45]*)
16233    # Just a stub in "old" Irix.  Idiots.
16234    ;;
16235 *-*-qnx*)
16236    # Apparently there but not working in QNX.  Idiots?
16237    ;;
16238 *-*-sco3.2v5.0.*)
16239    # Just a stub.  Idiots.
16240    ;;
16241 alpha*-dec-osf4*|alpha*-dec-osf5*)
16242    # mlockall is there, as a #define calling memlk via <sys/mman.h>
16243    # Not easy to test for - cheat.
16244
16245for ac_func in memlk
16246do
16247as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16248echo "$as_me:$LINENO: checking for $ac_func" >&5
16249echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16250if eval "test \"\${$as_ac_var+set}\" = set"; then
16251  echo $ECHO_N "(cached) $ECHO_C" >&6
16252else
16253  cat >conftest.$ac_ext <<_ACEOF
16254#line $LINENO "configure"
16255/* confdefs.h.  */
16256_ACEOF
16257cat confdefs.h >>conftest.$ac_ext
16258cat >>conftest.$ac_ext <<_ACEOF
16259/* end confdefs.h.  */
16260/* System header to define __stub macros and hopefully few prototypes,
16261    which can conflict with char $ac_func (); below.
16262    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16263    <limits.h> exists even on freestanding compilers.  */
16264#ifdef __STDC__
16265# include <limits.h>
16266#else
16267# include <assert.h>
16268#endif
16269/* Override any gcc2 internal prototype to avoid an error.  */
16270#ifdef __cplusplus
16271extern "C"
16272{
16273#endif
16274/* We use char because int might match the return type of a gcc2
16275   builtin and then its argument prototype would still apply.  */
16276char $ac_func ();
16277/* The GNU C library defines this for functions which it implements
16278    to always fail with ENOSYS.  Some functions are actually named
16279    something starting with __ and the normal name is an alias.  */
16280#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16281choke me
16282#else
16283char (*f) () = $ac_func;
16284#endif
16285#ifdef __cplusplus
16286}
16287#endif
16288
16289int
16290main ()
16291{
16292return f != $ac_func;
16293  ;
16294  return 0;
16295}
16296_ACEOF
16297rm -f conftest.$ac_objext conftest$ac_exeext
16298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16299  (eval $ac_link) 2>&5
16300  ac_status=$?
16301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302  (exit $ac_status); } &&
16303         { ac_try='test -s conftest$ac_exeext'
16304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16305  (eval $ac_try) 2>&5
16306  ac_status=$?
16307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308  (exit $ac_status); }; }; then
16309  eval "$as_ac_var=yes"
16310else
16311  echo "$as_me: failed program was:" >&5
16312sed 's/^/| /' conftest.$ac_ext >&5
16313
16314eval "$as_ac_var=no"
16315fi
16316rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16317fi
16318echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16319echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16320if test `eval echo '${'$as_ac_var'}'` = yes; then
16321  cat >>confdefs.h <<_ACEOF
16322#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16323_ACEOF
16324 ac_cv_func_mlockall='yes'
16325fi
16326done
16327
16328
16329for ac_func in mlockall
16330do
16331as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16332echo "$as_me:$LINENO: checking for $ac_func" >&5
16333echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16334if eval "test \"\${$as_ac_var+set}\" = set"; then
16335  echo $ECHO_N "(cached) $ECHO_C" >&6
16336else
16337  cat >conftest.$ac_ext <<_ACEOF
16338#line $LINENO "configure"
16339/* confdefs.h.  */
16340_ACEOF
16341cat confdefs.h >>conftest.$ac_ext
16342cat >>conftest.$ac_ext <<_ACEOF
16343/* end confdefs.h.  */
16344/* System header to define __stub macros and hopefully few prototypes,
16345    which can conflict with char $ac_func (); below.
16346    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16347    <limits.h> exists even on freestanding compilers.  */
16348#ifdef __STDC__
16349# include <limits.h>
16350#else
16351# include <assert.h>
16352#endif
16353/* Override any gcc2 internal prototype to avoid an error.  */
16354#ifdef __cplusplus
16355extern "C"
16356{
16357#endif
16358/* We use char because int might match the return type of a gcc2
16359   builtin and then its argument prototype would still apply.  */
16360char $ac_func ();
16361/* The GNU C library defines this for functions which it implements
16362    to always fail with ENOSYS.  Some functions are actually named
16363    something starting with __ and the normal name is an alias.  */
16364#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16365choke me
16366#else
16367char (*f) () = $ac_func;
16368#endif
16369#ifdef __cplusplus
16370}
16371#endif
16372
16373int
16374main ()
16375{
16376return f != $ac_func;
16377  ;
16378  return 0;
16379}
16380_ACEOF
16381rm -f conftest.$ac_objext conftest$ac_exeext
16382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16383  (eval $ac_link) 2>&5
16384  ac_status=$?
16385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386  (exit $ac_status); } &&
16387         { ac_try='test -s conftest$ac_exeext'
16388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16389  (eval $ac_try) 2>&5
16390  ac_status=$?
16391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392  (exit $ac_status); }; }; then
16393  eval "$as_ac_var=yes"
16394else
16395  echo "$as_me: failed program was:" >&5
16396sed 's/^/| /' conftest.$ac_ext >&5
16397
16398eval "$as_ac_var=no"
16399fi
16400rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16401fi
16402echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16403echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16404if test `eval echo '${'$as_ac_var'}'` = yes; then
16405  cat >>confdefs.h <<_ACEOF
16406#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16407_ACEOF
16408
16409fi
16410done
16411
16412    ;;
16413 *)
16414for ac_func in mlockall
16415do
16416as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16417echo "$as_me:$LINENO: checking for $ac_func" >&5
16418echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16419if eval "test \"\${$as_ac_var+set}\" = set"; then
16420  echo $ECHO_N "(cached) $ECHO_C" >&6
16421else
16422  cat >conftest.$ac_ext <<_ACEOF
16423#line $LINENO "configure"
16424/* confdefs.h.  */
16425_ACEOF
16426cat confdefs.h >>conftest.$ac_ext
16427cat >>conftest.$ac_ext <<_ACEOF
16428/* end confdefs.h.  */
16429/* System header to define __stub macros and hopefully few prototypes,
16430    which can conflict with char $ac_func (); below.
16431    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16432    <limits.h> exists even on freestanding compilers.  */
16433#ifdef __STDC__
16434# include <limits.h>
16435#else
16436# include <assert.h>
16437#endif
16438/* Override any gcc2 internal prototype to avoid an error.  */
16439#ifdef __cplusplus
16440extern "C"
16441{
16442#endif
16443/* We use char because int might match the return type of a gcc2
16444   builtin and then its argument prototype would still apply.  */
16445char $ac_func ();
16446/* The GNU C library defines this for functions which it implements
16447    to always fail with ENOSYS.  Some functions are actually named
16448    something starting with __ and the normal name is an alias.  */
16449#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16450choke me
16451#else
16452char (*f) () = $ac_func;
16453#endif
16454#ifdef __cplusplus
16455}
16456#endif
16457
16458int
16459main ()
16460{
16461return f != $ac_func;
16462  ;
16463  return 0;
16464}
16465_ACEOF
16466rm -f conftest.$ac_objext conftest$ac_exeext
16467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16468  (eval $ac_link) 2>&5
16469  ac_status=$?
16470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471  (exit $ac_status); } &&
16472         { ac_try='test -s conftest$ac_exeext'
16473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474  (eval $ac_try) 2>&5
16475  ac_status=$?
16476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477  (exit $ac_status); }; }; then
16478  eval "$as_ac_var=yes"
16479else
16480  echo "$as_me: failed program was:" >&5
16481sed 's/^/| /' conftest.$ac_ext >&5
16482
16483eval "$as_ac_var=no"
16484fi
16485rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16486fi
16487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16488echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16489if test `eval echo '${'$as_ac_var'}'` = yes; then
16490  cat >>confdefs.h <<_ACEOF
16491#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16492_ACEOF
16493
16494fi
16495done
16496
16497    ;;
16498esac
16499
16500
16501
16502
16503for ac_func in mrand48 srand48 nice nlist
16504do
16505as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16506echo "$as_me:$LINENO: checking for $ac_func" >&5
16507echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16508if eval "test \"\${$as_ac_var+set}\" = set"; then
16509  echo $ECHO_N "(cached) $ECHO_C" >&6
16510else
16511  cat >conftest.$ac_ext <<_ACEOF
16512#line $LINENO "configure"
16513/* confdefs.h.  */
16514_ACEOF
16515cat confdefs.h >>conftest.$ac_ext
16516cat >>conftest.$ac_ext <<_ACEOF
16517/* end confdefs.h.  */
16518/* System header to define __stub macros and hopefully few prototypes,
16519    which can conflict with char $ac_func (); below.
16520    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16521    <limits.h> exists even on freestanding compilers.  */
16522#ifdef __STDC__
16523# include <limits.h>
16524#else
16525# include <assert.h>
16526#endif
16527/* Override any gcc2 internal prototype to avoid an error.  */
16528#ifdef __cplusplus
16529extern "C"
16530{
16531#endif
16532/* We use char because int might match the return type of a gcc2
16533   builtin and then its argument prototype would still apply.  */
16534char $ac_func ();
16535/* The GNU C library defines this for functions which it implements
16536    to always fail with ENOSYS.  Some functions are actually named
16537    something starting with __ and the normal name is an alias.  */
16538#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16539choke me
16540#else
16541char (*f) () = $ac_func;
16542#endif
16543#ifdef __cplusplus
16544}
16545#endif
16546
16547int
16548main ()
16549{
16550return f != $ac_func;
16551  ;
16552  return 0;
16553}
16554_ACEOF
16555rm -f conftest.$ac_objext conftest$ac_exeext
16556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16557  (eval $ac_link) 2>&5
16558  ac_status=$?
16559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560  (exit $ac_status); } &&
16561         { ac_try='test -s conftest$ac_exeext'
16562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563  (eval $ac_try) 2>&5
16564  ac_status=$?
16565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566  (exit $ac_status); }; }; then
16567  eval "$as_ac_var=yes"
16568else
16569  echo "$as_me: failed program was:" >&5
16570sed 's/^/| /' conftest.$ac_ext >&5
16571
16572eval "$as_ac_var=no"
16573fi
16574rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16575fi
16576echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16577echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16578if test `eval echo '${'$as_ac_var'}'` = yes; then
16579  cat >>confdefs.h <<_ACEOF
16580#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16581_ACEOF
16582
16583fi
16584done
16585
16586case "$host" in
16587 *-*-solaris2.6)
16588    # Broken...
16589    ;;
16590 *)
16591
16592for ac_func in ntp_adjtime ntp_gettime
16593do
16594as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16595echo "$as_me:$LINENO: checking for $ac_func" >&5
16596echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16597if eval "test \"\${$as_ac_var+set}\" = set"; then
16598  echo $ECHO_N "(cached) $ECHO_C" >&6
16599else
16600  cat >conftest.$ac_ext <<_ACEOF
16601#line $LINENO "configure"
16602/* confdefs.h.  */
16603_ACEOF
16604cat confdefs.h >>conftest.$ac_ext
16605cat >>conftest.$ac_ext <<_ACEOF
16606/* end confdefs.h.  */
16607/* System header to define __stub macros and hopefully few prototypes,
16608    which can conflict with char $ac_func (); below.
16609    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16610    <limits.h> exists even on freestanding compilers.  */
16611#ifdef __STDC__
16612# include <limits.h>
16613#else
16614# include <assert.h>
16615#endif
16616/* Override any gcc2 internal prototype to avoid an error.  */
16617#ifdef __cplusplus
16618extern "C"
16619{
16620#endif
16621/* We use char because int might match the return type of a gcc2
16622   builtin and then its argument prototype would still apply.  */
16623char $ac_func ();
16624/* The GNU C library defines this for functions which it implements
16625    to always fail with ENOSYS.  Some functions are actually named
16626    something starting with __ and the normal name is an alias.  */
16627#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16628choke me
16629#else
16630char (*f) () = $ac_func;
16631#endif
16632#ifdef __cplusplus
16633}
16634#endif
16635
16636int
16637main ()
16638{
16639return f != $ac_func;
16640  ;
16641  return 0;
16642}
16643_ACEOF
16644rm -f conftest.$ac_objext conftest$ac_exeext
16645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16646  (eval $ac_link) 2>&5
16647  ac_status=$?
16648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649  (exit $ac_status); } &&
16650         { ac_try='test -s conftest$ac_exeext'
16651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16652  (eval $ac_try) 2>&5
16653  ac_status=$?
16654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655  (exit $ac_status); }; }; then
16656  eval "$as_ac_var=yes"
16657else
16658  echo "$as_me: failed program was:" >&5
16659sed 's/^/| /' conftest.$ac_ext >&5
16660
16661eval "$as_ac_var=no"
16662fi
16663rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16664fi
16665echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16666echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16667if test `eval echo '${'$as_ac_var'}'` = yes; then
16668  cat >>confdefs.h <<_ACEOF
16669#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16670_ACEOF
16671
16672fi
16673done
16674
16675    ;;
16676esac
16677
16678
16679
16680
16681
16682for ac_func in plock pututline pututxline readlink rtprio
16683do
16684as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16685echo "$as_me:$LINENO: checking for $ac_func" >&5
16686echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16687if eval "test \"\${$as_ac_var+set}\" = set"; then
16688  echo $ECHO_N "(cached) $ECHO_C" >&6
16689else
16690  cat >conftest.$ac_ext <<_ACEOF
16691#line $LINENO "configure"
16692/* confdefs.h.  */
16693_ACEOF
16694cat confdefs.h >>conftest.$ac_ext
16695cat >>conftest.$ac_ext <<_ACEOF
16696/* end confdefs.h.  */
16697/* System header to define __stub macros and hopefully few prototypes,
16698    which can conflict with char $ac_func (); below.
16699    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16700    <limits.h> exists even on freestanding compilers.  */
16701#ifdef __STDC__
16702# include <limits.h>
16703#else
16704# include <assert.h>
16705#endif
16706/* Override any gcc2 internal prototype to avoid an error.  */
16707#ifdef __cplusplus
16708extern "C"
16709{
16710#endif
16711/* We use char because int might match the return type of a gcc2
16712   builtin and then its argument prototype would still apply.  */
16713char $ac_func ();
16714/* The GNU C library defines this for functions which it implements
16715    to always fail with ENOSYS.  Some functions are actually named
16716    something starting with __ and the normal name is an alias.  */
16717#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16718choke me
16719#else
16720char (*f) () = $ac_func;
16721#endif
16722#ifdef __cplusplus
16723}
16724#endif
16725
16726int
16727main ()
16728{
16729return f != $ac_func;
16730  ;
16731  return 0;
16732}
16733_ACEOF
16734rm -f conftest.$ac_objext conftest$ac_exeext
16735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16736  (eval $ac_link) 2>&5
16737  ac_status=$?
16738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739  (exit $ac_status); } &&
16740         { ac_try='test -s conftest$ac_exeext'
16741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742  (eval $ac_try) 2>&5
16743  ac_status=$?
16744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745  (exit $ac_status); }; }; then
16746  eval "$as_ac_var=yes"
16747else
16748  echo "$as_me: failed program was:" >&5
16749sed 's/^/| /' conftest.$ac_ext >&5
16750
16751eval "$as_ac_var=no"
16752fi
16753rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16754fi
16755echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16756echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16757if test `eval echo '${'$as_ac_var'}'` = yes; then
16758  cat >>confdefs.h <<_ACEOF
16759#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16760_ACEOF
16761
16762fi
16763done
16764
16765case "$ac_cv_func_mrand48" in
16766 yes) ;;
16767 *)
16768for ac_func in random
16769do
16770as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16771echo "$as_me:$LINENO: checking for $ac_func" >&5
16772echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16773if eval "test \"\${$as_ac_var+set}\" = set"; then
16774  echo $ECHO_N "(cached) $ECHO_C" >&6
16775else
16776  cat >conftest.$ac_ext <<_ACEOF
16777#line $LINENO "configure"
16778/* confdefs.h.  */
16779_ACEOF
16780cat confdefs.h >>conftest.$ac_ext
16781cat >>conftest.$ac_ext <<_ACEOF
16782/* end confdefs.h.  */
16783/* System header to define __stub macros and hopefully few prototypes,
16784    which can conflict with char $ac_func (); below.
16785    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16786    <limits.h> exists even on freestanding compilers.  */
16787#ifdef __STDC__
16788# include <limits.h>
16789#else
16790# include <assert.h>
16791#endif
16792/* Override any gcc2 internal prototype to avoid an error.  */
16793#ifdef __cplusplus
16794extern "C"
16795{
16796#endif
16797/* We use char because int might match the return type of a gcc2
16798   builtin and then its argument prototype would still apply.  */
16799char $ac_func ();
16800/* The GNU C library defines this for functions which it implements
16801    to always fail with ENOSYS.  Some functions are actually named
16802    something starting with __ and the normal name is an alias.  */
16803#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16804choke me
16805#else
16806char (*f) () = $ac_func;
16807#endif
16808#ifdef __cplusplus
16809}
16810#endif
16811
16812int
16813main ()
16814{
16815return f != $ac_func;
16816  ;
16817  return 0;
16818}
16819_ACEOF
16820rm -f conftest.$ac_objext conftest$ac_exeext
16821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16822  (eval $ac_link) 2>&5
16823  ac_status=$?
16824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825  (exit $ac_status); } &&
16826         { ac_try='test -s conftest$ac_exeext'
16827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16828  (eval $ac_try) 2>&5
16829  ac_status=$?
16830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831  (exit $ac_status); }; }; then
16832  eval "$as_ac_var=yes"
16833else
16834  echo "$as_me: failed program was:" >&5
16835sed 's/^/| /' conftest.$ac_ext >&5
16836
16837eval "$as_ac_var=no"
16838fi
16839rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16840fi
16841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16842echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16843if test `eval echo '${'$as_ac_var'}'` = yes; then
16844  cat >>confdefs.h <<_ACEOF
16845#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16846_ACEOF
16847
16848else
16849  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16850fi
16851done
16852
16853 ;;
16854esac
16855case "$host" in
16856 *-*-aix[45]*)
16857    # Just a stub in AIX 4.  Idiots.
16858    ;;
16859 *-*-solaris2.5*)
16860    # Just stubs in solaris2.5.  Idiots.
16861    ;;
16862 *)
16863for ac_func in sched_setscheduler
16864do
16865as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16866echo "$as_me:$LINENO: checking for $ac_func" >&5
16867echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16868if eval "test \"\${$as_ac_var+set}\" = set"; then
16869  echo $ECHO_N "(cached) $ECHO_C" >&6
16870else
16871  cat >conftest.$ac_ext <<_ACEOF
16872#line $LINENO "configure"
16873/* confdefs.h.  */
16874_ACEOF
16875cat confdefs.h >>conftest.$ac_ext
16876cat >>conftest.$ac_ext <<_ACEOF
16877/* end confdefs.h.  */
16878/* System header to define __stub macros and hopefully few prototypes,
16879    which can conflict with char $ac_func (); below.
16880    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16881    <limits.h> exists even on freestanding compilers.  */
16882#ifdef __STDC__
16883# include <limits.h>
16884#else
16885# include <assert.h>
16886#endif
16887/* Override any gcc2 internal prototype to avoid an error.  */
16888#ifdef __cplusplus
16889extern "C"
16890{
16891#endif
16892/* We use char because int might match the return type of a gcc2
16893   builtin and then its argument prototype would still apply.  */
16894char $ac_func ();
16895/* The GNU C library defines this for functions which it implements
16896    to always fail with ENOSYS.  Some functions are actually named
16897    something starting with __ and the normal name is an alias.  */
16898#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16899choke me
16900#else
16901char (*f) () = $ac_func;
16902#endif
16903#ifdef __cplusplus
16904}
16905#endif
16906
16907int
16908main ()
16909{
16910return f != $ac_func;
16911  ;
16912  return 0;
16913}
16914_ACEOF
16915rm -f conftest.$ac_objext conftest$ac_exeext
16916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16917  (eval $ac_link) 2>&5
16918  ac_status=$?
16919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920  (exit $ac_status); } &&
16921         { ac_try='test -s conftest$ac_exeext'
16922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16923  (eval $ac_try) 2>&5
16924  ac_status=$?
16925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926  (exit $ac_status); }; }; then
16927  eval "$as_ac_var=yes"
16928else
16929  echo "$as_me: failed program was:" >&5
16930sed 's/^/| /' conftest.$ac_ext >&5
16931
16932eval "$as_ac_var=no"
16933fi
16934rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16935fi
16936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16937echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16938if test `eval echo '${'$as_ac_var'}'` = yes; then
16939  cat >>confdefs.h <<_ACEOF
16940#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16941_ACEOF
16942
16943fi
16944done
16945
16946    ;;
16947esac
16948
16949
16950
16951
16952for ac_func in setlinebuf setpgid setpriority setsid
16953do
16954as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16955echo "$as_me:$LINENO: checking for $ac_func" >&5
16956echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16957if eval "test \"\${$as_ac_var+set}\" = set"; then
16958  echo $ECHO_N "(cached) $ECHO_C" >&6
16959else
16960  cat >conftest.$ac_ext <<_ACEOF
16961#line $LINENO "configure"
16962/* confdefs.h.  */
16963_ACEOF
16964cat confdefs.h >>conftest.$ac_ext
16965cat >>conftest.$ac_ext <<_ACEOF
16966/* end confdefs.h.  */
16967/* System header to define __stub macros and hopefully few prototypes,
16968    which can conflict with char $ac_func (); below.
16969    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16970    <limits.h> exists even on freestanding compilers.  */
16971#ifdef __STDC__
16972# include <limits.h>
16973#else
16974# include <assert.h>
16975#endif
16976/* Override any gcc2 internal prototype to avoid an error.  */
16977#ifdef __cplusplus
16978extern "C"
16979{
16980#endif
16981/* We use char because int might match the return type of a gcc2
16982   builtin and then its argument prototype would still apply.  */
16983char $ac_func ();
16984/* The GNU C library defines this for functions which it implements
16985    to always fail with ENOSYS.  Some functions are actually named
16986    something starting with __ and the normal name is an alias.  */
16987#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16988choke me
16989#else
16990char (*f) () = $ac_func;
16991#endif
16992#ifdef __cplusplus
16993}
16994#endif
16995
16996int
16997main ()
16998{
16999return f != $ac_func;
17000  ;
17001  return 0;
17002}
17003_ACEOF
17004rm -f conftest.$ac_objext conftest$ac_exeext
17005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17006  (eval $ac_link) 2>&5
17007  ac_status=$?
17008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009  (exit $ac_status); } &&
17010         { ac_try='test -s conftest$ac_exeext'
17011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17012  (eval $ac_try) 2>&5
17013  ac_status=$?
17014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015  (exit $ac_status); }; }; then
17016  eval "$as_ac_var=yes"
17017else
17018  echo "$as_me: failed program was:" >&5
17019sed 's/^/| /' conftest.$ac_ext >&5
17020
17021eval "$as_ac_var=no"
17022fi
17023rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17024fi
17025echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17026echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17027if test `eval echo '${'$as_ac_var'}'` = yes; then
17028  cat >>confdefs.h <<_ACEOF
17029#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17030_ACEOF
17031
17032fi
17033done
17034
17035
17036for ac_func in setrlimit
17037do
17038as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17039echo "$as_me:$LINENO: checking for $ac_func" >&5
17040echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17041if eval "test \"\${$as_ac_var+set}\" = set"; then
17042  echo $ECHO_N "(cached) $ECHO_C" >&6
17043else
17044  cat >conftest.$ac_ext <<_ACEOF
17045#line $LINENO "configure"
17046/* confdefs.h.  */
17047_ACEOF
17048cat confdefs.h >>conftest.$ac_ext
17049cat >>conftest.$ac_ext <<_ACEOF
17050/* end confdefs.h.  */
17051/* System header to define __stub macros and hopefully few prototypes,
17052    which can conflict with char $ac_func (); below.
17053    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17054    <limits.h> exists even on freestanding compilers.  */
17055#ifdef __STDC__
17056# include <limits.h>
17057#else
17058# include <assert.h>
17059#endif
17060/* Override any gcc2 internal prototype to avoid an error.  */
17061#ifdef __cplusplus
17062extern "C"
17063{
17064#endif
17065/* We use char because int might match the return type of a gcc2
17066   builtin and then its argument prototype would still apply.  */
17067char $ac_func ();
17068/* The GNU C library defines this for functions which it implements
17069    to always fail with ENOSYS.  Some functions are actually named
17070    something starting with __ and the normal name is an alias.  */
17071#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17072choke me
17073#else
17074char (*f) () = $ac_func;
17075#endif
17076#ifdef __cplusplus
17077}
17078#endif
17079
17080int
17081main ()
17082{
17083return f != $ac_func;
17084  ;
17085  return 0;
17086}
17087_ACEOF
17088rm -f conftest.$ac_objext conftest$ac_exeext
17089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17090  (eval $ac_link) 2>&5
17091  ac_status=$?
17092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093  (exit $ac_status); } &&
17094         { ac_try='test -s conftest$ac_exeext'
17095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17096  (eval $ac_try) 2>&5
17097  ac_status=$?
17098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099  (exit $ac_status); }; }; then
17100  eval "$as_ac_var=yes"
17101else
17102  echo "$as_me: failed program was:" >&5
17103sed 's/^/| /' conftest.$ac_ext >&5
17104
17105eval "$as_ac_var=no"
17106fi
17107rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17108fi
17109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17110echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17111if test `eval echo '${'$as_ac_var'}'` = yes; then
17112  cat >>confdefs.h <<_ACEOF
17113#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17114_ACEOF
17115
17116fi
17117done
17118
17119
17120for ac_func in settimeofday
17121do
17122as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17123echo "$as_me:$LINENO: checking for $ac_func" >&5
17124echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17125if eval "test \"\${$as_ac_var+set}\" = set"; then
17126  echo $ECHO_N "(cached) $ECHO_C" >&6
17127else
17128  cat >conftest.$ac_ext <<_ACEOF
17129#line $LINENO "configure"
17130/* confdefs.h.  */
17131_ACEOF
17132cat confdefs.h >>conftest.$ac_ext
17133cat >>conftest.$ac_ext <<_ACEOF
17134/* end confdefs.h.  */
17135/* System header to define __stub macros and hopefully few prototypes,
17136    which can conflict with char $ac_func (); below.
17137    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17138    <limits.h> exists even on freestanding compilers.  */
17139#ifdef __STDC__
17140# include <limits.h>
17141#else
17142# include <assert.h>
17143#endif
17144/* Override any gcc2 internal prototype to avoid an error.  */
17145#ifdef __cplusplus
17146extern "C"
17147{
17148#endif
17149/* We use char because int might match the return type of a gcc2
17150   builtin and then its argument prototype would still apply.  */
17151char $ac_func ();
17152/* The GNU C library defines this for functions which it implements
17153    to always fail with ENOSYS.  Some functions are actually named
17154    something starting with __ and the normal name is an alias.  */
17155#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17156choke me
17157#else
17158char (*f) () = $ac_func;
17159#endif
17160#ifdef __cplusplus
17161}
17162#endif
17163
17164int
17165main ()
17166{
17167return f != $ac_func;
17168  ;
17169  return 0;
17170}
17171_ACEOF
17172rm -f conftest.$ac_objext conftest$ac_exeext
17173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17174  (eval $ac_link) 2>&5
17175  ac_status=$?
17176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177  (exit $ac_status); } &&
17178         { ac_try='test -s conftest$ac_exeext'
17179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17180  (eval $ac_try) 2>&5
17181  ac_status=$?
17182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183  (exit $ac_status); }; }; then
17184  eval "$as_ac_var=yes"
17185else
17186  echo "$as_me: failed program was:" >&5
17187sed 's/^/| /' conftest.$ac_ext >&5
17188
17189eval "$as_ac_var=no"
17190fi
17191rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17192fi
17193echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17194echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17195if test `eval echo '${'$as_ac_var'}'` = yes; then
17196  cat >>confdefs.h <<_ACEOF
17197#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17198_ACEOF
17199
17200else
17201
17202case "$host" in
17203  *-*-mpeix*) ac_cv_func_settimeofday=yes
17204    ;;
17205esac
17206fi
17207done
17208
17209
17210
17211for ac_func in setvbuf sigaction
17212do
17213as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17214echo "$as_me:$LINENO: checking for $ac_func" >&5
17215echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17216if eval "test \"\${$as_ac_var+set}\" = set"; then
17217  echo $ECHO_N "(cached) $ECHO_C" >&6
17218else
17219  cat >conftest.$ac_ext <<_ACEOF
17220#line $LINENO "configure"
17221/* confdefs.h.  */
17222_ACEOF
17223cat confdefs.h >>conftest.$ac_ext
17224cat >>conftest.$ac_ext <<_ACEOF
17225/* end confdefs.h.  */
17226/* System header to define __stub macros and hopefully few prototypes,
17227    which can conflict with char $ac_func (); below.
17228    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17229    <limits.h> exists even on freestanding compilers.  */
17230#ifdef __STDC__
17231# include <limits.h>
17232#else
17233# include <assert.h>
17234#endif
17235/* Override any gcc2 internal prototype to avoid an error.  */
17236#ifdef __cplusplus
17237extern "C"
17238{
17239#endif
17240/* We use char because int might match the return type of a gcc2
17241   builtin and then its argument prototype would still apply.  */
17242char $ac_func ();
17243/* The GNU C library defines this for functions which it implements
17244    to always fail with ENOSYS.  Some functions are actually named
17245    something starting with __ and the normal name is an alias.  */
17246#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17247choke me
17248#else
17249char (*f) () = $ac_func;
17250#endif
17251#ifdef __cplusplus
17252}
17253#endif
17254
17255int
17256main ()
17257{
17258return f != $ac_func;
17259  ;
17260  return 0;
17261}
17262_ACEOF
17263rm -f conftest.$ac_objext conftest$ac_exeext
17264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17265  (eval $ac_link) 2>&5
17266  ac_status=$?
17267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268  (exit $ac_status); } &&
17269         { ac_try='test -s conftest$ac_exeext'
17270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17271  (eval $ac_try) 2>&5
17272  ac_status=$?
17273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274  (exit $ac_status); }; }; then
17275  eval "$as_ac_var=yes"
17276else
17277  echo "$as_me: failed program was:" >&5
17278sed 's/^/| /' conftest.$ac_ext >&5
17279
17280eval "$as_ac_var=no"
17281fi
17282rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17283fi
17284echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17285echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17286if test `eval echo '${'$as_ac_var'}'` = yes; then
17287  cat >>confdefs.h <<_ACEOF
17288#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17289_ACEOF
17290
17291fi
17292done
17293
17294
17295
17296
17297
17298
17299
17300
17301for ac_func in sigvec sigset sigsuspend stime strchr sysconf sysctl
17302do
17303as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17304echo "$as_me:$LINENO: checking for $ac_func" >&5
17305echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17306if eval "test \"\${$as_ac_var+set}\" = set"; then
17307  echo $ECHO_N "(cached) $ECHO_C" >&6
17308else
17309  cat >conftest.$ac_ext <<_ACEOF
17310#line $LINENO "configure"
17311/* confdefs.h.  */
17312_ACEOF
17313cat confdefs.h >>conftest.$ac_ext
17314cat >>conftest.$ac_ext <<_ACEOF
17315/* end confdefs.h.  */
17316/* System header to define __stub macros and hopefully few prototypes,
17317    which can conflict with char $ac_func (); below.
17318    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17319    <limits.h> exists even on freestanding compilers.  */
17320#ifdef __STDC__
17321# include <limits.h>
17322#else
17323# include <assert.h>
17324#endif
17325/* Override any gcc2 internal prototype to avoid an error.  */
17326#ifdef __cplusplus
17327extern "C"
17328{
17329#endif
17330/* We use char because int might match the return type of a gcc2
17331   builtin and then its argument prototype would still apply.  */
17332char $ac_func ();
17333/* The GNU C library defines this for functions which it implements
17334    to always fail with ENOSYS.  Some functions are actually named
17335    something starting with __ and the normal name is an alias.  */
17336#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17337choke me
17338#else
17339char (*f) () = $ac_func;
17340#endif
17341#ifdef __cplusplus
17342}
17343#endif
17344
17345int
17346main ()
17347{
17348return f != $ac_func;
17349  ;
17350  return 0;
17351}
17352_ACEOF
17353rm -f conftest.$ac_objext conftest$ac_exeext
17354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17355  (eval $ac_link) 2>&5
17356  ac_status=$?
17357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358  (exit $ac_status); } &&
17359         { ac_try='test -s conftest$ac_exeext'
17360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17361  (eval $ac_try) 2>&5
17362  ac_status=$?
17363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364  (exit $ac_status); }; }; then
17365  eval "$as_ac_var=yes"
17366else
17367  echo "$as_me: failed program was:" >&5
17368sed 's/^/| /' conftest.$ac_ext >&5
17369
17370eval "$as_ac_var=no"
17371fi
17372rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17373fi
17374echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17375echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17376if test `eval echo '${'$as_ac_var'}'` = yes; then
17377  cat >>confdefs.h <<_ACEOF
17378#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17379_ACEOF
17380
17381fi
17382done
17383
17384
17385
17386
17387
17388for ac_func in snprintf strdup strerror strstr
17389do
17390as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17391echo "$as_me:$LINENO: checking for $ac_func" >&5
17392echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17393if eval "test \"\${$as_ac_var+set}\" = set"; then
17394  echo $ECHO_N "(cached) $ECHO_C" >&6
17395else
17396  cat >conftest.$ac_ext <<_ACEOF
17397#line $LINENO "configure"
17398/* confdefs.h.  */
17399_ACEOF
17400cat confdefs.h >>conftest.$ac_ext
17401cat >>conftest.$ac_ext <<_ACEOF
17402/* end confdefs.h.  */
17403/* System header to define __stub macros and hopefully few prototypes,
17404    which can conflict with char $ac_func (); below.
17405    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17406    <limits.h> exists even on freestanding compilers.  */
17407#ifdef __STDC__
17408# include <limits.h>
17409#else
17410# include <assert.h>
17411#endif
17412/* Override any gcc2 internal prototype to avoid an error.  */
17413#ifdef __cplusplus
17414extern "C"
17415{
17416#endif
17417/* We use char because int might match the return type of a gcc2
17418   builtin and then its argument prototype would still apply.  */
17419char $ac_func ();
17420/* The GNU C library defines this for functions which it implements
17421    to always fail with ENOSYS.  Some functions are actually named
17422    something starting with __ and the normal name is an alias.  */
17423#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17424choke me
17425#else
17426char (*f) () = $ac_func;
17427#endif
17428#ifdef __cplusplus
17429}
17430#endif
17431
17432int
17433main ()
17434{
17435return f != $ac_func;
17436  ;
17437  return 0;
17438}
17439_ACEOF
17440rm -f conftest.$ac_objext conftest$ac_exeext
17441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17442  (eval $ac_link) 2>&5
17443  ac_status=$?
17444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445  (exit $ac_status); } &&
17446         { ac_try='test -s conftest$ac_exeext'
17447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17448  (eval $ac_try) 2>&5
17449  ac_status=$?
17450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451  (exit $ac_status); }; }; then
17452  eval "$as_ac_var=yes"
17453else
17454  echo "$as_me: failed program was:" >&5
17455sed 's/^/| /' conftest.$ac_ext >&5
17456
17457eval "$as_ac_var=no"
17458fi
17459rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17460fi
17461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17462echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17463if test `eval echo '${'$as_ac_var'}'` = yes; then
17464  cat >>confdefs.h <<_ACEOF
17465#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17466_ACEOF
17467
17468fi
17469done
17470
17471
17472for ac_func in timegm
17473do
17474as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17475echo "$as_me:$LINENO: checking for $ac_func" >&5
17476echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17477if eval "test \"\${$as_ac_var+set}\" = set"; then
17478  echo $ECHO_N "(cached) $ECHO_C" >&6
17479else
17480  cat >conftest.$ac_ext <<_ACEOF
17481#line $LINENO "configure"
17482/* confdefs.h.  */
17483_ACEOF
17484cat confdefs.h >>conftest.$ac_ext
17485cat >>conftest.$ac_ext <<_ACEOF
17486/* end confdefs.h.  */
17487/* System header to define __stub macros and hopefully few prototypes,
17488    which can conflict with char $ac_func (); below.
17489    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17490    <limits.h> exists even on freestanding compilers.  */
17491#ifdef __STDC__
17492# include <limits.h>
17493#else
17494# include <assert.h>
17495#endif
17496/* Override any gcc2 internal prototype to avoid an error.  */
17497#ifdef __cplusplus
17498extern "C"
17499{
17500#endif
17501/* We use char because int might match the return type of a gcc2
17502   builtin and then its argument prototype would still apply.  */
17503char $ac_func ();
17504/* The GNU C library defines this for functions which it implements
17505    to always fail with ENOSYS.  Some functions are actually named
17506    something starting with __ and the normal name is an alias.  */
17507#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17508choke me
17509#else
17510char (*f) () = $ac_func;
17511#endif
17512#ifdef __cplusplus
17513}
17514#endif
17515
17516int
17517main ()
17518{
17519return f != $ac_func;
17520  ;
17521  return 0;
17522}
17523_ACEOF
17524rm -f conftest.$ac_objext conftest$ac_exeext
17525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17526  (eval $ac_link) 2>&5
17527  ac_status=$?
17528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529  (exit $ac_status); } &&
17530         { ac_try='test -s conftest$ac_exeext'
17531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17532  (eval $ac_try) 2>&5
17533  ac_status=$?
17534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535  (exit $ac_status); }; }; then
17536  eval "$as_ac_var=yes"
17537else
17538  echo "$as_me: failed program was:" >&5
17539sed 's/^/| /' conftest.$ac_ext >&5
17540
17541eval "$as_ac_var=no"
17542fi
17543rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17544fi
17545echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17546echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17547if test `eval echo '${'$as_ac_var'}'` = yes; then
17548  cat >>confdefs.h <<_ACEOF
17549#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17550_ACEOF
17551
17552fi
17553done
17554
17555case "$host" in
17556 *-*-aix[45]*)
17557    # Just stubs.  Idiots.
17558    ;;
17559 *-*-netbsd1*)
17560    # Just stubs.  Idiots.
17561    ;;
17562 *-*-netbsdelf1*)
17563    # Just stubs.  Idiots.
17564    ;;
17565 *-*-openbsd*)
17566    # Just stubs.  Idiots.
17567    ;;
17568 *)
17569
17570for ac_func in timer_create timer_settime
17571do
17572as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17573echo "$as_me:$LINENO: checking for $ac_func" >&5
17574echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17575if eval "test \"\${$as_ac_var+set}\" = set"; then
17576  echo $ECHO_N "(cached) $ECHO_C" >&6
17577else
17578  cat >conftest.$ac_ext <<_ACEOF
17579#line $LINENO "configure"
17580/* confdefs.h.  */
17581_ACEOF
17582cat confdefs.h >>conftest.$ac_ext
17583cat >>conftest.$ac_ext <<_ACEOF
17584/* end confdefs.h.  */
17585/* System header to define __stub macros and hopefully few prototypes,
17586    which can conflict with char $ac_func (); below.
17587    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17588    <limits.h> exists even on freestanding compilers.  */
17589#ifdef __STDC__
17590# include <limits.h>
17591#else
17592# include <assert.h>
17593#endif
17594/* Override any gcc2 internal prototype to avoid an error.  */
17595#ifdef __cplusplus
17596extern "C"
17597{
17598#endif
17599/* We use char because int might match the return type of a gcc2
17600   builtin and then its argument prototype would still apply.  */
17601char $ac_func ();
17602/* The GNU C library defines this for functions which it implements
17603    to always fail with ENOSYS.  Some functions are actually named
17604    something starting with __ and the normal name is an alias.  */
17605#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17606choke me
17607#else
17608char (*f) () = $ac_func;
17609#endif
17610#ifdef __cplusplus
17611}
17612#endif
17613
17614int
17615main ()
17616{
17617return f != $ac_func;
17618  ;
17619  return 0;
17620}
17621_ACEOF
17622rm -f conftest.$ac_objext conftest$ac_exeext
17623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17624  (eval $ac_link) 2>&5
17625  ac_status=$?
17626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627  (exit $ac_status); } &&
17628         { ac_try='test -s conftest$ac_exeext'
17629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17630  (eval $ac_try) 2>&5
17631  ac_status=$?
17632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633  (exit $ac_status); }; }; then
17634  eval "$as_ac_var=yes"
17635else
17636  echo "$as_me: failed program was:" >&5
17637sed 's/^/| /' conftest.$ac_ext >&5
17638
17639eval "$as_ac_var=no"
17640fi
17641rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17642fi
17643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17644echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17645if test `eval echo '${'$as_ac_var'}'` = yes; then
17646  cat >>confdefs.h <<_ACEOF
17647#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17648_ACEOF
17649
17650fi
17651done
17652
17653    ;;
17654esac
17655case "$host" in
17656 *-pc-cygwin*)
17657    # I have no idea...
17658    ;;
17659 *)
17660for ac_func in umask
17661do
17662as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17663echo "$as_me:$LINENO: checking for $ac_func" >&5
17664echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17665if eval "test \"\${$as_ac_var+set}\" = set"; then
17666  echo $ECHO_N "(cached) $ECHO_C" >&6
17667else
17668  cat >conftest.$ac_ext <<_ACEOF
17669#line $LINENO "configure"
17670/* confdefs.h.  */
17671_ACEOF
17672cat confdefs.h >>conftest.$ac_ext
17673cat >>conftest.$ac_ext <<_ACEOF
17674/* end confdefs.h.  */
17675/* System header to define __stub macros and hopefully few prototypes,
17676    which can conflict with char $ac_func (); below.
17677    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17678    <limits.h> exists even on freestanding compilers.  */
17679#ifdef __STDC__
17680# include <limits.h>
17681#else
17682# include <assert.h>
17683#endif
17684/* Override any gcc2 internal prototype to avoid an error.  */
17685#ifdef __cplusplus
17686extern "C"
17687{
17688#endif
17689/* We use char because int might match the return type of a gcc2
17690   builtin and then its argument prototype would still apply.  */
17691char $ac_func ();
17692/* The GNU C library defines this for functions which it implements
17693    to always fail with ENOSYS.  Some functions are actually named
17694    something starting with __ and the normal name is an alias.  */
17695#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17696choke me
17697#else
17698char (*f) () = $ac_func;
17699#endif
17700#ifdef __cplusplus
17701}
17702#endif
17703
17704int
17705main ()
17706{
17707return f != $ac_func;
17708  ;
17709  return 0;
17710}
17711_ACEOF
17712rm -f conftest.$ac_objext conftest$ac_exeext
17713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17714  (eval $ac_link) 2>&5
17715  ac_status=$?
17716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717  (exit $ac_status); } &&
17718         { ac_try='test -s conftest$ac_exeext'
17719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720  (eval $ac_try) 2>&5
17721  ac_status=$?
17722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723  (exit $ac_status); }; }; then
17724  eval "$as_ac_var=yes"
17725else
17726  echo "$as_me: failed program was:" >&5
17727sed 's/^/| /' conftest.$ac_ext >&5
17728
17729eval "$as_ac_var=no"
17730fi
17731rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17732fi
17733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17734echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17735if test `eval echo '${'$as_ac_var'}'` = yes; then
17736  cat >>confdefs.h <<_ACEOF
17737#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17738_ACEOF
17739
17740fi
17741done
17742
17743    ;;
17744esac
17745
17746
17747
17748
17749for ac_func in uname updwtmp updwtmpx vsprintf
17750do
17751as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17752echo "$as_me:$LINENO: checking for $ac_func" >&5
17753echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17754if eval "test \"\${$as_ac_var+set}\" = set"; then
17755  echo $ECHO_N "(cached) $ECHO_C" >&6
17756else
17757  cat >conftest.$ac_ext <<_ACEOF
17758#line $LINENO "configure"
17759/* confdefs.h.  */
17760_ACEOF
17761cat confdefs.h >>conftest.$ac_ext
17762cat >>conftest.$ac_ext <<_ACEOF
17763/* end confdefs.h.  */
17764/* System header to define __stub macros and hopefully few prototypes,
17765    which can conflict with char $ac_func (); below.
17766    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17767    <limits.h> exists even on freestanding compilers.  */
17768#ifdef __STDC__
17769# include <limits.h>
17770#else
17771# include <assert.h>
17772#endif
17773/* Override any gcc2 internal prototype to avoid an error.  */
17774#ifdef __cplusplus
17775extern "C"
17776{
17777#endif
17778/* We use char because int might match the return type of a gcc2
17779   builtin and then its argument prototype would still apply.  */
17780char $ac_func ();
17781/* The GNU C library defines this for functions which it implements
17782    to always fail with ENOSYS.  Some functions are actually named
17783    something starting with __ and the normal name is an alias.  */
17784#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17785choke me
17786#else
17787char (*f) () = $ac_func;
17788#endif
17789#ifdef __cplusplus
17790}
17791#endif
17792
17793int
17794main ()
17795{
17796return f != $ac_func;
17797  ;
17798  return 0;
17799}
17800_ACEOF
17801rm -f conftest.$ac_objext conftest$ac_exeext
17802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17803  (eval $ac_link) 2>&5
17804  ac_status=$?
17805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806  (exit $ac_status); } &&
17807         { ac_try='test -s conftest$ac_exeext'
17808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17809  (eval $ac_try) 2>&5
17810  ac_status=$?
17811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812  (exit $ac_status); }; }; then
17813  eval "$as_ac_var=yes"
17814else
17815  echo "$as_me: failed program was:" >&5
17816sed 's/^/| /' conftest.$ac_ext >&5
17817
17818eval "$as_ac_var=no"
17819fi
17820rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17821fi
17822echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17823echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17824if test `eval echo '${'$as_ac_var'}'` = yes; then
17825  cat >>confdefs.h <<_ACEOF
17826#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17827_ACEOF
17828
17829fi
17830done
17831
17832
17833case "$host" in
17834 *-*-sunos4*)
17835
17836cat >>confdefs.h <<\_ACEOF
17837#define SPRINTF_CHAR 1
17838_ACEOF
17839
17840    ;;
17841esac
17842
17843echo "$as_me:$LINENO: checking number of arguments to gettimeofday()" >&5
17844echo $ECHO_N "checking number of arguments to gettimeofday()... $ECHO_C" >&6
17845if test "${ac_cv_func_Xettimeofday_nargs+set}" = set; then
17846  echo $ECHO_N "(cached) $ECHO_C" >&6
17847else
17848  cat >conftest.$ac_ext <<_ACEOF
17849#line $LINENO "configure"
17850/* confdefs.h.  */
17851_ACEOF
17852cat confdefs.h >>conftest.$ac_ext
17853cat >>conftest.$ac_ext <<_ACEOF
17854/* end confdefs.h.  */
17855#include <sys/time.h>
17856int
17857main ()
17858{
17859
17860gettimeofday((struct timeval*)0,(struct timezone*)0);
17861settimeofday((struct timeval*)0,(struct timezone*)0);
17862
17863  ;
17864  return 0;
17865}
17866_ACEOF
17867rm -f conftest.$ac_objext
17868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17869  (eval $ac_compile) 2>&5
17870  ac_status=$?
17871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872  (exit $ac_status); } &&
17873         { ac_try='test -s conftest.$ac_objext'
17874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17875  (eval $ac_try) 2>&5
17876  ac_status=$?
17877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878  (exit $ac_status); }; }; then
17879  ac_cv_func_Xettimeofday_nargs=2
17880else
17881  echo "$as_me: failed program was:" >&5
17882sed 's/^/| /' conftest.$ac_ext >&5
17883
17884ac_cv_func_Xettimeofday_nargs=1
17885fi
17886rm -f conftest.$ac_objext conftest.$ac_ext
17887
17888fi
17889echo "$as_me:$LINENO: result: $ac_cv_func_Xettimeofday_nargs" >&5
17890echo "${ECHO_T}$ac_cv_func_Xettimeofday_nargs" >&6
17891if test $ac_cv_func_Xettimeofday_nargs = 1; then
17892
17893cat >>confdefs.h <<\_ACEOF
17894#define SYSV_TIMEOFDAY 1
17895_ACEOF
17896
17897fi
17898
17899echo "$as_me:$LINENO: checking number of arguments taken by setpgrp()" >&5
17900echo $ECHO_N "checking number of arguments taken by setpgrp()... $ECHO_C" >&6
17901if test "${ac_cv_func_setpgrp_nargs+set}" = set; then
17902  echo $ECHO_N "(cached) $ECHO_C" >&6
17903else
17904  cat >conftest.$ac_ext <<_ACEOF
17905#line $LINENO "configure"
17906/* confdefs.h.  */
17907_ACEOF
17908cat confdefs.h >>conftest.$ac_ext
17909cat >>conftest.$ac_ext <<_ACEOF
17910/* end confdefs.h.  */
17911
17912#ifdef HAVE_SYS_TYPES_H
17913# include <sys/types.h>
17914#endif
17915#ifdef HAVE_UNISTD_H
17916# include <unistd.h>
17917#endif
17918
17919int
17920main ()
17921{
17922setpgrp(0,0);
17923  ;
17924  return 0;
17925}
17926_ACEOF
17927rm -f conftest.$ac_objext
17928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17929  (eval $ac_compile) 2>&5
17930  ac_status=$?
17931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932  (exit $ac_status); } &&
17933         { ac_try='test -s conftest.$ac_objext'
17934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17935  (eval $ac_try) 2>&5
17936  ac_status=$?
17937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938  (exit $ac_status); }; }; then
17939  ac_cv_func_setpgrp_nargs=2
17940else
17941  echo "$as_me: failed program was:" >&5
17942sed 's/^/| /' conftest.$ac_ext >&5
17943
17944ac_cv_func_setpgrp_nargs=0
17945fi
17946rm -f conftest.$ac_objext conftest.$ac_ext
17947
17948fi
17949echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_nargs" >&5
17950echo "${ECHO_T}$ac_cv_func_setpgrp_nargs" >&6
17951if test $ac_cv_func_setpgrp_nargs = 0; then
17952
17953cat >>confdefs.h <<\_ACEOF
17954#define HAVE_SETPGRP_0 1
17955_ACEOF
17956
17957fi
17958
17959save_CFLAGS=$CFLAGS
17960CFLAGS="$CFLAGS -I$srcdir/include"
17961
17962echo "$as_me:$LINENO: checking argument pointer type of qsort()'s compare function and base" >&5
17963echo $ECHO_N "checking argument pointer type of qsort()'s compare function and base... $ECHO_C" >&6
17964if test "${ac_cv_func_qsort_argtype+set}" = set; then
17965  echo $ECHO_N "(cached) $ECHO_C" >&6
17966else
17967  cat >conftest.$ac_ext <<_ACEOF
17968#line $LINENO "configure"
17969/* confdefs.h.  */
17970_ACEOF
17971cat confdefs.h >>conftest.$ac_ext
17972cat >>conftest.$ac_ext <<_ACEOF
17973/* end confdefs.h.  */
17974
17975#include "l_stdlib.h"
17976
17977#ifdef HAVE_PROTOTYPES
17978#define P(x) x
17979#else
17980#define P(x) ()
17981#endif
17982
17983extern void *base;
17984extern sortfunc P((const void *, const void *));
17985int sortfunc(a, b)
17986  const void *a;
17987  const void *b; { return 0; }
17988
17989int
17990main ()
17991{
17992
17993qsort(base, 2, sizeof(char *), sortfunc);
17994
17995  ;
17996  return 0;
17997}
17998_ACEOF
17999rm -f conftest.$ac_objext
18000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18001  (eval $ac_compile) 2>&5
18002  ac_status=$?
18003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004  (exit $ac_status); } &&
18005         { ac_try='test -s conftest.$ac_objext'
18006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18007  (eval $ac_try) 2>&5
18008  ac_status=$?
18009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010  (exit $ac_status); }; }; then
18011  ac_cv_func_qsort_argtype=void
18012else
18013  echo "$as_me: failed program was:" >&5
18014sed 's/^/| /' conftest.$ac_ext >&5
18015
18016ac_cv_func_qsort_argtype=char
18017fi
18018rm -f conftest.$ac_objext conftest.$ac_ext
18019
18020fi
18021echo "$as_me:$LINENO: result: $ac_cv_func_qsort_argtype" >&5
18022echo "${ECHO_T}$ac_cv_func_qsort_argtype" >&6
18023case "$ac_cv_func_qsort_argtype" in
18024 void)
18025
18026cat >>confdefs.h <<\_ACEOF
18027#define QSORT_USES_VOID_P 1
18028_ACEOF
18029
18030    ;;
18031esac
18032
18033CFLAGS=$save_CFLAGS
18034
18035echo "$as_me:$LINENO: checking if we need to declare 'errno'" >&5
18036echo $ECHO_N "checking if we need to declare 'errno'... $ECHO_C" >&6
18037if test "${ac_cv_decl_errno+set}" = set; then
18038  echo $ECHO_N "(cached) $ECHO_C" >&6
18039else
18040  cat >conftest.$ac_ext <<_ACEOF
18041#line $LINENO "configure"
18042/* confdefs.h.  */
18043_ACEOF
18044cat confdefs.h >>conftest.$ac_ext
18045cat >>conftest.$ac_ext <<_ACEOF
18046/* end confdefs.h.  */
18047#ifdef HAVE_ERRNO_H
18048#include <errno.h>
18049#endif
18050int
18051main ()
18052{
18053errno = 0;
18054  ;
18055  return 0;
18056}
18057_ACEOF
18058rm -f conftest.$ac_objext
18059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18060  (eval $ac_compile) 2>&5
18061  ac_status=$?
18062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063  (exit $ac_status); } &&
18064         { ac_try='test -s conftest.$ac_objext'
18065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066  (eval $ac_try) 2>&5
18067  ac_status=$?
18068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069  (exit $ac_status); }; }; then
18070  ac_cv_decl_errno=no
18071else
18072  echo "$as_me: failed program was:" >&5
18073sed 's/^/| /' conftest.$ac_ext >&5
18074
18075ac_cv_decl_errno=yes
18076fi
18077rm -f conftest.$ac_objext conftest.$ac_ext
18078fi
18079echo "$as_me:$LINENO: result: $ac_cv_decl_errno" >&5
18080echo "${ECHO_T}$ac_cv_decl_errno" >&6
18081case "$ac_cv_decl_errno" in
18082 yes)
18083cat >>confdefs.h <<\_ACEOF
18084#define DECL_ERRNO 1
18085_ACEOF
18086 ;;
18087esac
18088
18089echo "$as_me:$LINENO: checking if we may declare 'h_errno'" >&5
18090echo $ECHO_N "checking if we may declare 'h_errno'... $ECHO_C" >&6
18091if test "${ac_cv_decl_h_errno+set}" = set; then
18092  echo $ECHO_N "(cached) $ECHO_C" >&6
18093else
18094  cat >conftest.$ac_ext <<_ACEOF
18095#line $LINENO "configure"
18096/* confdefs.h.  */
18097_ACEOF
18098cat confdefs.h >>conftest.$ac_ext
18099cat >>conftest.$ac_ext <<_ACEOF
18100/* end confdefs.h.  */
18101#include <sys/types.h>
18102#ifdef HAVE_NETINET_IN_H
18103#include <netinet/in.h>
18104#endif
18105#ifdef HAVE_ARPA_NAMESER_H
18106#include <arpa/nameser.h>
18107#endif
18108#ifdef HAVE_NETDB_H
18109#include <netdb.h>
18110#endif
18111#ifdef HAVE_RESOLV_H
18112#include <resolv.h>
18113#endif
18114int
18115main ()
18116{
18117extern int h_errno;
18118  ;
18119  return 0;
18120}
18121_ACEOF
18122rm -f conftest.$ac_objext
18123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18124  (eval $ac_compile) 2>&5
18125  ac_status=$?
18126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127  (exit $ac_status); } &&
18128         { ac_try='test -s conftest.$ac_objext'
18129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18130  (eval $ac_try) 2>&5
18131  ac_status=$?
18132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133  (exit $ac_status); }; }; then
18134  ac_cv_decl_h_errno=yes
18135else
18136  echo "$as_me: failed program was:" >&5
18137sed 's/^/| /' conftest.$ac_ext >&5
18138
18139ac_cv_decl_h_errno=no
18140fi
18141rm -f conftest.$ac_objext conftest.$ac_ext
18142fi
18143echo "$as_me:$LINENO: result: $ac_cv_decl_h_errno" >&5
18144echo "${ECHO_T}$ac_cv_decl_h_errno" >&6
18145case "$ac_cv_decl_h_errno" in
18146 yes)
18147cat >>confdefs.h <<\_ACEOF
18148#define DECL_H_ERRNO 1
18149_ACEOF
18150 ;;
18151esac
18152
18153echo "$as_me:$LINENO: checking if declaring 'char *sys_errlist[]' is ok" >&5
18154echo $ECHO_N "checking if declaring 'char *sys_errlist[]' is ok... $ECHO_C" >&6
18155if test "${ac_cv_decl_sys_errlist+set}" = set; then
18156  echo $ECHO_N "(cached) $ECHO_C" >&6
18157else
18158  cat >conftest.$ac_ext <<_ACEOF
18159#line $LINENO "configure"
18160/* confdefs.h.  */
18161_ACEOF
18162cat confdefs.h >>conftest.$ac_ext
18163cat >>conftest.$ac_ext <<_ACEOF
18164/* end confdefs.h.  */
18165#include <stdio.h>
18166#ifdef HAVE_ERRNO_H
18167#include <errno.h>
18168#endif
18169int
18170main ()
18171{
18172extern char *sys_errlist[];
18173
18174  ;
18175  return 0;
18176}
18177_ACEOF
18178rm -f conftest.$ac_objext
18179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18180  (eval $ac_compile) 2>&5
18181  ac_status=$?
18182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183  (exit $ac_status); } &&
18184         { ac_try='test -s conftest.$ac_objext'
18185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186  (eval $ac_try) 2>&5
18187  ac_status=$?
18188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189  (exit $ac_status); }; }; then
18190  ac_cv_decl_sys_errlist=yes
18191else
18192  echo "$as_me: failed program was:" >&5
18193sed 's/^/| /' conftest.$ac_ext >&5
18194
18195ac_cv_decl_sys_errlist=no
18196fi
18197rm -f conftest.$ac_objext conftest.$ac_ext
18198fi
18199echo "$as_me:$LINENO: result: $ac_cv_decl_sys_errlist" >&5
18200echo "${ECHO_T}$ac_cv_decl_sys_errlist" >&6
18201case "$ac_cv_decl_sys_errlist" in
18202 yes)
18203cat >>confdefs.h <<\_ACEOF
18204#define CHAR_SYS_ERRLIST 1
18205_ACEOF
18206 ;;
18207esac
18208
18209echo "$as_me:$LINENO: checking if declaring 'syscall()' is ok" >&5
18210echo $ECHO_N "checking if declaring 'syscall()' is ok... $ECHO_C" >&6
18211if test "${ac_cv_decl_syscall+set}" = set; then
18212  echo $ECHO_N "(cached) $ECHO_C" >&6
18213else
18214  cat >conftest.$ac_ext <<_ACEOF
18215#line $LINENO "configure"
18216/* confdefs.h.  */
18217_ACEOF
18218cat confdefs.h >>conftest.$ac_ext
18219cat >>conftest.$ac_ext <<_ACEOF
18220/* end confdefs.h.  */
18221
18222#ifdef HAVE_SYS_TYPES_H
18223# include <sys/types.h>
18224#endif
18225#ifdef HAVE_UNISTD_H
18226# include <unistd.h>
18227#endif
18228#ifdef HAVE_PROTOTYPES
18229#define P(x) x
18230#else
18231#define P(x) ()
18232#endif
18233
18234int
18235main ()
18236{
18237extern int syscall P((int, ...));
18238  ;
18239  return 0;
18240}
18241_ACEOF
18242rm -f conftest.$ac_objext
18243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18244  (eval $ac_compile) 2>&5
18245  ac_status=$?
18246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247  (exit $ac_status); } &&
18248         { ac_try='test -s conftest.$ac_objext'
18249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18250  (eval $ac_try) 2>&5
18251  ac_status=$?
18252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253  (exit $ac_status); }; }; then
18254  ac_cv_decl_syscall=yes
18255else
18256  echo "$as_me: failed program was:" >&5
18257sed 's/^/| /' conftest.$ac_ext >&5
18258
18259ac_cv_decl_syscall=no
18260fi
18261rm -f conftest.$ac_objext conftest.$ac_ext
18262fi
18263echo "$as_me:$LINENO: result: $ac_cv_decl_syscall" >&5
18264echo "${ECHO_T}$ac_cv_decl_syscall" >&6
18265case "$ac_cv_decl_syscall" in
18266 yes)
18267cat >>confdefs.h <<\_ACEOF
18268#define DECL_SYSCALL 1
18269_ACEOF
18270 ;;
18271esac
18272
18273case "$host" in
18274 *-*-aix4.3.*)
18275
18276cat >>confdefs.h <<\_ACEOF
18277#define DECL_HSTRERROR_0 1
18278_ACEOF
18279		# Needed for XLC under AIX 4.3.2
18280    ;;
18281 *-*-mpeix*)
18282
18283cat >>confdefs.h <<\_ACEOF
18284#define DECL_ADJTIME_0 1
18285_ACEOF
18286
18287
18288cat >>confdefs.h <<\_ACEOF
18289#define DECL_INET_NTOA_0 1
18290_ACEOF
18291
18292
18293cat >>confdefs.h <<\_ACEOF
18294#define DECL_MKTEMP_0 1
18295_ACEOF
18296
18297
18298cat >>confdefs.h <<\_ACEOF
18299#define DECL_MRAND48_0 1
18300_ACEOF
18301
18302
18303cat >>confdefs.h <<\_ACEOF
18304#define DECL_SELECT_0 1
18305_ACEOF
18306
18307
18308cat >>confdefs.h <<\_ACEOF
18309#define DECL_SETITIMER_0 1
18310_ACEOF
18311
18312
18313cat >>confdefs.h <<\_ACEOF
18314#define DECL_SRAND48_0 1
18315_ACEOF
18316
18317
18318cat >>confdefs.h <<\_ACEOF
18319#define DECL_SYSLOG_0 1
18320_ACEOF
18321
18322
18323cat >>confdefs.h <<\_ACEOF
18324#define DECL_TIMEOFDAY_0 1
18325_ACEOF
18326
18327    ;;
18328 *-*-osf[45]*)
18329
18330cat >>confdefs.h <<\_ACEOF
18331#define DECL_PLOCK_0 1
18332_ACEOF
18333
18334
18335cat >>confdefs.h <<\_ACEOF
18336#define DECL_STIME_1 1
18337_ACEOF
18338
18339    ;;
18340 *-*-qnx*)
18341
18342cat >>confdefs.h <<\_ACEOF
18343#define DECL_ADJTIME_0 1
18344_ACEOF
18345
18346    ;;
18347 *-*-riscos4*)
18348
18349cat >>confdefs.h <<\_ACEOF
18350#define DECL_ADJTIME_0 1
18351_ACEOF
18352
18353
18354cat >>confdefs.h <<\_ACEOF
18355#define DECL_BZERO_0 1
18356_ACEOF
18357
18358
18359cat >>confdefs.h <<\_ACEOF
18360#define DECL_IOCTL_0 1
18361_ACEOF
18362
18363
18364cat >>confdefs.h <<\_ACEOF
18365#define DECL_IPC_0 1
18366_ACEOF
18367
18368
18369cat >>confdefs.h <<\_ACEOF
18370#define DECL_MEMMOVE_0 1
18371_ACEOF
18372
18373
18374cat >>confdefs.h <<\_ACEOF
18375#define DECL_MKTEMP_0 1
18376_ACEOF
18377
18378
18379cat >>confdefs.h <<\_ACEOF
18380#define DECL_RENAME_0 1
18381_ACEOF
18382
18383
18384cat >>confdefs.h <<\_ACEOF
18385#define DECL_SELECT_0 1
18386_ACEOF
18387
18388
18389cat >>confdefs.h <<\_ACEOF
18390#define DECL_SETITIMER_0 1
18391_ACEOF
18392
18393
18394cat >>confdefs.h <<\_ACEOF
18395#define DECL_SETPRIORITY_0 1
18396_ACEOF
18397
18398
18399cat >>confdefs.h <<\_ACEOF
18400#define DECL_STDIO_0 1
18401_ACEOF
18402
18403
18404cat >>confdefs.h <<\_ACEOF
18405#define DECL_STRTOL_0 1
18406_ACEOF
18407
18408
18409cat >>confdefs.h <<\_ACEOF
18410#define DECL_SYSLOG_0 1
18411_ACEOF
18412
18413
18414cat >>confdefs.h <<\_ACEOF
18415#define DECL_TIME_0 1
18416_ACEOF
18417
18418
18419cat >>confdefs.h <<\_ACEOF
18420#define DECL_TIMEOFDAY_0 1
18421_ACEOF
18422
18423
18424cat >>confdefs.h <<\_ACEOF
18425#define DECL_TOLOWER_0 1
18426_ACEOF
18427
18428    ;;
18429 *-*-solaris2*)
18430
18431cat >>confdefs.h <<\_ACEOF
18432#define DECL_MKSTEMP_0 1
18433_ACEOF
18434
18435
18436cat >>confdefs.h <<\_ACEOF
18437#define DECL_SETPRIORITY_1 1
18438_ACEOF
18439
18440    case "$host" in
18441     *-*-solaris2.4)
18442
18443cat >>confdefs.h <<\_ACEOF
18444#define DECL_TIMEOFDAY_0 1
18445_ACEOF
18446
18447	;;
18448    esac
18449    ;;
18450 *-*-sunos4*)
18451
18452cat >>confdefs.h <<\_ACEOF
18453#define DECL_ADJTIME_0 1
18454_ACEOF
18455
18456
18457cat >>confdefs.h <<\_ACEOF
18458#define DECL_BCOPY_0 1
18459_ACEOF
18460
18461
18462cat >>confdefs.h <<\_ACEOF
18463#define DECL_BZERO_0 1
18464_ACEOF
18465
18466
18467cat >>confdefs.h <<\_ACEOF
18468#define DECL_IOCTL_0 1
18469_ACEOF
18470
18471
18472cat >>confdefs.h <<\_ACEOF
18473#define DECL_IPC_0 1
18474_ACEOF
18475
18476
18477cat >>confdefs.h <<\_ACEOF
18478#define DECL_MEMMOVE_0 1
18479_ACEOF
18480
18481
18482cat >>confdefs.h <<\_ACEOF
18483#define DECL_MKTEMP_0 1
18484_ACEOF
18485
18486
18487cat >>confdefs.h <<\_ACEOF
18488#define DECL_MKSTEMP_0 1
18489_ACEOF
18490
18491
18492cat >>confdefs.h <<\_ACEOF
18493#define DECL_MRAND48_0 1
18494_ACEOF
18495
18496
18497cat >>confdefs.h <<\_ACEOF
18498#define DECL_RENAME_0 1
18499_ACEOF
18500
18501
18502cat >>confdefs.h <<\_ACEOF
18503#define DECL_SELECT_0 1
18504_ACEOF
18505
18506
18507cat >>confdefs.h <<\_ACEOF
18508#define DECL_SETITIMER_0 1
18509_ACEOF
18510
18511
18512cat >>confdefs.h <<\_ACEOF
18513#define DECL_SETPRIORITY_0 1
18514_ACEOF
18515
18516
18517cat >>confdefs.h <<\_ACEOF
18518#define DECL_SIGVEC_0 1
18519_ACEOF
18520
18521
18522cat >>confdefs.h <<\_ACEOF
18523#define DECL_SRAND48_0 1
18524_ACEOF
18525
18526    case "`basename $ac_cv_prog_CC`" in
18527     acc*) ;;
18528     *)
18529cat >>confdefs.h <<\_ACEOF
18530#define DECL_STDIO_0 1
18531_ACEOF
18532
18533	;;
18534    esac
18535
18536cat >>confdefs.h <<\_ACEOF
18537#define DECL_STRTOL_0 1
18538_ACEOF
18539
18540
18541cat >>confdefs.h <<\_ACEOF
18542#define DECL_SYSLOG_0 1
18543_ACEOF
18544
18545
18546cat >>confdefs.h <<\_ACEOF
18547#define DECL_TIME_0 1
18548_ACEOF
18549
18550
18551cat >>confdefs.h <<\_ACEOF
18552#define DECL_TIMEOFDAY_0 1
18553_ACEOF
18554
18555
18556cat >>confdefs.h <<\_ACEOF
18557#define DECL_TOLOWER_0 1
18558_ACEOF
18559
18560
18561cat >>confdefs.h <<\_ACEOF
18562#define DECL_TOUPPER_0 1
18563_ACEOF
18564
18565
18566cat >>confdefs.h <<\_ACEOF
18567#define DECL_STRERROR_0 1
18568_ACEOF
18569
18570    ;;
18571 *-*-ultrix4*)
18572
18573cat >>confdefs.h <<\_ACEOF
18574#define DECL_ADJTIME_0 1
18575_ACEOF
18576
18577
18578cat >>confdefs.h <<\_ACEOF
18579#define DECL_BZERO_0 1
18580_ACEOF
18581
18582
18583cat >>confdefs.h <<\_ACEOF
18584#define DECL_CFSETISPEED_0 1
18585_ACEOF
18586
18587
18588cat >>confdefs.h <<\_ACEOF
18589#define DECL_IOCTL_0 1
18590_ACEOF
18591
18592
18593cat >>confdefs.h <<\_ACEOF
18594#define DECL_IPC_0 1
18595_ACEOF
18596
18597
18598cat >>confdefs.h <<\_ACEOF
18599#define DECL_MKTEMP_0 1
18600_ACEOF
18601
18602
18603cat >>confdefs.h <<\_ACEOF
18604#define DECL_MRAND48_0 1
18605_ACEOF
18606
18607
18608cat >>confdefs.h <<\_ACEOF
18609#define DECL_NLIST_0 1
18610_ACEOF
18611
18612
18613cat >>confdefs.h <<\_ACEOF
18614#define DECL_PLOCK_0 1
18615_ACEOF
18616
18617
18618cat >>confdefs.h <<\_ACEOF
18619#define DECL_SELECT_0 1
18620_ACEOF
18621
18622
18623cat >>confdefs.h <<\_ACEOF
18624#define DECL_SETITIMER_0 1
18625_ACEOF
18626
18627
18628cat >>confdefs.h <<\_ACEOF
18629#define DECL_SETPRIORITY_0 1
18630_ACEOF
18631
18632
18633cat >>confdefs.h <<\_ACEOF
18634#define DECL_SRAND48_0 1
18635_ACEOF
18636
18637
18638cat >>confdefs.h <<\_ACEOF
18639#define DECL_STIME_0 1
18640_ACEOF
18641
18642
18643cat >>confdefs.h <<\_ACEOF
18644#define DECL_SYSLOG_0 1
18645_ACEOF
18646
18647
18648cat >>confdefs.h <<\_ACEOF
18649#define DECL_TIMEOFDAY_0 1
18650_ACEOF
18651
18652    ;;
18653esac
18654
18655case "$host" in
18656 *-*-sco3.2*)
18657
18658cat >>confdefs.h <<\_ACEOF
18659#define TERMIOS_NEEDS__SVID3 1
18660_ACEOF
18661
18662    ;;
18663esac
18664
18665echo "$as_me:$LINENO: checking if we need extra room for SO_RCVBUF" >&5
18666echo $ECHO_N "checking if we need extra room for SO_RCVBUF... $ECHO_C" >&6
18667if test "${ac_cv_var_rcvbuf_slop+set}" = set; then
18668  echo $ECHO_N "(cached) $ECHO_C" >&6
18669else
18670  ans=no
18671case "$host" in
18672 *-*-hpux[567]*)
18673    ans=yes
18674    ;;
18675esac
18676ac_cv_var_rcvbuf_slop=$ans
18677fi
18678echo "$as_me:$LINENO: result: $ac_cv_var_rcvbuf_slop" >&5
18679echo "${ECHO_T}$ac_cv_var_rcvbuf_slop" >&6
18680case "$ac_cv_var_rcvbuf_slop" in
18681 yes)
18682cat >>confdefs.h <<\_ACEOF
18683#define NEED_RCVBUF_SLOP 1
18684_ACEOF
18685 ;;
18686esac
18687
18688echo "$as_me:$LINENO: checking if we will open the broadcast socket" >&5
18689echo $ECHO_N "checking if we will open the broadcast socket... $ECHO_C" >&6
18690if test "${ac_cv_var_open_bcast_socket+set}" = set; then
18691  echo $ECHO_N "(cached) $ECHO_C" >&6
18692else
18693  ans=yes
18694case "$host" in
18695 *-*-domainos)
18696    ans=no
18697    ;;
18698esac
18699ac_cv_var_open_bcast_socket=$ans
18700fi
18701echo "$as_me:$LINENO: result: $ac_cv_var_open_bcast_socket" >&5
18702echo "${ECHO_T}$ac_cv_var_open_bcast_socket" >&6
18703case "$ac_cv_var_open_bcast_socket" in
18704 yes)
18705cat >>confdefs.h <<\_ACEOF
18706#define OPEN_BCAST_SOCKET 1
18707_ACEOF
18708 ;;
18709esac
18710
18711echo "$as_me:$LINENO: checking if we want the HPUX version of FindConfig()" >&5
18712echo $ECHO_N "checking if we want the HPUX version of FindConfig()... $ECHO_C" >&6
18713if test "${ac_cv_var_hpux_findconfig+set}" = set; then
18714  echo $ECHO_N "(cached) $ECHO_C" >&6
18715else
18716  ans=no
18717case "$host" in
18718 *-*-hpux*)
18719    ans=yes
18720    ;;
18721esac
18722ac_cv_var_hpux_findconfig=$ans
18723fi
18724echo "$as_me:$LINENO: result: $ac_cv_var_hpux_findconfig" >&5
18725echo "${ECHO_T}$ac_cv_var_hpux_findconfig" >&6
18726case "$ac_cv_var_hpux_findconfig" in
18727 yes)
18728cat >>confdefs.h <<\_ACEOF
18729#define NEED_HPUX_FINDCONFIG 1
18730_ACEOF
18731 ;;
18732esac
18733
18734echo "$as_me:$LINENO: checking if process groups are set with -pid" >&5
18735echo $ECHO_N "checking if process groups are set with -pid... $ECHO_C" >&6
18736if test "${ac_cv_arg_setpgrp_negpid+set}" = set; then
18737  echo $ECHO_N "(cached) $ECHO_C" >&6
18738else
18739  case "$host" in
18740 *-*-hpux[567]*)
18741    ans=no
18742    ;;
18743 *-*-hpux*)
18744    ans=yes
18745    ;;
18746 *-*-linux*)
18747    ans=yes
18748    ;;
18749 *-*-sunos3*)
18750    ans=yes
18751    ;;
18752 *-*-ultrix2*)
18753    ans=yes
18754    ;;
18755 *)
18756    ans=no
18757    ;;
18758esac
18759ac_cv_arg_setpgrp_negpid=$ans
18760fi
18761echo "$as_me:$LINENO: result: $ac_cv_arg_setpgrp_negpid" >&5
18762echo "${ECHO_T}$ac_cv_arg_setpgrp_negpid" >&6
18763case "$ac_cv_arg_setpgrp_negpid" in
18764 yes)
18765cat >>confdefs.h <<\_ACEOF
18766#define UDP_BACKWARDS_SETOWN 1
18767_ACEOF
18768 ;;
18769esac
18770
18771echo "$as_me:$LINENO: checking if we need a ctty for F_SETOWN" >&5
18772echo $ECHO_N "checking if we need a ctty for F_SETOWN... $ECHO_C" >&6
18773if test "${ac_cv_func_ctty_for_f_setown+set}" = set; then
18774  echo $ECHO_N "(cached) $ECHO_C" >&6
18775else
18776  case "$host" in
18777 *-*-bsdi[23]*)
18778    ans=yes
18779    ;;
18780 *-*-freebsd*)
18781    ans=yes
18782    ;;
18783 *-*-netbsd*)
18784    ans=yes
18785    ;;
18786 *-*-openbsd*)
18787    ans=yes
18788    ;;
18789 *-*-osf*)
18790    ans=yes
18791    ;;
18792 *) ans=no
18793    ;;
18794esac
18795ac_cv_func_ctty_for_f_setown=$ans
18796fi
18797echo "$as_me:$LINENO: result: $ac_cv_func_ctty_for_f_setown" >&5
18798echo "${ECHO_T}$ac_cv_func_ctty_for_f_setown" >&6
18799case "$ac_cv_func_ctty_for_f_setown" in
18800 yes)
18801cat >>confdefs.h <<\_ACEOF
18802#define USE_FSETOWNCTTY 1
18803_ACEOF
18804 ;;
18805esac
18806
18807ntp_warning='GRONK'
18808echo "$as_me:$LINENO: checking if we'll use clock_settime or settimeofday or stime" >&5
18809echo $ECHO_N "checking if we'll use clock_settime or settimeofday or stime... $ECHO_C" >&6
18810case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
18811 yes*)
18812    ntp_warning=''
18813    ans='clock_settime()'
18814    ;;
18815 noyes*)
18816    ntp_warning='But clock_settime() would be better (if we had it)'
18817    ans='settimeofday()'
18818    ;;
18819 nonoyes)
18820    ntp_warning='Which is the worst of the three'
18821    ans='stime()'
18822    ;;
18823 *)
18824    case "$build" in
18825     $host) ntp_warning='Which leaves us with nothing to use!'
18826    ans=none
18827    ;;
18828esac
18829esac
18830echo "$as_me:$LINENO: result: $ans" >&5
18831echo "${ECHO_T}$ans" >&6
18832case "$ntp_warning" in
18833 '') ;;
18834 *) { echo "$as_me:$LINENO: WARNING: *** $ntp_warning ***" >&5
18835echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
18836    ;;
18837esac
18838
18839echo "$as_me:$LINENO: checking if we have a losing syscall()" >&5
18840echo $ECHO_N "checking if we have a losing syscall()... $ECHO_C" >&6
18841if test "${ac_cv_var_syscall_bug+set}" = set; then
18842  echo $ECHO_N "(cached) $ECHO_C" >&6
18843else
18844  case "$host" in
18845 *-*-solaris2.4*)
18846    ans=yes
18847    ;;
18848 *) ans=no
18849    ;;
18850esac
18851ac_cv_var_syscall_bug=$ans
18852fi
18853echo "$as_me:$LINENO: result: $ac_cv_var_syscall_bug" >&5
18854echo "${ECHO_T}$ac_cv_var_syscall_bug" >&6
18855case "$ac_cv_var_syscall_bug" in
18856 yes)
18857cat >>confdefs.h <<\_ACEOF
18858#define SYSCALL_BUG 1
18859_ACEOF
18860 ;;
18861esac
18862
18863echo "$as_me:$LINENO: checking for Streams/TLI" >&5
18864echo $ECHO_N "checking for Streams/TLI... $ECHO_C" >&6
18865if test "${ac_cv_var_streams_tli+set}" = set; then
18866  echo $ECHO_N "(cached) $ECHO_C" >&6
18867else
18868   case "$ac_cv_header_sys_stropts_h" in
18869  yes)
18870     ans=no
18871     # There must be a better way...
18872     case "$host" in
18873      *-*-ptx*)
18874         ans=yes
18875         ;;
18876     esac
18877     ;;
18878 esac
18879 ac_cv_var_streams_tli=$ans
18880fi
18881echo "$as_me:$LINENO: result: $ac_cv_var_streams_tli" >&5
18882echo "${ECHO_T}$ac_cv_var_streams_tli" >&6
18883case "$ac_cv_var_streams_tli" in
18884 yes)
18885
18886cat >>confdefs.h <<\_ACEOF
18887#define STREAMS_TLI 1
18888_ACEOF
18889
18890    ;;
18891esac
18892
18893echo "$as_me:$LINENO: checking for SIGIO" >&5
18894echo $ECHO_N "checking for SIGIO... $ECHO_C" >&6
18895if test "${ac_cv_hdr_def_sigio+set}" = set; then
18896  echo $ECHO_N "(cached) $ECHO_C" >&6
18897else
18898  cat >conftest.$ac_ext <<_ACEOF
18899#line $LINENO "configure"
18900/* confdefs.h.  */
18901_ACEOF
18902cat confdefs.h >>conftest.$ac_ext
18903cat >>conftest.$ac_ext <<_ACEOF
18904/* end confdefs.h.  */
18905#include <signal.h>
18906#ifdef SIGIO
18907   yes
18908#endif
18909
18910_ACEOF
18911if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18912  $EGREP "yes" >/dev/null 2>&1; then
18913  ac_cv_hdr_def_sigio=yes
18914else
18915  ac_cv_hdr_def_sigio=no
18916fi
18917rm -f conftest*
18918
18919fi
18920echo "$as_me:$LINENO: result: $ac_cv_hdr_def_sigio" >&5
18921echo "${ECHO_T}$ac_cv_hdr_def_sigio" >&6
18922
18923echo "$as_me:$LINENO: checking if we want to use signalled IO" >&5
18924echo $ECHO_N "checking if we want to use signalled IO... $ECHO_C" >&6
18925if test "${ac_cv_var_signalled_io+set}" = set; then
18926  echo $ECHO_N "(cached) $ECHO_C" >&6
18927else
18928  ans=no
18929case "$ac_cv_hdr_def_sigio" in
18930 yes)
18931    ans=yes
18932    case "$host" in
18933     alpha*-dec-osf4*|alpha*-dec-osf5*)
18934        ans=no
18935        ;;
18936     *-convex-*)
18937        ans=no
18938        ;;
18939     *-dec-*)
18940        ans=no
18941        ;;
18942     *-pc-cygwin*)
18943	ans=no
18944	;;
18945     *-sni-sysv*)
18946        ans=no
18947        ;;
18948     *-univel-sysv*)
18949        ans=no
18950	;;
18951     *-*-irix6*)
18952	ans=no
18953	;;
18954     *-*-freebsd*)
18955	ans=no
18956	;;
18957     *-*-linux*)
18958	ans=no
18959	;;
18960     *-*-unicosmp*)
18961	ans=no
18962	;;
18963    esac
18964    ;;
18965esac
18966ac_cv_var_signalled_io=$ans
18967fi
18968echo "$as_me:$LINENO: result: $ac_cv_var_signalled_io" >&5
18969echo "${ECHO_T}$ac_cv_var_signalled_io" >&6
18970case "$ac_cv_var_signalled_io" in
18971 yes)
18972cat >>confdefs.h <<\_ACEOF
18973#define HAVE_SIGNALED_IO 1
18974_ACEOF
18975 ;;
18976esac
18977
18978echo "$as_me:$LINENO: checking for SIGPOLL" >&5
18979echo $ECHO_N "checking for SIGPOLL... $ECHO_C" >&6
18980if test "${ac_cv_hdr_def_sigpoll+set}" = set; then
18981  echo $ECHO_N "(cached) $ECHO_C" >&6
18982else
18983  cat >conftest.$ac_ext <<_ACEOF
18984#line $LINENO "configure"
18985/* confdefs.h.  */
18986_ACEOF
18987cat confdefs.h >>conftest.$ac_ext
18988cat >>conftest.$ac_ext <<_ACEOF
18989/* end confdefs.h.  */
18990#include <signal.h>
18991#ifdef SIGPOLL
18992  yes
18993#endif
18994
18995_ACEOF
18996if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18997  $EGREP "yes" >/dev/null 2>&1; then
18998  ac_cv_hdr_def_sigpoll=yes
18999else
19000  ac_cv_hdr_def_sigpoll=no
19001fi
19002rm -f conftest*
19003
19004fi
19005echo "$as_me:$LINENO: result: $ac_cv_hdr_def_sigpoll" >&5
19006echo "${ECHO_T}$ac_cv_hdr_def_sigpoll" >&6
19007
19008echo "$as_me:$LINENO: checking for SIGSYS" >&5
19009echo $ECHO_N "checking for SIGSYS... $ECHO_C" >&6
19010if test "${ac_cv_hdr_def_sigsys+set}" = set; then
19011  echo $ECHO_N "(cached) $ECHO_C" >&6
19012else
19013  cat >conftest.$ac_ext <<_ACEOF
19014#line $LINENO "configure"
19015/* confdefs.h.  */
19016_ACEOF
19017cat confdefs.h >>conftest.$ac_ext
19018cat >>conftest.$ac_ext <<_ACEOF
19019/* end confdefs.h.  */
19020#include <signal.h>
19021#ifdef SIGSYS
19022  yes
19023#endif
19024
19025_ACEOF
19026if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19027  $EGREP "yes" >/dev/null 2>&1; then
19028  ac_cv_hdr_def_sigsys=yes
19029else
19030  ac_cv_hdr_def_sigsys=no
19031fi
19032rm -f conftest*
19033
19034fi
19035echo "$as_me:$LINENO: result: $ac_cv_hdr_def_sigsys" >&5
19036echo "${ECHO_T}$ac_cv_hdr_def_sigsys" >&6
19037
19038echo "$as_me:$LINENO: checking if we can use SIGPOLL for UDP I/O" >&5
19039echo $ECHO_N "checking if we can use SIGPOLL for UDP I/O... $ECHO_C" >&6
19040if test "${ac_cv_var_use_udp_sigpoll+set}" = set; then
19041  echo $ECHO_N "(cached) $ECHO_C" >&6
19042else
19043  ans=no
19044case "$ac_cv_hdr_def_sigpoll" in
19045 yes)
19046    case "$host" in
19047     mips-sgi-irix*)
19048	ans=no
19049	;;
19050     vax-dec-bsd)
19051        ans=no
19052        ;;
19053     *-pc-cygwin*)
19054	ans=no
19055	;;
19056     *-sni-sysv*)
19057        ans=no
19058        ;;
19059     *-*-aix[45]*)
19060        ans=no
19061        ;;
19062     *-*-hpux*)
19063        ans=no
19064        ;;
19065     *-*-linux*)
19066	ans=no
19067	;;
19068     *-*-osf*)
19069        ans=no
19070        ;;
19071     *-*-qnx*)
19072        ans=no
19073        ;;
19074     *-*-sunos*)
19075	ans=no
19076	;;
19077     *-*-ultrix*)
19078        ans=no
19079        ;;
19080     *-*-unicosmp*)
19081        ans=no
19082        ;;
19083     *) ans=yes
19084        ;;
19085    esac
19086    ;;
19087esac
19088ac_cv_var_use_udp_sigpoll=$ans
19089fi
19090echo "$as_me:$LINENO: result: $ac_cv_var_use_udp_sigpoll" >&5
19091echo "${ECHO_T}$ac_cv_var_use_udp_sigpoll" >&6
19092case "$ac_cv_var_use_udp_sigpoll" in
19093 yes)
19094cat >>confdefs.h <<\_ACEOF
19095#define USE_UDP_SIGPOLL 1
19096_ACEOF
19097 ;;
19098esac
19099
19100echo "$as_me:$LINENO: checking if we can use SIGPOLL for TTY I/O" >&5
19101echo $ECHO_N "checking if we can use SIGPOLL for TTY I/O... $ECHO_C" >&6
19102if test "${ac_cv_var_use_tty_sigpoll+set}" = set; then
19103  echo $ECHO_N "(cached) $ECHO_C" >&6
19104else
19105  ans=no
19106case "$ac_cv_hdr_def_sigpoll" in
19107 yes)
19108    case "$host" in
19109     mips-sgi-irix*)
19110        ans=no
19111        ;;
19112     vax-dec-bsd)
19113        ans=no
19114        ;;
19115     *-pc-cygwin*)
19116	ans=no
19117	;;
19118     *-sni-sysv*)
19119        ans=no
19120        ;;
19121     *-*-aix[45]*)
19122	ans=no
19123	;;
19124     *-*-hpux*)
19125        ans=no
19126        ;;
19127     *-*-linux*)
19128	ans=no
19129	;;
19130     *-*-osf*)
19131        ans=no
19132        ;;
19133     *-*-sunos*)
19134	ans=no
19135	;;
19136     *-*-ultrix*)
19137        ans=no
19138        ;;
19139     *-*-qnx*)
19140        ans=no
19141        ;;
19142     *-*-unicosmp*)
19143        ans=no
19144        ;;
19145     *) ans=yes
19146        ;;
19147    esac
19148    ;;
19149esac
19150ac_cv_var_use_tty_sigpoll=$ans
19151fi
19152echo "$as_me:$LINENO: result: $ac_cv_var_use_tty_sigpoll" >&5
19153echo "${ECHO_T}$ac_cv_var_use_tty_sigpoll" >&6
19154case "$ac_cv_var_use_tty_sigpoll" in
19155 yes)
19156cat >>confdefs.h <<\_ACEOF
19157#define USE_TTY_SIGPOLL 1
19158_ACEOF
19159 ;;
19160esac
19161
19162case "$ac_cv_header_sys_sio_h" in
19163 yes)
19164    echo "$as_me:$LINENO: checking sys/sio.h for TIOCDCDTIMESTAMP" >&5
19165echo $ECHO_N "checking sys/sio.h for TIOCDCDTIMESTAMP... $ECHO_C" >&6
19166if test "${ac_cv_hdr_def_tiocdcdtimestamp+set}" = set; then
19167  echo $ECHO_N "(cached) $ECHO_C" >&6
19168else
19169  cat >conftest.$ac_ext <<_ACEOF
19170#line $LINENO "configure"
19171/* confdefs.h.  */
19172_ACEOF
19173cat confdefs.h >>conftest.$ac_ext
19174cat >>conftest.$ac_ext <<_ACEOF
19175/* end confdefs.h.  */
19176#include <sys/sio.h>
19177#ifdef TIOCDCDTIMESTAMP
19178  yes
19179#endif
19180
19181_ACEOF
19182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19183  $EGREP "yes" >/dev/null 2>&1; then
19184  ac_cv_hdr_def_tiocdcdtimestamp=yes
19185else
19186  ac_cv_hdr_def_tiocdcdtimestamp=no
19187fi
19188rm -f conftest*
19189
19190fi
19191echo "$as_me:$LINENO: result: $ac_cv_hdr_def_tiocdcdtimestamp" >&5
19192echo "${ECHO_T}$ac_cv_hdr_def_tiocdcdtimestamp" >&6
19193    ;;
19194esac
19195
19196case "$ac_cv_hdr_def_tiocdcdtimestamp" in
19197 yes)
19198    ac_cv_var_oncore_ok=yes
19199    ;;
19200esac
19201
19202echo "$as_me:$LINENO: checking if nlist() values might require extra indirection" >&5
19203echo $ECHO_N "checking if nlist() values might require extra indirection... $ECHO_C" >&6
19204if test "${ac_cv_var_nlist_extra_indirection+set}" = set; then
19205  echo $ECHO_N "(cached) $ECHO_C" >&6
19206else
19207  ans=no
19208case "$host" in
19209 *-*-aix*)
19210    ans=yes
19211    ;;
19212esac
19213ac_cv_var_nlist_extra_indirection=$ans
19214fi
19215echo "$as_me:$LINENO: result: $ac_cv_var_nlist_extra_indirection" >&5
19216echo "${ECHO_T}$ac_cv_var_nlist_extra_indirection" >&6
19217case "$ac_cv_var_nlist_extra_indirection" in
19218 yes)
19219cat >>confdefs.h <<\_ACEOF
19220#define NLIST_EXTRA_INDIRECTION 1
19221_ACEOF
19222 ;;
19223esac
19224
19225echo "$as_me:$LINENO: checking for a minimum recommended value of tickadj" >&5
19226echo $ECHO_N "checking for a minimum recommended value of tickadj... $ECHO_C" >&6
19227if test "${ac_cv_var_min_rec_tickadj+set}" = set; then
19228  echo $ECHO_N "(cached) $ECHO_C" >&6
19229else
19230  ans=no
19231case "$host" in
19232 *-*-aix*)
19233    ans=40
19234    ;;
19235esac
19236ac_cv_var_min_rec_tickadj=$ans
19237fi
19238echo "$as_me:$LINENO: result: $ac_cv_var_min_rec_tickadj" >&5
19239echo "${ECHO_T}$ac_cv_var_min_rec_tickadj" >&6
19240case "$ac_cv_var_min_rec_tickadj" in
19241 ''|no) ;;
19242 *)
19243cat >>confdefs.h <<_ACEOF
19244#define MIN_REC_TICKADJ $ac_cv_var_min_rec_tickadj
19245_ACEOF
19246 ;;
19247esac
19248
19249echo "$as_me:$LINENO: checking if the TTY code permits PARENB and IGNPAR" >&5
19250echo $ECHO_N "checking if the TTY code permits PARENB and IGNPAR... $ECHO_C" >&6
19251if test "${ac_cv_var_no_parenb_ignpar+set}" = set; then
19252  echo $ECHO_N "(cached) $ECHO_C" >&6
19253else
19254  ans=no
19255case "$host" in
19256 i?86-*-linux*)
19257    ans=yes
19258    ;;
19259 mips-sgi-irix*)
19260    ans=yes
19261    ;;
19262 i?86-*-freebsd[123].*)
19263    ;;
19264 i?86-*-freebsd*)
19265    ans=yes
19266    ;;
19267 *-*-unicosmp*)
19268    ans=yes
19269    ;;
19270esac
19271ac_cv_var_no_parenb_ignpar=$ans
19272fi
19273echo "$as_me:$LINENO: result: $ac_cv_var_no_parenb_ignpar" >&5
19274echo "${ECHO_T}$ac_cv_var_no_parenb_ignpar" >&6
19275case "$ac_cv_var_no_parenb_ignpar" in
19276 yes)
19277cat >>confdefs.h <<\_ACEOF
19278#define NO_PARENB_IGNPAR 1
19279_ACEOF
19280 ;;
19281esac
19282
19283echo "$as_me:$LINENO: checking if we're including debugging code" >&5
19284echo $ECHO_N "checking if we're including debugging code... $ECHO_C" >&6
19285# Check whether --enable-debugging or --disable-debugging was given.
19286if test "${enable_debugging+set}" = set; then
19287  enableval="$enable_debugging"
19288  ntp_ok=$enableval
19289else
19290  ntp_ok=yes
19291fi;
19292if test "$ntp_ok" = "yes"; then
19293
19294cat >>confdefs.h <<\_ACEOF
19295#define DEBUG 1
19296_ACEOF
19297
19298fi
19299echo "$as_me:$LINENO: result: $ntp_ok" >&5
19300echo "${ECHO_T}$ntp_ok" >&6
19301
19302echo "$as_me:$LINENO: checking for a the number of minutes in a DST adjustment" >&5
19303echo $ECHO_N "checking for a the number of minutes in a DST adjustment... $ECHO_C" >&6
19304# Check whether --enable-dst_minutes or --disable-dst_minutes was given.
19305if test "${enable_dst_minutes+set}" = set; then
19306  enableval="$enable_dst_minutes"
19307  ans=$enableval
19308else
19309  ans=60
19310fi;
19311
19312cat >>confdefs.h <<_ACEOF
19313#define DSTMINUTES $ans
19314_ACEOF
19315
19316echo "$as_me:$LINENO: result: $ans" >&5
19317echo "${ECHO_T}$ans" >&6
19318
19319echo "$as_me:$LINENO: checking if we have the tty_clk line discipline/streams module" >&5
19320echo $ECHO_N "checking if we have the tty_clk line discipline/streams module... $ECHO_C" >&6
19321if test "${ac_cv_var_tty_clk+set}" = set; then
19322  echo $ECHO_N "(cached) $ECHO_C" >&6
19323else
19324  case "$ac_cv_header_sys_clkdefs_h$ac_cv_hdr_def_tiocdcdtimestamp" in
19325  *yes*) ac_cv_var_tty_clk=yes ;;
19326 esac
19327fi
19328echo "$as_me:$LINENO: result: $ac_cv_var_tty_clk" >&5
19329echo "${ECHO_T}$ac_cv_var_tty_clk" >&6
19330case "$ac_cv_var_tty_clk" in
19331 yes)
19332cat >>confdefs.h <<\_ACEOF
19333#define TTYCLK 1
19334_ACEOF
19335 ;;
19336esac
19337
19338echo "$as_me:$LINENO: checking for the ppsclock streams module" >&5
19339echo $ECHO_N "checking for the ppsclock streams module... $ECHO_C" >&6
19340if test "${ac_cv_var_ppsclock+set}" = set; then
19341  echo $ECHO_N "(cached) $ECHO_C" >&6
19342else
19343  ac_cv_var_ppsclock=$ac_cv_struct_ppsclockev
19344fi
19345echo "$as_me:$LINENO: result: $ac_cv_var_ppsclock" >&5
19346echo "${ECHO_T}$ac_cv_var_ppsclock" >&6
19347case "$ac_cv_var_ppsclock" in
19348 yes)
19349cat >>confdefs.h <<\_ACEOF
19350#define PPS 1
19351_ACEOF
19352 ;;
19353esac
19354
19355echo "$as_me:$LINENO: checking for kernel multicast support" >&5
19356echo $ECHO_N "checking for kernel multicast support... $ECHO_C" >&6
19357if test "${ac_cv_var_mcast+set}" = set; then
19358  echo $ECHO_N "(cached) $ECHO_C" >&6
19359else
19360  ac_cv_var_mcast=no
19361  case "$host" in
19362   i386-sequent-sysv4) ;;
19363   *) cat >conftest.$ac_ext <<_ACEOF
19364#line $LINENO "configure"
19365/* confdefs.h.  */
19366_ACEOF
19367cat confdefs.h >>conftest.$ac_ext
19368cat >>conftest.$ac_ext <<_ACEOF
19369/* end confdefs.h.  */
19370#include <netinet/in.h>
19371#ifdef IP_ADD_MEMBERSHIP
19372   yes
19373#endif
19374
19375_ACEOF
19376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19377  $EGREP "yes" >/dev/null 2>&1; then
19378  ac_cv_var_mcast=yes
19379fi
19380rm -f conftest*
19381 ;;
19382  esac
19383fi
19384echo "$as_me:$LINENO: result: $ac_cv_var_mcast" >&5
19385echo "${ECHO_T}$ac_cv_var_mcast" >&6
19386case "$ac_cv_var_mcast" in
19387 yes)
19388cat >>confdefs.h <<\_ACEOF
19389#define MCAST 1
19390_ACEOF
19391 ;;
19392esac
19393
19394echo "$as_me:$LINENO: checking availability of ntp_{adj,get}time()" >&5
19395echo $ECHO_N "checking availability of ntp_{adj,get}time()... $ECHO_C" >&6
19396if test "${ac_cv_var_ntp_syscalls+set}" = set; then
19397  echo $ECHO_N "(cached) $ECHO_C" >&6
19398else
19399  ac_cv_var_ntp_syscalls=no
19400 case "$ac_cv_func___adjtimex" in
19401  yes)
19402    ac_cv_var_ntp_syscalls=libc
19403    ;;
19404  *) case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime" in
19405      yesyes)
19406        ac_cv_var_ntp_syscalls=libc
19407        ;;
19408      *) cat >conftest.$ac_ext <<_ACEOF
19409#line $LINENO "configure"
19410/* confdefs.h.  */
19411_ACEOF
19412cat confdefs.h >>conftest.$ac_ext
19413cat >>conftest.$ac_ext <<_ACEOF
19414/* end confdefs.h.  */
19415#include <sys/syscall.h>
19416#if defined(SYS_ntp_gettime) && defined(SYS_ntp_adjtime)
19417           yes
19418#endif
19419
19420_ACEOF
19421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19422  $EGREP "yes" >/dev/null 2>&1; then
19423  ac_cv_var_ntp_syscalls=kernel
19424fi
19425rm -f conftest*
19426
19427         ;;
19428     esac
19429     ;;
19430 esac
19431fi
19432echo "$as_me:$LINENO: result: $ac_cv_var_ntp_syscalls" >&5
19433echo "${ECHO_T}$ac_cv_var_ntp_syscalls" >&6
19434case "$ac_cv_var_ntp_syscalls" in
19435 libc)
19436
19437cat >>confdefs.h <<\_ACEOF
19438#define NTP_SYSCALLS_LIBC 1
19439_ACEOF
19440
19441    ;;
19442 kernel)
19443
19444cat >>confdefs.h <<\_ACEOF
19445#define NTP_SYSCALLS_STD 1
19446_ACEOF
19447
19448    ;;
19449 *)
19450    ;;
19451esac
19452
19453echo "$as_me:$LINENO: checking if sys/timex.h has STA_FLL" >&5
19454echo $ECHO_N "checking if sys/timex.h has STA_FLL... $ECHO_C" >&6
19455if test "${ac_cv_var_sta_fll+set}" = set; then
19456  echo $ECHO_N "(cached) $ECHO_C" >&6
19457else
19458  cat >conftest.$ac_ext <<_ACEOF
19459#line $LINENO "configure"
19460/* confdefs.h.  */
19461_ACEOF
19462cat confdefs.h >>conftest.$ac_ext
19463cat >>conftest.$ac_ext <<_ACEOF
19464/* end confdefs.h.  */
19465#include <sys/timex.h>
19466#ifdef STA_FLL
19467    yes
19468#endif
19469
19470_ACEOF
19471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19472  $EGREP "yes" >/dev/null 2>&1; then
19473  ac_cv_var_sta_fll=yes
19474else
19475  ac_cv_var_sta_fll=no
19476fi
19477rm -f conftest*
19478
19479fi
19480echo "$as_me:$LINENO: result: $ac_cv_var_sta_fll" >&5
19481echo "${ECHO_T}$ac_cv_var_sta_fll" >&6
19482
19483echo "$as_me:$LINENO: checking if we have kernel PLL support" >&5
19484echo $ECHO_N "checking if we have kernel PLL support... $ECHO_C" >&6
19485if test "${ac_cv_var_kernel_pll+set}" = set; then
19486  echo $ECHO_N "(cached) $ECHO_C" >&6
19487else
19488  case "$ac_cv_header_sys_timex_h$ac_cv_struct_ntptimeval$ac_cv_var_sta_fll$ac_cv_var_ntp_syscalls" in
19489 *no*)
19490    ac_cv_var_kernel_pll=no
19491    ;;
19492 *) ac_cv_var_kernel_pll=yes
19493    ;;
19494esac
19495fi
19496echo "$as_me:$LINENO: result: $ac_cv_var_kernel_pll" >&5
19497echo "${ECHO_T}$ac_cv_var_kernel_pll" >&6
19498case "$ac_cv_var_kernel_pll" in
19499 yes)
19500
19501cat >>confdefs.h <<\_ACEOF
19502#define KERNEL_PLL 1
19503_ACEOF
19504
19505    ;;
19506esac
19507
19508echo "$as_me:$LINENO: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
19509echo $ECHO_N "checking if SIOCGIFCONF returns buffer size in the buffer... $ECHO_C" >&6
19510if test "${ac_cv_var_size_returned_in_buffer+set}" = set; then
19511  echo $ECHO_N "(cached) $ECHO_C" >&6
19512else
19513  ans=no
19514  case "$host" in
19515   *-fujitsu-uxp*)
19516      ans=yes
19517      ;;
19518   *-ncr-sysv4*)
19519      ans=yes
19520      ;;
19521   *-univel-sysv*)
19522      ans=yes
19523      ;;
19524  esac
19525  ac_cv_var_size_returned_in_buffer=$ans
19526fi
19527echo "$as_me:$LINENO: result: $ac_cv_var_size_returned_in_buffer" >&5
19528echo "${ECHO_T}$ac_cv_var_size_returned_in_buffer" >&6
19529case "$ac_cv_var_size_returned_in_buffer" in
19530 yes)
19531cat >>confdefs.h <<\_ACEOF
19532#define SIZE_RETURNED_IN_BUFFER 1
19533_ACEOF
19534 ;;
19535esac
19536
19537
19538# Check for ioctls TIOCGPPSEV
19539echo "$as_me:$LINENO: checking ioctl TIOCGPPSEV" >&5
19540echo $ECHO_N "checking ioctl TIOCGPPSEV... $ECHO_C" >&6
19541if test "$ac_cv_header_termios_h" = "yes"; then
19542    cat >conftest.$ac_ext <<_ACEOF
19543#line $LINENO "configure"
19544/* confdefs.h.  */
19545_ACEOF
19546cat confdefs.h >>conftest.$ac_ext
19547cat >>conftest.$ac_ext <<_ACEOF
19548/* end confdefs.h.  */
19549#include <termios.h>
19550#ifdef TIOCGPPSEV
19551         yes
19552#endif
19553
19554_ACEOF
19555if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19556  $EGREP "yes" >/dev/null 2>&1; then
19557  ntp_ok=yes
19558else
19559  ntp_ok=no
19560fi
19561rm -f conftest*
19562
19563else
19564ntp_ok=no
19565fi
19566if test "$ntp_ok" = "yes"; then
19567
19568cat >>confdefs.h <<\_ACEOF
19569#define HAVE_TIOCGPPSEV 1
19570_ACEOF
19571
19572    ac_cv_var_oncore_ok=yes
19573fi
19574echo "$as_me:$LINENO: result: $ntp_ok" >&5
19575echo "${ECHO_T}$ntp_ok" >&6
19576
19577# Check for ioctls TIOCSPPS
19578echo "$as_me:$LINENO: checking ioctl TIOCSPPS" >&5
19579echo $ECHO_N "checking ioctl TIOCSPPS... $ECHO_C" >&6
19580if test "$ac_cv_header_termios_h" = "yes"; then
19581    cat >conftest.$ac_ext <<_ACEOF
19582#line $LINENO "configure"
19583/* confdefs.h.  */
19584_ACEOF
19585cat confdefs.h >>conftest.$ac_ext
19586cat >>conftest.$ac_ext <<_ACEOF
19587/* end confdefs.h.  */
19588#include <termios.h>
19589#ifdef TIOCSPPS
19590         yes
19591#endif
19592
19593_ACEOF
19594if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19595  $EGREP "yes" >/dev/null 2>&1; then
19596  ntp_ok=yes
19597else
19598  ntp_ok=no
19599fi
19600rm -f conftest*
19601
19602else
19603    ntp_ok=no
19604fi
19605
19606if test "$ntp_ok" = "yes"; then
19607
19608cat >>confdefs.h <<\_ACEOF
19609#define HAVE_TIOCSPPS 1
19610_ACEOF
19611
19612fi
19613echo "$as_me:$LINENO: result: $ntp_ok" >&5
19614echo "${ECHO_T}$ntp_ok" >&6
19615
19616# Check for ioctls CIOGETEV
19617echo "$as_me:$LINENO: checking ioctl CIOGETEV" >&5
19618echo $ECHO_N "checking ioctl CIOGETEV... $ECHO_C" >&6
19619if test "$ac_cv_header_sys_ppsclock_h" = "yes"; then
19620    cat >conftest.$ac_ext <<_ACEOF
19621#line $LINENO "configure"
19622/* confdefs.h.  */
19623_ACEOF
19624cat confdefs.h >>conftest.$ac_ext
19625cat >>conftest.$ac_ext <<_ACEOF
19626/* end confdefs.h.  */
19627#include <sys/ppsclock.h>
19628#ifdef CIOGETEV
19629         yes
19630#endif
19631
19632_ACEOF
19633if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19634  $EGREP "yes" >/dev/null 2>&1; then
19635  ntp_ok=yes
19636else
19637  ntp_ok=no
19638fi
19639rm -f conftest*
19640
19641else
19642ntp_ok=no
19643fi
19644if test "$ntp_ok" = "yes"; then
19645    ac_cv_var_oncore_ok=yes
19646
19647cat >>confdefs.h <<\_ACEOF
19648#define HAVE_CIOGETEV 1
19649_ACEOF
19650
19651fi
19652echo "$as_me:$LINENO: result: $ntp_ok" >&5
19653echo "${ECHO_T}$ntp_ok" >&6
19654
19655
19656# ATOM/PPSAPI stuff.
19657
19658# ATOM used to require struct timespec, but that's been fixed now.
19659
19660# case "$ac_cv_struct_timespec" in
19661#  'yes')
19662#     ac_cv_var_atom_ok=yes
19663#     ;;
19664# esac
19665ac_cv_var_atom_ok=yes
19666
19667# Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
19668
19669# The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
19670
19671# The PPSAPI needs ATOM
19672
19673# The PPSAPI needs struct timespec.
19674
19675case "$ac_cv_c_inline$ac_cv_struct_timespec$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h" in
19676 inlineyes*yes*)
19677
19678cat >>confdefs.h <<\_ACEOF
19679#define HAVE_PPSAPI 1
19680_ACEOF
19681
19682    ac_cv_var_oncore_ok=yes
19683    ac_cv_var_ripe_ncc_ok=yes
19684    ac_cv_var_jupiter_ok=yes
19685    ;;
19686esac
19687
19688# Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
19689if test "${ac_cv_header_linux_serial_h+set}" = set; then
19690  echo "$as_me:$LINENO: checking for linux/serial.h" >&5
19691echo $ECHO_N "checking for linux/serial.h... $ECHO_C" >&6
19692if test "${ac_cv_header_linux_serial_h+set}" = set; then
19693  echo $ECHO_N "(cached) $ECHO_C" >&6
19694fi
19695echo "$as_me:$LINENO: result: $ac_cv_header_linux_serial_h" >&5
19696echo "${ECHO_T}$ac_cv_header_linux_serial_h" >&6
19697else
19698  # Is the header compilable?
19699echo "$as_me:$LINENO: checking linux/serial.h usability" >&5
19700echo $ECHO_N "checking linux/serial.h usability... $ECHO_C" >&6
19701cat >conftest.$ac_ext <<_ACEOF
19702#line $LINENO "configure"
19703/* confdefs.h.  */
19704_ACEOF
19705cat confdefs.h >>conftest.$ac_ext
19706cat >>conftest.$ac_ext <<_ACEOF
19707/* end confdefs.h.  */
19708$ac_includes_default
19709#include <linux/serial.h>
19710_ACEOF
19711rm -f conftest.$ac_objext
19712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19713  (eval $ac_compile) 2>&5
19714  ac_status=$?
19715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716  (exit $ac_status); } &&
19717         { ac_try='test -s conftest.$ac_objext'
19718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19719  (eval $ac_try) 2>&5
19720  ac_status=$?
19721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722  (exit $ac_status); }; }; then
19723  ac_header_compiler=yes
19724else
19725  echo "$as_me: failed program was:" >&5
19726sed 's/^/| /' conftest.$ac_ext >&5
19727
19728ac_header_compiler=no
19729fi
19730rm -f conftest.$ac_objext conftest.$ac_ext
19731echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19732echo "${ECHO_T}$ac_header_compiler" >&6
19733
19734# Is the header present?
19735echo "$as_me:$LINENO: checking linux/serial.h presence" >&5
19736echo $ECHO_N "checking linux/serial.h presence... $ECHO_C" >&6
19737cat >conftest.$ac_ext <<_ACEOF
19738#line $LINENO "configure"
19739/* confdefs.h.  */
19740_ACEOF
19741cat confdefs.h >>conftest.$ac_ext
19742cat >>conftest.$ac_ext <<_ACEOF
19743/* end confdefs.h.  */
19744#include <linux/serial.h>
19745_ACEOF
19746if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19747  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19748  ac_status=$?
19749  grep -v '^ *+' conftest.er1 >conftest.err
19750  rm -f conftest.er1
19751  cat conftest.err >&5
19752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753  (exit $ac_status); } >/dev/null; then
19754  if test -s conftest.err; then
19755    ac_cpp_err=$ac_c_preproc_warn_flag
19756  else
19757    ac_cpp_err=
19758  fi
19759else
19760  ac_cpp_err=yes
19761fi
19762if test -z "$ac_cpp_err"; then
19763  ac_header_preproc=yes
19764else
19765  echo "$as_me: failed program was:" >&5
19766sed 's/^/| /' conftest.$ac_ext >&5
19767
19768  ac_header_preproc=no
19769fi
19770rm -f conftest.err conftest.$ac_ext
19771echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19772echo "${ECHO_T}$ac_header_preproc" >&6
19773
19774# So?  What about this header?
19775case $ac_header_compiler:$ac_header_preproc in
19776  yes:no )
19777    { echo "$as_me:$LINENO: WARNING: linux/serial.h: accepted by the compiler, rejected by the preprocessor!" >&5
19778echo "$as_me: WARNING: linux/serial.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19779    { echo "$as_me:$LINENO: WARNING: linux/serial.h: proceeding with the preprocessor's result" >&5
19780echo "$as_me: WARNING: linux/serial.h: proceeding with the preprocessor's result" >&2;}
19781    (
19782      cat <<\_ASBOX
19783## ------------------------------------ ##
19784## Report this to bug-autoconf@gnu.org. ##
19785## ------------------------------------ ##
19786_ASBOX
19787    ) |
19788      sed "s/^/$as_me: WARNING:     /" >&2
19789    ;;
19790  no:yes )
19791    { echo "$as_me:$LINENO: WARNING: linux/serial.h: present but cannot be compiled" >&5
19792echo "$as_me: WARNING: linux/serial.h: present but cannot be compiled" >&2;}
19793    { echo "$as_me:$LINENO: WARNING: linux/serial.h: check for missing prerequisite headers?" >&5
19794echo "$as_me: WARNING: linux/serial.h: check for missing prerequisite headers?" >&2;}
19795    { echo "$as_me:$LINENO: WARNING: linux/serial.h: proceeding with the preprocessor's result" >&5
19796echo "$as_me: WARNING: linux/serial.h: proceeding with the preprocessor's result" >&2;}
19797    (
19798      cat <<\_ASBOX
19799## ------------------------------------ ##
19800## Report this to bug-autoconf@gnu.org. ##
19801## ------------------------------------ ##
19802_ASBOX
19803    ) |
19804      sed "s/^/$as_me: WARNING:     /" >&2
19805    ;;
19806esac
19807echo "$as_me:$LINENO: checking for linux/serial.h" >&5
19808echo $ECHO_N "checking for linux/serial.h... $ECHO_C" >&6
19809if test "${ac_cv_header_linux_serial_h+set}" = set; then
19810  echo $ECHO_N "(cached) $ECHO_C" >&6
19811else
19812  ac_cv_header_linux_serial_h=$ac_header_preproc
19813fi
19814echo "$as_me:$LINENO: result: $ac_cv_header_linux_serial_h" >&5
19815echo "${ECHO_T}$ac_cv_header_linux_serial_h" >&6
19816
19817fi
19818
19819
19820echo "$as_me:$LINENO: checking ioctl TIOCGSERIAL" >&5
19821echo $ECHO_N "checking ioctl TIOCGSERIAL... $ECHO_C" >&6
19822case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
19823  yesyes)
19824    cat >conftest.$ac_ext <<_ACEOF
19825#line $LINENO "configure"
19826/* confdefs.h.  */
19827_ACEOF
19828cat confdefs.h >>conftest.$ac_ext
19829cat >>conftest.$ac_ext <<_ACEOF
19830/* end confdefs.h.  */
19831#include <sys/time.h>
19832typedef int u_int;
19833
19834#include <sys/ppsclock.h>
19835#include <linux/serial.h>
19836
19837#ifdef TIOCGSERIAL
19838#ifdef TIOCSSERIAL
19839#ifdef ASYNC_PPS_CD_POS
19840#ifdef ASYNC_PPS_CD_NEG
19841#ifdef CIOGETEV
19842         yes
19843#endif
19844#endif
19845#endif
19846#endif
19847#endif
19848
19849_ACEOF
19850if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19851  $EGREP "yes" >/dev/null 2>&1; then
19852  ntp_ok=yes
19853fi
19854rm -f conftest*
19855
19856	;;
19857  *)
19858	ntp_ok=no
19859	;;
19860esac
19861if test "$ntp_ok" = "yes"; then
19862
19863cat >>confdefs.h <<\_ACEOF
19864#define HAVE_TIO_SERIAL_STUFF 1
19865_ACEOF
19866
19867fi
19868echo "$as_me:$LINENO: result: $ntp_ok" >&5
19869echo "${ECHO_T}$ntp_ok" >&6
19870
19871# Check for SHMEM_STATUS support
19872echo "$as_me:$LINENO: checking SHMEM_STATUS support" >&5
19873echo $ECHO_N "checking SHMEM_STATUS support... $ECHO_C" >&6
19874case "$ac_cv_header_sys_mman_h" in
19875 yes) ntp_ok=yes ;;
19876 *)   ntp_ok=no  ;;
19877esac
19878if test "$ntp_ok" = "yes"; then
19879
19880cat >>confdefs.h <<\_ACEOF
19881#define ONCORE_SHMEM_STATUS 1
19882_ACEOF
19883
19884fi
19885echo "$as_me:$LINENO: result: $ntp_ok" >&5
19886echo "${ECHO_T}$ntp_ok" >&6
19887
19888
19889ntp_refclock=no
19890
19891# HPUX only, and by explicit request
19892echo "$as_me:$LINENO: checking Datum/Bancomm bc635/VME interface" >&5
19893echo $ECHO_N "checking Datum/Bancomm bc635/VME interface... $ECHO_C" >&6
19894# Check whether --enable-BANCOMM or --disable-BANCOMM was given.
19895if test "${enable_BANCOMM+set}" = set; then
19896  enableval="$enable_BANCOMM"
19897  ntp_ok=$enableval
19898else
19899  ntp_ok=no
19900fi;
19901if test "$ntp_ok" = "yes"; then
19902    ntp_refclock=yes
19903
19904cat >>confdefs.h <<\_ACEOF
19905#define CLOCK_BANC 1
19906_ACEOF
19907
19908fi
19909echo "$as_me:$LINENO: result: $ntp_ok" >&5
19910echo "${ECHO_T}$ntp_ok" >&6
19911case "$ntp_ok$host" in
19912 yes*-*-hpux*) ;;
19913 yes*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
19914echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
19915esac
19916
19917#HPUX only, and only by explicit request
19918echo "$as_me:$LINENO: checking TrueTime GPS receiver/VME interface" >&5
19919echo $ECHO_N "checking TrueTime GPS receiver/VME interface... $ECHO_C" >&6
19920# Check whether --enable-GPSVME or --disable-GPSVME was given.
19921if test "${enable_GPSVME+set}" = set; then
19922  enableval="$enable_GPSVME"
19923  ntp_ok=$enableval
19924else
19925  ntp_ok=no
19926fi;
19927if test "$ntp_ok" = "yes"; then
19928    ntp_refclock=yes
19929
19930cat >>confdefs.h <<\_ACEOF
19931#define CLOCK_GPSVME 1
19932_ACEOF
19933
19934fi
19935echo "$as_me:$LINENO: result: $ntp_ok" >&5
19936echo "${ECHO_T}$ntp_ok" >&6
19937case "$ntp_ok$host" in
19938 yes*-*-hpux*) ;;
19939 yes*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
19940echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
19941esac
19942
19943echo "$as_me:$LINENO: checking for PCL720 clock support" >&5
19944echo $ECHO_N "checking for PCL720 clock support... $ECHO_C" >&6
19945case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
19946 yesyesyes)
19947
19948cat >>confdefs.h <<\_ACEOF
19949#define CLOCK_PPS720 1
19950_ACEOF
19951
19952    ans=yes
19953    ;;
19954 *)
19955    ans=no
19956    ;;
19957esac
19958echo "$as_me:$LINENO: result: $ans" >&5
19959echo "${ECHO_T}$ans" >&6
19960
19961echo "$as_me:$LINENO: checking for default inclusion of all suitable non-PARSE clocks" >&5
19962echo $ECHO_N "checking for default inclusion of all suitable non-PARSE clocks... $ECHO_C" >&6
19963# Check whether --enable-all-clocks or --disable-all-clocks was given.
19964if test "${enable_all_clocks+set}" = set; then
19965  enableval="$enable_all_clocks"
19966  ntp_eac=$enableval
19967else
19968  ntp_eac=yes
19969fi;
19970echo "$as_me:$LINENO: result: $ntp_eac" >&5
19971echo "${ECHO_T}$ntp_eac" >&6
19972
19973echo "$as_me:$LINENO: checking if we have support for PARSE clocks" >&5
19974echo $ECHO_N "checking if we have support for PARSE clocks... $ECHO_C" >&6
19975case "$ac_cv_var_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
19976 yes*yes*)
19977    ntp_canparse=yes
19978    ;;
19979 *) ntp_canparse=no
19980    ;;
19981esac
19982echo "$as_me:$LINENO: result: $ntp_canparse" >&5
19983echo "${ECHO_T}$ntp_canparse" >&6
19984
19985echo "$as_me:$LINENO: checking if we have support for audio clocks" >&5
19986echo $ECHO_N "checking if we have support for audio clocks... $ECHO_C" >&6
19987case "$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
19988 *yes*)
19989    ntp_canaudio=yes
19990
19991cat >>confdefs.h <<\_ACEOF
19992#define HAVE_AUDIO
19993_ACEOF
19994
19995    ;;
19996 *) ntp_canaudio=no ;;
19997esac
19998echo "$as_me:$LINENO: result: $ntp_canaudio" >&5
19999echo "${ECHO_T}$ntp_canaudio" >&6
20000
20001echo "$as_me:$LINENO: checking if we have support for the SHM refclock interface" >&5
20002echo $ECHO_N "checking if we have support for the SHM refclock interface... $ECHO_C" >&6
20003case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
20004 yesyes)
20005    ntp_canshm=yes
20006    ;;
20007 *) ntp_canshm=no ;;
20008esac
20009echo "$as_me:$LINENO: result: $ntp_canshm" >&5
20010echo "${ECHO_T}$ntp_canshm" >&6
20011
20012# Requires modem control
20013echo "$as_me:$LINENO: checking ACTS modem service" >&5
20014echo $ECHO_N "checking ACTS modem service... $ECHO_C" >&6
20015# Check whether --enable-ACTS or --disable-ACTS was given.
20016if test "${enable_ACTS+set}" = set; then
20017  enableval="$enable_ACTS"
20018  ntp_ok=$enableval
20019else
20020  cat >conftest.$ac_ext <<_ACEOF
20021#line $LINENO "configure"
20022/* confdefs.h.  */
20023_ACEOF
20024cat confdefs.h >>conftest.$ac_ext
20025cat >>conftest.$ac_ext <<_ACEOF
20026/* end confdefs.h.  */
20027#include <termios.h>
20028#ifdef HAVE_SYS_IOCTL_H
20029#include <sys/ioctl.h>
20030#endif
20031#ifdef TIOCMBIS
20032         yes
20033#endif
20034
20035_ACEOF
20036if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20037  $EGREP "yes" >/dev/null 2>&1; then
20038  ntp_ok=$ntp_eac
20039else
20040  ntp_ok=no
20041fi
20042rm -f conftest*
20043
20044fi;
20045if test "$ntp_ok" = "yes"; then
20046    ntp_refclock=yes
20047
20048cat >>confdefs.h <<\_ACEOF
20049#define CLOCK_ACTS 1
20050_ACEOF
20051
20052fi
20053echo "$as_me:$LINENO: result: $ntp_ok" >&5
20054echo "${ECHO_T}$ntp_ok" >&6
20055
20056echo "$as_me:$LINENO: checking Arbiter 1088A/B GPS receiver" >&5
20057echo $ECHO_N "checking Arbiter 1088A/B GPS receiver... $ECHO_C" >&6
20058# Check whether --enable-ARBITER or --disable-ARBITER was given.
20059if test "${enable_ARBITER+set}" = set; then
20060  enableval="$enable_ARBITER"
20061  ntp_ok=$enableval
20062else
20063  ntp_ok=$ntp_eac
20064fi;
20065if test "$ntp_ok" = "yes"; then
20066    ntp_refclock=yes
20067
20068cat >>confdefs.h <<\_ACEOF
20069#define CLOCK_ARBITER 1
20070_ACEOF
20071
20072fi
20073echo "$as_me:$LINENO: result: $ntp_ok" >&5
20074echo "${ECHO_T}$ntp_ok" >&6
20075
20076echo "$as_me:$LINENO: checking Arcron MSF receiver" >&5
20077echo $ECHO_N "checking Arcron MSF receiver... $ECHO_C" >&6
20078# Check whether --enable-ARCRON_MSF or --disable-ARCRON_MSF was given.
20079if test "${enable_ARCRON_MSF+set}" = set; then
20080  enableval="$enable_ARCRON_MSF"
20081  ntp_ok=$enableval
20082else
20083  ntp_ok=$ntp_eac
20084fi;
20085if test "$ntp_ok" = "yes"; then
20086    ntp_refclock=yes
20087
20088cat >>confdefs.h <<\_ACEOF
20089#define CLOCK_ARCRON_MSF 1
20090_ACEOF
20091
20092fi
20093echo "$as_me:$LINENO: result: $ntp_ok" >&5
20094echo "${ECHO_T}$ntp_ok" >&6
20095
20096echo "$as_me:$LINENO: checking Austron 2200A/2201A GPS receiver" >&5
20097echo $ECHO_N "checking Austron 2200A/2201A GPS receiver... $ECHO_C" >&6
20098# Check whether --enable-AS2201 or --disable-AS2201 was given.
20099if test "${enable_AS2201+set}" = set; then
20100  enableval="$enable_AS2201"
20101  ntp_ok=$enableval
20102else
20103  ntp_ok=$ntp_eac
20104fi;
20105if test "$ntp_ok" = "yes"; then
20106    ntp_refclock=yes
20107
20108cat >>confdefs.h <<\_ACEOF
20109#define CLOCK_AS2201 1
20110_ACEOF
20111
20112fi
20113echo "$as_me:$LINENO: result: $ntp_ok" >&5
20114echo "${ECHO_T}$ntp_ok" >&6
20115
20116echo "$as_me:$LINENO: checking ATOM PPS interface" >&5
20117echo $ECHO_N "checking ATOM PPS interface... $ECHO_C" >&6
20118# Check whether --enable-ATOM or --disable-ATOM was given.
20119if test "${enable_ATOM+set}" = set; then
20120  enableval="$enable_ATOM"
20121  ntp_ok=$enableval
20122else
20123  ntp_ok=$ntp_eac
20124fi;
20125case "$ac_cv_var_atom_ok" in
20126 no) ntp_ok=no ;;
20127esac
20128if test "$ntp_ok" = "yes"; then
20129    ntp_refclock=yes
20130
20131cat >>confdefs.h <<\_ACEOF
20132#define CLOCK_ATOM 1
20133_ACEOF
20134
20135fi
20136echo "$as_me:$LINENO: result: $ntp_ok" >&5
20137echo "${ECHO_T}$ntp_ok" >&6
20138
20139echo "$as_me:$LINENO: checking Chrono-log K-series WWVB receiver" >&5
20140echo $ECHO_N "checking Chrono-log K-series WWVB receiver... $ECHO_C" >&6
20141# Check whether --enable-CHRONOLOG or --disable-CHRONOLOG was given.
20142if test "${enable_CHRONOLOG+set}" = set; then
20143  enableval="$enable_CHRONOLOG"
20144  ntp_ok=$enableval
20145else
20146  ntp_ok=$ntp_eac
20147fi;
20148if test "$ntp_ok" = "yes"; then
20149    ntp_refclock=yes
20150
20151cat >>confdefs.h <<\_ACEOF
20152#define CLOCK_CHRONOLOG 1
20153_ACEOF
20154
20155fi
20156echo "$as_me:$LINENO: result: $ntp_ok" >&5
20157echo "${ECHO_T}$ntp_ok" >&6
20158
20159echo "$as_me:$LINENO: checking CHU modem/decoder" >&5
20160echo $ECHO_N "checking CHU modem/decoder... $ECHO_C" >&6
20161# Check whether --enable-CHU or --disable-CHU was given.
20162if test "${enable_CHU+set}" = set; then
20163  enableval="$enable_CHU"
20164  ntp_ok=$enableval
20165else
20166  ntp_ok=$ntp_eac
20167fi;
20168if test "$ntp_ok" = "yes"; then
20169    ntp_refclock=yes
20170
20171cat >>confdefs.h <<\_ACEOF
20172#define CLOCK_CHU 1
20173_ACEOF
20174
20175fi
20176echo "$as_me:$LINENO: result: $ntp_ok" >&5
20177echo "${ECHO_T}$ntp_ok" >&6
20178ac_refclock_chu=$ntp_ok
20179
20180echo "$as_me:$LINENO: checking CHU audio/decoder" >&5
20181echo $ECHO_N "checking CHU audio/decoder... $ECHO_C" >&6
20182# Check whether --enable-AUDIO-CHU or --disable-AUDIO-CHU was given.
20183if test "${enable_AUDIO_CHU+set}" = set; then
20184  enableval="$enable_AUDIO_CHU"
20185  ntp_ok=$enableval
20186else
20187  case "$ntp_eac$ac_refclock_chu$ntp_canaudio" in
20188 *no*)	ntp_ok=no  ;;
20189 *)	ntp_ok=yes ;;
20190esac
20191fi;
20192if test "$ntp_ok" = "yes"; then
20193
20194cat >>confdefs.h <<\_ACEOF
20195#define AUDIO_CHU 1
20196_ACEOF
20197
20198fi
20199echo "$as_me:$LINENO: result: $ntp_ok" >&5
20200echo "${ECHO_T}$ntp_ok" >&6
20201# We used to check for sunos/solaris target...
20202case "$ntp_ok$ac_refclock_chu$ntp_canaudio" in
20203 yes*no*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is...no ***" >&5
20204echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;} ;;
20205esac
20206
20207# Not under HP-UX
20208echo "$as_me:$LINENO: checking Datum Programmable Time System" >&5
20209echo $ECHO_N "checking Datum Programmable Time System... $ECHO_C" >&6
20210# Check whether --enable-DATUM or --disable-DATUM was given.
20211if test "${enable_DATUM+set}" = set; then
20212  enableval="$enable_DATUM"
20213  ntp_ok=$enableval
20214else
20215  case "$ac_cv_header_termios_h" in
20216    yes)
20217        ntp_ok=$ntp_eac
20218        ;;
20219    *) ntp_ok=no
20220        ;;
20221    esac
20222fi;
20223if test "$ntp_ok" = "yes"; then
20224    ntp_refclock=yes
20225
20226cat >>confdefs.h <<\_ACEOF
20227#define CLOCK_DATUM 1
20228_ACEOF
20229
20230fi
20231echo "$as_me:$LINENO: result: $ntp_ok" >&5
20232echo "${ECHO_T}$ntp_ok" >&6
20233
20234echo "$as_me:$LINENO: checking Dumb generic hh:mm:ss local clock" >&5
20235echo $ECHO_N "checking Dumb generic hh:mm:ss local clock... $ECHO_C" >&6
20236# Check whether --enable-DUMBCLOCK or --disable-DUMBCLOCK was given.
20237if test "${enable_DUMBCLOCK+set}" = set; then
20238  enableval="$enable_DUMBCLOCK"
20239  ntp_ok=$enableval
20240else
20241  ntp_ok=$ntp_eac
20242fi;
20243if test "$ntp_ok" = "yes"; then
20244    ntp_refclock=yes
20245
20246cat >>confdefs.h <<\_ACEOF
20247#define CLOCK_DUMBCLOCK 1
20248_ACEOF
20249
20250fi
20251echo "$as_me:$LINENO: result: $ntp_ok" >&5
20252echo "${ECHO_T}$ntp_ok" >&6
20253
20254echo "$as_me:$LINENO: checking Forum Graphic GPS" >&5
20255echo $ECHO_N "checking Forum Graphic GPS... $ECHO_C" >&6
20256# Check whether --enable-FG or --disable-FG was given.
20257if test "${enable_FG+set}" = set; then
20258  enableval="$enable_FG"
20259  ntp_ok=$enableval
20260else
20261  ntp_ok=$ntp_eac
20262fi;
20263if test "$ntp_ok" = "yes"; then
20264    ntp_refclock=yes
20265
20266cat >>confdefs.h <<\_ACEOF
20267#define CLOCK_FG 1
20268_ACEOF
20269
20270fi
20271echo "$as_me:$LINENO: result: $ntp_ok" >&5
20272echo "${ECHO_T}$ntp_ok" >&6
20273
20274# Requires modem control
20275echo "$as_me:$LINENO: checking Heath GC-1000 WWV/WWVH receiver" >&5
20276echo $ECHO_N "checking Heath GC-1000 WWV/WWVH receiver... $ECHO_C" >&6
20277# Check whether --enable-HEATH or --disable-HEATH was given.
20278if test "${enable_HEATH+set}" = set; then
20279  enableval="$enable_HEATH"
20280  ntp_ok=$enableval
20281else
20282  cat >conftest.$ac_ext <<_ACEOF
20283#line $LINENO "configure"
20284/* confdefs.h.  */
20285_ACEOF
20286cat confdefs.h >>conftest.$ac_ext
20287cat >>conftest.$ac_ext <<_ACEOF
20288/* end confdefs.h.  */
20289#include <termios.h>
20290#ifdef HAVE_SYS_IOCTL_H
20291#include <sys/ioctl.h>
20292#endif
20293#ifdef TIOCMBIS
20294         yes
20295#endif
20296
20297_ACEOF
20298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20299  $EGREP "yes" >/dev/null 2>&1; then
20300  ntp_ok=$ntp_eac
20301else
20302  ntp_ok=no
20303fi
20304rm -f conftest*
20305
20306fi;
20307if test "$ntp_ok" = "yes"; then
20308    ntp_refclock=yes
20309
20310cat >>confdefs.h <<\_ACEOF
20311#define CLOCK_HEATH 1
20312_ACEOF
20313
20314fi
20315echo "$as_me:$LINENO: result: $ntp_ok" >&5
20316echo "${ECHO_T}$ntp_ok" >&6
20317
20318echo "$as_me:$LINENO: checking for hopf serial clock device" >&5
20319echo $ECHO_N "checking for hopf serial clock device... $ECHO_C" >&6
20320# Check whether --enable-HOPFSERIAL or --disable-HOPFSERIAL was given.
20321if test "${enable_HOPFSERIAL+set}" = set; then
20322  enableval="$enable_HOPFSERIAL"
20323  ntp_ok=$enableval
20324else
20325  ntp_ok=$ntp_eac
20326fi;
20327if test "$ntp_ok" = "yes"; then
20328    ntp_refclock=yes
20329
20330cat >>confdefs.h <<\_ACEOF
20331#define CLOCK_HOPF_SERIAL 1
20332_ACEOF
20333
20334fi
20335echo "$as_me:$LINENO: result: $ntp_ok" >&5
20336echo "${ECHO_T}$ntp_ok" >&6
20337
20338echo "$as_me:$LINENO: checking for hopf PCI clock 6039" >&5
20339echo $ECHO_N "checking for hopf PCI clock 6039... $ECHO_C" >&6
20340# Check whether --enable-HOPFPCI or --disable-HOPFPCI was given.
20341if test "${enable_HOPFPCI+set}" = set; then
20342  enableval="$enable_HOPFPCI"
20343  ntp_ok=$enableval
20344else
20345  ntp_ok=$ntp_eac
20346fi;
20347if test "$ntp_ok" = "yes"; then
20348    ntp_refclock=yes
20349
20350cat >>confdefs.h <<\_ACEOF
20351#define CLOCK_HOPF_PCI 1
20352_ACEOF
20353
20354fi
20355echo "$as_me:$LINENO: result: $ntp_ok" >&5
20356echo "${ECHO_T}$ntp_ok" >&6
20357
20358echo "$as_me:$LINENO: checking HP 58503A GPS receiver" >&5
20359echo $ECHO_N "checking HP 58503A GPS receiver... $ECHO_C" >&6
20360# Check whether --enable-HPGPS or --disable-HPGPS was given.
20361if test "${enable_HPGPS+set}" = set; then
20362  enableval="$enable_HPGPS"
20363  ntp_ok=$enableval
20364else
20365  ntp_ok=$ntp_eac
20366fi;
20367if test "$ntp_ok" = "yes"; then
20368    ntp_refclock=yes
20369
20370cat >>confdefs.h <<\_ACEOF
20371#define CLOCK_HPGPS 1
20372_ACEOF
20373
20374fi
20375echo "$as_me:$LINENO: result: $ntp_ok" >&5
20376echo "${ECHO_T}$ntp_ok" >&6
20377
20378echo "$as_me:$LINENO: checking IRIG audio decoder" >&5
20379echo $ECHO_N "checking IRIG audio decoder... $ECHO_C" >&6
20380# Check whether --enable-IRIG or --disable-IRIG was given.
20381if test "${enable_IRIG+set}" = set; then
20382  enableval="$enable_IRIG"
20383  ntp_ok=$enableval
20384else
20385  case "$ntp_eac$ntp_canaudio" in
20386     *no*)	ntp_ok=no  ;;
20387     *)		ntp_ok=yes ;;
20388    esac
20389fi;
20390if test "$ntp_ok" = "yes"; then
20391    ntp_refclock=yes
20392
20393cat >>confdefs.h <<\_ACEOF
20394#define CLOCK_IRIG 1
20395_ACEOF
20396
20397fi
20398echo "$as_me:$LINENO: result: $ntp_ok" >&5
20399echo "${ECHO_T}$ntp_ok" >&6
20400case "$ntp_ok$ntp_canaudio" in
20401 yesno) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
20402echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
20403esac
20404
20405echo "$as_me:$LINENO: checking for JJY receiver" >&5
20406echo $ECHO_N "checking for JJY receiver... $ECHO_C" >&6
20407# Check whether --enable-JJY or --disable-JJY was given.
20408if test "${enable_JJY+set}" = set; then
20409  enableval="$enable_JJY"
20410  ntp_ok=$enableval
20411else
20412  ntp_ok=$ntp_eac
20413fi;
20414if test "$ntp_ok" = "yes"; then
20415    ntp_refclock=yes
20416
20417cat >>confdefs.h <<\_ACEOF
20418#define CLOCK_JJY 1
20419_ACEOF
20420
20421fi
20422echo "$as_me:$LINENO: result: $ntp_ok" >&5
20423echo "${ECHO_T}$ntp_ok" >&6
20424
20425echo "$as_me:$LINENO: checking Rockwell Jupiter GPS receiver" >&5
20426echo $ECHO_N "checking Rockwell Jupiter GPS receiver... $ECHO_C" >&6
20427# Check whether --enable-JUPITER or --disable-JUPITER was given.
20428if test "${enable_JUPITER+set}" = set; then
20429  enableval="$enable_JUPITER"
20430  ntp_ok=$enableval
20431else
20432  ntp_ok=$ntp_eac
20433fi;
20434case "$ac_cv_var_jupiter_ok" in
20435 no) ntp_ok=no ;;
20436esac
20437if test "$ntp_ok" = "yes"; then
20438    ntp_refclock=yes
20439
20440cat >>confdefs.h <<\_ACEOF
20441#define CLOCK_JUPITER 1
20442_ACEOF
20443
20444fi
20445echo "$as_me:$LINENO: result: $ntp_ok" >&5
20446echo "${ECHO_T}$ntp_ok" >&6
20447
20448echo "$as_me:$LINENO: checking Leitch CSD 5300 Master Clock System Driver" >&5
20449echo $ECHO_N "checking Leitch CSD 5300 Master Clock System Driver... $ECHO_C" >&6
20450# Check whether --enable-LEITCH or --disable-LEITCH was given.
20451if test "${enable_LEITCH+set}" = set; then
20452  enableval="$enable_LEITCH"
20453  ntp_ok=$enableval
20454else
20455  ntp_ok=$ntp_eac
20456fi;
20457if test "$ntp_ok" = "yes"; then
20458    ntp_refclock=yes
20459
20460cat >>confdefs.h <<\_ACEOF
20461#define CLOCK_LEITCH 1
20462_ACEOF
20463
20464fi
20465echo "$as_me:$LINENO: result: $ntp_ok" >&5
20466echo "${ECHO_T}$ntp_ok" >&6
20467
20468echo "$as_me:$LINENO: checking local clock reference" >&5
20469echo $ECHO_N "checking local clock reference... $ECHO_C" >&6
20470# Check whether --enable-LOCAL-CLOCK or --disable-LOCAL-CLOCK was given.
20471if test "${enable_LOCAL_CLOCK+set}" = set; then
20472  enableval="$enable_LOCAL_CLOCK"
20473  ntp_ok=$enableval
20474else
20475  ntp_ok=$ntp_eac
20476fi;
20477if test "$ntp_ok" = "yes"; then
20478    ntp_refclock=yes
20479
20480cat >>confdefs.h <<\_ACEOF
20481#define CLOCK_LOCAL 1
20482_ACEOF
20483
20484fi
20485echo "$as_me:$LINENO: result: $ntp_ok" >&5
20486echo "${ECHO_T}$ntp_ok" >&6
20487
20488echo "$as_me:$LINENO: checking EES M201 MSF receiver" >&5
20489echo $ECHO_N "checking EES M201 MSF receiver... $ECHO_C" >&6
20490# Check whether --enable-MSFEES or --disable-MSFEES was given.
20491if test "${enable_MSFEES+set}" = set; then
20492  enableval="$enable_MSFEES"
20493  ntp_ok=$enableval
20494else
20495  ntp_ok=$ntp_eac
20496fi;
20497if test "$ntp_ok" = "yes"; then
20498    ntp_refclock=yes
20499
20500cat >>confdefs.h <<\_ACEOF
20501#define CLOCK_MSFEES 1
20502_ACEOF
20503
20504fi
20505echo "$as_me:$LINENO: result: $ntp_ok" >&5
20506echo "${ECHO_T}$ntp_ok" >&6
20507
20508# Not Ultrix
20509echo "$as_me:$LINENO: checking Magnavox MX4200 GPS receiver" >&5
20510echo $ECHO_N "checking Magnavox MX4200 GPS receiver... $ECHO_C" >&6
20511# Check whether --enable-MX4200 or --disable-MX4200 was given.
20512if test "${enable_MX4200+set}" = set; then
20513  enableval="$enable_MX4200"
20514  ntp_ok=$enableval
20515else
20516  case "$ac_cv_var_ppsclock" in
20517     yes) ntp_ok=$ntp_eac
20518        ;;
20519     *) ntp_ok=no
20520        ;;
20521    esac
20522fi;
20523if test "$ntp_ok" = "yes"; then
20524    ntp_refclock=yes
20525
20526cat >>confdefs.h <<\_ACEOF
20527#define CLOCK_MX4200 1
20528_ACEOF
20529
20530fi
20531echo "$as_me:$LINENO: result: $ntp_ok" >&5
20532echo "${ECHO_T}$ntp_ok" >&6
20533case "$ntp_ok$host" in
20534 yes*-*-ultrix*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
20535echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
20536esac
20537
20538echo "$as_me:$LINENO: checking for NeoClock4X receiver" >&5
20539echo $ECHO_N "checking for NeoClock4X receiver... $ECHO_C" >&6
20540# Check whether --enable-NEOCLOCK4X or --disable-NEOCLOCK4X was given.
20541if test "${enable_NEOCLOCK4X+set}" = set; then
20542  enableval="$enable_NEOCLOCK4X"
20543  ntp_ok=$enableval
20544else
20545  ntp_ok=$ntp_eac
20546fi;
20547if test "$ntp_ok" = "yes"; then
20548    ntp_refclock=yes
20549
20550cat >>confdefs.h <<\_ACEOF
20551#define CLOCK_NEOCLOCK4X 1
20552_ACEOF
20553
20554fi
20555echo "$as_me:$LINENO: result: $ntp_ok" >&5
20556echo "${ECHO_T}$ntp_ok" >&6
20557
20558echo "$as_me:$LINENO: checking NMEA GPS receiver" >&5
20559echo $ECHO_N "checking NMEA GPS receiver... $ECHO_C" >&6
20560# Check whether --enable-NMEA or --disable-NMEA was given.
20561if test "${enable_NMEA+set}" = set; then
20562  enableval="$enable_NMEA"
20563  ntp_ok=$enableval
20564else
20565  ntp_ok=$ntp_eac
20566fi;
20567if test "$ntp_ok" = "yes"; then
20568    ntp_refclock=yes
20569
20570cat >>confdefs.h <<\_ACEOF
20571#define CLOCK_NMEA 1
20572_ACEOF
20573
20574fi
20575echo "$as_me:$LINENO: result: $ntp_ok" >&5
20576echo "${ECHO_T}$ntp_ok" >&6
20577
20578echo "$as_me:$LINENO: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
20579echo $ECHO_N "checking for ONCORE Motorola VP/UT Oncore GPS... $ECHO_C" >&6
20580# Check whether --enable-ONCORE or --disable-ONCORE was given.
20581if test "${enable_ONCORE+set}" = set; then
20582  enableval="$enable_ONCORE"
20583  ntp_ok=$enableval
20584else
20585  ntp_ok=$ntp_eac
20586fi;
20587case "$ac_cv_var_oncore_ok" in
20588 no) ntp_ok=no ;;
20589esac
20590if test "$ntp_ok" = "yes"; then
20591    ntp_refclock=yes
20592
20593cat >>confdefs.h <<\_ACEOF
20594#define CLOCK_ONCORE 1
20595_ACEOF
20596
20597fi
20598echo "$as_me:$LINENO: result: $ntp_ok" >&5
20599echo "${ECHO_T}$ntp_ok" >&6
20600
20601echo "$as_me:$LINENO: checking for Palisade clock" >&5
20602echo $ECHO_N "checking for Palisade clock... $ECHO_C" >&6
20603# Check whether --enable-PALISADE or --disable-PALISADE was given.
20604if test "${enable_PALISADE+set}" = set; then
20605  enableval="$enable_PALISADE"
20606  ntp_ok=$enableval
20607else
20608  case "$ac_cv_header_termios_h" in
20609    yes)
20610        ntp_ok=$ntp_eac
20611        ;;
20612    *) ntp_ok=no
20613        ;;
20614    esac
20615fi;
20616
20617if test "$ntp_ok" = "yes"; then
20618    ntp_refclock=yes
20619
20620cat >>confdefs.h <<\_ACEOF
20621#define CLOCK_PALISADE 1
20622_ACEOF
20623
20624fi
20625echo "$as_me:$LINENO: result: $ntp_ok" >&5
20626echo "${ECHO_T}$ntp_ok" >&6
20627
20628echo "$as_me:$LINENO: checking Conrad parallel port radio clock" >&5
20629echo $ECHO_N "checking Conrad parallel port radio clock... $ECHO_C" >&6
20630# Check whether --enable-PCF or --disable-PCF was given.
20631if test "${enable_PCF+set}" = set; then
20632  enableval="$enable_PCF"
20633  ntp_ok=$enableval
20634else
20635  ntp_ok=$ntp_eac
20636fi;
20637if test "$ntp_ok" = "yes"; then
20638    ntp_refclock=yes
20639
20640cat >>confdefs.h <<\_ACEOF
20641#define CLOCK_PCF 1
20642_ACEOF
20643
20644fi
20645echo "$as_me:$LINENO: result: $ntp_ok" >&5
20646echo "${ECHO_T}$ntp_ok" >&6
20647
20648echo "$as_me:$LINENO: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
20649echo $ECHO_N "checking PST/Traconex 1020 WWV/WWVH receiver... $ECHO_C" >&6
20650# Check whether --enable-PST or --disable-PST was given.
20651if test "${enable_PST+set}" = set; then
20652  enableval="$enable_PST"
20653  ntp_ok=$enableval
20654else
20655  ntp_ok=$ntp_eac
20656fi;
20657if test "$ntp_ok" = "yes"; then
20658    ntp_refclock=yes
20659
20660cat >>confdefs.h <<\_ACEOF
20661#define CLOCK_PST 1
20662_ACEOF
20663
20664fi
20665echo "$as_me:$LINENO: result: $ntp_ok" >&5
20666echo "${ECHO_T}$ntp_ok" >&6
20667
20668# Requires modem control
20669echo "$as_me:$LINENO: checking PTB modem service" >&5
20670echo $ECHO_N "checking PTB modem service... $ECHO_C" >&6
20671# Check whether --enable-PTBACTS or --disable-PTBACTS was given.
20672if test "${enable_PTBACTS+set}" = set; then
20673  enableval="$enable_PTBACTS"
20674  ntp_ok=$enableval
20675else
20676  cat >conftest.$ac_ext <<_ACEOF
20677#line $LINENO "configure"
20678/* confdefs.h.  */
20679_ACEOF
20680cat confdefs.h >>conftest.$ac_ext
20681cat >>conftest.$ac_ext <<_ACEOF
20682/* end confdefs.h.  */
20683#include <termios.h>
20684#ifdef HAVE_SYS_IOCTL_H
20685#include <sys/ioctl.h>
20686#endif
20687#ifdef TIOCMBIS
20688         yes
20689#endif
20690
20691_ACEOF
20692if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20693  $EGREP "yes" >/dev/null 2>&1; then
20694  ntp_ok=$ntp_eac
20695else
20696  ntp_ok=no
20697fi
20698rm -f conftest*
20699
20700fi;
20701if test "$ntp_ok" = "yes"; then
20702    ntp_refclock=yes
20703
20704cat >>confdefs.h <<\_ACEOF
20705#define CLOCK_PTBACTS 1
20706_ACEOF
20707
20708fi
20709echo "$as_me:$LINENO: result: $ntp_ok" >&5
20710echo "${ECHO_T}$ntp_ok" >&6
20711
20712echo "$as_me:$LINENO: checking RIPENCC specific Trimble driver" >&5
20713echo $ECHO_N "checking RIPENCC specific Trimble driver... $ECHO_C" >&6
20714# Check whether --enable-RIPENCC or --disable-RIPENCC was given.
20715if test "${enable_RIPENCC+set}" = set; then
20716  enableval="$enable_RIPENCC"
20717  ntp_ok=$enableval
20718else
20719  ntp_ok=no
20720fi;
20721# 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
20722case "$ac_cv_var_ripe_ncc_ok" in
20723 no) ntp_ok=no ;;
20724esac
20725if test "$ntp_ok" = "yes"; then
20726    ntp_refclock=yes
20727
20728cat >>confdefs.h <<\_ACEOF
20729#define CLOCK_RIPENCC
20730_ACEOF
20731
20732fi
20733echo "$as_me:$LINENO: result: $ntp_ok" >&5
20734echo "${ECHO_T}$ntp_ok" >&6
20735
20736# Danny Meyer says SHM compiles (with a few warnings) under Win32.
20737# For *IX, we need sys/ipc.h and sys/shm.h.
20738echo "$as_me:$LINENO: checking for SHM clock attached thru shared memory" >&5
20739echo $ECHO_N "checking for SHM clock attached thru shared memory... $ECHO_C" >&6
20740# Check whether --enable-SHM or --disable-SHM was given.
20741if test "${enable_SHM+set}" = set; then
20742  enableval="$enable_SHM"
20743  ntp_ok=$enableval
20744else
20745  case "$ntp_eac$ntp_canshm" in
20746 *no*)	ntp_ok=no  ;;
20747 *)	ntp_ok=yes ;;
20748esac
20749fi;
20750if test "$ntp_ok" = "yes"; then
20751    ntp_refclock=yes
20752
20753cat >>confdefs.h <<\_ACEOF
20754#define CLOCK_SHM 1
20755_ACEOF
20756
20757fi
20758echo "$as_me:$LINENO: result: $ntp_ok" >&5
20759echo "${ECHO_T}$ntp_ok" >&6
20760
20761echo "$as_me:$LINENO: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
20762echo $ECHO_N "checking Spectracom 8170/Netclock/2 WWVB receiver... $ECHO_C" >&6
20763# Check whether --enable-SPECTRACOM or --disable-SPECTRACOM was given.
20764if test "${enable_SPECTRACOM+set}" = set; then
20765  enableval="$enable_SPECTRACOM"
20766  ntp_ok=$enableval
20767else
20768  ntp_ok=$ntp_eac
20769fi;
20770if test "$ntp_ok" = "yes"; then
20771    ntp_refclock=yes
20772
20773cat >>confdefs.h <<\_ACEOF
20774#define CLOCK_SPECTRACOM 1
20775_ACEOF
20776
20777fi
20778echo "$as_me:$LINENO: result: $ntp_ok" >&5
20779echo "${ECHO_T}$ntp_ok" >&6
20780
20781echo "$as_me:$LINENO: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
20782echo $ECHO_N "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... $ECHO_C" >&6
20783# Check whether --enable-TPRO or --disable-TPRO was given.
20784if test "${enable_TPRO+set}" = set; then
20785  enableval="$enable_TPRO"
20786  ntp_ok=$enableval
20787else
20788  case "$ac_cv_header_sys_tpro_h" in
20789     yes)
20790	ntp_ok=$ntp_eac
20791	;;
20792     *)	ntp_ok=no
20793	;;
20794    esac
20795fi;
20796if test "$ntp_ok" = "yes"; then
20797    ntp_refclock=yes
20798
20799cat >>confdefs.h <<\_ACEOF
20800#define CLOCK_TPRO 1
20801_ACEOF
20802
20803fi
20804echo "$as_me:$LINENO: result: $ntp_ok" >&5
20805echo "${ECHO_T}$ntp_ok" >&6
20806case "$ntp_ok$ac_cv_header_sys_tpro" in
20807 yesno) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
20808echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
20809esac
20810
20811echo "$as_me:$LINENO: checking TRAK 8810 GPS receiver" >&5
20812echo $ECHO_N "checking TRAK 8810 GPS receiver... $ECHO_C" >&6
20813# Check whether --enable-TRAK or --disable-TRAK was given.
20814if test "${enable_TRAK+set}" = set; then
20815  enableval="$enable_TRAK"
20816  ntp_ok=$enableval
20817else
20818  ntp_ok=$ntp_eac
20819fi;
20820if test "$ntp_ok" = "yes"; then
20821    ntp_refclock=yes
20822
20823cat >>confdefs.h <<\_ACEOF
20824#define CLOCK_TRAK 1
20825_ACEOF
20826
20827fi
20828echo "$as_me:$LINENO: result: $ntp_ok" >&5
20829echo "${ECHO_T}$ntp_ok" >&6
20830
20831# Not on a vax-dec-bsd
20832echo "$as_me:$LINENO: checking Kinemetrics/TrueTime receivers" >&5
20833echo $ECHO_N "checking Kinemetrics/TrueTime receivers... $ECHO_C" >&6
20834# Check whether --enable-TRUETIME or --disable-TRUETIME was given.
20835if test "${enable_TRUETIME+set}" = set; then
20836  enableval="$enable_TRUETIME"
20837  ntp_ok=$enableval
20838else
20839  case "$host" in
20840     vax-dec-bsd)
20841	ntp_ok=no
20842	;;
20843     *)
20844	ntp_ok=$ntp_eac
20845	;;
20846    esac
20847fi;
20848if test "$ntp_ok" = "yes"; then
20849    ntp_refclock=yes
20850
20851cat >>confdefs.h <<\_ACEOF
20852#define CLOCK_TRUETIME 1
20853_ACEOF
20854
20855fi
20856echo "$as_me:$LINENO: result: $ntp_ok" >&5
20857echo "${ECHO_T}$ntp_ok" >&6
20858case "$ntp_ok$host" in
20859 yesvax-dec-bsd) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
20860echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
20861esac
20862
20863echo "$as_me:$LINENO: checking TrueTime 560 IRIG-B decoder" >&5
20864echo $ECHO_N "checking TrueTime 560 IRIG-B decoder... $ECHO_C" >&6
20865# Check whether --enable-TT560 or --disable-TT560 was given.
20866if test "${enable_TT560+set}" = set; then
20867  enableval="$enable_TT560"
20868  ntp_ok=$enableval
20869else
20870  ntp_ok=no
20871fi;
20872if test "$ntp_ok" = "yes"; then
20873    ntp_refclock=yes
20874
20875cat >>confdefs.h <<\_ACEOF
20876#define CLOCK_TT560
20877_ACEOF
20878
20879fi
20880echo "$as_me:$LINENO: result: $ntp_ok" >&5
20881echo "${ECHO_T}$ntp_ok" >&6
20882
20883echo "$as_me:$LINENO: checking Ultralink M320 WWVB receiver" >&5
20884echo $ECHO_N "checking Ultralink M320 WWVB receiver... $ECHO_C" >&6
20885# Check whether --enable-ULINK or --disable-ULINK was given.
20886if test "${enable_ULINK+set}" = set; then
20887  enableval="$enable_ULINK"
20888  ntp_ok=$enableval
20889else
20890  ntp_ok=$ntp_eac
20891fi;
20892if test "$ntp_ok" = "yes"; then
20893    ntp_refclock=yes
20894
20895cat >>confdefs.h <<\_ACEOF
20896#define CLOCK_ULINK 1
20897_ACEOF
20898
20899fi
20900echo "$as_me:$LINENO: result: $ntp_ok" >&5
20901echo "${ECHO_T}$ntp_ok" >&6
20902
20903# Requires modem control
20904echo "$as_me:$LINENO: checking USNO modem service" >&5
20905echo $ECHO_N "checking USNO modem service... $ECHO_C" >&6
20906# Check whether --enable-USNO or --disable-USNO was given.
20907if test "${enable_USNO+set}" = set; then
20908  enableval="$enable_USNO"
20909  ntp_ok=$enableval
20910else
20911  cat >conftest.$ac_ext <<_ACEOF
20912#line $LINENO "configure"
20913/* confdefs.h.  */
20914_ACEOF
20915cat confdefs.h >>conftest.$ac_ext
20916cat >>conftest.$ac_ext <<_ACEOF
20917/* end confdefs.h.  */
20918#include <termios.h>
20919#ifdef HAVE_SYS_IOCTL_H
20920#include <sys/ioctl.h>
20921#endif
20922#ifdef TIOCMBIS
20923         yes
20924#endif
20925
20926_ACEOF
20927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20928  $EGREP "yes" >/dev/null 2>&1; then
20929  ntp_ok=$ntp_eac
20930else
20931  ntp_ok=no
20932fi
20933rm -f conftest*
20934
20935fi;
20936if test "$ntp_ok" = "yes"; then
20937    ntp_refclock=yes
20938
20939cat >>confdefs.h <<\_ACEOF
20940#define CLOCK_USNO 1
20941_ACEOF
20942
20943fi
20944echo "$as_me:$LINENO: result: $ntp_ok" >&5
20945echo "${ECHO_T}$ntp_ok" >&6
20946
20947echo "$as_me:$LINENO: checking WWV receiver" >&5
20948echo $ECHO_N "checking WWV receiver... $ECHO_C" >&6
20949# Check whether --enable-WWV or --disable-WWV was given.
20950if test "${enable_WWV+set}" = set; then
20951  enableval="$enable_WWV"
20952  ntp_ok=$enableval
20953else
20954  case "$ntp_eac$ntp_canaudio" in
20955     *no*)	ntp_ok=no  ;;
20956     *)		ntp_ok=yes ;;
20957    esac
20958fi;
20959if test "$ntp_ok" = "yes"; then
20960    ntp_refclock=yes
20961
20962cat >>confdefs.h <<\_ACEOF
20963#define CLOCK_WWV 1
20964_ACEOF
20965
20966fi
20967echo "$as_me:$LINENO: result: $ntp_ok" >&5
20968echo "${ECHO_T}$ntp_ok" >&6
20969case "$ntp_ok$ntp_canaudio" in
20970 yesno) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
20971echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
20972esac
20973
20974echo "$as_me:$LINENO: checking for Zyfer receiver" >&5
20975echo $ECHO_N "checking for Zyfer receiver... $ECHO_C" >&6
20976# Check whether --enable-ZYFER or --disable-ZYFER was given.
20977if test "${enable_ZYFER+set}" = set; then
20978  enableval="$enable_ZYFER"
20979  ntp_ok=$enableval
20980else
20981  ntp_ok=$ntp_eac
20982fi;
20983if test "$ntp_ok" = "yes"; then
20984    ntp_refclock=yes
20985
20986cat >>confdefs.h <<\_ACEOF
20987#define CLOCK_ZYFER 1
20988_ACEOF
20989
20990fi
20991echo "$as_me:$LINENO: result: $ntp_ok" >&5
20992echo "${ECHO_T}$ntp_ok" >&6
20993
20994echo "$as_me:$LINENO: checking for default inclusion of all suitable PARSE clocks" >&5
20995echo $ECHO_N "checking for default inclusion of all suitable PARSE clocks... $ECHO_C" >&6
20996# Check whether --enable-parse-clocks or --disable-parse-clocks was given.
20997if test "${enable_parse_clocks+set}" = set; then
20998  enableval="$enable_parse_clocks"
20999  ntp_eapc=$enableval
21000else
21001  case "$ntp_eac" in
21002     yes) ntp_eapc=$ntp_canparse ;;
21003     *) ntp_eapc=no ;;
21004    esac
21005    ntp_eapc=no
21006fi;
21007echo "$as_me:$LINENO: result: $ntp_eapc" >&5
21008echo "${ECHO_T}$ntp_eapc" >&6
21009
21010case "$ntp_eac$ntp_eapc$ntp_canparse" in
21011 noyes*)
21012    { { echo "$as_me:$LINENO: error: \"--enable-parse-clocks\" requires \"--enable-all-clocks\"." >&5
21013echo "$as_me: error: \"--enable-parse-clocks\" requires \"--enable-all-clocks\"." >&2;}
21014   { (exit 1); exit 1; }; }
21015    ;;
21016 yesyesno)
21017    { { echo "$as_me:$LINENO: error: You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" >&5
21018echo "$as_me: error: You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" >&2;}
21019   { (exit 1); exit 1; }; }
21020    ;;
21021 *) ;;
21022esac
21023
21024ntp_libparse=no
21025ntp_parseutil=no
21026ntp_rawdcf=no
21027
21028echo "$as_me:$LINENO: checking Diem Computime Radio Clock" >&5
21029echo $ECHO_N "checking Diem Computime Radio Clock... $ECHO_C" >&6
21030# Check whether --enable-COMPUTIME or --disable-COMPUTIME was given.
21031if test "${enable_COMPUTIME+set}" = set; then
21032  enableval="$enable_COMPUTIME"
21033  ntp_ok=$enableval
21034else
21035  ntp_ok=$ntp_eapc
21036fi;
21037if test "$ntp_ok" = "yes"; then
21038    ntp_libparse=yes
21039    ntp_refclock=yes
21040
21041cat >>confdefs.h <<\_ACEOF
21042#define CLOCK_COMPUTIME 1
21043_ACEOF
21044
21045fi
21046echo "$as_me:$LINENO: result: $ntp_ok" >&5
21047echo "${ECHO_T}$ntp_ok" >&6
21048case "$ntp_ok$ntp_canparse" in
21049 yesno)
21050    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
21051echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
21052   { (exit 1); exit 1; }; }
21053    ;;
21054esac
21055
21056echo "$as_me:$LINENO: checking ELV/DCF7000 clock" >&5
21057echo $ECHO_N "checking ELV/DCF7000 clock... $ECHO_C" >&6
21058# Check whether --enable-DCF7000 or --disable-DCF7000 was given.
21059if test "${enable_DCF7000+set}" = set; then
21060  enableval="$enable_DCF7000"
21061  ntp_ok=$enableval
21062else
21063  ntp_ok=$ntp_eapc
21064fi;
21065if test "$ntp_ok" = "yes"; then
21066    ntp_libparse=yes
21067    ntp_refclock=yes
21068
21069cat >>confdefs.h <<\_ACEOF
21070#define CLOCK_DCF7000 1
21071_ACEOF
21072
21073fi
21074echo "$as_me:$LINENO: result: $ntp_ok" >&5
21075echo "${ECHO_T}$ntp_ok" >&6
21076case "$ntp_ok$ntp_canparse" in
21077 yesno)
21078    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
21079echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
21080   { (exit 1); exit 1; }; }
21081    ;;
21082esac
21083
21084echo "$as_me:$LINENO: checking HOPF 6021 clock" >&5
21085echo $ECHO_N "checking HOPF 6021 clock... $ECHO_C" >&6
21086# Check whether --enable-HOPF6021 or --disable-HOPF6021 was given.
21087if test "${enable_HOPF6021+set}" = set; then
21088  enableval="$enable_HOPF6021"
21089  ntp_ok=$enableval
21090else
21091  ntp_ok=$ntp_eapc
21092fi;
21093if test "$ntp_ok" = "yes"; then
21094    ntp_libparse=yes
21095    ntp_refclock=yes
21096
21097cat >>confdefs.h <<\_ACEOF
21098#define CLOCK_HOPF6021 1
21099_ACEOF
21100
21101fi
21102echo "$as_me:$LINENO: result: $ntp_ok" >&5
21103echo "${ECHO_T}$ntp_ok" >&6
21104case "$ntp_ok$ntp_canparse" in
21105 yesno)
21106    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
21107echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
21108   { (exit 1); exit 1; }; }
21109    ;;
21110esac
21111
21112echo "$as_me:$LINENO: checking Meinberg clocks" >&5
21113echo $ECHO_N "checking Meinberg clocks... $ECHO_C" >&6
21114# Check whether --enable-MEINBERG or --disable-MEINBERG was given.
21115if test "${enable_MEINBERG+set}" = set; then
21116  enableval="$enable_MEINBERG"
21117  ntp_ok=$enableval
21118else
21119  ntp_ok=$ntp_eapc
21120fi;
21121if test "$ntp_ok" = "yes"; then
21122    ntp_libparse=yes
21123    ntp_refclock=yes
21124
21125cat >>confdefs.h <<\_ACEOF
21126#define CLOCK_MEINBERG 1
21127_ACEOF
21128
21129fi
21130echo "$as_me:$LINENO: result: $ntp_ok" >&5
21131echo "${ECHO_T}$ntp_ok" >&6
21132case "$ntp_ok$ntp_canparse" in
21133 yesno)
21134    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
21135echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
21136   { (exit 1); exit 1; }; }
21137    ;;
21138esac
21139
21140echo "$as_me:$LINENO: checking DCF77 raw time code" >&5
21141echo $ECHO_N "checking DCF77 raw time code... $ECHO_C" >&6
21142# Check whether --enable-RAWDCF or --disable-RAWDCF was given.
21143if test "${enable_RAWDCF+set}" = set; then
21144  enableval="$enable_RAWDCF"
21145  ntp_ok=$enableval
21146else
21147  ntp_ok=$ntp_eapc
21148fi;
21149if test "$ntp_ok" = "yes"; then
21150    ntp_libparse=yes
21151    ntp_parseutil=yes
21152    ntp_refclock=yes
21153    ntp_rawdcf=yes
21154
21155cat >>confdefs.h <<\_ACEOF
21156#define CLOCK_RAWDCF 1
21157_ACEOF
21158
21159fi
21160echo "$as_me:$LINENO: result: $ntp_ok" >&5
21161echo "${ECHO_T}$ntp_ok" >&6
21162case "$ntp_ok$ntp_canparse" in
21163 yesno)
21164    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
21165echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
21166   { (exit 1); exit 1; }; }
21167    ;;
21168esac
21169
21170case "$ntp_rawdcf" in
21171 yes)
21172    echo "$as_me:$LINENO: checking if we must enable parity for RAWDCF" >&5
21173echo $ECHO_N "checking if we must enable parity for RAWDCF... $ECHO_C" >&6
21174if test "${ac_cv_var_rawdcf_parity+set}" = set; then
21175  echo $ECHO_N "(cached) $ECHO_C" >&6
21176else
21177  ans=no
21178    case "$host" in
21179     *-*-linux*)
21180        ans=yes
21181        ;;
21182    esac
21183    ac_cv_var_rawdcf_parity=$ans
21184fi
21185echo "$as_me:$LINENO: result: $ac_cv_var_rawdcf_parity" >&5
21186echo "${ECHO_T}$ac_cv_var_rawdcf_parity" >&6
21187    case "$ac_cv_var_rawdcf_parity" in
21188     yes)
21189cat >>confdefs.h <<\_ACEOF
21190#define RAWDCF_NO_IGNPAR 1
21191_ACEOF
21192 ;;
21193    esac
21194    ;;
21195
21196 *) # HMS: Is this a good idea?
21197    ac_cv_var_rawdcf_parity=no
21198    ;;
21199esac
21200
21201echo "$as_me:$LINENO: checking RCC 8000 clock" >&5
21202echo $ECHO_N "checking RCC 8000 clock... $ECHO_C" >&6
21203# Check whether --enable-RCC8000 or --disable-RCC8000 was given.
21204if test "${enable_RCC8000+set}" = set; then
21205  enableval="$enable_RCC8000"
21206  ntp_ok=$enableval
21207else
21208  ntp_ok=$ntp_eapc
21209fi;
21210if test "$ntp_ok" = "yes"; then
21211    ntp_libparse=yes
21212    ntp_refclock=yes
21213
21214cat >>confdefs.h <<\_ACEOF
21215#define CLOCK_RCC8000 1
21216_ACEOF
21217
21218fi
21219echo "$as_me:$LINENO: result: $ntp_ok" >&5
21220echo "${ECHO_T}$ntp_ok" >&6
21221case "$ntp_ok$ntp_canparse" in
21222 yesno)
21223    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
21224echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
21225   { (exit 1); exit 1; }; }
21226    ;;
21227esac
21228
21229echo "$as_me:$LINENO: checking Schmid DCF77 clock" >&5
21230echo $ECHO_N "checking Schmid DCF77 clock... $ECHO_C" >&6
21231# Check whether --enable-SCHMID or --disable-SCHMID was given.
21232if test "${enable_SCHMID+set}" = set; then
21233  enableval="$enable_SCHMID"
21234  ntp_ok=$enableval
21235else
21236  ntp_ok=$ntp_eapc
21237fi;
21238if test "$ntp_ok" = "yes"; then
21239    ntp_libparse=yes
21240    ntp_refclock=yes
21241
21242cat >>confdefs.h <<\_ACEOF
21243#define CLOCK_SCHMID 1
21244_ACEOF
21245
21246fi
21247echo "$as_me:$LINENO: result: $ntp_ok" >&5
21248echo "${ECHO_T}$ntp_ok" >&6
21249case "$ntp_ok$ntp_canparse" in
21250 yesno)
21251    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
21252echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
21253   { (exit 1); exit 1; }; }
21254    ;;
21255esac
21256
21257echo "$as_me:$LINENO: checking Trimble GPS receiver/TAIP protocol" >&5
21258echo $ECHO_N "checking Trimble GPS receiver/TAIP protocol... $ECHO_C" >&6
21259# Check whether --enable-TRIMTAIP or --disable-TRIMTAIP was given.
21260if test "${enable_TRIMTAIP+set}" = set; then
21261  enableval="$enable_TRIMTAIP"
21262  ntp_ok=$enableval
21263else
21264  ntp_ok=$ntp_eapc
21265fi;
21266if test "$ntp_ok" = "yes"; then
21267    ntp_libparse=yes
21268    ntp_refclock=yes
21269
21270cat >>confdefs.h <<\_ACEOF
21271#define CLOCK_TRIMTAIP 1
21272_ACEOF
21273
21274fi
21275echo "$as_me:$LINENO: result: $ntp_ok" >&5
21276echo "${ECHO_T}$ntp_ok" >&6
21277case "$ntp_ok$ntp_canparse" in
21278 yesno)
21279    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
21280echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
21281   { (exit 1); exit 1; }; }
21282    ;;
21283esac
21284
21285echo "$as_me:$LINENO: checking Trimble GPS receiver/TSIP protocol" >&5
21286echo $ECHO_N "checking Trimble GPS receiver/TSIP protocol... $ECHO_C" >&6
21287# Check whether --enable-TRIMTSIP or --disable-TRIMTSIP was given.
21288if test "${enable_TRIMTSIP+set}" = set; then
21289  enableval="$enable_TRIMTSIP"
21290  ntp_ok=$enableval
21291else
21292  ntp_ok=$ntp_eapc
21293fi;
21294if test "$ntp_ok" = "yes"; then
21295    ntp_libparse=yes
21296    ntp_refclock=yes
21297
21298cat >>confdefs.h <<\_ACEOF
21299#define CLOCK_TRIMTSIP 1
21300_ACEOF
21301
21302fi
21303echo "$as_me:$LINENO: result: $ntp_ok" >&5
21304echo "${ECHO_T}$ntp_ok" >&6
21305case "$ntp_ok$ntp_canparse" in
21306 yesno)
21307    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
21308echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
21309   { (exit 1); exit 1; }; }
21310    ;;
21311esac
21312
21313echo "$as_me:$LINENO: checking WHARTON 400A Series clock" >&5
21314echo $ECHO_N "checking WHARTON 400A Series clock... $ECHO_C" >&6
21315# Check whether --enable-WHARTON or --disable-WHARTON was given.
21316if test "${enable_WHARTON+set}" = set; then
21317  enableval="$enable_WHARTON"
21318  ntp_ok=$enableval
21319else
21320  ntp_ok=$ntp_eapc
21321fi;
21322if test "$ntp_ok" = "yes"; then
21323    ntp_libparse=yes
21324    ntp_refclock=yes
21325
21326cat >>confdefs.h <<\_ACEOF
21327#define CLOCK_WHARTON_400A 1
21328_ACEOF
21329
21330fi
21331echo "$as_me:$LINENO: result: $ntp_ok" >&5
21332echo "${ECHO_T}$ntp_ok" >&6
21333case "$ntp_ok$ntp_canparse" in
21334 yesno)
21335    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
21336echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
21337   { (exit 1); exit 1; }; }
21338    ;;
21339esac
21340
21341echo "$as_me:$LINENO: checking VARITEXT clock" >&5
21342echo $ECHO_N "checking VARITEXT clock... $ECHO_C" >&6
21343# Check whether --enable-VARITEXT or --disable-VARITEXT was given.
21344if test "${enable_VARITEXT+set}" = set; then
21345  enableval="$enable_VARITEXT"
21346  ntp_ok=$enableval
21347else
21348  ntp_ok=$ntp_eapc
21349fi;
21350if test "$ntp_ok" = "yes"; then
21351    ntp_libparse=yes
21352    ntp_refclock=yes
21353
21354cat >>confdefs.h <<\_ACEOF
21355#define CLOCK_VARITEXT 1
21356_ACEOF
21357
21358fi
21359echo "$as_me:$LINENO: result: $ntp_ok" >&5
21360echo "${ECHO_T}$ntp_ok" >&6
21361case "$ntp_ok$ntp_canparse" in
21362 yesno)
21363    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
21364echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
21365   { (exit 1); exit 1; }; }
21366    ;;
21367esac
21368
21369
21370
21371
21372echo "$as_me:$LINENO: checking if we need to make and use the parse libraries" >&5
21373echo $ECHO_N "checking if we need to make and use the parse libraries... $ECHO_C" >&6
21374ans=no
21375case "$ntp_libparse" in
21376 yes)
21377    ans=yes
21378
21379cat >>confdefs.h <<\_ACEOF
21380#define CLOCK_PARSE 1
21381_ACEOF
21382
21383    LIBPARSE=../libparse/libparse.a
21384    MAKE_LIBPARSE=libparse.a
21385    MAKE_CHECK_Y2K=check_y2k
21386
21387cat >>confdefs.h <<\_ACEOF
21388#define PPS_SAMPLE 1
21389_ACEOF
21390
21391    cat >>confdefs.h <<\_ACEOF
21392#define CLOCK_ATOM 1
21393_ACEOF
21394
21395    ;;
21396esac
21397echo "$as_me:$LINENO: result: $ans" >&5
21398echo "${ECHO_T}$ans" >&6
21399
21400# AC_SUBST(RSAOBJS)
21401# AC_SUBST(RSASRCS)
21402# AC_SUBST(RSADIR)
21403# AC_SUBST(RSAREF)
21404# AC_SUBST(LIBRSAREF)
21405# AC_SUBST(MAKE_LIBRSAREF)
21406
21407
21408
21409
21410
21411
21412
21413echo "$as_me:$LINENO: checking for openssl library directory" >&5
21414echo $ECHO_N "checking for openssl library directory... $ECHO_C" >&6
21415
21416# Check whether --with-openssl-libdir or --without-openssl-libdir was given.
21417if test "${with_openssl_libdir+set}" = set; then
21418  withval="$with_openssl_libdir"
21419  ans=$withval
21420else
21421  ans=yes
21422fi;
21423case "$ans" in
21424 no) ;;
21425 yes) # Look in:
21426    ans="/usr/lib /usr/lib/openssl /usr/local/lib /usr/local/ssl/lib"
21427    ;;
21428 *) # Look where they said
21429    ;;
21430esac
21431case "$ans" in
21432 no) ;;
21433 *) # Look for libcrypto.a and libssl.a:
21434    for i in $ans no
21435    do
21436	case "$host" in
21437	 *-*-darwin*)
21438	    test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
21439	    ;;
21440	 *)
21441	    test -f $i/libcrypto.a -a -f $i/libssl.a && break
21442	    ;;
21443	esac
21444    done
21445    case "$i" in
21446     no)
21447	ans=no
21448	OPENSSL_LIB=
21449	;;
21450     *) ans=$i
21451	OPENSSL_LIB=$ans
21452	;;
21453    esac
21454    ;;
21455esac
21456echo "$as_me:$LINENO: result: $ans" >&5
21457echo "${ECHO_T}$ans" >&6
21458
21459echo "$as_me:$LINENO: checking for openssl include directory" >&5
21460echo $ECHO_N "checking for openssl include directory... $ECHO_C" >&6
21461
21462# Check whether --with-openssl-incdir or --without-openssl-incdir was given.
21463if test "${with_openssl_incdir+set}" = set; then
21464  withval="$with_openssl_incdir"
21465  ans=$withval
21466else
21467  ans=yes
21468fi;
21469case "$ans" in
21470 no) ;;
21471 yes) # look in:
21472    ans="/usr/include /usr/local/include /usr/local/ssl/include"
21473    ;;
21474 *) # Look where they said
21475    ;;
21476esac
21477case "$ans" in
21478 no) ;;
21479 *) # look for openssl/opensslconf.h:
21480    for i in $ans no
21481    do
21482	test -f $i/openssl/opensslconf.h && break
21483    done
21484    case "$i" in
21485     no)
21486	ans=no
21487	OPENSSL_INC=
21488	;;
21489     *) ans=$i
21490	OPENSSL_INC=$ans
21491	;;
21492    esac
21493    ;;
21494esac
21495echo "$as_me:$LINENO: result: $ans" >&5
21496echo "${ECHO_T}$ans" >&6
21497
21498
21499# Check whether --with-crypto or --without-crypto was given.
21500if test "${with_crypto+set}" = set; then
21501  withval="$with_crypto"
21502  ans=$withval
21503else
21504  ans=yes
21505fi;
21506case "$ans" in
21507 no) ;;
21508 yes|openssl)
21509    if test -z "$OPENSSL_LIB" -o -z "$OPENSSL_INC"
21510    then
21511	ans=no
21512    else
21513	# We have OpenSSL inc/lib - use them.
21514	ans=openssl
21515	CPPFLAGS="$CPPFLAGS -I$OPENSSL_INC"
21516	LDFLAGS="$LDFLAGS -L$OPENSSL_LIB"
21517	LCRYPTO=-lcrypto
21518
21519	MAKE_NTP_KEYGEN=ntp-keygen
21520
21521cat >>confdefs.h <<\_ACEOF
21522#define OPENSSL
21523_ACEOF
21524
21525
21526
21527for ac_func in EVP_md2 EVP_mdc2
21528do
21529as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21530echo "$as_me:$LINENO: checking for $ac_func" >&5
21531echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21532if eval "test \"\${$as_ac_var+set}\" = set"; then
21533  echo $ECHO_N "(cached) $ECHO_C" >&6
21534else
21535  cat >conftest.$ac_ext <<_ACEOF
21536#line $LINENO "configure"
21537/* confdefs.h.  */
21538_ACEOF
21539cat confdefs.h >>conftest.$ac_ext
21540cat >>conftest.$ac_ext <<_ACEOF
21541/* end confdefs.h.  */
21542/* System header to define __stub macros and hopefully few prototypes,
21543    which can conflict with char $ac_func (); below.
21544    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21545    <limits.h> exists even on freestanding compilers.  */
21546#ifdef __STDC__
21547# include <limits.h>
21548#else
21549# include <assert.h>
21550#endif
21551/* Override any gcc2 internal prototype to avoid an error.  */
21552#ifdef __cplusplus
21553extern "C"
21554{
21555#endif
21556/* We use char because int might match the return type of a gcc2
21557   builtin and then its argument prototype would still apply.  */
21558char $ac_func ();
21559/* The GNU C library defines this for functions which it implements
21560    to always fail with ENOSYS.  Some functions are actually named
21561    something starting with __ and the normal name is an alias.  */
21562#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21563choke me
21564#else
21565char (*f) () = $ac_func;
21566#endif
21567#ifdef __cplusplus
21568}
21569#endif
21570
21571int
21572main ()
21573{
21574return f != $ac_func;
21575  ;
21576  return 0;
21577}
21578_ACEOF
21579rm -f conftest.$ac_objext conftest$ac_exeext
21580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21581  (eval $ac_link) 2>&5
21582  ac_status=$?
21583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584  (exit $ac_status); } &&
21585         { ac_try='test -s conftest$ac_exeext'
21586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21587  (eval $ac_try) 2>&5
21588  ac_status=$?
21589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590  (exit $ac_status); }; }; then
21591  eval "$as_ac_var=yes"
21592else
21593  echo "$as_me: failed program was:" >&5
21594sed 's/^/| /' conftest.$ac_ext >&5
21595
21596eval "$as_ac_var=no"
21597fi
21598rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21599fi
21600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21601echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21602if test `eval echo '${'$as_ac_var'}'` = yes; then
21603  cat >>confdefs.h <<_ACEOF
21604#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21605_ACEOF
21606
21607fi
21608done
21609
21610    fi
21611    ;;
21612esac
21613echo "$as_me:$LINENO: checking for the level of crypto support" >&5
21614echo $ECHO_N "checking for the level of crypto support... $ECHO_C" >&6
21615echo "$as_me:$LINENO: result: $ans" >&5
21616echo "${ECHO_T}$ans" >&6
21617
21618echo "$as_me:$LINENO: checking if we want to compile with ElectricFence" >&5
21619echo $ECHO_N "checking if we want to compile with ElectricFence... $ECHO_C" >&6
21620
21621# Check whether --with-electricfence or --without-electricfence was given.
21622if test "${with_electricfence+set}" = set; then
21623  withval="$with_electricfence"
21624  ans=$withval
21625else
21626  ans=no
21627fi;
21628case "$ans" in
21629 no) ;;
21630 *)
21631    LIBS="$LIBS \${top_builddir}/ElectricFence/libefence.a"
21632    EF_PROGS="eftest tstheap"
21633
21634    EF_LIBS=libefence.a
21635
21636    ans=yes
21637    ;;
21638esac
21639echo "$as_me:$LINENO: result: $ans" >&5
21640echo "${ECHO_T}$ans" >&6
21641
21642echo "$as_me:$LINENO: checking if we want to try SNTP" >&5
21643echo $ECHO_N "checking if we want to try SNTP... $ECHO_C" >&6
21644
21645# Check whether --with-sntp or --without-sntp was given.
21646if test "${with_sntp+set}" = set; then
21647  withval="$with_sntp"
21648  ans=$withval
21649else
21650  ans=no
21651fi;
21652case "$ans" in
21653 no) ;;
21654 *)
21655    MAKE_SNTP="sntp"
21656
21657    ans=yes
21658    ;;
21659esac
21660echo "$as_me:$LINENO: result: $ans" >&5
21661echo "${ECHO_T}$ans" >&6
21662
21663
21664
21665
21666echo "$as_me:$LINENO: checking if we can make dcf parse utilities" >&5
21667echo $ECHO_N "checking if we can make dcf parse utilities... $ECHO_C" >&6
21668ans=no
21669if test "$ntp_parseutil" = "yes"; then
21670    case "$host" in
21671     *-*-sunos4*|*-*-solaris2*|*-*-linux*)
21672	ans="dcfd testdcf"
21673	DCFD=dcfd
21674        TESTDCF=testdcf
21675	;;
21676    esac
21677fi
21678echo "$as_me:$LINENO: result: $ans" >&5
21679echo "${ECHO_T}$ans" >&6
21680
21681
21682echo "$as_me:$LINENO: checking if we can build kernel streams modules for parse" >&5
21683echo $ECHO_N "checking if we can build kernel streams modules for parse... $ECHO_C" >&6
21684ans=no
21685case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
21686 yesyes)
21687    case "$host" in
21688     sparc-*-sunos4*)
21689        case "$ac_cv_var_kernel_pll" in
21690	yes)
21691
21692cat >>confdefs.h <<\_ACEOF
21693#define PPS_SYNC 1
21694_ACEOF
21695
21696	    ;;
21697	esac
21698	ans=parsestreams
21699	MAKE_PARSEKMODULE=parsestreams.loadable_module.o
21700	;;
21701     sparc-*-solaris2*)
21702	ans=parsesolaris
21703	MAKE_PARSEKMODULE=parse
21704	;;
21705    esac
21706    ;;
21707esac
21708echo "$as_me:$LINENO: result: $ans" >&5
21709echo "${ECHO_T}$ans" >&6
21710
21711echo "$as_me:$LINENO: checking if we need basic refclock support" >&5
21712echo $ECHO_N "checking if we need basic refclock support... $ECHO_C" >&6
21713if test "$ntp_refclock" = "yes"; then
21714
21715cat >>confdefs.h <<\_ACEOF
21716#define REFCLOCK 1
21717_ACEOF
21718
21719fi
21720echo "$as_me:$LINENO: result: $ntp_refclock" >&5
21721echo "${ECHO_T}$ntp_refclock" >&6
21722
21723
21724
21725echo "$as_me:$LINENO: checking if we want HP-UX adjtimed support" >&5
21726echo $ECHO_N "checking if we want HP-UX adjtimed support... $ECHO_C" >&6
21727case "$host" in
21728 *-*-hpux[56789]*)
21729    ans=yes
21730    ;;
21731 *) ans=no
21732    ;;
21733esac
21734if test "$ans" = "yes"; then
21735    MAKE_ADJTIMED=adjtimed
21736
21737cat >>confdefs.h <<\_ACEOF
21738#define NEED_HPUX_ADJTIME 1
21739_ACEOF
21740
21741fi
21742echo "$as_me:$LINENO: result: $ans" >&5
21743echo "${ECHO_T}$ans" >&6
21744
21745echo "$as_me:$LINENO: checking if we want QNX adjtime support" >&5
21746echo $ECHO_N "checking if we want QNX adjtime support... $ECHO_C" >&6
21747case "$host" in
21748 *-*-qnx*)
21749    ans=yes
21750    ;;
21751 *) ans=no
21752    ;;
21753esac
21754if test "$ans" = "yes"; then
21755
21756cat >>confdefs.h <<\_ACEOF
21757#define NEED_QNX_ADJTIME 1
21758_ACEOF
21759
21760fi
21761echo "$as_me:$LINENO: result: $ans" >&5
21762echo "${ECHO_T}$ans" >&6
21763
21764echo "$as_me:$LINENO: checking if we can read kmem" >&5
21765echo $ECHO_N "checking if we can read kmem... $ECHO_C" >&6
21766if test "${ac_cv_var_can_kmem+set}" = set; then
21767  echo $ECHO_N "(cached) $ECHO_C" >&6
21768else
21769  # Check whether --enable-kmem or --disable-kmem was given.
21770if test "${enable_kmem+set}" = set; then
21771  enableval="$enable_kmem"
21772  ans=$enableval
21773else
21774  case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
21775     *yes*)
21776	ans=yes
21777	;;
21778     *) ans=no
21779	;;
21780    esac
21781    case "$host" in
21782     *-*-aix*)
21783	#ans=no
21784	;;
21785     *-*-domainos)	# Won't be found...
21786	ans=no
21787	;;
21788     *-*-hpux*)
21789	#ans=no
21790	;;
21791     *-*-irix[456]*)
21792	ans=no
21793	;;
21794     *-*-linux*)
21795	ans=no
21796	;;
21797     *-*-winnt3.5)
21798	ans=no
21799	;;
21800     *-*-unicosmp*)
21801	ans=no
21802	;;
21803    esac
21804
21805fi;
21806ac_cv_var_can_kmem=$ans
21807fi
21808echo "$as_me:$LINENO: result: $ac_cv_var_can_kmem" >&5
21809echo "${ECHO_T}$ac_cv_var_can_kmem" >&6
21810
21811case "$ac_cv_var_can_kmem" in
21812 *yes*) ;;
21813 *)
21814cat >>confdefs.h <<\_ACEOF
21815#define NOKMEM 1
21816_ACEOF
21817 ;;
21818esac
21819
21820echo "$as_me:$LINENO: checking if adjtime is accurate" >&5
21821echo $ECHO_N "checking if adjtime is accurate... $ECHO_C" >&6
21822if test "${ac_cv_var_adjtime_is_accurate+set}" = set; then
21823  echo $ECHO_N "(cached) $ECHO_C" >&6
21824else
21825  # Check whether --enable-accurate-adjtime or --disable-accurate-adjtime was given.
21826if test "${enable_accurate_adjtime+set}" = set; then
21827  enableval="$enable_accurate_adjtime"
21828  ans=$enableval
21829else
21830  case "$host" in
21831      i386-sequent-ptx*)
21832	 ans=no
21833	 ;;
21834      i386-unknown-osf1*)
21835	 ans=yes
21836	 ;;
21837      mips-sgi-irix[456]*)
21838	 ans=yes
21839	 ;;
21840      *-fujitsu-uxp*)
21841	 ans=yes
21842	 ;;
21843      *-ibm-aix[45]*)
21844	 ans=yes
21845	 ;;
21846      *-*-linux*)
21847	 ans=yes
21848	 ;;
21849      *-*-solaris2.[01])
21850	 ans=no
21851	 ;;
21852      *-*-solaris2*)
21853         ans=yes
21854         ;;
21855      *-*-unicosmp*)
21856         ans=yes
21857         ;;
21858      *) ans=no
21859	 ;;
21860     esac
21861
21862fi;
21863ac_cv_var_adjtime_is_accurate=$ans
21864fi
21865echo "$as_me:$LINENO: result: $ac_cv_var_adjtime_is_accurate" >&5
21866echo "${ECHO_T}$ac_cv_var_adjtime_is_accurate" >&6
21867case "$ac_cv_var_adjtime_is_accurate" in
21868 yes)
21869cat >>confdefs.h <<\_ACEOF
21870#define ADJTIME_IS_ACCURATE 1
21871_ACEOF
21872 ;;
21873esac
21874
21875echo "$as_me:$LINENO: checking the name of 'tick' in the kernel" >&5
21876echo $ECHO_N "checking the name of 'tick' in the kernel... $ECHO_C" >&6
21877if test "${ac_cv_var_nlist_tick+set}" = set; then
21878  echo $ECHO_N "(cached) $ECHO_C" >&6
21879else
21880  ans=_tick
21881case "$host" in
21882 m68*-hp-hpux*) # HP9000/300?
21883    ans=_old_tick
21884    ;;
21885 *-apple-aux[23]*)
21886    ans=tick
21887    ;;
21888 *-hp-hpux*)
21889    ans=old_tick
21890    ;;
21891 *-ibm-aix[345]*)
21892    ans=no
21893    ;;
21894 *-*-mpeix*)
21895    ans=no
21896    ;;
21897 *-*-ptx*)
21898    ans=tick
21899    ;;
21900 *-*-sco3.2v[45]*)
21901    ans=no
21902    ;;
21903 *-*-solaris2*)
21904    ans=nsec_per_tick
21905    ;;
21906 *-*-sysv4*)
21907    ans=tick
21908    ;;
21909esac
21910ac_cv_var_nlist_tick=$ans
21911fi
21912echo "$as_me:$LINENO: result: $ac_cv_var_nlist_tick" >&5
21913echo "${ECHO_T}$ac_cv_var_nlist_tick" >&6
21914case "$ac_cv_var_nlist_tick" in
21915 ''|no) ;;	# HMS: I think we can only get 'no' here...
21916 *)
21917cat >>confdefs.h <<_ACEOF
21918#define K_TICK_NAME "$ac_cv_var_nlist_tick"
21919_ACEOF
21920 ;;
21921esac
21922#
21923echo "$as_me:$LINENO: checking for the units of 'tick'" >&5
21924echo $ECHO_N "checking for the units of 'tick'... $ECHO_C" >&6
21925if test "${ac_cv_var_tick_nano+set}" = set; then
21926  echo $ECHO_N "(cached) $ECHO_C" >&6
21927else
21928  ans=usec
21929case "$host" in
21930 *-*-solaris2*)
21931    ans=nsec
21932    ;;
21933esac
21934ac_cv_var_tick_nano=$ans
21935fi
21936echo "$as_me:$LINENO: result: $ac_cv_var_tick_nano" >&5
21937echo "${ECHO_T}$ac_cv_var_tick_nano" >&6
21938case "$ac_cv_var_tick_nano" in
21939 nsec)
21940
21941cat >>confdefs.h <<\_ACEOF
21942#define TICK_NANO 1
21943_ACEOF
21944
21945    ;;
21946esac
21947#
21948echo "$as_me:$LINENO: checking the name of 'tickadj' in the kernel" >&5
21949echo $ECHO_N "checking the name of 'tickadj' in the kernel... $ECHO_C" >&6
21950if test "${ac_cv_var_nlist_tickadj+set}" = set; then
21951  echo $ECHO_N "(cached) $ECHO_C" >&6
21952else
21953  ans=_tickadj
21954case "$host" in
21955 m68*-hp-hpux*) # HP9000/300?
21956    ans=_tickadj
21957    ;;
21958 *-apple-aux[23]*)
21959    ans=tickadj
21960    ;;
21961 *-hp-hpux10*)
21962    ans=no
21963    ;;
21964 *-hp-hpux9*)
21965    ans=no
21966    ;;
21967 *-hp-hpux*)
21968    ans=tickadj
21969    ;;
21970 *-*-aix*)
21971    ans=tickadj
21972    ;;
21973 *-*-mpeix*)
21974    ans=no
21975    ;;
21976 *-*-ptx*)
21977    ans=tickadj
21978    ;;
21979 *-*-sco3.2v4*)
21980    ans=no
21981    ;;
21982 *-*-sco3.2v5.0*)
21983    ans=clock_drift
21984    ;;
21985 *-*-solaris2*)
21986    ans=no	# hrestime_adj
21987    ;;
21988 *-*-sysv4*)
21989    ans=tickadj
21990    ;;
21991esac
21992ac_cv_var_nlist_tickadj=$ans
21993fi
21994echo "$as_me:$LINENO: result: $ac_cv_var_nlist_tickadj" >&5
21995echo "${ECHO_T}$ac_cv_var_nlist_tickadj" >&6
21996case "$ac_cv_var_nlist_tickadj" in
21997 ''|no) ;;	# HMS: I think we can only get 'no' here...
21998 *)
21999cat >>confdefs.h <<_ACEOF
22000#define K_TICKADJ_NAME "$ac_cv_var_nlist_tickadj"
22001_ACEOF
22002 ;;
22003esac
22004#
22005echo "$as_me:$LINENO: checking for the units of 'tickadj'" >&5
22006echo $ECHO_N "checking for the units of 'tickadj'... $ECHO_C" >&6
22007if test "${ac_cv_var_tickadj_nano+set}" = set; then
22008  echo $ECHO_N "(cached) $ECHO_C" >&6
22009else
22010  ans=usec
22011case "$host" in
22012 *-*-solaris2*)
22013    ans=nsec
22014    ;;
22015esac
22016ac_cv_var_tickadj_nano=$ans
22017fi
22018echo "$as_me:$LINENO: result: $ac_cv_var_tickadj_nano" >&5
22019echo "${ECHO_T}$ac_cv_var_tickadj_nano" >&6
22020case "$ac_cv_var_tickadj_nano" in
22021 nsec)
22022
22023cat >>confdefs.h <<\_ACEOF
22024#define TICKADJ_NANO 1
22025_ACEOF
22026
22027    ;;
22028esac
22029#
22030echo "$as_me:$LINENO: checking half-heartedly for 'dosynctodr' in the kernel" >&5
22031echo $ECHO_N "checking half-heartedly for 'dosynctodr' in the kernel... $ECHO_C" >&6
22032if test "${ac_cv_var_nlist_dosynctodr+set}" = set; then
22033  echo $ECHO_N "(cached) $ECHO_C" >&6
22034else
22035  case "$host" in
22036 *-apple-aux[23]*)
22037    ans=no
22038    ;;
22039 *-sni-sysv*)
22040    ans=dosynctodr
22041    ;;
22042 *-*-aix*)
22043    ans=dosynctodr
22044    ;;
22045 *-*-hpux*)
22046    ans=no
22047    ;;
22048 *-*-mpeix*)
22049    ans=no
22050    ;;
22051 *-*-nextstep*)
22052    ans=_dosynctodr
22053    ;;
22054 *-*-ptx*)
22055    ans=doresettodr
22056    ;;
22057 *-*-sco3.2v4*)
22058    ans=no
22059    ;;
22060 *-*-sco3.2v5*)
22061    ans=track_rtc
22062    ;;
22063 *-*-solaris2*)
22064    ans=dosynctodr
22065    ;;
22066 *-*-sysv4*)
22067    ans=doresettodr
22068    ;;
22069 *)
22070    ans=_dosynctodr
22071    ;;
22072esac
22073ac_cv_var_nlist_dosynctodr=$ans
22074fi
22075echo "$as_me:$LINENO: result: $ac_cv_var_nlist_dosynctodr" >&5
22076echo "${ECHO_T}$ac_cv_var_nlist_dosynctodr" >&6
22077case "$ac_cv_var_nlist_dosynctodr" in
22078 no) ;;
22079 *)
22080cat >>confdefs.h <<_ACEOF
22081#define K_DOSYNCTODR_NAME "$ac_cv_var_nlist_dosynctodr"
22082_ACEOF
22083
22084     ;;
22085esac
22086#
22087echo "$as_me:$LINENO: checking half-heartedly for 'noprintf' in the kernel" >&5
22088echo $ECHO_N "checking half-heartedly for 'noprintf' in the kernel... $ECHO_C" >&6
22089if test "${ac_cv_var_nlist_noprintf+set}" = set; then
22090  echo $ECHO_N "(cached) $ECHO_C" >&6
22091else
22092  case "$host" in
22093 *-apple-aux[23]*)
22094    ans=no
22095    ;;
22096 *-sni-sysv*)
22097    ans=noprintf
22098    ;;
22099 *-*-aix*)
22100    ans=noprintf
22101    ;;
22102 *-*-hpux*)
22103    ans=no
22104    ;;
22105 *-*-mpeix*)
22106    ans=no
22107    ;;
22108 *-*-ptx*)
22109    ans=noprintf
22110    ;;
22111 *-*-nextstep*)
22112    ans=_noprintf
22113    ;;
22114 *-*-solaris2*)
22115    ans=noprintf
22116    ;;
22117 *-*-sysv4*)
22118    ans=noprintf
22119    ;;
22120 *)
22121    ans=_noprintf
22122    ;;
22123esac
22124ac_cv_var_nlist_noprintf=$ans
22125fi
22126echo "$as_me:$LINENO: result: $ac_cv_var_nlist_noprintf" >&5
22127echo "${ECHO_T}$ac_cv_var_nlist_noprintf" >&6
22128case "$ac_cv_var_nlist_noprintf" in
22129 no) ;;
22130 *)
22131cat >>confdefs.h <<_ACEOF
22132#define K_NOPRINTF_NAME "$ac_cv_var_nlist_noprintf"
22133_ACEOF
22134
22135     ;;
22136esac
22137
22138
22139
22140
22141echo "$as_me:$LINENO: checking for a default value for 'tick'" >&5
22142echo $ECHO_N "checking for a default value for 'tick'... $ECHO_C" >&6
22143if test "${ac_cv_var_tick+set}" = set; then
22144  echo $ECHO_N "(cached) $ECHO_C" >&6
22145else
22146  # Check whether --enable-tick or --disable-tick was given.
22147if test "${enable_tick+set}" = set; then
22148  enableval="$enable_tick"
22149  ans=$enableval
22150else
22151  ans=no
22152     case "$host" in
22153      XXX-*-pc-cygwin*)
22154	 ;;
22155      *-univel-sysv*)
22156	 ans=10000
22157	 ;;
22158      *-*-irix*)
22159	 ans=10000
22160	 ;;
22161      *-*-linux*)
22162	 ans=txc.tick
22163	 ;;
22164      *-*-mpeix*)
22165	 ans=no
22166	 ;;
22167      *-*-winnt3.5)
22168	 ans='(every / 10)'
22169	 ;;
22170      *-*-unicosmp*)
22171	 ans=10000
22172	 ;;
22173      *)
22174	 ans='1000000L/hz'
22175	 ;;
22176     esac
22177fi;
22178ac_cv_var_tick=$ans
22179fi
22180echo "$as_me:$LINENO: result: $ac_cv_var_tick" >&5
22181echo "${ECHO_T}$ac_cv_var_tick" >&6
22182case "$ac_cv_var_tick" in
22183 ''|no) ;;	# HMS: I think we can only get 'no' here...
22184 *)
22185cat >>confdefs.h <<_ACEOF
22186#define PRESET_TICK $ac_cv_var_tick
22187_ACEOF
22188 ;;
22189esac
22190
22191echo "$as_me:$LINENO: checking for a default value for 'tickadj'" >&5
22192echo $ECHO_N "checking for a default value for 'tickadj'... $ECHO_C" >&6
22193if test "${ac_cv_var_tickadj+set}" = set; then
22194  echo $ECHO_N "(cached) $ECHO_C" >&6
22195else
22196  # Check whether --enable-tickadj or --disable-tickadj was given.
22197if test "${enable_tickadj+set}" = set; then
22198  enableval="$enable_tickadj"
22199  ans=$enableval
22200else
22201  ans='500/hz'
22202  case "$host" in
22203   *-fujitsu-uxp*)
22204      case "$ac_cv_var_adjtime_is_accurate" in
22205       yes) ans='tick/16' ;;
22206      esac
22207      ;;
22208   XXX-*-pc-cygwin*)
22209      ans=no
22210      ;;
22211   *-univel-sysv*)
22212      ans=80
22213      ;;
22214   *-*-aix*)
22215      case "$ac_cv_var_can_kmem" in
22216       no) ans=1000 ;;
22217      esac
22218      ;;
22219   *-*-domainos)	# Skippy: won't be found...
22220      case "$ac_cv_var_can_kmem" in
22221       no) ans=668 ;;
22222      esac
22223      ;;
22224   *-*-hpux*)
22225      case "$ac_cv_var_adjtime_is_accurate" in
22226       yes) ans='tick/16' ;;
22227      esac
22228      ;;
22229   *-*-irix*)
22230      ans=150
22231      ;;
22232   *-*-mpeix*)
22233      ans=no
22234      ;;
22235   *-*-sco3.2v5.0*)
22236      ans=10000L/hz
22237      ;;
22238   *-*-solaris2*)
22239      case "$ac_cv_var_adjtime_is_accurate" in
22240       yes)
22241          #ans='tick/16'
22242	  ;;
22243      esac
22244      ;;
22245   *-*-winnt3.5)
22246      ans=50
22247      ;;
22248   *-*-unicosmp*)
22249      ans=150
22250      ;;
22251  esac
22252fi;
22253ac_cv_var_tickadj=$ans
22254fi
22255echo "$as_me:$LINENO: result: $ac_cv_var_tickadj" >&5
22256echo "${ECHO_T}$ac_cv_var_tickadj" >&6
22257case "$ac_cv_var_tickadj" in
22258 ''|no) ;;	# HMS: I think we can only get 'no' here...
22259 *)
22260cat >>confdefs.h <<_ACEOF
22261#define PRESET_TICKADJ $ac_cv_var_tickadj
22262_ACEOF
22263 ;;
22264esac
22265
22266# Newer versions of ReliantUNIX round adjtime() values down to
22267# 1/100s (system tick). Sigh ...
22268# Unfortunately, there is no easy way to know if particular release
22269# has this "feature" or any obvious way to test for it.
22270case "$host" in
22271 mips-sni-sysv4*)
22272cat >>confdefs.h <<\_ACEOF
22273#define RELIANTUNIX_CLOCK 1
22274_ACEOF
22275 ;;
22276esac
22277
22278case "$host" in
22279 *-*-sco3.2v5*)
22280cat >>confdefs.h <<\_ACEOF
22281#define SCO5_CLOCK 1
22282_ACEOF
22283 ;;
22284esac
22285
22286ac_cv_make_tickadj=yes
22287case "$ac_cv_var_can_kmem$ac_cv_var_tick$ac_cv_var_tickadj" in
22288 nonono)	# Don't read KMEM, no presets.  Bogus.
22289    { echo "$as_me:$LINENO: WARNING: Can't read kmem" >&5
22290echo "$as_me: WARNING: Can't read kmem" >&2;}
22291    ac_cv_make_tickadj=no
22292    ;;
22293 nono*)		# Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
22294    { echo "$as_me:$LINENO: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&5
22295echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&2;}
22296    ac_cv_make_tickadj=no
22297    ;;
22298 no*no)		# Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Bogus.
22299    { echo "$as_me:$LINENO: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&5
22300echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&2;}
22301    ac_cv_make_tickadj=no
22302    ;;
22303 no*)		# Don't read KMEM, PRESET_TICK and PRESET_TICKADJ.  Cool.
22304    ;;
22305 yesnono)	# Read KMEM, no presets.  Cool.
22306    ;;
22307 yesno*)	# Read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
22308    { echo "$as_me:$LINENO: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&5
22309echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&2;}
22310    ;;
22311 yes*no)	# Read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Cool.
22312    ;;
22313 yes*)		# READ KMEM, PRESET_TICK and PRESET_TICKADJ.
22314    ;;
22315 *)		# Generally bogus.
22316    { { echo "$as_me:$LINENO: error: This shouldn't happen." >&5
22317echo "$as_me: error: This shouldn't happen." >&2;}
22318   { (exit 1); exit 1; }; }
22319    ;;
22320esac
22321
22322
22323echo "$as_me:$LINENO: checking if we want and can make the ntptime utility" >&5
22324echo $ECHO_N "checking if we want and can make the ntptime utility... $ECHO_C" >&6
22325if test "${ac_cv_make_ntptime+set}" = set; then
22326  echo $ECHO_N "(cached) $ECHO_C" >&6
22327else
22328  case "$host" in
22329 *) case "$ac_cv_struct_ntptimeval$ac_cv_var_kernel_pll" in
22330     yesyes)
22331	ans=yes
22332	;;
22333     *)
22334	ans=no
22335	;;
22336    esac
22337    ;;
22338esac
22339ac_cv_make_ntptime=$ans
22340fi
22341echo "$as_me:$LINENO: result: $ac_cv_make_ntptime" >&5
22342echo "${ECHO_T}$ac_cv_make_ntptime" >&6
22343case "$ac_cv_make_ntptime" in
22344 yes)
22345    MAKE_NTPTIME=ntptime
22346    ;;
22347esac
22348
22349
22350case "$host" in
22351 mips-sni-sysv4*)
22352    # tickadj is pretty useless on newer versions of ReliantUNIX
22353    # Do not bother
22354    ac_cv_make_tickadj=no
22355    ;;
22356 *-*-irix*)
22357    ac_cv_make_tickadj=no
22358    ;;
22359 *-*-solaris2*)
22360    # DLM says tickadj is a no-no starting with solaris2.5
22361    case "$host" in
22362     *-*-solaris2.1[0-9]*)
22363	ac_cv_make_tickadj=no
22364	;;
22365     *-*-solaris2.[0-4]*) ;;
22366     *) ac_cv_make_tickadj=no ;;
22367    esac
22368    ;;
22369 *-*-unicosmp*)
22370    ac_cv_make_tickadj=no
22371    ;;
22372esac
22373echo "$as_me:$LINENO: checking if we want and can make the tickadj utility" >&5
22374echo $ECHO_N "checking if we want and can make the tickadj utility... $ECHO_C" >&6
22375if test "${ac_cv_make_tickadj+set}" = set; then
22376  echo $ECHO_N "(cached) $ECHO_C" >&6
22377else
22378  ac_cv_make_tickadj=yes
22379fi
22380echo "$as_me:$LINENO: result: $ac_cv_make_tickadj" >&5
22381echo "${ECHO_T}$ac_cv_make_tickadj" >&6
22382case "$ac_cv_make_tickadj" in
22383 yes)
22384    MAKE_TICKADJ=tickadj
22385    ;;
22386esac
22387
22388
22389echo "$as_me:$LINENO: checking if we want and can make the timetrim utility" >&5
22390echo $ECHO_N "checking if we want and can make the timetrim utility... $ECHO_C" >&6
22391if test "${ac_cv_make_timetrim+set}" = set; then
22392  echo $ECHO_N "(cached) $ECHO_C" >&6
22393else
22394  case "$host" in
22395 *-*-irix*)
22396    ac_cv_make_timetrim=yes
22397    ;;
22398 *-*-unicosmp*)
22399    ac_cv_make_timetrim=yes
22400    ;;
22401 *)
22402    ac_cv_make_timetrim=no
22403    ;;
22404esac
22405fi
22406echo "$as_me:$LINENO: result: $ac_cv_make_timetrim" >&5
22407echo "${ECHO_T}$ac_cv_make_timetrim" >&6
22408case "$ac_cv_make_timetrim" in
22409 yes)
22410    MAKE_TIMETRIM=timetrim
22411    ;;
22412esac
22413
22414
22415
22416echo "$as_me:$LINENO: checking if we want to build the NTPD simulator" >&5
22417echo $ECHO_N "checking if we want to build the NTPD simulator... $ECHO_C" >&6
22418if test "${ac_cv_var_ntpd_sim+set}" = set; then
22419  echo $ECHO_N "(cached) $ECHO_C" >&6
22420else
22421  # Check whether --enable-simulator or --disable-simulator was given.
22422if test "${enable_simulator+set}" = set; then
22423  enableval="$enable_simulator"
22424  ans=$enableval
22425else
22426  ans=no
22427fi;
22428ac_cv_var_ntpd_sim=$ans
22429fi
22430echo "$as_me:$LINENO: result: $ac_cv_var_ntpd_sim" >&5
22431echo "${ECHO_T}$ac_cv_var_ntpd_sim" >&6
22432case "$ac_cv_var_ntpd_sim" in
22433 yes)
22434    MAKE_NTPDSIM=ntpdsim
22435    MAKE_LIBNTPSIM=libntpsim.a
22436    ;;
22437esac
22438
22439echo "$as_me:$LINENO: checking if we want UDP wildcard delivery" >&5
22440echo $ECHO_N "checking if we want UDP wildcard delivery... $ECHO_C" >&6
22441if test "${ac_cv_var_udp_wildcard_delivery+set}" = set; then
22442  echo $ECHO_N "(cached) $ECHO_C" >&6
22443else
22444  # Check whether --enable-udp-wildcard or --disable-udp-wildcard was given.
22445if test "${enable_udp_wildcard+set}" = set; then
22446  enableval="$enable_udp_wildcard"
22447  ans=$enableval
22448else
22449  ans=no
22450     case "$host" in
22451      *-fujitsu-uxp*)
22452	 ans=yes
22453	 ;;
22454      *-univel-sysv*)
22455	 ans=yes
22456	 ;;
22457      *-*-aix3.2*)
22458	 ans=yes
22459	 ;;
22460      *-*-aix[45]*)
22461	 ans=yes
22462	 ;;
22463      *-*-bsdi*)
22464	 ans=yes
22465	 ;;
22466      *-*-domainos)
22467	 ans=yes
22468	 ;;
22469      *-*-freebsd*)
22470	ans=yes
22471	;;
22472      *-*-hpux*)
22473	 ans=yes
22474	 ;;
22475      *-*-irix6*)
22476	 ans=yes
22477	 ;;
22478      *-*-linux*)
22479	 ans=yes
22480	 ;;
22481      *-*-mpeix*)
22482	 ans=yes
22483	 ;;
22484      *-*-osf*)
22485	 ans=yes
22486	 ;;
22487      *-*-ptx*)
22488	 ans=yes
22489	 ;;
22490      *-*-solaris2*)
22491	 ans=yes
22492	 ;;
22493      *-*-sunos4*)
22494	 ans=yes
22495	 ;;
22496      *-*-unicosmp*)
22497	 ans=yes
22498	 ;;
22499     esac
22500fi;
22501ac_cv_var_udp_wildcard_delivery=$ans
22502fi
22503echo "$as_me:$LINENO: result: $ac_cv_var_udp_wildcard_delivery" >&5
22504echo "${ECHO_T}$ac_cv_var_udp_wildcard_delivery" >&6
22505case "$ac_cv_var_udp_wildcard_delivery" in
22506 yes)
22507cat >>confdefs.h <<\_ACEOF
22508#define UDP_WILDCARD_DELIVERY 1
22509_ACEOF
22510 ;;
22511esac
22512
22513case "$build" in
22514 $host)
22515    ;;
22516 *) case "$host" in
22517     *-*-vxworks*)
22518        LDFLAGS="$LDFLAGS -r"
22519        ;;
22520    esac
22521    ;;
22522esac
22523
22524echo "$as_me:$LINENO: checking if we should always slew the time" >&5
22525echo $ECHO_N "checking if we should always slew the time... $ECHO_C" >&6
22526if test "${ac_cv_var_slew_always+set}" = set; then
22527  echo $ECHO_N "(cached) $ECHO_C" >&6
22528else
22529  # Check whether --enable-slew-always or --disable-slew-always was given.
22530if test "${enable_slew_always+set}" = set; then
22531  enableval="$enable_slew_always"
22532  ans=$enableval
22533else
22534  case "$host" in
22535      *-apple-aux[23]*)
22536	 ans=yes
22537	 ;;
22538      *-*-bsdi[012]*)
22539	 ans=no
22540	 ;;
22541      *-*-bsdi*)
22542	 ans=yes
22543	 ;;
22544      *-*-openvms*)	# HMS: won't be found
22545	 ans=yes
22546	 ;;
22547      *) ans=no
22548	 ;;
22549     esac
22550
22551fi;
22552ac_cv_var_slew_always=$ans
22553fi
22554echo "$as_me:$LINENO: result: $ac_cv_var_slew_always" >&5
22555echo "${ECHO_T}$ac_cv_var_slew_always" >&6
22556case "$ac_cv_var_slew_always" in
22557 yes)
22558cat >>confdefs.h <<\_ACEOF
22559#define SLEWALWAYS 1
22560_ACEOF
22561 ;;
22562esac
22563
22564echo "$as_me:$LINENO: checking if we should step and slew the time" >&5
22565echo $ECHO_N "checking if we should step and slew the time... $ECHO_C" >&6
22566if test "${ac_cv_var_step_slew+set}" = set; then
22567  echo $ECHO_N "(cached) $ECHO_C" >&6
22568else
22569  # Check whether --enable-step-slew or --disable-step-slew was given.
22570if test "${enable_step_slew+set}" = set; then
22571  enableval="$enable_step_slew"
22572  ans=$enableval
22573else
22574  case "$host" in
22575      *-sni-sysv*)
22576	 ans=yes
22577	 ;;
22578      *-univel-sysv*)
22579	 ans=no
22580	 ;;
22581      *-*-ptx*)
22582	 ans=yes
22583	 ;;
22584      *-*-solaris2.1[0-9]*)
22585	 ans-no
22586	 ;;
22587      *-*-solaris2.[012]*)
22588	 ans=yes
22589	 ;;
22590      *-*-sysv4*)	# HMS: Does this catch Fujitsu UXP?
22591	 ans=yes
22592	 ;;
22593      *) ans=no
22594	 ;;
22595     esac
22596
22597fi;
22598ac_cv_var_step_slew=$ans
22599fi
22600echo "$as_me:$LINENO: result: $ac_cv_var_step_slew" >&5
22601echo "${ECHO_T}$ac_cv_var_step_slew" >&6
22602case "$ac_cv_var_step_slew" in
22603 yes)
22604cat >>confdefs.h <<\_ACEOF
22605#define STEP_SLEW 1
22606_ACEOF
22607 ;;
22608esac
22609
22610echo "$as_me:$LINENO: checking if ntpdate should step the time" >&5
22611echo $ECHO_N "checking if ntpdate should step the time... $ECHO_C" >&6
22612if test "${ac_cv_var_ntpdate_step+set}" = set; then
22613  echo $ECHO_N "(cached) $ECHO_C" >&6
22614else
22615  # Check whether --enable-ntpdate-step or --disable-ntpdate-step was given.
22616if test "${enable_ntpdate_step+set}" = set; then
22617  enableval="$enable_ntpdate_step"
22618  ans=$enableval
22619else
22620  case "$host" in
22621      *-apple-aux[23]*)
22622	 ans=yes
22623	 ;;
22624      *) ans=no
22625	 ;;
22626     esac
22627
22628fi;
22629ac_cv_var_ntpdate_step=$ans
22630fi
22631echo "$as_me:$LINENO: result: $ac_cv_var_ntpdate_step" >&5
22632echo "${ECHO_T}$ac_cv_var_ntpdate_step" >&6
22633case "$ac_cv_var_ntpdate_step" in
22634 yes)
22635cat >>confdefs.h <<\_ACEOF
22636#define FORCE_NTPDATE_STEP 1
22637_ACEOF
22638 ;;
22639esac
22640
22641echo "$as_me:$LINENO: checking if we should sync TODR clock every hour" >&5
22642echo $ECHO_N "checking if we should sync TODR clock every hour... $ECHO_C" >&6
22643if test "${ac_cv_var_sync_todr+set}" = set; then
22644  echo $ECHO_N "(cached) $ECHO_C" >&6
22645else
22646  # Check whether --enable-hourly-todr-sync or --disable-hourly-todr-sync was given.
22647if test "${enable_hourly_todr_sync+set}" = set; then
22648  enableval="$enable_hourly_todr_sync"
22649  ans=$enableval
22650else
22651  case "$host" in
22652      *-*-nextstep*)
22653	 ans=yes
22654	 ;;
22655      *-*-openvms*)	# HMS: won't be found
22656	 ans=yes
22657	 ;;
22658      *) ans=no
22659	 ;;
22660     esac
22661fi;
22662ac_cv_var_sync_todr=$ans
22663fi
22664echo "$as_me:$LINENO: result: $ac_cv_var_sync_todr" >&5
22665echo "${ECHO_T}$ac_cv_var_sync_todr" >&6
22666case "$ac_cv_var_sync_todr" in
22667 yes)
22668cat >>confdefs.h <<\_ACEOF
22669#define DOSYNCTODR 1
22670_ACEOF
22671 ;;
22672esac
22673
22674echo "$as_me:$LINENO: checking if we should avoid kernel FLL bug" >&5
22675echo $ECHO_N "checking if we should avoid kernel FLL bug... $ECHO_C" >&6
22676if test "${ac_cv_var_kernel_fll_bug+set}" = set; then
22677  echo $ECHO_N "(cached) $ECHO_C" >&6
22678else
22679  # Check whether --enable-kernel-fll-bug or --disable-kernel-fll-bug was given.
22680if test "${enable_kernel_fll_bug+set}" = set; then
22681  enableval="$enable_kernel_fll_bug"
22682  ans=$enableval
22683else
22684  case "$host" in
22685     *-*-solaris2.6)
22686	 unamev=`uname -v`
22687	 case "$unamev" in
22688	  Generic_105181-*)
22689	     old_IFS="$IFS"
22690	     IFS="-"
22691	     set $unamev
22692	     IFS="$old_IFS"
22693	     if test "$2" -ge 17
22694	     then
22695	        # Generic_105181-17 and higher
22696	        ans=no
22697	     else
22698	        ans=yes
22699	     fi
22700	     ;;
22701	  *) ans=yes
22702	     ;;
22703	 esac
22704	 ;;
22705     *-*-solaris2.7)
22706	 unamev=`uname -v`
22707	 case "$unamev" in
22708	  Generic_106541-*)
22709	     old_IFS="$IFS"
22710	     IFS="-"
22711	     set $unamev
22712	     IFS="$old_IFS"
22713	     if test "$2" -ge 07
22714	     then
22715	        # Generic_106541-07 and higher
22716	        ans=no
22717	     else
22718	        ans=yes
22719	     fi
22720	     ;;
22721	  *) ans=yes
22722	     ;;
22723	 esac
22724	 ;;
22725     *) ans=no
22726	 ;;
22727    esac
22728
22729fi;
22730ac_cv_var_kernel_fll_bug=$ans
22731fi
22732echo "$as_me:$LINENO: result: $ac_cv_var_kernel_fll_bug" >&5
22733echo "${ECHO_T}$ac_cv_var_kernel_fll_bug" >&6
22734case "$ac_cv_var_kernel_fll_bug" in
22735 yes)
22736cat >>confdefs.h <<\_ACEOF
22737#define KERNEL_FLL_BUG 1
22738_ACEOF
22739 ;;
22740esac
22741
22742echo "$as_me:$LINENO: checking if we should use the IRIG sawtooth filter" >&5
22743echo $ECHO_N "checking if we should use the IRIG sawtooth filter... $ECHO_C" >&6
22744if test "${ac_cv_var_irig_sucks+set}" = set; then
22745  echo $ECHO_N "(cached) $ECHO_C" >&6
22746else
22747  # Check whether --enable-irig-sawtooth or --disable-irig-sawtooth was given.
22748if test "${enable_irig_sawtooth+set}" = set; then
22749  enableval="$enable_irig_sawtooth"
22750  ans=$enableval
22751else
22752  case "$host" in
22753     *-*-solaris2.[89])
22754	ans=yes
22755	;;
22756     *-*-solaris2.1[0-9]*)
22757	ans=yes
22758	;;
22759     *) ans=no
22760	;;
22761    esac
22762
22763fi;
22764ac_cv_var_irig_sucks=$ans
22765fi
22766echo "$as_me:$LINENO: result: $ac_cv_var_irig_sucks" >&5
22767echo "${ECHO_T}$ac_cv_var_irig_sucks" >&6
22768case "$ac_cv_var_irig_sucks" in
22769 yes)
22770cat >>confdefs.h <<\_ACEOF
22771#define IRIG_SUCKS 1
22772_ACEOF
22773 ;;
22774esac
22775
22776echo "$as_me:$LINENO: checking if we should enable NIST lockclock scheme" >&5
22777echo $ECHO_N "checking if we should enable NIST lockclock scheme... $ECHO_C" >&6
22778if test "${ac_cv_var_nist_lockclock+set}" = set; then
22779  echo $ECHO_N "(cached) $ECHO_C" >&6
22780else
22781  # Check whether --enable-nist or --disable-nist was given.
22782if test "${enable_nist+set}" = set; then
22783  enableval="$enable_nist"
22784  ans=$enableval
22785else
22786  ans=no
22787fi;
22788ac_cv_var_nist_lockclock=$ans
22789fi
22790echo "$as_me:$LINENO: result: $ac_cv_var_nist_lockclock" >&5
22791echo "${ECHO_T}$ac_cv_var_nist_lockclock" >&6
22792case "$ac_cv_var_nist_lockclock" in
22793 yes)
22794cat >>confdefs.h <<\_ACEOF
22795#define LOCKCLOCK 1
22796_ACEOF
22797 ;;
22798esac
22799
22800#
22801# ISC stuff
22802#
22803
22804if test $ac_cv_struct_sockaddr_has_sa_len = yes; then
22805
22806cat >>confdefs.h <<\_ACEOF
22807#define ISC_PLATFORM_HAVESALEN
22808_ACEOF
22809
22810fi
22811
22812echo "$as_me:$LINENO: checking for IPv6 structures" >&5
22813echo $ECHO_N "checking for IPv6 structures... $ECHO_C" >&6
22814cat >conftest.$ac_ext <<_ACEOF
22815#line $LINENO "configure"
22816/* confdefs.h.  */
22817_ACEOF
22818cat confdefs.h >>conftest.$ac_ext
22819cat >>conftest.$ac_ext <<_ACEOF
22820/* end confdefs.h.  */
22821
22822#include <sys/types.h>
22823#include <sys/socket.h>
22824#include <netinet/in.h>
22825int
22826main ()
22827{
22828struct sockaddr_in6 sin6; return (0);
22829  ;
22830  return 0;
22831}
22832_ACEOF
22833rm -f conftest.$ac_objext
22834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22835  (eval $ac_compile) 2>&5
22836  ac_status=$?
22837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838  (exit $ac_status); } &&
22839         { ac_try='test -s conftest.$ac_objext'
22840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22841  (eval $ac_try) 2>&5
22842  ac_status=$?
22843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844  (exit $ac_status); }; }; then
22845  echo "$as_me:$LINENO: result: yes" >&5
22846echo "${ECHO_T}yes" >&6
22847	 found_ipv6=yes
22848else
22849  echo "$as_me: failed program was:" >&5
22850sed 's/^/| /' conftest.$ac_ext >&5
22851
22852echo "$as_me:$LINENO: result: no" >&5
22853echo "${ECHO_T}no" >&6
22854	 found_ipv6=no
22855fi
22856rm -f conftest.$ac_objext conftest.$ac_ext
22857
22858echo "$as_me:$LINENO: checking for struct if_laddrconf" >&5
22859echo $ECHO_N "checking for struct if_laddrconf... $ECHO_C" >&6
22860cat >conftest.$ac_ext <<_ACEOF
22861#line $LINENO "configure"
22862/* confdefs.h.  */
22863_ACEOF
22864cat confdefs.h >>conftest.$ac_ext
22865cat >>conftest.$ac_ext <<_ACEOF
22866/* end confdefs.h.  */
22867
22868#include <sys/types.h>
22869#include <net/if6.h>
22870
22871int
22872main ()
22873{
22874 struct if_laddrconf a;
22875  ;
22876  return 0;
22877}
22878_ACEOF
22879rm -f conftest.$ac_objext conftest$ac_exeext
22880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22881  (eval $ac_link) 2>&5
22882  ac_status=$?
22883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884  (exit $ac_status); } &&
22885         { ac_try='test -s conftest$ac_exeext'
22886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22887  (eval $ac_try) 2>&5
22888  ac_status=$?
22889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890  (exit $ac_status); }; }; then
22891  echo "$as_me:$LINENO: result: yes" >&5
22892echo "${ECHO_T}yes" >&6
22893
22894cat >>confdefs.h <<\_ACEOF
22895#define ISC_PLATFORM_HAVEIF_LADDRCONF
22896_ACEOF
22897
22898else
22899  echo "$as_me: failed program was:" >&5
22900sed 's/^/| /' conftest.$ac_ext >&5
22901
22902echo "$as_me:$LINENO: result: no" >&5
22903echo "${ECHO_T}no" >&6
22904fi
22905rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22906
22907echo "$as_me:$LINENO: checking for struct if_laddrreq" >&5
22908echo $ECHO_N "checking for struct if_laddrreq... $ECHO_C" >&6
22909cat >conftest.$ac_ext <<_ACEOF
22910#line $LINENO "configure"
22911/* confdefs.h.  */
22912_ACEOF
22913cat confdefs.h >>conftest.$ac_ext
22914cat >>conftest.$ac_ext <<_ACEOF
22915/* end confdefs.h.  */
22916
22917#include <sys/types.h>
22918#include <net/if6.h>
22919
22920int
22921main ()
22922{
22923 struct if_laddrreq a;
22924  ;
22925  return 0;
22926}
22927_ACEOF
22928rm -f conftest.$ac_objext conftest$ac_exeext
22929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22930  (eval $ac_link) 2>&5
22931  ac_status=$?
22932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933  (exit $ac_status); } &&
22934         { ac_try='test -s conftest$ac_exeext'
22935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22936  (eval $ac_try) 2>&5
22937  ac_status=$?
22938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939  (exit $ac_status); }; }; then
22940  echo "$as_me:$LINENO: result: yes" >&5
22941echo "${ECHO_T}yes" >&6
22942
22943cat >>confdefs.h <<\_ACEOF
22944#define ISC_PLATFORM_HAVEIF_LADDRREQ
22945_ACEOF
22946
22947else
22948  echo "$as_me: failed program was:" >&5
22949sed 's/^/| /' conftest.$ac_ext >&5
22950
22951echo "$as_me:$LINENO: result: no" >&5
22952echo "${ECHO_T}no" >&6
22953fi
22954rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22955
22956case "$found_ipv6" in
22957 yes)
22958
22959cat >>confdefs.h <<\_ACEOF
22960#define ISC_PLATFORM_HAVEIPV6
22961_ACEOF
22962
22963
22964cat >>confdefs.h <<\_ACEOF
22965#define WANT_IPV6
22966_ACEOF
22967
22968
22969    echo "$as_me:$LINENO: checking for in6_pktinfo" >&5
22970echo $ECHO_N "checking for in6_pktinfo... $ECHO_C" >&6
22971    cat >conftest.$ac_ext <<_ACEOF
22972#line $LINENO "configure"
22973/* confdefs.h.  */
22974_ACEOF
22975cat confdefs.h >>conftest.$ac_ext
22976cat >>conftest.$ac_ext <<_ACEOF
22977/* end confdefs.h.  */
22978
22979#include <sys/types.h>
22980#include <sys/socket.h>
22981#include <netinet/in.h>
22982$isc_netinetin6_hack
22983$isc_netinet6in6_hack
22984
22985int
22986main ()
22987{
22988struct in6_pktinfo xyzzy; return (0);
22989  ;
22990  return 0;
22991}
22992_ACEOF
22993rm -f conftest.$ac_objext
22994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22995  (eval $ac_compile) 2>&5
22996  ac_status=$?
22997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998  (exit $ac_status); } &&
22999         { ac_try='test -s conftest.$ac_objext'
23000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23001  (eval $ac_try) 2>&5
23002  ac_status=$?
23003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004  (exit $ac_status); }; }; then
23005  echo "$as_me:$LINENO: result: yes" >&5
23006echo "${ECHO_T}yes" >&6
23007
23008cat >>confdefs.h <<\_ACEOF
23009#define ISC_PLATFORM_HAVEIN6PKTINFO
23010_ACEOF
23011
23012else
23013  echo "$as_me: failed program was:" >&5
23014sed 's/^/| /' conftest.$ac_ext >&5
23015
23016echo "$as_me:$LINENO: result: no -- disabling runtime ipv6 support" >&5
23017echo "${ECHO_T}no -- disabling runtime ipv6 support" >&6
23018fi
23019rm -f conftest.$ac_objext conftest.$ac_ext
23020
23021    echo "$as_me:$LINENO: checking for in6addr_any" >&5
23022echo $ECHO_N "checking for in6addr_any... $ECHO_C" >&6
23023    cat >conftest.$ac_ext <<_ACEOF
23024#line $LINENO "configure"
23025/* confdefs.h.  */
23026_ACEOF
23027cat confdefs.h >>conftest.$ac_ext
23028cat >>conftest.$ac_ext <<_ACEOF
23029/* end confdefs.h.  */
23030
23031#include <sys/types.h>
23032#include <sys/socket.h>
23033#include <netinet/in.h>
23034$isc_netinetin6_hack
23035$isc_netinet6in6_hack
23036$isc_in_addr6_hack
23037
23038int
23039main ()
23040{
23041struct in6_addr in6; in6 = in6addr_any; return (in6.s6_addr[0]);
23042  ;
23043  return 0;
23044}
23045_ACEOF
23046rm -f conftest.$ac_objext conftest$ac_exeext
23047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23048  (eval $ac_link) 2>&5
23049  ac_status=$?
23050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051  (exit $ac_status); } &&
23052         { ac_try='test -s conftest$ac_exeext'
23053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23054  (eval $ac_try) 2>&5
23055  ac_status=$?
23056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057  (exit $ac_status); }; }; then
23058  echo "$as_me:$LINENO: result: yes" >&5
23059echo "${ECHO_T}yes" >&6
23060else
23061  echo "$as_me: failed program was:" >&5
23062sed 's/^/| /' conftest.$ac_ext >&5
23063
23064echo "$as_me:$LINENO: result: no" >&5
23065echo "${ECHO_T}no" >&6
23066
23067cat >>confdefs.h <<\_ACEOF
23068#define ISC_PLATFORM_NEEDIN6ADDRANY
23069_ACEOF
23070
23071
23072fi
23073rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23074    ;;
23075esac
23076
23077#
23078# Look for a sysctl call to get the list of network interfaces.
23079#
23080echo "$as_me:$LINENO: checking for interface list sysctl" >&5
23081echo $ECHO_N "checking for interface list sysctl... $ECHO_C" >&6
23082cat >conftest.$ac_ext <<_ACEOF
23083#line $LINENO "configure"
23084/* confdefs.h.  */
23085_ACEOF
23086cat confdefs.h >>conftest.$ac_ext
23087cat >>conftest.$ac_ext <<_ACEOF
23088/* end confdefs.h.  */
23089
23090#include <sys/param.h>
23091#include <sys/sysctl.h>
23092#include <sys/socket.h>
23093#ifdef NET_RT_IFLIST
23094found_rt_iflist
23095#endif
23096
23097_ACEOF
23098if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23099  $EGREP "found_rt_iflist" >/dev/null 2>&1; then
23100  echo "$as_me:$LINENO: result: yes" >&5
23101echo "${ECHO_T}yes" >&6
23102
23103cat >>confdefs.h <<\_ACEOF
23104#define HAVE_IFLIST_SYSCTL 1
23105_ACEOF
23106
23107else
23108  echo "$as_me:$LINENO: result: no" >&5
23109echo "${ECHO_T}no" >&6
23110fi
23111rm -f conftest*
23112
23113
23114case "$build" in
23115 $host)
23116    ;;
23117 *) case "$host" in
23118     *-*-vxworks*)
23119        LDFLAGS="$LDFLAGS -r"
23120        ;;
23121    esac
23122    ;;
23123esac
23124
23125
23126	ac_expanded=`(
23127	    test "x$prefix" = xNONE && prefix="$ac_default_prefix"
23128	    test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
23129	    eval echo \""$sysconfdir"\"
23130        )`
23131
23132cat >>confdefs.h <<_ACEOF
23133#define NTP_KEYSDIR "$ac_expanded"
23134_ACEOF
23135
23136
23137
23138
23139if test -d $srcdir/arlib
23140then
23141
23142# Check whether --with-arlib or --without-arlib was given.
23143if test "${with_arlib+set}" = set; then
23144  withval="$with_arlib"
23145  ans=$withval
23146else
23147  ans=no
23148fi;
23149
23150    case "$ans" in
23151     yes)
23152	ARLIB_DIR=arlib
23153
23154
23155subdirs="$subdirs arlib"
23156
23157	;;
23158    esac
23159fi
23160
23161          ac_config_files="$ac_config_files Makefile"
23162
23163          ac_config_files="$ac_config_files ElectricFence/Makefile"
23164
23165          ac_config_files="$ac_config_files adjtimed/Makefile"
23166
23167          ac_config_files="$ac_config_files clockstuff/Makefile"
23168
23169          ac_config_files="$ac_config_files include/Makefile"
23170
23171          ac_config_files="$ac_config_files include/isc/Makefile"
23172
23173          ac_config_files="$ac_config_files kernel/Makefile"
23174
23175          ac_config_files="$ac_config_files kernel/sys/Makefile"
23176
23177          ac_config_files="$ac_config_files libntp/Makefile"
23178
23179          ac_config_files="$ac_config_files libparse/Makefile"
23180
23181          ac_config_files="$ac_config_files ntpd/Makefile"
23182
23183          ac_config_files="$ac_config_files ntpdate/Makefile"
23184
23185          ac_config_files="$ac_config_files ntpdc/Makefile"
23186
23187          ac_config_files="$ac_config_files ntpdc/nl.pl"
23188
23189          ac_config_files="$ac_config_files ntpq/Makefile"
23190
23191          ac_config_files="$ac_config_files parseutil/Makefile"
23192
23193          ac_config_files="$ac_config_files scripts/Makefile"
23194
23195          ac_config_files="$ac_config_files scripts/calc_tickadj"
23196
23197          ac_config_files="$ac_config_files scripts/checktime"
23198
23199          ac_config_files="$ac_config_files scripts/freq_adj"
23200
23201          ac_config_files="$ac_config_files scripts/mkver"
23202
23203          ac_config_files="$ac_config_files scripts/ntp-wait"
23204
23205          ac_config_files="$ac_config_files scripts/ntpsweep"
23206
23207          ac_config_files="$ac_config_files scripts/ntptrace"
23208
23209          ac_config_files="$ac_config_files scripts/ntpver"
23210
23211          ac_config_files="$ac_config_files scripts/plot_summary"
23212
23213          ac_config_files="$ac_config_files scripts/summary"
23214
23215          ac_config_files="$ac_config_files util/Makefile"
23216
23217
23218case "$MAKE_SNTP" in
23219 '') ;;
23220 *)
23221
23222
23223subdirs="$subdirs sntp"
23224
23225    ;;
23226esac
23227
23228cat >confcache <<\_ACEOF
23229# This file is a shell script that caches the results of configure
23230# tests run on this system so they can be shared between configure
23231# scripts and configure runs, see configure's option --config-cache.
23232# It is not useful on other systems.  If it contains results you don't
23233# want to keep, you may remove or edit it.
23234#
23235# config.status only pays attention to the cache file if you give it
23236# the --recheck option to rerun configure.
23237#
23238# `ac_cv_env_foo' variables (set or unset) will be overridden when
23239# loading this file, other *unset* `ac_cv_foo' will be assigned the
23240# following values.
23241
23242_ACEOF
23243
23244# The following way of writing the cache mishandles newlines in values,
23245# but we know of no workaround that is simple, portable, and efficient.
23246# So, don't put newlines in cache variables' values.
23247# Ultrix sh set writes to stderr and can't be redirected directly,
23248# and sets the high bit in the cache file unless we assign to the vars.
23249{
23250  (set) 2>&1 |
23251    case `(ac_space=' '; set | grep ac_space) 2>&1` in
23252    *ac_space=\ *)
23253      # `set' does not quote correctly, so add quotes (double-quote
23254      # substitution turns \\\\ into \\, and sed turns \\ into \).
23255      sed -n \
23256        "s/'/'\\\\''/g;
23257    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23258      ;;
23259    *)
23260      # `set' quotes correctly as required by POSIX, so do not add quotes.
23261      sed -n \
23262        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23263      ;;
23264    esac;
23265} |
23266  sed '
23267     t clear
23268     : clear
23269     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23270     t end
23271     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23272     : end' >>confcache
23273if diff $cache_file confcache >/dev/null 2>&1; then :; else
23274  if test -w $cache_file; then
23275    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23276    cat confcache >$cache_file
23277  else
23278    echo "not updating unwritable cache $cache_file"
23279  fi
23280fi
23281rm -f confcache
23282
23283test "x$prefix" = xNONE && prefix=$ac_default_prefix
23284# Let make expand exec_prefix.
23285test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23286
23287# VPATH may cause trouble with some makes, so we remove $(srcdir),
23288# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23289# trailing colons and then remove the whole line if VPATH becomes empty
23290# (actually we leave an empty line to preserve line numbers).
23291if test "x$srcdir" = x.; then
23292  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
23293s/:*\$(srcdir):*/:/;
23294s/:*\${srcdir}:*/:/;
23295s/:*@srcdir@:*/:/;
23296s/^\([^=]*=[ 	]*\):*/\1/;
23297s/:*$//;
23298s/^[^=]*=[ 	]*$//;
23299}'
23300fi
23301
23302DEFS=-DHAVE_CONFIG_H
23303
23304ac_libobjs=
23305ac_ltlibobjs=
23306for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23307  # 1. Remove the extension, and $U if already installed.
23308  ac_i=`echo "$ac_i" |
23309         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23310  # 2. Add them.
23311  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23312  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23313done
23314LIBOBJS=$ac_libobjs
23315
23316LTLIBOBJS=$ac_ltlibobjs
23317
23318
23319if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23320  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23321Usually this means the macro was only invoked conditionally." >&5
23322echo "$as_me: error: conditional \"AMDEP\" was never defined.
23323Usually this means the macro was only invoked conditionally." >&2;}
23324   { (exit 1); exit 1; }; }
23325fi
23326if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23327  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23328Usually this means the macro was only invoked conditionally." >&5
23329echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23330Usually this means the macro was only invoked conditionally." >&2;}
23331   { (exit 1); exit 1; }; }
23332fi
23333if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23334  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23335Usually this means the macro was only invoked conditionally." >&5
23336echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23337Usually this means the macro was only invoked conditionally." >&2;}
23338   { (exit 1); exit 1; }; }
23339fi
23340
23341: ${CONFIG_STATUS=./config.status}
23342ac_clean_files_save=$ac_clean_files
23343ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23344{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23345echo "$as_me: creating $CONFIG_STATUS" >&6;}
23346cat >$CONFIG_STATUS <<_ACEOF
23347#! $SHELL
23348# Generated by $as_me.
23349# Run this file to recreate the current configuration.
23350# Compiler output produced by configure, useful for debugging
23351# configure, is in config.log if it exists.
23352
23353debug=false
23354ac_cs_recheck=false
23355ac_cs_silent=false
23356SHELL=\${CONFIG_SHELL-$SHELL}
23357_ACEOF
23358
23359cat >>$CONFIG_STATUS <<\_ACEOF
23360## --------------------- ##
23361## M4sh Initialization.  ##
23362## --------------------- ##
23363
23364# Be Bourne compatible
23365if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23366  emulate sh
23367  NULLCMD=:
23368  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23369  # is contrary to our usage.  Disable this feature.
23370  alias -g '${1+"$@"}'='"$@"'
23371elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23372  set -o posix
23373fi
23374
23375# Support unset when possible.
23376if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23377  as_unset=unset
23378else
23379  as_unset=false
23380fi
23381
23382
23383# Work around bugs in pre-3.0 UWIN ksh.
23384$as_unset ENV MAIL MAILPATH
23385PS1='$ '
23386PS2='> '
23387PS4='+ '
23388
23389# NLS nuisances.
23390for as_var in \
23391  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23392  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23393  LC_TELEPHONE LC_TIME
23394do
23395  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23396    eval $as_var=C; export $as_var
23397  else
23398    $as_unset $as_var
23399  fi
23400done
23401
23402# Required to use basename.
23403if expr a : '\(a\)' >/dev/null 2>&1; then
23404  as_expr=expr
23405else
23406  as_expr=false
23407fi
23408
23409if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23410  as_basename=basename
23411else
23412  as_basename=false
23413fi
23414
23415
23416# Name of the executable.
23417as_me=`$as_basename "$0" ||
23418$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23419	 X"$0" : 'X\(//\)$' \| \
23420	 X"$0" : 'X\(/\)$' \| \
23421	 .     : '\(.\)' 2>/dev/null ||
23422echo X/"$0" |
23423    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23424  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
23425  	  /^X\/\(\/\).*/{ s//\1/; q; }
23426  	  s/.*/./; q'`
23427
23428
23429# PATH needs CR, and LINENO needs CR and PATH.
23430# Avoid depending upon Character Ranges.
23431as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23432as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23433as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23434as_cr_digits='0123456789'
23435as_cr_alnum=$as_cr_Letters$as_cr_digits
23436
23437# The user is always right.
23438if test "${PATH_SEPARATOR+set}" != set; then
23439  echo "#! /bin/sh" >conf$$.sh
23440  echo  "exit 0"   >>conf$$.sh
23441  chmod +x conf$$.sh
23442  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23443    PATH_SEPARATOR=';'
23444  else
23445    PATH_SEPARATOR=:
23446  fi
23447  rm -f conf$$.sh
23448fi
23449
23450
23451  as_lineno_1=$LINENO
23452  as_lineno_2=$LINENO
23453  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23454  test "x$as_lineno_1" != "x$as_lineno_2" &&
23455  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23456  # Find who we are.  Look in the path if we contain no path at all
23457  # relative or not.
23458  case $0 in
23459    *[\\/]* ) as_myself=$0 ;;
23460    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23461for as_dir in $PATH
23462do
23463  IFS=$as_save_IFS
23464  test -z "$as_dir" && as_dir=.
23465  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23466done
23467
23468       ;;
23469  esac
23470  # We did not find ourselves, most probably we were run as `sh COMMAND'
23471  # in which case we are not to be found in the path.
23472  if test "x$as_myself" = x; then
23473    as_myself=$0
23474  fi
23475  if test ! -f "$as_myself"; then
23476    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23477echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23478   { (exit 1); exit 1; }; }
23479  fi
23480  case $CONFIG_SHELL in
23481  '')
23482    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23483for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23484do
23485  IFS=$as_save_IFS
23486  test -z "$as_dir" && as_dir=.
23487  for as_base in sh bash ksh sh5; do
23488	 case $as_dir in
23489	 /*)
23490	   if ("$as_dir/$as_base" -c '
23491  as_lineno_1=$LINENO
23492  as_lineno_2=$LINENO
23493  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23494  test "x$as_lineno_1" != "x$as_lineno_2" &&
23495  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23496	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23497	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23498	     CONFIG_SHELL=$as_dir/$as_base
23499	     export CONFIG_SHELL
23500	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23501	   fi;;
23502	 esac
23503       done
23504done
23505;;
23506  esac
23507
23508  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23509  # uniformly replaced by the line number.  The first 'sed' inserts a
23510  # line-number line before each line; the second 'sed' does the real
23511  # work.  The second script uses 'N' to pair each line-number line
23512  # with the numbered line, and appends trailing '-' during
23513  # substitution so that $LINENO is not a special case at line end.
23514  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23515  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23516  sed '=' <$as_myself |
23517    sed '
23518      N
23519      s,$,-,
23520      : loop
23521      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23522      t loop
23523      s,-$,,
23524      s,^['$as_cr_digits']*\n,,
23525    ' >$as_me.lineno &&
23526  chmod +x $as_me.lineno ||
23527    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23528echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23529   { (exit 1); exit 1; }; }
23530
23531  # Don't try to exec as it changes $[0], causing all sort of problems
23532  # (the dirname of $[0] is not the place where we might find the
23533  # original and so on.  Autoconf is especially sensible to this).
23534  . ./$as_me.lineno
23535  # Exit status is that of the last command.
23536  exit
23537}
23538
23539
23540case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23541  *c*,-n*) ECHO_N= ECHO_C='
23542' ECHO_T='	' ;;
23543  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23544  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23545esac
23546
23547if expr a : '\(a\)' >/dev/null 2>&1; then
23548  as_expr=expr
23549else
23550  as_expr=false
23551fi
23552
23553rm -f conf$$ conf$$.exe conf$$.file
23554echo >conf$$.file
23555if ln -s conf$$.file conf$$ 2>/dev/null; then
23556  # We could just check for DJGPP; but this test a) works b) is more generic
23557  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23558  if test -f conf$$.exe; then
23559    # Don't use ln at all; we don't have any links
23560    as_ln_s='cp -p'
23561  else
23562    as_ln_s='ln -s'
23563  fi
23564elif ln conf$$.file conf$$ 2>/dev/null; then
23565  as_ln_s=ln
23566else
23567  as_ln_s='cp -p'
23568fi
23569rm -f conf$$ conf$$.exe conf$$.file
23570
23571if mkdir -p . 2>/dev/null; then
23572  as_mkdir_p=:
23573else
23574  as_mkdir_p=false
23575fi
23576
23577as_executable_p="test -f"
23578
23579# Sed expression to map a string onto a valid CPP name.
23580as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23581
23582# Sed expression to map a string onto a valid variable name.
23583as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23584
23585
23586# IFS
23587# We need space, tab and new line, in precisely that order.
23588as_nl='
23589'
23590IFS=" 	$as_nl"
23591
23592# CDPATH.
23593$as_unset CDPATH
23594
23595exec 6>&1
23596
23597# Open the log real soon, to keep \$[0] and so on meaningful, and to
23598# report actual input values of CONFIG_FILES etc. instead of their
23599# values after options handling.  Logging --version etc. is OK.
23600exec 5>>config.log
23601{
23602  echo
23603  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23604## Running $as_me. ##
23605_ASBOX
23606} >&5
23607cat >&5 <<_CSEOF
23608
23609This file was extended by $as_me, which was
23610generated by GNU Autoconf 2.57.  Invocation command line was
23611
23612  CONFIG_FILES    = $CONFIG_FILES
23613  CONFIG_HEADERS  = $CONFIG_HEADERS
23614  CONFIG_LINKS    = $CONFIG_LINKS
23615  CONFIG_COMMANDS = $CONFIG_COMMANDS
23616  $ $0 $@
23617
23618_CSEOF
23619echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23620echo >&5
23621_ACEOF
23622
23623# Files that config.status was made for.
23624if test -n "$ac_config_files"; then
23625  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23626fi
23627
23628if test -n "$ac_config_headers"; then
23629  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23630fi
23631
23632if test -n "$ac_config_links"; then
23633  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23634fi
23635
23636if test -n "$ac_config_commands"; then
23637  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23638fi
23639
23640cat >>$CONFIG_STATUS <<\_ACEOF
23641
23642ac_cs_usage="\
23643\`$as_me' instantiates files from templates according to the
23644current configuration.
23645
23646Usage: $0 [OPTIONS] [FILE]...
23647
23648  -h, --help       print this help, then exit
23649  -V, --version    print version number, then exit
23650  -q, --quiet      do not print progress messages
23651  -d, --debug      don't remove temporary files
23652      --recheck    update $as_me by reconfiguring in the same conditions
23653  --file=FILE[:TEMPLATE]
23654                   instantiate the configuration file FILE
23655  --header=FILE[:TEMPLATE]
23656                   instantiate the configuration header FILE
23657
23658Configuration files:
23659$config_files
23660
23661Configuration headers:
23662$config_headers
23663
23664Configuration commands:
23665$config_commands
23666
23667Report bugs to <bug-autoconf@gnu.org>."
23668_ACEOF
23669
23670cat >>$CONFIG_STATUS <<_ACEOF
23671ac_cs_version="\\
23672config.status
23673configured by $0, generated by GNU Autoconf 2.57,
23674  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23675
23676Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23677Free Software Foundation, Inc.
23678This config.status script is free software; the Free Software Foundation
23679gives unlimited permission to copy, distribute and modify it."
23680srcdir=$srcdir
23681INSTALL="$INSTALL"
23682_ACEOF
23683
23684cat >>$CONFIG_STATUS <<\_ACEOF
23685# If no file are specified by the user, then we need to provide default
23686# value.  By we need to know if files were specified by the user.
23687ac_need_defaults=:
23688while test $# != 0
23689do
23690  case $1 in
23691  --*=*)
23692    ac_option=`expr "x$1" : 'x\([^=]*\)='`
23693    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23694    ac_shift=:
23695    ;;
23696  -*)
23697    ac_option=$1
23698    ac_optarg=$2
23699    ac_shift=shift
23700    ;;
23701  *) # This is not an option, so the user has probably given explicit
23702     # arguments.
23703     ac_option=$1
23704     ac_need_defaults=false;;
23705  esac
23706
23707  case $ac_option in
23708  # Handling of the options.
23709_ACEOF
23710cat >>$CONFIG_STATUS <<\_ACEOF
23711  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23712    ac_cs_recheck=: ;;
23713  --version | --vers* | -V )
23714    echo "$ac_cs_version"; exit 0 ;;
23715  --he | --h)
23716    # Conflict between --help and --header
23717    { { echo "$as_me:$LINENO: error: ambiguous option: $1
23718Try \`$0 --help' for more information." >&5
23719echo "$as_me: error: ambiguous option: $1
23720Try \`$0 --help' for more information." >&2;}
23721   { (exit 1); exit 1; }; };;
23722  --help | --hel | -h )
23723    echo "$ac_cs_usage"; exit 0 ;;
23724  --debug | --d* | -d )
23725    debug=: ;;
23726  --file | --fil | --fi | --f )
23727    $ac_shift
23728    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23729    ac_need_defaults=false;;
23730  --header | --heade | --head | --hea )
23731    $ac_shift
23732    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23733    ac_need_defaults=false;;
23734  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23735  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23736    ac_cs_silent=: ;;
23737
23738  # This is an error.
23739  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23740Try \`$0 --help' for more information." >&5
23741echo "$as_me: error: unrecognized option: $1
23742Try \`$0 --help' for more information." >&2;}
23743   { (exit 1); exit 1; }; } ;;
23744
23745  *) ac_config_targets="$ac_config_targets $1" ;;
23746
23747  esac
23748  shift
23749done
23750
23751ac_configure_extra_args=
23752
23753if $ac_cs_silent; then
23754  exec 6>/dev/null
23755  ac_configure_extra_args="$ac_configure_extra_args --silent"
23756fi
23757
23758_ACEOF
23759cat >>$CONFIG_STATUS <<_ACEOF
23760if \$ac_cs_recheck; then
23761  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23762  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23763fi
23764
23765_ACEOF
23766
23767cat >>$CONFIG_STATUS <<_ACEOF
23768#
23769# INIT-COMMANDS section.
23770#
23771
23772AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23773
23774_ACEOF
23775
23776
23777
23778cat >>$CONFIG_STATUS <<\_ACEOF
23779for ac_config_target in $ac_config_targets
23780do
23781  case "$ac_config_target" in
23782  # Handling of arguments.
23783  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23784  "ElectricFence/Makefile" ) CONFIG_FILES="$CONFIG_FILES ElectricFence/Makefile" ;;
23785  "adjtimed/Makefile" ) CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
23786  "clockstuff/Makefile" ) CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
23787  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
23788  "include/isc/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
23789  "kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
23790  "kernel/sys/Makefile" ) CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
23791  "libntp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
23792  "libparse/Makefile" ) CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
23793  "ntpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
23794  "ntpdate/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
23795  "ntpdc/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
23796  "ntpdc/nl.pl" ) CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
23797  "ntpq/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
23798  "parseutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
23799  "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
23800  "scripts/calc_tickadj" ) CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj" ;;
23801  "scripts/checktime" ) CONFIG_FILES="$CONFIG_FILES scripts/checktime" ;;
23802  "scripts/freq_adj" ) CONFIG_FILES="$CONFIG_FILES scripts/freq_adj" ;;
23803  "scripts/mkver" ) CONFIG_FILES="$CONFIG_FILES scripts/mkver" ;;
23804  "scripts/ntp-wait" ) CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait" ;;
23805  "scripts/ntpsweep" ) CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep" ;;
23806  "scripts/ntptrace" ) CONFIG_FILES="$CONFIG_FILES scripts/ntptrace" ;;
23807  "scripts/ntpver" ) CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
23808  "scripts/plot_summary" ) CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
23809  "scripts/summary" ) CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
23810  "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
23811  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23812  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23813  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23814echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23815   { (exit 1); exit 1; }; };;
23816  esac
23817done
23818
23819# If the user did not use the arguments to specify the items to instantiate,
23820# then the envvar interface is used.  Set only those that are not.
23821# We use the long form for the default assignment because of an extremely
23822# bizarre bug on SunOS 4.1.3.
23823if $ac_need_defaults; then
23824  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23825  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23826  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23827fi
23828
23829# Have a temporary directory for convenience.  Make it in the build tree
23830# simply because there is no reason to put it here, and in addition,
23831# creating and moving files from /tmp can sometimes cause problems.
23832# Create a temporary directory, and hook for its removal unless debugging.
23833$debug ||
23834{
23835  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23836  trap '{ (exit 1); exit 1; }' 1 2 13 15
23837}
23838
23839# Create a (secure) tmp directory for tmp files.
23840
23841{
23842  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23843  test -n "$tmp" && test -d "$tmp"
23844}  ||
23845{
23846  tmp=./confstat$$-$RANDOM
23847  (umask 077 && mkdir $tmp)
23848} ||
23849{
23850   echo "$me: cannot create a temporary directory in ." >&2
23851   { (exit 1); exit 1; }
23852}
23853
23854_ACEOF
23855
23856cat >>$CONFIG_STATUS <<_ACEOF
23857
23858#
23859# CONFIG_FILES section.
23860#
23861
23862# No need to generate the scripts if there are no CONFIG_FILES.
23863# This happens for instance when ./config.status config.h
23864if test -n "\$CONFIG_FILES"; then
23865  # Protect against being on the right side of a sed subst in config.status.
23866  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23867   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23868s,@SHELL@,$SHELL,;t t
23869s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23870s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23871s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23872s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23873s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23874s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23875s,@exec_prefix@,$exec_prefix,;t t
23876s,@prefix@,$prefix,;t t
23877s,@program_transform_name@,$program_transform_name,;t t
23878s,@bindir@,$bindir,;t t
23879s,@sbindir@,$sbindir,;t t
23880s,@libexecdir@,$libexecdir,;t t
23881s,@datadir@,$datadir,;t t
23882s,@sysconfdir@,$sysconfdir,;t t
23883s,@sharedstatedir@,$sharedstatedir,;t t
23884s,@localstatedir@,$localstatedir,;t t
23885s,@libdir@,$libdir,;t t
23886s,@includedir@,$includedir,;t t
23887s,@oldincludedir@,$oldincludedir,;t t
23888s,@infodir@,$infodir,;t t
23889s,@mandir@,$mandir,;t t
23890s,@build_alias@,$build_alias,;t t
23891s,@host_alias@,$host_alias,;t t
23892s,@target_alias@,$target_alias,;t t
23893s,@DEFS@,$DEFS,;t t
23894s,@ECHO_C@,$ECHO_C,;t t
23895s,@ECHO_N@,$ECHO_N,;t t
23896s,@ECHO_T@,$ECHO_T,;t t
23897s,@LIBS@,$LIBS,;t t
23898s,@build@,$build,;t t
23899s,@build_cpu@,$build_cpu,;t t
23900s,@build_vendor@,$build_vendor,;t t
23901s,@build_os@,$build_os,;t t
23902s,@host@,$host,;t t
23903s,@host_cpu@,$host_cpu,;t t
23904s,@host_vendor@,$host_vendor,;t t
23905s,@host_os@,$host_os,;t t
23906s,@target@,$target,;t t
23907s,@target_cpu@,$target_cpu,;t t
23908s,@target_vendor@,$target_vendor,;t t
23909s,@target_os@,$target_os,;t t
23910s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23911s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23912s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23913s,@CYGPATH_W@,$CYGPATH_W,;t t
23914s,@PACKAGE@,$PACKAGE,;t t
23915s,@VERSION@,$VERSION,;t t
23916s,@ACLOCAL@,$ACLOCAL,;t t
23917s,@AUTOCONF@,$AUTOCONF,;t t
23918s,@AUTOMAKE@,$AUTOMAKE,;t t
23919s,@AUTOHEADER@,$AUTOHEADER,;t t
23920s,@MAKEINFO@,$MAKEINFO,;t t
23921s,@AMTAR@,$AMTAR,;t t
23922s,@install_sh@,$install_sh,;t t
23923s,@STRIP@,$STRIP,;t t
23924s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23925s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23926s,@AWK@,$AWK,;t t
23927s,@SET_MAKE@,$SET_MAKE,;t t
23928s,@am__leading_dot@,$am__leading_dot,;t t
23929s,@CC@,$CC,;t t
23930s,@CFLAGS@,$CFLAGS,;t t
23931s,@LDFLAGS@,$LDFLAGS,;t t
23932s,@CPPFLAGS@,$CPPFLAGS,;t t
23933s,@ac_ct_CC@,$ac_ct_CC,;t t
23934s,@EXEEXT@,$EXEEXT,;t t
23935s,@OBJEXT@,$OBJEXT,;t t
23936s,@DEPDIR@,$DEPDIR,;t t
23937s,@am__include@,$am__include,;t t
23938s,@am__quote@,$am__quote,;t t
23939s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23940s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23941s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23942s,@CCDEPMODE@,$CCDEPMODE,;t t
23943s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23944s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23945s,@CPP@,$CPP,;t t
23946s,@EGREP@,$EGREP,;t t
23947s,@LN_S@,$LN_S,;t t
23948s,@RANLIB@,$RANLIB,;t t
23949s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23950s,@PATH_SH@,$PATH_SH,;t t
23951s,@PATH_PERL@,$PATH_PERL,;t t
23952s,@READLINE_LIBS@,$READLINE_LIBS,;t t
23953s,@U@,$U,;t t
23954s,@ANSI2KNR@,$ANSI2KNR,;t t
23955s,@LIBOBJS@,$LIBOBJS,;t t
23956s,@LIBPARSE@,$LIBPARSE,;t t
23957s,@MAKE_LIBPARSE@,$MAKE_LIBPARSE,;t t
23958s,@MAKE_LIBPARSE_KERNEL@,$MAKE_LIBPARSE_KERNEL,;t t
23959s,@MAKE_CHECK_Y2K@,$MAKE_CHECK_Y2K,;t t
23960s,@OPENSSL@,$OPENSSL,;t t
23961s,@OPENSSL_INC@,$OPENSSL_INC,;t t
23962s,@OPENSSL_LIB@,$OPENSSL_LIB,;t t
23963s,@MAKE_NTP_KEYGEN@,$MAKE_NTP_KEYGEN,;t t
23964s,@LCRYPTO@,$LCRYPTO,;t t
23965s,@EF_PROGS@,$EF_PROGS,;t t
23966s,@EF_LIBS@,$EF_LIBS,;t t
23967s,@MAKE_SNTP@,$MAKE_SNTP,;t t
23968s,@TESTDCF@,$TESTDCF,;t t
23969s,@DCFD@,$DCFD,;t t
23970s,@MAKE_PARSEKMODULE@,$MAKE_PARSEKMODULE,;t t
23971s,@PROPDELAY@,$PROPDELAY,;t t
23972s,@CHUTEST@,$CHUTEST,;t t
23973s,@CLKTEST@,$CLKTEST,;t t
23974s,@MAKE_ADJTIMED@,$MAKE_ADJTIMED,;t t
23975s,@MAKE_NTPTIME@,$MAKE_NTPTIME,;t t
23976s,@MAKE_TICKADJ@,$MAKE_TICKADJ,;t t
23977s,@MAKE_TIMETRIM@,$MAKE_TIMETRIM,;t t
23978s,@MAKE_LIBNTPSIM@,$MAKE_LIBNTPSIM,;t t
23979s,@MAKE_NTPDSIM@,$MAKE_NTPDSIM,;t t
23980s,@ARLIB_DIR@,$ARLIB_DIR,;t t
23981s,@subdirs@,$subdirs,;t t
23982s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23983CEOF
23984
23985_ACEOF
23986
23987  cat >>$CONFIG_STATUS <<\_ACEOF
23988  # Split the substitutions into bite-sized pieces for seds with
23989  # small command number limits, like on Digital OSF/1 and HP-UX.
23990  ac_max_sed_lines=48
23991  ac_sed_frag=1 # Number of current file.
23992  ac_beg=1 # First line for current file.
23993  ac_end=$ac_max_sed_lines # Line after last line for current file.
23994  ac_more_lines=:
23995  ac_sed_cmds=
23996  while $ac_more_lines; do
23997    if test $ac_beg -gt 1; then
23998      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23999    else
24000      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24001    fi
24002    if test ! -s $tmp/subs.frag; then
24003      ac_more_lines=false
24004    else
24005      # The purpose of the label and of the branching condition is to
24006      # speed up the sed processing (if there are no `@' at all, there
24007      # is no need to browse any of the substitutions).
24008      # These are the two extra sed commands mentioned above.
24009      (echo ':t
24010  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24011      if test -z "$ac_sed_cmds"; then
24012  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24013      else
24014  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24015      fi
24016      ac_sed_frag=`expr $ac_sed_frag + 1`
24017      ac_beg=$ac_end
24018      ac_end=`expr $ac_end + $ac_max_sed_lines`
24019    fi
24020  done
24021  if test -z "$ac_sed_cmds"; then
24022    ac_sed_cmds=cat
24023  fi
24024fi # test -n "$CONFIG_FILES"
24025
24026_ACEOF
24027cat >>$CONFIG_STATUS <<\_ACEOF
24028for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24029  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24030  case $ac_file in
24031  - | *:- | *:-:* ) # input from stdin
24032        cat >$tmp/stdin
24033        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24034        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24035  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24036        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24037  * )   ac_file_in=$ac_file.in ;;
24038  esac
24039
24040  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24041  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24042$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24043         X"$ac_file" : 'X\(//\)[^/]' \| \
24044         X"$ac_file" : 'X\(//\)$' \| \
24045         X"$ac_file" : 'X\(/\)' \| \
24046         .     : '\(.\)' 2>/dev/null ||
24047echo X"$ac_file" |
24048    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24049  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24050  	  /^X\(\/\/\)$/{ s//\1/; q; }
24051  	  /^X\(\/\).*/{ s//\1/; q; }
24052  	  s/.*/./; q'`
24053  { if $as_mkdir_p; then
24054    mkdir -p "$ac_dir"
24055  else
24056    as_dir="$ac_dir"
24057    as_dirs=
24058    while test ! -d "$as_dir"; do
24059      as_dirs="$as_dir $as_dirs"
24060      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24061$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24062         X"$as_dir" : 'X\(//\)[^/]' \| \
24063         X"$as_dir" : 'X\(//\)$' \| \
24064         X"$as_dir" : 'X\(/\)' \| \
24065         .     : '\(.\)' 2>/dev/null ||
24066echo X"$as_dir" |
24067    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24068  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24069  	  /^X\(\/\/\)$/{ s//\1/; q; }
24070  	  /^X\(\/\).*/{ s//\1/; q; }
24071  	  s/.*/./; q'`
24072    done
24073    test ! -n "$as_dirs" || mkdir $as_dirs
24074  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24075echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24076   { (exit 1); exit 1; }; }; }
24077
24078  ac_builddir=.
24079
24080if test "$ac_dir" != .; then
24081  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24082  # A "../" for each directory in $ac_dir_suffix.
24083  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24084else
24085  ac_dir_suffix= ac_top_builddir=
24086fi
24087
24088case $srcdir in
24089  .)  # No --srcdir option.  We are building in place.
24090    ac_srcdir=.
24091    if test -z "$ac_top_builddir"; then
24092       ac_top_srcdir=.
24093    else
24094       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24095    fi ;;
24096  [\\/]* | ?:[\\/]* )  # Absolute path.
24097    ac_srcdir=$srcdir$ac_dir_suffix;
24098    ac_top_srcdir=$srcdir ;;
24099  *) # Relative path.
24100    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24101    ac_top_srcdir=$ac_top_builddir$srcdir ;;
24102esac
24103# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24104# absolute.
24105ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24106ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24107ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24108ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24109
24110
24111  case $INSTALL in
24112  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24113  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24114  esac
24115
24116  if test x"$ac_file" != x-; then
24117    { echo "$as_me:$LINENO: creating $ac_file" >&5
24118echo "$as_me: creating $ac_file" >&6;}
24119    rm -f "$ac_file"
24120  fi
24121  # Let's still pretend it is `configure' which instantiates (i.e., don't
24122  # use $as_me), people would be surprised to read:
24123  #    /* config.h.  Generated by config.status.  */
24124  if test x"$ac_file" = x-; then
24125    configure_input=
24126  else
24127    configure_input="$ac_file.  "
24128  fi
24129  configure_input=$configure_input"Generated from `echo $ac_file_in |
24130                                     sed 's,.*/,,'` by configure."
24131
24132  # First look for the input files in the build tree, otherwise in the
24133  # src tree.
24134  ac_file_inputs=`IFS=:
24135    for f in $ac_file_in; do
24136      case $f in
24137      -) echo $tmp/stdin ;;
24138      [\\/$]*)
24139         # Absolute (can't be DOS-style, as IFS=:)
24140         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24141echo "$as_me: error: cannot find input file: $f" >&2;}
24142   { (exit 1); exit 1; }; }
24143         echo $f;;
24144      *) # Relative
24145         if test -f "$f"; then
24146           # Build tree
24147           echo $f
24148         elif test -f "$srcdir/$f"; then
24149           # Source tree
24150           echo $srcdir/$f
24151         else
24152           # /dev/null tree
24153           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24154echo "$as_me: error: cannot find input file: $f" >&2;}
24155   { (exit 1); exit 1; }; }
24156         fi;;
24157      esac
24158    done` || { (exit 1); exit 1; }
24159_ACEOF
24160cat >>$CONFIG_STATUS <<_ACEOF
24161  sed "$ac_vpsub
24162$extrasub
24163_ACEOF
24164cat >>$CONFIG_STATUS <<\_ACEOF
24165:t
24166/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24167s,@configure_input@,$configure_input,;t t
24168s,@srcdir@,$ac_srcdir,;t t
24169s,@abs_srcdir@,$ac_abs_srcdir,;t t
24170s,@top_srcdir@,$ac_top_srcdir,;t t
24171s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24172s,@builddir@,$ac_builddir,;t t
24173s,@abs_builddir@,$ac_abs_builddir,;t t
24174s,@top_builddir@,$ac_top_builddir,;t t
24175s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24176s,@INSTALL@,$ac_INSTALL,;t t
24177" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24178  rm -f $tmp/stdin
24179  if test x"$ac_file" != x-; then
24180    mv $tmp/out $ac_file
24181  else
24182    cat $tmp/out
24183    rm -f $tmp/out
24184  fi
24185
24186  # Run the commands associated with the file.
24187  case $ac_file in
24188    ntpdc/nl.pl ) chmod +x ntpdc/nl.pl ;;
24189    scripts/calc_tickadj ) chmod +x scripts/calc_tickadj ;;
24190    scripts/checktime ) chmod +x scripts/checktime ;;
24191    scripts/freq_adj ) chmod +x scripts/freq_adj ;;
24192    scripts/mkver ) chmod +x scripts/mkver ;;
24193    scripts/ntp-wait ) chmod +x scripts/ntp-wait ;;
24194    scripts/ntpsweep ) chmod +x scripts/ntpsweep ;;
24195    scripts/ntptrace ) chmod +x scripts/ntptrace ;;
24196    scripts/ntpver ) chmod +x scripts/ntpver ;;
24197    scripts/plot_summary ) chmod +x scripts/plot_summary ;;
24198    scripts/summary ) chmod +x scripts/summary ;;
24199  esac
24200done
24201_ACEOF
24202cat >>$CONFIG_STATUS <<\_ACEOF
24203
24204#
24205# CONFIG_HEADER section.
24206#
24207
24208# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24209# NAME is the cpp macro being defined and VALUE is the value it is being given.
24210#
24211# ac_d sets the value in "#define NAME VALUE" lines.
24212ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
24213ac_dB='[ 	].*$,\1#\2'
24214ac_dC=' '
24215ac_dD=',;t'
24216# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24217ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
24218ac_uB='$,\1#\2define\3'
24219ac_uC=' '
24220ac_uD=',;t'
24221
24222for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24223  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24224  case $ac_file in
24225  - | *:- | *:-:* ) # input from stdin
24226        cat >$tmp/stdin
24227        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24228        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24229  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24230        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24231  * )   ac_file_in=$ac_file.in ;;
24232  esac
24233
24234  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24235echo "$as_me: creating $ac_file" >&6;}
24236
24237  # First look for the input files in the build tree, otherwise in the
24238  # src tree.
24239  ac_file_inputs=`IFS=:
24240    for f in $ac_file_in; do
24241      case $f in
24242      -) echo $tmp/stdin ;;
24243      [\\/$]*)
24244         # Absolute (can't be DOS-style, as IFS=:)
24245         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24246echo "$as_me: error: cannot find input file: $f" >&2;}
24247   { (exit 1); exit 1; }; }
24248         echo $f;;
24249      *) # Relative
24250         if test -f "$f"; then
24251           # Build tree
24252           echo $f
24253         elif test -f "$srcdir/$f"; then
24254           # Source tree
24255           echo $srcdir/$f
24256         else
24257           # /dev/null tree
24258           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24259echo "$as_me: error: cannot find input file: $f" >&2;}
24260   { (exit 1); exit 1; }; }
24261         fi;;
24262      esac
24263    done` || { (exit 1); exit 1; }
24264  # Remove the trailing spaces.
24265  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
24266
24267_ACEOF
24268
24269# Transform confdefs.h into two sed scripts, `conftest.defines' and
24270# `conftest.undefs', that substitutes the proper values into
24271# config.h.in to produce config.h.  The first handles `#define'
24272# templates, and the second `#undef' templates.
24273# And first: Protect against being on the right side of a sed subst in
24274# config.status.  Protect against being in an unquoted here document
24275# in config.status.
24276rm -f conftest.defines conftest.undefs
24277# Using a here document instead of a string reduces the quoting nightmare.
24278# Putting comments in sed scripts is not portable.
24279#
24280# `end' is used to avoid that the second main sed command (meant for
24281# 0-ary CPP macros) applies to n-ary macro definitions.
24282# See the Autoconf documentation for `clear'.
24283cat >confdef2sed.sed <<\_ACEOF
24284s/[\\&,]/\\&/g
24285s,[\\$`],\\&,g
24286t clear
24287: clear
24288s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24289t end
24290s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24291: end
24292_ACEOF
24293# If some macros were called several times there might be several times
24294# the same #defines, which is useless.  Nevertheless, we may not want to
24295# sort them, since we want the *last* AC-DEFINE to be honored.
24296uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24297sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24298rm -f confdef2sed.sed
24299
24300# This sed command replaces #undef with comments.  This is necessary, for
24301# example, in the case of _POSIX_SOURCE, which is predefined and required
24302# on some systems where configure will not decide to define it.
24303cat >>conftest.undefs <<\_ACEOF
24304s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24305_ACEOF
24306
24307# Break up conftest.defines because some shells have a limit on the size
24308# of here documents, and old seds have small limits too (100 cmds).
24309echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24310echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24311echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24312echo '  :' >>$CONFIG_STATUS
24313rm -f conftest.tail
24314while grep . conftest.defines >/dev/null
24315do
24316  # Write a limited-size here document to $tmp/defines.sed.
24317  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24318  # Speed up: don't consider the non `#define' lines.
24319  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
24320  # Work around the forget-to-reset-the-flag bug.
24321  echo 't clr' >>$CONFIG_STATUS
24322  echo ': clr' >>$CONFIG_STATUS
24323  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24324  echo 'CEOF
24325  sed -f $tmp/defines.sed $tmp/in >$tmp/out
24326  rm -f $tmp/in
24327  mv $tmp/out $tmp/in
24328' >>$CONFIG_STATUS
24329  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24330  rm -f conftest.defines
24331  mv conftest.tail conftest.defines
24332done
24333rm -f conftest.defines
24334echo '  fi # grep' >>$CONFIG_STATUS
24335echo >>$CONFIG_STATUS
24336
24337# Break up conftest.undefs because some shells have a limit on the size
24338# of here documents, and old seds have small limits too (100 cmds).
24339echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24340rm -f conftest.tail
24341while grep . conftest.undefs >/dev/null
24342do
24343  # Write a limited-size here document to $tmp/undefs.sed.
24344  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24345  # Speed up: don't consider the non `#undef'
24346  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
24347  # Work around the forget-to-reset-the-flag bug.
24348  echo 't clr' >>$CONFIG_STATUS
24349  echo ': clr' >>$CONFIG_STATUS
24350  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24351  echo 'CEOF
24352  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24353  rm -f $tmp/in
24354  mv $tmp/out $tmp/in
24355' >>$CONFIG_STATUS
24356  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24357  rm -f conftest.undefs
24358  mv conftest.tail conftest.undefs
24359done
24360rm -f conftest.undefs
24361
24362cat >>$CONFIG_STATUS <<\_ACEOF
24363  # Let's still pretend it is `configure' which instantiates (i.e., don't
24364  # use $as_me), people would be surprised to read:
24365  #    /* config.h.  Generated by config.status.  */
24366  if test x"$ac_file" = x-; then
24367    echo "/* Generated by configure.  */" >$tmp/config.h
24368  else
24369    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24370  fi
24371  cat $tmp/in >>$tmp/config.h
24372  rm -f $tmp/in
24373  if test x"$ac_file" != x-; then
24374    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24375      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24376echo "$as_me: $ac_file is unchanged" >&6;}
24377    else
24378      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24379$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24380         X"$ac_file" : 'X\(//\)[^/]' \| \
24381         X"$ac_file" : 'X\(//\)$' \| \
24382         X"$ac_file" : 'X\(/\)' \| \
24383         .     : '\(.\)' 2>/dev/null ||
24384echo X"$ac_file" |
24385    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24386  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24387  	  /^X\(\/\/\)$/{ s//\1/; q; }
24388  	  /^X\(\/\).*/{ s//\1/; q; }
24389  	  s/.*/./; q'`
24390      { if $as_mkdir_p; then
24391    mkdir -p "$ac_dir"
24392  else
24393    as_dir="$ac_dir"
24394    as_dirs=
24395    while test ! -d "$as_dir"; do
24396      as_dirs="$as_dir $as_dirs"
24397      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24398$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24399         X"$as_dir" : 'X\(//\)[^/]' \| \
24400         X"$as_dir" : 'X\(//\)$' \| \
24401         X"$as_dir" : 'X\(/\)' \| \
24402         .     : '\(.\)' 2>/dev/null ||
24403echo X"$as_dir" |
24404    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24405  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24406  	  /^X\(\/\/\)$/{ s//\1/; q; }
24407  	  /^X\(\/\).*/{ s//\1/; q; }
24408  	  s/.*/./; q'`
24409    done
24410    test ! -n "$as_dirs" || mkdir $as_dirs
24411  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24412echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24413   { (exit 1); exit 1; }; }; }
24414
24415      rm -f $ac_file
24416      mv $tmp/config.h $ac_file
24417    fi
24418  else
24419    cat $tmp/config.h
24420    rm -f $tmp/config.h
24421  fi
24422# Compute $ac_file's index in $config_headers.
24423_am_stamp_count=1
24424for _am_header in $config_headers :; do
24425  case $_am_header in
24426    $ac_file | $ac_file:* )
24427      break ;;
24428    * )
24429      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24430  esac
24431done
24432echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24433$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24434         X$ac_file : 'X\(//\)[^/]' \| \
24435         X$ac_file : 'X\(//\)$' \| \
24436         X$ac_file : 'X\(/\)' \| \
24437         .     : '\(.\)' 2>/dev/null ||
24438echo X$ac_file |
24439    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24440  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24441  	  /^X\(\/\/\)$/{ s//\1/; q; }
24442  	  /^X\(\/\).*/{ s//\1/; q; }
24443  	  s/.*/./; q'`/stamp-h$_am_stamp_count
24444done
24445_ACEOF
24446cat >>$CONFIG_STATUS <<\_ACEOF
24447
24448#
24449# CONFIG_COMMANDS section.
24450#
24451for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24452  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24453  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24454  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24455$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24456         X"$ac_dest" : 'X\(//\)[^/]' \| \
24457         X"$ac_dest" : 'X\(//\)$' \| \
24458         X"$ac_dest" : 'X\(/\)' \| \
24459         .     : '\(.\)' 2>/dev/null ||
24460echo X"$ac_dest" |
24461    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24462  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24463  	  /^X\(\/\/\)$/{ s//\1/; q; }
24464  	  /^X\(\/\).*/{ s//\1/; q; }
24465  	  s/.*/./; q'`
24466  ac_builddir=.
24467
24468if test "$ac_dir" != .; then
24469  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24470  # A "../" for each directory in $ac_dir_suffix.
24471  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24472else
24473  ac_dir_suffix= ac_top_builddir=
24474fi
24475
24476case $srcdir in
24477  .)  # No --srcdir option.  We are building in place.
24478    ac_srcdir=.
24479    if test -z "$ac_top_builddir"; then
24480       ac_top_srcdir=.
24481    else
24482       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24483    fi ;;
24484  [\\/]* | ?:[\\/]* )  # Absolute path.
24485    ac_srcdir=$srcdir$ac_dir_suffix;
24486    ac_top_srcdir=$srcdir ;;
24487  *) # Relative path.
24488    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24489    ac_top_srcdir=$ac_top_builddir$srcdir ;;
24490esac
24491# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24492# absolute.
24493ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24494ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24495ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24496ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24497
24498
24499  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24500echo "$as_me: executing $ac_dest commands" >&6;}
24501  case $ac_dest in
24502    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24503  # Strip MF so we end up with the name of the file.
24504  mf=`echo "$mf" | sed -e 's/:.*$//'`
24505  # Check whether this is an Automake generated Makefile or not.
24506  # We used to match only the files named `Makefile.in', but
24507  # some people rename them; so instead we look at the file content.
24508  # Grep'ing the first line is not enough: some people post-process
24509  # each Makefile.in and add a new line on top of each file to say so.
24510  # So let's grep whole file.
24511  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24512    dirpart=`(dirname "$mf") 2>/dev/null ||
24513$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24514         X"$mf" : 'X\(//\)[^/]' \| \
24515         X"$mf" : 'X\(//\)$' \| \
24516         X"$mf" : 'X\(/\)' \| \
24517         .     : '\(.\)' 2>/dev/null ||
24518echo X"$mf" |
24519    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24520  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24521  	  /^X\(\/\/\)$/{ s//\1/; q; }
24522  	  /^X\(\/\).*/{ s//\1/; q; }
24523  	  s/.*/./; q'`
24524  else
24525    continue
24526  fi
24527  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
24528  # Extract the definition of DEP_FILES from the Makefile without
24529  # running `make'.
24530  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
24531  test -z "$DEPDIR" && continue
24532  # When using ansi2knr, U may be empty or an underscore; expand it
24533  U=`sed -n -e '/^U = / s///p' < "$mf"`
24534  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
24535  # We invoke sed twice because it is the simplest approach to
24536  # changing $(DEPDIR) to its actual value in the expansion.
24537  for file in `sed -n -e '
24538    /^DEP_FILES = .*\\\\$/ {
24539      s/^DEP_FILES = //
24540      :loop
24541	s/\\\\$//
24542	p
24543	n
24544	/\\\\$/ b loop
24545      p
24546    }
24547    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
24548       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24549    # Make sure the directory exists.
24550    test -f "$dirpart/$file" && continue
24551    fdir=`(dirname "$file") 2>/dev/null ||
24552$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24553         X"$file" : 'X\(//\)[^/]' \| \
24554         X"$file" : 'X\(//\)$' \| \
24555         X"$file" : 'X\(/\)' \| \
24556         .     : '\(.\)' 2>/dev/null ||
24557echo X"$file" |
24558    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24559  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24560  	  /^X\(\/\/\)$/{ s//\1/; q; }
24561  	  /^X\(\/\).*/{ s//\1/; q; }
24562  	  s/.*/./; q'`
24563    { if $as_mkdir_p; then
24564    mkdir -p $dirpart/$fdir
24565  else
24566    as_dir=$dirpart/$fdir
24567    as_dirs=
24568    while test ! -d "$as_dir"; do
24569      as_dirs="$as_dir $as_dirs"
24570      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24571$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24572         X"$as_dir" : 'X\(//\)[^/]' \| \
24573         X"$as_dir" : 'X\(//\)$' \| \
24574         X"$as_dir" : 'X\(/\)' \| \
24575         .     : '\(.\)' 2>/dev/null ||
24576echo X"$as_dir" |
24577    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24578  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24579  	  /^X\(\/\/\)$/{ s//\1/; q; }
24580  	  /^X\(\/\).*/{ s//\1/; q; }
24581  	  s/.*/./; q'`
24582    done
24583    test ! -n "$as_dirs" || mkdir $as_dirs
24584  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24585echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24586   { (exit 1); exit 1; }; }; }
24587
24588    # echo "creating $dirpart/$file"
24589    echo '# dummy' > "$dirpart/$file"
24590  done
24591done
24592 ;;
24593  esac
24594done
24595_ACEOF
24596
24597cat >>$CONFIG_STATUS <<\_ACEOF
24598
24599{ (exit 0); exit 0; }
24600_ACEOF
24601chmod +x $CONFIG_STATUS
24602ac_clean_files=$ac_clean_files_save
24603
24604
24605# configure is writing to config.log, and then calls config.status.
24606# config.status does its own redirection, appending to config.log.
24607# Unfortunately, on DOS this fails, as config.log is still kept open
24608# by configure, so config.status won't be able to write to it; its
24609# output is simply discarded.  So we exec the FD to /dev/null,
24610# effectively closing config.log, so it can be properly (re)opened and
24611# appended to by config.status.  When coming back to configure, we
24612# need to make the FD available again.
24613if test "$no_create" != yes; then
24614  ac_cs_success=:
24615  ac_config_status_args=
24616  test "$silent" = yes &&
24617    ac_config_status_args="$ac_config_status_args --quiet"
24618  exec 5>/dev/null
24619  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24620  exec 5>>config.log
24621  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24622  # would make configure fail if this is the last instruction.
24623  $ac_cs_success || { (exit 1); exit 1; }
24624fi
24625
24626#
24627# CONFIG_SUBDIRS section.
24628#
24629if test "$no_recursion" != yes; then
24630
24631  # Remove --cache-file and --srcdir arguments so they do not pile up.
24632  ac_sub_configure_args=
24633  ac_prev=
24634  for ac_arg in $ac_configure_args; do
24635    if test -n "$ac_prev"; then
24636      ac_prev=
24637      continue
24638    fi
24639    case $ac_arg in
24640    -cache-file | --cache-file | --cache-fil | --cache-fi \
24641    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24642      ac_prev=cache_file ;;
24643    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24644    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24645    | --c=*)
24646      ;;
24647    --config-cache | -C)
24648      ;;
24649    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24650      ac_prev=srcdir ;;
24651    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24652      ;;
24653    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24654      ac_prev=prefix ;;
24655    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24656      ;;
24657    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24658    esac
24659  done
24660
24661  # Always prepend --prefix to ensure using the same prefix
24662  # in subdir configurations.
24663  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24664
24665  ac_popdir=`pwd`
24666  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24667
24668    # Do not complain, so a configure script can configure whichever
24669    # parts of a large source tree are present.
24670    test -d $srcdir/$ac_dir || continue
24671
24672    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24673echo "$as_me: configuring in $ac_dir" >&6;}
24674    { if $as_mkdir_p; then
24675    mkdir -p "$ac_dir"
24676  else
24677    as_dir="$ac_dir"
24678    as_dirs=
24679    while test ! -d "$as_dir"; do
24680      as_dirs="$as_dir $as_dirs"
24681      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24682$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24683         X"$as_dir" : 'X\(//\)[^/]' \| \
24684         X"$as_dir" : 'X\(//\)$' \| \
24685         X"$as_dir" : 'X\(/\)' \| \
24686         .     : '\(.\)' 2>/dev/null ||
24687echo X"$as_dir" |
24688    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24689  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24690  	  /^X\(\/\/\)$/{ s//\1/; q; }
24691  	  /^X\(\/\).*/{ s//\1/; q; }
24692  	  s/.*/./; q'`
24693    done
24694    test ! -n "$as_dirs" || mkdir $as_dirs
24695  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24696echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24697   { (exit 1); exit 1; }; }; }
24698
24699    ac_builddir=.
24700
24701if test "$ac_dir" != .; then
24702  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24703  # A "../" for each directory in $ac_dir_suffix.
24704  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24705else
24706  ac_dir_suffix= ac_top_builddir=
24707fi
24708
24709case $srcdir in
24710  .)  # No --srcdir option.  We are building in place.
24711    ac_srcdir=.
24712    if test -z "$ac_top_builddir"; then
24713       ac_top_srcdir=.
24714    else
24715       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24716    fi ;;
24717  [\\/]* | ?:[\\/]* )  # Absolute path.
24718    ac_srcdir=$srcdir$ac_dir_suffix;
24719    ac_top_srcdir=$srcdir ;;
24720  *) # Relative path.
24721    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24722    ac_top_srcdir=$ac_top_builddir$srcdir ;;
24723esac
24724# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24725# absolute.
24726ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24727ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24728ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24729ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24730
24731
24732    cd $ac_dir
24733
24734    # Check for guested configure; otherwise get Cygnus style configure.
24735    if test -f $ac_srcdir/configure.gnu; then
24736      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24737    elif test -f $ac_srcdir/configure; then
24738      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24739    elif test -f $ac_srcdir/configure.in; then
24740      ac_sub_configure=$ac_configure
24741    else
24742      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24743echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24744      ac_sub_configure=
24745    fi
24746
24747    # The recursion is here.
24748    if test -n "$ac_sub_configure"; then
24749      # Make the cache file name correct relative to the subdirectory.
24750      case $cache_file in
24751      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24752      *) # Relative path.
24753        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24754      esac
24755
24756      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24757echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24758      # The eval makes quoting arguments work.
24759      eval $ac_sub_configure $ac_sub_configure_args \
24760           --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24761        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24762echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24763   { (exit 1); exit 1; }; }
24764    fi
24765
24766    cd $ac_popdir
24767  done
24768fi
24769
24770